diff --git a/lib/services/dataLake.Analytics/lib/account/dataLakeAnalyticsAccountManagementClient.d.ts b/lib/services/dataLake.Analytics/lib/account/dataLakeAnalyticsAccountManagementClient.d.ts index 1722fd75ca..58e3e142a5 100644 --- a/lib/services/dataLake.Analytics/lib/account/dataLakeAnalyticsAccountManagementClient.d.ts +++ b/lib/services/dataLake.Analytics/lib/account/dataLakeAnalyticsAccountManagementClient.d.ts @@ -8,10 +8,11 @@ * regenerated. */ -import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { ServiceClient, ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; import * as operations from "./operations"; -declare class DataLakeAnalyticsAccountManagementClient { +declare class DataLakeAnalyticsAccountManagementClient extends AzureServiceClient { /** * Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class. * @constructor @@ -41,7 +42,7 @@ declare class DataLakeAnalyticsAccountManagementClient { * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ - constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions); + constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); credentials: ServiceClientCredentials; diff --git a/lib/services/dataLake.Analytics/lib/account/dataLakeAnalyticsAccountManagementClient.js b/lib/services/dataLake.Analytics/lib/account/dataLakeAnalyticsAccountManagementClient.js index e329b7bce0..079d2bec59 100644 --- a/lib/services/dataLake.Analytics/lib/account/dataLakeAnalyticsAccountManagementClient.js +++ b/lib/services/dataLake.Analytics/lib/account/dataLakeAnalyticsAccountManagementClient.js @@ -22,36 +22,23 @@ const models = require('./models'); const operations = require('./operations'); -/** - * @class - * Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class. - * @constructor - * - * @param {credentials} credentials - Credentials needed for the client to connect to Azure. - * - * @param {string} subscriptionId - Get subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - * - * @param {string} [baseUri] - The base URI of the service. - * - * @param {object} [options] - The parameter options - * - * @param {Array} [options.filters] - Filters to be added to the request pipeline - * - * @param {object} [options.requestOptions] - Options for the underlying request object - * {@link https://github.com/request/request#requestoptions-callback Options doc} - * - * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * - * @param {string} [options.apiVersion] - Client Api Version. - * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. - * - */ +/** Class representing a DataLakeAnalyticsAccountManagementClient. */ class DataLakeAnalyticsAccountManagementClient extends ServiceClient { + /** + * Create a DataLakeAnalyticsAccountManagementClient. + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. + * @param {string} subscriptionId - Get subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * @param {string} [baseUri] - The base URI of the service. + * @param {object} [options] - The parameter options + * @param {Array} [options.filters] - Filters to be added to the request pipeline + * @param {object} [options.requestOptions] - Options for the underlying request object + * {@link https://github.com/request/request#requestoptions-callback Options doc} + * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy + * @param {string} [options.apiVersion] - Client Api Version. + * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ constructor(credentials, subscriptionId, baseUri, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); diff --git a/lib/services/dataLake.Analytics/lib/account/models/addDataLakeStoreParameters.js b/lib/services/dataLake.Analytics/lib/account/models/addDataLakeStoreParameters.js index dae1aa753a..2c0282559a 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/addDataLakeStoreParameters.js +++ b/lib/services/dataLake.Analytics/lib/account/models/addDataLakeStoreParameters.js @@ -11,16 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the AddDataLakeStoreParameters class. - * @constructor * Additional Data Lake Store parameters. * - * @member {string} [suffix] the optional suffix for the Data Lake Store - * account. - * */ class AddDataLakeStoreParameters { + /** + * Create a AddDataLakeStoreParameters. + * @member {string} [suffix] the optional suffix for the Data Lake Store + * account. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/addStorageAccountParameters.js b/lib/services/dataLake.Analytics/lib/account/models/addStorageAccountParameters.js index 36639f394a..4651375a31 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/addStorageAccountParameters.js +++ b/lib/services/dataLake.Analytics/lib/account/models/addStorageAccountParameters.js @@ -11,19 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the AddStorageAccountParameters class. - * @constructor * Storage account parameters for a storage account being added to a Data Lake * Analytics account. * - * @member {string} accessKey the access key associated with this Azure Storage - * account that will be used to connect to it. - * - * @member {string} [suffix] the optional suffix for the storage account. - * */ class AddStorageAccountParameters { + /** + * Create a AddStorageAccountParameters. + * @member {string} accessKey the access key associated with this Azure + * Storage account that will be used to connect to it. + * @member {string} [suffix] the optional suffix for the storage account. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/computePolicy.js b/lib/services/dataLake.Analytics/lib/account/models/computePolicy.js index 155ae31900..0f41c9d77d 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/computePolicy.js +++ b/lib/services/dataLake.Analytics/lib/account/models/computePolicy.js @@ -11,27 +11,22 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ComputePolicy class. - * @constructor * The parameters used to create a new compute policy. * - * @member {string} [name] The name of the compute policy - * - * @member {uuid} [objectId] The AAD object identifier for the entity to create - * a policy for. - * - * @member {string} [objectType] The type of AAD object the object identifier - * refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - * - * @member {number} [maxDegreeOfParallelismPerJob] The maximum degree of - * parallelism per job this user can use to submit jobs. - * - * @member {number} [minPriorityPerJob] The minimum priority per job this user - * can use to submit jobs. - * */ class ComputePolicy { + /** + * Create a ComputePolicy. + * @member {string} [name] The name of the compute policy + * @member {uuid} [objectId] The AAD object identifier for the entity to + * create a policy for. + * @member {string} [objectType] The type of AAD object the object identifier + * refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' + * @member {number} [maxDegreeOfParallelismPerJob] The maximum degree of + * parallelism per job this user can use to submit jobs. + * @member {number} [minPriorityPerJob] The minimum priority per job this + * user can use to submit jobs. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/computePolicyAccountCreateParameters.js b/lib/services/dataLake.Analytics/lib/account/models/computePolicyAccountCreateParameters.js index 60866ccece..a21365babc 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/computePolicyAccountCreateParameters.js +++ b/lib/services/dataLake.Analytics/lib/account/models/computePolicyAccountCreateParameters.js @@ -11,29 +11,24 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ComputePolicyAccountCreateParameters class. - * @constructor * The parameters used to create a new compute policy. * - * @member {string} name The unique name of the policy to create - * - * @member {uuid} objectId The AAD object identifier for the entity to create a - * policy for. - * - * @member {string} objectType The type of AAD object the object identifier - * refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - * - * @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. - * - * @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. - * */ class ComputePolicyAccountCreateParameters { + /** + * Create a ComputePolicyAccountCreateParameters. + * @member {string} name The unique name of the policy to create + * @member {uuid} objectId The AAD object identifier for the entity to create + * a policy for. + * @member {string} objectType The type of AAD object the object identifier + * refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' + * @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. + * @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. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/computePolicyCreateOrUpdateParameters.js b/lib/services/dataLake.Analytics/lib/account/models/computePolicyCreateOrUpdateParameters.js index 803e3c3419..c0df6d35c7 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/computePolicyCreateOrUpdateParameters.js +++ b/lib/services/dataLake.Analytics/lib/account/models/computePolicyCreateOrUpdateParameters.js @@ -11,27 +11,23 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ComputePolicyCreateOrUpdateParameters class. - * @constructor * The parameters used to create a new compute policy. * - * @member {uuid} objectId The AAD object identifier for the entity to create a - * policy for. - * - * @member {string} objectType The type of AAD object the object identifier - * refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - * - * @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. - * - * @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. - * */ class ComputePolicyCreateOrUpdateParameters { + /** + * Create a ComputePolicyCreateOrUpdateParameters. + * @member {uuid} objectId The AAD object identifier for the entity to create + * a policy for. + * @member {string} objectType The type of AAD object the object identifier + * refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' + * @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. + * @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. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/computePolicyListResult.js b/lib/services/dataLake.Analytics/lib/account/models/computePolicyListResult.js index 441cec60d4..a7d2e1bb51 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/computePolicyListResult.js +++ b/lib/services/dataLake.Analytics/lib/account/models/computePolicyListResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ComputePolicyListResult class. - * @constructor * The list of compute policies in the account. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class ComputePolicyListResult extends Array { + /** + * Create a ComputePolicyListResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccount.js b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccount.js index 9b6df59232..8ae51313f2 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccount.js +++ b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccount.js @@ -13,87 +13,71 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the DataLakeAnalyticsAccount class. - * @constructor * A Data Lake Analytics account object, containing all information associated * with the named Data Lake Analytics account. * - * @member {string} [provisioningState] the provisioning status of the Data - * Lake Analytics account. Possible values include: 'Failed', 'Creating', - * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', - * 'Deleted' - * - * @member {string} [state] the state of the Data Lake Analytics account. - * Possible values include: 'Active', 'Suspended' - * - * @member {string} defaultDataLakeStoreAccount the default data lake storage - * account associated with this Data Lake Analytics account. - * - * @member {number} [maxDegreeOfParallelism] the maximum supported degree of - * parallelism for this account. Default value: 30 . - * - * @member {number} [queryStoreRetention] the number of days that job metadata - * is retained. Default value: 30 . - * - * @member {number} [maxJobCount] the maximum supported jobs running under the - * account at the same time. Default value: 3 . - * - * @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.. - * - * @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. - * - * @member {array} dataLakeStoreAccounts the list of Data Lake storage accounts - * associated with this account. - * - * @member {array} [storageAccounts] the list of Azure Blob storage accounts - * associated with this account. - * - * @member {date} [creationTime] the account creation time. - * - * @member {date} [lastModifiedTime] the account last modified time. - * - * @member {string} [endpoint] the full CName endpoint for this account. - * - * @member {string} [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' - * - * @member {string} [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' - * - * @member {string} [firewallState] The current state of the IP address - * firewall for this Data Lake Analytics account. Possible values include: - * 'Enabled', 'Disabled' - * - * @member {string} [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' - * - * @member {array} [firewallRules] The list of firewall rules associated with - * this Data Lake Analytics account. - * - * @member {number} [maxDegreeOfParallelismPerJob] the maximum supported degree - * of parallelism per job for this account. - * - * @member {number} [minPriorityPerJob] the minimum supported priority per job - * for this account. - * - * @member {array} [computePolicies] the list of compute policies to create in - * this account. - * + * @extends models['Resource'] */ class DataLakeAnalyticsAccount extends models['Resource'] { + /** + * Create a DataLakeAnalyticsAccount. + * @member {string} [provisioningState] the provisioning status of the Data + * Lake Analytics account. Possible values include: 'Failed', 'Creating', + * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted' + * @member {string} [state] the state of the Data Lake Analytics account. + * Possible values include: 'Active', 'Suspended' + * @member {date} [creationTime] the account creation time. + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Analytics account. + * @member {string} defaultDataLakeStoreAccount the default data lake storage + * account associated with this Data Lake Analytics account. + * @member {number} [maxDegreeOfParallelism] the maximum supported degree of + * parallelism for this account. Default value: 30 . + * @member {number} [queryStoreRetention] the number of days that job + * metadata is retained. Default value: 30 . + * @member {number} [maxJobCount] the maximum supported jobs running under + * the account at the same time. Default value: 3 . + * @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.. + * @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. + * @member {array} dataLakeStoreAccounts the list of Data Lake storage + * accounts associated with this account. + * @member {array} [storageAccounts] the list of Azure Blob storage accounts + * associated with this account. + * @member {string} [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' + * @member {string} [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' + * @member {string} [firewallState] The current state of the IP address + * firewall for this Data Lake Analytics account. Possible values include: + * 'Enabled', 'Disabled' + * @member {string} [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' + * @member {array} [firewallRules] The list of firewall rules associated with + * this Data Lake Analytics account. + * @member {number} [maxDegreeOfParallelismPerJob] the maximum supported + * degree of parallelism per job for this account. + * @member {number} [minPriorityPerJob] the minimum supported priority per + * job for this account. + * @member {array} [computePolicies] the list of compute policies to create + * in this account. + */ constructor() { super(); } @@ -175,6 +159,38 @@ class DataLakeAnalyticsAccount extends models['Resource'] { allowedValues: [ 'Active', 'Suspended' ] } }, + creationTime: { + required: false, + readOnly: true, + serializedName: 'properties.creationTime', + type: { + name: 'DateTime' + } + }, + lastModifiedTime: { + required: false, + readOnly: true, + serializedName: 'properties.lastModifiedTime', + type: { + name: 'DateTime' + } + }, + endpoint: { + required: false, + readOnly: true, + serializedName: 'properties.endpoint', + type: { + name: 'String' + } + }, + accountId: { + required: false, + readOnly: true, + serializedName: 'properties.accountId', + type: { + name: 'String' + } + }, defaultDataLakeStoreAccount: { required: true, serializedName: 'properties.defaultDataLakeStoreAccount', @@ -262,30 +278,6 @@ class DataLakeAnalyticsAccount extends models['Resource'] { } } }, - creationTime: { - required: false, - readOnly: true, - serializedName: 'properties.creationTime', - type: { - name: 'DateTime' - } - }, - lastModifiedTime: { - required: false, - readOnly: true, - serializedName: 'properties.lastModifiedTime', - type: { - name: 'DateTime' - } - }, - endpoint: { - required: false, - readOnly: true, - serializedName: 'properties.endpoint', - type: { - name: 'String' - } - }, newTier: { required: false, serializedName: 'properties.newTier', diff --git a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountBasic.js b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountBasic.js new file mode 100644 index 0000000000..78287a5a33 --- /dev/null +++ b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountBasic.js @@ -0,0 +1,155 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * A Data Lake Analytics account object, containing all information associated + * with the named Data Lake Analytics account. + * + * @extends models['Resource'] + */ +class DataLakeAnalyticsAccountBasic extends models['Resource'] { + /** + * Create a DataLakeAnalyticsAccountBasic. + * @member {string} [provisioningState] the provisioning status of the Data + * Lake Analytics account. Possible values include: 'Failed', 'Creating', + * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted' + * @member {string} [state] the state of the Data Lake Analytics account. + * Possible values include: 'Active', 'Suspended' + * @member {date} [creationTime] the account creation time. + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Analytics account. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DataLakeAnalyticsAccountBasic + * + * @returns {object} metadata of DataLakeAnalyticsAccountBasic + * + */ + mapper() { + return { + required: false, + serializedName: 'DataLakeAnalyticsAccountBasic', + type: { + name: 'Composite', + className: 'DataLakeAnalyticsAccountBasic', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + provisioningState: { + required: false, + readOnly: true, + serializedName: 'properties.provisioningState', + type: { + name: 'Enum', + allowedValues: [ 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted' ] + } + }, + state: { + required: false, + readOnly: true, + serializedName: 'properties.state', + type: { + name: 'Enum', + allowedValues: [ 'Active', 'Suspended' ] + } + }, + creationTime: { + required: false, + readOnly: true, + serializedName: 'properties.creationTime', + type: { + name: 'DateTime' + } + }, + lastModifiedTime: { + required: false, + readOnly: true, + serializedName: 'properties.lastModifiedTime', + type: { + name: 'DateTime' + } + }, + endpoint: { + required: false, + readOnly: true, + serializedName: 'properties.endpoint', + type: { + name: 'String' + } + }, + accountId: { + required: false, + readOnly: true, + serializedName: 'properties.accountId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DataLakeAnalyticsAccountBasic; diff --git a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListDataLakeStoreResult.js b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListDataLakeStoreResult.js index e65411f816..a4b45ed2cd 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListDataLakeStoreResult.js +++ b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListDataLakeStoreResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeAnalyticsAccountListDataLakeStoreResult class. - * @constructor * Data Lake Account list information. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class DataLakeAnalyticsAccountListDataLakeStoreResult extends Array { + /** + * Create a DataLakeAnalyticsAccountListDataLakeStoreResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListResult.js b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListResult.js index 381cef0e0f..2d2d036d0c 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListResult.js +++ b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeAnalyticsAccountListResult class. - * @constructor * DataLakeAnalytics Account list information. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class DataLakeAnalyticsAccountListResult extends Array { + /** + * Create a DataLakeAnalyticsAccountListResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } @@ -46,10 +44,10 @@ class DataLakeAnalyticsAccountListResult extends Array { name: 'Sequence', element: { required: false, - serializedName: 'DataLakeAnalyticsAccountElementType', + serializedName: 'DataLakeAnalyticsAccountBasicElementType', type: { name: 'Composite', - className: 'DataLakeAnalyticsAccount' + className: 'DataLakeAnalyticsAccountBasic' } } } diff --git a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListStorageAccountsResult.js b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListStorageAccountsResult.js index dbd6c344e6..335da468cb 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListStorageAccountsResult.js +++ b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountListStorageAccountsResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeAnalyticsAccountListStorageAccountsResult class. - * @constructor * Azure Storage Account list information. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class DataLakeAnalyticsAccountListStorageAccountsResult extends Array { + /** + * Create a DataLakeAnalyticsAccountListStorageAccountsResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountPropertiesBasic.js b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountPropertiesBasic.js new file mode 100644 index 0000000000..f48def9b76 --- /dev/null +++ b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountPropertiesBasic.js @@ -0,0 +1,106 @@ +/* + * 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. + */ + +'use strict'; + +/** + * The basic account specific properties that are associated with an underlying + * Data Lake Analytics account. + * + */ +class DataLakeAnalyticsAccountPropertiesBasic { + /** + * Create a DataLakeAnalyticsAccountPropertiesBasic. + * @member {string} [provisioningState] the provisioning status of the Data + * Lake Analytics account. Possible values include: 'Failed', 'Creating', + * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted' + * @member {string} [state] the state of the Data Lake Analytics account. + * Possible values include: 'Active', 'Suspended' + * @member {date} [creationTime] the account creation time. + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Analytics account. + */ + constructor() { + } + + /** + * Defines the metadata of DataLakeAnalyticsAccountPropertiesBasic + * + * @returns {object} metadata of DataLakeAnalyticsAccountPropertiesBasic + * + */ + mapper() { + return { + required: false, + serializedName: 'DataLakeAnalyticsAccountPropertiesBasic', + type: { + name: 'Composite', + className: 'DataLakeAnalyticsAccountPropertiesBasic', + modelProperties: { + provisioningState: { + required: false, + readOnly: true, + serializedName: 'provisioningState', + type: { + name: 'Enum', + allowedValues: [ 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted' ] + } + }, + state: { + required: false, + readOnly: true, + serializedName: 'state', + type: { + name: 'Enum', + allowedValues: [ 'Active', 'Suspended' ] + } + }, + creationTime: { + required: false, + readOnly: true, + serializedName: 'creationTime', + type: { + name: 'DateTime' + } + }, + lastModifiedTime: { + required: false, + readOnly: true, + serializedName: 'lastModifiedTime', + type: { + name: 'DateTime' + } + }, + endpoint: { + required: false, + readOnly: true, + serializedName: 'endpoint', + type: { + name: 'String' + } + }, + accountId: { + required: false, + readOnly: true, + serializedName: 'accountId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DataLakeAnalyticsAccountPropertiesBasic; diff --git a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountUpdateParameters.js b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountUpdateParameters.js index 320692f684..642661fbb6 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountUpdateParameters.js +++ b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsAccountUpdateParameters.js @@ -13,52 +13,42 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the DataLakeAnalyticsAccountUpdateParameters class. - * @constructor * The parameters that can be used to update an existing Data Lake Analytics * account. * - * @member {object} [tags] Resource tags - * - * @member {number} [maxDegreeOfParallelism] the maximum supported degree of - * parallelism for this account. - * - * @member {number} [queryStoreRetention] the number of days that job metadata - * is retained. - * - * @member {number} [maxJobCount] the maximum supported jobs running under the - * account at the same time. - * - * @member {string} [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' - * - * @member {string} [firewallState] The current state of the IP address - * firewall for this Data Lake Analytics account. Possible values include: - * 'Enabled', 'Disabled' - * - * @member {string} [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' - * - * @member {array} [firewallRules] The list of firewall rules associated with - * this Data Lake Analytics account. - * - * @member {number} [maxDegreeOfParallelismPerJob] the maximum supported degree - * of parallelism per job for this account. - * - * @member {number} [minPriorityPerJob] the minimum supported priority per job - * for this account. - * - * @member {array} [computePolicies] the list of existing compute policies to - * update in this account. - * */ class DataLakeAnalyticsAccountUpdateParameters { + /** + * Create a DataLakeAnalyticsAccountUpdateParameters. + * @member {object} [tags] Resource tags + * @member {number} [maxDegreeOfParallelism] the maximum supported degree of + * parallelism for this account. + * @member {number} [queryStoreRetention] the number of days that job + * metadata is retained. + * @member {number} [maxJobCount] the maximum supported jobs running under + * the account at the same time. + * @member {string} [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' + * @member {string} [firewallState] The current state of the IP address + * firewall for this Data Lake Analytics account. Possible values include: + * 'Enabled', 'Disabled' + * @member {string} [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' + * @member {array} [firewallRules] The list of firewall rules associated with + * this Data Lake Analytics account. + * @member {number} [maxDegreeOfParallelismPerJob] the maximum supported + * degree of parallelism per job for this account. + * @member {number} [minPriorityPerJob] the minimum supported priority per + * job for this account. + * @member {array} [computePolicies] the list of existing compute policies to + * update in this account. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsFirewallRuleListResult.js b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsFirewallRuleListResult.js index b8abd4ca4d..d1c4d8eec3 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsFirewallRuleListResult.js +++ b/lib/services/dataLake.Analytics/lib/account/models/dataLakeAnalyticsFirewallRuleListResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeAnalyticsFirewallRuleListResult class. - * @constructor * Data Lake Analytics firewall rule list information. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class DataLakeAnalyticsFirewallRuleListResult extends Array { + /** + * Create a DataLakeAnalyticsFirewallRuleListResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/dataLakeStoreAccountInfo.js b/lib/services/dataLake.Analytics/lib/account/models/dataLakeStoreAccountInfo.js index 31184181f3..2227554e38 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/dataLakeStoreAccountInfo.js +++ b/lib/services/dataLake.Analytics/lib/account/models/dataLakeStoreAccountInfo.js @@ -13,16 +13,16 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the DataLakeStoreAccountInfo class. - * @constructor * Data Lake Store account information. * - * @member {string} [suffix] the optional suffix for the Data Lake Store - * account. - * + * @extends models['SubResource'] */ class DataLakeStoreAccountInfo extends models['SubResource'] { + /** + * Create a DataLakeStoreAccountInfo. + * @member {string} [suffix] the optional suffix for the Data Lake Store + * account. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/firewallRule.js b/lib/services/dataLake.Analytics/lib/account/models/firewallRule.js index 9635a57fea..fbf3046c69 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/firewallRule.js +++ b/lib/services/dataLake.Analytics/lib/account/models/firewallRule.js @@ -13,20 +13,20 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the FirewallRule class. - * @constructor * Data Lake Analytics firewall rule information * - * @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. - * - * @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. - * + * @extends models['OptionalSubResource'] */ class FirewallRule extends models['OptionalSubResource'] { + /** + * Create a FirewallRule. + * @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. + * @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. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/index.d.ts b/lib/services/dataLake.Analytics/lib/account/models/index.d.ts index 2fb64b1f47..ccec56a1f5 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/index.d.ts +++ b/lib/services/dataLake.Analytics/lib/account/models/index.d.ts @@ -10,6 +10,7 @@ import { BaseResource } from 'ms-rest-azure'; import { CloudError } from 'ms-rest-azure'; +import * as moment from 'moment'; export { BaseResource } from 'ms-rest-azure'; export { CloudError } from 'ms-rest-azure'; @@ -22,11 +23,8 @@ export { CloudError } from 'ms-rest-azure'; * The Sub Resource model definition. * * @member {string} [id] Resource Id - * * @member {string} name Resource name - * * @member {string} [type] Resource type - * */ export interface SubResource { readonly id?: string; @@ -42,9 +40,7 @@ export interface SubResource { * * @member {string} accessKey the access key associated with this Azure Storage * account that will be used to connect to it. - * * @member {string} [suffix] the optional suffix for the storage account. - * */ export interface StorageAccountInfo extends SubResource { accessKey: string; @@ -57,19 +53,15 @@ export interface StorageAccountInfo extends SubResource { * @constructor * Azure Storage blob container information. * - * @member {string} [name] the name of the blob container. - * * @member {string} [id] the unique identifier of the blob container. - * + * @member {string} [name] the name of the blob container. * @member {string} [type] the type of the blob container. - * * @member {date} [lastModifiedTime] the last modified time of the blob * container. - * */ export interface StorageContainer { - readonly name?: string; readonly id?: string; + readonly name?: string; readonly type?: string; readonly lastModifiedTime?: Date; } @@ -82,9 +74,7 @@ export interface StorageContainer { * the Data Lake Analytics account. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface ListStorageContainersResult { readonly value?: StorageContainer[]; @@ -99,7 +89,6 @@ export interface ListStorageContainersResult { * * @member {string} [accessToken] the access token for the associated Azure * Storage Container. - * */ export interface SasTokenInfo { readonly accessToken?: string; @@ -113,9 +102,7 @@ export interface SasTokenInfo { * SAS token for connection use. * * @member {array} [value] - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface ListSasTokensResult { readonly value?: SasTokenInfo[]; @@ -130,7 +117,6 @@ export interface ListSasTokensResult { * * @member {string} [suffix] the optional suffix for the Data Lake Store * account. - * */ export interface DataLakeStoreAccountInfo extends SubResource { suffix?: string; @@ -143,9 +129,7 @@ export interface DataLakeStoreAccountInfo extends SubResource { * Azure Storage Account list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsAccountListStorageAccountsResult { readonly value?: StorageAccountInfo[]; @@ -159,9 +143,7 @@ export interface DataLakeAnalyticsAccountListStorageAccountsResult { * Data Lake Account list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsAccountListDataLakeStoreResult { readonly value?: DataLakeStoreAccountInfo[]; @@ -176,11 +158,8 @@ export interface DataLakeAnalyticsAccountListDataLakeStoreResult { * properties. * * @member {string} [id] Resource Id - * * @member {string} [name] Resource name - * * @member {string} [type] Resource type - * */ export interface OptionalSubResource { readonly id?: string; @@ -197,10 +176,8 @@ export interface OptionalSubResource { * @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. - * * @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. - * */ export interface FirewallRule extends OptionalSubResource { startIpAddress: string; @@ -214,21 +191,16 @@ export interface FirewallRule extends OptionalSubResource { * The parameters used to create a new compute policy. * * @member {string} name The unique name of the policy to create - * * @member {uuid} objectId The AAD object identifier for the entity to create a * policy for. - * * @member {string} objectType The type of AAD object the object identifier * refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - * * @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. - * * @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. - * */ export interface ComputePolicyAccountCreateParameters { name: string; @@ -245,19 +217,14 @@ export interface ComputePolicyAccountCreateParameters { * The parameters used to create a new compute policy. * * @member {string} [name] The name of the compute policy - * * @member {uuid} [objectId] The AAD object identifier for the entity to create * a policy for. - * * @member {string} [objectType] The type of AAD object the object identifier * refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - * * @member {number} [maxDegreeOfParallelismPerJob] The maximum degree of * parallelism per job this user can use to submit jobs. - * * @member {number} [minPriorityPerJob] The minimum priority per job this user * can use to submit jobs. - * */ export interface ComputePolicy { readonly name?: string; @@ -275,7 +242,6 @@ export interface ComputePolicy { * * @member {string} [suffix] the optional suffix for the Data Lake Store * account. - * */ export interface AddDataLakeStoreParameters { suffix?: string; @@ -290,9 +256,7 @@ export interface AddDataLakeStoreParameters { * * @member {string} accessKey the access key associated with this Azure Storage * account that will be used to connect to it. - * * @member {string} [suffix] the optional suffix for the storage account. - * */ export interface AddStorageAccountParameters { accessKey: string; @@ -308,9 +272,7 @@ export interface AddStorageAccountParameters { * * @member {string} [accessKey] the updated access key associated with this * Azure Storage account that will be used to connect to it. - * * @member {string} [suffix] the optional suffix for the storage account. - * */ export interface UpdateStorageAccountParameters { accessKey?: string; @@ -325,18 +287,14 @@ export interface UpdateStorageAccountParameters { * * @member {uuid} objectId The AAD object identifier for the entity to create a * policy for. - * * @member {string} objectType The type of AAD object the object identifier * refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - * * @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. - * * @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. - * */ export interface ComputePolicyCreateOrUpdateParameters { objectId: string; @@ -352,9 +310,7 @@ export interface ComputePolicyCreateOrUpdateParameters { * The list of compute policies in the account. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface ComputePolicyListResult { readonly value?: ComputePolicy[]; @@ -369,43 +325,32 @@ export interface ComputePolicyListResult { * account. * * @member {object} [tags] Resource tags - * * @member {number} [maxDegreeOfParallelism] the maximum supported degree of * parallelism for this account. - * * @member {number} [queryStoreRetention] the number of days that job metadata * is retained. - * * @member {number} [maxJobCount] the maximum supported jobs running under the * account at the same time. - * * @member {string} [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' - * * @member {string} [firewallState] The current state of the IP address * firewall for this Data Lake Analytics account. Possible values include: * 'Enabled', 'Disabled' - * * @member {string} [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' - * * @member {array} [firewallRules] The list of firewall rules associated with * this Data Lake Analytics account. - * * @member {number} [maxDegreeOfParallelismPerJob] the maximum supported degree * of parallelism per job for this account. - * * @member {number} [minPriorityPerJob] the minimum supported priority per job * for this account. - * * @member {array} [computePolicies] the list of existing compute policies to * update in this account. - * */ export interface DataLakeAnalyticsAccountUpdateParameters { tags?: { [propertyName: string]: string }; @@ -421,6 +366,34 @@ export interface DataLakeAnalyticsAccountUpdateParameters { computePolicies?: ComputePolicy[]; } +/** + * @class + * Initializes a new instance of the DataLakeAnalyticsAccountPropertiesBasic class. + * @constructor + * The basic account specific properties that are associated with an underlying + * Data Lake Analytics account. + * + * @member {string} [provisioningState] the provisioning status of the Data + * Lake Analytics account. Possible values include: 'Failed', 'Creating', + * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted' + * @member {string} [state] the state of the Data Lake Analytics account. + * Possible values include: 'Active', 'Suspended' + * @member {date} [creationTime] the account creation time. + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Analytics account. + */ +export interface DataLakeAnalyticsAccountPropertiesBasic { + readonly provisioningState?: string; + readonly state?: string; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + readonly endpoint?: string; + readonly accountId?: string; +} + /** * @class * Initializes a new instance of the Resource class. @@ -428,15 +401,10 @@ export interface DataLakeAnalyticsAccountUpdateParameters { * The Resource model definition. * * @member {string} [id] Resource Id - * * @member {string} [name] Resource name - * * @member {string} [type] Resource type - * * @member {string} location Resource location - * * @member {object} [tags] Resource tags - * */ export interface Resource extends BaseResource { readonly id?: string; @@ -448,7 +416,7 @@ export interface Resource extends BaseResource { /** * @class - * Initializes a new instance of the DataLakeAnalyticsAccount class. + * Initializes a new instance of the DataLakeAnalyticsAccountBasic class. * @constructor * A Data Lake Analytics account object, containing all information associated * with the named Data Lake Analytics account. @@ -457,79 +425,92 @@ export interface Resource extends BaseResource { * Lake Analytics account. Possible values include: 'Failed', 'Creating', * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', * 'Deleted' - * * @member {string} [state] the state of the Data Lake Analytics account. * Possible values include: 'Active', 'Suspended' + * @member {date} [creationTime] the account creation time. + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Analytics account. + */ +export interface DataLakeAnalyticsAccountBasic extends Resource { + readonly provisioningState?: string; + readonly state?: string; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + readonly endpoint?: string; + readonly accountId?: string; +} + +/** + * @class + * Initializes a new instance of the DataLakeAnalyticsAccount class. + * @constructor + * A Data Lake Analytics account object, containing all information associated + * with the named Data Lake Analytics account. * + * @member {string} [provisioningState] the provisioning status of the Data + * Lake Analytics account. Possible values include: 'Failed', 'Creating', + * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted' + * @member {string} [state] the state of the Data Lake Analytics account. + * Possible values include: 'Active', 'Suspended' + * @member {date} [creationTime] the account creation time. + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Analytics account. * @member {string} defaultDataLakeStoreAccount the default data lake storage * account associated with this Data Lake Analytics account. - * * @member {number} [maxDegreeOfParallelism] the maximum supported degree of * parallelism for this account. Default value: 30 . - * * @member {number} [queryStoreRetention] the number of days that job metadata * is retained. Default value: 30 . - * * @member {number} [maxJobCount] the maximum supported jobs running under the * account at the same time. Default value: 3 . - * * @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.. - * * @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. - * * @member {array} dataLakeStoreAccounts the list of Data Lake storage accounts * associated with this account. - * * @member {array} [storageAccounts] the list of Azure Blob storage accounts * associated with this account. - * - * @member {date} [creationTime] the account creation time. - * - * @member {date} [lastModifiedTime] the account last modified time. - * - * @member {string} [endpoint] the full CName endpoint for this account. - * * @member {string} [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' - * * @member {string} [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' - * * @member {string} [firewallState] The current state of the IP address * firewall for this Data Lake Analytics account. Possible values include: * 'Enabled', 'Disabled' - * * @member {string} [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' - * * @member {array} [firewallRules] The list of firewall rules associated with * this Data Lake Analytics account. - * * @member {number} [maxDegreeOfParallelismPerJob] the maximum supported degree * of parallelism per job for this account. - * * @member {number} [minPriorityPerJob] the minimum supported priority per job * for this account. - * * @member {array} [computePolicies] the list of compute policies to create in * this account. - * */ export interface DataLakeAnalyticsAccount extends Resource { readonly provisioningState?: string; readonly state?: string; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + readonly endpoint?: string; + readonly accountId?: string; defaultDataLakeStoreAccount: string; maxDegreeOfParallelism?: number; queryStoreRetention?: number; @@ -538,9 +519,6 @@ export interface DataLakeAnalyticsAccount extends Resource { readonly systemMaxJobCount?: number; dataLakeStoreAccounts: DataLakeStoreAccountInfo[]; storageAccounts?: StorageAccountInfo[]; - readonly creationTime?: Date; - readonly lastModifiedTime?: Date; - readonly endpoint?: string; newTier?: string; readonly currentTier?: string; firewallState?: string; @@ -558,12 +536,10 @@ export interface DataLakeAnalyticsAccount extends Resource { * DataLakeAnalytics Account list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsAccountListResult { - readonly value?: DataLakeAnalyticsAccount[]; + readonly value?: DataLakeAnalyticsAccountBasic[]; readonly nextLink?: string; } @@ -574,9 +550,7 @@ export interface DataLakeAnalyticsAccountListResult { * Data Lake Analytics firewall rule list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsFirewallRuleListResult { readonly value?: FirewallRule[]; @@ -592,11 +566,9 @@ export interface DataLakeAnalyticsFirewallRuleListResult { * @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. - * * @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. - * */ export interface UpdateFirewallRuleParameters { startIpAddress?: string; @@ -610,9 +582,7 @@ export interface UpdateFirewallRuleParameters { * The list of compute policies in the account. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface ComputePolicyListResult { readonly value?: ComputePolicy[]; @@ -626,9 +596,7 @@ export interface ComputePolicyListResult { * Data Lake Analytics firewall rule list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsFirewallRuleListResult { readonly value?: FirewallRule[]; @@ -643,9 +611,7 @@ export interface DataLakeAnalyticsFirewallRuleListResult { * the Data Lake Analytics account. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface ListStorageContainersResult { readonly value?: StorageContainer[]; @@ -660,9 +626,7 @@ export interface ListStorageContainersResult { * SAS token for connection use. * * @member {array} [value] - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface ListSasTokensResult { readonly value?: SasTokenInfo[]; @@ -676,9 +640,7 @@ export interface ListSasTokensResult { * Azure Storage Account list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsAccountListStorageAccountsResult { readonly value?: StorageAccountInfo[]; @@ -692,9 +654,7 @@ export interface DataLakeAnalyticsAccountListStorageAccountsResult { * Data Lake Account list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsAccountListDataLakeStoreResult { readonly value?: DataLakeStoreAccountInfo[]; @@ -708,12 +668,10 @@ export interface DataLakeAnalyticsAccountListDataLakeStoreResult { * DataLakeAnalytics Account list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsAccountListResult { - readonly value?: DataLakeAnalyticsAccount[]; + readonly value?: DataLakeAnalyticsAccountBasic[]; readonly nextLink?: string; } @@ -725,7 +683,6 @@ export interface DataLakeAnalyticsAccountListResult { * The list of compute policies in the account. * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface ComputePolicyListResult extends Array { readonly nextLink?: string; @@ -738,7 +695,6 @@ export interface ComputePolicyListResult extends Array { * Data Lake Analytics firewall rule list information. * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsFirewallRuleListResult extends Array { readonly nextLink?: string; @@ -752,7 +708,6 @@ export interface DataLakeAnalyticsFirewallRuleListResult extends Array { readonly nextLink?: string; @@ -766,7 +721,6 @@ export interface ListStorageContainersResult extends Array { * SAS token for connection use. * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface ListSasTokensResult extends Array { readonly nextLink?: string; @@ -779,7 +733,6 @@ export interface ListSasTokensResult extends Array { * Azure Storage Account list information. * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsAccountListStorageAccountsResult extends Array { readonly nextLink?: string; @@ -792,7 +745,6 @@ export interface DataLakeAnalyticsAccountListStorageAccountsResult extends Array * Data Lake Account list information. * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeAnalyticsAccountListDataLakeStoreResult extends Array { readonly nextLink?: string; @@ -805,8 +757,7 @@ export interface DataLakeAnalyticsAccountListDataLakeStoreResult extends Array { +export interface DataLakeAnalyticsAccountListResult extends Array { readonly nextLink?: string; } diff --git a/lib/services/dataLake.Analytics/lib/account/models/index.js b/lib/services/dataLake.Analytics/lib/account/models/index.js index ee004e4d6a..e7f639fc21 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/index.js +++ b/lib/services/dataLake.Analytics/lib/account/models/index.js @@ -37,7 +37,9 @@ exports.UpdateStorageAccountParameters = require('./updateStorageAccountParamete exports.ComputePolicyCreateOrUpdateParameters = require('./computePolicyCreateOrUpdateParameters'); exports.ComputePolicyListResult = require('./computePolicyListResult'); exports.DataLakeAnalyticsAccountUpdateParameters = require('./dataLakeAnalyticsAccountUpdateParameters'); +exports.DataLakeAnalyticsAccountPropertiesBasic = require('./dataLakeAnalyticsAccountPropertiesBasic'); exports.Resource = require('./resource'); +exports.DataLakeAnalyticsAccountBasic = require('./dataLakeAnalyticsAccountBasic'); exports.DataLakeAnalyticsAccount = require('./dataLakeAnalyticsAccount'); exports.DataLakeAnalyticsAccountListResult = require('./dataLakeAnalyticsAccountListResult'); exports.DataLakeAnalyticsFirewallRuleListResult = require('./dataLakeAnalyticsFirewallRuleListResult'); diff --git a/lib/services/dataLake.Analytics/lib/account/models/listSasTokensResult.js b/lib/services/dataLake.Analytics/lib/account/models/listSasTokensResult.js index 362ec4da48..310e92e3c1 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/listSasTokensResult.js +++ b/lib/services/dataLake.Analytics/lib/account/models/listSasTokensResult.js @@ -11,16 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ListSasTokensResult class. - * @constructor * The SAS response that contains the storage account, container and associated * SAS token for connection use. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class ListSasTokensResult extends Array { + /** + * Create a ListSasTokensResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/listStorageContainersResult.js b/lib/services/dataLake.Analytics/lib/account/models/listStorageContainersResult.js index 5220955bbe..d93cde520e 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/listStorageContainersResult.js +++ b/lib/services/dataLake.Analytics/lib/account/models/listStorageContainersResult.js @@ -11,16 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ListStorageContainersResult class. - * @constructor * The list of blob containers associated with the storage account attached to * the Data Lake Analytics account. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class ListStorageContainersResult extends Array { + /** + * Create a ListStorageContainersResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/optionalSubResource.js b/lib/services/dataLake.Analytics/lib/account/models/optionalSubResource.js index a40d3020f9..66c71bca74 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/optionalSubResource.js +++ b/lib/services/dataLake.Analytics/lib/account/models/optionalSubResource.js @@ -11,20 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the OptionalSubResource class. - * @constructor * The Resource model definition for a nested resource with no required * properties. * - * @member {string} [id] Resource Id - * - * @member {string} [name] Resource name - * - * @member {string} [type] Resource type - * */ class OptionalSubResource { + /** + * Create a OptionalSubResource. + * @member {string} [id] Resource Id + * @member {string} [name] Resource name + * @member {string} [type] Resource type + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/resource.js b/lib/services/dataLake.Analytics/lib/account/models/resource.js index a66d0104cb..7c1448890e 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/resource.js +++ b/lib/services/dataLake.Analytics/lib/account/models/resource.js @@ -13,23 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the Resource class. - * @constructor * The Resource model definition. * - * @member {string} [id] Resource Id - * - * @member {string} [name] Resource name - * - * @member {string} [type] Resource type - * - * @member {string} location Resource location - * - * @member {object} [tags] Resource tags - * + * @extends models['BaseResource'] */ class Resource extends models['BaseResource'] { + /** + * Create a Resource. + * @member {string} [id] Resource Id + * @member {string} [name] Resource name + * @member {string} [type] Resource type + * @member {string} location Resource location + * @member {object} [tags] Resource tags + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/sasTokenInfo.js b/lib/services/dataLake.Analytics/lib/account/models/sasTokenInfo.js index f00b0fb38f..bae60fb706 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/sasTokenInfo.js +++ b/lib/services/dataLake.Analytics/lib/account/models/sasTokenInfo.js @@ -11,16 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the SasTokenInfo class. - * @constructor * SAS token information. * - * @member {string} [accessToken] the access token for the associated Azure - * Storage Container. - * */ class SasTokenInfo { + /** + * Create a SasTokenInfo. + * @member {string} [accessToken] the access token for the associated Azure + * Storage Container. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/storageAccountInfo.js b/lib/services/dataLake.Analytics/lib/account/models/storageAccountInfo.js index 01f9e7f224..d4cbdc6755 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/storageAccountInfo.js +++ b/lib/services/dataLake.Analytics/lib/account/models/storageAccountInfo.js @@ -13,18 +13,17 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the StorageAccountInfo class. - * @constructor * Azure Storage account information. * - * @member {string} accessKey the access key associated with this Azure Storage - * account that will be used to connect to it. - * - * @member {string} [suffix] the optional suffix for the storage account. - * + * @extends models['SubResource'] */ class StorageAccountInfo extends models['SubResource'] { + /** + * Create a StorageAccountInfo. + * @member {string} accessKey the access key associated with this Azure + * Storage account that will be used to connect to it. + * @member {string} [suffix] the optional suffix for the storage account. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/account/models/storageContainer.js b/lib/services/dataLake.Analytics/lib/account/models/storageContainer.js index ff89e69164..7f50f4a763 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/storageContainer.js +++ b/lib/services/dataLake.Analytics/lib/account/models/storageContainer.js @@ -11,22 +11,18 @@ 'use strict'; /** - * @class - * Initializes a new instance of the StorageContainer class. - * @constructor * Azure Storage blob container information. * - * @member {string} [name] the name of the blob container. - * - * @member {string} [id] the unique identifier of the blob container. - * - * @member {string} [type] the type of the blob container. - * - * @member {date} [lastModifiedTime] the last modified time of the blob - * container. - * */ class StorageContainer { + /** + * Create a StorageContainer. + * @member {string} [id] the unique identifier of the blob container. + * @member {string} [name] the name of the blob container. + * @member {string} [type] the type of the blob container. + * @member {date} [lastModifiedTime] the last modified time of the blob + * container. + */ constructor() { } @@ -44,18 +40,18 @@ class StorageContainer { name: 'Composite', className: 'StorageContainer', modelProperties: { - name: { + id: { required: false, readOnly: true, - serializedName: 'name', + serializedName: 'id', type: { name: 'String' } }, - id: { + name: { required: false, readOnly: true, - serializedName: 'id', + serializedName: 'name', type: { name: 'String' } diff --git a/lib/services/dataLake.Analytics/lib/account/models/subResource.js b/lib/services/dataLake.Analytics/lib/account/models/subResource.js index 9a0dd04f33..f5e9c0557b 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/subResource.js +++ b/lib/services/dataLake.Analytics/lib/account/models/subResource.js @@ -11,19 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the SubResource class. - * @constructor * The Sub Resource model definition. * - * @member {string} [id] Resource Id - * - * @member {string} name Resource name - * - * @member {string} [type] Resource type - * */ class SubResource { + /** + * Create a SubResource. + * @member {string} [id] Resource Id + * @member {string} name Resource name + * @member {string} [type] Resource type + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/updateFirewallRuleParameters.js b/lib/services/dataLake.Analytics/lib/account/models/updateFirewallRuleParameters.js index 2908796d87..5d3aa00b18 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/updateFirewallRuleParameters.js +++ b/lib/services/dataLake.Analytics/lib/account/models/updateFirewallRuleParameters.js @@ -11,21 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the UpdateFirewallRuleParameters class. - * @constructor * Data Lake Analytics firewall rule update parameters * - * @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. - * - * @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. - * */ class UpdateFirewallRuleParameters { + /** + * Create a 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. + * @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. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/models/updateStorageAccountParameters.js b/lib/services/dataLake.Analytics/lib/account/models/updateStorageAccountParameters.js index 438e14fd65..7b9b99a640 100644 --- a/lib/services/dataLake.Analytics/lib/account/models/updateStorageAccountParameters.js +++ b/lib/services/dataLake.Analytics/lib/account/models/updateStorageAccountParameters.js @@ -11,19 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the UpdateStorageAccountParameters class. - * @constructor * Storage account parameters for a storage account being updated in a Data * Lake Analytics account. * - * @member {string} [accessKey] the updated access key associated with this - * Azure Storage account that will be used to connect to it. - * - * @member {string} [suffix] the optional suffix for the storage account. - * */ class UpdateStorageAccountParameters { + /** + * Create a UpdateStorageAccountParameters. + * @member {string} [accessKey] the updated access key associated with this + * Azure Storage account that will be used to connect to it. + * @member {string} [suffix] the optional suffix for the storage account. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/account/operations/account.js b/lib/services/dataLake.Analytics/lib/account/operations/account.js index ef8c011c12..3fa1e9d7e4 100644 --- a/lib/services/dataLake.Analytics/lib/account/operations/account.js +++ b/lib/services/dataLake.Analytics/lib/account/operations/account.js @@ -439,220 +439,6 @@ function _list(options, callback) { }); } -/** - * Gets details of the specified Data Lake Analytics account. - * - * @param {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. - * - * @param {string} accountName The name of the Data Lake Analytics account to - * retrieve. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link DataLakeAnalyticsAccount} for more - * information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _get(resourceGroupName, accountName, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - if (!callback) { - throw new Error('callback cannot be null.'); - } - // Validate - try { - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { - throw new Error('accountName cannot be null or undefined and it must be of type string.'); - } - if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { - throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); - } - if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { - throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); - } - if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { - throw new Error('this.client.acceptLanguage must be of type string.'); - } - } catch (error) { - return callback(error); - } - - // Construct URL - let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'; - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{accountName}', encodeURIComponent(accountName)); - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } - - // Create HTTP transport objects - let httpRequest = new WebResource(); - httpRequest.method = 'GET'; - httpRequest.headers = {}; - httpRequest.url = requestUrl; - // Set Headers - if (this.client.generateClientRequestId) { - httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); - } - if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { - httpRequest.headers['accept-language'] = this.client.acceptLanguage; - } - if(options) { - for(let headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - httpRequest.body = null; - // Send Request - return client.pipeline(httpRequest, (err, response, responseBody) => { - if (err) { - return callback(err); - } - let statusCode = response.statusCode; - if (statusCode !== 200) { - let error = new Error(responseBody); - error.statusCode = response.statusCode; - error.request = msRest.stripRequest(httpRequest); - error.response = msRest.stripResponse(response); - if (responseBody === '') responseBody = null; - let parsedErrorResponse; - try { - parsedErrorResponse = JSON.parse(responseBody); - if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; - } - if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['CloudError']().mapper(); - error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); - } - } catch (defaultError) { - error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + - `- "${responseBody}" for the default response.`; - return callback(error); - } - return callback(error); - } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['DataLakeAnalyticsAccount']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } - - return callback(null, result, httpRequest, response); - }); -} - - -/** - * Begins the delete delete process for the Data Lake Analytics account object - * specified by the account name. - * - * @param {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. - * - * @param {string} accountName The name of the Data Lake Analytics account to - * delete - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {null} [result] - The deserialized result object if an error did not occur. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _deleteMethod(resourceGroupName, accountName, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - - if (!callback) { - throw new Error('callback cannot be null.'); - } - - // Send request - this.beginDeleteMethod(resourceGroupName, accountName, options, (err, parsedResult, httpRequest, response) => { - if (err) return callback(err); - - let initialResult = new msRest.HttpOperationResponse(); - initialResult.request = httpRequest; - initialResult.response = response; - initialResult.body = response.body; - client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { - if (err) return callback(err); - - // Create Result - let result = null; - - httpRequest = pollingResult.request; - response = pollingResult.response; - let responseBody = pollingResult.body; - if (responseBody === '') responseBody = null; - - // Deserialize Response - - return callback(null, result, httpRequest, response); - }); - }); -} - /** * Creates the specified Data Lake Analytics account. This supplies the user @@ -911,8 +697,9 @@ function _update(resourceGroupName, accountName, options, callback) { }); } + /** - * Begins the delete delete process for the Data Lake Analytics account object + * Begins the delete process for the Data Lake Analytics account object * specified by the account name. * * @param {string} resourceGroupName The name of the Azure resource group that @@ -938,7 +725,73 @@ function _update(resourceGroupName, accountName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginDeleteMethod(resourceGroupName, accountName, options, callback) { +function _deleteMethod(resourceGroupName, accountName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + + if (!callback) { + throw new Error('callback cannot be null.'); + } + + // Send request + this.beginDeleteMethod(resourceGroupName, accountName, options, (err, parsedResult, httpRequest, response) => { + if (err) return callback(err); + + let initialResult = new msRest.HttpOperationResponse(); + initialResult.request = httpRequest; + initialResult.response = response; + initialResult.body = response.body; + client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { + if (err) return callback(err); + + // Create Result + let result = null; + + httpRequest = pollingResult.request; + response = pollingResult.response; + let responseBody = pollingResult.body; + if (responseBody === '') responseBody = null; + + // Deserialize Response + + return callback(null, result, httpRequest, response); + }); + }); +} + +/** + * Gets details of the specified Data Lake Analytics account. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * retrieve. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link DataLakeAnalyticsAccount} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _get(resourceGroupName, accountName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -983,7 +836,7 @@ function _beginDeleteMethod(resourceGroupName, accountName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'DELETE'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1008,7 +861,7 @@ function _beginDeleteMethod(resourceGroupName, accountName, options, callback) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 202 && statusCode !== 204) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -1036,6 +889,23 @@ function _beginDeleteMethod(resourceGroupName, accountName, options, callback) { // Create Result let result = null; if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['DataLakeAnalyticsAccount']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } return callback(null, result, httpRequest, response); }); @@ -1210,7 +1080,7 @@ function _beginCreate(resourceGroupName, accountName, parameters, options, callb return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 201 && statusCode !== 200) { + if (statusCode !== 200 && statusCode !== 201) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -1239,7 +1109,7 @@ function _beginCreate(resourceGroupName, accountName, parameters, options, callb let result = null; if (responseBody === '') responseBody = null; // Deserialize Response - if (statusCode === 201) { + if (statusCode === 200) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); @@ -1256,7 +1126,7 @@ function _beginCreate(resourceGroupName, accountName, parameters, options, callb } } // Deserialize Response - if (statusCode === 200) { + if (statusCode === 201) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); @@ -1432,7 +1302,171 @@ function _beginUpdate(resourceGroupName, accountName, options, callback) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 201) { + if (statusCode !== 200 && statusCode !== 201) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['DataLakeAnalyticsAccount']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + // Deserialize Response + if (statusCode === 201) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['DataLakeAnalyticsAccount']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError1.request = msRest.stripRequest(httpRequest); + deserializationError1.response = msRest.stripResponse(response); + return callback(deserializationError1); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Begins the delete process for the Data Lake Analytics account object + * specified by the account name. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * delete + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _beginDeleteMethod(resourceGroupName, accountName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { + throw new Error('accountName cannot be null or undefined and it must be of type string.'); + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{accountName}', encodeURIComponent(accountName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'DELETE'; + httpRequest.headers = {}; + httpRequest.url = requestUrl; + // Set Headers + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200 && statusCode !== 202 && statusCode !== 204) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -1460,40 +1494,6 @@ function _beginUpdate(resourceGroupName, accountName, options, callback) { // Create Result let result = null; if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['DataLakeAnalyticsAccount']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } - // Deserialize Response - if (statusCode === 201) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['DataLakeAnalyticsAccount']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError1.request = msRest.stripRequest(httpRequest); - deserializationError1.response = msRest.stripResponse(response); - return callback(deserializationError1); - } - } return callback(null, result, httpRequest, response); }); @@ -1757,28 +1757,23 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * Account - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeAnalyticsAccountManagementClient. - * Initializes a new instance of the Account class. - * @constructor - * - * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. - */ +/** Class representing a Account. */ class Account { + /** + * Create a Account. + * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._listByResourceGroup = _listByResourceGroup; this._list = _list; - this._get = _get; - this._deleteMethod = _deleteMethod; this._create = _create; this._update = _update; - this._beginDeleteMethod = _beginDeleteMethod; + this._deleteMethod = _deleteMethod; + this._get = _get; this._beginCreate = _beginCreate; this._beginUpdate = _beginUpdate; + this._beginDeleteMethod = _beginDeleteMethod; this._listByResourceGroupNext = _listByResourceGroupNext; this._listNext = _listNext; } @@ -1916,238 +1911,40 @@ class Account { * * @param {object} [options] Optional Parameters. * - * @param {string} [options.filter] OData filter. Optional. - * - * @param {number} [options.top] The number of items to return. Optional. - * - * @param {number} [options.skip] The number of items to skip over before - * returning elements. Optional. - * - * @param {string} [options.select] OData Select statement. Limits the - * properties on each entry to just those requested, e.g. - * Categories?$select=CategoryName,Description. Optional. - * - * @param {string} [options.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. - * - * @param {boolean} [options.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. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error} - The error object. - */ - listWithHttpOperationResponse(options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._list(options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * 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 {object} [options] Optional Parameters. - * - * @param {string} [options.filter] OData filter. Optional. - * - * @param {number} [options.top] The number of items to return. Optional. - * - * @param {number} [options.skip] The number of items to skip over before - * returning elements. Optional. - * - * @param {string} [options.select] OData Select statement. Limits the - * properties on each entry to just those requested, e.g. - * Categories?$select=CategoryName,Description. Optional. - * - * @param {string} [options.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. - * - * @param {boolean} [options.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. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} If a callback was passed as the last parameter - * then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned - * - * @resolve {DataLakeAnalyticsAccountListResult} - The deserialized result object. - * - * @reject {Error} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link DataLakeAnalyticsAccountListResult} for more - * information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - list(options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._list(options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._list(options, optionalCallback); - } - } - - /** - * Gets details of the specified Data Lake Analytics account. - * - * @param {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. - * - * @param {string} accountName The name of the Data Lake Analytics account to - * retrieve. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error} - The error object. - */ - getWithHttpOperationResponse(resourceGroupName, accountName, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._get(resourceGroupName, accountName, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * Gets details of the specified Data Lake Analytics account. - * - * @param {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. - * - * @param {string} accountName The name of the Data Lake Analytics account to - * retrieve. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} If a callback was passed as the last parameter - * then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned - * - * @resolve {DataLakeAnalyticsAccount} - The deserialized result object. - * - * @reject {Error} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link DataLakeAnalyticsAccount} for more - * information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - get(resourceGroupName, accountName, options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._get(resourceGroupName, accountName, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._get(resourceGroupName, accountName, options, optionalCallback); - } - } - - /** - * Begins the delete delete process for the Data Lake Analytics account object - * specified by the account name. + * @param {string} [options.filter] OData filter. Optional. * - * @param {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. + * @param {number} [options.top] The number of items to return. Optional. * - * @param {string} accountName The name of the Data Lake Analytics account to - * delete + * @param {number} [options.skip] The number of items to skip over before + * returning elements. Optional. * - * @param {object} [options] Optional Parameters. + * @param {string} [options.select] OData Select statement. Limits the + * properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + * + * @param {string} [options.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. + * + * @param {boolean} [options.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. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName, accountName, options) { + listWithHttpOperationResponse(options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, accountName, options, (err, result, request, response) => { + self._list(options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2158,16 +1955,30 @@ class Account { } /** - * Begins the delete delete process for the Data Lake Analytics account object - * specified by the account name. + * 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 {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. + * @param {object} [options] Optional Parameters. * - * @param {string} accountName The name of the Data Lake Analytics account to - * delete + * @param {string} [options.filter] OData filter. Optional. * - * @param {object} [options] Optional Parameters. + * @param {number} [options.top] The number of items to return. Optional. + * + * @param {number} [options.skip] The number of items to skip over before + * returning elements. Optional. + * + * @param {string} [options.select] OData Select statement. Limits the + * properties on each entry to just those requested, e.g. + * Categories?$select=CategoryName,Description. Optional. + * + * @param {string} [options.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. + * + * @param {boolean} [options.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. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -2179,7 +1990,7 @@ class Account { * * {Promise} A promise is returned * - * @resolve {null} - The deserialized result object. + * @resolve {DataLakeAnalyticsAccountListResult} - The deserialized result object. * * @reject {Error} - The error object. * @@ -2187,13 +1998,15 @@ class Account { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link DataLakeAnalyticsAccountListResult} for more + * information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName, accountName, options, optionalCallback) { + list(options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2202,14 +2015,14 @@ class Account { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, accountName, options, (err, result, request, response) => { + self._list(options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._deleteMethod(resourceGroupName, accountName, options, optionalCallback); + return self._list(options, optionalCallback); } } @@ -2588,7 +2401,7 @@ class Account { } /** - * Begins the delete delete process for the Data Lake Analytics account object + * Begins the delete process for the Data Lake Analytics account object * specified by the account name. * * @param {string} resourceGroupName The name of the Azure resource group that @@ -2608,11 +2421,11 @@ class Account { * * @reject {Error} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName, accountName, options) { + deleteMethodWithHttpOperationResponse(resourceGroupName, accountName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginDeleteMethod(resourceGroupName, accountName, options, (err, result, request, response) => { + self._deleteMethod(resourceGroupName, accountName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2623,7 +2436,7 @@ class Account { } /** - * Begins the delete delete process for the Data Lake Analytics account object + * Begins the delete process for the Data Lake Analytics account object * specified by the account name. * * @param {string} resourceGroupName The name of the Azure resource group that @@ -2658,7 +2471,7 @@ class Account { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName, accountName, options, optionalCallback) { + deleteMethod(resourceGroupName, accountName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2667,14 +2480,105 @@ class Account { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginDeleteMethod(resourceGroupName, accountName, options, (err, result, request, response) => { + self._deleteMethod(resourceGroupName, accountName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginDeleteMethod(resourceGroupName, accountName, options, optionalCallback); + return self._deleteMethod(resourceGroupName, accountName, options, optionalCallback); + } + } + + /** + * Gets details of the specified Data Lake Analytics account. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * retrieve. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName, accountName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._get(resourceGroupName, accountName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Gets details of the specified Data Lake Analytics account. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * retrieve. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {DataLakeAnalyticsAccount} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link DataLakeAnalyticsAccount} for more + * information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName, accountName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._get(resourceGroupName, accountName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._get(resourceGroupName, accountName, options, optionalCallback); } } @@ -3052,6 +2956,97 @@ class Account { } } + /** + * Begins the delete process for the Data Lake Analytics account object + * specified by the account name. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * delete + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + beginDeleteMethodWithHttpOperationResponse(resourceGroupName, accountName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._beginDeleteMethod(resourceGroupName, accountName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Begins the delete process for the Data Lake Analytics account object + * specified by the account name. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * delete + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + beginDeleteMethod(resourceGroupName, accountName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._beginDeleteMethod(resourceGroupName, accountName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._beginDeleteMethod(resourceGroupName, accountName, options, optionalCallback); + } + } + /** * 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. diff --git a/lib/services/dataLake.Analytics/lib/account/operations/computePolicies.js b/lib/services/dataLake.Analytics/lib/account/operations/computePolicies.js index 1574151a6b..a6f7173225 100644 --- a/lib/services/dataLake.Analytics/lib/account/operations/computePolicies.js +++ b/lib/services/dataLake.Analytics/lib/account/operations/computePolicies.js @@ -951,17 +951,12 @@ function _listByAccountNext(nextPageLink, options, callback) { }); } -/** - * @class - * ComputePolicies - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeAnalyticsAccountManagementClient. - * Initializes a new instance of the ComputePolicies class. - * @constructor - * - * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. - */ +/** Class representing a ComputePolicies. */ class ComputePolicies { + /** + * Create a ComputePolicies. + * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._createOrUpdate = _createOrUpdate; diff --git a/lib/services/dataLake.Analytics/lib/account/operations/dataLakeStoreAccounts.js b/lib/services/dataLake.Analytics/lib/account/operations/dataLakeStoreAccounts.js index d053186ccb..307a63a787 100644 --- a/lib/services/dataLake.Analytics/lib/account/operations/dataLakeStoreAccounts.js +++ b/lib/services/dataLake.Analytics/lib/account/operations/dataLakeStoreAccounts.js @@ -15,20 +15,26 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Gets the specified Data Lake Store account details in the specified Data - * Lake Analytics account. + * Updates the specified Data Lake Analytics account to include the additional + * Data Lake Store account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve the Data Lake Store account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Data Lake Store account. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to retrieve + * account to add. * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The details of the Data Lake Store + * account. + * + * @param {string} [options.parameters.suffix] the optional suffix for the Data + * Lake Store account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -38,15 +44,13 @@ const WebResource = msRest.WebResource; * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link DataLakeStoreAccountInfo} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _get(resourceGroupName, accountName, dataLakeStoreAccountName, options, callback) { +function _add(resourceGroupName, accountName, dataLakeStoreAccountName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -56,6 +60,7 @@ function _get(resourceGroupName, accountName, dataLakeStoreAccountName, options, if (!callback) { throw new Error('callback cannot be null.'); } + let parameters = (options && options.parameters !== undefined) ? options.parameters : undefined; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -95,7 +100,7 @@ function _get(resourceGroupName, accountName, dataLakeStoreAccountName, options, // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'GET'; + httpRequest.method = 'PUT'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -113,7 +118,21 @@ function _get(resourceGroupName, accountName, dataLakeStoreAccountName, options, } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - httpRequest.body = null; + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['AddDataLakeStoreParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -148,23 +167,6 @@ function _get(resourceGroupName, accountName, dataLakeStoreAccountName, options, // Create Result let result = null; if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['DataLakeStoreAccountInfo']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } return callback(null, result, httpRequest, response); }); @@ -308,26 +310,20 @@ function _deleteMethod(resourceGroupName, accountName, dataLakeStoreAccountName, } /** - * Updates the specified Data Lake Analytics account to include the additional - * Data Lake Store account. + * Gets the specified Data Lake Store account details in the specified Data + * Lake Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Data Lake Store account. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve the Data Lake Store account details. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to add. + * account to retrieve * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The details of the Data Lake Store - * account. - * - * @param {string} [options.parameters.suffix] the optional suffix for the Data - * Lake Store account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -337,13 +333,15 @@ function _deleteMethod(resourceGroupName, accountName, dataLakeStoreAccountName, * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link DataLakeStoreAccountInfo} for more + * information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _add(resourceGroupName, accountName, dataLakeStoreAccountName, options, callback) { +function _get(resourceGroupName, accountName, dataLakeStoreAccountName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -353,7 +351,6 @@ function _add(resourceGroupName, accountName, dataLakeStoreAccountName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let parameters = (options && options.parameters !== undefined) ? options.parameters : undefined; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -393,7 +390,7 @@ function _add(resourceGroupName, accountName, dataLakeStoreAccountName, options, // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'PUT'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -411,21 +408,7 @@ function _add(resourceGroupName, accountName, dataLakeStoreAccountName, options, } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['AddDataLakeStoreParameters']().mapper(); - requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(parameters, null, 2)}.`); - return callback(serializationError); - } - httpRequest.body = requestContent; + httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -460,6 +443,23 @@ function _add(resourceGroupName, accountName, dataLakeStoreAccountName, options, // Create Result let result = null; if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['DataLakeStoreAccountInfo']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } return callback(null, result, httpRequest, response); }); @@ -821,55 +821,56 @@ function _listByAccountNext(nextPageLink, options, callback) { }); } -/** - * @class - * DataLakeStoreAccounts - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeAnalyticsAccountManagementClient. - * Initializes a new instance of the DataLakeStoreAccounts class. - * @constructor - * - * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. - */ +/** Class representing a DataLakeStoreAccounts. */ class DataLakeStoreAccounts { + /** + * Create a DataLakeStoreAccounts. + * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; - this._get = _get; - this._deleteMethod = _deleteMethod; this._add = _add; + this._deleteMethod = _deleteMethod; + this._get = _get; this._listByAccount = _listByAccount; this._listByAccountNext = _listByAccountNext; } /** - * Gets the specified Data Lake Store account details in the specified Data - * Lake Analytics account. + * Updates the specified Data Lake Analytics account to include the additional + * Data Lake Store account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve the Data Lake Store account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Data Lake Store account. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to retrieve + * account to add. * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The details of the Data Lake Store + * account. + * + * @param {string} [options.parameters.suffix] the optional suffix for the Data + * Lake Store account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - getWithHttpOperationResponse(resourceGroupName, accountName, dataLakeStoreAccountName, options) { + addWithHttpOperationResponse(resourceGroupName, accountName, dataLakeStoreAccountName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._get(resourceGroupName, accountName, dataLakeStoreAccountName, options, (err, result, request, response) => { + self._add(resourceGroupName, accountName, dataLakeStoreAccountName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -880,20 +881,26 @@ class DataLakeStoreAccounts { } /** - * Gets the specified Data Lake Store account details in the specified Data - * Lake Analytics account. + * Updates the specified Data Lake Analytics account to include the additional + * Data Lake Store account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve the Data Lake Store account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Data Lake Store account. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to retrieve + * account to add. * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The details of the Data Lake Store + * account. + * + * @param {string} [options.parameters.suffix] the optional suffix for the Data + * Lake Store account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -904,7 +911,7 @@ class DataLakeStoreAccounts { * * {Promise} A promise is returned * - * @resolve {DataLakeStoreAccountInfo} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error} - The error object. * @@ -912,15 +919,13 @@ class DataLakeStoreAccounts { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link DataLakeStoreAccountInfo} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName, accountName, dataLakeStoreAccountName, options, optionalCallback) { + add(resourceGroupName, accountName, dataLakeStoreAccountName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -929,14 +934,14 @@ class DataLakeStoreAccounts { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._get(resourceGroupName, accountName, dataLakeStoreAccountName, options, (err, result, request, response) => { + self._add(resourceGroupName, accountName, dataLakeStoreAccountName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._get(resourceGroupName, accountName, dataLakeStoreAccountName, options, optionalCallback); + return self._add(resourceGroupName, accountName, dataLakeStoreAccountName, options, optionalCallback); } } @@ -1038,40 +1043,34 @@ class DataLakeStoreAccounts { } /** - * Updates the specified Data Lake Analytics account to include the additional - * Data Lake Store account. + * Gets the specified Data Lake Store account details in the specified Data + * Lake Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Data Lake Store account. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve the Data Lake Store account details. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to add. + * account to retrieve * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The details of the Data Lake Store - * account. - * - * @param {string} [options.parameters.suffix] the optional suffix for the Data - * Lake Store account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - addWithHttpOperationResponse(resourceGroupName, accountName, dataLakeStoreAccountName, options) { + getWithHttpOperationResponse(resourceGroupName, accountName, dataLakeStoreAccountName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._add(resourceGroupName, accountName, dataLakeStoreAccountName, options, (err, result, request, response) => { + self._get(resourceGroupName, accountName, dataLakeStoreAccountName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -1082,26 +1081,20 @@ class DataLakeStoreAccounts { } /** - * Updates the specified Data Lake Analytics account to include the additional - * Data Lake Store account. + * Gets the specified Data Lake Store account details in the specified Data + * Lake Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Data Lake Store account. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve the Data Lake Store account details. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to add. + * account to retrieve * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The details of the Data Lake Store - * account. - * - * @param {string} [options.parameters.suffix] the optional suffix for the Data - * Lake Store account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1112,7 +1105,7 @@ class DataLakeStoreAccounts { * * {Promise} A promise is returned * - * @resolve {null} - The deserialized result object. + * @resolve {DataLakeStoreAccountInfo} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1120,13 +1113,15 @@ class DataLakeStoreAccounts { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link DataLakeStoreAccountInfo} for more + * information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - add(resourceGroupName, accountName, dataLakeStoreAccountName, options, optionalCallback) { + get(resourceGroupName, accountName, dataLakeStoreAccountName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -1135,14 +1130,14 @@ class DataLakeStoreAccounts { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._add(resourceGroupName, accountName, dataLakeStoreAccountName, options, (err, result, request, response) => { + self._get(resourceGroupName, accountName, dataLakeStoreAccountName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._add(resourceGroupName, accountName, dataLakeStoreAccountName, options, optionalCallback); + return self._get(resourceGroupName, accountName, dataLakeStoreAccountName, options, optionalCallback); } } diff --git a/lib/services/dataLake.Analytics/lib/account/operations/firewallRules.js b/lib/services/dataLake.Analytics/lib/account/operations/firewallRules.js index b4b6d7bc5a..da1dcf76ac 100644 --- a/lib/services/dataLake.Analytics/lib/account/operations/firewallRules.js +++ b/lib/services/dataLake.Analytics/lib/account/operations/firewallRules.js @@ -945,17 +945,12 @@ function _listByAccountNext(nextPageLink, options, callback) { }); } -/** - * @class - * FirewallRules - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeAnalyticsAccountManagementClient. - * Initializes a new instance of the FirewallRules class. - * @constructor - * - * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. - */ +/** Class representing a FirewallRules. */ class FirewallRules { + /** + * Create a FirewallRules. + * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._createOrUpdate = _createOrUpdate; diff --git a/lib/services/dataLake.Analytics/lib/account/operations/index.d.ts b/lib/services/dataLake.Analytics/lib/account/operations/index.d.ts index 73ba4ccba1..4b59e27155 100644 --- a/lib/services/dataLake.Analytics/lib/account/operations/index.d.ts +++ b/lib/services/dataLake.Analytics/lib/account/operations/index.d.ts @@ -946,17 +946,26 @@ export interface StorageAccounts { /** - * Gets the specified Azure Storage account linked to the given Data Lake - * Analytics account. + * Updates the specified Data Lake Analytics account to add an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve Azure storage account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Azure Storage account. * - * @param {string} storageAccountName The name of the Azure Storage account for - * which to retrieve the details. + * @param {string} storageAccountName The name of the Azure Storage account to + * add + * + * @param {object} parameters The parameters containing the access key and + * optional suffix for the Azure Storage Account. + * + * @param {string} parameters.accessKey the access key associated with this + * Azure Storage account that will be used to connect to it. + * + * @param {string} [parameters.suffix] the optional suffix for the storage + * account. * * @param {object} [options] Optional Parameters. * @@ -965,24 +974,33 @@ export interface StorageAccounts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + addWithHttpOperationResponse(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: models.AddStorageAccountParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified Azure Storage account linked to the given Data Lake - * Analytics account. + * Updates the specified Data Lake Analytics account to add an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve Azure storage account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Azure Storage account. * - * @param {string} storageAccountName The name of the Azure Storage account for - * which to retrieve the details. + * @param {string} storageAccountName The name of the Azure Storage account to + * add + * + * @param {object} parameters The parameters containing the access key and + * optional suffix for the Azure Storage Account. + * + * @param {string} parameters.accessKey the access key associated with this + * Azure Storage account that will be used to connect to it. + * + * @param {string} [parameters.suffix] the optional suffix for the storage + * account. * * @param {object} [options] Optional Parameters. * @@ -996,7 +1014,7 @@ export interface StorageAccounts { * * {Promise} A promise is returned. * - * @resolve {StorageAccountInfo} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1004,33 +1022,42 @@ export interface StorageAccounts { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {StorageAccountInfo} [result] - The deserialized result object if an error did not occur. - * See {@link StorageAccountInfo} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, accountName: string, storageAccountName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, accountName: string, storageAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: models.AddStorageAccountParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: models.AddStorageAccountParameters, callback: ServiceCallback): void; + add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: models.AddStorageAccountParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates the specified Data Lake Analytics account to remove an Azure Storage - * account. + * Updates the Data Lake Analytics account to replace Azure Storage blob + * account details, such as the access key and/or suffix. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to remove the Azure Storage account. + * @param {string} accountName The name of the Data Lake Analytics account to + * modify storage accounts in * - * @param {string} storageAccountName The name of the Azure Storage account to - * remove + * @param {string} storageAccountName The Azure Storage account to modify * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters containing the access + * key and suffix to update the storage account with, if any. Passing nothing + * results in no change. + * + * @param {string} [options.parameters.accessKey] the updated access key + * associated with this Azure Storage account that will be used to connect to + * it. + * + * @param {string} [options.parameters.suffix] the optional suffix for the + * storage account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1040,23 +1067,33 @@ export interface StorageAccounts { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { parameters? : models.UpdateStorageAccountParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates the specified Data Lake Analytics account to remove an Azure Storage - * account. + * Updates the Data Lake Analytics account to replace Azure Storage blob + * account details, such as the access key and/or suffix. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to remove the Azure Storage account. + * @param {string} accountName The name of the Data Lake Analytics account to + * modify storage accounts in * - * @param {string} storageAccountName The name of the Azure Storage account to - * remove + * @param {string} storageAccountName The Azure Storage account to modify * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters containing the access + * key and suffix to update the storage account with, if any. Passing nothing + * results in no change. + * + * @param {string} [options.parameters.accessKey] the updated access key + * associated with this Azure Storage account that will be used to connect to + * it. + * + * @param {string} [options.parameters.suffix] the optional suffix for the + * storage account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1081,36 +1118,26 @@ export interface StorageAccounts { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { parameters? : models.UpdateStorageAccountParameters, customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, accountName: string, storageAccountName: string, callback: ServiceCallback): void; + update(resourceGroupName: string, accountName: string, storageAccountName: string, options: { parameters? : models.UpdateStorageAccountParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates the Data Lake Analytics account to replace Azure Storage blob - * account details, such as the access key and/or suffix. + * Updates the specified Data Lake Analytics account to remove an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * modify storage accounts in + * @param {string} accountName The name of the Data Lake Analytics account from + * which to remove the Azure Storage account. * - * @param {string} storageAccountName The Azure Storage account to modify + * @param {string} storageAccountName The name of the Azure Storage account to + * remove * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters containing the access - * key and suffix to update the storage account with, if any. Passing nothing - * results in no change. - * - * @param {string} [options.parameters.accessKey] the updated access key - * associated with this Azure Storage account that will be used to connect to - * it. - * - * @param {string} [options.parameters.suffix] the optional suffix for the - * storage account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1120,33 +1147,23 @@ export interface StorageAccounts { * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { parameters? : models.UpdateStorageAccountParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates the Data Lake Analytics account to replace Azure Storage blob - * account details, such as the access key and/or suffix. + * Updates the specified Data Lake Analytics account to remove an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * modify storage accounts in + * @param {string} accountName The name of the Data Lake Analytics account from + * which to remove the Azure Storage account. * - * @param {string} storageAccountName The Azure Storage account to modify + * @param {string} storageAccountName The name of the Azure Storage account to + * remove * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters containing the access - * key and suffix to update the storage account with, if any. Passing nothing - * results in no change. - * - * @param {string} [options.parameters.accessKey] the updated access key - * associated with this Azure Storage account that will be used to connect to - * it. - * - * @param {string} [options.parameters.suffix] the optional suffix for the - * storage account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1171,32 +1188,23 @@ export interface StorageAccounts { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { parameters? : models.UpdateStorageAccountParameters, customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, accountName: string, storageAccountName: string, callback: ServiceCallback): void; - update(resourceGroupName: string, accountName: string, storageAccountName: string, options: { parameters? : models.UpdateStorageAccountParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, storageAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates the specified Data Lake Analytics account to add an Azure Storage - * account. + * Gets the specified Azure Storage account linked to the given Data Lake + * Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Azure Storage account. - * - * @param {string} storageAccountName The name of the Azure Storage account to - * add - * - * @param {object} parameters The parameters containing the access key and - * optional suffix for the Azure Storage Account. - * - * @param {string} parameters.accessKey the access key associated with this - * Azure Storage account that will be used to connect to it. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve Azure storage account details. * - * @param {string} [parameters.suffix] the optional suffix for the storage - * account. + * @param {string} storageAccountName The name of the Azure Storage account for + * which to retrieve the details. * * @param {object} [options] Optional Parameters. * @@ -1205,33 +1213,24 @@ export interface StorageAccounts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - addWithHttpOperationResponse(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: models.AddStorageAccountParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates the specified Data Lake Analytics account to add an Azure Storage - * account. + * Gets the specified Azure Storage account linked to the given Data Lake + * Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Azure Storage account. - * - * @param {string} storageAccountName The name of the Azure Storage account to - * add - * - * @param {object} parameters The parameters containing the access key and - * optional suffix for the Azure Storage Account. - * - * @param {string} parameters.accessKey the access key associated with this - * Azure Storage account that will be used to connect to it. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve Azure storage account details. * - * @param {string} [parameters.suffix] the optional suffix for the storage - * account. + * @param {string} storageAccountName The name of the Azure Storage account for + * which to retrieve the details. * * @param {object} [options] Optional Parameters. * @@ -1245,7 +1244,7 @@ export interface StorageAccounts { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {StorageAccountInfo} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1253,15 +1252,16 @@ export interface StorageAccounts { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {StorageAccountInfo} [result] - The deserialized result object if an error did not occur. + * See {@link StorageAccountInfo} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: models.AddStorageAccountParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: models.AddStorageAccountParameters, callback: ServiceCallback): void; - add(resourceGroupName: string, accountName: string, storageAccountName: string, parameters: models.AddStorageAccountParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, accountName: string, storageAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, accountName: string, storageAccountName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, accountName: string, storageAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1795,46 +1795,58 @@ export interface DataLakeStoreAccounts { /** - * Gets the specified Data Lake Store account details in the specified Data - * Lake Analytics account. + * Updates the specified Data Lake Analytics account to include the additional + * Data Lake Store account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve the Data Lake Store account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Data Lake Store account. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to retrieve + * account to add. * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The details of the Data Lake Store + * account. + * + * @param {string} [options.parameters.suffix] the optional suffix for the Data + * Lake Store account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + addWithHttpOperationResponse(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: { parameters? : models.AddDataLakeStoreParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified Data Lake Store account details in the specified Data - * Lake Analytics account. + * Updates the specified Data Lake Analytics account to include the additional + * Data Lake Store account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve the Data Lake Store account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Data Lake Store account. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to retrieve + * account to add. * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The details of the Data Lake Store + * account. + * + * @param {string} [options.parameters.suffix] the optional suffix for the Data + * Lake Store account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1845,7 +1857,7 @@ export interface DataLakeStoreAccounts { * * {Promise} A promise is returned. * - * @resolve {DataLakeStoreAccountInfo} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1853,17 +1865,15 @@ export interface DataLakeStoreAccounts { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DataLakeStoreAccountInfo} [result] - The deserialized result object if an error did not occur. - * See {@link DataLakeStoreAccountInfo} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: { parameters? : models.AddDataLakeStoreParameters, customHeaders? : { [headerName: string]: string; } }): Promise; + add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, callback: ServiceCallback): void; + add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options: { parameters? : models.AddDataLakeStoreParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1937,58 +1947,46 @@ export interface DataLakeStoreAccounts { /** - * Updates the specified Data Lake Analytics account to include the additional - * Data Lake Store account. + * Gets the specified Data Lake Store account details in the specified Data + * Lake Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Data Lake Store account. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve the Data Lake Store account details. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to add. + * account to retrieve * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The details of the Data Lake Store - * account. - * - * @param {string} [options.parameters.suffix] the optional suffix for the Data - * Lake Store account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - addWithHttpOperationResponse(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: { parameters? : models.AddDataLakeStoreParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates the specified Data Lake Analytics account to include the additional - * Data Lake Store account. + * Gets the specified Data Lake Store account details in the specified Data + * Lake Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Data Lake Store account. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve the Data Lake Store account details. * * @param {string} dataLakeStoreAccountName The name of the Data Lake Store - * account to add. + * account to retrieve * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The details of the Data Lake Store - * account. - * - * @param {string} [options.parameters.suffix] the optional suffix for the Data - * Lake Store account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1999,7 +1997,7 @@ export interface DataLakeStoreAccounts { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {DataLakeStoreAccountInfo} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2007,15 +2005,17 @@ export interface DataLakeStoreAccounts { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {DataLakeStoreAccountInfo} [result] - The deserialized result object if an error did not occur. + * See {@link DataLakeStoreAccountInfo} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: { parameters? : models.AddDataLakeStoreParameters, customHeaders? : { [headerName: string]: string; } }): Promise; - add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, callback: ServiceCallback): void; - add(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options: { parameters? : models.AddDataLakeStoreParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, accountName: string, dataLakeStoreAccountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -2393,134 +2393,6 @@ export interface Account { list(options: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - /** - * Gets details of the specified Data Lake Analytics account. - * - * @param {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. - * - * @param {string} accountName The name of the Data Lake Analytics account to - * retrieve. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - getWithHttpOperationResponse(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Gets details of the specified Data Lake Analytics account. - * - * @param {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. - * - * @param {string} accountName The name of the Data Lake Analytics account to - * retrieve. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {DataLakeAnalyticsAccount} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {DataLakeAnalyticsAccount} [result] - The deserialized result object if an error did not occur. - * See {@link DataLakeAnalyticsAccount} for more - * information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - get(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, accountName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, accountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Begins the delete delete process for the Data Lake Analytics account object - * specified by the account name. - * - * @param {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. - * - * @param {string} accountName The name of the Data Lake Analytics account to - * delete - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Begins the delete delete process for the Data Lake Analytics account object - * specified by the account name. - * - * @param {string} resourceGroupName The name of the Azure resource group that - * contains the Data Lake Analytics account. - * - * @param {string} accountName The name of the Data Lake Analytics account to - * delete - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {null} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {null} [result] - The deserialized result object if an error did not occur. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - deleteMethod(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, accountName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, accountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - /** * Creates the specified Data Lake Analytics account. This supplies the user * with computation services for Data Lake Analytics workloads @@ -2842,7 +2714,7 @@ export interface Account { /** - * Begins the delete delete process for the Data Lake Analytics account object + * Begins the delete process for the Data Lake Analytics account object * specified by the account name. * * @param {string} resourceGroupName The name of the Azure resource group that @@ -2862,10 +2734,10 @@ export interface Account { * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Begins the delete delete process for the Data Lake Analytics account object + * Begins the delete process for the Data Lake Analytics account object * specified by the account name. * * @param {string} resourceGroupName The name of the Azure resource group that @@ -2900,9 +2772,73 @@ export interface Account { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginDeleteMethod(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginDeleteMethod(resourceGroupName: string, accountName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, accountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, accountName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets details of the specified Data Lake Analytics account. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * retrieve. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets details of the specified Data Lake Analytics account. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * retrieve. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {DataLakeAnalyticsAccount} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {DataLakeAnalyticsAccount} [result] - The deserialized result object if an error did not occur. + * See {@link DataLakeAnalyticsAccount} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, accountName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, accountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -3225,6 +3161,70 @@ export interface Account { beginUpdate(resourceGroupName: string, accountName: string, options: { parameters? : models.DataLakeAnalyticsAccountUpdateParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Begins the delete process for the Data Lake Analytics account object + * specified by the account name. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * delete + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Begins the delete process for the Data Lake Analytics account object + * specified by the account name. + * + * @param {string} resourceGroupName The name of the Azure resource group that + * contains the Data Lake Analytics account. + * + * @param {string} accountName The name of the Data Lake Analytics account to + * delete + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginDeleteMethod(resourceGroupName: string, accountName: string, callback: ServiceCallback): void; + beginDeleteMethod(resourceGroupName: string, accountName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * 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. diff --git a/lib/services/dataLake.Analytics/lib/account/operations/storageAccounts.js b/lib/services/dataLake.Analytics/lib/account/operations/storageAccounts.js index 120193fbb0..1c500c537e 100644 --- a/lib/services/dataLake.Analytics/lib/account/operations/storageAccounts.js +++ b/lib/services/dataLake.Analytics/lib/account/operations/storageAccounts.js @@ -15,17 +15,26 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Gets the specified Azure Storage account linked to the given Data Lake - * Analytics account. + * Updates the specified Data Lake Analytics account to add an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve Azure storage account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Azure Storage account. * - * @param {string} storageAccountName The name of the Azure Storage account for - * which to retrieve the details. + * @param {string} storageAccountName The name of the Azure Storage account to + * add + * + * @param {object} parameters The parameters containing the access key and + * optional suffix for the Azure Storage Account. + * + * @param {string} parameters.accessKey the access key associated with this + * Azure Storage account that will be used to connect to it. + * + * @param {string} [parameters.suffix] the optional suffix for the storage + * account. * * @param {object} [options] Optional Parameters. * @@ -38,14 +47,13 @@ const WebResource = msRest.WebResource; * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link StorageAccountInfo} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _get(resourceGroupName, accountName, storageAccountName, options, callback) { +function _add(resourceGroupName, accountName, storageAccountName, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -66,6 +74,9 @@ function _get(resourceGroupName, accountName, storageAccountName, options, callb if (storageAccountName === null || storageAccountName === undefined || typeof storageAccountName.valueOf() !== 'string') { throw new Error('storageAccountName cannot be null or undefined and it must be of type string.'); } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -94,7 +105,7 @@ function _get(resourceGroupName, accountName, storageAccountName, options, callb // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'GET'; + httpRequest.method = 'PUT'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -112,7 +123,21 @@ function _get(resourceGroupName, accountName, storageAccountName, options, callb } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - httpRequest.body = null; + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['AddStorageAccountParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -147,43 +172,36 @@ function _get(resourceGroupName, accountName, storageAccountName, options, callb // Create Result let result = null; if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['StorageAccountInfo']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } return callback(null, result, httpRequest, response); }); } /** - * Updates the specified Data Lake Analytics account to remove an Azure Storage - * account. + * Updates the Data Lake Analytics account to replace Azure Storage blob + * account details, such as the access key and/or suffix. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to remove the Azure Storage account. + * @param {string} accountName The name of the Data Lake Analytics account to + * modify storage accounts in * - * @param {string} storageAccountName The name of the Azure Storage account to - * remove + * @param {string} storageAccountName The Azure Storage account to modify * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters containing the access + * key and suffix to update the storage account with, if any. Passing nothing + * results in no change. + * + * @param {string} [options.parameters.accessKey] the updated access key + * associated with this Azure Storage account that will be used to connect to + * it. + * + * @param {string} [options.parameters.suffix] the optional suffix for the + * storage account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -199,7 +217,7 @@ function _get(resourceGroupName, accountName, storageAccountName, options, callb * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _deleteMethod(resourceGroupName, accountName, storageAccountName, options, callback) { +function _update(resourceGroupName, accountName, storageAccountName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -209,6 +227,7 @@ function _deleteMethod(resourceGroupName, accountName, storageAccountName, optio if (!callback) { throw new Error('callback cannot be null.'); } + let parameters = (options && options.parameters !== undefined) ? options.parameters : undefined; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -248,7 +267,7 @@ function _deleteMethod(resourceGroupName, accountName, storageAccountName, optio // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'DELETE'; + httpRequest.method = 'PATCH'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -266,7 +285,21 @@ function _deleteMethod(resourceGroupName, accountName, storageAccountName, optio } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - httpRequest.body = null; + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['UpdateStorageAccountParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -307,30 +340,20 @@ function _deleteMethod(resourceGroupName, accountName, storageAccountName, optio } /** - * Updates the Data Lake Analytics account to replace Azure Storage blob - * account details, such as the access key and/or suffix. + * Updates the specified Data Lake Analytics account to remove an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * modify storage accounts in + * @param {string} accountName The name of the Data Lake Analytics account from + * which to remove the Azure Storage account. * - * @param {string} storageAccountName The Azure Storage account to modify + * @param {string} storageAccountName The name of the Azure Storage account to + * remove * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters containing the access - * key and suffix to update the storage account with, if any. Passing nothing - * results in no change. - * - * @param {string} [options.parameters.accessKey] the updated access key - * associated with this Azure Storage account that will be used to connect to - * it. - * - * @param {string} [options.parameters.suffix] the optional suffix for the - * storage account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -346,7 +369,7 @@ function _deleteMethod(resourceGroupName, accountName, storageAccountName, optio * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _update(resourceGroupName, accountName, storageAccountName, options, callback) { +function _deleteMethod(resourceGroupName, accountName, storageAccountName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -356,7 +379,6 @@ function _update(resourceGroupName, accountName, storageAccountName, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let parameters = (options && options.parameters !== undefined) ? options.parameters : undefined; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -396,7 +418,7 @@ function _update(resourceGroupName, accountName, storageAccountName, options, ca // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'PATCH'; + httpRequest.method = 'DELETE'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -414,21 +436,7 @@ function _update(resourceGroupName, accountName, storageAccountName, options, ca } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['UpdateStorageAccountParameters']().mapper(); - requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(parameters, null, 2)}.`); - return callback(serializationError); - } - httpRequest.body = requestContent; + httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -469,26 +477,17 @@ function _update(resourceGroupName, accountName, storageAccountName, options, ca } /** - * Updates the specified Data Lake Analytics account to add an Azure Storage - * account. + * Gets the specified Azure Storage account linked to the given Data Lake + * Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Azure Storage account. - * - * @param {string} storageAccountName The name of the Azure Storage account to - * add - * - * @param {object} parameters The parameters containing the access key and - * optional suffix for the Azure Storage Account. - * - * @param {string} parameters.accessKey the access key associated with this - * Azure Storage account that will be used to connect to it. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve Azure storage account details. * - * @param {string} [parameters.suffix] the optional suffix for the storage - * account. + * @param {string} storageAccountName The name of the Azure Storage account for + * which to retrieve the details. * * @param {object} [options] Optional Parameters. * @@ -501,13 +500,14 @@ function _update(resourceGroupName, accountName, storageAccountName, options, ca * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link StorageAccountInfo} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _add(resourceGroupName, accountName, storageAccountName, parameters, options, callback) { +function _get(resourceGroupName, accountName, storageAccountName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -528,9 +528,6 @@ function _add(resourceGroupName, accountName, storageAccountName, parameters, op if (storageAccountName === null || storageAccountName === undefined || typeof storageAccountName.valueOf() !== 'string') { throw new Error('storageAccountName cannot be null or undefined and it must be of type string.'); } - if (parameters === null || parameters === undefined) { - throw new Error('parameters cannot be null or undefined.'); - } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -559,7 +556,7 @@ function _add(resourceGroupName, accountName, storageAccountName, parameters, op // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'PUT'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -577,21 +574,7 @@ function _add(resourceGroupName, accountName, storageAccountName, parameters, op } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['AddStorageAccountParameters']().mapper(); - requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(parameters, null, 2)}.`); - return callback(serializationError); - } - httpRequest.body = requestContent; + httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -626,6 +609,23 @@ function _add(resourceGroupName, accountName, storageAccountName, parameters, op // Create Result let result = null; if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['StorageAccountInfo']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } return callback(null, result, httpRequest, response); }); @@ -1726,23 +1726,18 @@ function _listByAccountNext(nextPageLink, options, callback) { }); } -/** - * @class - * StorageAccounts - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeAnalyticsAccountManagementClient. - * Initializes a new instance of the StorageAccounts class. - * @constructor - * - * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. - */ +/** Class representing a StorageAccounts. */ class StorageAccounts { + /** + * Create a StorageAccounts. + * @param {DataLakeAnalyticsAccountManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; - this._get = _get; - this._deleteMethod = _deleteMethod; - this._update = _update; this._add = _add; + this._update = _update; + this._deleteMethod = _deleteMethod; + this._get = _get; this._getStorageContainer = _getStorageContainer; this._listStorageContainers = _listStorageContainers; this._listSasTokens = _listSasTokens; @@ -1753,17 +1748,26 @@ class StorageAccounts { } /** - * Gets the specified Azure Storage account linked to the given Data Lake - * Analytics account. + * Updates the specified Data Lake Analytics account to add an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve Azure storage account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Azure Storage account. * - * @param {string} storageAccountName The name of the Azure Storage account for - * which to retrieve the details. + * @param {string} storageAccountName The name of the Azure Storage account to + * add + * + * @param {object} parameters The parameters containing the access key and + * optional suffix for the Azure Storage Account. + * + * @param {string} parameters.accessKey the access key associated with this + * Azure Storage account that will be used to connect to it. + * + * @param {string} [parameters.suffix] the optional suffix for the storage + * account. * * @param {object} [options] Optional Parameters. * @@ -1772,15 +1776,15 @@ class StorageAccounts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - getWithHttpOperationResponse(resourceGroupName, accountName, storageAccountName, options) { + addWithHttpOperationResponse(resourceGroupName, accountName, storageAccountName, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._get(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { + self._add(resourceGroupName, accountName, storageAccountName, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -1791,17 +1795,26 @@ class StorageAccounts { } /** - * Gets the specified Azure Storage account linked to the given Data Lake - * Analytics account. + * Updates the specified Data Lake Analytics account to add an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to retrieve Azure storage account details. + * @param {string} accountName The name of the Data Lake Analytics account to + * which to add the Azure Storage account. * - * @param {string} storageAccountName The name of the Azure Storage account for - * which to retrieve the details. + * @param {string} storageAccountName The name of the Azure Storage account to + * add + * + * @param {object} parameters The parameters containing the access key and + * optional suffix for the Azure Storage Account. + * + * @param {string} parameters.accessKey the access key associated with this + * Azure Storage account that will be used to connect to it. + * + * @param {string} [parameters.suffix] the optional suffix for the storage + * account. * * @param {object} [options] Optional Parameters. * @@ -1815,7 +1828,7 @@ class StorageAccounts { * * {Promise} A promise is returned * - * @resolve {StorageAccountInfo} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error} - The error object. * @@ -1823,14 +1836,13 @@ class StorageAccounts { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link StorageAccountInfo} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName, accountName, storageAccountName, options, optionalCallback) { + add(resourceGroupName, accountName, storageAccountName, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -1839,32 +1851,42 @@ class StorageAccounts { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._get(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { + self._add(resourceGroupName, accountName, storageAccountName, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._get(resourceGroupName, accountName, storageAccountName, options, optionalCallback); + return self._add(resourceGroupName, accountName, storageAccountName, parameters, options, optionalCallback); } } /** - * Updates the specified Data Lake Analytics account to remove an Azure Storage - * account. + * Updates the Data Lake Analytics account to replace Azure Storage blob + * account details, such as the access key and/or suffix. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to remove the Azure Storage account. + * @param {string} accountName The name of the Data Lake Analytics account to + * modify storage accounts in * - * @param {string} storageAccountName The name of the Azure Storage account to - * remove + * @param {string} storageAccountName The Azure Storage account to modify * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters containing the access + * key and suffix to update the storage account with, if any. Passing nothing + * results in no change. + * + * @param {string} [options.parameters.accessKey] the updated access key + * associated with this Azure Storage account that will be used to connect to + * it. + * + * @param {string} [options.parameters.suffix] the optional suffix for the + * storage account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1874,11 +1896,11 @@ class StorageAccounts { * * @reject {Error} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName, accountName, storageAccountName, options) { + updateWithHttpOperationResponse(resourceGroupName, accountName, storageAccountName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { + self._update(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -1889,20 +1911,30 @@ class StorageAccounts { } /** - * Updates the specified Data Lake Analytics account to remove an Azure Storage - * account. + * Updates the Data Lake Analytics account to replace Azure Storage blob + * account details, such as the access key and/or suffix. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account from - * which to remove the Azure Storage account. + * @param {string} accountName The name of the Data Lake Analytics account to + * modify storage accounts in * - * @param {string} storageAccountName The name of the Azure Storage account to - * remove + * @param {string} storageAccountName The Azure Storage account to modify * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters containing the access + * key and suffix to update the storage account with, if any. Passing nothing + * results in no change. + * + * @param {string} [options.parameters.accessKey] the updated access key + * associated with this Azure Storage account that will be used to connect to + * it. + * + * @param {string} [options.parameters.suffix] the optional suffix for the + * storage account. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1927,7 +1959,7 @@ class StorageAccounts { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName, accountName, storageAccountName, options, optionalCallback) { + update(resourceGroupName, accountName, storageAccountName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -1936,42 +1968,32 @@ class StorageAccounts { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { + self._update(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._deleteMethod(resourceGroupName, accountName, storageAccountName, options, optionalCallback); + return self._update(resourceGroupName, accountName, storageAccountName, options, optionalCallback); } } /** - * Updates the Data Lake Analytics account to replace Azure Storage blob - * account details, such as the access key and/or suffix. + * Updates the specified Data Lake Analytics account to remove an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * modify storage accounts in + * @param {string} accountName The name of the Data Lake Analytics account from + * which to remove the Azure Storage account. * - * @param {string} storageAccountName The Azure Storage account to modify + * @param {string} storageAccountName The name of the Azure Storage account to + * remove * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters containing the access - * key and suffix to update the storage account with, if any. Passing nothing - * results in no change. - * - * @param {string} [options.parameters.accessKey] the updated access key - * associated with this Azure Storage account that will be used to connect to - * it. - * - * @param {string} [options.parameters.suffix] the optional suffix for the - * storage account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1981,11 +2003,11 @@ class StorageAccounts { * * @reject {Error} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName, accountName, storageAccountName, options) { + deleteMethodWithHttpOperationResponse(resourceGroupName, accountName, storageAccountName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._update(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { + self._deleteMethod(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -1996,30 +2018,20 @@ class StorageAccounts { } /** - * Updates the Data Lake Analytics account to replace Azure Storage blob - * account details, such as the access key and/or suffix. + * Updates the specified Data Lake Analytics account to remove an Azure Storage + * account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * modify storage accounts in + * @param {string} accountName The name of the Data Lake Analytics account from + * which to remove the Azure Storage account. * - * @param {string} storageAccountName The Azure Storage account to modify + * @param {string} storageAccountName The name of the Azure Storage account to + * remove * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters containing the access - * key and suffix to update the storage account with, if any. Passing nothing - * results in no change. - * - * @param {string} [options.parameters.accessKey] the updated access key - * associated with this Azure Storage account that will be used to connect to - * it. - * - * @param {string} [options.parameters.suffix] the optional suffix for the - * storage account. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2044,7 +2056,7 @@ class StorageAccounts { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName, accountName, storageAccountName, options, optionalCallback) { + deleteMethod(resourceGroupName, accountName, storageAccountName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2053,38 +2065,29 @@ class StorageAccounts { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._update(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { + self._deleteMethod(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._update(resourceGroupName, accountName, storageAccountName, options, optionalCallback); + return self._deleteMethod(resourceGroupName, accountName, storageAccountName, options, optionalCallback); } } /** - * Updates the specified Data Lake Analytics account to add an Azure Storage - * account. + * Gets the specified Azure Storage account linked to the given Data Lake + * Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Azure Storage account. - * - * @param {string} storageAccountName The name of the Azure Storage account to - * add - * - * @param {object} parameters The parameters containing the access key and - * optional suffix for the Azure Storage Account. - * - * @param {string} parameters.accessKey the access key associated with this - * Azure Storage account that will be used to connect to it. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve Azure storage account details. * - * @param {string} [parameters.suffix] the optional suffix for the storage - * account. + * @param {string} storageAccountName The name of the Azure Storage account for + * which to retrieve the details. * * @param {object} [options] Optional Parameters. * @@ -2093,15 +2096,15 @@ class StorageAccounts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - addWithHttpOperationResponse(resourceGroupName, accountName, storageAccountName, parameters, options) { + getWithHttpOperationResponse(resourceGroupName, accountName, storageAccountName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._add(resourceGroupName, accountName, storageAccountName, parameters, options, (err, result, request, response) => { + self._get(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2112,26 +2115,17 @@ class StorageAccounts { } /** - * Updates the specified Data Lake Analytics account to add an Azure Storage - * account. + * Gets the specified Azure Storage account linked to the given Data Lake + * Analytics account. * * @param {string} resourceGroupName The name of the Azure resource group that * contains the Data Lake Analytics account. * - * @param {string} accountName The name of the Data Lake Analytics account to - * which to add the Azure Storage account. - * - * @param {string} storageAccountName The name of the Azure Storage account to - * add - * - * @param {object} parameters The parameters containing the access key and - * optional suffix for the Azure Storage Account. - * - * @param {string} parameters.accessKey the access key associated with this - * Azure Storage account that will be used to connect to it. + * @param {string} accountName The name of the Data Lake Analytics account from + * which to retrieve Azure storage account details. * - * @param {string} [parameters.suffix] the optional suffix for the storage - * account. + * @param {string} storageAccountName The name of the Azure Storage account for + * which to retrieve the details. * * @param {object} [options] Optional Parameters. * @@ -2145,7 +2139,7 @@ class StorageAccounts { * * {Promise} A promise is returned * - * @resolve {null} - The deserialized result object. + * @resolve {StorageAccountInfo} - The deserialized result object. * * @reject {Error} - The error object. * @@ -2153,13 +2147,14 @@ class StorageAccounts { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link StorageAccountInfo} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - add(resourceGroupName, accountName, storageAccountName, parameters, options, optionalCallback) { + get(resourceGroupName, accountName, storageAccountName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2168,14 +2163,14 @@ class StorageAccounts { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._add(resourceGroupName, accountName, storageAccountName, parameters, options, (err, result, request, response) => { + self._get(resourceGroupName, accountName, storageAccountName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._add(resourceGroupName, accountName, storageAccountName, parameters, options, optionalCallback); + return self._get(resourceGroupName, accountName, storageAccountName, options, optionalCallback); } } diff --git a/lib/services/dataLake.Analytics/lib/catalog/dataLakeAnalyticsCatalogManagementClient.d.ts b/lib/services/dataLake.Analytics/lib/catalog/dataLakeAnalyticsCatalogManagementClient.d.ts index 16d1967fe8..e4fea895d3 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/dataLakeAnalyticsCatalogManagementClient.d.ts +++ b/lib/services/dataLake.Analytics/lib/catalog/dataLakeAnalyticsCatalogManagementClient.d.ts @@ -8,10 +8,37 @@ * regenerated. */ -import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { ServiceClient, ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; import * as operations from "./operations"; -declare class DataLakeAnalyticsCatalogManagementClient { +/** + * DataLakeAnalyticsCatalogManagementClientOptions for DataLakeAnalyticsCatalogManagementClient. + */ +declare interface DataLakeAnalyticsCatalogManagementClientOptions extends ServiceClientOptions { + /** + * @property {string} [apiVersion] - Client Api Version. + */ + apiVersion?: String; + /** + * @property {string} [adlaCatalogDnsSuffix] - Gets the DNS suffix used as the base for all Azure Data Lake Analytics Catalog service requests. + */ + adlaCatalogDnsSuffix?: String; + /** + * @property {string} [acceptLanguage] - Gets or sets the preferred language for the response. + */ + acceptLanguage?: String; + /** + * @property {number} [longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + */ + longRunningOperationRetryTimeout?: Number; + /** + * @property {boolean} [generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ + generateClientRequestId?: Boolean; + } + +declare class DataLakeAnalyticsCatalogManagementClient extends AzureServiceClient { /** * Initializes a new instance of the DataLakeAnalyticsCatalogManagementClient class. * @constructor @@ -39,7 +66,7 @@ declare class DataLakeAnalyticsCatalogManagementClient { * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ - constructor(credentials: ServiceClientCredentials, options?: ServiceClientOptions); + constructor(credentials: ServiceClientCredentials, options?: DataLakeAnalyticsCatalogManagementClientOptions); credentials: ServiceClientCredentials; diff --git a/lib/services/dataLake.Analytics/lib/catalog/dataLakeAnalyticsCatalogManagementClient.js b/lib/services/dataLake.Analytics/lib/catalog/dataLakeAnalyticsCatalogManagementClient.js index 86ac096604..9217c43753 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/dataLakeAnalyticsCatalogManagementClient.js +++ b/lib/services/dataLake.Analytics/lib/catalog/dataLakeAnalyticsCatalogManagementClient.js @@ -22,34 +22,22 @@ const models = require('./models'); const operations = require('./operations'); -/** - * @class - * Initializes a new instance of the DataLakeAnalyticsCatalogManagementClient class. - * @constructor - * - * @param {credentials} credentials - Credentials needed for the client to connect to Azure. - * - * @param {object} [options] - The parameter options - * - * @param {Array} [options.filters] - Filters to be added to the request pipeline - * - * @param {object} [options.requestOptions] - Options for the underlying request object - * {@link https://github.com/request/request#requestoptions-callback Options doc} - * - * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * - * @param {string} [options.apiVersion] - Client Api Version. - * - * @param {string} [options.adlaCatalogDnsSuffix] - Gets the DNS suffix used as the base for all Azure Data Lake Analytics Catalog service requests. - * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. - * - */ +/** Class representing a DataLakeAnalyticsCatalogManagementClient. */ class DataLakeAnalyticsCatalogManagementClient extends ServiceClient { + /** + * Create a DataLakeAnalyticsCatalogManagementClient. + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. + * @param {object} [options] - The parameter options + * @param {Array} [options.filters] - Filters to be added to the request pipeline + * @param {object} [options.requestOptions] - Options for the underlying request object + * {@link https://github.com/request/request#requestoptions-callback Options doc} + * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy + * @param {string} [options.apiVersion] - Client Api Version. + * @param {string} [options.adlaCatalogDnsSuffix] - Gets the DNS suffix used as the base for all Azure Data Lake Analytics Catalog service requests. + * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ constructor(credentials, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/catalogItem.js b/lib/services/dataLake.Analytics/lib/catalog/models/catalogItem.js index eef29dcf3a..0aa8713079 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/catalogItem.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/catalogItem.js @@ -11,18 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the CatalogItem class. - * @constructor * A Data Lake Analytics catalog item. * - * @member {string} [computeAccountName] the name of the Data Lake Analytics - * account. - * - * @member {uuid} [version] the version of the catalog item. - * */ class CatalogItem { + /** + * Create a CatalogItem. + * @member {string} [computeAccountName] the name of the Data Lake Analytics + * account. + * @member {uuid} [version] the version of the catalog item. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/catalogItemList.js b/lib/services/dataLake.Analytics/lib/catalog/models/catalogItemList.js index 347c9353c0..695203b604 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/catalogItemList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/catalogItemList.js @@ -11,15 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the CatalogItemList class. - * @constructor * A Data Lake Analytics catalog item list. * - * @member {string} [nextLink] the link to the next page of results. - * */ class CatalogItemList { + /** + * Create a CatalogItemList. + * @member {string} [nextLink] the link to the next page of results. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialCreateParameters.js b/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialCreateParameters.js index 3edac9424d..a684d7fba4 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialCreateParameters.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialCreateParameters.js @@ -11,22 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeAnalyticsCatalogCredentialCreateParameters class. - * @constructor * Data Lake Analytics catalog credential creation parameters. * - * @member {string} password the password for the credential and user with - * access to the data source. - * - * @member {string} uri the URI identifier for the data source this credential - * can connect to in the format : - * - * @member {string} userId the object identifier for the user associated with - * this credential with access to the data source. - * */ class DataLakeAnalyticsCatalogCredentialCreateParameters { + /** + * Create a DataLakeAnalyticsCatalogCredentialCreateParameters. + * @member {string} password the password for the credential and user with + * access to the data source. + * @member {string} uri the URI identifier for the data source this + * credential can connect to in the format : + * @member {string} userId the object identifier for the user associated with + * this credential with access to the data source. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialDeleteParameters.js b/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialDeleteParameters.js index cbe3377de6..c46829b471 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialDeleteParameters.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialDeleteParameters.js @@ -11,17 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeAnalyticsCatalogCredentialDeleteParameters class. - * @constructor * Data Lake Analytics catalog credential deletion parameters. * - * @member {string} [password] the current password for the credential and user - * with access to the data source. This is required if the requester is not the - * account owner. - * */ class DataLakeAnalyticsCatalogCredentialDeleteParameters { + /** + * Create a DataLakeAnalyticsCatalogCredentialDeleteParameters. + * @member {string} [password] the current password for the credential and + * user with access to the data source. This is required if the requester is + * not the account owner. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialUpdateParameters.js b/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialUpdateParameters.js index 1125b2fcbe..6258f31fd4 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialUpdateParameters.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogCredentialUpdateParameters.js @@ -11,26 +11,22 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeAnalyticsCatalogCredentialUpdateParameters class. - * @constructor * Data Lake Analytics catalog credential update parameters. * - * @member {string} [password] the current password for the credential and user - * with access to the data source. This is required if the requester is not the - * account owner. - * - * @member {string} [newPassword] the new password for the credential and user - * with access to the data source. - * - * @member {string} [uri] the URI identifier for the data source this - * credential can connect to in the format : - * - * @member {string} [userId] the object identifier for the user associated with - * this credential with access to the data source. - * */ class DataLakeAnalyticsCatalogCredentialUpdateParameters { + /** + * Create a DataLakeAnalyticsCatalogCredentialUpdateParameters. + * @member {string} [password] the current password for the credential and + * user with access to the data source. This is required if the requester is + * not the account owner. + * @member {string} [newPassword] the new password for the credential and + * user with access to the data source. + * @member {string} [uri] the URI identifier for the data source this + * credential can connect to in the format : + * @member {string} [userId] the object identifier for the user associated + * with this credential with access to the data source. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogSecretCreateOrUpdateParameters.js b/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogSecretCreateOrUpdateParameters.js index 92c6fa1561..59c90e323a 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogSecretCreateOrUpdateParameters.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/dataLakeAnalyticsCatalogSecretCreateOrUpdateParameters.js @@ -11,20 +11,18 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters class. - * @constructor * Data Lake Analytics catalog secret creation and update parameters. This is * deprecated and will be removed in the next release. Please use * DataLakeAnalyticsCatalogCredentialCreateOrUpdateParameters instead. * - * @member {string} password the password for the secret to pass in - * - * @member {string} [uri] the URI identifier for the secret in the format - * : - * */ class DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters { + /** + * Create a DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters. + * @member {string} password the password for the secret to pass in + * @member {string} [uri] the URI identifier for the secret in the format + * : + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/ddlName.js b/lib/services/dataLake.Analytics/lib/catalog/models/ddlName.js index c2c6dd99ae..afcb480424 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/ddlName.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/ddlName.js @@ -11,25 +11,21 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DdlName class. - * @constructor * A Data Lake Analytics DDL name item. * - * @member {string} [firstPart] the name of the table associated with this - * database and schema. - * - * @member {string} [secondPart] the name of the table associated with this - * database and schema. - * - * @member {string} [thirdPart] the name of the table associated with this - * database and schema. - * - * @member {string} [server] the name of the table associated with this - * database and schema. - * */ class DdlName { + /** + * Create a DdlName. + * @member {string} [firstPart] the name of the table associated with this + * database and schema. + * @member {string} [secondPart] the name of the table associated with this + * database and schema. + * @member {string} [thirdPart] the name of the table associated with this + * database and schema. + * @member {string} [server] the name of the table associated with this + * database and schema. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/entityId.js b/lib/services/dataLake.Analytics/lib/catalog/models/entityId.js index 9678f24927..1e90820ba6 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/entityId.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/entityId.js @@ -13,30 +13,24 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the EntityId class. - * @constructor * A Data Lake Analytics catalog entity identifier object. * - * @member {object} [name] the name of the external table associated with this - * database, schema and table. - * - * @member {string} [name.firstPart] the name of the table associated with this - * database and schema. - * - * @member {string} [name.secondPart] the name of the table associated with - * this database and schema. - * - * @member {string} [name.thirdPart] the name of the table associated with this - * database and schema. - * - * @member {string} [name.server] the name of the table associated with this - * database and schema. - * - * @member {uuid} [version] the version of the external data source. - * */ class EntityId { + /** + * Create a EntityId. + * @member {object} [name] the name of the external table associated with + * this database, schema and table. + * @member {string} [name.firstPart] the name of the table associated with + * this database and schema. + * @member {string} [name.secondPart] the name of the table associated with + * this database and schema. + * @member {string} [name.thirdPart] the name of the table associated with + * this database and schema. + * @member {string} [name.server] the name of the table associated with this + * database and schema. + * @member {uuid} [version] the version of the external data source. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/externalTable.js b/lib/services/dataLake.Analytics/lib/catalog/models/externalTable.js index 089964e8ae..c8c6ced666 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/externalTable.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/externalTable.js @@ -13,36 +13,29 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ExternalTable class. - * @constructor * A Data Lake Analytics catalog external table item. * - * @member {string} [tableName] the name of the table associated with this - * database and schema. - * - * @member {object} [dataSource] the data source associated with this external - * table. - * - * @member {object} [dataSource.name] the name of the external table associated - * with this database, schema and table. - * - * @member {string} [dataSource.name.firstPart] the name of the table - * associated with this database and schema. - * - * @member {string} [dataSource.name.secondPart] the name of the table - * associated with this database and schema. - * - * @member {string} [dataSource.name.thirdPart] the name of the table - * associated with this database and schema. - * - * @member {string} [dataSource.name.server] the name of the table associated - * with this database and schema. - * - * @member {uuid} [dataSource.version] the version of the external data source. - * */ class ExternalTable { + /** + * Create a ExternalTable. + * @member {string} [tableName] the name of the table associated with this + * database and schema. + * @member {object} [dataSource] the data source associated with this + * external table. + * @member {object} [dataSource.name] the name of the external table + * associated with this database, schema and table. + * @member {string} [dataSource.name.firstPart] the name of the table + * associated with this database and schema. + * @member {string} [dataSource.name.secondPart] the name of the table + * associated with this database and schema. + * @member {string} [dataSource.name.thirdPart] the name of the table + * associated with this database and schema. + * @member {string} [dataSource.name.server] the name of the table associated + * with this database and schema. + * @member {uuid} [dataSource.version] the version of the external data + * source. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/index.d.ts b/lib/services/dataLake.Analytics/lib/catalog/models/index.d.ts index 36a8441cae..2095097acf 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/index.d.ts +++ b/lib/services/dataLake.Analytics/lib/catalog/models/index.d.ts @@ -10,6 +10,7 @@ import { BaseResource } from 'ms-rest-azure'; import { CloudError } from 'ms-rest-azure'; +import * as moment from 'moment'; export { BaseResource } from 'ms-rest-azure'; export { CloudError } from 'ms-rest-azure'; @@ -24,10 +25,8 @@ export { CloudError } from 'ms-rest-azure'; * DataLakeAnalyticsCatalogCredentialCreateOrUpdateParameters instead. * * @member {string} password the password for the secret to pass in - * * @member {string} [uri] the URI identifier for the secret in the format * : - * */ export interface DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters { password: string; @@ -42,13 +41,10 @@ export interface DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters { * * @member {string} password the password for the credential and user with * access to the data source. - * * @member {string} uri the URI identifier for the data source this credential * can connect to in the format : - * * @member {string} userId the object identifier for the user associated with * this credential with access to the data source. - * */ export interface DataLakeAnalyticsCatalogCredentialCreateParameters { password: string; @@ -65,7 +61,6 @@ export interface DataLakeAnalyticsCatalogCredentialCreateParameters { * @member {string} [password] the current password for the credential and user * with access to the data source. This is required if the requester is not the * account owner. - * */ export interface DataLakeAnalyticsCatalogCredentialDeleteParameters { password?: string; @@ -80,16 +75,12 @@ export interface DataLakeAnalyticsCatalogCredentialDeleteParameters { * @member {string} [password] the current password for the credential and user * with access to the data source. This is required if the requester is not the * account owner. - * * @member {string} [newPassword] the new password for the credential and user * with access to the data source. - * * @member {string} [uri] the URI identifier for the data source this * credential can connect to in the format : - * * @member {string} [userId] the object identifier for the user associated with * this credential with access to the data source. - * */ export interface DataLakeAnalyticsCatalogCredentialUpdateParameters { password?: string; @@ -106,9 +97,7 @@ export interface DataLakeAnalyticsCatalogCredentialUpdateParameters { * * @member {string} [computeAccountName] the name of the Data Lake Analytics * account. - * * @member {uuid} [version] the version of the catalog item. - * */ export interface CatalogItem { computeAccountName?: string; @@ -122,17 +111,12 @@ export interface CatalogItem { * A Data Lake Analytics catalog U-SQL secret item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [name] the name of the secret. - * * @member {date} [creationTime] the creation time of the credential object. * This is the only information returned about a secret from a GET. - * * @member {string} [uri] the URI identifier for the secret in the format * : - * * @member {string} [password] the password for the secret to pass in - * */ export interface USqlSecret extends CatalogItem { databaseName?: string; @@ -149,18 +133,13 @@ export interface USqlSecret extends CatalogItem { * A Data Lake Analytics catalog U-SQL external datasource item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [name] the name of the external data source. - * * @member {string} [provider] the name of the provider for the external data * source. - * * @member {string} [providerString] the name of the provider string for the * external data source. - * * @member {array} [pushdownTypes] the list of types to push down from the * external data source. - * */ export interface USqlExternalDataSource extends CatalogItem { databaseName?: string; @@ -177,7 +156,6 @@ export interface USqlExternalDataSource extends CatalogItem { * A Data Lake Analytics catalog item list. * * @member {string} [nextLink] the link to the next page of results. - * */ export interface CatalogItemList { nextLink?: string; @@ -190,7 +168,6 @@ export interface CatalogItemList { * A Data Lake Analytics catalog U-SQL external datasource item list. * * @member {array} [value] the list of external data sources in the database - * */ export interface USqlExternalDataSourceList extends CatalogItemList { readonly value?: USqlExternalDataSource[]; @@ -203,7 +180,6 @@ export interface USqlExternalDataSourceList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL credential item. * * @member {string} [name] the name of the credential. - * */ export interface USqlCredential extends CatalogItem { name?: string; @@ -216,7 +192,6 @@ export interface USqlCredential extends CatalogItem { * A Data Lake Analytics catalog U-SQL credential item list. * * @member {array} [value] the list of credentials in the database - * */ export interface USqlCredentialList extends CatalogItemList { readonly value?: USqlCredential[]; @@ -229,14 +204,10 @@ export interface USqlCredentialList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL procedure item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [schemaName] the name of the schema associated with this * procedure and database. - * * @member {string} [name] the name of the procedure. - * * @member {string} [definition] the defined query of the procedure. - * */ export interface USqlProcedure extends CatalogItem { databaseName?: string; @@ -253,7 +224,6 @@ export interface USqlProcedure extends CatalogItem { * * @member {array} [value] the list of procedure in the database and schema * combination - * */ export interface USqlProcedureList extends CatalogItemList { readonly value?: USqlProcedure[]; @@ -266,10 +236,8 @@ export interface USqlProcedureList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL table column item. * * @member {string} [name] the name of the column in the table. - * * @member {string} [type] the object type of the specified column (such as * System.String). - * */ export interface USqlTableColumn { name?: string; @@ -283,10 +251,8 @@ export interface USqlTableColumn { * A Data Lake Analytics catalog U-SQL directed column item. * * @member {string} [name] the name of the index in the table. - * * @member {boolean} [descending] the switch indicating if the index is * descending or not. - * */ export interface USqlDirectedColumn { name?: string; @@ -300,14 +266,10 @@ export interface USqlDirectedColumn { * A Data Lake Analytics catalog U-SQL distribution information object. * * @member {number} [type] the type of this distribution. - * * @member {array} [keys] the list of directed columns in the distribution - * * @member {number} [count] the count of indices using this distribution. - * * @member {number} [dynamicCount] the dynamic count of indices using this * distribution. - * */ export interface USqlDistributionInfo { type?: number; @@ -323,39 +285,25 @@ export interface USqlDistributionInfo { * A Data Lake Analytics catalog U-SQL table index item. * * @member {string} [name] the name of the index in the table. - * * @member {array} [indexKeys] the list of directed columns in the index - * * @member {array} [columns] the list of columns in the index - * * @member {object} [distributionInfo] the distributions info of the index - * * @member {number} [distributionInfo.type] the type of this distribution. - * * @member {array} [distributionInfo.keys] the list of directed columns in the * distribution - * * @member {number} [distributionInfo.count] the count of indices using this * distribution. - * * @member {number} [distributionInfo.dynamicCount] the dynamic count of * indices using this distribution. - * * @member {uuid} [partitionFunction] partition function ID for the index. - * * @member {array} [partitionKeyList] the list of partion keys in the index - * * @member {array} [streamNames] the list of full paths to the streams that * contain this index in the DataLake account. - * * @member {boolean} [isColumnstore] the switch indicating if this index is a * columnstore index. - * * @member {number} [indexId] the ID of this index within the table. - * * @member {boolean} [isUnique] the switch indicating if this index is a unique * index. - * */ export interface USqlIndex { name?: string; @@ -378,16 +326,12 @@ export interface USqlIndex { * * @member {string} [firstPart] the name of the table associated with this * database and schema. - * * @member {string} [secondPart] the name of the table associated with this * database and schema. - * * @member {string} [thirdPart] the name of the table associated with this * database and schema. - * * @member {string} [server] the name of the table associated with this * database and schema. - * */ export interface DdlName { firstPart?: string; @@ -404,21 +348,15 @@ export interface DdlName { * * @member {object} [name] the name of the external table associated with this * database, schema and table. - * * @member {string} [name.firstPart] the name of the table associated with this * database and schema. - * * @member {string} [name.secondPart] the name of the table associated with * this database and schema. - * * @member {string} [name.thirdPart] the name of the table associated with this * database and schema. - * * @member {string} [name.server] the name of the table associated with this * database and schema. - * * @member {uuid} [version] the version of the external data source. - * */ export interface EntityId { name?: DdlName; @@ -433,27 +371,19 @@ export interface EntityId { * * @member {string} [tableName] the name of the table associated with this * database and schema. - * * @member {object} [dataSource] the data source associated with this external * table. - * * @member {object} [dataSource.name] the name of the external table associated * with this database, schema and table. - * * @member {string} [dataSource.name.firstPart] the name of the table * associated with this database and schema. - * * @member {string} [dataSource.name.secondPart] the name of the table * associated with this database and schema. - * * @member {string} [dataSource.name.thirdPart] the name of the table * associated with this database and schema. - * * @member {string} [dataSource.name.server] the name of the table associated * with this database and schema. - * * @member {uuid} [dataSource.version] the version of the external data source. - * */ export interface ExternalTable { tableName?: string; @@ -467,9 +397,7 @@ export interface ExternalTable { * A Data Lake Analytics catalog type field information item. * * @member {string} [name] the name of the field associated with this type. - * * @member {string} [type] the type of the field. - * */ export interface TypeFieldInfo { name?: string; @@ -483,58 +411,38 @@ export interface TypeFieldInfo { * A Data Lake Analytics catalog U-SQL table item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [schemaName] the name of the schema associated with this * table and database. - * * @member {string} [name] the name of the table. - * * @member {array} [columnList] the list of columns in this table - * * @member {array} [indexList] the list of indices in this table - * * @member {array} [partitionKeyList] the list of partition keys in the table - * * @member {object} [externalTable] the external table associated with the * table. - * * @member {string} [externalTable.tableName] the name of the table associated * with this database and schema. - * * @member {object} [externalTable.dataSource] the data source associated with * this external table. - * * @member {object} [externalTable.dataSource.name] the name of the external * table associated with this database, schema and table. - * * @member {string} [externalTable.dataSource.name.firstPart] the name of the * table associated with this database and schema. - * * @member {string} [externalTable.dataSource.name.secondPart] the name of the * table associated with this database and schema. - * * @member {string} [externalTable.dataSource.name.thirdPart] the name of the * table associated with this database and schema. - * * @member {string} [externalTable.dataSource.name.server] the name of the * table associated with this database and schema. - * * @member {uuid} [externalTable.dataSource.version] the version of the * external data source. - * * @member {object} [distributionInfo] the distributions info of the table - * * @member {number} [distributionInfo.type] the type of this distribution. - * * @member {array} [distributionInfo.keys] the list of directed columns in the * distribution - * * @member {number} [distributionInfo.count] the count of indices using this * distribution. - * * @member {number} [distributionInfo.dynamicCount] the dynamic count of * indices using this distribution. - * */ export interface USqlTable extends CatalogItem { databaseName?: string; @@ -555,7 +463,6 @@ export interface USqlTable extends CatalogItem { * * @member {array} [value] the list of tables in the database and schema * combination - * */ export interface USqlTableList extends CatalogItemList { readonly value?: USqlTable[]; @@ -568,41 +475,26 @@ export interface USqlTableList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL type item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [schemaName] the name of the schema associated with this * table and database. - * * @member {string} [name] the name of type for this type. - * * @member {string} [typeFamily] the type family for this type. - * * @member {string} [cSharpName] the C# name for this type. - * * @member {string} [fullCSharpName] the fully qualified C# name for this type. - * * @member {number} [systemTypeId] the system type ID for this type. - * * @member {number} [userTypeId] the user type ID for this type. - * * @member {number} [schemaId] the schema ID for this type. - * * @member {number} [principalId] the principal ID for this type. - * * @member {boolean} [isNullable] the the switch indicating if this type is * nullable. - * * @member {boolean} [isUserDefined] the the switch indicating if this type is * user defined. - * * @member {boolean} [isAssemblyType] the the switch indicating if this type is * an assembly type. - * * @member {boolean} [isTableType] the the switch indicating if this type is a * table type. - * * @member {boolean} [isComplexType] the the switch indicating if this type is * a complex type. - * */ export interface USqlType extends CatalogItem { databaseName?: string; @@ -630,7 +522,6 @@ export interface USqlType extends CatalogItem { * * @member {array} [columns] the type field information associated with this * table type. - * */ export interface USqlTableType extends USqlType { readonly columns?: TypeFieldInfo[]; @@ -644,7 +535,6 @@ export interface USqlTableType extends USqlType { * * @member {array} [value] the list of table types in the database and schema * combination - * */ export interface USqlTableTypeList extends CatalogItemList { readonly value?: USqlTableType[]; @@ -657,14 +547,10 @@ export interface USqlTableTypeList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL view item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [schemaName] the name of the schema associated with this * view and database. - * * @member {string} [name] the name of the view. - * * @member {string} [definition] the defined query of the view. - * */ export interface USqlView extends CatalogItem { databaseName?: string; @@ -681,7 +567,6 @@ export interface USqlView extends CatalogItem { * * @member {array} [value] the list of view in the database and schema * combination - * */ export interface USqlViewList extends CatalogItemList { readonly value?: USqlView[]; @@ -695,14 +580,10 @@ export interface USqlViewList extends CatalogItemList { * * @member {string} [databaseName] the name of the database containing the * package. - * * @member {string} [schemaName] the name of the schema associated with this * package and database. - * * @member {string} [name] the name of the package. - * * @member {string} [definition] the definition of the package. - * */ export interface USqlPackage extends CatalogItem { databaseName?: string; @@ -719,7 +600,6 @@ export interface USqlPackage extends CatalogItem { * * @member {array} [value] the list of packages in the database and schema * combination - * */ export interface USqlPackageList extends CatalogItemList { readonly value?: USqlPackage[]; @@ -732,32 +612,21 @@ export interface USqlPackageList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL table partition item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [schemaName] the name of the schema associated with this * table partition and database. - * * @member {string} [name] the name of the table partition. - * * @member {object} [parentName] the Ddl object of the partition's parent. - * * @member {string} [parentName.firstPart] the name of the table associated * with this database and schema. - * * @member {string} [parentName.secondPart] the name of the table associated * with this database and schema. - * * @member {string} [parentName.thirdPart] the name of the table associated * with this database and schema. - * * @member {string} [parentName.server] the name of the table associated with * this database and schema. - * * @member {number} [indexId] the index ID for this partition. - * * @member {array} [label] the list of labels associated with this partition. - * * @member {date} [createDate] the creation time of the partition - * */ export interface USqlTablePartition extends CatalogItem { databaseName?: string; @@ -777,7 +646,6 @@ export interface USqlTablePartition extends CatalogItem { * * @member {array} [value] the list of table partitions in the database, schema * and table combination - * */ export interface USqlTablePartitionList extends CatalogItemList { readonly value?: USqlTablePartition[]; @@ -790,37 +658,24 @@ export interface USqlTablePartitionList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL table statistics item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [schemaName] the name of the schema associated with this * table and database. - * * @member {string} [tableName] the name of the table. - * * @member {string} [name] the name of the table statistics. - * * @member {string} [userStatName] the name of the user statistics. - * * @member {string} [statDataPath] the path to the statistics data. - * * @member {date} [createTime] the creation time of the statistics. - * * @member {date} [updateTime] the last time the statistics were updated. - * * @member {boolean} [isUserCreated] the switch indicating if these statistics * are user created. - * * @member {boolean} [isAutoCreated] the switch indicating if these statistics * are automatically created. - * * @member {boolean} [hasFilter] the switch indicating if these statistics have * a filter. - * * @member {string} [filterDefinition] the filter definition for the * statistics. - * * @member {array} [colNames] the list of column names associated with these * statistics. - * */ export interface USqlTableStatistics extends CatalogItem { databaseName?: string; @@ -846,7 +701,6 @@ export interface USqlTableStatistics extends CatalogItem { * * @member {array} [value] the list of table statistics in the database, schema * and table combination - * */ export interface USqlTableStatisticsList extends CatalogItemList { readonly value?: USqlTableStatistics[]; @@ -860,7 +714,6 @@ export interface USqlTableStatisticsList extends CatalogItemList { * * @member {array} [value] the list of types in the database and schema * combination - * */ export interface USqlTypeList extends CatalogItemList { readonly value?: USqlType[]; @@ -873,14 +726,10 @@ export interface USqlTypeList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL table valued function item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [schemaName] the name of the schema associated with this * database. - * * @member {string} [name] the name of the table valued function. - * * @member {string} [definition] the definition of the table valued function. - * */ export interface USqlTableValuedFunction extends CatalogItem { databaseName?: string; @@ -897,7 +746,6 @@ export interface USqlTableValuedFunction extends CatalogItem { * * @member {array} [value] the list of table valued functions in the database * and schema combination - * */ export interface USqlTableValuedFunctionList extends CatalogItemList { readonly value?: USqlTableValuedFunction[]; @@ -911,11 +759,8 @@ export interface USqlTableValuedFunctionList extends CatalogItemList { * * @member {string} [type] the assembly file type. Possible values include: * 'Assembly', 'Resource', 'Nodeploy' - * * @member {string} [originalPath] the the original path to the assembly file. - * * @member {string} [contentPath] the the content path to the assembly file. - * */ export interface USqlAssemblyFileInfo { type?: string; @@ -930,24 +775,17 @@ export interface USqlAssemblyFileInfo { * A Data Lake Analytics catalog U-SQL dependency information item. * * @member {object} [entityId] the EntityId of the dependency. - * * @member {object} [entityId.name] the name of the external table associated * with this database, schema and table. - * * @member {string} [entityId.name.firstPart] the name of the table associated * with this database and schema. - * * @member {string} [entityId.name.secondPart] the name of the table associated * with this database and schema. - * * @member {string} [entityId.name.thirdPart] the name of the table associated * with this database and schema. - * * @member {string} [entityId.name.server] the name of the table associated * with this database and schema. - * * @member {uuid} [entityId.version] the version of the external data source. - * */ export interface USqlAssemblyDependencyInfo { entityId?: EntityId; @@ -960,22 +798,15 @@ export interface USqlAssemblyDependencyInfo { * A Data Lake Analytics catalog U-SQL Assembly. * * @member {string} [databaseName] the name of the database. - * * @member {string} [name] the name of the assembly. - * * @member {string} [clrName] the name of the CLR. - * * @member {boolean} [isVisible] the switch indicating if this assembly is * visible or not. - * * @member {boolean} [isUserDefined] the switch indicating if this assembly is * user defined or not. - * * @member {array} [files] the list of files associated with the assembly - * * @member {array} [dependencies] the list of dependencies associated with the * assembly - * */ export interface USqlAssembly extends CatalogItem { databaseName?: string; @@ -994,11 +825,8 @@ export interface USqlAssembly extends CatalogItem { * A Data Lake Analytics catalog U-SQL assembly CLR item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [name] the name of the assembly. - * * @member {string} [clrName] the name of the CLR. - * */ export interface USqlAssemblyClr extends CatalogItem { databaseName?: string; @@ -1013,7 +841,6 @@ export interface USqlAssemblyClr extends CatalogItem { * A Data Lake Analytics catalog U-SQL assembly CLR item list. * * @member {array} [value] the list of assemblies in the database - * */ export interface USqlAssemblyList extends CatalogItemList { readonly value?: USqlAssemblyClr[]; @@ -1026,9 +853,7 @@ export interface USqlAssemblyList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL schema item. * * @member {string} [databaseName] the name of the database. - * * @member {string} [name] the name of the schema. - * */ export interface USqlSchema extends CatalogItem { databaseName?: string; @@ -1042,7 +867,6 @@ export interface USqlSchema extends CatalogItem { * A Data Lake Analytics catalog U-SQL schema item list. * * @member {array} [value] the list of schemas in the database - * */ export interface USqlSchemaList extends CatalogItemList { readonly value?: USqlSchema[]; @@ -1055,7 +879,6 @@ export interface USqlSchemaList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL database item. * * @member {string} [name] the name of the database. - * */ export interface USqlDatabase extends CatalogItem { name?: string; @@ -1068,7 +891,6 @@ export interface USqlDatabase extends CatalogItem { * A Data Lake Analytics catalog U-SQL database item list. * * @member {array} [value] the list of databases - * */ export interface USqlDatabaseList extends CatalogItemList { readonly value?: USqlDatabase[]; @@ -1081,7 +903,6 @@ export interface USqlDatabaseList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL credential item list. * * @member {array} [value] the list of credentials in the database - * */ export interface USqlCredentialList extends CatalogItemList { readonly value?: USqlCredential[]; @@ -1094,7 +915,6 @@ export interface USqlCredentialList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL external datasource item list. * * @member {array} [value] the list of external data sources in the database - * */ export interface USqlExternalDataSourceList extends CatalogItemList { readonly value?: USqlExternalDataSource[]; @@ -1108,7 +928,6 @@ export interface USqlExternalDataSourceList extends CatalogItemList { * * @member {array} [value] the list of procedure in the database and schema * combination - * */ export interface USqlProcedureList extends CatalogItemList { readonly value?: USqlProcedure[]; @@ -1122,7 +941,6 @@ export interface USqlProcedureList extends CatalogItemList { * * @member {array} [value] the list of tables in the database and schema * combination - * */ export interface USqlTableList extends CatalogItemList { readonly value?: USqlTable[]; @@ -1136,7 +954,6 @@ export interface USqlTableList extends CatalogItemList { * * @member {array} [value] the list of table statistics in the database, schema * and table combination - * */ export interface USqlTableStatisticsList extends CatalogItemList { readonly value?: USqlTableStatistics[]; @@ -1150,7 +967,6 @@ export interface USqlTableStatisticsList extends CatalogItemList { * * @member {array} [value] the list of table types in the database and schema * combination - * */ export interface USqlTableTypeList extends CatalogItemList { readonly value?: USqlTableType[]; @@ -1164,7 +980,6 @@ export interface USqlTableTypeList extends CatalogItemList { * * @member {array} [value] the list of packages in the database and schema * combination - * */ export interface USqlPackageList extends CatalogItemList { readonly value?: USqlPackage[]; @@ -1178,7 +993,6 @@ export interface USqlPackageList extends CatalogItemList { * * @member {array} [value] the list of view in the database and schema * combination - * */ export interface USqlViewList extends CatalogItemList { readonly value?: USqlView[]; @@ -1192,7 +1006,6 @@ export interface USqlViewList extends CatalogItemList { * * @member {array} [value] the list of table partitions in the database, schema * and table combination - * */ export interface USqlTablePartitionList extends CatalogItemList { readonly value?: USqlTablePartition[]; @@ -1206,7 +1019,6 @@ export interface USqlTablePartitionList extends CatalogItemList { * * @member {array} [value] the list of types in the database and schema * combination - * */ export interface USqlTypeList extends CatalogItemList { readonly value?: USqlType[]; @@ -1220,7 +1032,6 @@ export interface USqlTypeList extends CatalogItemList { * * @member {array} [value] the list of table valued functions in the database * and schema combination - * */ export interface USqlTableValuedFunctionList extends CatalogItemList { readonly value?: USqlTableValuedFunction[]; @@ -1233,7 +1044,6 @@ export interface USqlTableValuedFunctionList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL assembly CLR item list. * * @member {array} [value] the list of assemblies in the database - * */ export interface USqlAssemblyList extends CatalogItemList { readonly value?: USqlAssemblyClr[]; @@ -1246,7 +1056,6 @@ export interface USqlAssemblyList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL schema item list. * * @member {array} [value] the list of schemas in the database - * */ export interface USqlSchemaList extends CatalogItemList { readonly value?: USqlSchema[]; @@ -1259,7 +1068,6 @@ export interface USqlSchemaList extends CatalogItemList { * A Data Lake Analytics catalog U-SQL database item list. * * @member {array} [value] the list of databases - * */ export interface USqlDatabaseList extends CatalogItemList { readonly value?: USqlDatabase[]; diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/typeFieldInfo.js b/lib/services/dataLake.Analytics/lib/catalog/models/typeFieldInfo.js index f8729cdb10..4faf4d1689 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/typeFieldInfo.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/typeFieldInfo.js @@ -11,17 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the TypeFieldInfo class. - * @constructor * A Data Lake Analytics catalog type field information item. * - * @member {string} [name] the name of the field associated with this type. - * - * @member {string} [type] the type of the field. - * */ class TypeFieldInfo { + /** + * Create a TypeFieldInfo. + * @member {string} [name] the name of the field associated with this type. + * @member {string} [type] the type of the field. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssembly.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssembly.js index 686fbd3143..91d99e5eff 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssembly.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssembly.js @@ -13,30 +13,24 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlAssembly class. - * @constructor * A Data Lake Analytics catalog U-SQL Assembly. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [name] the name of the assembly. - * - * @member {string} [clrName] the name of the CLR. - * - * @member {boolean} [isVisible] the switch indicating if this assembly is - * visible or not. - * - * @member {boolean} [isUserDefined] the switch indicating if this assembly is - * user defined or not. - * - * @member {array} [files] the list of files associated with the assembly - * - * @member {array} [dependencies] the list of dependencies associated with the - * assembly - * + * @extends models['CatalogItem'] */ class USqlAssembly extends models['CatalogItem'] { + /** + * Create a USqlAssembly. + * @member {string} [databaseName] the name of the database. + * @member {string} [name] the name of the assembly. + * @member {string} [clrName] the name of the CLR. + * @member {boolean} [isVisible] the switch indicating if this assembly is + * visible or not. + * @member {boolean} [isUserDefined] the switch indicating if this assembly + * is user defined or not. + * @member {array} [files] the list of files associated with the assembly + * @member {array} [dependencies] the list of dependencies associated with + * the assembly + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyClr.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyClr.js index bdcb85b4b4..5d72c1f29b 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyClr.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyClr.js @@ -13,19 +13,17 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlAssemblyClr class. - * @constructor * A Data Lake Analytics catalog U-SQL assembly CLR item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [name] the name of the assembly. - * - * @member {string} [clrName] the name of the CLR. - * + * @extends models['CatalogItem'] */ class USqlAssemblyClr extends models['CatalogItem'] { + /** + * Create a USqlAssemblyClr. + * @member {string} [databaseName] the name of the database. + * @member {string} [name] the name of the assembly. + * @member {string} [clrName] the name of the CLR. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyDependencyInfo.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyDependencyInfo.js index 98637d763f..1c0e94564b 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyDependencyInfo.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyDependencyInfo.js @@ -13,32 +13,25 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlAssemblyDependencyInfo class. - * @constructor * A Data Lake Analytics catalog U-SQL dependency information item. * - * @member {object} [entityId] the EntityId of the dependency. - * - * @member {object} [entityId.name] the name of the external table associated - * with this database, schema and table. - * - * @member {string} [entityId.name.firstPart] the name of the table associated - * with this database and schema. - * - * @member {string} [entityId.name.secondPart] the name of the table associated - * with this database and schema. - * - * @member {string} [entityId.name.thirdPart] the name of the table associated - * with this database and schema. - * - * @member {string} [entityId.name.server] the name of the table associated - * with this database and schema. - * - * @member {uuid} [entityId.version] the version of the external data source. - * */ class USqlAssemblyDependencyInfo { + /** + * Create a USqlAssemblyDependencyInfo. + * @member {object} [entityId] the EntityId of the dependency. + * @member {object} [entityId.name] the name of the external table associated + * with this database, schema and table. + * @member {string} [entityId.name.firstPart] the name of the table + * associated with this database and schema. + * @member {string} [entityId.name.secondPart] the name of the table + * associated with this database and schema. + * @member {string} [entityId.name.thirdPart] the name of the table + * associated with this database and schema. + * @member {string} [entityId.name.server] the name of the table associated + * with this database and schema. + * @member {uuid} [entityId.version] the version of the external data source. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyFileInfo.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyFileInfo.js index d44ca64ed3..75861d8fda 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyFileInfo.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyFileInfo.js @@ -11,20 +11,18 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlAssemblyFileInfo class. - * @constructor * A Data Lake Analytics catalog U-SQL assembly file information item. * - * @member {string} [type] the assembly file type. Possible values include: - * 'Assembly', 'Resource', 'Nodeploy' - * - * @member {string} [originalPath] the the original path to the assembly file. - * - * @member {string} [contentPath] the the content path to the assembly file. - * */ class USqlAssemblyFileInfo { + /** + * Create a USqlAssemblyFileInfo. + * @member {string} [type] the assembly file type. Possible values include: + * 'Assembly', 'Resource', 'Nodeploy' + * @member {string} [originalPath] the the original path to the assembly + * file. + * @member {string} [contentPath] the the content path to the assembly file. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyList.js index c00021e766..31c1d13115 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlAssemblyList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlAssemblyList class. - * @constructor * A Data Lake Analytics catalog U-SQL assembly CLR item list. - * */ class USqlAssemblyList extends Array { + /** + * Create a USqlAssemblyList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlCredential.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlCredential.js index 411359e7d0..7ac2878547 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlCredential.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlCredential.js @@ -13,15 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlCredential class. - * @constructor * A Data Lake Analytics catalog U-SQL credential item. * - * @member {string} [name] the name of the credential. - * + * @extends models['CatalogItem'] */ class USqlCredential extends models['CatalogItem'] { + /** + * Create a USqlCredential. + * @member {string} [name] the name of the credential. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlCredentialList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlCredentialList.js index 97c72c2e8f..1bfa3ed5f6 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlCredentialList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlCredentialList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlCredentialList class. - * @constructor * A Data Lake Analytics catalog U-SQL credential item list. - * */ class USqlCredentialList extends Array { + /** + * Create a USqlCredentialList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDatabase.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDatabase.js index 274bf30b4f..619e887945 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDatabase.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDatabase.js @@ -13,15 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlDatabase class. - * @constructor * A Data Lake Analytics catalog U-SQL database item. * - * @member {string} [name] the name of the database. - * + * @extends models['CatalogItem'] */ class USqlDatabase extends models['CatalogItem'] { + /** + * Create a USqlDatabase. + * @member {string} [name] the name of the database. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDatabaseList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDatabaseList.js index 33778afaec..e216f6cda5 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDatabaseList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDatabaseList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlDatabaseList class. - * @constructor * A Data Lake Analytics catalog U-SQL database item list. - * */ class USqlDatabaseList extends Array { + /** + * Create a USqlDatabaseList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDirectedColumn.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDirectedColumn.js index b487c48afb..638074da60 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDirectedColumn.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDirectedColumn.js @@ -11,18 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlDirectedColumn class. - * @constructor * A Data Lake Analytics catalog U-SQL directed column item. * - * @member {string} [name] the name of the index in the table. - * - * @member {boolean} [descending] the switch indicating if the index is - * descending or not. - * */ class USqlDirectedColumn { + /** + * Create a USqlDirectedColumn. + * @member {string} [name] the name of the index in the table. + * @member {boolean} [descending] the switch indicating if the index is + * descending or not. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDistributionInfo.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDistributionInfo.js index 37434f7b41..4ab0a7a6d8 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDistributionInfo.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlDistributionInfo.js @@ -13,22 +13,18 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlDistributionInfo class. - * @constructor * A Data Lake Analytics catalog U-SQL distribution information object. * - * @member {number} [type] the type of this distribution. - * - * @member {array} [keys] the list of directed columns in the distribution - * - * @member {number} [count] the count of indices using this distribution. - * - * @member {number} [dynamicCount] the dynamic count of indices using this - * distribution. - * */ class USqlDistributionInfo { + /** + * Create a USqlDistributionInfo. + * @member {number} [type] the type of this distribution. + * @member {array} [keys] the list of directed columns in the distribution + * @member {number} [count] the count of indices using this distribution. + * @member {number} [dynamicCount] the dynamic count of indices using this + * distribution. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlExternalDataSource.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlExternalDataSource.js index 0e04dc0940..67f65c9b50 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlExternalDataSource.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlExternalDataSource.js @@ -13,26 +13,22 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlExternalDataSource class. - * @constructor * A Data Lake Analytics catalog U-SQL external datasource item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [name] the name of the external data source. - * - * @member {string} [provider] the name of the provider for the external data - * source. - * - * @member {string} [providerString] the name of the provider string for the - * external data source. - * - * @member {array} [pushdownTypes] the list of types to push down from the - * external data source. - * + * @extends models['CatalogItem'] */ class USqlExternalDataSource extends models['CatalogItem'] { + /** + * Create a USqlExternalDataSource. + * @member {string} [databaseName] the name of the database. + * @member {string} [name] the name of the external data source. + * @member {string} [provider] the name of the provider for the external data + * source. + * @member {string} [providerString] the name of the provider string for the + * external data source. + * @member {array} [pushdownTypes] the list of types to push down from the + * external data source. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlExternalDataSourceList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlExternalDataSourceList.js index d8254085be..971b0ffc91 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlExternalDataSourceList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlExternalDataSourceList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlExternalDataSourceList class. - * @constructor * A Data Lake Analytics catalog U-SQL external datasource item list. - * */ class USqlExternalDataSourceList extends Array { + /** + * Create a USqlExternalDataSourceList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlIndex.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlIndex.js index dc9982a89a..2d52bb7b57 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlIndex.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlIndex.js @@ -13,47 +13,33 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlIndex class. - * @constructor * A Data Lake Analytics catalog U-SQL table index item. * - * @member {string} [name] the name of the index in the table. - * - * @member {array} [indexKeys] the list of directed columns in the index - * - * @member {array} [columns] the list of columns in the index - * - * @member {object} [distributionInfo] the distributions info of the index - * - * @member {number} [distributionInfo.type] the type of this distribution. - * - * @member {array} [distributionInfo.keys] the list of directed columns in the - * distribution - * - * @member {number} [distributionInfo.count] the count of indices using this - * distribution. - * - * @member {number} [distributionInfo.dynamicCount] the dynamic count of - * indices using this distribution. - * - * @member {uuid} [partitionFunction] partition function ID for the index. - * - * @member {array} [partitionKeyList] the list of partion keys in the index - * - * @member {array} [streamNames] the list of full paths to the streams that - * contain this index in the DataLake account. - * - * @member {boolean} [isColumnstore] the switch indicating if this index is a - * columnstore index. - * - * @member {number} [indexId] the ID of this index within the table. - * - * @member {boolean} [isUnique] the switch indicating if this index is a unique - * index. - * */ class USqlIndex { + /** + * Create a USqlIndex. + * @member {string} [name] the name of the index in the table. + * @member {array} [indexKeys] the list of directed columns in the index + * @member {array} [columns] the list of columns in the index + * @member {object} [distributionInfo] the distributions info of the index + * @member {number} [distributionInfo.type] the type of this distribution. + * @member {array} [distributionInfo.keys] the list of directed columns in + * the distribution + * @member {number} [distributionInfo.count] the count of indices using this + * distribution. + * @member {number} [distributionInfo.dynamicCount] the dynamic count of + * indices using this distribution. + * @member {uuid} [partitionFunction] partition function ID for the index. + * @member {array} [partitionKeyList] the list of partion keys in the index + * @member {array} [streamNames] the list of full paths to the streams that + * contain this index in the DataLake account. + * @member {boolean} [isColumnstore] the switch indicating if this index is a + * columnstore index. + * @member {number} [indexId] the ID of this index within the table. + * @member {boolean} [isUnique] the switch indicating if this index is a + * unique index. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlPackage.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlPackage.js index 164af768ab..18af86e794 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlPackage.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlPackage.js @@ -13,23 +13,20 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlPackage class. - * @constructor * A Data Lake Analytics catalog U-SQL package item. * - * @member {string} [databaseName] the name of the database containing the - * package. - * - * @member {string} [schemaName] the name of the schema associated with this - * package and database. - * - * @member {string} [name] the name of the package. - * - * @member {string} [definition] the definition of the package. - * + * @extends models['CatalogItem'] */ class USqlPackage extends models['CatalogItem'] { + /** + * Create a USqlPackage. + * @member {string} [databaseName] the name of the database containing the + * package. + * @member {string} [schemaName] the name of the schema associated with this + * package and database. + * @member {string} [name] the name of the package. + * @member {string} [definition] the definition of the package. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlPackageList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlPackageList.js index 5ec3b104b5..89373a390f 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlPackageList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlPackageList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlPackageList class. - * @constructor * A Data Lake Analytics catalog U-SQL package item list. - * */ class USqlPackageList extends Array { + /** + * Create a USqlPackageList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlProcedure.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlProcedure.js index bae9268744..e05a6812a8 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlProcedure.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlProcedure.js @@ -13,22 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlProcedure class. - * @constructor * A Data Lake Analytics catalog U-SQL procedure item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [schemaName] the name of the schema associated with this - * procedure and database. - * - * @member {string} [name] the name of the procedure. - * - * @member {string} [definition] the defined query of the procedure. - * + * @extends models['CatalogItem'] */ class USqlProcedure extends models['CatalogItem'] { + /** + * Create a USqlProcedure. + * @member {string} [databaseName] the name of the database. + * @member {string} [schemaName] the name of the schema associated with this + * procedure and database. + * @member {string} [name] the name of the procedure. + * @member {string} [definition] the defined query of the procedure. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlProcedureList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlProcedureList.js index fe2471c21f..98d555fe67 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlProcedureList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlProcedureList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlProcedureList class. - * @constructor * A Data Lake Analytics catalog U-SQL procedure item list. - * */ class USqlProcedureList extends Array { + /** + * Create a USqlProcedureList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSchema.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSchema.js index dd97e9363e..a2d1d18ed1 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSchema.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSchema.js @@ -13,17 +13,16 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlSchema class. - * @constructor * A Data Lake Analytics catalog U-SQL schema item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [name] the name of the schema. - * + * @extends models['CatalogItem'] */ class USqlSchema extends models['CatalogItem'] { + /** + * Create a USqlSchema. + * @member {string} [databaseName] the name of the database. + * @member {string} [name] the name of the schema. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSchemaList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSchemaList.js index fed3334299..5eeedfc3c4 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSchemaList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSchemaList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlSchemaList class. - * @constructor * A Data Lake Analytics catalog U-SQL schema item list. - * */ class USqlSchemaList extends Array { + /** + * Create a USqlSchemaList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSecret.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSecret.js index 44ec7c180d..1a55ec4bb2 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSecret.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlSecret.js @@ -13,25 +13,21 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlSecret class. - * @constructor * A Data Lake Analytics catalog U-SQL secret item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [name] the name of the secret. - * - * @member {date} [creationTime] the creation time of the credential object. - * This is the only information returned about a secret from a GET. - * - * @member {string} [uri] the URI identifier for the secret in the format - * : - * - * @member {string} [password] the password for the secret to pass in - * + * @extends models['CatalogItem'] */ class USqlSecret extends models['CatalogItem'] { + /** + * Create a USqlSecret. + * @member {string} [databaseName] the name of the database. + * @member {string} [name] the name of the secret. + * @member {date} [creationTime] the creation time of the credential object. + * This is the only information returned about a secret from a GET. + * @member {string} [uri] the URI identifier for the secret in the format + * : + * @member {string} [password] the password for the secret to pass in + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTable.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTable.js index e8eeb19c43..86be05a355 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTable.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTable.js @@ -13,66 +13,47 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlTable class. - * @constructor * A Data Lake Analytics catalog U-SQL table item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [schemaName] the name of the schema associated with this - * table and database. - * - * @member {string} [name] the name of the table. - * - * @member {array} [columnList] the list of columns in this table - * - * @member {array} [indexList] the list of indices in this table - * - * @member {array} [partitionKeyList] the list of partition keys in the table - * - * @member {object} [externalTable] the external table associated with the - * table. - * - * @member {string} [externalTable.tableName] the name of the table associated - * with this database and schema. - * - * @member {object} [externalTable.dataSource] the data source associated with - * this external table. - * - * @member {object} [externalTable.dataSource.name] the name of the external - * table associated with this database, schema and table. - * - * @member {string} [externalTable.dataSource.name.firstPart] the name of the - * table associated with this database and schema. - * - * @member {string} [externalTable.dataSource.name.secondPart] the name of the - * table associated with this database and schema. - * - * @member {string} [externalTable.dataSource.name.thirdPart] the name of the - * table associated with this database and schema. - * - * @member {string} [externalTable.dataSource.name.server] the name of the - * table associated with this database and schema. - * - * @member {uuid} [externalTable.dataSource.version] the version of the - * external data source. - * - * @member {object} [distributionInfo] the distributions info of the table - * - * @member {number} [distributionInfo.type] the type of this distribution. - * - * @member {array} [distributionInfo.keys] the list of directed columns in the - * distribution - * - * @member {number} [distributionInfo.count] the count of indices using this - * distribution. - * - * @member {number} [distributionInfo.dynamicCount] the dynamic count of - * indices using this distribution. - * + * @extends models['CatalogItem'] */ class USqlTable extends models['CatalogItem'] { + /** + * Create a USqlTable. + * @member {string} [databaseName] the name of the database. + * @member {string} [schemaName] the name of the schema associated with this + * table and database. + * @member {string} [name] the name of the table. + * @member {array} [columnList] the list of columns in this table + * @member {array} [indexList] the list of indices in this table + * @member {array} [partitionKeyList] the list of partition keys in the table + * @member {object} [externalTable] the external table associated with the + * table. + * @member {string} [externalTable.tableName] the name of the table + * associated with this database and schema. + * @member {object} [externalTable.dataSource] the data source associated + * with this external table. + * @member {object} [externalTable.dataSource.name] the name of the external + * table associated with this database, schema and table. + * @member {string} [externalTable.dataSource.name.firstPart] the name of the + * table associated with this database and schema. + * @member {string} [externalTable.dataSource.name.secondPart] the name of + * the table associated with this database and schema. + * @member {string} [externalTable.dataSource.name.thirdPart] the name of the + * table associated with this database and schema. + * @member {string} [externalTable.dataSource.name.server] the name of the + * table associated with this database and schema. + * @member {uuid} [externalTable.dataSource.version] the version of the + * external data source. + * @member {object} [distributionInfo] the distributions info of the table + * @member {number} [distributionInfo.type] the type of this distribution. + * @member {array} [distributionInfo.keys] the list of directed columns in + * the distribution + * @member {number} [distributionInfo.count] the count of indices using this + * distribution. + * @member {number} [distributionInfo.dynamicCount] the dynamic count of + * indices using this distribution. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableColumn.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableColumn.js index 0e52b27ef4..c3c5e698d4 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableColumn.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableColumn.js @@ -11,18 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlTableColumn class. - * @constructor * A Data Lake Analytics catalog U-SQL table column item. * - * @member {string} [name] the name of the column in the table. - * - * @member {string} [type] the object type of the specified column (such as - * System.String). - * */ class USqlTableColumn { + /** + * Create a USqlTableColumn. + * @member {string} [name] the name of the column in the table. + * @member {string} [type] the object type of the specified column (such as + * System.String). + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableList.js index 0bce873fda..a8431fda39 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlTableList class. - * @constructor * A Data Lake Analytics catalog U-SQL table item list. - * */ class USqlTableList extends Array { + /** + * Create a USqlTableList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTablePartition.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTablePartition.js index 22397a49ba..257bf30c31 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTablePartition.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTablePartition.js @@ -13,40 +13,30 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlTablePartition class. - * @constructor * A Data Lake Analytics catalog U-SQL table partition item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [schemaName] the name of the schema associated with this - * table partition and database. - * - * @member {string} [name] the name of the table partition. - * - * @member {object} [parentName] the Ddl object of the partition's parent. - * - * @member {string} [parentName.firstPart] the name of the table associated - * with this database and schema. - * - * @member {string} [parentName.secondPart] the name of the table associated - * with this database and schema. - * - * @member {string} [parentName.thirdPart] the name of the table associated - * with this database and schema. - * - * @member {string} [parentName.server] the name of the table associated with - * this database and schema. - * - * @member {number} [indexId] the index ID for this partition. - * - * @member {array} [label] the list of labels associated with this partition. - * - * @member {date} [createDate] the creation time of the partition - * + * @extends models['CatalogItem'] */ class USqlTablePartition extends models['CatalogItem'] { + /** + * Create a USqlTablePartition. + * @member {string} [databaseName] the name of the database. + * @member {string} [schemaName] the name of the schema associated with this + * table partition and database. + * @member {string} [name] the name of the table partition. + * @member {object} [parentName] the Ddl object of the partition's parent. + * @member {string} [parentName.firstPart] the name of the table associated + * with this database and schema. + * @member {string} [parentName.secondPart] the name of the table associated + * with this database and schema. + * @member {string} [parentName.thirdPart] the name of the table associated + * with this database and schema. + * @member {string} [parentName.server] the name of the table associated with + * this database and schema. + * @member {number} [indexId] the index ID for this partition. + * @member {array} [label] the list of labels associated with this partition. + * @member {date} [createDate] the creation time of the partition + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTablePartitionList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTablePartitionList.js index c5a70899a3..bef493b01f 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTablePartitionList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTablePartitionList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlTablePartitionList class. - * @constructor * A Data Lake Analytics catalog U-SQL table partition item list. - * */ class USqlTablePartitionList extends Array { + /** + * Create a USqlTablePartitionList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableStatistics.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableStatistics.js index 04c02a3805..6f6696be32 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableStatistics.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableStatistics.js @@ -13,45 +13,33 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlTableStatistics class. - * @constructor * A Data Lake Analytics catalog U-SQL table statistics item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [schemaName] the name of the schema associated with this - * table and database. - * - * @member {string} [tableName] the name of the table. - * - * @member {string} [name] the name of the table statistics. - * - * @member {string} [userStatName] the name of the user statistics. - * - * @member {string} [statDataPath] the path to the statistics data. - * - * @member {date} [createTime] the creation time of the statistics. - * - * @member {date} [updateTime] the last time the statistics were updated. - * - * @member {boolean} [isUserCreated] the switch indicating if these statistics - * are user created. - * - * @member {boolean} [isAutoCreated] the switch indicating if these statistics - * are automatically created. - * - * @member {boolean} [hasFilter] the switch indicating if these statistics have - * a filter. - * - * @member {string} [filterDefinition] the filter definition for the - * statistics. - * - * @member {array} [colNames] the list of column names associated with these - * statistics. - * + * @extends models['CatalogItem'] */ class USqlTableStatistics extends models['CatalogItem'] { + /** + * Create a USqlTableStatistics. + * @member {string} [databaseName] the name of the database. + * @member {string} [schemaName] the name of the schema associated with this + * table and database. + * @member {string} [tableName] the name of the table. + * @member {string} [name] the name of the table statistics. + * @member {string} [userStatName] the name of the user statistics. + * @member {string} [statDataPath] the path to the statistics data. + * @member {date} [createTime] the creation time of the statistics. + * @member {date} [updateTime] the last time the statistics were updated. + * @member {boolean} [isUserCreated] the switch indicating if these + * statistics are user created. + * @member {boolean} [isAutoCreated] the switch indicating if these + * statistics are automatically created. + * @member {boolean} [hasFilter] the switch indicating if these statistics + * have a filter. + * @member {string} [filterDefinition] the filter definition for the + * statistics. + * @member {array} [colNames] the list of column names associated with these + * statistics. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableStatisticsList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableStatisticsList.js index df15201686..f653ea0b58 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableStatisticsList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableStatisticsList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlTableStatisticsList class. - * @constructor * A Data Lake Analytics catalog U-SQL table statistics item list. - * */ class USqlTableStatisticsList extends Array { + /** + * Create a USqlTableStatisticsList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableType.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableType.js index 0e6e8e08a0..0c813b1386 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableType.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableType.js @@ -13,16 +13,16 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlTableType class. - * @constructor * A Data Lake Analytics catalog U-SQL table type item. * - * @member {array} [columns] the type field information associated with this - * table type. - * + * @extends models['USqlType'] */ class USqlTableType extends models['USqlType'] { + /** + * Create a USqlTableType. + * @member {array} [columns] the type field information associated with this + * table type. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableTypeList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableTypeList.js index b9d78b48f7..c1ee4a159b 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableTypeList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableTypeList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlTableTypeList class. - * @constructor * A Data Lake Analytics catalog U-SQL table type item list. - * */ class USqlTableTypeList extends Array { + /** + * Create a USqlTableTypeList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableValuedFunction.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableValuedFunction.js index e3212bd200..c13889273b 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableValuedFunction.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableValuedFunction.js @@ -13,22 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlTableValuedFunction class. - * @constructor * A Data Lake Analytics catalog U-SQL table valued function item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [schemaName] the name of the schema associated with this - * database. - * - * @member {string} [name] the name of the table valued function. - * - * @member {string} [definition] the definition of the table valued function. - * + * @extends models['CatalogItem'] */ class USqlTableValuedFunction extends models['CatalogItem'] { + /** + * Create a USqlTableValuedFunction. + * @member {string} [databaseName] the name of the database. + * @member {string} [schemaName] the name of the schema associated with this + * database. + * @member {string} [name] the name of the table valued function. + * @member {string} [definition] the definition of the table valued function. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableValuedFunctionList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableValuedFunctionList.js index d4218cd5f2..21ab9049e9 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableValuedFunctionList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTableValuedFunctionList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlTableValuedFunctionList class. - * @constructor * A Data Lake Analytics catalog U-SQL table valued function item list. - * */ class USqlTableValuedFunctionList extends Array { + /** + * Create a USqlTableValuedFunctionList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlType.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlType.js index 6efeae76a2..d0a90d30ac 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlType.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlType.js @@ -13,49 +13,36 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlType class. - * @constructor * A Data Lake Analytics catalog U-SQL type item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [schemaName] the name of the schema associated with this - * table and database. - * - * @member {string} [name] the name of type for this type. - * - * @member {string} [typeFamily] the type family for this type. - * - * @member {string} [cSharpName] the C# name for this type. - * - * @member {string} [fullCSharpName] the fully qualified C# name for this type. - * - * @member {number} [systemTypeId] the system type ID for this type. - * - * @member {number} [userTypeId] the user type ID for this type. - * - * @member {number} [schemaId] the schema ID for this type. - * - * @member {number} [principalId] the principal ID for this type. - * - * @member {boolean} [isNullable] the the switch indicating if this type is - * nullable. - * - * @member {boolean} [isUserDefined] the the switch indicating if this type is - * user defined. - * - * @member {boolean} [isAssemblyType] the the switch indicating if this type is - * an assembly type. - * - * @member {boolean} [isTableType] the the switch indicating if this type is a - * table type. - * - * @member {boolean} [isComplexType] the the switch indicating if this type is - * a complex type. - * + * @extends models['CatalogItem'] */ class USqlType extends models['CatalogItem'] { + /** + * Create a USqlType. + * @member {string} [databaseName] the name of the database. + * @member {string} [schemaName] the name of the schema associated with this + * table and database. + * @member {string} [name] the name of type for this type. + * @member {string} [typeFamily] the type family for this type. + * @member {string} [cSharpName] the C# name for this type. + * @member {string} [fullCSharpName] the fully qualified C# name for this + * type. + * @member {number} [systemTypeId] the system type ID for this type. + * @member {number} [userTypeId] the user type ID for this type. + * @member {number} [schemaId] the schema ID for this type. + * @member {number} [principalId] the principal ID for this type. + * @member {boolean} [isNullable] the the switch indicating if this type is + * nullable. + * @member {boolean} [isUserDefined] the the switch indicating if this type + * is user defined. + * @member {boolean} [isAssemblyType] the the switch indicating if this type + * is an assembly type. + * @member {boolean} [isTableType] the the switch indicating if this type is + * a table type. + * @member {boolean} [isComplexType] the the switch indicating if this type + * is a complex type. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTypeList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTypeList.js index 4b9019cec5..88ac8ca7f3 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTypeList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlTypeList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlTypeList class. - * @constructor * A Data Lake Analytics catalog U-SQL type item list. - * */ class USqlTypeList extends Array { + /** + * Create a USqlTypeList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlView.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlView.js index cae6a54b75..10abe1457f 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlView.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlView.js @@ -13,22 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlView class. - * @constructor * A Data Lake Analytics catalog U-SQL view item. * - * @member {string} [databaseName] the name of the database. - * - * @member {string} [schemaName] the name of the schema associated with this - * view and database. - * - * @member {string} [name] the name of the view. - * - * @member {string} [definition] the defined query of the view. - * + * @extends models['CatalogItem'] */ class USqlView extends models['CatalogItem'] { + /** + * Create a USqlView. + * @member {string} [databaseName] the name of the database. + * @member {string} [schemaName] the name of the schema associated with this + * view and database. + * @member {string} [name] the name of the view. + * @member {string} [definition] the defined query of the view. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlViewList.js b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlViewList.js index 311a618025..9cb9e94be3 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/models/uSqlViewList.js +++ b/lib/services/dataLake.Analytics/lib/catalog/models/uSqlViewList.js @@ -11,13 +11,12 @@ 'use strict'; /** - * @class - * Initializes a new instance of the USqlViewList class. - * @constructor * A Data Lake Analytics catalog U-SQL view item list. - * */ class USqlViewList extends Array { + /** + * Create a USqlViewList. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/catalog/operations/catalog.js b/lib/services/dataLake.Analytics/lib/catalog/operations/catalog.js index 815bd53492..2c361e7956 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/operations/catalog.js +++ b/lib/services/dataLake.Analytics/lib/catalog/operations/catalog.js @@ -338,15 +338,16 @@ function _updateSecret(accountName, databaseName, secretName, parameters, option } /** - * Gets the specified secret in the specified database. This is deprecated and - * will be removed in the next release. Please use GetCredential instead. + * Deletes the specified secret in the specified database. This is deprecated + * and will be removed in the next release. Please use DeleteCredential + * instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to get + * @param {string} secretName The name of the secret to delete * * @param {object} [options] Optional Parameters. * @@ -359,14 +360,13 @@ function _updateSecret(accountName, databaseName, secretName, parameters, option * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link USqlSecret} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _getSecret(accountName, databaseName, secretName, options, callback) { +function _deleteSecret(accountName, databaseName, secretName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -415,7 +415,7 @@ function _getSecret(accountName, databaseName, secretName, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'GET'; + httpRequest.method = 'DELETE'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -468,39 +468,21 @@ function _getSecret(accountName, databaseName, secretName, options, callback) { // Create Result let result = null; if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['USqlSecret']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } return callback(null, result, httpRequest, response); }); } /** - * Deletes the specified secret in the specified database. This is deprecated - * and will be removed in the next release. Please use DeleteCredential - * instead. + * Gets the specified secret in the specified database. This is deprecated and + * will be removed in the next release. Please use GetCredential instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to delete + * @param {string} secretName The name of the secret to get * * @param {object} [options] Optional Parameters. * @@ -513,13 +495,14 @@ function _getSecret(accountName, databaseName, secretName, options, callback) { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link USqlSecret} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _deleteSecret(accountName, databaseName, secretName, options, callback) { +function _getSecret(accountName, databaseName, secretName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -568,7 +551,7 @@ function _deleteSecret(accountName, databaseName, secretName, options, callback) // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'DELETE'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -621,6 +604,23 @@ function _deleteSecret(accountName, databaseName, secretName, options, callback) // Create Result let result = null; if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['USqlSecret']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } return callback(null, result, httpRequest, response); }); @@ -1092,17 +1092,30 @@ function _updateCredential(accountName, databaseName, credentialName, parameters } /** - * Retrieves the specified credential from the Data Lake Analytics catalog. + * Deletes the specified credential in the specified database * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the schema. + * @param {string} databaseName The name of the database containing the + * credential. * - * @param {string} credentialName The name of the credential. + * @param {string} credentialName The name of the credential to delete * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters to delete a credential + * if the current user is not the account owner. + * + * @param {string} [options.parameters.password] the current password for the + * credential and user with access to the data source. This is required if the + * requester is not the account owner. + * + * @param {boolean} [options.cascade] Indicates if the delete should be a + * cascading delete (which deletes all resources dependent on the credential as + * well as the credential) or not. If false will fail if there are any + * resources relying on the credential. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1112,14 +1125,13 @@ function _updateCredential(accountName, databaseName, credentialName, parameters * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link USqlCredential} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _getCredential(accountName, databaseName, credentialName, options, callback) { +function _deleteCredential(accountName, databaseName, credentialName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1129,6 +1141,8 @@ function _getCredential(accountName, databaseName, credentialName, options, call if (!callback) { throw new Error('callback cannot be null.'); } + let parameters = (options && options.parameters !== undefined) ? options.parameters : undefined; + let cascade = (options && options.cascade !== undefined) ? options.cascade : false; // Validate try { if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { @@ -1143,6 +1157,9 @@ function _getCredential(accountName, databaseName, credentialName, options, call if (credentialName === null || credentialName === undefined || typeof credentialName.valueOf() !== 'string') { throw new Error('credentialName cannot be null or undefined and it must be of type string.'); } + if (cascade !== null && cascade !== undefined && typeof cascade !== 'boolean') { + throw new Error('cascade must be of type boolean.'); + } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -1161,6 +1178,9 @@ function _getCredential(accountName, databaseName, credentialName, options, call requestUrl = requestUrl.replace('{databaseName}', encodeURIComponent(databaseName)); requestUrl = requestUrl.replace('{credentialName}', encodeURIComponent(credentialName)); let queryParameters = []; + if (cascade !== null && cascade !== undefined) { + queryParameters.push('cascade=' + encodeURIComponent(cascade.toString())); + } queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -1168,7 +1188,7 @@ function _getCredential(accountName, databaseName, credentialName, options, call // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'GET'; + httpRequest.method = 'POST'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1186,7 +1206,21 @@ function _getCredential(accountName, databaseName, credentialName, options, call } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - httpRequest.body = null; + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['DataLakeAnalyticsCatalogCredentialDeleteParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -1221,53 +1255,23 @@ function _getCredential(accountName, databaseName, credentialName, options, call // Create Result let result = null; if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['USqlCredential']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } return callback(null, result, httpRequest, response); }); } /** - * Deletes the specified credential in the specified database + * Retrieves the specified credential from the Data Lake Analytics catalog. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the - * credential. + * @param {string} databaseName The name of the database containing the schema. * - * @param {string} credentialName The name of the credential to delete + * @param {string} credentialName The name of the credential. * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters to delete a credential - * if the current user is not the account owner. - * - * @param {string} [options.parameters.password] the current password for the - * credential and user with access to the data source. This is required if the - * requester is not the account owner. - * - * @param {boolean} [options.cascade] Indicates if the delete should be a - * cascading delete (which deletes all resources dependent on the credential as - * well as the credential) or not. If false will fail if there are any - * resources relying on the credential. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1277,13 +1281,14 @@ function _getCredential(accountName, databaseName, credentialName, options, call * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link USqlCredential} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _deleteCredential(accountName, databaseName, credentialName, options, callback) { +function _getCredential(accountName, databaseName, credentialName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1293,8 +1298,6 @@ function _deleteCredential(accountName, databaseName, credentialName, options, c if (!callback) { throw new Error('callback cannot be null.'); } - let parameters = (options && options.parameters !== undefined) ? options.parameters : undefined; - let cascade = (options && options.cascade !== undefined) ? options.cascade : false; // Validate try { if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { @@ -1309,9 +1312,6 @@ function _deleteCredential(accountName, databaseName, credentialName, options, c if (credentialName === null || credentialName === undefined || typeof credentialName.valueOf() !== 'string') { throw new Error('credentialName cannot be null or undefined and it must be of type string.'); } - if (cascade !== null && cascade !== undefined && typeof cascade !== 'boolean') { - throw new Error('cascade must be of type boolean.'); - } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -1330,9 +1330,6 @@ function _deleteCredential(accountName, databaseName, credentialName, options, c requestUrl = requestUrl.replace('{databaseName}', encodeURIComponent(databaseName)); requestUrl = requestUrl.replace('{credentialName}', encodeURIComponent(credentialName)); let queryParameters = []; - if (cascade !== null && cascade !== undefined) { - queryParameters.push('cascade=' + encodeURIComponent(cascade.toString())); - } queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -1340,7 +1337,7 @@ function _deleteCredential(accountName, databaseName, credentialName, options, c // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'POST'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1358,21 +1355,7 @@ function _deleteCredential(accountName, databaseName, credentialName, options, c } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['DataLakeAnalyticsCatalogCredentialDeleteParameters']().mapper(); - requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(parameters, null, 2)}.`); - return callback(serializationError); - } - httpRequest.body = requestContent; + httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -1407,6 +1390,23 @@ function _deleteCredential(accountName, databaseName, credentialName, options, c // Create Result let result = null; if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['USqlCredential']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } return callback(null, result, httpRequest, response); }); @@ -2586,6 +2586,12 @@ function _getTable(accountName, databaseName, schemaName, tableName, options, ca * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false. + * Optional. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2618,6 +2624,7 @@ function _listTables(accountName, databaseName, schemaName, options, callback) { let select = (options && options.select !== undefined) ? options.select : undefined; let orderby = (options && options.orderby !== undefined) ? options.orderby : undefined; let count = (options && options.count !== undefined) ? options.count : undefined; + let basic = (options && options.basic !== undefined) ? options.basic : false; // Validate try { if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { @@ -2662,6 +2669,9 @@ function _listTables(accountName, databaseName, schemaName, options, callback) { if (count !== null && count !== undefined && typeof count !== 'boolean') { throw new Error('count must be of type boolean.'); } + if (basic !== null && basic !== undefined && typeof basic !== 'boolean') { + throw new Error('basic must be of type boolean.'); + } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -2698,6 +2708,9 @@ function _listTables(accountName, databaseName, schemaName, options, callback) { if (count !== null && count !== undefined) { queryParameters.push('$count=' + encodeURIComponent(count.toString())); } + if (basic !== null && basic !== undefined) { + queryParameters.push('basic=' + encodeURIComponent(basic.toString())); + } queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -6585,6 +6598,11 @@ function _listTableStatisticsByDatabase(accountName, databaseName, options, call * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6617,6 +6635,7 @@ function _listTablesByDatabase(accountName, databaseName, options, callback) { let select = (options && options.select !== undefined) ? options.select : undefined; let orderby = (options && options.orderby !== undefined) ? options.orderby : undefined; let count = (options && options.count !== undefined) ? options.count : undefined; + let basic = (options && options.basic !== undefined) ? options.basic : false; // Validate try { if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { @@ -6658,6 +6677,9 @@ function _listTablesByDatabase(accountName, databaseName, options, callback) { if (count !== null && count !== undefined && typeof count !== 'boolean') { throw new Error('count must be of type boolean.'); } + if (basic !== null && basic !== undefined && typeof basic !== 'boolean') { + throw new Error('basic must be of type boolean.'); + } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -6693,6 +6715,9 @@ function _listTablesByDatabase(accountName, databaseName, options, callback) { if (count !== null && count !== undefined) { queryParameters.push('$count=' + encodeURIComponent(count.toString())); } + if (basic !== null && basic !== undefined) { + queryParameters.push('basic=' + encodeURIComponent(basic.toString())); + } queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -10007,28 +10032,23 @@ function _listDatabasesNext(nextPageLink, options, callback) { }); } -/** - * @class - * Catalog - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeAnalyticsCatalogManagementClient. - * Initializes a new instance of the Catalog class. - * @constructor - * - * @param {DataLakeAnalyticsCatalogManagementClient} client Reference to the service client. - */ +/** Class representing a Catalog. */ class Catalog { + /** + * Create a Catalog. + * @param {DataLakeAnalyticsCatalogManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._createSecret = _createSecret; this._updateSecret = _updateSecret; - this._getSecret = _getSecret; this._deleteSecret = _deleteSecret; + this._getSecret = _getSecret; this._deleteAllSecrets = _deleteAllSecrets; this._createCredential = _createCredential; this._updateCredential = _updateCredential; - this._getCredential = _getCredential; this._deleteCredential = _deleteCredential; + this._getCredential = _getCredential; this._listCredentials = _listCredentials; this._getExternalDataSource = _getExternalDataSource; this._listExternalDataSources = _listExternalDataSources; @@ -10306,15 +10326,16 @@ class Catalog { } /** - * Gets the specified secret in the specified database. This is deprecated and - * will be removed in the next release. Please use GetCredential instead. + * Deletes the specified secret in the specified database. This is deprecated + * and will be removed in the next release. Please use DeleteCredential + * instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to get + * @param {string} secretName The name of the secret to delete * * @param {object} [options] Optional Parameters. * @@ -10323,15 +10344,15 @@ class Catalog { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - getSecretWithHttpOperationResponse(accountName, databaseName, secretName, options) { + deleteSecretWithHttpOperationResponse(accountName, databaseName, secretName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._getSecret(accountName, databaseName, secretName, options, (err, result, request, response) => { + self._deleteSecret(accountName, databaseName, secretName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -10342,15 +10363,16 @@ class Catalog { } /** - * Gets the specified secret in the specified database. This is deprecated and - * will be removed in the next release. Please use GetCredential instead. + * Deletes the specified secret in the specified database. This is deprecated + * and will be removed in the next release. Please use DeleteCredential + * instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to get + * @param {string} secretName The name of the secret to delete * * @param {object} [options] Optional Parameters. * @@ -10364,7 +10386,7 @@ class Catalog { * * {Promise} A promise is returned * - * @resolve {USqlSecret} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error} - The error object. * @@ -10372,14 +10394,13 @@ class Catalog { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link USqlSecret} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - getSecret(accountName, databaseName, secretName, options, optionalCallback) { + deleteSecret(accountName, databaseName, secretName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -10388,28 +10409,27 @@ class Catalog { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._getSecret(accountName, databaseName, secretName, options, (err, result, request, response) => { + self._deleteSecret(accountName, databaseName, secretName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._getSecret(accountName, databaseName, secretName, options, optionalCallback); + return self._deleteSecret(accountName, databaseName, secretName, options, optionalCallback); } } /** - * Deletes the specified secret in the specified database. This is deprecated - * and will be removed in the next release. Please use DeleteCredential - * instead. + * Gets the specified secret in the specified database. This is deprecated and + * will be removed in the next release. Please use GetCredential instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to delete + * @param {string} secretName The name of the secret to get * * @param {object} [options] Optional Parameters. * @@ -10418,15 +10438,15 @@ class Catalog { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - deleteSecretWithHttpOperationResponse(accountName, databaseName, secretName, options) { + getSecretWithHttpOperationResponse(accountName, databaseName, secretName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._deleteSecret(accountName, databaseName, secretName, options, (err, result, request, response) => { + self._getSecret(accountName, databaseName, secretName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -10437,16 +10457,15 @@ class Catalog { } /** - * Deletes the specified secret in the specified database. This is deprecated - * and will be removed in the next release. Please use DeleteCredential - * instead. + * Gets the specified secret in the specified database. This is deprecated and + * will be removed in the next release. Please use GetCredential instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to delete + * @param {string} secretName The name of the secret to get * * @param {object} [options] Optional Parameters. * @@ -10460,7 +10479,7 @@ class Catalog { * * {Promise} A promise is returned * - * @resolve {null} - The deserialized result object. + * @resolve {USqlSecret} - The deserialized result object. * * @reject {Error} - The error object. * @@ -10468,13 +10487,14 @@ class Catalog { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link USqlSecret} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - deleteSecret(accountName, databaseName, secretName, options, optionalCallback) { + getSecret(accountName, databaseName, secretName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -10483,14 +10503,14 @@ class Catalog { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._deleteSecret(accountName, databaseName, secretName, options, (err, result, request, response) => { + self._getSecret(accountName, databaseName, secretName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._deleteSecret(accountName, databaseName, secretName, options, optionalCallback); + return self._getSecret(accountName, databaseName, secretName, options, optionalCallback); } } @@ -10834,31 +10854,44 @@ class Catalog { } /** - * Retrieves the specified credential from the Data Lake Analytics catalog. + * Deletes the specified credential in the specified database * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the schema. + * @param {string} databaseName The name of the database containing the + * credential. * - * @param {string} credentialName The name of the credential. + * @param {string} credentialName The name of the credential to delete * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters to delete a credential + * if the current user is not the account owner. + * + * @param {string} [options.parameters.password] the current password for the + * credential and user with access to the data source. This is required if the + * requester is not the account owner. + * + * @param {boolean} [options.cascade] Indicates if the delete should be a + * cascading delete (which deletes all resources dependent on the credential as + * well as the credential) or not. If false will fail if there are any + * resources relying on the credential. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - getCredentialWithHttpOperationResponse(accountName, databaseName, credentialName, options) { + deleteCredentialWithHttpOperationResponse(accountName, databaseName, credentialName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._getCredential(accountName, databaseName, credentialName, options, (err, result, request, response) => { + self._deleteCredential(accountName, databaseName, credentialName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -10869,17 +10902,30 @@ class Catalog { } /** - * Retrieves the specified credential from the Data Lake Analytics catalog. + * Deletes the specified credential in the specified database * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the schema. + * @param {string} databaseName The name of the database containing the + * credential. * - * @param {string} credentialName The name of the credential. + * @param {string} credentialName The name of the credential to delete * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters to delete a credential + * if the current user is not the account owner. + * + * @param {string} [options.parameters.password] the current password for the + * credential and user with access to the data source. This is required if the + * requester is not the account owner. + * + * @param {boolean} [options.cascade] Indicates if the delete should be a + * cascading delete (which deletes all resources dependent on the credential as + * well as the credential) or not. If false will fail if there are any + * resources relying on the credential. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10890,7 +10936,7 @@ class Catalog { * * {Promise} A promise is returned * - * @resolve {USqlCredential} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error} - The error object. * @@ -10898,14 +10944,13 @@ class Catalog { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link USqlCredential} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - getCredential(accountName, databaseName, credentialName, options, optionalCallback) { + deleteCredential(accountName, databaseName, credentialName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -10914,56 +10959,43 @@ class Catalog { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._getCredential(accountName, databaseName, credentialName, options, (err, result, request, response) => { + self._deleteCredential(accountName, databaseName, credentialName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._getCredential(accountName, databaseName, credentialName, options, optionalCallback); + return self._deleteCredential(accountName, databaseName, credentialName, options, optionalCallback); } } /** - * Deletes the specified credential in the specified database + * Retrieves the specified credential from the Data Lake Analytics catalog. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the - * credential. + * @param {string} databaseName The name of the database containing the schema. * - * @param {string} credentialName The name of the credential to delete + * @param {string} credentialName The name of the credential. * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters to delete a credential - * if the current user is not the account owner. - * - * @param {string} [options.parameters.password] the current password for the - * credential and user with access to the data source. This is required if the - * requester is not the account owner. - * - * @param {boolean} [options.cascade] Indicates if the delete should be a - * cascading delete (which deletes all resources dependent on the credential as - * well as the credential) or not. If false will fail if there are any - * resources relying on the credential. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ - deleteCredentialWithHttpOperationResponse(accountName, databaseName, credentialName, options) { + getCredentialWithHttpOperationResponse(accountName, databaseName, credentialName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._deleteCredential(accountName, databaseName, credentialName, options, (err, result, request, response) => { + self._getCredential(accountName, databaseName, credentialName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -10974,30 +11006,17 @@ class Catalog { } /** - * Deletes the specified credential in the specified database + * Retrieves the specified credential from the Data Lake Analytics catalog. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the - * credential. + * @param {string} databaseName The name of the database containing the schema. * - * @param {string} credentialName The name of the credential to delete + * @param {string} credentialName The name of the credential. * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters to delete a credential - * if the current user is not the account owner. - * - * @param {string} [options.parameters.password] the current password for the - * credential and user with access to the data source. This is required if the - * requester is not the account owner. - * - * @param {boolean} [options.cascade] Indicates if the delete should be a - * cascading delete (which deletes all resources dependent on the credential as - * well as the credential) or not. If false will fail if there are any - * resources relying on the credential. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -11008,7 +11027,7 @@ class Catalog { * * {Promise} A promise is returned * - * @resolve {null} - The deserialized result object. + * @resolve {USqlCredential} - The deserialized result object. * * @reject {Error} - The error object. * @@ -11016,13 +11035,14 @@ class Catalog { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link USqlCredential} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - deleteCredential(accountName, databaseName, credentialName, options, optionalCallback) { + getCredential(accountName, databaseName, credentialName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -11031,14 +11051,14 @@ class Catalog { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._deleteCredential(accountName, databaseName, credentialName, options, (err, result, request, response) => { + self._getCredential(accountName, databaseName, credentialName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._deleteCredential(accountName, databaseName, credentialName, options, optionalCallback); + return self._getCredential(accountName, databaseName, credentialName, options, optionalCallback); } } @@ -11760,6 +11780,12 @@ class Catalog { * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false. + * Optional. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -11815,6 +11841,12 @@ class Catalog { * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false. + * Optional. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -14161,6 +14193,11 @@ class Catalog { * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -14215,6 +14252,11 @@ class Catalog { * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/dataLake.Analytics/lib/catalog/operations/index.d.ts b/lib/services/dataLake.Analytics/lib/catalog/operations/index.d.ts index fa647738d9..2aa61be5f3 100755 --- a/lib/services/dataLake.Analytics/lib/catalog/operations/index.d.ts +++ b/lib/services/dataLake.Analytics/lib/catalog/operations/index.d.ts @@ -192,15 +192,16 @@ export interface Catalog { /** - * Gets the specified secret in the specified database. This is deprecated and - * will be removed in the next release. Please use GetCredential instead. + * Deletes the specified secret in the specified database. This is deprecated + * and will be removed in the next release. Please use DeleteCredential + * instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to get + * @param {string} secretName The name of the secret to delete * * @param {object} [options] Optional Parameters. * @@ -209,22 +210,23 @@ export interface Catalog { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getSecretWithHttpOperationResponse(accountName: string, databaseName: string, secretName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteSecretWithHttpOperationResponse(accountName: string, databaseName: string, secretName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified secret in the specified database. This is deprecated and - * will be removed in the next release. Please use GetCredential instead. + * Deletes the specified secret in the specified database. This is deprecated + * and will be removed in the next release. Please use DeleteCredential + * instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to get + * @param {string} secretName The name of the secret to delete * * @param {object} [options] Optional Parameters. * @@ -238,7 +240,7 @@ export interface Catalog { * * {Promise} A promise is returned. * - * @resolve {USqlSecret} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -246,29 +248,27 @@ export interface Catalog { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {USqlSecret} [result] - The deserialized result object if an error did not occur. - * See {@link USqlSecret} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getSecret(accountName: string, databaseName: string, secretName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getSecret(accountName: string, databaseName: string, secretName: string, callback: ServiceCallback): void; - getSecret(accountName: string, databaseName: string, secretName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteSecret(accountName: string, databaseName: string, secretName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteSecret(accountName: string, databaseName: string, secretName: string, callback: ServiceCallback): void; + deleteSecret(accountName: string, databaseName: string, secretName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the specified secret in the specified database. This is deprecated - * and will be removed in the next release. Please use DeleteCredential - * instead. + * Gets the specified secret in the specified database. This is deprecated and + * will be removed in the next release. Please use GetCredential instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to delete + * @param {string} secretName The name of the secret to get * * @param {object} [options] Optional Parameters. * @@ -277,23 +277,22 @@ export interface Catalog { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteSecretWithHttpOperationResponse(accountName: string, databaseName: string, secretName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getSecretWithHttpOperationResponse(accountName: string, databaseName: string, secretName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified secret in the specified database. This is deprecated - * and will be removed in the next release. Please use DeleteCredential - * instead. + * Gets the specified secret in the specified database. This is deprecated and + * will be removed in the next release. Please use GetCredential instead. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * * @param {string} databaseName The name of the database containing the secret. * - * @param {string} secretName The name of the secret to delete + * @param {string} secretName The name of the secret to get * * @param {object} [options] Optional Parameters. * @@ -307,7 +306,7 @@ export interface Catalog { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {USqlSecret} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -315,15 +314,16 @@ export interface Catalog { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {USqlSecret} [result] - The deserialized result object if an error did not occur. + * See {@link USqlSecret} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteSecret(accountName: string, databaseName: string, secretName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteSecret(accountName: string, databaseName: string, secretName: string, callback: ServiceCallback): void; - deleteSecret(accountName: string, databaseName: string, secretName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getSecret(accountName: string, databaseName: string, secretName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getSecret(accountName: string, databaseName: string, secretName: string, callback: ServiceCallback): void; + getSecret(accountName: string, databaseName: string, secretName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -585,40 +585,66 @@ export interface Catalog { /** - * Retrieves the specified credential from the Data Lake Analytics catalog. + * Deletes the specified credential in the specified database * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the schema. + * @param {string} databaseName The name of the database containing the + * credential. * - * @param {string} credentialName The name of the credential. + * @param {string} credentialName The name of the credential to delete * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters to delete a credential + * if the current user is not the account owner. + * + * @param {string} [options.parameters.password] the current password for the + * credential and user with access to the data source. This is required if the + * requester is not the account owner. + * + * @param {boolean} [options.cascade] Indicates if the delete should be a + * cascading delete (which deletes all resources dependent on the credential as + * well as the credential) or not. If false will fail if there are any + * resources relying on the credential. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getCredentialWithHttpOperationResponse(accountName: string, databaseName: string, credentialName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteCredentialWithHttpOperationResponse(accountName: string, databaseName: string, credentialName: string, options?: { parameters? : models.DataLakeAnalyticsCatalogCredentialDeleteParameters, cascade? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the specified credential from the Data Lake Analytics catalog. + * Deletes the specified credential in the specified database * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the schema. + * @param {string} databaseName The name of the database containing the + * credential. * - * @param {string} credentialName The name of the credential. + * @param {string} credentialName The name of the credential to delete * * @param {object} [options] Optional Parameters. * + * @param {object} [options.parameters] The parameters to delete a credential + * if the current user is not the account owner. + * + * @param {string} [options.parameters.password] the current password for the + * credential and user with access to the data source. This is required if the + * requester is not the account owner. + * + * @param {boolean} [options.cascade] Indicates if the delete should be a + * cascading delete (which deletes all resources dependent on the credential as + * well as the credential) or not. If false will fail if there are any + * resources relying on the credential. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -629,7 +655,7 @@ export interface Catalog { * * {Promise} A promise is returned. * - * @resolve {USqlCredential} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -637,79 +663,52 @@ export interface Catalog { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {USqlCredential} [result] - The deserialized result object if an error did not occur. - * See {@link USqlCredential} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getCredential(accountName: string, databaseName: string, credentialName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getCredential(accountName: string, databaseName: string, credentialName: string, callback: ServiceCallback): void; - getCredential(accountName: string, databaseName: string, credentialName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteCredential(accountName: string, databaseName: string, credentialName: string, options?: { parameters? : models.DataLakeAnalyticsCatalogCredentialDeleteParameters, cascade? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + deleteCredential(accountName: string, databaseName: string, credentialName: string, callback: ServiceCallback): void; + deleteCredential(accountName: string, databaseName: string, credentialName: string, options: { parameters? : models.DataLakeAnalyticsCatalogCredentialDeleteParameters, cascade? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the specified credential in the specified database + * Retrieves the specified credential from the Data Lake Analytics catalog. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the - * credential. + * @param {string} databaseName The name of the database containing the schema. * - * @param {string} credentialName The name of the credential to delete + * @param {string} credentialName The name of the credential. * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters to delete a credential - * if the current user is not the account owner. - * - * @param {string} [options.parameters.password] the current password for the - * credential and user with access to the data source. This is required if the - * requester is not the account owner. - * - * @param {boolean} [options.cascade] Indicates if the delete should be a - * cascading delete (which deletes all resources dependent on the credential as - * well as the credential) or not. If false will fail if there are any - * resources relying on the credential. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteCredentialWithHttpOperationResponse(accountName: string, databaseName: string, credentialName: string, options?: { parameters? : models.DataLakeAnalyticsCatalogCredentialDeleteParameters, cascade? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + getCredentialWithHttpOperationResponse(accountName: string, databaseName: string, credentialName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified credential in the specified database + * Retrieves the specified credential from the Data Lake Analytics catalog. * * @param {string} accountName The Azure Data Lake Analytics account upon which * to execute catalog operations. * - * @param {string} databaseName The name of the database containing the - * credential. + * @param {string} databaseName The name of the database containing the schema. * - * @param {string} credentialName The name of the credential to delete + * @param {string} credentialName The name of the credential. * * @param {object} [options] Optional Parameters. * - * @param {object} [options.parameters] The parameters to delete a credential - * if the current user is not the account owner. - * - * @param {string} [options.parameters.password] the current password for the - * credential and user with access to the data source. This is required if the - * requester is not the account owner. - * - * @param {boolean} [options.cascade] Indicates if the delete should be a - * cascading delete (which deletes all resources dependent on the credential as - * well as the credential) or not. If false will fail if there are any - * resources relying on the credential. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -720,7 +719,7 @@ export interface Catalog { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {USqlCredential} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -728,15 +727,16 @@ export interface Catalog { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {USqlCredential} [result] - The deserialized result object if an error did not occur. + * See {@link USqlCredential} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteCredential(accountName: string, databaseName: string, credentialName: string, options?: { parameters? : models.DataLakeAnalyticsCatalogCredentialDeleteParameters, cascade? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; - deleteCredential(accountName: string, databaseName: string, credentialName: string, callback: ServiceCallback): void; - deleteCredential(accountName: string, databaseName: string, credentialName: string, options: { parameters? : models.DataLakeAnalyticsCatalogCredentialDeleteParameters, cascade? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getCredential(accountName: string, databaseName: string, credentialName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getCredential(accountName: string, databaseName: string, credentialName: string, callback: ServiceCallback): void; + getCredential(accountName: string, databaseName: string, credentialName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1295,6 +1295,12 @@ export interface Catalog { * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false. + * Optional. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1304,7 +1310,7 @@ export interface Catalog { * * @reject {Error|ServiceError} - The error object. */ - listTablesWithHttpOperationResponse(accountName: string, databaseName: string, schemaName: string, options?: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + listTablesWithHttpOperationResponse(accountName: string, databaseName: string, schemaName: string, options?: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, basic? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the list of tables from the Data Lake Analytics catalog. @@ -1338,6 +1344,12 @@ export interface Catalog { * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false. + * Optional. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1363,9 +1375,9 @@ export interface Catalog { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listTables(accountName: string, databaseName: string, schemaName: string, options?: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + listTables(accountName: string, databaseName: string, schemaName: string, options?: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, basic? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; listTables(accountName: string, databaseName: string, schemaName: string, callback: ServiceCallback): void; - listTables(accountName: string, databaseName: string, schemaName: string, options: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listTables(accountName: string, databaseName: string, schemaName: string, options: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, basic? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -3156,6 +3168,11 @@ export interface Catalog { * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3165,7 +3182,7 @@ export interface Catalog { * * @reject {Error|ServiceError} - The error object. */ - listTablesByDatabaseWithHttpOperationResponse(accountName: string, databaseName: string, options?: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + listTablesByDatabaseWithHttpOperationResponse(accountName: string, databaseName: string, options?: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, basic? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the list of all tables in a database from the Data Lake Analytics @@ -3198,6 +3215,11 @@ export interface Catalog { * request a count of the matching resources included with the resources in the * response, e.g. Categories?$count=true. Optional. * + * @param {boolean} [options.basic] The basic switch indicates what level of + * information to return when listing tables. When basic is true, only + * database_name, schema_name, table_name and version are returned for each + * table, otherwise all table metadata is returned. By default, it is false + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3223,9 +3245,9 @@ export interface Catalog { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listTablesByDatabase(accountName: string, databaseName: string, options?: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + listTablesByDatabase(accountName: string, databaseName: string, options?: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, basic? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; listTablesByDatabase(accountName: string, databaseName: string, callback: ServiceCallback): void; - listTablesByDatabase(accountName: string, databaseName: string, options: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listTablesByDatabase(accountName: string, databaseName: string, options: { filter? : string, top? : number, skip? : number, select? : string, orderby? : string, count? : boolean, basic? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** diff --git a/lib/services/dataLake.Analytics/lib/job/dataLakeAnalyticsJobManagementClient.d.ts b/lib/services/dataLake.Analytics/lib/job/dataLakeAnalyticsJobManagementClient.d.ts index 43f0938842..0ebc2ac605 100644 --- a/lib/services/dataLake.Analytics/lib/job/dataLakeAnalyticsJobManagementClient.d.ts +++ b/lib/services/dataLake.Analytics/lib/job/dataLakeAnalyticsJobManagementClient.d.ts @@ -8,10 +8,37 @@ * regenerated. */ -import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { ServiceClient, ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; import * as operations from "./operations"; -declare class DataLakeAnalyticsJobManagementClient { +/** + * DataLakeAnalyticsJobManagementClientOptions for DataLakeAnalyticsJobManagementClient. + */ +declare interface DataLakeAnalyticsJobManagementClientOptions extends ServiceClientOptions { + /** + * @property {string} [apiVersion] - Client Api Version. + */ + apiVersion?: String; + /** + * @property {string} [adlaJobDnsSuffix] - Gets the DNS suffix used as the base for all Azure Data Lake Analytics Job service requests. + */ + adlaJobDnsSuffix?: String; + /** + * @property {string} [acceptLanguage] - Gets or sets the preferred language for the response. + */ + acceptLanguage?: String; + /** + * @property {number} [longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + */ + longRunningOperationRetryTimeout?: Number; + /** + * @property {boolean} [generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ + generateClientRequestId?: Boolean; + } + +declare class DataLakeAnalyticsJobManagementClient extends AzureServiceClient { /** * Initializes a new instance of the DataLakeAnalyticsJobManagementClient class. * @constructor @@ -39,7 +66,7 @@ declare class DataLakeAnalyticsJobManagementClient { * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ - constructor(credentials: ServiceClientCredentials, options?: ServiceClientOptions); + constructor(credentials: ServiceClientCredentials, options?: DataLakeAnalyticsJobManagementClientOptions); credentials: ServiceClientCredentials; diff --git a/lib/services/dataLake.Analytics/lib/job/dataLakeAnalyticsJobManagementClient.js b/lib/services/dataLake.Analytics/lib/job/dataLakeAnalyticsJobManagementClient.js index 8efbf61ad1..e288bdeeac 100644 --- a/lib/services/dataLake.Analytics/lib/job/dataLakeAnalyticsJobManagementClient.js +++ b/lib/services/dataLake.Analytics/lib/job/dataLakeAnalyticsJobManagementClient.js @@ -22,34 +22,22 @@ const models = require('./models'); const operations = require('./operations'); -/** - * @class - * Initializes a new instance of the DataLakeAnalyticsJobManagementClient class. - * @constructor - * - * @param {credentials} credentials - Credentials needed for the client to connect to Azure. - * - * @param {object} [options] - The parameter options - * - * @param {Array} [options.filters] - Filters to be added to the request pipeline - * - * @param {object} [options.requestOptions] - Options for the underlying request object - * {@link https://github.com/request/request#requestoptions-callback Options doc} - * - * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * - * @param {string} [options.apiVersion] - Client Api Version. - * - * @param {string} [options.adlaJobDnsSuffix] - Gets the DNS suffix used as the base for all Azure Data Lake Analytics Job service requests. - * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. - * - */ +/** Class representing a DataLakeAnalyticsJobManagementClient. */ class DataLakeAnalyticsJobManagementClient extends ServiceClient { + /** + * Create a DataLakeAnalyticsJobManagementClient. + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. + * @param {object} [options] - The parameter options + * @param {Array} [options.filters] - Filters to be added to the request pipeline + * @param {object} [options.requestOptions] - Options for the underlying request object + * {@link https://github.com/request/request#requestoptions-callback Options doc} + * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy + * @param {string} [options.apiVersion] - Client Api Version. + * @param {string} [options.adlaJobDnsSuffix] - Gets the DNS suffix used as the base for all Azure Data Lake Analytics Job service requests. + * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ constructor(credentials, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); diff --git a/lib/services/dataLake.Analytics/lib/job/models/baseJobParameters.js b/lib/services/dataLake.Analytics/lib/job/models/baseJobParameters.js new file mode 100644 index 0000000000..1551f57acc --- /dev/null +++ b/lib/services/dataLake.Analytics/lib/job/models/baseJobParameters.js @@ -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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * Data Lake Analytics Job Parameters base class for build and submit. + * + */ +class BaseJobParameters { + /** + * Create a BaseJobParameters. + * @member {string} type the job type of the current job (Hive or USql). + * Possible values include: 'USql', 'Hive' + * @member {object} properties the job specific properties. + * @member {string} [properties.runtimeVersion] the runtime version of the + * Data Lake Analytics engine to use for the specific type of job being run. + * @member {string} [properties.script] the script to run + * @member {string} [properties.type] Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of BaseJobParameters + * + * @returns {object} metadata of BaseJobParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'BaseJobParameters', + type: { + name: 'Composite', + className: 'BaseJobParameters', + modelProperties: { + type: { + required: true, + serializedName: 'type', + type: { + name: 'Enum', + allowedValues: [ 'USql', 'Hive' ] + } + }, + properties: { + required: true, + serializedName: 'properties', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CreateJobProperties', + className: 'CreateJobProperties' + } + } + } + } + }; + } +} + +module.exports = BaseJobParameters; diff --git a/lib/services/dataLake.Analytics/lib/job/models/buildJobParameters.js b/lib/services/dataLake.Analytics/lib/job/models/buildJobParameters.js new file mode 100644 index 0000000000..a35d406cc0 --- /dev/null +++ b/lib/services/dataLake.Analytics/lib/job/models/buildJobParameters.js @@ -0,0 +1,77 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The parameters used to build a new Data Lake Analytics job. + * + * @extends models['BaseJobParameters'] + */ +class BuildJobParameters extends models['BaseJobParameters'] { + /** + * Create a BuildJobParameters. + * @member {string} [name] the friendly name of the job to build. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of BuildJobParameters + * + * @returns {object} metadata of BuildJobParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'BuildJobParameters', + type: { + name: 'Composite', + className: 'BuildJobParameters', + modelProperties: { + type: { + required: true, + serializedName: 'type', + type: { + name: 'Enum', + allowedValues: [ 'USql', 'Hive' ] + } + }, + properties: { + required: true, + serializedName: 'properties', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CreateJobProperties', + className: 'CreateJobProperties' + } + }, + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = BuildJobParameters; diff --git a/lib/services/dataLake.Analytics/lib/job/models/createJobParameters.js b/lib/services/dataLake.Analytics/lib/job/models/createJobParameters.js new file mode 100644 index 0000000000..f2384f2db3 --- /dev/null +++ b/lib/services/dataLake.Analytics/lib/job/models/createJobParameters.js @@ -0,0 +1,138 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The parameters used to submit a new Data Lake Analytics job. + * + * @extends models['BaseJobParameters'] + */ +class CreateJobParameters extends models['BaseJobParameters'] { + /** + * Create a CreateJobParameters. + * @member {string} name the friendly name of the job to submit. + * @member {number} [degreeOfParallelism] the degree of parallelism to use + * for this job. This must be greater than 0, if set to less than 0 it will + * default to 1. Default value: 1 . + * @member {number} [priority] the priority value to use for the current job. + * Lower numbers have a higher priority. By default, a job has a priority of + * 1000. This must be greater than 0. + * @member {array} [logFilePatterns] the list of log file name patterns to + * find in the logFolder. '*' is the only matching character allowed. Example + * format: jobExecution*.log or *mylog*.txt + * @member {object} [related] the recurring job relationship information + * properties. + * @member {uuid} [related.pipelineId] the job relationship pipeline + * identifier (a GUID). + * @member {string} [related.pipelineName] the friendly name of the job + * relationship pipeline, which does not need to be unique. + * @member {string} [related.pipelineUri] the pipeline uri, unique, links to + * the originating service for this pipeline. + * @member {uuid} [related.runId] the run identifier (a GUID), unique + * identifier of the iteration of this pipeline. + * @member {uuid} [related.recurrenceId] the recurrence identifier (a GUID), + * unique per activity/script, regardless of iterations. This is something to + * link different occurrences of the same job together. + * @member {string} [related.recurrenceName] the recurrence name, user + * friendly name for the correlation between jobs. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CreateJobParameters + * + * @returns {object} metadata of CreateJobParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'CreateJobParameters', + type: { + name: 'Composite', + className: 'CreateJobParameters', + modelProperties: { + type: { + required: true, + serializedName: 'type', + type: { + name: 'Enum', + allowedValues: [ 'USql', 'Hive' ] + } + }, + properties: { + required: true, + serializedName: 'properties', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CreateJobProperties', + className: 'CreateJobProperties' + } + }, + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + degreeOfParallelism: { + required: false, + serializedName: 'degreeOfParallelism', + defaultValue: 1, + type: { + name: 'Number' + } + }, + priority: { + required: false, + serializedName: 'priority', + type: { + name: 'Number' + } + }, + logFilePatterns: { + required: false, + serializedName: 'logFilePatterns', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + related: { + required: false, + serializedName: 'related', + type: { + name: 'Composite', + className: 'JobRelationshipProperties' + } + } + } + } + }; + } +} + +module.exports = CreateJobParameters; diff --git a/lib/services/dataLake.Analytics/lib/job/models/createJobProperties.js b/lib/services/dataLake.Analytics/lib/job/models/createJobProperties.js new file mode 100644 index 0000000000..d1b291472c --- /dev/null +++ b/lib/services/dataLake.Analytics/lib/job/models/createJobProperties.js @@ -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. + */ + +'use strict'; + +/** + * The common Data Lake Analytics job properties for job submission. + * + */ +class CreateJobProperties { + /** + * Create a CreateJobProperties. + * @member {string} [runtimeVersion] the runtime version of the Data Lake + * Analytics engine to use for the specific type of job being run. + * @member {string} script the script to run + * @member {string} type Polymorphic Discriminator + */ + constructor() { + } + + /** + * Defines the metadata of CreateJobProperties + * + * @returns {object} metadata of CreateJobProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'CreateJobProperties', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'CreateJobProperties', + className: 'CreateJobProperties', + modelProperties: { + runtimeVersion: { + required: false, + serializedName: 'runtimeVersion', + type: { + name: 'String' + } + }, + script: { + required: true, + serializedName: 'script', + type: { + name: 'String' + } + }, + type: { + required: true, + serializedName: 'type', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = CreateJobProperties; diff --git a/lib/services/dataLake.Analytics/lib/job/models/createUSqlJobProperties.js b/lib/services/dataLake.Analytics/lib/job/models/createUSqlJobProperties.js new file mode 100644 index 0000000000..9ccea57418 --- /dev/null +++ b/lib/services/dataLake.Analytics/lib/job/models/createUSqlJobProperties.js @@ -0,0 +1,81 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * U-SQL job properties used when submitting U-SQL jobs. + * + * @extends models['CreateJobProperties'] + */ +class CreateUSqlJobProperties extends models['CreateJobProperties'] { + /** + * Create a CreateUSqlJobProperties. + * @member {string} [compileMode] Optionally enforces a specific compilation + * mode for the job during execution. If this is not specified during + * submission, the server will determine the optimal compilation mode. + * Possible values include: 'Semantic', 'Full', 'SingleBox' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of CreateUSqlJobProperties + * + * @returns {object} metadata of CreateUSqlJobProperties + * + */ + mapper() { + return { + required: false, + serializedName: 'USql', + type: { + name: 'Composite', + className: 'CreateUSqlJobProperties', + modelProperties: { + runtimeVersion: { + required: false, + serializedName: 'runtimeVersion', + type: { + name: 'String' + } + }, + script: { + required: true, + serializedName: 'script', + type: { + name: 'String' + } + }, + type: { + required: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + compileMode: { + required: false, + serializedName: 'compileMode', + type: { + name: 'Enum', + allowedValues: [ 'Semantic', 'Full', 'SingleBox' ] + } + } + } + } + }; + } +} + +module.exports = CreateUSqlJobProperties; diff --git a/lib/services/dataLake.Analytics/lib/job/models/diagnostics.js b/lib/services/dataLake.Analytics/lib/job/models/diagnostics.js index 2bd32e0b60..9670adff3e 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/diagnostics.js +++ b/lib/services/dataLake.Analytics/lib/job/models/diagnostics.js @@ -11,27 +11,21 @@ 'use strict'; /** - * @class - * Initializes a new instance of the Diagnostics class. - * @constructor * Error diagnostic information for failed jobs. * - * @member {number} [columnNumber] the column where the error occured. - * - * @member {number} [end] the ending index of the error. - * - * @member {number} [lineNumber] the line number the error occured on. - * - * @member {string} [message] the error message. - * - * @member {string} [severity] the severity of the error. Possible values - * include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', - * 'UserWarning' - * - * @member {number} [start] the starting index of the error. - * */ class Diagnostics { + /** + * Create a Diagnostics. + * @member {number} [columnNumber] the column where the error occured. + * @member {number} [end] the ending index of the error. + * @member {number} [lineNumber] the line number the error occured on. + * @member {string} [message] the error message. + * @member {string} [severity] the severity of the error. Possible values + * include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', + * 'UserWarning' + * @member {number} [start] the starting index of the error. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/hiveJobProperties.js b/lib/services/dataLake.Analytics/lib/job/models/hiveJobProperties.js index 92b1519689..32b52980cd 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/hiveJobProperties.js +++ b/lib/services/dataLake.Analytics/lib/job/models/hiveJobProperties.js @@ -13,24 +13,21 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the HiveJobProperties class. - * @constructor - * Hive job properties used when submitting and retrieving Hive jobs. - * - * @member {string} [logsLocation] the Hive logs location - * - * @member {string} [outputLocation] the location of Hive job output files - * (both execution output and results) - * - * @member {number} [statementCount] the number of statements that will be run - * based on the script - * - * @member {number} [executedStatementCount] the number of statements that have - * been run based on the script + * Hive job properties used when retrieving Hive jobs. * + * @extends models['JobProperties'] */ class HiveJobProperties extends models['JobProperties'] { + /** + * Create a HiveJobProperties. + * @member {string} [logsLocation] the Hive logs location + * @member {string} [outputLocation] the location of Hive job output files + * (both execution output and results) + * @member {number} [statementCount] the number of statements that will be + * run based on the script + * @member {number} [executedStatementCount] the number of statements that + * have been run based on the script + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/job/models/index.d.ts b/lib/services/dataLake.Analytics/lib/job/models/index.d.ts index 282973b44f..24e1de8bbe 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/index.d.ts +++ b/lib/services/dataLake.Analytics/lib/job/models/index.d.ts @@ -11,6 +11,7 @@ import { BaseResource } from 'ms-rest-azure'; import { CloudError } from 'ms-rest-azure'; import * as moment from 'moment'; + export { BaseResource } from 'ms-rest-azure'; export { CloudError } from 'ms-rest-azure'; @@ -22,61 +23,41 @@ export { CloudError } from 'ms-rest-azure'; * The Data Lake Analytics job statistics vertex stage information. * * @member {number} [dataRead] the amount of data read, in bytes. - * * @member {number} [dataReadCrossPod] the amount of data read across multiple * pods, in bytes. - * * @member {number} [dataReadIntraPod] the amount of data read in one pod, in * bytes. - * * @member {number} [dataToRead] the amount of data remaining to be read, in * bytes. - * * @member {number} [dataWritten] the amount of data written, in bytes. - * * @member {number} [duplicateDiscardCount] the number of duplicates that were * discarded. - * * @member {number} [failedCount] the number of failures that occured in this * stage. - * * @member {number} [maxVertexDataRead] the maximum amount of data read in a * single vertex, in bytes. - * * @member {number} [minVertexDataRead] the minimum amount of data read in a * single vertex, in bytes. - * * @member {number} [readFailureCount] the number of read failures in this * stage. - * * @member {number} [revocationCount] the number of vertices that were revoked * during this stage. - * * @member {number} [runningCount] the number of currently running vertices in * this stage. - * * @member {number} [scheduledCount] the number of currently scheduled vertices * in this stage - * * @member {string} [stageName] the name of this stage in job execution. - * * @member {number} [succeededCount] the number of vertices that succeeded in * this stage. - * * @member {number} [tempDataWritten] the amount of temporary data written, in * bytes. - * * @member {number} [totalCount] the total vertex count for this stage. - * * @member {moment.duration} [totalFailedTime] the amount of time that failed * vertices took up in this stage. - * * @member {number} [totalProgress] the current progress of this stage, as a * percentage. - * * @member {moment.duration} [totalSucceededTime] the amount of time all * successful vertices took in this stage. - * */ export interface JobStatisticsVertexStage { readonly dataRead?: number; @@ -108,11 +89,8 @@ export interface JobStatisticsVertexStage { * The Data Lake Analytics job execution statistics. * * @member {date} [lastUpdateTimeUtc] the last update time for the statistics. - * * @member {date} [finalizingTimeUtc] the job finalizing start time. - * * @member {array} [stages] the list of stages for the job. - * */ export interface JobStatistics { readonly lastUpdateTimeUtc?: Date; @@ -127,11 +105,8 @@ export interface JobStatistics { * A Data Lake Analytics job data path item. * * @member {uuid} [jobId] the id of the job this data is for. - * * @member {string} [command] the command that this job data relates to. - * * @member {array} [paths] the list of paths to all of the job data. - * */ export interface JobDataPath { readonly jobId?: string; @@ -147,13 +122,9 @@ export interface JobDataPath { * of a job. * * @member {string} [newState] the new state the job is in. - * * @member {date} [timeStamp] the time stamp that the state change took place. - * * @member {string} [requestedByUser] the user who requests the change. - * * @member {string} [details] the details of the audit log. - * */ export interface JobStateAuditRecord { readonly newState?: string; @@ -169,14 +140,11 @@ export interface JobStateAuditRecord { * The Data Lake Analytics job resources. * * @member {string} [name] the name of the resource. - * * @member {string} [resourcePath] the path to the resource. - * * @member {string} [type] the job resource type. Possible values include: * 'VertexResource', 'JobManagerResource', 'StatisticsResource', * 'VertexResourceInUserFolder', 'JobManagerResourceInUserFolder', * 'StatisticsResourceInUserFolder' - * */ export interface JobResource { name?: string; @@ -191,19 +159,13 @@ export interface JobResource { * Error diagnostic information for failed jobs. * * @member {number} [columnNumber] the column where the error occured. - * * @member {number} [end] the ending index of the error. - * * @member {number} [lineNumber] the line number the error occured on. - * * @member {string} [message] the error message. - * * @member {string} [severity] the severity of the error. Possible values * include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', * 'UserWarning' - * * @member {number} [start] the starting index of the error. - * */ export interface Diagnostics { readonly columnNumber?: number; @@ -222,11 +184,8 @@ export interface Diagnostics { * * @member {string} [runtimeVersion] the runtime version of the Data Lake * Analytics engine to use for the specific type of job being run. - * * @member {string} script the script to run - * * @member {string} type Polymorphic Discriminator - * */ export interface JobProperties { runtimeVersion?: string; @@ -238,73 +197,54 @@ export interface JobProperties { * @class * Initializes a new instance of the USqlJobProperties class. * @constructor - * U-SQL job properties used when submitting and retrieving U-SQL jobs. + * U-SQL job properties used when retrieving U-SQL jobs. * * @member {array} [resources] the list of resources that are required by the * job - * * @member {object} [statistics] the job specific statistics. - * * @member {date} [statistics.lastUpdateTimeUtc] the last update time for the * statistics. - * * @member {date} [statistics.finalizingTimeUtc] the job finalizing start time. - * * @member {array} [statistics.stages] the list of stages for the job. - * * @member {object} [debugData] the job specific debug data locations. - * * @member {uuid} [debugData.jobId] the id of the job this data is for. - * * @member {string} [debugData.command] the command that this job data relates * to. - * * @member {array} [debugData.paths] the list of paths to all of the job data. - * * @member {array} [diagnostics] the diagnostics for the job. - * * @member {string} [algebraFilePath] the algebra file path after the job has * completed - * * @member {moment.duration} [totalCompilationTime] the total time this job * spent compiling. This value should not be set by the user and will be * ignored if it is. - * * @member {moment.duration} [totalPauseTime] the total time this job spent * paused. This value should not be set by the user and will be ignored if it * is. - * * @member {moment.duration} [totalQueuedTime] the total time this job spent * queued. This value should not be set by the user and will be ignored if it * is. - * * @member {moment.duration} [totalRunningTime] the total time this job spent * executing. This value should not be set by the user and will be ignored if * it is. - * * @member {string} [rootProcessNodeId] the ID used to identify the job manager * coordinating job execution. This value should not be set by the user and * will be ignored if it is. - * * @member {string} [yarnApplicationId] the ID used to identify the yarn * application executing the job. This value should not be set by the user and * will be ignored if it is. - * * @member {number} [yarnApplicationTimeStamp] the timestamp (in ticks) for the * yarn application executing the job. This value should not be set by the user * and will be ignored if it is. - * - * @member {string} [compileMode] Optionally enforces a specific compilation - * mode for the job during execution. If this is not specified during - * submission, the server will determine the optimal compilation mode. Possible - * values include: 'Semantic', 'Full', 'SingleBox' - * + * @member {string} [compileMode] the specific compilation mode for the job + * used during execution. If this is not specified during submission, the + * server will determine the optimal compilation mode. Possible values include: + * 'Semantic', 'Full', 'SingleBox' */ export interface USqlJobProperties extends JobProperties { - resources?: JobResource[]; - statistics?: JobStatistics; - debugData?: JobDataPath; - diagnostics?: Diagnostics[]; + readonly resources?: JobResource[]; + readonly statistics?: JobStatistics; + readonly debugData?: JobDataPath; + readonly diagnostics?: Diagnostics[]; readonly algebraFilePath?: string; readonly totalCompilationTime?: moment.Duration; readonly totalPauseTime?: moment.Duration; @@ -313,26 +253,22 @@ export interface USqlJobProperties extends JobProperties { readonly rootProcessNodeId?: string; readonly yarnApplicationId?: string; readonly yarnApplicationTimeStamp?: number; - compileMode?: string; + readonly compileMode?: string; } /** * @class * Initializes a new instance of the HiveJobProperties class. * @constructor - * Hive job properties used when submitting and retrieving Hive jobs. + * Hive job properties used when retrieving Hive jobs. * * @member {string} [logsLocation] the Hive logs location - * * @member {string} [outputLocation] the location of Hive job output files * (both execution output and results) - * * @member {number} [statementCount] the number of statements that will be run * based on the script - * * @member {number} [executedStatementCount] the number of statements that have * been run based on the script - * */ export interface HiveJobProperties extends JobProperties { readonly logsLocation?: string; @@ -341,6 +277,38 @@ export interface HiveJobProperties extends JobProperties { readonly executedStatementCount?: number; } +/** + * @class + * Initializes a new instance of the CreateJobProperties class. + * @constructor + * The common Data Lake Analytics job properties for job submission. + * + * @member {string} [runtimeVersion] the runtime version of the Data Lake + * Analytics engine to use for the specific type of job being run. + * @member {string} script the script to run + * @member {string} type Polymorphic Discriminator + */ +export interface CreateJobProperties { + runtimeVersion?: string; + script: string; + type: string; +} + +/** + * @class + * Initializes a new instance of the CreateUSqlJobProperties class. + * @constructor + * U-SQL job properties used when submitting U-SQL jobs. + * + * @member {string} [compileMode] Optionally enforces a specific compilation + * mode for the job during execution. If this is not specified during + * submission, the server will determine the optimal compilation mode. Possible + * values include: 'Semantic', 'Full', 'SingleBox' + */ +export interface CreateUSqlJobProperties extends CreateJobProperties { + compileMode?: string; +} + /** * @class * Initializes a new instance of the JobInnerError class. @@ -348,35 +316,24 @@ export interface HiveJobProperties extends JobProperties { * The Data Lake Analytics job error details. * * @member {number} [diagnosticCode] the diagnostic error code. - * * @member {string} [severity] the severity level of the failure. Possible * values include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', * 'UserWarning' - * * @member {string} [details] the details of the error message. - * * @member {string} [component] the component that failed. - * * @member {string} [errorId] the specific identifier for the type of error * encountered in the job. - * * @member {string} [helpLink] the link to MSDN or Azure help for this type of * error, if any. - * * @member {string} [internalDiagnostics] the internal diagnostic stack trace * if the user requesting the job error details has sufficient permissions it * will be retrieved, otherwise it will be empty. - * * @member {string} [message] the user friendly error message for the failure. - * * @member {string} [resolution] the recommended resolution for the failure, if * any. - * * @member {string} [source] the ultimate source of the failure (usually either * SYSTEM or USER). - * * @member {string} [description] the error message description - * */ export interface JobInnerError { readonly diagnosticCode?: number; @@ -399,77 +356,52 @@ export interface JobInnerError { * The Data Lake Analytics job error details. * * @member {string} [description] the error message description - * * @member {string} [details] the details of the error message. - * * @member {number} [endOffset] the end offset in the job where the error was * found. - * * @member {string} [errorId] the specific identifier for the type of error * encountered in the job. - * * @member {string} [filePath] the path to any supplemental error files, if * any. - * * @member {string} [helpLink] the link to MSDN or Azure help for this type of * error, if any. - * * @member {string} [internalDiagnostics] the internal diagnostic stack trace * if the user requesting the job error details has sufficient permissions it * will be retrieved, otherwise it will be empty. - * * @member {number} [lineNumber] the specific line number in the job where the * error occured. - * * @member {string} [message] the user friendly error message for the failure. - * * @member {string} [resolution] the recommended resolution for the failure, if * any. - * * @member {object} [innerError] the inner error of this specific job error * message, if any. - * * @member {number} [innerError.diagnosticCode] the diagnostic error code. - * * @member {string} [innerError.severity] the severity level of the failure. * Possible values include: 'Warning', 'Error', 'Info', 'SevereWarning', * 'Deprecated', 'UserWarning' - * * @member {string} [innerError.details] the details of the error message. - * * @member {string} [innerError.component] the component that failed. - * * @member {string} [innerError.errorId] the specific identifier for the type * of error encountered in the job. - * * @member {string} [innerError.helpLink] the link to MSDN or Azure help for * this type of error, if any. - * * @member {string} [innerError.internalDiagnostics] the internal diagnostic * stack trace if the user requesting the job error details has sufficient * permissions it will be retrieved, otherwise it will be empty. - * * @member {string} [innerError.message] the user friendly error message for * the failure. - * * @member {string} [innerError.resolution] the recommended resolution for the * failure, if any. - * * @member {string} [innerError.source] the ultimate source of the failure * (usually either SYSTEM or USER). - * * @member {string} [innerError.description] the error message description - * * @member {string} [severity] the severity level of the failure. Possible * values include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', * 'UserWarning' - * * @member {string} [source] the ultimate source of the failure (usually either * SYSTEM or USER). - * * @member {number} [startOffset] the start offset in the job where the error * was found - * */ export interface JobErrorDetails { readonly description?: string; @@ -497,23 +429,17 @@ export interface JobErrorDetails { * * @member {uuid} [pipelineId] the job relationship pipeline identifier (a * GUID). - * * @member {string} [pipelineName] the friendly name of the job relationship * pipeline, which does not need to be unique. - * * @member {string} [pipelineUri] the pipeline uri, unique, links to the * originating service for this pipeline. - * * @member {uuid} [runId] the run identifier (a GUID), unique identifier of the * iteration of this pipeline. - * * @member {uuid} recurrenceId the recurrence identifier (a GUID), unique per * activity/script, regardless of iterations. This is something to link * different occurrences of the same job together. - * * @member {string} [recurrenceName] the recurrence name, user friendly name * for the correlation between jobs. - * */ export interface JobRelationshipProperties { pipelineId?: string; @@ -532,9 +458,7 @@ export interface JobRelationshipProperties { * * @member {uuid} [runId] the run identifier of an instance of pipeline * executions (a GUID). - * * @member {date} [lastSubmitTime] the time this instance was last submitted. - * */ export interface JobPipelineRunInformation { readonly runId?: string; @@ -550,40 +474,28 @@ export interface JobPipelineRunInformation { * * @member {uuid} [pipelineId] the job relationship pipeline identifier (a * GUID). - * * @member {string} [pipelineName] the friendly name of the job relationship * pipeline, which does not need to be unique. - * * @member {string} [pipelineUri] the pipeline uri, unique, links to the * originating service for this pipeline. - * * @member {number} [numJobsFailed] the number of jobs in this pipeline that * have failed. - * * @member {number} [numJobsCanceled] the number of jobs in this pipeline that * have been canceled. - * * @member {number} [numJobsSucceeded] the number of jobs in this pipeline that * have succeeded. - * * @member {number} [auHoursFailed] the number of job execution hours that * resulted in failed jobs. - * * @member {number} [auHoursCanceled] the number of job execution hours that * resulted in canceled jobs. - * * @member {number} [auHoursSucceeded] the number of job execution hours that * resulted in successful jobs. - * * @member {date} [lastSubmitTime] the last time a job in this pipeline was * submitted. - * * @member {array} [runs] the list of recurrence identifiers representing each * run of this pipeline. - * * @member {array} [recurrences] the list of recurrence identifiers * representing each run of this pipeline. - * */ export interface JobPipelineInformation { readonly pipelineId?: string; @@ -607,9 +519,7 @@ export interface JobPipelineInformation { * List of job pipeline information items. * * @member {array} [value] the list of job pipeline information items. - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface JobPipelineInformationListResult { readonly value?: JobPipelineInformation[]; @@ -625,31 +535,22 @@ export interface JobPipelineInformationListResult { * @member {uuid} [recurrenceId] the recurrence identifier (a GUID), unique per * activity/script, regardless of iterations. This is something to link * different occurrences of the same job together. - * * @member {string} [recurrenceName] the recurrence name, user friendly name * for the correlation between jobs. - * * @member {number} [numJobsFailed] the number of jobs in this recurrence that * have failed. - * * @member {number} [numJobsCanceled] the number of jobs in this recurrence * that have been canceled. - * * @member {number} [numJobsSucceeded] the number of jobs in this recurrence * that have succeeded. - * * @member {number} [auHoursFailed] the number of job execution hours that * resulted in failed jobs. - * * @member {number} [auHoursCanceled] the number of job execution hours that * resulted in canceled jobs. - * * @member {number} [auHoursSucceeded] the number of job execution hours that * resulted in successful jobs. - * * @member {date} [lastSubmitTime] the last time a job in this recurrence was * submitted. - * */ export interface JobRecurrenceInformation { readonly recurrenceId?: string; @@ -670,9 +571,7 @@ export interface JobRecurrenceInformation { * List of job recurrence information items. * * @member {array} [value] the list of job recurrence information items. - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface JobRecurrenceInformationListResult { readonly value?: JobRecurrenceInformation[]; @@ -681,94 +580,129 @@ export interface JobRecurrenceInformationListResult { /** * @class - * Initializes a new instance of the JobInformation class. + * Initializes a new instance of the BaseJobParameters class. + * @constructor + * Data Lake Analytics Job Parameters base class for build and submit. + * + * @member {string} type the job type of the current job (Hive or USql). + * Possible values include: 'USql', 'Hive' + * @member {object} properties the job specific properties. + * @member {string} [properties.runtimeVersion] the runtime version of the Data + * Lake Analytics engine to use for the specific type of job being run. + * @member {string} [properties.script] the script to run + * @member {string} [properties.type] Polymorphic Discriminator + */ +export interface BaseJobParameters { + type: string; + properties: CreateJobProperties; +} + +/** + * @class + * Initializes a new instance of the CreateJobParameters class. + * @constructor + * The parameters used to submit a new Data Lake Analytics job. + * + * @member {string} name the friendly name of the job to submit. + * @member {number} [degreeOfParallelism] the degree of parallelism to use for + * this job. This must be greater than 0, if set to less than 0 it will default + * to 1. Default value: 1 . + * @member {number} [priority] the priority value to use for the current job. + * Lower numbers have a higher priority. By default, a job has a priority of + * 1000. This must be greater than 0. + * @member {array} [logFilePatterns] the list of log file name patterns to find + * in the logFolder. '*' is the only matching character allowed. Example + * format: jobExecution*.log or *mylog*.txt + * @member {object} [related] the recurring job relationship information + * properties. + * @member {uuid} [related.pipelineId] the job relationship pipeline identifier + * (a GUID). + * @member {string} [related.pipelineName] the friendly name of the job + * relationship pipeline, which does not need to be unique. + * @member {string} [related.pipelineUri] the pipeline uri, unique, links to + * the originating service for this pipeline. + * @member {uuid} [related.runId] the run identifier (a GUID), unique + * identifier of the iteration of this pipeline. + * @member {uuid} [related.recurrenceId] the recurrence identifier (a GUID), + * unique per activity/script, regardless of iterations. This is something to + * link different occurrences of the same job together. + * @member {string} [related.recurrenceName] the recurrence name, user friendly + * name for the correlation between jobs. + */ +export interface CreateJobParameters extends BaseJobParameters { + name: string; + degreeOfParallelism?: number; + priority?: number; + logFilePatterns?: string[]; + related?: JobRelationshipProperties; +} + +/** + * @class + * Initializes a new instance of the BuildJobParameters class. + * @constructor + * The parameters used to build a new Data Lake Analytics job. + * + * @member {string} [name] the friendly name of the job to build. + */ +export interface BuildJobParameters extends BaseJobParameters { + name?: string; +} + +/** + * @class + * Initializes a new instance of the JobInformationBasic class. * @constructor * The common Data Lake Analytics job information properties. * * @member {uuid} [jobId] the job's unique identifier (a GUID). - * * @member {string} name the friendly name of the job. - * * @member {string} type the job type of the current job (Hive or USql). * Possible values include: 'USql', 'Hive' - * * @member {string} [submitter] the user or account that submitted the job. - * - * @member {array} [errorMessage] the error message details for the job, if the - * job failed. - * * @member {number} [degreeOfParallelism] the degree of parallelism used for * this job. This must be greater than 0, if set to less than 0 it will default * to 1. Default value: 1 . - * * @member {number} [priority] the priority value for the current job. Lower * numbers have a higher priority. By default, a job has a priority of 1000. * This must be greater than 0. - * * @member {date} [submitTime] the time the job was submitted to the service. - * * @member {date} [startTime] the start time of the job. - * * @member {date} [endTime] the completion time of the job. - * * @member {string} [state] the job state. When the job is in the Ended state, * refer to Result and ErrorMessage for details. Possible values include: * 'Accepted', 'Compiling', 'Ended', 'New', 'Queued', 'Running', 'Scheduling', * 'Starting', 'Paused', 'WaitingForCapacity' - * * @member {string} [result] the result of job execution or the current result * of the running job. Possible values include: 'None', 'Succeeded', * 'Cancelled', 'Failed' - * * @member {string} [logFolder] the log folder path to use in the following * format: * adl://.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/. - * * @member {array} [logFilePatterns] the list of log file name patterns to find * in the logFolder. '*' is the only matching character allowed. Example * format: jobExecution*.log or *mylog*.txt - * - * @member {array} [stateAuditRecords] the job state audit records, indicating - * when various operations have been performed on this job. - * - * @member {object} properties the job specific properties. - * - * @member {string} [properties.runtimeVersion] the runtime version of the Data - * Lake Analytics engine to use for the specific type of job being run. - * - * @member {string} [properties.script] the script to run - * - * @member {string} [properties.type] Polymorphic Discriminator - * * @member {object} [related] the recurring job relationship information * properties. - * * @member {uuid} [related.pipelineId] the job relationship pipeline identifier * (a GUID). - * * @member {string} [related.pipelineName] the friendly name of the job * relationship pipeline, which does not need to be unique. - * * @member {string} [related.pipelineUri] the pipeline uri, unique, links to * the originating service for this pipeline. - * * @member {uuid} [related.runId] the run identifier (a GUID), unique * identifier of the iteration of this pipeline. - * * @member {uuid} [related.recurrenceId] the recurrence identifier (a GUID), * unique per activity/script, regardless of iterations. This is something to * link different occurrences of the same job together. - * * @member {string} [related.recurrenceName] the recurrence name, user friendly * name for the correlation between jobs. - * */ -export interface JobInformation { +export interface JobInformationBasic { readonly jobId?: string; name: string; type: string; readonly submitter?: string; - readonly errorMessage?: JobErrorDetails[]; degreeOfParallelism?: number; priority?: number; readonly submitTime?: Date; @@ -778,9 +712,30 @@ export interface JobInformation { readonly result?: string; readonly logFolder?: string; logFilePatterns?: string[]; + related?: JobRelationshipProperties; +} + +/** + * @class + * Initializes a new instance of the JobInformation class. + * @constructor + * The extended Data Lake Analytics job information properties returned when + * retrieving a specific job. + * + * @member {array} [errorMessage] the error message details for the job, if the + * job failed. + * @member {array} [stateAuditRecords] the job state audit records, indicating + * when various operations have been performed on this job. + * @member {object} properties the job specific properties. + * @member {string} [properties.runtimeVersion] the runtime version of the Data + * Lake Analytics engine to use for the specific type of job being run. + * @member {string} [properties.script] the script to run + * @member {string} [properties.type] Polymorphic Discriminator + */ +export interface JobInformation extends JobInformationBasic { + readonly errorMessage?: JobErrorDetails[]; readonly stateAuditRecords?: JobStateAuditRecord[]; properties: JobProperties; - related?: JobRelationshipProperties; } /** @@ -790,12 +745,10 @@ export interface JobInformation { * List of jobInfo items. * * @member {array} [value] the list of jobInfo items. - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface JobInfoListResult { - readonly value?: JobInformation[]; + readonly value?: JobInformationBasic[]; readonly nextLink?: string; } @@ -806,9 +759,7 @@ export interface JobInfoListResult { * List of job pipeline information items. * * @member {array} [value] the list of job pipeline information items. - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface JobPipelineInformationListResult { readonly value?: JobPipelineInformation[]; @@ -822,9 +773,7 @@ export interface JobPipelineInformationListResult { * List of job recurrence information items. * * @member {array} [value] the list of job recurrence information items. - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface JobRecurrenceInformationListResult { readonly value?: JobRecurrenceInformation[]; @@ -838,12 +787,10 @@ export interface JobRecurrenceInformationListResult { * List of jobInfo items. * * @member {array} [value] the list of jobInfo items. - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface JobInfoListResult { - readonly value?: JobInformation[]; + readonly value?: JobInformationBasic[]; readonly nextLink?: string; } @@ -855,7 +802,6 @@ export interface JobInfoListResult { * List of job pipeline information items. * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface JobPipelineInformationListResult extends Array { readonly nextLink?: string; @@ -868,7 +814,6 @@ export interface JobPipelineInformationListResult extends Array { readonly nextLink?: string; @@ -881,8 +826,7 @@ export interface JobRecurrenceInformationListResult extends Array { +export interface JobInfoListResult extends Array { readonly nextLink?: string; } diff --git a/lib/services/dataLake.Analytics/lib/job/models/index.js b/lib/services/dataLake.Analytics/lib/job/models/index.js index 3ea64bd97e..a8403c0105 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/index.js +++ b/lib/services/dataLake.Analytics/lib/job/models/index.js @@ -27,6 +27,8 @@ exports.Diagnostics = require('./diagnostics'); exports.JobProperties = require('./jobProperties'); exports.USqlJobProperties = require('./uSqlJobProperties'); exports.HiveJobProperties = require('./hiveJobProperties'); +exports.CreateJobProperties = require('./createJobProperties'); +exports.CreateUSqlJobProperties = require('./createUSqlJobProperties'); exports.JobInnerError = require('./jobInnerError'); exports.JobErrorDetails = require('./jobErrorDetails'); exports.JobRelationshipProperties = require('./jobRelationshipProperties'); @@ -35,6 +37,10 @@ exports.JobPipelineInformation = require('./jobPipelineInformation'); exports.JobPipelineInformationListResult = require('./jobPipelineInformationListResult'); exports.JobRecurrenceInformation = require('./jobRecurrenceInformation'); exports.JobRecurrenceInformationListResult = require('./jobRecurrenceInformationListResult'); +exports.BaseJobParameters = require('./baseJobParameters'); +exports.CreateJobParameters = require('./createJobParameters'); +exports.BuildJobParameters = require('./buildJobParameters'); +exports.JobInformationBasic = require('./jobInformationBasic'); exports.JobInformation = require('./jobInformation'); exports.JobInfoListResult = require('./jobInfoListResult'); exports.JobPipelineInformationListResult = require('./jobPipelineInformationListResult'); @@ -43,5 +49,7 @@ exports.JobInfoListResult = require('./jobInfoListResult'); exports.discriminators = { 'JobProperties.USql' : exports.USqlJobProperties, 'JobProperties.Hive' : exports.HiveJobProperties, - 'JobProperties' : exports.JobProperties + 'JobProperties' : exports.JobProperties, + 'CreateJobProperties.USql' : exports.CreateUSqlJobProperties, + 'CreateJobProperties' : exports.CreateJobProperties }; diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobDataPath.js b/lib/services/dataLake.Analytics/lib/job/models/jobDataPath.js index debd444cdf..cb4ab81b45 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobDataPath.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobDataPath.js @@ -11,19 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobDataPath class. - * @constructor * A Data Lake Analytics job data path item. * - * @member {uuid} [jobId] the id of the job this data is for. - * - * @member {string} [command] the command that this job data relates to. - * - * @member {array} [paths] the list of paths to all of the job data. - * */ class JobDataPath { + /** + * Create a JobDataPath. + * @member {uuid} [jobId] the id of the job this data is for. + * @member {string} [command] the command that this job data relates to. + * @member {array} [paths] the list of paths to all of the job data. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobErrorDetails.js b/lib/services/dataLake.Analytics/lib/job/models/jobErrorDetails.js index 1934b9f041..4dff7855ba 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobErrorDetails.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobErrorDetails.js @@ -13,85 +13,61 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the JobErrorDetails class. - * @constructor * The Data Lake Analytics job error details. * - * @member {string} [description] the error message description - * - * @member {string} [details] the details of the error message. - * - * @member {number} [endOffset] the end offset in the job where the error was - * found. - * - * @member {string} [errorId] the specific identifier for the type of error - * encountered in the job. - * - * @member {string} [filePath] the path to any supplemental error files, if - * any. - * - * @member {string} [helpLink] the link to MSDN or Azure help for this type of - * error, if any. - * - * @member {string} [internalDiagnostics] the internal diagnostic stack trace - * if the user requesting the job error details has sufficient permissions it - * will be retrieved, otherwise it will be empty. - * - * @member {number} [lineNumber] the specific line number in the job where the - * error occured. - * - * @member {string} [message] the user friendly error message for the failure. - * - * @member {string} [resolution] the recommended resolution for the failure, if - * any. - * - * @member {object} [innerError] the inner error of this specific job error - * message, if any. - * - * @member {number} [innerError.diagnosticCode] the diagnostic error code. - * - * @member {string} [innerError.severity] the severity level of the failure. - * Possible values include: 'Warning', 'Error', 'Info', 'SevereWarning', - * 'Deprecated', 'UserWarning' - * - * @member {string} [innerError.details] the details of the error message. - * - * @member {string} [innerError.component] the component that failed. - * - * @member {string} [innerError.errorId] the specific identifier for the type - * of error encountered in the job. - * - * @member {string} [innerError.helpLink] the link to MSDN or Azure help for - * this type of error, if any. - * - * @member {string} [innerError.internalDiagnostics] the internal diagnostic - * stack trace if the user requesting the job error details has sufficient - * permissions it will be retrieved, otherwise it will be empty. - * - * @member {string} [innerError.message] the user friendly error message for - * the failure. - * - * @member {string} [innerError.resolution] the recommended resolution for the - * failure, if any. - * - * @member {string} [innerError.source] the ultimate source of the failure - * (usually either SYSTEM or USER). - * - * @member {string} [innerError.description] the error message description - * - * @member {string} [severity] the severity level of the failure. Possible - * values include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', - * 'UserWarning' - * - * @member {string} [source] the ultimate source of the failure (usually either - * SYSTEM or USER). - * - * @member {number} [startOffset] the start offset in the job where the error - * was found - * */ class JobErrorDetails { + /** + * Create a JobErrorDetails. + * @member {string} [description] the error message description + * @member {string} [details] the details of the error message. + * @member {number} [endOffset] the end offset in the job where the error was + * found. + * @member {string} [errorId] the specific identifier for the type of error + * encountered in the job. + * @member {string} [filePath] the path to any supplemental error files, if + * any. + * @member {string} [helpLink] the link to MSDN or Azure help for this type + * of error, if any. + * @member {string} [internalDiagnostics] the internal diagnostic stack trace + * if the user requesting the job error details has sufficient permissions it + * will be retrieved, otherwise it will be empty. + * @member {number} [lineNumber] the specific line number in the job where + * the error occured. + * @member {string} [message] the user friendly error message for the + * failure. + * @member {string} [resolution] the recommended resolution for the failure, + * if any. + * @member {object} [innerError] the inner error of this specific job error + * message, if any. + * @member {number} [innerError.diagnosticCode] the diagnostic error code. + * @member {string} [innerError.severity] the severity level of the failure. + * Possible values include: 'Warning', 'Error', 'Info', 'SevereWarning', + * 'Deprecated', 'UserWarning' + * @member {string} [innerError.details] the details of the error message. + * @member {string} [innerError.component] the component that failed. + * @member {string} [innerError.errorId] the specific identifier for the type + * of error encountered in the job. + * @member {string} [innerError.helpLink] the link to MSDN or Azure help for + * this type of error, if any. + * @member {string} [innerError.internalDiagnostics] the internal diagnostic + * stack trace if the user requesting the job error details has sufficient + * permissions it will be retrieved, otherwise it will be empty. + * @member {string} [innerError.message] the user friendly error message for + * the failure. + * @member {string} [innerError.resolution] the recommended resolution for + * the failure, if any. + * @member {string} [innerError.source] the ultimate source of the failure + * (usually either SYSTEM or USER). + * @member {string} [innerError.description] the error message description + * @member {string} [severity] the severity level of the failure. Possible + * values include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', + * 'UserWarning' + * @member {string} [source] the ultimate source of the failure (usually + * either SYSTEM or USER). + * @member {number} [startOffset] the start offset in the job where the error + * was found + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobInfoListResult.js b/lib/services/dataLake.Analytics/lib/job/models/jobInfoListResult.js index 6734678373..9b026de783 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobInfoListResult.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobInfoListResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobInfoListResult class. - * @constructor * List of jobInfo items. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class JobInfoListResult extends Array { + /** + * Create a JobInfoListResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } @@ -46,10 +44,10 @@ class JobInfoListResult extends Array { name: 'Sequence', element: { required: false, - serializedName: 'JobInformationElementType', + serializedName: 'JobInformationBasicElementType', type: { name: 'Composite', - className: 'JobInformation' + className: 'JobInformationBasic' } } } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobInformation.js b/lib/services/dataLake.Analytics/lib/job/models/jobInformation.js index 945e8b345d..ab9e199927 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobInformation.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobInformation.js @@ -13,91 +13,26 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the JobInformation class. - * @constructor - * The common Data Lake Analytics job information properties. - * - * @member {uuid} [jobId] the job's unique identifier (a GUID). - * - * @member {string} name the friendly name of the job. - * - * @member {string} type the job type of the current job (Hive or USql). - * Possible values include: 'USql', 'Hive' - * - * @member {string} [submitter] the user or account that submitted the job. - * - * @member {array} [errorMessage] the error message details for the job, if the - * job failed. - * - * @member {number} [degreeOfParallelism] the degree of parallelism used for - * this job. This must be greater than 0, if set to less than 0 it will default - * to 1. Default value: 1 . - * - * @member {number} [priority] the priority value for the current job. Lower - * numbers have a higher priority. By default, a job has a priority of 1000. - * This must be greater than 0. - * - * @member {date} [submitTime] the time the job was submitted to the service. - * - * @member {date} [startTime] the start time of the job. - * - * @member {date} [endTime] the completion time of the job. - * - * @member {string} [state] the job state. When the job is in the Ended state, - * refer to Result and ErrorMessage for details. Possible values include: - * 'Accepted', 'Compiling', 'Ended', 'New', 'Queued', 'Running', 'Scheduling', - * 'Starting', 'Paused', 'WaitingForCapacity' - * - * @member {string} [result] the result of job execution or the current result - * of the running job. Possible values include: 'None', 'Succeeded', - * 'Cancelled', 'Failed' - * - * @member {string} [logFolder] the log folder path to use in the following - * format: - * adl://.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/. - * - * @member {array} [logFilePatterns] the list of log file name patterns to find - * in the logFolder. '*' is the only matching character allowed. Example - * format: jobExecution*.log or *mylog*.txt - * - * @member {array} [stateAuditRecords] the job state audit records, indicating - * when various operations have been performed on this job. - * - * @member {object} properties the job specific properties. - * - * @member {string} [properties.runtimeVersion] the runtime version of the Data - * Lake Analytics engine to use for the specific type of job being run. - * - * @member {string} [properties.script] the script to run - * - * @member {string} [properties.type] Polymorphic Discriminator - * - * @member {object} [related] the recurring job relationship information - * properties. - * - * @member {uuid} [related.pipelineId] the job relationship pipeline identifier - * (a GUID). - * - * @member {string} [related.pipelineName] the friendly name of the job - * relationship pipeline, which does not need to be unique. - * - * @member {string} [related.pipelineUri] the pipeline uri, unique, links to - * the originating service for this pipeline. - * - * @member {uuid} [related.runId] the run identifier (a GUID), unique - * identifier of the iteration of this pipeline. - * - * @member {uuid} [related.recurrenceId] the recurrence identifier (a GUID), - * unique per activity/script, regardless of iterations. This is something to - * link different occurrences of the same job together. - * - * @member {string} [related.recurrenceName] the recurrence name, user friendly - * name for the correlation between jobs. + * The extended Data Lake Analytics job information properties returned when + * retrieving a specific job. * + * @extends models['JobInformationBasic'] */ -class JobInformation { +class JobInformation extends models['JobInformationBasic'] { + /** + * Create a JobInformation. + * @member {array} [errorMessage] the error message details for the job, if + * the job failed. + * @member {array} [stateAuditRecords] the job state audit records, + * indicating when various operations have been performed on this job. + * @member {object} properties the job specific properties. + * @member {string} [properties.runtimeVersion] the runtime version of the + * Data Lake Analytics engine to use for the specific type of job being run. + * @member {string} [properties.script] the script to run + * @member {string} [properties.type] Polymorphic Discriminator + */ constructor() { + super(); } /** @@ -145,22 +80,6 @@ class JobInformation { name: 'String' } }, - errorMessage: { - required: false, - readOnly: true, - serializedName: 'errorMessage', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'JobErrorDetailsElementType', - type: { - name: 'Composite', - className: 'JobErrorDetails' - } - } - } - }, degreeOfParallelism: { required: false, serializedName: 'degreeOfParallelism', @@ -240,6 +159,30 @@ class JobInformation { } } }, + related: { + required: false, + serializedName: 'related', + type: { + name: 'Composite', + className: 'JobRelationshipProperties' + } + }, + errorMessage: { + required: false, + readOnly: true, + serializedName: 'errorMessage', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'JobErrorDetailsElementType', + type: { + name: 'Composite', + className: 'JobErrorDetails' + } + } + } + }, stateAuditRecords: { required: false, readOnly: true, @@ -268,14 +211,6 @@ class JobInformation { uberParent: 'JobProperties', className: 'JobProperties' } - }, - related: { - required: false, - serializedName: 'related', - type: { - name: 'Composite', - className: 'JobRelationshipProperties' - } } } } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobInformationBasic.js b/lib/services/dataLake.Analytics/lib/job/models/jobInformationBasic.js new file mode 100644 index 0000000000..1224ee33d1 --- /dev/null +++ b/lib/services/dataLake.Analytics/lib/job/models/jobInformationBasic.js @@ -0,0 +1,206 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * The common Data Lake Analytics job information properties. + * + */ +class JobInformationBasic { + /** + * Create a JobInformationBasic. + * @member {uuid} [jobId] the job's unique identifier (a GUID). + * @member {string} name the friendly name of the job. + * @member {string} type the job type of the current job (Hive or USql). + * Possible values include: 'USql', 'Hive' + * @member {string} [submitter] the user or account that submitted the job. + * @member {number} [degreeOfParallelism] the degree of parallelism used for + * this job. This must be greater than 0, if set to less than 0 it will + * default to 1. Default value: 1 . + * @member {number} [priority] the priority value for the current job. Lower + * numbers have a higher priority. By default, a job has a priority of 1000. + * This must be greater than 0. + * @member {date} [submitTime] the time the job was submitted to the service. + * @member {date} [startTime] the start time of the job. + * @member {date} [endTime] the completion time of the job. + * @member {string} [state] the job state. When the job is in the Ended + * state, refer to Result and ErrorMessage for details. Possible values + * include: 'Accepted', 'Compiling', 'Ended', 'New', 'Queued', 'Running', + * 'Scheduling', 'Starting', 'Paused', 'WaitingForCapacity' + * @member {string} [result] the result of job execution or the current + * result of the running job. Possible values include: 'None', 'Succeeded', + * 'Cancelled', 'Failed' + * @member {string} [logFolder] the log folder path to use in the following + * format: + * adl://.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/. + * @member {array} [logFilePatterns] the list of log file name patterns to + * find in the logFolder. '*' is the only matching character allowed. Example + * format: jobExecution*.log or *mylog*.txt + * @member {object} [related] the recurring job relationship information + * properties. + * @member {uuid} [related.pipelineId] the job relationship pipeline + * identifier (a GUID). + * @member {string} [related.pipelineName] the friendly name of the job + * relationship pipeline, which does not need to be unique. + * @member {string} [related.pipelineUri] the pipeline uri, unique, links to + * the originating service for this pipeline. + * @member {uuid} [related.runId] the run identifier (a GUID), unique + * identifier of the iteration of this pipeline. + * @member {uuid} [related.recurrenceId] the recurrence identifier (a GUID), + * unique per activity/script, regardless of iterations. This is something to + * link different occurrences of the same job together. + * @member {string} [related.recurrenceName] the recurrence name, user + * friendly name for the correlation between jobs. + */ + constructor() { + } + + /** + * Defines the metadata of JobInformationBasic + * + * @returns {object} metadata of JobInformationBasic + * + */ + mapper() { + return { + required: false, + serializedName: 'JobInformationBasic', + type: { + name: 'Composite', + className: 'JobInformationBasic', + modelProperties: { + jobId: { + required: false, + readOnly: true, + serializedName: 'jobId', + type: { + name: 'String' + } + }, + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: true, + serializedName: 'type', + type: { + name: 'Enum', + allowedValues: [ 'USql', 'Hive' ] + } + }, + submitter: { + required: false, + readOnly: true, + serializedName: 'submitter', + type: { + name: 'String' + } + }, + degreeOfParallelism: { + required: false, + serializedName: 'degreeOfParallelism', + defaultValue: 1, + type: { + name: 'Number' + } + }, + priority: { + required: false, + serializedName: 'priority', + type: { + name: 'Number' + } + }, + submitTime: { + required: false, + readOnly: true, + serializedName: 'submitTime', + type: { + name: 'DateTime' + } + }, + startTime: { + required: false, + readOnly: true, + serializedName: 'startTime', + type: { + name: 'DateTime' + } + }, + endTime: { + required: false, + readOnly: true, + serializedName: 'endTime', + type: { + name: 'DateTime' + } + }, + state: { + required: false, + readOnly: true, + serializedName: 'state', + type: { + name: 'Enum', + allowedValues: [ 'Accepted', 'Compiling', 'Ended', 'New', 'Queued', 'Running', 'Scheduling', 'Starting', 'Paused', 'WaitingForCapacity' ] + } + }, + result: { + required: false, + readOnly: true, + serializedName: 'result', + type: { + name: 'Enum', + allowedValues: [ 'None', 'Succeeded', 'Cancelled', 'Failed' ] + } + }, + logFolder: { + required: false, + readOnly: true, + serializedName: 'logFolder', + type: { + name: 'String' + } + }, + logFilePatterns: { + required: false, + serializedName: 'logFilePatterns', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + related: { + required: false, + serializedName: 'related', + type: { + name: 'Composite', + className: 'JobRelationshipProperties' + } + } + } + } + }; + } +} + +module.exports = JobInformationBasic; diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobInnerError.js b/lib/services/dataLake.Analytics/lib/job/models/jobInnerError.js index 2702064f6b..37fac60e65 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobInnerError.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobInnerError.js @@ -11,43 +11,33 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobInnerError class. - * @constructor * The Data Lake Analytics job error details. * - * @member {number} [diagnosticCode] the diagnostic error code. - * - * @member {string} [severity] the severity level of the failure. Possible - * values include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', - * 'UserWarning' - * - * @member {string} [details] the details of the error message. - * - * @member {string} [component] the component that failed. - * - * @member {string} [errorId] the specific identifier for the type of error - * encountered in the job. - * - * @member {string} [helpLink] the link to MSDN or Azure help for this type of - * error, if any. - * - * @member {string} [internalDiagnostics] the internal diagnostic stack trace - * if the user requesting the job error details has sufficient permissions it - * will be retrieved, otherwise it will be empty. - * - * @member {string} [message] the user friendly error message for the failure. - * - * @member {string} [resolution] the recommended resolution for the failure, if - * any. - * - * @member {string} [source] the ultimate source of the failure (usually either - * SYSTEM or USER). - * - * @member {string} [description] the error message description - * */ class JobInnerError { + /** + * Create a JobInnerError. + * @member {number} [diagnosticCode] the diagnostic error code. + * @member {string} [severity] the severity level of the failure. Possible + * values include: 'Warning', 'Error', 'Info', 'SevereWarning', 'Deprecated', + * 'UserWarning' + * @member {string} [details] the details of the error message. + * @member {string} [component] the component that failed. + * @member {string} [errorId] the specific identifier for the type of error + * encountered in the job. + * @member {string} [helpLink] the link to MSDN or Azure help for this type + * of error, if any. + * @member {string} [internalDiagnostics] the internal diagnostic stack trace + * if the user requesting the job error details has sufficient permissions it + * will be retrieved, otherwise it will be empty. + * @member {string} [message] the user friendly error message for the + * failure. + * @member {string} [resolution] the recommended resolution for the failure, + * if any. + * @member {string} [source] the ultimate source of the failure (usually + * either SYSTEM or USER). + * @member {string} [description] the error message description + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobPipelineInformation.js b/lib/services/dataLake.Analytics/lib/job/models/jobPipelineInformation.js index afd799e8e3..3b0c7aa98a 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobPipelineInformation.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobPipelineInformation.js @@ -13,50 +13,38 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the JobPipelineInformation class. - * @constructor * Job Pipeline Information, showing the relationship of jobs and recurrences * of those jobs in a pipeline. * - * @member {uuid} [pipelineId] the job relationship pipeline identifier (a - * GUID). - * - * @member {string} [pipelineName] the friendly name of the job relationship - * pipeline, which does not need to be unique. - * - * @member {string} [pipelineUri] the pipeline uri, unique, links to the - * originating service for this pipeline. - * - * @member {number} [numJobsFailed] the number of jobs in this pipeline that - * have failed. - * - * @member {number} [numJobsCanceled] the number of jobs in this pipeline that - * have been canceled. - * - * @member {number} [numJobsSucceeded] the number of jobs in this pipeline that - * have succeeded. - * - * @member {number} [auHoursFailed] the number of job execution hours that - * resulted in failed jobs. - * - * @member {number} [auHoursCanceled] the number of job execution hours that - * resulted in canceled jobs. - * - * @member {number} [auHoursSucceeded] the number of job execution hours that - * resulted in successful jobs. - * - * @member {date} [lastSubmitTime] the last time a job in this pipeline was - * submitted. - * - * @member {array} [runs] the list of recurrence identifiers representing each - * run of this pipeline. - * - * @member {array} [recurrences] the list of recurrence identifiers - * representing each run of this pipeline. - * */ class JobPipelineInformation { + /** + * Create a JobPipelineInformation. + * @member {uuid} [pipelineId] the job relationship pipeline identifier (a + * GUID). + * @member {string} [pipelineName] the friendly name of the job relationship + * pipeline, which does not need to be unique. + * @member {string} [pipelineUri] the pipeline uri, unique, links to the + * originating service for this pipeline. + * @member {number} [numJobsFailed] the number of jobs in this pipeline that + * have failed. + * @member {number} [numJobsCanceled] the number of jobs in this pipeline + * that have been canceled. + * @member {number} [numJobsSucceeded] the number of jobs in this pipeline + * that have succeeded. + * @member {number} [auHoursFailed] the number of job execution hours that + * resulted in failed jobs. + * @member {number} [auHoursCanceled] the number of job execution hours that + * resulted in canceled jobs. + * @member {number} [auHoursSucceeded] the number of job execution hours that + * resulted in successful jobs. + * @member {date} [lastSubmitTime] the last time a job in this pipeline was + * submitted. + * @member {array} [runs] the list of recurrence identifiers representing + * each run of this pipeline. + * @member {array} [recurrences] the list of recurrence identifiers + * representing each run of this pipeline. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobPipelineInformationListResult.js b/lib/services/dataLake.Analytics/lib/job/models/jobPipelineInformationListResult.js index c13b4947b2..cdd2189143 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobPipelineInformationListResult.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobPipelineInformationListResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobPipelineInformationListResult class. - * @constructor * List of job pipeline information items. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class JobPipelineInformationListResult extends Array { + /** + * Create a JobPipelineInformationListResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobPipelineRunInformation.js b/lib/services/dataLake.Analytics/lib/job/models/jobPipelineRunInformation.js index 6c05595896..e802db493d 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobPipelineRunInformation.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobPipelineRunInformation.js @@ -11,18 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobPipelineRunInformation class. - * @constructor * Run info for a specific job pipeline. * - * @member {uuid} [runId] the run identifier of an instance of pipeline - * executions (a GUID). - * - * @member {date} [lastSubmitTime] the time this instance was last submitted. - * */ class JobPipelineRunInformation { + /** + * Create a JobPipelineRunInformation. + * @member {uuid} [runId] the run identifier of an instance of pipeline + * executions (a GUID). + * @member {date} [lastSubmitTime] the time this instance was last submitted. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobProperties.js b/lib/services/dataLake.Analytics/lib/job/models/jobProperties.js index d8c1163a84..d0d18654a4 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobProperties.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobProperties.js @@ -11,20 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobProperties class. - * @constructor * The common Data Lake Analytics job properties. * - * @member {string} [runtimeVersion] the runtime version of the Data Lake - * Analytics engine to use for the specific type of job being run. - * - * @member {string} script the script to run - * - * @member {string} type Polymorphic Discriminator - * */ class JobProperties { + /** + * Create a JobProperties. + * @member {string} [runtimeVersion] the runtime version of the Data Lake + * Analytics engine to use for the specific type of job being run. + * @member {string} script the script to run + * @member {string} type Polymorphic Discriminator + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobRecurrenceInformation.js b/lib/services/dataLake.Analytics/lib/job/models/jobRecurrenceInformation.js index f69ffe137f..2dc9fb3874 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobRecurrenceInformation.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobRecurrenceInformation.js @@ -11,41 +11,32 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobRecurrenceInformation class. - * @constructor * Recurrence job information for a specific recurrence. * - * @member {uuid} [recurrenceId] the recurrence identifier (a GUID), unique per - * activity/script, regardless of iterations. This is something to link - * different occurrences of the same job together. - * - * @member {string} [recurrenceName] the recurrence name, user friendly name - * for the correlation between jobs. - * - * @member {number} [numJobsFailed] the number of jobs in this recurrence that - * have failed. - * - * @member {number} [numJobsCanceled] the number of jobs in this recurrence - * that have been canceled. - * - * @member {number} [numJobsSucceeded] the number of jobs in this recurrence - * that have succeeded. - * - * @member {number} [auHoursFailed] the number of job execution hours that - * resulted in failed jobs. - * - * @member {number} [auHoursCanceled] the number of job execution hours that - * resulted in canceled jobs. - * - * @member {number} [auHoursSucceeded] the number of job execution hours that - * resulted in successful jobs. - * - * @member {date} [lastSubmitTime] the last time a job in this recurrence was - * submitted. - * */ class JobRecurrenceInformation { + /** + * Create a JobRecurrenceInformation. + * @member {uuid} [recurrenceId] the recurrence identifier (a GUID), unique + * per activity/script, regardless of iterations. This is something to link + * different occurrences of the same job together. + * @member {string} [recurrenceName] the recurrence name, user friendly name + * for the correlation between jobs. + * @member {number} [numJobsFailed] the number of jobs in this recurrence + * that have failed. + * @member {number} [numJobsCanceled] the number of jobs in this recurrence + * that have been canceled. + * @member {number} [numJobsSucceeded] the number of jobs in this recurrence + * that have succeeded. + * @member {number} [auHoursFailed] the number of job execution hours that + * resulted in failed jobs. + * @member {number} [auHoursCanceled] the number of job execution hours that + * resulted in canceled jobs. + * @member {number} [auHoursSucceeded] the number of job execution hours that + * resulted in successful jobs. + * @member {date} [lastSubmitTime] the last time a job in this recurrence was + * submitted. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobRecurrenceInformationListResult.js b/lib/services/dataLake.Analytics/lib/job/models/jobRecurrenceInformationListResult.js index 5ffeb46355..8bbe9c7df2 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobRecurrenceInformationListResult.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobRecurrenceInformationListResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobRecurrenceInformationListResult class. - * @constructor * List of job recurrence information items. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class JobRecurrenceInformationListResult extends Array { + /** + * Create a JobRecurrenceInformationListResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobRelationshipProperties.js b/lib/services/dataLake.Analytics/lib/job/models/jobRelationshipProperties.js index 3fec9cfb37..3ecc02e8a0 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobRelationshipProperties.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobRelationshipProperties.js @@ -11,33 +11,27 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobRelationshipProperties class. - * @constructor * Job relationship information properties including pipeline information, * correlation information, etc. * - * @member {uuid} [pipelineId] the job relationship pipeline identifier (a - * GUID). - * - * @member {string} [pipelineName] the friendly name of the job relationship - * pipeline, which does not need to be unique. - * - * @member {string} [pipelineUri] the pipeline uri, unique, links to the - * originating service for this pipeline. - * - * @member {uuid} [runId] the run identifier (a GUID), unique identifier of the - * iteration of this pipeline. - * - * @member {uuid} recurrenceId the recurrence identifier (a GUID), unique per - * activity/script, regardless of iterations. This is something to link - * different occurrences of the same job together. - * - * @member {string} [recurrenceName] the recurrence name, user friendly name - * for the correlation between jobs. - * */ class JobRelationshipProperties { + /** + * Create a JobRelationshipProperties. + * @member {uuid} [pipelineId] the job relationship pipeline identifier (a + * GUID). + * @member {string} [pipelineName] the friendly name of the job relationship + * pipeline, which does not need to be unique. + * @member {string} [pipelineUri] the pipeline uri, unique, links to the + * originating service for this pipeline. + * @member {uuid} [runId] the run identifier (a GUID), unique identifier of + * the iteration of this pipeline. + * @member {uuid} recurrenceId the recurrence identifier (a GUID), unique per + * activity/script, regardless of iterations. This is something to link + * different occurrences of the same job together. + * @member {string} [recurrenceName] the recurrence name, user friendly name + * for the correlation between jobs. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobResource.js b/lib/services/dataLake.Analytics/lib/job/models/jobResource.js index 7d508747b8..5e01c2d185 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobResource.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobResource.js @@ -11,22 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobResource class. - * @constructor * The Data Lake Analytics job resources. * - * @member {string} [name] the name of the resource. - * - * @member {string} [resourcePath] the path to the resource. - * - * @member {string} [type] the job resource type. Possible values include: - * 'VertexResource', 'JobManagerResource', 'StatisticsResource', - * 'VertexResourceInUserFolder', 'JobManagerResourceInUserFolder', - * 'StatisticsResourceInUserFolder' - * */ class JobResource { + /** + * Create a JobResource. + * @member {string} [name] the name of the resource. + * @member {string} [resourcePath] the path to the resource. + * @member {string} [type] the job resource type. Possible values include: + * 'VertexResource', 'JobManagerResource', 'StatisticsResource', + * 'VertexResourceInUserFolder', 'JobManagerResourceInUserFolder', + * 'StatisticsResourceInUserFolder' + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobStateAuditRecord.js b/lib/services/dataLake.Analytics/lib/job/models/jobStateAuditRecord.js index b069563e96..5172c867bf 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobStateAuditRecord.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobStateAuditRecord.js @@ -11,22 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobStateAuditRecord class. - * @constructor * The Data Lake Analytics job state audit records for tracking the lifecycle * of a job. * - * @member {string} [newState] the new state the job is in. - * - * @member {date} [timeStamp] the time stamp that the state change took place. - * - * @member {string} [requestedByUser] the user who requests the change. - * - * @member {string} [details] the details of the audit log. - * */ class JobStateAuditRecord { + /** + * Create a JobStateAuditRecord. + * @member {string} [newState] the new state the job is in. + * @member {date} [timeStamp] the time stamp that the state change took + * place. + * @member {string} [requestedByUser] the user who requests the change. + * @member {string} [details] the details of the audit log. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobStatistics.js b/lib/services/dataLake.Analytics/lib/job/models/jobStatistics.js index ea49286289..917622d7f6 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobStatistics.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobStatistics.js @@ -13,19 +13,17 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the JobStatistics class. - * @constructor * The Data Lake Analytics job execution statistics. * - * @member {date} [lastUpdateTimeUtc] the last update time for the statistics. - * - * @member {date} [finalizingTimeUtc] the job finalizing start time. - * - * @member {array} [stages] the list of stages for the job. - * */ class JobStatistics { + /** + * Create a JobStatistics. + * @member {date} [lastUpdateTimeUtc] the last update time for the + * statistics. + * @member {date} [finalizingTimeUtc] the job finalizing start time. + * @member {array} [stages] the list of stages for the job. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/jobStatisticsVertexStage.js b/lib/services/dataLake.Analytics/lib/job/models/jobStatisticsVertexStage.js index eb792f34fd..c2da89028f 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/jobStatisticsVertexStage.js +++ b/lib/services/dataLake.Analytics/lib/job/models/jobStatisticsVertexStage.js @@ -11,69 +11,49 @@ 'use strict'; /** - * @class - * Initializes a new instance of the JobStatisticsVertexStage class. - * @constructor * The Data Lake Analytics job statistics vertex stage information. * - * @member {number} [dataRead] the amount of data read, in bytes. - * - * @member {number} [dataReadCrossPod] the amount of data read across multiple - * pods, in bytes. - * - * @member {number} [dataReadIntraPod] the amount of data read in one pod, in - * bytes. - * - * @member {number} [dataToRead] the amount of data remaining to be read, in - * bytes. - * - * @member {number} [dataWritten] the amount of data written, in bytes. - * - * @member {number} [duplicateDiscardCount] the number of duplicates that were - * discarded. - * - * @member {number} [failedCount] the number of failures that occured in this - * stage. - * - * @member {number} [maxVertexDataRead] the maximum amount of data read in a - * single vertex, in bytes. - * - * @member {number} [minVertexDataRead] the minimum amount of data read in a - * single vertex, in bytes. - * - * @member {number} [readFailureCount] the number of read failures in this - * stage. - * - * @member {number} [revocationCount] the number of vertices that were revoked - * during this stage. - * - * @member {number} [runningCount] the number of currently running vertices in - * this stage. - * - * @member {number} [scheduledCount] the number of currently scheduled vertices - * in this stage - * - * @member {string} [stageName] the name of this stage in job execution. - * - * @member {number} [succeededCount] the number of vertices that succeeded in - * this stage. - * - * @member {number} [tempDataWritten] the amount of temporary data written, in - * bytes. - * - * @member {number} [totalCount] the total vertex count for this stage. - * - * @member {moment.duration} [totalFailedTime] the amount of time that failed - * vertices took up in this stage. - * - * @member {number} [totalProgress] the current progress of this stage, as a - * percentage. - * - * @member {moment.duration} [totalSucceededTime] the amount of time all - * successful vertices took in this stage. - * */ class JobStatisticsVertexStage { + /** + * Create a JobStatisticsVertexStage. + * @member {number} [dataRead] the amount of data read, in bytes. + * @member {number} [dataReadCrossPod] the amount of data read across + * multiple pods, in bytes. + * @member {number} [dataReadIntraPod] the amount of data read in one pod, in + * bytes. + * @member {number} [dataToRead] the amount of data remaining to be read, in + * bytes. + * @member {number} [dataWritten] the amount of data written, in bytes. + * @member {number} [duplicateDiscardCount] the number of duplicates that + * were discarded. + * @member {number} [failedCount] the number of failures that occured in this + * stage. + * @member {number} [maxVertexDataRead] the maximum amount of data read in a + * single vertex, in bytes. + * @member {number} [minVertexDataRead] the minimum amount of data read in a + * single vertex, in bytes. + * @member {number} [readFailureCount] the number of read failures in this + * stage. + * @member {number} [revocationCount] the number of vertices that were + * revoked during this stage. + * @member {number} [runningCount] the number of currently running vertices + * in this stage. + * @member {number} [scheduledCount] the number of currently scheduled + * vertices in this stage + * @member {string} [stageName] the name of this stage in job execution. + * @member {number} [succeededCount] the number of vertices that succeeded in + * this stage. + * @member {number} [tempDataWritten] the amount of temporary data written, + * in bytes. + * @member {number} [totalCount] the total vertex count for this stage. + * @member {moment.duration} [totalFailedTime] the amount of time that failed + * vertices took up in this stage. + * @member {number} [totalProgress] the current progress of this stage, as a + * percentage. + * @member {moment.duration} [totalSucceededTime] the amount of time all + * successful vertices took in this stage. + */ constructor() { } diff --git a/lib/services/dataLake.Analytics/lib/job/models/uSqlJobProperties.js b/lib/services/dataLake.Analytics/lib/job/models/uSqlJobProperties.js index 6f15ce5d68..6cc2801645 100644 --- a/lib/services/dataLake.Analytics/lib/job/models/uSqlJobProperties.js +++ b/lib/services/dataLake.Analytics/lib/job/models/uSqlJobProperties.js @@ -13,72 +13,56 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the USqlJobProperties class. - * @constructor - * U-SQL job properties used when submitting and retrieving U-SQL jobs. - * - * @member {array} [resources] the list of resources that are required by the - * job - * - * @member {object} [statistics] the job specific statistics. - * - * @member {date} [statistics.lastUpdateTimeUtc] the last update time for the - * statistics. - * - * @member {date} [statistics.finalizingTimeUtc] the job finalizing start time. - * - * @member {array} [statistics.stages] the list of stages for the job. - * - * @member {object} [debugData] the job specific debug data locations. - * - * @member {uuid} [debugData.jobId] the id of the job this data is for. - * - * @member {string} [debugData.command] the command that this job data relates - * to. - * - * @member {array} [debugData.paths] the list of paths to all of the job data. - * - * @member {array} [diagnostics] the diagnostics for the job. - * - * @member {string} [algebraFilePath] the algebra file path after the job has - * completed - * - * @member {moment.duration} [totalCompilationTime] the total time this job - * spent compiling. This value should not be set by the user and will be - * ignored if it is. - * - * @member {moment.duration} [totalPauseTime] the total time this job spent - * paused. This value should not be set by the user and will be ignored if it - * is. - * - * @member {moment.duration} [totalQueuedTime] the total time this job spent - * queued. This value should not be set by the user and will be ignored if it - * is. - * - * @member {moment.duration} [totalRunningTime] the total time this job spent - * executing. This value should not be set by the user and will be ignored if - * it is. - * - * @member {string} [rootProcessNodeId] the ID used to identify the job manager - * coordinating job execution. This value should not be set by the user and - * will be ignored if it is. - * - * @member {string} [yarnApplicationId] the ID used to identify the yarn - * application executing the job. This value should not be set by the user and - * will be ignored if it is. - * - * @member {number} [yarnApplicationTimeStamp] the timestamp (in ticks) for the - * yarn application executing the job. This value should not be set by the user - * and will be ignored if it is. - * - * @member {string} [compileMode] Optionally enforces a specific compilation - * mode for the job during execution. If this is not specified during - * submission, the server will determine the optimal compilation mode. Possible - * values include: 'Semantic', 'Full', 'SingleBox' + * U-SQL job properties used when retrieving U-SQL jobs. * + * @extends models['JobProperties'] */ class USqlJobProperties extends models['JobProperties'] { + /** + * Create a USqlJobProperties. + * @member {array} [resources] the list of resources that are required by the + * job + * @member {object} [statistics] the job specific statistics. + * @member {date} [statistics.lastUpdateTimeUtc] the last update time for the + * statistics. + * @member {date} [statistics.finalizingTimeUtc] the job finalizing start + * time. + * @member {array} [statistics.stages] the list of stages for the job. + * @member {object} [debugData] the job specific debug data locations. + * @member {uuid} [debugData.jobId] the id of the job this data is for. + * @member {string} [debugData.command] the command that this job data + * relates to. + * @member {array} [debugData.paths] the list of paths to all of the job + * data. + * @member {array} [diagnostics] the diagnostics for the job. + * @member {string} [algebraFilePath] the algebra file path after the job has + * completed + * @member {moment.duration} [totalCompilationTime] the total time this job + * spent compiling. This value should not be set by the user and will be + * ignored if it is. + * @member {moment.duration} [totalPauseTime] the total time this job spent + * paused. This value should not be set by the user and will be ignored if it + * is. + * @member {moment.duration} [totalQueuedTime] the total time this job spent + * queued. This value should not be set by the user and will be ignored if it + * is. + * @member {moment.duration} [totalRunningTime] the total time this job spent + * executing. This value should not be set by the user and will be ignored if + * it is. + * @member {string} [rootProcessNodeId] the ID used to identify the job + * manager coordinating job execution. This value should not be set by the + * user and will be ignored if it is. + * @member {string} [yarnApplicationId] the ID used to identify the yarn + * application executing the job. This value should not be set by the user + * and will be ignored if it is. + * @member {number} [yarnApplicationTimeStamp] the timestamp (in ticks) for + * the yarn application executing the job. This value should not be set by + * the user and will be ignored if it is. + * @member {string} [compileMode] the specific compilation mode for the job + * used during execution. If this is not specified during submission, the + * server will determine the optimal compilation mode. Possible values + * include: 'Semantic', 'Full', 'SingleBox' + */ constructor() { super(); } @@ -120,6 +104,7 @@ class USqlJobProperties extends models['JobProperties'] { }, resources: { required: false, + readOnly: true, serializedName: 'resources', type: { name: 'Sequence', @@ -135,6 +120,7 @@ class USqlJobProperties extends models['JobProperties'] { }, statistics: { required: false, + readOnly: true, serializedName: 'statistics', type: { name: 'Composite', @@ -143,6 +129,7 @@ class USqlJobProperties extends models['JobProperties'] { }, debugData: { required: false, + readOnly: true, serializedName: 'debugData', type: { name: 'Composite', @@ -151,6 +138,7 @@ class USqlJobProperties extends models['JobProperties'] { }, diagnostics: { required: false, + readOnly: true, serializedName: 'diagnostics', type: { name: 'Sequence', @@ -230,6 +218,7 @@ class USqlJobProperties extends models['JobProperties'] { }, compileMode: { required: false, + readOnly: true, serializedName: 'compileMode', type: { name: 'Enum', diff --git a/lib/services/dataLake.Analytics/lib/job/operations/index.d.ts b/lib/services/dataLake.Analytics/lib/job/operations/index.d.ts index e77c1c2b01..5b30243b50 100644 --- a/lib/services/dataLake.Analytics/lib/job/operations/index.d.ts +++ b/lib/services/dataLake.Analytics/lib/job/operations/index.d.ts @@ -590,23 +590,11 @@ export interface Job { * * @param {object} parameters The parameters to build a job. * - * @param {string} parameters.name the friendly name of the job. + * @param {string} [parameters.name] the friendly name of the job to build. * * @param {string} parameters.type the job type of the current job (Hive or * USql). Possible values include: 'USql', 'Hive' * - * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it - * will default to 1. - * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. - * - * @param {array} [parameters.logFilePatterns] the list of log file name - * patterns to find in the logFolder. '*' is the only matching character - * allowed. Example format: jobExecution*.log or *mylog*.txt - * * @param {object} parameters.properties the job specific properties. * * @param {string} [parameters.properties.runtimeVersion] the runtime version @@ -617,28 +605,6 @@ export interface Job { * * @param {string} parameters.properties.type Polymorphic Discriminator * - * @param {object} [parameters.related] the recurring job relationship - * information properties. - * - * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline - * identifier (a GUID). - * - * @param {string} [parameters.related.pipelineName] the friendly name of the - * job relationship pipeline, which does not need to be unique. - * - * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, - * links to the originating service for this pipeline. - * - * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique - * identifier of the iteration of this pipeline. - * - * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a - * GUID), unique per activity/script, regardless of iterations. This is - * something to link different occurrences of the same job together. - * - * @param {string} [parameters.related.recurrenceName] the recurrence name, - * user friendly name for the correlation between jobs. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -650,7 +616,7 @@ export interface Job { * * @reject {Error|ServiceError} - The error object. */ - buildWithHttpOperationResponse(accountName: string, parameters: models.JobInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + buildWithHttpOperationResponse(accountName: string, parameters: models.BuildJobParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Builds (compiles) the specified job in the specified Data Lake Analytics @@ -661,23 +627,11 @@ export interface Job { * * @param {object} parameters The parameters to build a job. * - * @param {string} parameters.name the friendly name of the job. + * @param {string} [parameters.name] the friendly name of the job to build. * * @param {string} parameters.type the job type of the current job (Hive or * USql). Possible values include: 'USql', 'Hive' * - * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it - * will default to 1. - * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. - * - * @param {array} [parameters.logFilePatterns] the list of log file name - * patterns to find in the logFolder. '*' is the only matching character - * allowed. Example format: jobExecution*.log or *mylog*.txt - * * @param {object} parameters.properties the job specific properties. * * @param {string} [parameters.properties.runtimeVersion] the runtime version @@ -688,28 +642,6 @@ export interface Job { * * @param {string} parameters.properties.type Polymorphic Discriminator * - * @param {object} [parameters.related] the recurring job relationship - * information properties. - * - * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline - * identifier (a GUID). - * - * @param {string} [parameters.related.pipelineName] the friendly name of the - * job relationship pipeline, which does not need to be unique. - * - * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, - * links to the originating service for this pipeline. - * - * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique - * identifier of the iteration of this pipeline. - * - * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a - * GUID), unique per activity/script, regardless of iterations. This is - * something to link different occurrences of the same job together. - * - * @param {string} [parameters.related.recurrenceName] the recurrence name, - * user friendly name for the correlation between jobs. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -737,9 +669,9 @@ export interface Job { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - build(accountName: string, parameters: models.JobInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - build(accountName: string, parameters: models.JobInformation, callback: ServiceCallback): void; - build(accountName: string, parameters: models.JobInformation, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + build(accountName: string, parameters: models.BuildJobParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + build(accountName: string, parameters: models.BuildJobParameters, callback: ServiceCallback): void; + build(accountName: string, parameters: models.BuildJobParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -802,67 +734,6 @@ export interface Job { cancel(accountName: string, jobIdentity: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - /** - * Gets the job information for the specified job ID. - * - * @param {string} accountName The Azure Data Lake Analytics account to execute - * job operations on. - * - * @param {uuid} jobIdentity JobInfo ID. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - getWithHttpOperationResponse(accountName: string, jobIdentity: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Gets the job information for the specified job ID. - * - * @param {string} accountName The Azure Data Lake Analytics account to execute - * job operations on. - * - * @param {uuid} jobIdentity JobInfo ID. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {JobInformation} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {JobInformation} [result] - The deserialized result object if an error did not occur. - * See {@link JobInformation} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - get(accountName: string, jobIdentity: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(accountName: string, jobIdentity: string, callback: ServiceCallback): void; - get(accountName: string, jobIdentity: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - /** * Submits a job to the specified Data Lake Analytics account. * @@ -873,33 +744,20 @@ export interface Job { * * @param {object} parameters The parameters to submit a job. * - * @param {string} parameters.name the friendly name of the job. - * - * @param {string} parameters.type the job type of the current job (Hive or - * USql). Possible values include: 'USql', 'Hive' + * @param {string} parameters.name the friendly name of the job to submit. * * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it + * to use for this job. This must be greater than 0, if set to less than 0 it * will default to 1. * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. + * @param {number} [parameters.priority] the priority value to use for the + * current job. Lower numbers have a higher priority. By default, a job has a + * priority of 1000. This must be greater than 0. * * @param {array} [parameters.logFilePatterns] the list of log file name * patterns to find in the logFolder. '*' is the only matching character * allowed. Example format: jobExecution*.log or *mylog*.txt * - * @param {object} parameters.properties the job specific properties. - * - * @param {string} [parameters.properties.runtimeVersion] the runtime version - * of the Data Lake Analytics engine to use for the specific type of job being - * run. - * - * @param {string} parameters.properties.script the script to run - * - * @param {string} parameters.properties.type Polymorphic Discriminator - * * @param {object} [parameters.related] the recurring job relationship * information properties. * @@ -922,6 +780,19 @@ export interface Job { * @param {string} [parameters.related.recurrenceName] the recurrence name, * user friendly name for the correlation between jobs. * + * @param {string} parameters.type the job type of the current job (Hive or + * USql). Possible values include: 'USql', 'Hive' + * + * @param {object} parameters.properties the job specific properties. + * + * @param {string} [parameters.properties.runtimeVersion] the runtime version + * of the Data Lake Analytics engine to use for the specific type of job being + * run. + * + * @param {string} parameters.properties.script the script to run + * + * @param {string} parameters.properties.type Polymorphic Discriminator + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -933,7 +804,7 @@ export interface Job { * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(accountName: string, jobIdentity: string, parameters: models.JobInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(accountName: string, jobIdentity: string, parameters: models.CreateJobParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Submits a job to the specified Data Lake Analytics account. @@ -945,33 +816,20 @@ export interface Job { * * @param {object} parameters The parameters to submit a job. * - * @param {string} parameters.name the friendly name of the job. - * - * @param {string} parameters.type the job type of the current job (Hive or - * USql). Possible values include: 'USql', 'Hive' + * @param {string} parameters.name the friendly name of the job to submit. * * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it + * to use for this job. This must be greater than 0, if set to less than 0 it * will default to 1. * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. + * @param {number} [parameters.priority] the priority value to use for the + * current job. Lower numbers have a higher priority. By default, a job has a + * priority of 1000. This must be greater than 0. * * @param {array} [parameters.logFilePatterns] the list of log file name * patterns to find in the logFolder. '*' is the only matching character * allowed. Example format: jobExecution*.log or *mylog*.txt * - * @param {object} parameters.properties the job specific properties. - * - * @param {string} [parameters.properties.runtimeVersion] the runtime version - * of the Data Lake Analytics engine to use for the specific type of job being - * run. - * - * @param {string} parameters.properties.script the script to run - * - * @param {string} parameters.properties.type Polymorphic Discriminator - * * @param {object} [parameters.related] the recurring job relationship * information properties. * @@ -994,6 +852,19 @@ export interface Job { * @param {string} [parameters.related.recurrenceName] the recurrence name, * user friendly name for the correlation between jobs. * + * @param {string} parameters.type the job type of the current job (Hive or + * USql). Possible values include: 'USql', 'Hive' + * + * @param {object} parameters.properties the job specific properties. + * + * @param {string} [parameters.properties.runtimeVersion] the runtime version + * of the Data Lake Analytics engine to use for the specific type of job being + * run. + * + * @param {string} parameters.properties.script the script to run + * + * @param {string} parameters.properties.type Polymorphic Discriminator + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1021,9 +892,70 @@ export interface Job { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(accountName: string, jobIdentity: string, parameters: models.JobInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - create(accountName: string, jobIdentity: string, parameters: models.JobInformation, callback: ServiceCallback): void; - create(accountName: string, jobIdentity: string, parameters: models.JobInformation, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(accountName: string, jobIdentity: string, parameters: models.CreateJobParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + create(accountName: string, jobIdentity: string, parameters: models.CreateJobParameters, callback: ServiceCallback): void; + create(accountName: string, jobIdentity: string, parameters: models.CreateJobParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets the job information for the specified job ID. + * + * @param {string} accountName The Azure Data Lake Analytics account to execute + * job operations on. + * + * @param {uuid} jobIdentity JobInfo ID. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(accountName: string, jobIdentity: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets the job information for the specified job ID. + * + * @param {string} accountName The Azure Data Lake Analytics account to execute + * job operations on. + * + * @param {uuid} jobIdentity JobInfo ID. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {JobInformation} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {JobInformation} [result] - The deserialized result object if an error did not occur. + * See {@link JobInformation} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + get(accountName: string, jobIdentity: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(accountName: string, jobIdentity: string, callback: ServiceCallback): void; + get(accountName: string, jobIdentity: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** diff --git a/lib/services/dataLake.Analytics/lib/job/operations/job.js b/lib/services/dataLake.Analytics/lib/job/operations/job.js index 1721a9a66c..676ebe416f 100644 --- a/lib/services/dataLake.Analytics/lib/job/operations/job.js +++ b/lib/services/dataLake.Analytics/lib/job/operations/job.js @@ -315,23 +315,11 @@ function _getDebugDataPath(accountName, jobIdentity, options, callback) { * * @param {object} parameters The parameters to build a job. * - * @param {string} parameters.name the friendly name of the job. + * @param {string} [parameters.name] the friendly name of the job to build. * * @param {string} parameters.type the job type of the current job (Hive or * USql). Possible values include: 'USql', 'Hive' * - * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it - * will default to 1. - * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. - * - * @param {array} [parameters.logFilePatterns] the list of log file name - * patterns to find in the logFolder. '*' is the only matching character - * allowed. Example format: jobExecution*.log or *mylog*.txt - * * @param {object} parameters.properties the job specific properties. * * @param {string} [parameters.properties.runtimeVersion] the runtime version @@ -342,28 +330,6 @@ function _getDebugDataPath(accountName, jobIdentity, options, callback) { * * @param {string} parameters.properties.type Polymorphic Discriminator * - * @param {object} [parameters.related] the recurring job relationship - * information properties. - * - * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline - * identifier (a GUID). - * - * @param {string} [parameters.related.pipelineName] the friendly name of the - * job relationship pipeline, which does not need to be unique. - * - * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, - * links to the originating service for this pipeline. - * - * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique - * identifier of the iteration of this pipeline. - * - * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a - * GUID), unique per activity/script, regardless of iterations. This is - * something to link different occurrences of the same job together. - * - * @param {string} [parameters.related.recurrenceName] the recurrence name, - * user friendly name for the correlation between jobs. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -449,7 +415,7 @@ function _build(accountName, parameters, options, callback) { let requestModel = null; try { if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['JobInformation']().mapper(); + let requestModelMapper = new client.models['BuildJobParameters']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } @@ -644,12 +610,63 @@ function _cancel(accountName, jobIdentity, options, callback) { } /** - * Gets the job information for the specified job ID. + * Submits a job to the specified Data Lake Analytics account. * * @param {string} accountName The Azure Data Lake Analytics account to execute * job operations on. * - * @param {uuid} jobIdentity JobInfo ID. + * @param {uuid} jobIdentity The job ID (a GUID) for the job being submitted. + * + * @param {object} parameters The parameters to submit a job. + * + * @param {string} parameters.name the friendly name of the job to submit. + * + * @param {number} [parameters.degreeOfParallelism] the degree of parallelism + * to use for this job. This must be greater than 0, if set to less than 0 it + * will default to 1. + * + * @param {number} [parameters.priority] the priority value to use for the + * current job. Lower numbers have a higher priority. By default, a job has a + * priority of 1000. This must be greater than 0. + * + * @param {array} [parameters.logFilePatterns] the list of log file name + * patterns to find in the logFolder. '*' is the only matching character + * allowed. Example format: jobExecution*.log or *mylog*.txt + * + * @param {object} [parameters.related] the recurring job relationship + * information properties. + * + * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline + * identifier (a GUID). + * + * @param {string} [parameters.related.pipelineName] the friendly name of the + * job relationship pipeline, which does not need to be unique. + * + * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, + * links to the originating service for this pipeline. + * + * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique + * identifier of the iteration of this pipeline. + * + * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a + * GUID), unique per activity/script, regardless of iterations. This is + * something to link different occurrences of the same job together. + * + * @param {string} [parameters.related.recurrenceName] the recurrence name, + * user friendly name for the correlation between jobs. + * + * @param {string} parameters.type the job type of the current job (Hive or + * USql). Possible values include: 'USql', 'Hive' + * + * @param {object} parameters.properties the job specific properties. + * + * @param {string} [parameters.properties.runtimeVersion] the runtime version + * of the Data Lake Analytics engine to use for the specific type of job being + * run. + * + * @param {string} parameters.properties.script the script to run + * + * @param {string} parameters.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. * @@ -669,7 +686,7 @@ function _cancel(accountName, jobIdentity, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _get(accountName, jobIdentity, options, callback) { +function _create(accountName, jobIdentity, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -690,6 +707,9 @@ function _get(accountName, jobIdentity, options, callback) { if (jobIdentity === null || jobIdentity === undefined || typeof jobIdentity.valueOf() !== 'string' || !msRest.isValidUuid(jobIdentity)) { throw new Error('jobIdentity cannot be null or undefined and it must be of type string and must be a valid uuid.'); } + if (parameters === null || parameters === undefined) { + throw new Error('parameters cannot be null or undefined.'); + } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -714,7 +734,7 @@ function _get(accountName, jobIdentity, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'GET'; + httpRequest.method = 'PUT'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -732,7 +752,21 @@ function _get(accountName, jobIdentity, options, callback) { } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - httpRequest.body = null; + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (parameters !== null && parameters !== undefined) { + let requestModelMapper = new client.models['CreateJobParameters']().mapper(); + requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(parameters, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -790,63 +824,12 @@ function _get(accountName, jobIdentity, options, callback) { } /** - * Submits a job to the specified Data Lake Analytics account. + * Gets the job information for the specified job ID. * * @param {string} accountName The Azure Data Lake Analytics account to execute * job operations on. * - * @param {uuid} jobIdentity The job ID (a GUID) for the job being submitted. - * - * @param {object} parameters The parameters to submit a job. - * - * @param {string} parameters.name the friendly name of the job. - * - * @param {string} parameters.type the job type of the current job (Hive or - * USql). Possible values include: 'USql', 'Hive' - * - * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it - * will default to 1. - * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. - * - * @param {array} [parameters.logFilePatterns] the list of log file name - * patterns to find in the logFolder. '*' is the only matching character - * allowed. Example format: jobExecution*.log or *mylog*.txt - * - * @param {object} parameters.properties the job specific properties. - * - * @param {string} [parameters.properties.runtimeVersion] the runtime version - * of the Data Lake Analytics engine to use for the specific type of job being - * run. - * - * @param {string} parameters.properties.script the script to run - * - * @param {string} parameters.properties.type Polymorphic Discriminator - * - * @param {object} [parameters.related] the recurring job relationship - * information properties. - * - * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline - * identifier (a GUID). - * - * @param {string} [parameters.related.pipelineName] the friendly name of the - * job relationship pipeline, which does not need to be unique. - * - * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, - * links to the originating service for this pipeline. - * - * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique - * identifier of the iteration of this pipeline. - * - * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a - * GUID), unique per activity/script, regardless of iterations. This is - * something to link different occurrences of the same job together. - * - * @param {string} [parameters.related.recurrenceName] the recurrence name, - * user friendly name for the correlation between jobs. + * @param {uuid} jobIdentity JobInfo ID. * * @param {object} [options] Optional Parameters. * @@ -866,7 +849,7 @@ function _get(accountName, jobIdentity, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _create(accountName, jobIdentity, parameters, options, callback) { +function _get(accountName, jobIdentity, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -887,9 +870,6 @@ function _create(accountName, jobIdentity, parameters, options, callback) { if (jobIdentity === null || jobIdentity === undefined || typeof jobIdentity.valueOf() !== 'string' || !msRest.isValidUuid(jobIdentity)) { throw new Error('jobIdentity cannot be null or undefined and it must be of type string and must be a valid uuid.'); } - if (parameters === null || parameters === undefined) { - throw new Error('parameters cannot be null or undefined.'); - } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -914,7 +894,7 @@ function _create(accountName, jobIdentity, parameters, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'PUT'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -932,21 +912,7 @@ function _create(accountName, jobIdentity, parameters, options, callback) { } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['JobInformation']().mapper(); - requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(parameters, null, 2)}.`); - return callback(serializationError); - } - httpRequest.body = requestContent; + httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -1346,25 +1312,20 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * Job - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeAnalyticsJobManagementClient. - * Initializes a new instance of the Job class. - * @constructor - * - * @param {DataLakeAnalyticsJobManagementClient} client Reference to the service client. - */ +/** Class representing a Job. */ class Job { + /** + * Create a Job. + * @param {DataLakeAnalyticsJobManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._getStatistics = _getStatistics; this._getDebugDataPath = _getDebugDataPath; this._build = _build; this._cancel = _cancel; - this._get = _get; this._create = _create; + this._get = _get; this._list = _list; this._listNext = _listNext; } @@ -1554,23 +1515,11 @@ class Job { * * @param {object} parameters The parameters to build a job. * - * @param {string} parameters.name the friendly name of the job. + * @param {string} [parameters.name] the friendly name of the job to build. * * @param {string} parameters.type the job type of the current job (Hive or * USql). Possible values include: 'USql', 'Hive' * - * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it - * will default to 1. - * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. - * - * @param {array} [parameters.logFilePatterns] the list of log file name - * patterns to find in the logFolder. '*' is the only matching character - * allowed. Example format: jobExecution*.log or *mylog*.txt - * * @param {object} parameters.properties the job specific properties. * * @param {string} [parameters.properties.runtimeVersion] the runtime version @@ -1581,28 +1530,6 @@ class Job { * * @param {string} parameters.properties.type Polymorphic Discriminator * - * @param {object} [parameters.related] the recurring job relationship - * information properties. - * - * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline - * identifier (a GUID). - * - * @param {string} [parameters.related.pipelineName] the friendly name of the - * job relationship pipeline, which does not need to be unique. - * - * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, - * links to the originating service for this pipeline. - * - * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique - * identifier of the iteration of this pipeline. - * - * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a - * GUID), unique per activity/script, regardless of iterations. This is - * something to link different occurrences of the same job together. - * - * @param {string} [parameters.related.recurrenceName] the recurrence name, - * user friendly name for the correlation between jobs. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1637,23 +1564,11 @@ class Job { * * @param {object} parameters The parameters to build a job. * - * @param {string} parameters.name the friendly name of the job. + * @param {string} [parameters.name] the friendly name of the job to build. * * @param {string} parameters.type the job type of the current job (Hive or * USql). Possible values include: 'USql', 'Hive' * - * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it - * will default to 1. - * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. - * - * @param {array} [parameters.logFilePatterns] the list of log file name - * patterns to find in the logFolder. '*' is the only matching character - * allowed. Example format: jobExecution*.log or *mylog*.txt - * * @param {object} parameters.properties the job specific properties. * * @param {string} [parameters.properties.runtimeVersion] the runtime version @@ -1664,28 +1579,6 @@ class Job { * * @param {string} parameters.properties.type Polymorphic Discriminator * - * @param {object} [parameters.related] the recurring job relationship - * information properties. - * - * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline - * identifier (a GUID). - * - * @param {string} [parameters.related.pipelineName] the friendly name of the - * job relationship pipeline, which does not need to be unique. - * - * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, - * links to the originating service for this pipeline. - * - * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique - * identifier of the iteration of this pipeline. - * - * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a - * GUID), unique per activity/script, regardless of iterations. This is - * something to link different occurrences of the same job together. - * - * @param {string} [parameters.related.recurrenceName] the recurrence name, - * user friendly name for the correlation between jobs. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1821,12 +1714,63 @@ class Job { } /** - * Gets the job information for the specified job ID. + * Submits a job to the specified Data Lake Analytics account. * * @param {string} accountName The Azure Data Lake Analytics account to execute * job operations on. * - * @param {uuid} jobIdentity JobInfo ID. + * @param {uuid} jobIdentity The job ID (a GUID) for the job being submitted. + * + * @param {object} parameters The parameters to submit a job. + * + * @param {string} parameters.name the friendly name of the job to submit. + * + * @param {number} [parameters.degreeOfParallelism] the degree of parallelism + * to use for this job. This must be greater than 0, if set to less than 0 it + * will default to 1. + * + * @param {number} [parameters.priority] the priority value to use for the + * current job. Lower numbers have a higher priority. By default, a job has a + * priority of 1000. This must be greater than 0. + * + * @param {array} [parameters.logFilePatterns] the list of log file name + * patterns to find in the logFolder. '*' is the only matching character + * allowed. Example format: jobExecution*.log or *mylog*.txt + * + * @param {object} [parameters.related] the recurring job relationship + * information properties. + * + * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline + * identifier (a GUID). + * + * @param {string} [parameters.related.pipelineName] the friendly name of the + * job relationship pipeline, which does not need to be unique. + * + * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, + * links to the originating service for this pipeline. + * + * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique + * identifier of the iteration of this pipeline. + * + * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a + * GUID), unique per activity/script, regardless of iterations. This is + * something to link different occurrences of the same job together. + * + * @param {string} [parameters.related.recurrenceName] the recurrence name, + * user friendly name for the correlation between jobs. + * + * @param {string} parameters.type the job type of the current job (Hive or + * USql). Possible values include: 'USql', 'Hive' + * + * @param {object} parameters.properties the job specific properties. + * + * @param {string} [parameters.properties.runtimeVersion] the runtime version + * of the Data Lake Analytics engine to use for the specific type of job being + * run. + * + * @param {string} parameters.properties.script the script to run + * + * @param {string} parameters.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. * @@ -1839,11 +1783,11 @@ class Job { * * @reject {Error} - The error object. */ - getWithHttpOperationResponse(accountName, jobIdentity, options) { + createWithHttpOperationResponse(accountName, jobIdentity, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._get(accountName, jobIdentity, options, (err, result, request, response) => { + self._create(accountName, jobIdentity, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -1854,12 +1798,63 @@ class Job { } /** - * Gets the job information for the specified job ID. + * Submits a job to the specified Data Lake Analytics account. * * @param {string} accountName The Azure Data Lake Analytics account to execute * job operations on. * - * @param {uuid} jobIdentity JobInfo ID. + * @param {uuid} jobIdentity The job ID (a GUID) for the job being submitted. + * + * @param {object} parameters The parameters to submit a job. + * + * @param {string} parameters.name the friendly name of the job to submit. + * + * @param {number} [parameters.degreeOfParallelism] the degree of parallelism + * to use for this job. This must be greater than 0, if set to less than 0 it + * will default to 1. + * + * @param {number} [parameters.priority] the priority value to use for the + * current job. Lower numbers have a higher priority. By default, a job has a + * priority of 1000. This must be greater than 0. + * + * @param {array} [parameters.logFilePatterns] the list of log file name + * patterns to find in the logFolder. '*' is the only matching character + * allowed. Example format: jobExecution*.log or *mylog*.txt + * + * @param {object} [parameters.related] the recurring job relationship + * information properties. + * + * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline + * identifier (a GUID). + * + * @param {string} [parameters.related.pipelineName] the friendly name of the + * job relationship pipeline, which does not need to be unique. + * + * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, + * links to the originating service for this pipeline. + * + * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique + * identifier of the iteration of this pipeline. + * + * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a + * GUID), unique per activity/script, regardless of iterations. This is + * something to link different occurrences of the same job together. + * + * @param {string} [parameters.related.recurrenceName] the recurrence name, + * user friendly name for the correlation between jobs. + * + * @param {string} parameters.type the job type of the current job (Hive or + * USql). Possible values include: 'USql', 'Hive' + * + * @param {object} parameters.properties the job specific properties. + * + * @param {string} [parameters.properties.runtimeVersion] the runtime version + * of the Data Lake Analytics engine to use for the specific type of job being + * run. + * + * @param {string} parameters.properties.script the script to run + * + * @param {string} parameters.properties.type Polymorphic Discriminator * * @param {object} [options] Optional Parameters. * @@ -1888,7 +1883,7 @@ class Job { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - get(accountName, jobIdentity, options, optionalCallback) { + create(accountName, jobIdentity, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -1897,75 +1892,24 @@ class Job { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._get(accountName, jobIdentity, options, (err, result, request, response) => { + self._create(accountName, jobIdentity, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._get(accountName, jobIdentity, options, optionalCallback); + return self._create(accountName, jobIdentity, parameters, options, optionalCallback); } } /** - * Submits a job to the specified Data Lake Analytics account. + * Gets the job information for the specified job ID. * * @param {string} accountName The Azure Data Lake Analytics account to execute * job operations on. * - * @param {uuid} jobIdentity The job ID (a GUID) for the job being submitted. - * - * @param {object} parameters The parameters to submit a job. - * - * @param {string} parameters.name the friendly name of the job. - * - * @param {string} parameters.type the job type of the current job (Hive or - * USql). Possible values include: 'USql', 'Hive' - * - * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it - * will default to 1. - * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. - * - * @param {array} [parameters.logFilePatterns] the list of log file name - * patterns to find in the logFolder. '*' is the only matching character - * allowed. Example format: jobExecution*.log or *mylog*.txt - * - * @param {object} parameters.properties the job specific properties. - * - * @param {string} [parameters.properties.runtimeVersion] the runtime version - * of the Data Lake Analytics engine to use for the specific type of job being - * run. - * - * @param {string} parameters.properties.script the script to run - * - * @param {string} parameters.properties.type Polymorphic Discriminator - * - * @param {object} [parameters.related] the recurring job relationship - * information properties. - * - * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline - * identifier (a GUID). - * - * @param {string} [parameters.related.pipelineName] the friendly name of the - * job relationship pipeline, which does not need to be unique. - * - * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, - * links to the originating service for this pipeline. - * - * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique - * identifier of the iteration of this pipeline. - * - * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a - * GUID), unique per activity/script, regardless of iterations. This is - * something to link different occurrences of the same job together. - * - * @param {string} [parameters.related.recurrenceName] the recurrence name, - * user friendly name for the correlation between jobs. + * @param {uuid} jobIdentity JobInfo ID. * * @param {object} [options] Optional Parameters. * @@ -1978,11 +1922,11 @@ class Job { * * @reject {Error} - The error object. */ - createWithHttpOperationResponse(accountName, jobIdentity, parameters, options) { + getWithHttpOperationResponse(accountName, jobIdentity, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._create(accountName, jobIdentity, parameters, options, (err, result, request, response) => { + self._get(accountName, jobIdentity, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -1993,63 +1937,12 @@ class Job { } /** - * Submits a job to the specified Data Lake Analytics account. + * Gets the job information for the specified job ID. * * @param {string} accountName The Azure Data Lake Analytics account to execute * job operations on. * - * @param {uuid} jobIdentity The job ID (a GUID) for the job being submitted. - * - * @param {object} parameters The parameters to submit a job. - * - * @param {string} parameters.name the friendly name of the job. - * - * @param {string} parameters.type the job type of the current job (Hive or - * USql). Possible values include: 'USql', 'Hive' - * - * @param {number} [parameters.degreeOfParallelism] the degree of parallelism - * used for this job. This must be greater than 0, if set to less than 0 it - * will default to 1. - * - * @param {number} [parameters.priority] the priority value for the current - * job. Lower numbers have a higher priority. By default, a job has a priority - * of 1000. This must be greater than 0. - * - * @param {array} [parameters.logFilePatterns] the list of log file name - * patterns to find in the logFolder. '*' is the only matching character - * allowed. Example format: jobExecution*.log or *mylog*.txt - * - * @param {object} parameters.properties the job specific properties. - * - * @param {string} [parameters.properties.runtimeVersion] the runtime version - * of the Data Lake Analytics engine to use for the specific type of job being - * run. - * - * @param {string} parameters.properties.script the script to run - * - * @param {string} parameters.properties.type Polymorphic Discriminator - * - * @param {object} [parameters.related] the recurring job relationship - * information properties. - * - * @param {uuid} [parameters.related.pipelineId] the job relationship pipeline - * identifier (a GUID). - * - * @param {string} [parameters.related.pipelineName] the friendly name of the - * job relationship pipeline, which does not need to be unique. - * - * @param {string} [parameters.related.pipelineUri] the pipeline uri, unique, - * links to the originating service for this pipeline. - * - * @param {uuid} [parameters.related.runId] the run identifier (a GUID), unique - * identifier of the iteration of this pipeline. - * - * @param {uuid} parameters.related.recurrenceId the recurrence identifier (a - * GUID), unique per activity/script, regardless of iterations. This is - * something to link different occurrences of the same job together. - * - * @param {string} [parameters.related.recurrenceName] the recurrence name, - * user friendly name for the correlation between jobs. + * @param {uuid} jobIdentity JobInfo ID. * * @param {object} [options] Optional Parameters. * @@ -2078,7 +1971,7 @@ class Job { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - create(accountName, jobIdentity, parameters, options, optionalCallback) { + get(accountName, jobIdentity, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2087,14 +1980,14 @@ class Job { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._create(accountName, jobIdentity, parameters, options, (err, result, request, response) => { + self._get(accountName, jobIdentity, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._create(accountName, jobIdentity, parameters, options, optionalCallback); + return self._get(accountName, jobIdentity, options, optionalCallback); } } diff --git a/lib/services/dataLake.Analytics/lib/job/operations/pipeline.js b/lib/services/dataLake.Analytics/lib/job/operations/pipeline.js index 55231b61c4..a5f6a6788c 100644 --- a/lib/services/dataLake.Analytics/lib/job/operations/pipeline.js +++ b/lib/services/dataLake.Analytics/lib/job/operations/pipeline.js @@ -478,17 +478,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * Pipeline - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeAnalyticsJobManagementClient. - * Initializes a new instance of the Pipeline class. - * @constructor - * - * @param {DataLakeAnalyticsJobManagementClient} client Reference to the service client. - */ +/** Class representing a Pipeline. */ class Pipeline { + /** + * Create a Pipeline. + * @param {DataLakeAnalyticsJobManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._list = _list; diff --git a/lib/services/dataLake.Analytics/lib/job/operations/recurrence.js b/lib/services/dataLake.Analytics/lib/job/operations/recurrence.js index 13e01476a8..0a16c683dd 100644 --- a/lib/services/dataLake.Analytics/lib/job/operations/recurrence.js +++ b/lib/services/dataLake.Analytics/lib/job/operations/recurrence.js @@ -478,17 +478,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * Recurrence - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeAnalyticsJobManagementClient. - * Initializes a new instance of the Recurrence class. - * @constructor - * - * @param {DataLakeAnalyticsJobManagementClient} client Reference to the service client. - */ +/** Class representing a Recurrence. */ class Recurrence { + /** + * Create a Recurrence. + * @param {DataLakeAnalyticsJobManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._list = _list; diff --git a/lib/services/dataLake.Analytics/package.json b/lib/services/dataLake.Analytics/package.json index 27e54e9dbd..bd97047771 100644 --- a/lib/services/dataLake.Analytics/package.json +++ b/lib/services/dataLake.Analytics/package.json @@ -2,9 +2,10 @@ "name": "azure-arm-datalake-analytics", "author": "Microsoft Corporation", "contributors": [ - "Goldsmith, Benjamin " + "Goldsmith, Benjamin ", + "Ro, Joo Wan " ], - "version": "2.3.0-preview", + "version": "2.4.0-preview", "description": "Microsoft Azure Data Lake Analytics Management Client Library for node", "tags": [ "azure", diff --git a/lib/services/dataLake.Store/lib/account/dataLakeStoreAccountManagementClient.d.ts b/lib/services/dataLake.Store/lib/account/dataLakeStoreAccountManagementClient.d.ts index 0fa05f972e..1a28c51754 100644 --- a/lib/services/dataLake.Store/lib/account/dataLakeStoreAccountManagementClient.d.ts +++ b/lib/services/dataLake.Store/lib/account/dataLakeStoreAccountManagementClient.d.ts @@ -8,10 +8,11 @@ * regenerated. */ -import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { ServiceClient, ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; import * as operations from "./operations"; -declare class DataLakeStoreAccountManagementClient { +declare class DataLakeStoreAccountManagementClient extends AzureServiceClient { /** * Initializes a new instance of the DataLakeStoreAccountManagementClient class. * @constructor @@ -41,7 +42,7 @@ declare class DataLakeStoreAccountManagementClient { * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ - constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions); + constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); credentials: ServiceClientCredentials; diff --git a/lib/services/dataLake.Store/lib/account/dataLakeStoreAccountManagementClient.js b/lib/services/dataLake.Store/lib/account/dataLakeStoreAccountManagementClient.js index f688efd02a..23612f6e52 100644 --- a/lib/services/dataLake.Store/lib/account/dataLakeStoreAccountManagementClient.js +++ b/lib/services/dataLake.Store/lib/account/dataLakeStoreAccountManagementClient.js @@ -22,36 +22,23 @@ const models = require('./models'); const operations = require('./operations'); -/** - * @class - * Initializes a new instance of the DataLakeStoreAccountManagementClient class. - * @constructor - * - * @param {credentials} credentials - Credentials needed for the client to connect to Azure. - * - * @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - * - * @param {string} [baseUri] - The base URI of the service. - * - * @param {object} [options] - The parameter options - * - * @param {Array} [options.filters] - Filters to be added to the request pipeline - * - * @param {object} [options.requestOptions] - Options for the underlying request object - * {@link https://github.com/request/request#requestoptions-callback Options doc} - * - * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * - * @param {string} [options.apiVersion] - Client Api Version. - * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. - * - */ +/** Class representing a DataLakeStoreAccountManagementClient. */ class DataLakeStoreAccountManagementClient extends ServiceClient { + /** + * Create a DataLakeStoreAccountManagementClient. + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. + * @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + * @param {string} [baseUri] - The base URI of the service. + * @param {object} [options] - The parameter options + * @param {Array} [options.filters] - Filters to be added to the request pipeline + * @param {object} [options.requestOptions] - Options for the underlying request object + * {@link https://github.com/request/request#requestoptions-callback Options doc} + * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy + * @param {string} [options.apiVersion] - Client Api Version. + * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ constructor(credentials, subscriptionId, baseUri, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); diff --git a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccount.js b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccount.js index 22cf0fad9c..50e9d1277b 100644 --- a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccount.js +++ b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccount.js @@ -13,92 +13,75 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the DataLakeStoreAccount class. - * @constructor * Data Lake Store account information * - * @member {object} [identity] The Key Vault encryption identity, if any. - * - * @member {uuid} [identity.principalId] The principal identifier associated - * with the encryption. - * - * @member {uuid} [identity.tenantId] The tenant identifier associated with the - * encryption. - * - * @member {string} [provisioningState] the status of the Data Lake Store - * account while being provisioned. Possible values include: 'Failed', - * 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', - * 'Deleting', 'Deleted' - * - * @member {string} [state] the status of the Data Lake Store account after - * provisioning has completed. Possible values include: 'Active', 'Suspended' - * - * @member {date} [creationTime] the account creation time. - * - * @member {string} [encryptionState] The current state of encryption for this - * Data Lake store account. Possible values include: 'Enabled', 'Disabled' - * - * @member {string} [encryptionProvisioningState] The current state of - * encryption provisioning for this Data Lake store account. Possible values - * include: 'Creating', 'Succeeded' - * - * @member {object} [encryptionConfig] The Key Vault encryption configuration. - * - * @member {string} [encryptionConfig.type] The type of encryption - * configuration being used. Currently the only supported types are - * 'UserManaged' and 'ServiceManaged'. Possible values include: 'UserManaged', - * 'ServiceManaged' - * - * @member {object} [encryptionConfig.keyVaultMetaInfo] The Key Vault - * information for connecting to user managed encryption keys. - * - * @member {string} [encryptionConfig.keyVaultMetaInfo.keyVaultResourceId] The - * resource identifier for the user managed Key Vault being used to encrypt. - * - * @member {string} [encryptionConfig.keyVaultMetaInfo.encryptionKeyName] The - * name of the user managed encryption key. - * - * @member {string} [encryptionConfig.keyVaultMetaInfo.encryptionKeyVersion] - * The version of the user managed encryption key. - * - * @member {string} [firewallState] The current state of the IP address - * firewall for this Data Lake store account. Possible values include: - * 'Enabled', 'Disabled' - * - * @member {array} [firewallRules] The list of firewall rules associated with - * this Data Lake store account. - * - * @member {string} [trustedIdProviderState] The current state of the trusted - * identity provider feature for this Data Lake store account. Possible values - * include: 'Enabled', 'Disabled' - * - * @member {array} [trustedIdProviders] The list of trusted identity providers - * associated with this Data Lake store account. - * - * @member {date} [lastModifiedTime] the account last modified time. - * - * @member {string} [endpoint] the gateway host. - * - * @member {string} [defaultGroup] the default owner group for all new folders - * and files created in the Data Lake Store account. - * - * @member {string} [newTier] the commitment tier to use for next month. - * Possible values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', - * 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - * - * @member {string} [currentTier] the commitment tier in use for the current - * month. Possible values include: 'Consumption', 'Commitment_1TB', - * 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', - * 'Commitment_5PB' - * - * @member {string} [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' - * + * @extends models['Resource'] */ class DataLakeStoreAccount extends models['Resource'] { + /** + * Create a DataLakeStoreAccount. + * @member {object} [identity] The Key Vault encryption identity, if any. + * @member {uuid} [identity.principalId] The principal identifier associated + * with the encryption. + * @member {uuid} [identity.tenantId] The tenant identifier associated with + * the encryption. + * @member {string} [provisioningState] the provisioning status of the Data + * Lake Store account. Possible values include: 'Failed', 'Creating', + * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted' + * @member {string} [state] the state of the Data Lake Store account. + * Possible values include: 'Active', 'Suspended' + * @member {date} [creationTime] the account creation time. + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Store account. + * @member {string} [encryptionState] The current state of encryption for + * this Data Lake store account. Possible values include: 'Enabled', + * 'Disabled' + * @member {string} [encryptionProvisioningState] The current state of + * encryption provisioning for this Data Lake store account. Possible values + * include: 'Creating', 'Succeeded' + * @member {object} [encryptionConfig] The Key Vault encryption + * configuration. + * @member {string} [encryptionConfig.type] The type of encryption + * configuration being used. Currently the only supported types are + * 'UserManaged' and 'ServiceManaged'. Possible values include: + * 'UserManaged', 'ServiceManaged' + * @member {object} [encryptionConfig.keyVaultMetaInfo] The Key Vault + * information for connecting to user managed encryption keys. + * @member {string} [encryptionConfig.keyVaultMetaInfo.keyVaultResourceId] + * The resource identifier for the user managed Key Vault being used to + * encrypt. + * @member {string} [encryptionConfig.keyVaultMetaInfo.encryptionKeyName] The + * name of the user managed encryption key. + * @member {string} [encryptionConfig.keyVaultMetaInfo.encryptionKeyVersion] + * The version of the user managed encryption key. + * @member {string} [firewallState] The current state of the IP address + * firewall for this Data Lake store account. Possible values include: + * 'Enabled', 'Disabled' + * @member {array} [firewallRules] The list of firewall rules associated with + * this Data Lake store account. + * @member {string} [trustedIdProviderState] The current state of the trusted + * identity provider feature for this Data Lake store account. Possible + * values include: 'Enabled', 'Disabled' + * @member {array} [trustedIdProviders] The list of trusted identity + * providers associated with this Data Lake store account. + * @member {string} [defaultGroup] the default owner group for all new + * folders and files created in the Data Lake Store account. + * @member {string} [newTier] the commitment tier to use for next month. + * Possible values include: 'Consumption', 'Commitment_1TB', + * 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', + * 'Commitment_1PB', 'Commitment_5PB' + * @member {string} [currentTier] the commitment tier in use for the current + * month. Possible values include: 'Consumption', 'Commitment_1TB', + * 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', + * 'Commitment_1PB', 'Commitment_5PB' + * @member {string} [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' + */ constructor() { super(); } @@ -196,6 +179,30 @@ class DataLakeStoreAccount extends models['Resource'] { name: 'DateTime' } }, + lastModifiedTime: { + required: false, + readOnly: true, + serializedName: 'properties.lastModifiedTime', + type: { + name: 'DateTime' + } + }, + endpoint: { + required: false, + readOnly: true, + serializedName: 'properties.endpoint', + type: { + name: 'String' + } + }, + accountId: { + required: false, + readOnly: true, + serializedName: 'properties.accountId', + type: { + name: 'String' + } + }, encryptionState: { required: false, serializedName: 'properties.encryptionState', @@ -267,22 +274,6 @@ class DataLakeStoreAccount extends models['Resource'] { } } }, - lastModifiedTime: { - required: false, - readOnly: true, - serializedName: 'properties.lastModifiedTime', - type: { - name: 'DateTime' - } - }, - endpoint: { - required: false, - readOnly: true, - serializedName: 'properties.endpoint', - type: { - name: 'String' - } - }, defaultGroup: { required: false, serializedName: 'properties.defaultGroup', diff --git a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountBasic.js b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountBasic.js new file mode 100644 index 0000000000..3dc8f5c428 --- /dev/null +++ b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountBasic.js @@ -0,0 +1,154 @@ +/* + * 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. + */ + +'use strict'; + +const models = require('./index'); + +/** + * Basic Data Lake Store account information, returned on list calls. + * + * @extends models['Resource'] + */ +class DataLakeStoreAccountBasic extends models['Resource'] { + /** + * Create a DataLakeStoreAccountBasic. + * @member {string} [provisioningState] the provisioning status of the Data + * Lake Store account. Possible values include: 'Failed', 'Creating', + * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted' + * @member {string} [state] the state of the Data Lake Store account. + * Possible values include: 'Active', 'Suspended' + * @member {date} [creationTime] the account creation time. + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Store account. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of DataLakeStoreAccountBasic + * + * @returns {object} metadata of DataLakeStoreAccountBasic + * + */ + mapper() { + return { + required: false, + serializedName: 'DataLakeStoreAccountBasic', + type: { + name: 'Composite', + className: 'DataLakeStoreAccountBasic', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + location: { + required: true, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + provisioningState: { + required: false, + readOnly: true, + serializedName: 'properties.provisioningState', + type: { + name: 'Enum', + allowedValues: [ 'Failed', 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted' ] + } + }, + state: { + required: false, + readOnly: true, + serializedName: 'properties.state', + type: { + name: 'Enum', + allowedValues: [ 'Active', 'Suspended' ] + } + }, + creationTime: { + required: false, + readOnly: true, + serializedName: 'properties.creationTime', + type: { + name: 'DateTime' + } + }, + lastModifiedTime: { + required: false, + readOnly: true, + serializedName: 'properties.lastModifiedTime', + type: { + name: 'DateTime' + } + }, + endpoint: { + required: false, + readOnly: true, + serializedName: 'properties.endpoint', + type: { + name: 'String' + } + }, + accountId: { + required: false, + readOnly: true, + serializedName: 'properties.accountId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = DataLakeStoreAccountBasic; diff --git a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountListResult.js b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountListResult.js index 4b8b24e1d5..b866e91e09 100644 --- a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountListResult.js +++ b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountListResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeStoreAccountListResult class. - * @constructor * Data Lake Store account list information response. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class DataLakeStoreAccountListResult extends Array { + /** + * Create a DataLakeStoreAccountListResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } @@ -46,10 +44,10 @@ class DataLakeStoreAccountListResult extends Array { name: 'Sequence', element: { required: false, - serializedName: 'DataLakeStoreAccountElementType', + serializedName: 'DataLakeStoreAccountBasicElementType', type: { name: 'Composite', - className: 'DataLakeStoreAccount' + className: 'DataLakeStoreAccountBasic' } } } diff --git a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountUpdateParameters.js b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountUpdateParameters.js index dcbe23f426..4d42bb7e94 100644 --- a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountUpdateParameters.js +++ b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreAccountUpdateParameters.js @@ -13,49 +13,41 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the DataLakeStoreAccountUpdateParameters class. - * @constructor * Data Lake Store account information to update * - * @member {object} [tags] Resource tags - * - * @member {string} [firewallState] The current state of the IP address - * firewall for this Data Lake store 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' - * - * @member {string} [trustedIdProviderState] The current state of the trusted - * identity provider feature for this Data Lake store account. Disabling - * trusted identity provider functionality does not remove the providers, they - * will just be ignored until this feature is re-enabled. Possible values - * include: 'Enabled', 'Disabled' - * - * @member {string} [defaultGroup] the default owner group for all new folders - * and files created in the Data Lake Store account. - * - * @member {string} [newTier] the commitment tier to use for next month. - * Possible values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', - * 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - * - * @member {string} [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' - * - * @member {object} [encryptionConfig] Used for rotation of user managed Key - * Vault keys. Can only be used to rotate a user managed encryption Key Vault - * key. - * - * @member {object} [encryptionConfig.keyVaultMetaInfo] The updated Key Vault - * key to use in user managed key rotation. - * - * @member {string} [encryptionConfig.keyVaultMetaInfo.encryptionKeyVersion] - * The version of the user managed encryption key to update through a key - * rotation. - * */ class DataLakeStoreAccountUpdateParameters { + /** + * Create a DataLakeStoreAccountUpdateParameters. + * @member {object} [tags] Resource tags + * @member {string} [firewallState] The current state of the IP address + * firewall for this Data Lake store 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' + * @member {string} [trustedIdProviderState] The current state of the trusted + * identity provider feature for this Data Lake store account. Disabling + * trusted identity provider functionality does not remove the providers, + * they will just be ignored until this feature is re-enabled. Possible + * values include: 'Enabled', 'Disabled' + * @member {string} [defaultGroup] the default owner group for all new + * folders and files created in the Data Lake Store account. + * @member {string} [newTier] the commitment tier to use for next month. + * Possible values include: 'Consumption', 'Commitment_1TB', + * 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', + * 'Commitment_1PB', 'Commitment_5PB' + * @member {string} [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' + * @member {object} [encryptionConfig] Used for rotation of user managed Key + * Vault keys. Can only be used to rotate a user managed encryption Key Vault + * key. + * @member {object} [encryptionConfig.keyVaultMetaInfo] The updated Key Vault + * key to use in user managed key rotation. + * @member {string} [encryptionConfig.keyVaultMetaInfo.encryptionKeyVersion] + * The version of the user managed encryption key to update through a key + * rotation. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreFirewallRuleListResult.js b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreFirewallRuleListResult.js index e1fa46dbdd..97def422ae 100644 --- a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreFirewallRuleListResult.js +++ b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreFirewallRuleListResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeStoreFirewallRuleListResult class. - * @constructor * Data Lake Store firewall rule list information. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class DataLakeStoreFirewallRuleListResult extends Array { + /** + * Create a DataLakeStoreFirewallRuleListResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreTrustedIdProviderListResult.js b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreTrustedIdProviderListResult.js index 6b2046e5f0..4eba13e18d 100644 --- a/lib/services/dataLake.Store/lib/account/models/dataLakeStoreTrustedIdProviderListResult.js +++ b/lib/services/dataLake.Store/lib/account/models/dataLakeStoreTrustedIdProviderListResult.js @@ -11,15 +11,13 @@ 'use strict'; /** - * @class - * Initializes a new instance of the DataLakeStoreTrustedIdProviderListResult class. - * @constructor * Data Lake Store trusted identity provider list information. - * - * @member {string} [nextLink] the link (url) to the next page of results. - * */ class DataLakeStoreTrustedIdProviderListResult extends Array { + /** + * Create a DataLakeStoreTrustedIdProviderListResult. + * @member {string} [nextLink] the link (url) to the next page of results. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/account/models/encryptionConfig.js b/lib/services/dataLake.Store/lib/account/models/encryptionConfig.js index 70ef92f3f3..d6de7129f0 100644 --- a/lib/services/dataLake.Store/lib/account/models/encryptionConfig.js +++ b/lib/services/dataLake.Store/lib/account/models/encryptionConfig.js @@ -13,29 +13,24 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the EncryptionConfig class. - * @constructor * The encryption configuration for the account. * - * @member {string} type The type of encryption configuration being used. - * Currently the only supported types are 'UserManaged' and 'ServiceManaged'. - * Possible values include: 'UserManaged', 'ServiceManaged' - * - * @member {object} [keyVaultMetaInfo] The Key Vault information for connecting - * to user managed encryption keys. - * - * @member {string} [keyVaultMetaInfo.keyVaultResourceId] The resource - * identifier for the user managed Key Vault being used to encrypt. - * - * @member {string} [keyVaultMetaInfo.encryptionKeyName] The name of the user - * managed encryption key. - * - * @member {string} [keyVaultMetaInfo.encryptionKeyVersion] The version of the - * user managed encryption key. - * */ class EncryptionConfig { + /** + * Create a EncryptionConfig. + * @member {string} type The type of encryption configuration being used. + * Currently the only supported types are 'UserManaged' and 'ServiceManaged'. + * Possible values include: 'UserManaged', 'ServiceManaged' + * @member {object} [keyVaultMetaInfo] The Key Vault information for + * connecting to user managed encryption keys. + * @member {string} [keyVaultMetaInfo.keyVaultResourceId] The resource + * identifier for the user managed Key Vault being used to encrypt. + * @member {string} [keyVaultMetaInfo.encryptionKeyName] The name of the user + * managed encryption key. + * @member {string} [keyVaultMetaInfo.encryptionKeyVersion] The version of + * the user managed encryption key. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/models/encryptionIdentity.js b/lib/services/dataLake.Store/lib/account/models/encryptionIdentity.js index 8b3cd41e93..b0eb22543d 100644 --- a/lib/services/dataLake.Store/lib/account/models/encryptionIdentity.js +++ b/lib/services/dataLake.Store/lib/account/models/encryptionIdentity.js @@ -11,19 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the EncryptionIdentity class. - * @constructor * The encryption identity properties. * - * @member {uuid} [principalId] The principal identifier associated with the - * encryption. - * - * @member {uuid} [tenantId] The tenant identifier associated with the - * encryption. - * */ class EncryptionIdentity { + /** + * Create a EncryptionIdentity. + * @member {uuid} [principalId] The principal identifier associated with the + * encryption. + * @member {uuid} [tenantId] The tenant identifier associated with the + * encryption. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/models/errorDetails.js b/lib/services/dataLake.Store/lib/account/models/errorDetails.js index 4af1576d1d..0054072586 100644 --- a/lib/services/dataLake.Store/lib/account/models/errorDetails.js +++ b/lib/services/dataLake.Store/lib/account/models/errorDetails.js @@ -11,22 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ErrorDetails class. - * @constructor * Data Lake Store error details information * - * @member {string} [code] the HTTP status code or error code associated with - * this error - * - * @member {string} [message] the error message localized based on - * Accept-Language - * - * @member {string} [target] the target of the particular error (for example, - * the name of the property in error). - * */ class ErrorDetails { + /** + * Create a ErrorDetails. + * @member {string} [code] the HTTP status code or error code associated with + * this error + * @member {string} [message] the error message localized based on + * Accept-Language + * @member {string} [target] the target of the particular error (for example, + * the name of the property in error). + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/models/firewallRule.js b/lib/services/dataLake.Store/lib/account/models/firewallRule.js index d72b8787aa..537ade5868 100644 --- a/lib/services/dataLake.Store/lib/account/models/firewallRule.js +++ b/lib/services/dataLake.Store/lib/account/models/firewallRule.js @@ -13,20 +13,20 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the FirewallRule class. - * @constructor * Data Lake Store firewall rule information * - * @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. - * - * @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. - * + * @extends models['SubResource'] */ class FirewallRule extends models['SubResource'] { + /** + * Create a FirewallRule. + * @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. + * @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. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/account/models/index.d.ts b/lib/services/dataLake.Store/lib/account/models/index.d.ts index 6674656242..e118ddaf47 100644 --- a/lib/services/dataLake.Store/lib/account/models/index.d.ts +++ b/lib/services/dataLake.Store/lib/account/models/index.d.ts @@ -10,6 +10,7 @@ import { BaseResource } from 'ms-rest-azure'; import { CloudError } from 'ms-rest-azure'; +import * as moment from 'moment'; export { BaseResource } from 'ms-rest-azure'; export { CloudError } from 'ms-rest-azure'; @@ -24,11 +25,9 @@ export { CloudError } from 'ms-rest-azure'; * @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. - * * @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. - * */ export interface UpdateFirewallRuleParameters { startIpAddress?: string; @@ -42,11 +41,8 @@ export interface UpdateFirewallRuleParameters { * The Resource model definition for a nested resource. * * @member {string} [id] Resource Id - * * @member {string} [name] Resource name - * * @member {string} [type] Resource type - * */ export interface SubResource { readonly id?: string; @@ -63,10 +59,8 @@ export interface 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. - * * @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. - * */ export interface FirewallRule extends SubResource { startIpAddress: string; @@ -80,7 +74,6 @@ export interface FirewallRule extends SubResource { * Data Lake Store Trusted Identity Provider update parameters * * @member {string} [idProvider] The URL of this trusted identity provider - * */ export interface UpdateTrustedIdProviderParameters { idProvider?: string; @@ -93,7 +86,6 @@ export interface UpdateTrustedIdProviderParameters { * Data Lake Store Trusted Identity Provider information * * @member {string} idProvider The URL of this trusted identity provider - * */ export interface TrustedIdProvider extends SubResource { idProvider: string; @@ -106,9 +98,7 @@ export interface TrustedIdProvider extends SubResource { * Data Lake Store trusted identity provider list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeStoreTrustedIdProviderListResult { readonly value?: TrustedIdProvider[]; @@ -122,9 +112,7 @@ export interface DataLakeStoreTrustedIdProviderListResult { * Data Lake Store firewall rule list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeStoreFirewallRuleListResult { readonly value?: FirewallRule[]; @@ -139,10 +127,8 @@ export interface DataLakeStoreFirewallRuleListResult { * * @member {uuid} [principalId] The principal identifier associated with the * encryption. - * * @member {uuid} [tenantId] The tenant identifier associated with the * encryption. - * */ export interface EncryptionIdentity { readonly principalId?: string; @@ -157,13 +143,10 @@ export interface EncryptionIdentity { * * @member {string} keyVaultResourceId The resource identifier for the user * managed Key Vault being used to encrypt. - * * @member {string} encryptionKeyName The name of the user managed encryption * key. - * * @member {string} encryptionKeyVersion The version of the user managed * encryption key. - * */ export interface KeyVaultMetaInfo { keyVaultResourceId: string; @@ -180,19 +163,14 @@ export interface KeyVaultMetaInfo { * @member {string} type The type of encryption configuration being used. * Currently the only supported types are 'UserManaged' and 'ServiceManaged'. * Possible values include: 'UserManaged', 'ServiceManaged' - * * @member {object} [keyVaultMetaInfo] The Key Vault information for connecting * to user managed encryption keys. - * * @member {string} [keyVaultMetaInfo.keyVaultResourceId] The resource * identifier for the user managed Key Vault being used to encrypt. - * * @member {string} [keyVaultMetaInfo.encryptionKeyName] The name of the user * managed encryption key. - * * @member {string} [keyVaultMetaInfo.encryptionKeyVersion] The version of the * user managed encryption key. - * */ export interface EncryptionConfig { type: string; @@ -207,7 +185,6 @@ export interface EncryptionConfig { * * @member {string} [encryptionKeyVersion] The version of the user managed * encryption key to update through a key rotation. - * */ export interface UpdateKeyVaultMetaInfo { encryptionKeyVersion?: string; @@ -221,10 +198,8 @@ export interface UpdateKeyVaultMetaInfo { * * @member {object} [keyVaultMetaInfo] The updated Key Vault key to use in user * managed key rotation. - * * @member {string} [keyVaultMetaInfo.encryptionKeyVersion] The version of the * user managed encryption key to update through a key rotation. - * */ export interface UpdateEncryptionConfig { keyVaultMetaInfo?: UpdateKeyVaultMetaInfo; @@ -237,41 +212,32 @@ export interface UpdateEncryptionConfig { * Data Lake Store account information to update * * @member {object} [tags] Resource tags - * * @member {string} [firewallState] The current state of the IP address * firewall for this Data Lake store 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' - * * @member {string} [trustedIdProviderState] The current state of the trusted * identity provider feature for this Data Lake store account. Disabling * trusted identity provider functionality does not remove the providers, they * will just be ignored until this feature is re-enabled. Possible values * include: 'Enabled', 'Disabled' - * * @member {string} [defaultGroup] the default owner group for all new folders * and files created in the Data Lake Store account. - * * @member {string} [newTier] the commitment tier to use for next month. * Possible values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', * 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - * * @member {string} [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' - * * @member {object} [encryptionConfig] Used for rotation of user managed Key * Vault keys. Can only be used to rotate a user managed encryption Key Vault * key. - * * @member {object} [encryptionConfig.keyVaultMetaInfo] The updated Key Vault * key to use in user managed key rotation. - * * @member {string} [encryptionConfig.keyVaultMetaInfo.encryptionKeyVersion] * The version of the user managed encryption key to update through a key * rotation. - * */ export interface DataLakeStoreAccountUpdateParameters { tags?: { [propertyName: string]: string }; @@ -290,15 +256,10 @@ export interface DataLakeStoreAccountUpdateParameters { * The Resource model definition. * * @member {string} [id] Resource Id - * * @member {string} [name] Resource name - * * @member {string} [type] Resource type - * * @member {string} location Resource location - * * @member {object} [tags] Resource tags - * */ export interface Resource extends BaseResource { readonly id?: string; @@ -315,90 +276,71 @@ export interface Resource extends BaseResource { * Data Lake Store account information * * @member {object} [identity] The Key Vault encryption identity, if any. - * * @member {uuid} [identity.principalId] The principal identifier associated * with the encryption. - * * @member {uuid} [identity.tenantId] The tenant identifier associated with the * encryption. - * - * @member {string} [provisioningState] the status of the Data Lake Store - * account while being provisioned. Possible values include: 'Failed', - * 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', - * 'Deleting', 'Deleted' - * - * @member {string} [state] the status of the Data Lake Store account after - * provisioning has completed. Possible values include: 'Active', 'Suspended' - * + * @member {string} [provisioningState] the provisioning status of the Data + * Lake Store account. Possible values include: 'Failed', 'Creating', + * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted' + * @member {string} [state] the state of the Data Lake Store account. Possible + * values include: 'Active', 'Suspended' * @member {date} [creationTime] the account creation time. - * + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Store account. * @member {string} [encryptionState] The current state of encryption for this * Data Lake store account. Possible values include: 'Enabled', 'Disabled' - * * @member {string} [encryptionProvisioningState] The current state of * encryption provisioning for this Data Lake store account. Possible values * include: 'Creating', 'Succeeded' - * * @member {object} [encryptionConfig] The Key Vault encryption configuration. - * * @member {string} [encryptionConfig.type] The type of encryption * configuration being used. Currently the only supported types are * 'UserManaged' and 'ServiceManaged'. Possible values include: 'UserManaged', * 'ServiceManaged' - * * @member {object} [encryptionConfig.keyVaultMetaInfo] The Key Vault * information for connecting to user managed encryption keys. - * * @member {string} [encryptionConfig.keyVaultMetaInfo.keyVaultResourceId] The * resource identifier for the user managed Key Vault being used to encrypt. - * * @member {string} [encryptionConfig.keyVaultMetaInfo.encryptionKeyName] The * name of the user managed encryption key. - * * @member {string} [encryptionConfig.keyVaultMetaInfo.encryptionKeyVersion] * The version of the user managed encryption key. - * * @member {string} [firewallState] The current state of the IP address * firewall for this Data Lake store account. Possible values include: * 'Enabled', 'Disabled' - * * @member {array} [firewallRules] The list of firewall rules associated with * this Data Lake store account. - * * @member {string} [trustedIdProviderState] The current state of the trusted * identity provider feature for this Data Lake store account. Possible values * include: 'Enabled', 'Disabled' - * * @member {array} [trustedIdProviders] The list of trusted identity providers * associated with this Data Lake store account. - * - * @member {date} [lastModifiedTime] the account last modified time. - * - * @member {string} [endpoint] the gateway host. - * * @member {string} [defaultGroup] the default owner group for all new folders * and files created in the Data Lake Store account. - * * @member {string} [newTier] the commitment tier to use for next month. * Possible values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', * 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - * * @member {string} [currentTier] the commitment tier in use for the current * month. Possible values include: 'Consumption', 'Commitment_1TB', * 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', * 'Commitment_5PB' - * * @member {string} [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' - * */ export interface DataLakeStoreAccount extends Resource { identity?: EncryptionIdentity; readonly provisioningState?: string; readonly state?: string; readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + readonly endpoint?: string; + readonly accountId?: string; encryptionState?: string; readonly encryptionProvisioningState?: string; encryptionConfig?: EncryptionConfig; @@ -406,14 +348,39 @@ export interface DataLakeStoreAccount extends Resource { firewallRules?: FirewallRule[]; trustedIdProviderState?: string; trustedIdProviders?: TrustedIdProvider[]; - readonly lastModifiedTime?: Date; - readonly endpoint?: string; defaultGroup?: string; newTier?: string; readonly currentTier?: string; firewallAllowAzureIps?: string; } +/** + * @class + * Initializes a new instance of the DataLakeStoreAccountBasic class. + * @constructor + * Basic Data Lake Store account information, returned on list calls. + * + * @member {string} [provisioningState] the provisioning status of the Data + * Lake Store account. Possible values include: 'Failed', 'Creating', + * 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + * 'Deleted' + * @member {string} [state] the state of the Data Lake Store account. Possible + * values include: 'Active', 'Suspended' + * @member {date} [creationTime] the account creation time. + * @member {date} [lastModifiedTime] the account last modified time. + * @member {string} [endpoint] the full CName endpoint for this account. + * @member {uuid} [accountId] The unique identifier associated with this Data + * Lake Store account. + */ +export interface DataLakeStoreAccountBasic extends Resource { + readonly provisioningState?: string; + readonly state?: string; + readonly creationTime?: Date; + readonly lastModifiedTime?: Date; + readonly endpoint?: string; + readonly accountId?: string; +} + /** * @class * Initializes a new instance of the DataLakeStoreAccountListResult class. @@ -421,12 +388,10 @@ export interface DataLakeStoreAccount extends Resource { * Data Lake Store account list information response. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeStoreAccountListResult { - readonly value?: DataLakeStoreAccount[]; + readonly value?: DataLakeStoreAccountBasic[]; readonly nextLink?: string; } @@ -438,13 +403,10 @@ export interface DataLakeStoreAccountListResult { * * @member {string} [code] the HTTP status code or error code associated with * this error - * * @member {string} [message] the error message localized based on * Accept-Language - * * @member {string} [target] the target of the particular error (for example, * the name of the property in error). - * */ export interface ErrorDetails { readonly code?: string; @@ -459,9 +421,7 @@ export interface ErrorDetails { * Data Lake Store firewall rule list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeStoreFirewallRuleListResult { readonly value?: FirewallRule[]; @@ -475,9 +435,7 @@ export interface DataLakeStoreFirewallRuleListResult { * Data Lake Store trusted identity provider list information. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeStoreTrustedIdProviderListResult { readonly value?: TrustedIdProvider[]; @@ -491,12 +449,10 @@ export interface DataLakeStoreTrustedIdProviderListResult { * Data Lake Store account list information response. * * @member {array} [value] the results of the list operation - * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeStoreAccountListResult { - readonly value?: DataLakeStoreAccount[]; + readonly value?: DataLakeStoreAccountBasic[]; readonly nextLink?: string; } @@ -508,7 +464,6 @@ export interface DataLakeStoreAccountListResult { * Data Lake Store firewall rule list information. * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeStoreFirewallRuleListResult extends Array { readonly nextLink?: string; @@ -521,7 +476,6 @@ export interface DataLakeStoreFirewallRuleListResult extends Array * Data Lake Store trusted identity provider list information. * * @member {string} [nextLink] the link (url) to the next page of results. - * */ export interface DataLakeStoreTrustedIdProviderListResult extends Array { readonly nextLink?: string; @@ -534,8 +488,7 @@ export interface DataLakeStoreTrustedIdProviderListResult extends Array { +export interface DataLakeStoreAccountListResult extends Array { readonly nextLink?: string; } diff --git a/lib/services/dataLake.Store/lib/account/models/index.js b/lib/services/dataLake.Store/lib/account/models/index.js index 388c5e0d19..5842404186 100644 --- a/lib/services/dataLake.Store/lib/account/models/index.js +++ b/lib/services/dataLake.Store/lib/account/models/index.js @@ -33,6 +33,7 @@ exports.UpdateEncryptionConfig = require('./updateEncryptionConfig'); exports.DataLakeStoreAccountUpdateParameters = require('./dataLakeStoreAccountUpdateParameters'); exports.Resource = require('./resource'); exports.DataLakeStoreAccount = require('./dataLakeStoreAccount'); +exports.DataLakeStoreAccountBasic = require('./dataLakeStoreAccountBasic'); exports.DataLakeStoreAccountListResult = require('./dataLakeStoreAccountListResult'); exports.ErrorDetails = require('./errorDetails'); exports.DataLakeStoreFirewallRuleListResult = require('./dataLakeStoreFirewallRuleListResult'); diff --git a/lib/services/dataLake.Store/lib/account/models/keyVaultMetaInfo.js b/lib/services/dataLake.Store/lib/account/models/keyVaultMetaInfo.js index 6d1c49092c..796a718508 100644 --- a/lib/services/dataLake.Store/lib/account/models/keyVaultMetaInfo.js +++ b/lib/services/dataLake.Store/lib/account/models/keyVaultMetaInfo.js @@ -11,22 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the KeyVaultMetaInfo class. - * @constructor * Metadata information used by account encryption. * - * @member {string} keyVaultResourceId The resource identifier for the user - * managed Key Vault being used to encrypt. - * - * @member {string} encryptionKeyName The name of the user managed encryption - * key. - * - * @member {string} encryptionKeyVersion The version of the user managed - * encryption key. - * */ class KeyVaultMetaInfo { + /** + * Create a KeyVaultMetaInfo. + * @member {string} keyVaultResourceId The resource identifier for the user + * managed Key Vault being used to encrypt. + * @member {string} encryptionKeyName The name of the user managed encryption + * key. + * @member {string} encryptionKeyVersion The version of the user managed + * encryption key. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/models/resource.js b/lib/services/dataLake.Store/lib/account/models/resource.js index a66d0104cb..7c1448890e 100644 --- a/lib/services/dataLake.Store/lib/account/models/resource.js +++ b/lib/services/dataLake.Store/lib/account/models/resource.js @@ -13,23 +13,19 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the Resource class. - * @constructor * The Resource model definition. * - * @member {string} [id] Resource Id - * - * @member {string} [name] Resource name - * - * @member {string} [type] Resource type - * - * @member {string} location Resource location - * - * @member {object} [tags] Resource tags - * + * @extends models['BaseResource'] */ class Resource extends models['BaseResource'] { + /** + * Create a Resource. + * @member {string} [id] Resource Id + * @member {string} [name] Resource name + * @member {string} [type] Resource type + * @member {string} location Resource location + * @member {object} [tags] Resource tags + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/account/models/subResource.js b/lib/services/dataLake.Store/lib/account/models/subResource.js index e91bd807b5..e0ca7c61f5 100644 --- a/lib/services/dataLake.Store/lib/account/models/subResource.js +++ b/lib/services/dataLake.Store/lib/account/models/subResource.js @@ -11,19 +11,16 @@ 'use strict'; /** - * @class - * Initializes a new instance of the SubResource class. - * @constructor * The Resource model definition for a nested resource. * - * @member {string} [id] Resource Id - * - * @member {string} [name] Resource name - * - * @member {string} [type] Resource type - * */ class SubResource { + /** + * Create a SubResource. + * @member {string} [id] Resource Id + * @member {string} [name] Resource name + * @member {string} [type] Resource type + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/models/trustedIdProvider.js b/lib/services/dataLake.Store/lib/account/models/trustedIdProvider.js index 98785866ad..37b9155830 100644 --- a/lib/services/dataLake.Store/lib/account/models/trustedIdProvider.js +++ b/lib/services/dataLake.Store/lib/account/models/trustedIdProvider.js @@ -13,15 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the TrustedIdProvider class. - * @constructor * Data Lake Store Trusted Identity Provider information * - * @member {string} idProvider The URL of this trusted identity provider - * + * @extends models['SubResource'] */ class TrustedIdProvider extends models['SubResource'] { + /** + * Create a TrustedIdProvider. + * @member {string} idProvider The URL of this trusted identity provider + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/account/models/updateEncryptionConfig.js b/lib/services/dataLake.Store/lib/account/models/updateEncryptionConfig.js index 79227839f9..4c931f7c6c 100644 --- a/lib/services/dataLake.Store/lib/account/models/updateEncryptionConfig.js +++ b/lib/services/dataLake.Store/lib/account/models/updateEncryptionConfig.js @@ -13,19 +13,17 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the UpdateEncryptionConfig class. - * @constructor * The encryption configuration used to update a user managed Key Vault key. * - * @member {object} [keyVaultMetaInfo] The updated Key Vault key to use in user - * managed key rotation. - * - * @member {string} [keyVaultMetaInfo.encryptionKeyVersion] The version of the - * user managed encryption key to update through a key rotation. - * */ class UpdateEncryptionConfig { + /** + * Create a UpdateEncryptionConfig. + * @member {object} [keyVaultMetaInfo] The updated Key Vault key to use in + * user managed key rotation. + * @member {string} [keyVaultMetaInfo.encryptionKeyVersion] The version of + * the user managed encryption key to update through a key rotation. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/models/updateFirewallRuleParameters.js b/lib/services/dataLake.Store/lib/account/models/updateFirewallRuleParameters.js index 2908796d87..5d3aa00b18 100644 --- a/lib/services/dataLake.Store/lib/account/models/updateFirewallRuleParameters.js +++ b/lib/services/dataLake.Store/lib/account/models/updateFirewallRuleParameters.js @@ -11,21 +11,19 @@ 'use strict'; /** - * @class - * Initializes a new instance of the UpdateFirewallRuleParameters class. - * @constructor * Data Lake Analytics firewall rule update parameters * - * @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. - * - * @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. - * */ class UpdateFirewallRuleParameters { + /** + * Create a 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. + * @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. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/models/updateKeyVaultMetaInfo.js b/lib/services/dataLake.Store/lib/account/models/updateKeyVaultMetaInfo.js index 816b96748b..28a706b4bd 100644 --- a/lib/services/dataLake.Store/lib/account/models/updateKeyVaultMetaInfo.js +++ b/lib/services/dataLake.Store/lib/account/models/updateKeyVaultMetaInfo.js @@ -11,16 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the UpdateKeyVaultMetaInfo class. - * @constructor * The Key Vault update information used for user managed key rotation. * - * @member {string} [encryptionKeyVersion] The version of the user managed - * encryption key to update through a key rotation. - * */ class UpdateKeyVaultMetaInfo { + /** + * Create a UpdateKeyVaultMetaInfo. + * @member {string} [encryptionKeyVersion] The version of the user managed + * encryption key to update through a key rotation. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/models/updateTrustedIdProviderParameters.js b/lib/services/dataLake.Store/lib/account/models/updateTrustedIdProviderParameters.js index bf644a09a2..a10a3fadad 100644 --- a/lib/services/dataLake.Store/lib/account/models/updateTrustedIdProviderParameters.js +++ b/lib/services/dataLake.Store/lib/account/models/updateTrustedIdProviderParameters.js @@ -11,15 +11,14 @@ 'use strict'; /** - * @class - * Initializes a new instance of the UpdateTrustedIdProviderParameters class. - * @constructor * Data Lake Store Trusted Identity Provider update parameters * - * @member {string} [idProvider] The URL of this trusted identity provider - * */ class UpdateTrustedIdProviderParameters { + /** + * Create a UpdateTrustedIdProviderParameters. + * @member {string} [idProvider] The URL of this trusted identity provider + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/account/operations/account.js b/lib/services/dataLake.Store/lib/account/operations/account.js index 247f60b878..5c32fb6fbf 100644 --- a/lib/services/dataLake.Store/lib/account/operations/account.js +++ b/lib/services/dataLake.Store/lib/account/operations/account.js @@ -1222,7 +1222,7 @@ function _beginCreate(resourceGroupName, name, parameters, options, callback) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 201 && statusCode !== 200) { + if (statusCode !== 200 && statusCode !== 201) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -1251,7 +1251,7 @@ function _beginCreate(resourceGroupName, name, parameters, options, callback) { let result = null; if (responseBody === '') responseBody = null; // Deserialize Response - if (statusCode === 201) { + if (statusCode === 200) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); @@ -1268,7 +1268,7 @@ function _beginCreate(resourceGroupName, name, parameters, options, callback) { } } // Deserialize Response - if (statusCode === 200) { + if (statusCode === 201) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); @@ -1895,17 +1895,12 @@ function _listNext(nextPageLink, options, callback) { }); } -/** - * @class - * Account - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeStoreAccountManagementClient. - * Initializes a new instance of the Account class. - * @constructor - * - * @param {DataLakeStoreAccountManagementClient} client Reference to the service client. - */ +/** Class representing a Account. */ class Account { + /** + * Create a Account. + * @param {DataLakeStoreAccountManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._create = _create; diff --git a/lib/services/dataLake.Store/lib/account/operations/firewallRules.js b/lib/services/dataLake.Store/lib/account/operations/firewallRules.js index afcb9d6d6c..72dfd83b7d 100644 --- a/lib/services/dataLake.Store/lib/account/operations/firewallRules.js +++ b/lib/services/dataLake.Store/lib/account/operations/firewallRules.js @@ -945,17 +945,12 @@ function _listByAccountNext(nextPageLink, options, callback) { }); } -/** - * @class - * FirewallRules - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeStoreAccountManagementClient. - * Initializes a new instance of the FirewallRules class. - * @constructor - * - * @param {DataLakeStoreAccountManagementClient} client Reference to the service client. - */ +/** Class representing a FirewallRules. */ class FirewallRules { + /** + * Create a FirewallRules. + * @param {DataLakeStoreAccountManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._createOrUpdate = _createOrUpdate; diff --git a/lib/services/dataLake.Store/lib/account/operations/trustedIdProviders.js b/lib/services/dataLake.Store/lib/account/operations/trustedIdProviders.js index 6880f6ebeb..979f13d377 100644 --- a/lib/services/dataLake.Store/lib/account/operations/trustedIdProviders.js +++ b/lib/services/dataLake.Store/lib/account/operations/trustedIdProviders.js @@ -939,17 +939,12 @@ function _listByAccountNext(nextPageLink, options, callback) { }); } -/** - * @class - * TrustedIdProviders - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeStoreAccountManagementClient. - * Initializes a new instance of the TrustedIdProviders class. - * @constructor - * - * @param {DataLakeStoreAccountManagementClient} client Reference to the service client. - */ +/** Class representing a TrustedIdProviders. */ class TrustedIdProviders { + /** + * Create a TrustedIdProviders. + * @param {DataLakeStoreAccountManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; this._createOrUpdate = _createOrUpdate; diff --git a/lib/services/dataLake.Store/lib/filesystem/dataLakeStoreFileSystemManagementClient.d.ts b/lib/services/dataLake.Store/lib/filesystem/dataLakeStoreFileSystemManagementClient.d.ts index f52607e54d..fddcb35dcb 100644 --- a/lib/services/dataLake.Store/lib/filesystem/dataLakeStoreFileSystemManagementClient.d.ts +++ b/lib/services/dataLake.Store/lib/filesystem/dataLakeStoreFileSystemManagementClient.d.ts @@ -8,10 +8,37 @@ * regenerated. */ -import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { ServiceClient, ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; +import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; import * as operations from "./operations"; -declare class DataLakeStoreFileSystemManagementClient { +/** + * DataLakeStoreFileSystemManagementClientOptions for DataLakeStoreFileSystemManagementClient. + */ +declare interface DataLakeStoreFileSystemManagementClientOptions extends ServiceClientOptions { + /** + * @property {string} [apiVersion] - Client Api Version. + */ + apiVersion?: String; + /** + * @property {string} [adlsFileSystemDnsSuffix] - Gets the URI used as the base for all cloud service requests. + */ + adlsFileSystemDnsSuffix?: String; + /** + * @property {string} [acceptLanguage] - Gets or sets the preferred language for the response. + */ + acceptLanguage?: String; + /** + * @property {number} [longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + */ + longRunningOperationRetryTimeout?: Number; + /** + * @property {boolean} [generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ + generateClientRequestId?: Boolean; + } + +declare class DataLakeStoreFileSystemManagementClient extends AzureServiceClient { /** * Initializes a new instance of the DataLakeStoreFileSystemManagementClient class. * @constructor @@ -39,7 +66,7 @@ declare class DataLakeStoreFileSystemManagementClient { * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ - constructor(credentials: ServiceClientCredentials, options?: ServiceClientOptions); + constructor(credentials: ServiceClientCredentials, options?: DataLakeStoreFileSystemManagementClientOptions); credentials: ServiceClientCredentials; diff --git a/lib/services/dataLake.Store/lib/filesystem/dataLakeStoreFileSystemManagementClient.js b/lib/services/dataLake.Store/lib/filesystem/dataLakeStoreFileSystemManagementClient.js index c872e9e7cd..0551735bdf 100644 --- a/lib/services/dataLake.Store/lib/filesystem/dataLakeStoreFileSystemManagementClient.js +++ b/lib/services/dataLake.Store/lib/filesystem/dataLakeStoreFileSystemManagementClient.js @@ -22,34 +22,22 @@ const models = require('./models'); const operations = require('./operations'); -/** - * @class - * Initializes a new instance of the DataLakeStoreFileSystemManagementClient class. - * @constructor - * - * @param {credentials} credentials - Credentials needed for the client to connect to Azure. - * - * @param {object} [options] - The parameter options - * - * @param {Array} [options.filters] - Filters to be added to the request pipeline - * - * @param {object} [options.requestOptions] - Options for the underlying request object - * {@link https://github.com/request/request#requestoptions-callback Options doc} - * - * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * - * @param {string} [options.apiVersion] - Client Api Version. - * - * @param {string} [options.adlsFileSystemDnsSuffix] - Gets the URI used as the base for all cloud service requests. - * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. - * - */ +/** Class representing a DataLakeStoreFileSystemManagementClient. */ class DataLakeStoreFileSystemManagementClient extends ServiceClient { + /** + * Create a DataLakeStoreFileSystemManagementClient. + * @param {credentials} credentials - Credentials needed for the client to connect to Azure. + * @param {object} [options] - The parameter options + * @param {Array} [options.filters] - Filters to be added to the request pipeline + * @param {object} [options.requestOptions] - Options for the underlying request object + * {@link https://github.com/request/request#requestoptions-callback Options doc} + * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy + * @param {string} [options.apiVersion] - Client Api Version. + * @param {string} [options.adlsFileSystemDnsSuffix] - Gets the URI used as the base for all cloud service requests. + * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + */ constructor(credentials, options) { if (credentials === null || credentials === undefined) { throw new Error('\'credentials\' cannot be null.'); diff --git a/lib/services/dataLake.Store/lib/filesystem/models/aclStatus.js b/lib/services/dataLake.Store/lib/filesystem/models/aclStatus.js index 5dac12232a..6d902fbcfe 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/aclStatus.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/aclStatus.js @@ -11,26 +11,21 @@ 'use strict'; /** - * @class - * Initializes a new instance of the AclStatus class. - * @constructor * Data Lake Store file or directory Access Control List information. * - * @member {array} [entries] the list of ACLSpec entries on a file or - * directory. - * - * @member {string} [group] the group owner, an AAD Object ID. - * - * @member {string} [owner] the user owner, an AAD Object ID. - * - * @member {number} [permission] The octal representation of the unnamed user, - * mask and other permissions. - * - * @member {boolean} [stickyBit] the indicator of whether the sticky bit is on - * or off. - * */ class AclStatus { + /** + * Create a AclStatus. + * @member {array} [entries] the list of ACLSpec entries on a file or + * directory. + * @member {string} [group] the group owner, an AAD Object ID. + * @member {string} [owner] the user owner, an AAD Object ID. + * @member {number} [permission] The octal representation of the unnamed + * user, mask and other permissions. + * @member {boolean} [stickyBit] the indicator of whether the sticky bit is + * on or off. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/aclStatusResult.js b/lib/services/dataLake.Store/lib/filesystem/models/aclStatusResult.js index f8dae60fa6..bcdea0159c 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/aclStatusResult.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/aclStatusResult.js @@ -13,29 +13,23 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AclStatusResult class. - * @constructor * Data Lake Store file or directory Access Control List information. * - * @member {object} [aclStatus] the AclStatus object for a given file or - * directory. - * - * @member {array} [aclStatus.entries] the list of ACLSpec entries on a file or - * directory. - * - * @member {string} [aclStatus.group] the group owner, an AAD Object ID. - * - * @member {string} [aclStatus.owner] the user owner, an AAD Object ID. - * - * @member {number} [aclStatus.permission] The octal representation of the - * unnamed user, mask and other permissions. - * - * @member {boolean} [aclStatus.stickyBit] the indicator of whether the sticky - * bit is on or off. - * */ class AclStatusResult { + /** + * Create a AclStatusResult. + * @member {object} [aclStatus] the AclStatus object for a given file or + * directory. + * @member {array} [aclStatus.entries] the list of ACLSpec entries on a file + * or directory. + * @member {string} [aclStatus.group] the group owner, an AAD Object ID. + * @member {string} [aclStatus.owner] the user owner, an AAD Object ID. + * @member {number} [aclStatus.permission] The octal representation of the + * unnamed user, mask and other permissions. + * @member {boolean} [aclStatus.stickyBit] the indicator of whether the + * sticky bit is on or off. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsAccessControlException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsAccessControlException.js index 566db86cea..2cad613d2b 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsAccessControlException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsAccessControlException.js @@ -13,15 +13,16 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsAccessControlException class. - * @constructor * A WebHDFS exception thrown indicating that access is denied due to * insufficient permissions. Thrown when a 403 error response code is returned * (forbidden). * + * @extends models['AdlsRemoteException'] */ class AdlsAccessControlException extends models['AdlsRemoteException'] { + /** + * Create a AdlsAccessControlException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsBadOffsetException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsBadOffsetException.js index 4e98d393ff..3e31de0f64 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsBadOffsetException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsBadOffsetException.js @@ -13,15 +13,16 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsBadOffsetException class. - * @constructor * A WebHDFS exception thrown indicating the append or read is from a bad * offset. Thrown when a 400 error response code is returned for append and * open operations (Bad request). * + * @extends models['AdlsRemoteException'] */ class AdlsBadOffsetException extends models['AdlsRemoteException'] { + /** + * Create a AdlsBadOffsetException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsError.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsError.js index b3f271dea5..5acc259073 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsError.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsError.js @@ -13,25 +13,22 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsError class. - * @constructor * Data Lake Store filesystem error containing a specific WebHDFS exception. * - * @member {object} [remoteException] the object representing the actual - * WebHDFS exception being returned. - * - * @member {string} [remoteException.javaClassName] the full class package name - * for the exception thrown, such as 'java.lang.IllegalArgumentException'. - * - * @member {string} [remoteException.message] the message associated with the - * exception that was thrown, such as 'Invalid value for webhdfs parameter - * "permission":...'. - * - * @member {string} [remoteException.exception] Polymorphic Discriminator - * */ class AdlsError { + /** + * Create a AdlsError. + * @member {object} [remoteException] the object representing the actual + * WebHDFS exception being returned. + * @member {string} [remoteException.javaClassName] the full class package + * name for the exception thrown, such as + * 'java.lang.IllegalArgumentException'. + * @member {string} [remoteException.message] the message associated with the + * exception that was thrown, such as 'Invalid value for webhdfs parameter + * "permission":...'. + * @member {string} [remoteException.exception] Polymorphic Discriminator + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsFileAlreadyExistsException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsFileAlreadyExistsException.js index c784234914..afa345170a 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsFileAlreadyExistsException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsFileAlreadyExistsException.js @@ -13,14 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsFileAlreadyExistsException class. - * @constructor * A WebHDFS exception thrown indicating the file or folder already exists. * Thrown when a 403 error response code is returned (forbidden). * + * @extends models['AdlsRemoteException'] */ class AdlsFileAlreadyExistsException extends models['AdlsRemoteException'] { + /** + * Create a AdlsFileAlreadyExistsException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsFileNotFoundException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsFileNotFoundException.js index addf270c12..d8c925970e 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsFileNotFoundException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsFileNotFoundException.js @@ -13,14 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsFileNotFoundException class. - * @constructor * A WebHDFS exception thrown indicating the file or folder could not be found. * Thrown when a 404 error response code is returned (not found). * + * @extends models['AdlsRemoteException'] */ class AdlsFileNotFoundException extends models['AdlsRemoteException'] { + /** + * Create a AdlsFileNotFoundException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsIOException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsIOException.js index b64de681e9..fe2d2eb379 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsIOException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsIOException.js @@ -13,14 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsIOException class. - * @constructor * A WebHDFS exception thrown indicating there was an IO (read or write) error. * Thrown when a 403 error response code is returned (forbidden). * + * @extends models['AdlsRemoteException'] */ class AdlsIOException extends models['AdlsRemoteException'] { + /** + * Create a AdlsIOException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsIllegalArgumentException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsIllegalArgumentException.js index 2b4f951873..0ee8fd1295 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsIllegalArgumentException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsIllegalArgumentException.js @@ -13,14 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsIllegalArgumentException class. - * @constructor * A WebHDFS exception thrown indicating that one more arguments is incorrect. * Thrown when a 400 error response code is returned (bad request). * + * @extends models['AdlsRemoteException'] */ class AdlsIllegalArgumentException extends models['AdlsRemoteException'] { + /** + * Create a AdlsIllegalArgumentException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsRemoteException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsRemoteException.js index ffecffde45..f40dac889a 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsRemoteException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsRemoteException.js @@ -11,22 +11,20 @@ 'use strict'; /** - * @class - * Initializes a new instance of the AdlsRemoteException class. - * @constructor * Data Lake Store filesystem exception based on the WebHDFS definition for * RemoteExceptions. This is a WebHDFS 'catch all' exception * - * @member {string} [javaClassName] the full class package name for the - * exception thrown, such as 'java.lang.IllegalArgumentException'. - * - * @member {string} [message] the message associated with the exception that - * was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. - * - * @member {string} exception Polymorphic Discriminator - * */ class AdlsRemoteException { + /** + * Create a AdlsRemoteException. + * @member {string} [javaClassName] the full class package name for the + * exception thrown, such as 'java.lang.IllegalArgumentException'. + * @member {string} [message] the message associated with the exception that + * was thrown, such as 'Invalid value for webhdfs parameter + * "permission":...'. + * @member {string} exception Polymorphic Discriminator + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsRuntimeException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsRuntimeException.js index 61dad094a1..ffc414c763 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsRuntimeException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsRuntimeException.js @@ -13,15 +13,16 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsRuntimeException class. - * @constructor * A WebHDFS exception thrown when an unexpected error occurs during an * operation. Thrown when a 500 error response code is returned (Internal * server error). * + * @extends models['AdlsRemoteException'] */ class AdlsRuntimeException extends models['AdlsRemoteException'] { + /** + * Create a AdlsRuntimeException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsSecurityException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsSecurityException.js index 434f6535a1..71084c3e39 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsSecurityException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsSecurityException.js @@ -13,14 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsSecurityException class. - * @constructor * A WebHDFS exception thrown indicating that access is denied. Thrown when a * 401 error response code is returned (Unauthorized). * + * @extends models['AdlsRemoteException'] */ class AdlsSecurityException extends models['AdlsRemoteException'] { + /** + * Create a AdlsSecurityException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsThrottledException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsThrottledException.js index e60e87754e..9885773656 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsThrottledException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsThrottledException.js @@ -13,15 +13,16 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsThrottledException class. - * @constructor * A WebHDFS exception thrown indicating that the request is being throttled. * Reducing the number of requests or request size helps to mitigate this * error. * + * @extends models['AdlsRemoteException'] */ class AdlsThrottledException extends models['AdlsRemoteException'] { + /** + * Create a AdlsThrottledException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/adlsUnsupportedOperationException.js b/lib/services/dataLake.Store/lib/filesystem/models/adlsUnsupportedOperationException.js index 97ca6ec0eb..73fd2f6575 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/adlsUnsupportedOperationException.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/adlsUnsupportedOperationException.js @@ -13,14 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the AdlsUnsupportedOperationException class. - * @constructor * A WebHDFS exception thrown indicating that the requested operation is not * supported. Thrown when a 400 error response code is returned (bad request). * + * @extends models['AdlsRemoteException'] */ class AdlsUnsupportedOperationException extends models['AdlsRemoteException'] { + /** + * Create a AdlsUnsupportedOperationException. + */ constructor() { super(); } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/contentSummary.js b/lib/services/dataLake.Store/lib/filesystem/models/contentSummary.js index 1ffda1690c..d1ef650c0e 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/contentSummary.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/contentSummary.js @@ -11,21 +11,17 @@ 'use strict'; /** - * @class - * Initializes a new instance of the ContentSummary class. - * @constructor * Data Lake Store content summary information * - * @member {number} [directoryCount] the number of directories. - * - * @member {number} [fileCount] the number of files. - * - * @member {number} [length] the number of bytes used by the content. - * - * @member {number} [spaceConsumed] the disk space consumed by the content. - * */ class ContentSummary { + /** + * Create a ContentSummary. + * @member {number} [directoryCount] the number of directories. + * @member {number} [fileCount] the number of files. + * @member {number} [length] the number of bytes used by the content. + * @member {number} [spaceConsumed] the disk space consumed by the content. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/contentSummaryResult.js b/lib/services/dataLake.Store/lib/filesystem/models/contentSummaryResult.js index d2f6e56db9..3196c10645 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/contentSummaryResult.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/contentSummaryResult.js @@ -13,25 +13,22 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the ContentSummaryResult class. - * @constructor * Data Lake Store filesystem content summary information response. * - * @member {object} [contentSummary] the content summary for the specified path - * - * @member {number} [contentSummary.directoryCount] the number of directories. - * - * @member {number} [contentSummary.fileCount] the number of files. - * - * @member {number} [contentSummary.length] the number of bytes used by the - * content. - * - * @member {number} [contentSummary.spaceConsumed] the disk space consumed by - * the content. - * */ class ContentSummaryResult { + /** + * Create a ContentSummaryResult. + * @member {object} [contentSummary] the content summary for the specified + * path + * @member {number} [contentSummary.directoryCount] the number of + * directories. + * @member {number} [contentSummary.fileCount] the number of files. + * @member {number} [contentSummary.length] the number of bytes used by the + * content. + * @member {number} [contentSummary.spaceConsumed] the disk space consumed by + * the content. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/fileOperationResult.js b/lib/services/dataLake.Store/lib/filesystem/models/fileOperationResult.js index 2fcfab3aa9..4e661bd57a 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/fileOperationResult.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/fileOperationResult.js @@ -11,15 +11,15 @@ 'use strict'; /** - * @class - * Initializes a new instance of the FileOperationResult class. - * @constructor * The result of the request or operation. * - * @member {boolean} [operationResult] the result of the operation or request. - * */ class FileOperationResult { + /** + * Create a FileOperationResult. + * @member {boolean} [operationResult] the result of the operation or + * request. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/fileStatusProperties.js b/lib/services/dataLake.Store/lib/filesystem/models/fileStatusProperties.js index c123399fc4..47abe76bbe 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/fileStatusProperties.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/fileStatusProperties.js @@ -11,41 +11,30 @@ 'use strict'; /** - * @class - * Initializes a new instance of the FileStatusProperties class. - * @constructor * Data Lake Store file or directory information. * - * @member {number} [accessTime] the last access time as ticks since the epoch. - * - * @member {number} [blockSize] the block size for the file. - * - * @member {number} [childrenNum] the number of children in the directory. - * - * @member {number} [expirationTime] Gets the expiration time, if any, as ticks - * since the epoch. If the value is 0 or DateTime.MaxValue there is no - * expiration. - * - * @member {string} [group] the group owner. - * - * @member {number} [length] the number of bytes in a file. - * - * @member {number} [modificationTime] the modification time as ticks since the - * epoch. - * - * @member {string} [owner] the user who is the owner. - * - * @member {string} [pathSuffix] the path suffix. - * - * @member {string} [permission] the permission represented as an string. - * - * @member {string} [type] the type of the path object. Possible values - * include: 'FILE', 'DIRECTORY' - * - * @member {boolean} [aclBit] flag to indicate if extended acls are enabled - * */ class FileStatusProperties { + /** + * Create a FileStatusProperties. + * @member {number} [accessTime] the last access time as ticks since the + * epoch. + * @member {number} [blockSize] the block size for the file. + * @member {number} [childrenNum] the number of children in the directory. + * @member {number} [expirationTime] Gets the expiration time, if any, as + * ticks since the epoch. If the value is 0 or DateTime.MaxValue there is no + * expiration. + * @member {string} [group] the group owner. + * @member {number} [length] the number of bytes in a file. + * @member {number} [modificationTime] the modification time as ticks since + * the epoch. + * @member {string} [owner] the user who is the owner. + * @member {string} [pathSuffix] the path suffix. + * @member {string} [permission] the permission represented as an string. + * @member {string} [type] the type of the path object. Possible values + * include: 'FILE', 'DIRECTORY' + * @member {boolean} [aclBit] flag to indicate if extended acls are enabled + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/fileStatusResult.js b/lib/services/dataLake.Store/lib/filesystem/models/fileStatusResult.js index 6d19ee7a0f..01670a42a2 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/fileStatusResult.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/fileStatusResult.js @@ -13,48 +13,35 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the FileStatusResult class. - * @constructor * Data Lake Store filesystem file status information response. * - * @member {object} [fileStatus] the file status object associated with the - * specified path. - * - * @member {number} [fileStatus.accessTime] the last access time as ticks since - * the epoch. - * - * @member {number} [fileStatus.blockSize] the block size for the file. - * - * @member {number} [fileStatus.childrenNum] the number of children in the - * directory. - * - * @member {number} [fileStatus.expirationTime] Gets the expiration time, if - * any, as ticks since the epoch. If the value is 0 or DateTime.MaxValue there - * is no expiration. - * - * @member {string} [fileStatus.group] the group owner. - * - * @member {number} [fileStatus.length] the number of bytes in a file. - * - * @member {number} [fileStatus.modificationTime] the modification time as - * ticks since the epoch. - * - * @member {string} [fileStatus.owner] the user who is the owner. - * - * @member {string} [fileStatus.pathSuffix] the path suffix. - * - * @member {string} [fileStatus.permission] the permission represented as an - * string. - * - * @member {string} [fileStatus.type] the type of the path object. Possible - * values include: 'FILE', 'DIRECTORY' - * - * @member {boolean} [fileStatus.aclBit] flag to indicate if extended acls are - * enabled - * */ class FileStatusResult { + /** + * Create a FileStatusResult. + * @member {object} [fileStatus] the file status object associated with the + * specified path. + * @member {number} [fileStatus.accessTime] the last access time as ticks + * since the epoch. + * @member {number} [fileStatus.blockSize] the block size for the file. + * @member {number} [fileStatus.childrenNum] the number of children in the + * directory. + * @member {number} [fileStatus.expirationTime] Gets the expiration time, if + * any, as ticks since the epoch. If the value is 0 or DateTime.MaxValue + * there is no expiration. + * @member {string} [fileStatus.group] the group owner. + * @member {number} [fileStatus.length] the number of bytes in a file. + * @member {number} [fileStatus.modificationTime] the modification time as + * ticks since the epoch. + * @member {string} [fileStatus.owner] the user who is the owner. + * @member {string} [fileStatus.pathSuffix] the path suffix. + * @member {string} [fileStatus.permission] the permission represented as an + * string. + * @member {string} [fileStatus.type] the type of the path object. Possible + * values include: 'FILE', 'DIRECTORY' + * @member {boolean} [fileStatus.aclBit] flag to indicate if extended acls + * are enabled + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/fileStatuses.js b/lib/services/dataLake.Store/lib/filesystem/models/fileStatuses.js index 7860323aaf..01e0d30d46 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/fileStatuses.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/fileStatuses.js @@ -13,16 +13,15 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the FileStatuses class. - * @constructor * Data Lake Store file status list information. * - * @member {array} [fileStatus] the object containing the list of properties of - * the files. - * */ class FileStatuses { + /** + * Create a FileStatuses. + * @member {array} [fileStatus] the object containing the list of properties + * of the files. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/fileStatusesResult.js b/lib/services/dataLake.Store/lib/filesystem/models/fileStatusesResult.js index f4253ba731..df18600a91 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/fileStatusesResult.js +++ b/lib/services/dataLake.Store/lib/filesystem/models/fileStatusesResult.js @@ -13,19 +13,17 @@ const models = require('./index'); /** - * @class - * Initializes a new instance of the FileStatusesResult class. - * @constructor * Data Lake Store filesystem file status list information response. * - * @member {object} [fileStatuses] the object representing the list of file - * statuses. - * - * @member {array} [fileStatuses.fileStatus] the object containing the list of - * properties of the files. - * */ class FileStatusesResult { + /** + * Create a FileStatusesResult. + * @member {object} [fileStatuses] the object representing the list of file + * statuses. + * @member {array} [fileStatuses.fileStatus] the object containing the list + * of properties of the files. + */ constructor() { } diff --git a/lib/services/dataLake.Store/lib/filesystem/models/index.d.ts b/lib/services/dataLake.Store/lib/filesystem/models/index.d.ts index 803b568b8d..8e648f2ce1 100644 --- a/lib/services/dataLake.Store/lib/filesystem/models/index.d.ts +++ b/lib/services/dataLake.Store/lib/filesystem/models/index.d.ts @@ -10,6 +10,7 @@ import { BaseResource } from 'ms-rest-azure'; import { CloudError } from 'ms-rest-azure'; +import * as moment from 'moment'; export { BaseResource } from 'ms-rest-azure'; export { CloudError } from 'ms-rest-azure'; @@ -22,7 +23,6 @@ export { CloudError } from 'ms-rest-azure'; * The result of the request or operation. * * @member {boolean} [operationResult] the result of the operation or request. - * */ export interface FileOperationResult { readonly operationResult?: boolean; @@ -36,17 +36,12 @@ export interface FileOperationResult { * * @member {array} [entries] the list of ACLSpec entries on a file or * directory. - * * @member {string} [group] the group owner, an AAD Object ID. - * * @member {string} [owner] the user owner, an AAD Object ID. - * * @member {number} [permission] The octal representation of the unnamed user, * mask and other permissions. - * * @member {boolean} [stickyBit] the indicator of whether the sticky bit is on * or off. - * */ export interface AclStatus { entries?: string[]; @@ -64,20 +59,14 @@ export interface AclStatus { * * @member {object} [aclStatus] the AclStatus object for a given file or * directory. - * * @member {array} [aclStatus.entries] the list of ACLSpec entries on a file or * directory. - * * @member {string} [aclStatus.group] the group owner, an AAD Object ID. - * * @member {string} [aclStatus.owner] the user owner, an AAD Object ID. - * * @member {number} [aclStatus.permission] The octal representation of the * unnamed user, mask and other permissions. - * * @member {boolean} [aclStatus.stickyBit] the indicator of whether the sticky * bit is on or off. - * */ export interface AclStatusResult { aclStatus?: AclStatus; @@ -90,13 +79,9 @@ export interface AclStatusResult { * Data Lake Store content summary information * * @member {number} [directoryCount] the number of directories. - * * @member {number} [fileCount] the number of files. - * * @member {number} [length] the number of bytes used by the content. - * * @member {number} [spaceConsumed] the disk space consumed by the content. - * */ export interface ContentSummary { readonly directoryCount?: number; @@ -112,17 +97,12 @@ export interface ContentSummary { * Data Lake Store filesystem content summary information response. * * @member {object} [contentSummary] the content summary for the specified path - * * @member {number} [contentSummary.directoryCount] the number of directories. - * * @member {number} [contentSummary.fileCount] the number of files. - * * @member {number} [contentSummary.length] the number of bytes used by the * content. - * * @member {number} [contentSummary.spaceConsumed] the disk space consumed by * the content. - * */ export interface ContentSummaryResult { readonly contentSummary?: ContentSummary; @@ -135,33 +115,21 @@ export interface ContentSummaryResult { * Data Lake Store file or directory information. * * @member {number} [accessTime] the last access time as ticks since the epoch. - * * @member {number} [blockSize] the block size for the file. - * * @member {number} [childrenNum] the number of children in the directory. - * * @member {number} [expirationTime] Gets the expiration time, if any, as ticks * since the epoch. If the value is 0 or DateTime.MaxValue there is no * expiration. - * * @member {string} [group] the group owner. - * * @member {number} [length] the number of bytes in a file. - * * @member {number} [modificationTime] the modification time as ticks since the * epoch. - * * @member {string} [owner] the user who is the owner. - * * @member {string} [pathSuffix] the path suffix. - * * @member {string} [permission] the permission represented as an string. - * * @member {string} [type] the type of the path object. Possible values * include: 'FILE', 'DIRECTORY' - * * @member {boolean} [aclBit] flag to indicate if extended acls are enabled - * */ export interface FileStatusProperties { readonly accessTime?: number; @@ -186,7 +154,6 @@ export interface FileStatusProperties { * * @member {array} [fileStatus] the object containing the list of properties of * the files. - * */ export interface FileStatuses { readonly fileStatus?: FileStatusProperties[]; @@ -200,10 +167,8 @@ export interface FileStatuses { * * @member {object} [fileStatuses] the object representing the list of file * statuses. - * * @member {array} [fileStatuses.fileStatus] the object containing the list of * properties of the files. - * */ export interface FileStatusesResult { readonly fileStatuses?: FileStatuses; @@ -217,39 +182,26 @@ export interface FileStatusesResult { * * @member {object} [fileStatus] the file status object associated with the * specified path. - * * @member {number} [fileStatus.accessTime] the last access time as ticks since * the epoch. - * * @member {number} [fileStatus.blockSize] the block size for the file. - * * @member {number} [fileStatus.childrenNum] the number of children in the * directory. - * * @member {number} [fileStatus.expirationTime] Gets the expiration time, if * any, as ticks since the epoch. If the value is 0 or DateTime.MaxValue there * is no expiration. - * * @member {string} [fileStatus.group] the group owner. - * * @member {number} [fileStatus.length] the number of bytes in a file. - * * @member {number} [fileStatus.modificationTime] the modification time as * ticks since the epoch. - * * @member {string} [fileStatus.owner] the user who is the owner. - * * @member {string} [fileStatus.pathSuffix] the path suffix. - * * @member {string} [fileStatus.permission] the permission represented as an * string. - * * @member {string} [fileStatus.type] the type of the path object. Possible * values include: 'FILE', 'DIRECTORY' - * * @member {boolean} [fileStatus.aclBit] flag to indicate if extended acls are * enabled - * */ export interface FileStatusResult { readonly fileStatus?: FileStatusProperties; @@ -264,12 +216,9 @@ export interface FileStatusResult { * * @member {string} [javaClassName] the full class package name for the * exception thrown, such as 'java.lang.IllegalArgumentException'. - * * @member {string} [message] the message associated with the exception that * was thrown, such as 'Invalid value for webhdfs parameter "permission":...'. - * * @member {string} exception Polymorphic Discriminator - * */ export interface AdlsRemoteException { readonly javaClassName?: string; @@ -399,16 +348,12 @@ export interface AdlsThrottledException extends AdlsRemoteException { * * @member {object} [remoteException] the object representing the actual * WebHDFS exception being returned. - * * @member {string} [remoteException.javaClassName] the full class package name * for the exception thrown, such as 'java.lang.IllegalArgumentException'. - * * @member {string} [remoteException.message] the message associated with the * exception that was thrown, such as 'Invalid value for webhdfs parameter * "permission":...'. - * * @member {string} [remoteException.exception] Polymorphic Discriminator - * */ export interface AdlsError { readonly remoteException?: AdlsRemoteException; diff --git a/lib/services/dataLake.Store/lib/filesystem/operations/fileSystem.js b/lib/services/dataLake.Store/lib/filesystem/operations/fileSystem.js index 31f1efa0ed..8950cfc9a7 100644 --- a/lib/services/dataLake.Store/lib/filesystem/operations/fileSystem.js +++ b/lib/services/dataLake.Store/lib/filesystem/operations/fileSystem.js @@ -15,39 +15,28 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Appends to the specified file, optionally first creating the file if it does - * not yet exist. This method supports multiple concurrent appends to the file. - * NOTE: The target must not contain data added by Create or normal (serial) - * Append. ConcurrentAppend and Append cannot be used interchangeably; once a - * target file has been modified using either of these append options, the - * other append option cannot be used on the target file. ConcurrentAppend does - * not guarantee order and can result in duplicated data landing in the target - * file. + * Sets or removes the expiration time on the specified file. This operation + * can only be executed against files. Folders are not supported. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file to which to append using concurrent append. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file on which to set or remove the expiration time. * - * @param {object} streamContents The file contents to include when appending - * to the file. + * @param {string} expiryOption Indicates the type of expiration to use for the + * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is + * an integer in milliseconds representing the expiration date relative to when + * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an + * integer in milliseconds representing the expiration date relative to file + * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix + * timestamp relative to 1/1/1970 00:00:00. Possible values include: + * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' * * @param {object} [options] Optional Parameters. * - * @param {string} [options.appendMode] Indicates the concurrent append call - * should create the file if it doesn't exist or just open the existing file - * for append. Possible values include: 'autocreate' - * - * @param {string} [options.syncFlag] Optionally indicates what to do after - * completion of the concurrent append. DATA indicates that more data will be - * sent immediately by the client, the file handle should remain open/locked, - * and file metadata (including file length, last modified time) should NOT get - * updated. METADATA indicates that more data will be sent immediately by the - * client, the file handle should remain open/locked, and file metadata should - * get updated. CLOSE indicates that the client is done sending data, the file - * handle should be closed/unlocked, and file metadata should get updated. - * Possible values include: 'DATA', 'METADATA', 'CLOSE' + * @param {number} [options.expireTime] The time that the file will expire, + * corresponding to the ExpiryOption that was set. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -64,7 +53,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _concurrentAppend(accountName, filePath, streamContents, options, callback) { +function _setFileExpiry(accountName, path, expiryOption, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -74,10 +63,8 @@ function _concurrentAppend(accountName, filePath, streamContents, options, callb if (!callback) { throw new Error('callback cannot be null.'); } - let appendMode = (options && options.appendMode !== undefined) ? options.appendMode : undefined; - let syncFlag = (options && options.syncFlag !== undefined) ? options.syncFlag : 'DATA'; - let op = 'CONCURRENTAPPEND'; - let transferEncoding = 'chunked'; + let expireTime = (options && options.expireTime !== undefined) ? options.expireTime : undefined; + let op = 'SETEXPIRY'; // Validate try { if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { @@ -86,23 +73,19 @@ function _concurrentAppend(accountName, filePath, streamContents, options, callb if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (filePath === null || filePath === undefined || typeof filePath.valueOf() !== 'string') { - throw new Error('filePath cannot be null or undefined and it must be of type string.'); - } - if (streamContents === null || streamContents === undefined) { - throw new Error('streamContents cannot be null or undefined and it must be of type object.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } - if (appendMode) { - let allowedValues = [ 'autocreate' ]; - if (!allowedValues.some( function(item) { return item === appendMode; })) { - throw new Error(appendMode + ' is not a valid value. The valid values are: ' + allowedValues); + if (expiryOption) { + let allowedValues = [ 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' ]; + if (!allowedValues.some( function(item) { return item === expiryOption; })) { + throw new Error(expiryOption + ' is not a valid value. The valid values are: ' + allowedValues); } + } else { + throw new Error('expiryOption cannot be null or undefined.'); } - if (syncFlag) { - let allowedValues1 = [ 'DATA', 'METADATA', 'CLOSE' ]; - if (!allowedValues1.some( function(item) { return item === syncFlag; })) { - throw new Error(syncFlag + ' is not a valid value. The valid values are: ' + allowedValues1); - } + if (expireTime !== null && expireTime !== undefined && typeof expireTime !== 'number') { + throw new Error('expireTime must be of type number.'); } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); @@ -116,18 +99,16 @@ function _concurrentAppend(accountName, filePath, streamContents, options, callb // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'WebHdfsExt/{filePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'WebHdfsExt/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{filePath}', encodeURIComponent(filePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; - if (appendMode !== null && appendMode !== undefined) { - queryParameters.push('appendMode=' + encodeURIComponent(appendMode)); + queryParameters.push('expiryOption=' + encodeURIComponent(expiryOption)); + if (expireTime !== null && expireTime !== undefined) { + queryParameters.push('expireTime=' + encodeURIComponent(expireTime.toString())); } queryParameters.push('op=' + encodeURIComponent(op)); - if (syncFlag !== null && syncFlag !== undefined) { - queryParameters.push('syncFlag=' + encodeURIComponent(syncFlag)); - } queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -135,16 +116,13 @@ function _concurrentAppend(accountName, filePath, streamContents, options, callb // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'POST'; + httpRequest.method = 'PUT'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } - if (transferEncoding !== undefined && transferEncoding !== null) { - httpRequest.headers['Transfer-Encoding'] = transferEncoding; - } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } @@ -155,10 +133,8 @@ function _concurrentAppend(accountName, filePath, streamContents, options, callb } } } - httpRequest.headers['Content-Type'] = 'application/octet-stream'; - // Serialize Request - let requestContent = streamContents; - httpRequest.body = requestContent; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -200,28 +176,39 @@ function _concurrentAppend(accountName, filePath, streamContents, options, callb } /** - * Sets or removes the expiration time on the specified file. This operation - * can only be executed against files. Folders are not supported. + * Appends to the specified file, optionally first creating the file if it does + * not yet exist. This method supports multiple concurrent appends to the file. + * NOTE: The target must not contain data added by Create or normal (serial) + * Append. ConcurrentAppend and Append cannot be used interchangeably; once a + * target file has been modified using either of these append options, the + * other append option cannot be used on the target file. ConcurrentAppend does + * not guarantee order and can result in duplicated data landing in the target + * file. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file on which to set or remove the expiration time. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append using concurrent append. * - * @param {string} expiryOption Indicates the type of expiration to use for the - * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is - * an integer in milliseconds representing the expiration date relative to when - * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an - * integer in milliseconds representing the expiration date relative to file - * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix - * timestamp relative to 1/1/1970 00:00:00. Possible values include: - * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' + * @param {object} streamContents The file contents to include when appending + * to the file. * * @param {object} [options] Optional Parameters. * - * @param {number} [options.expireTime] The time that the file will expire, - * corresponding to the ExpiryOption that was set. + * @param {string} [options.appendMode] Indicates the concurrent append call + * should create the file if it doesn't exist or just open the existing file + * for append. Possible values include: 'autocreate' + * + * @param {string} [options.syncFlag] Optionally indicates what to do after + * completion of the concurrent append. DATA indicates that more data will be + * sent immediately by the client, the file handle should remain open/locked, + * and file metadata (including file length, last modified time) should NOT get + * updated. METADATA indicates that more data will be sent immediately by the + * client, the file handle should remain open/locked, and file metadata should + * get updated. CLOSE indicates that the client is done sending data, the file + * handle should be closed/unlocked, and file metadata should get updated. + * Possible values include: 'DATA', 'METADATA', 'CLOSE' * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -238,7 +225,7 @@ function _concurrentAppend(accountName, filePath, streamContents, options, callb * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _setFileExpiry(accountName, filePath, expiryOption, options, callback) { +function _concurrentAppend(accountName, path, streamContents, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -248,8 +235,10 @@ function _setFileExpiry(accountName, filePath, expiryOption, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let expireTime = (options && options.expireTime !== undefined) ? options.expireTime : undefined; - let op = 'SETEXPIRY'; + let appendMode = (options && options.appendMode !== undefined) ? options.appendMode : undefined; + let syncFlag = (options && options.syncFlag !== undefined) ? options.syncFlag : 'DATA'; + let op = 'CONCURRENTAPPEND'; + let transferEncoding = 'chunked'; // Validate try { if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { @@ -258,19 +247,23 @@ function _setFileExpiry(accountName, filePath, expiryOption, options, callback) if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (filePath === null || filePath === undefined || typeof filePath.valueOf() !== 'string') { - throw new Error('filePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } - if (expiryOption) { - let allowedValues = [ 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' ]; - if (!allowedValues.some( function(item) { return item === expiryOption; })) { - throw new Error(expiryOption + ' is not a valid value. The valid values are: ' + allowedValues); + if (streamContents === null || streamContents === undefined) { + throw new Error('streamContents cannot be null or undefined and it must be of type object.'); + } + if (appendMode) { + let allowedValues = [ 'autocreate' ]; + if (!allowedValues.some( function(item) { return item === appendMode; })) { + throw new Error(appendMode + ' is not a valid value. The valid values are: ' + allowedValues); } - } else { - throw new Error('expiryOption cannot be null or undefined.'); } - if (expireTime !== null && expireTime !== undefined && typeof expireTime !== 'number') { - throw new Error('expireTime must be of type number.'); + if (syncFlag) { + let allowedValues1 = [ 'DATA', 'METADATA', 'CLOSE' ]; + if (!allowedValues1.some( function(item) { return item === syncFlag; })) { + throw new Error(syncFlag + ' is not a valid value. The valid values are: ' + allowedValues1); + } } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); @@ -284,16 +277,18 @@ function _setFileExpiry(accountName, filePath, expiryOption, options, callback) // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'WebHdfsExt/{filePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'WebHdfsExt/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{filePath}', encodeURIComponent(filePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; - queryParameters.push('expiryOption=' + encodeURIComponent(expiryOption)); - if (expireTime !== null && expireTime !== undefined) { - queryParameters.push('expireTime=' + encodeURIComponent(expireTime.toString())); + if (appendMode !== null && appendMode !== undefined) { + queryParameters.push('appendMode=' + encodeURIComponent(appendMode)); } queryParameters.push('op=' + encodeURIComponent(op)); + if (syncFlag !== null && syncFlag !== undefined) { + queryParameters.push('syncFlag=' + encodeURIComponent(syncFlag)); + } queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -301,13 +296,16 @@ function _setFileExpiry(accountName, filePath, expiryOption, options, callback) // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'PUT'; + httpRequest.method = 'POST'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } + if (transferEncoding !== undefined && transferEncoding !== null) { + httpRequest.headers['Transfer-Encoding'] = transferEncoding; + } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } @@ -318,8 +316,10 @@ function _setFileExpiry(accountName, filePath, expiryOption, options, callback) } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - httpRequest.body = null; + httpRequest.headers['Content-Type'] = 'application/octet-stream'; + // Serialize Request + let requestContent = streamContents; + httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { @@ -666,8 +666,8 @@ function _mkdirs(accountName, path, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} destinationPath The Data Lake Store path (starting with '/') - * of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {array} sources A list of comma separated Data Lake Store paths * (starting with '/') of the files to concatenate, in the order in which they @@ -690,7 +690,7 @@ function _mkdirs(accountName, path, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _concat(accountName, destinationPath, sources, options, callback) { +function _concat(accountName, path, sources, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -709,8 +709,8 @@ function _concat(accountName, destinationPath, sources, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (destinationPath === null || destinationPath === undefined || typeof destinationPath.valueOf() !== 'string') { - throw new Error('destinationPath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (!Array.isArray(sources)) { throw new Error('sources cannot be null or undefined and it must be of type array.'); @@ -732,10 +732,10 @@ function _concat(accountName, destinationPath, sources, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{destinationPath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{destinationPath}', encodeURIComponent(destinationPath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; queryParameters.push('sources=' + encodeURIComponent(sources.join(','))); queryParameters.push('op=' + encodeURIComponent(op)); @@ -814,8 +814,8 @@ function _concat(accountName, destinationPath, sources, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} msConcatDestinationPath The Data Lake Store path (starting - * with '/') of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {object} streamContents A list of Data Lake Store paths (starting * with '/') of the source files. Must be a comma-separated path list in the @@ -846,7 +846,7 @@ function _concat(accountName, destinationPath, sources, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _msConcat(accountName, msConcatDestinationPath, streamContents, options, callback) { +function _msConcat(accountName, path, streamContents, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -866,8 +866,8 @@ function _msConcat(accountName, msConcatDestinationPath, streamContents, options if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (msConcatDestinationPath === null || msConcatDestinationPath === undefined || typeof msConcatDestinationPath.valueOf() !== 'string') { - throw new Error('msConcatDestinationPath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (deleteSourceDirectory !== null && deleteSourceDirectory !== undefined && typeof deleteSourceDirectory !== 'boolean') { throw new Error('deleteSourceDirectory must be of type boolean.'); @@ -887,10 +887,10 @@ function _msConcat(accountName, msConcatDestinationPath, streamContents, options // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{msConcatDestinationPath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{msConcatDestinationPath}', encodeURIComponent(msConcatDestinationPath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; if (deleteSourceDirectory !== null && deleteSourceDirectory !== undefined) { queryParameters.push('deleteSourceDirectory=' + encodeURIComponent(deleteSourceDirectory.toString())); @@ -971,8 +971,8 @@ function _msConcat(accountName, msConcatDestinationPath, streamContents, options * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} listFilePath The Data Lake Store path (starting with '/') of - * the directory to list. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory to list. * * @param {object} [options] Optional Parameters. * @@ -1009,7 +1009,7 @@ function _msConcat(accountName, msConcatDestinationPath, streamContents, options * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listFileStatus(accountName, listFilePath, options, callback) { +function _listFileStatus(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1032,8 +1032,8 @@ function _listFileStatus(accountName, listFilePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (listFilePath === null || listFilePath === undefined || typeof listFilePath.valueOf() !== 'string') { - throw new Error('listFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (listSize !== null && listSize !== undefined && typeof listSize !== 'number') { throw new Error('listSize must be of type number.'); @@ -1059,10 +1059,10 @@ function _listFileStatus(accountName, listFilePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{listFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{listFilePath}', encodeURIComponent(listFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; if (listSize !== null && listSize !== undefined) { queryParameters.push('listSize=' + encodeURIComponent(listSize.toString())); @@ -1166,8 +1166,8 @@ function _listFileStatus(accountName, listFilePath, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getContentSummaryFilePath The Data Lake Store path (starting - * with '/') of the file for which to retrieve the summary. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file for which to retrieve the summary. * * @param {object} [options] Optional Parameters. * @@ -1187,7 +1187,7 @@ function _listFileStatus(accountName, listFilePath, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _getContentSummary(accountName, getContentSummaryFilePath, options, callback) { +function _getContentSummary(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1206,8 +1206,8 @@ function _getContentSummary(accountName, getContentSummaryFilePath, options, cal if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (getContentSummaryFilePath === null || getContentSummaryFilePath === undefined || typeof getContentSummaryFilePath.valueOf() !== 'string') { - throw new Error('getContentSummaryFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); @@ -1221,10 +1221,10 @@ function _getContentSummary(accountName, getContentSummaryFilePath, options, cal // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{getContentSummaryFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{getContentSummaryFilePath}', encodeURIComponent(getContentSummaryFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; queryParameters.push('op=' + encodeURIComponent(op)); queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); @@ -1316,8 +1316,8 @@ function _getContentSummary(accountName, getContentSummaryFilePath, options, cal * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to retrieve the status. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to retrieve the status. * * @param {object} [options] Optional Parameters. * @@ -1341,7 +1341,7 @@ function _getContentSummary(accountName, getContentSummaryFilePath, options, cal * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _getFileStatus(accountName, getFilePath, options, callback) { +function _getFileStatus(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1361,8 +1361,8 @@ function _getFileStatus(accountName, getFilePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (getFilePath === null || getFilePath === undefined || typeof getFilePath.valueOf() !== 'string') { - throw new Error('getFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (tooId !== null && tooId !== undefined && typeof tooId !== 'boolean') { throw new Error('tooId must be of type boolean.'); @@ -1379,10 +1379,10 @@ function _getFileStatus(accountName, getFilePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{getFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{getFilePath}', encodeURIComponent(getFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; if (tooId !== null && tooId !== undefined) { queryParameters.push('tooId=' + encodeURIComponent(tooId.toString())); @@ -1472,44 +1472,24 @@ function _getFileStatus(accountName, getFilePath, options, callback) { } /** - * Used for serial appends to the specified file. NOTE: The target must not - * contain data added by ConcurrentAppend. ConcurrentAppend and Append cannot - * be used interchangeably; once a target file has been modified using either - * of these append options, the other append option cannot be used on the - * target file. + * Opens and reads from the specified file. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to which to append. - * - * @param {object} streamContents The file contents to include when appending - * to the file. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to open. * * @param {object} [options] Optional Parameters. * - * @param {number} [options.offset] The optional offset in the stream to begin - * the append operation. Default is to append at the end of the stream. - * - * @param {string} [options.syncFlag] Optionally indicates what to do after - * completion of the concurrent append. DATA indicates that more data will be - * sent immediately by the client, the file handle should remain open/locked, - * and file metadata (including file length, last modified time) should NOT get - * updated. METADATA indicates that more data will be sent immediately by the - * client, the file handle should remain open/locked, and file metadata should - * get updated. CLOSE indicates that the client is done sending data, the file - * handle should be closed/unlocked, and file metadata should get updated. - * Possible values include: 'DATA', 'METADATA', 'CLOSE' + * @param {number} [options.length] The number of bytes that the server will + * attempt to retrieve. It will retrieve <= length bytes. * - * @param {uuid} [options.leaseId] Optional unique GUID per file to ensure - * single writer semantics, meaning that only clients that append to the file - * with the same leaseId will be allowed to do so. + * @param {number} [options.offset] The byte offset to start reading data from. * * @param {uuid} [options.fileSessionId] Optional unique GUID per file - * indicating all the appends with the same fileSessionId are from the same - * client and same session. This will give a performance benefit when syncFlag - * is DATA or METADATA. + * indicating all the reads with the same fileSessionId are from the same + * client and same session. This will give a performance benefit. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -1520,13 +1500,13 @@ function _getFileStatus(accountName, getFilePath, options, callback) { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {object} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _append(accountName, directFilePath, streamContents, options, callback) { +function _open(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1536,12 +1516,11 @@ function _append(accountName, directFilePath, streamContents, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } + let length = (options && options.length !== undefined) ? options.length : undefined; let offset = (options && options.offset !== undefined) ? options.offset : undefined; - let syncFlag = (options && options.syncFlag !== undefined) ? options.syncFlag : 'CLOSE'; - let leaseId = (options && options.leaseId !== undefined) ? options.leaseId : undefined; let fileSessionId = (options && options.fileSessionId !== undefined) ? options.fileSessionId : undefined; - let op = 'APPEND'; - let appendParameter = 'true'; + let read = 'true'; + let op = 'OPEN'; // Validate try { if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { @@ -1550,24 +1529,15 @@ function _append(accountName, directFilePath, streamContents, options, callback) if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (directFilePath === null || directFilePath === undefined || typeof directFilePath.valueOf() !== 'string') { - throw new Error('directFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } - if (streamContents === null || streamContents === undefined) { - throw new Error('streamContents cannot be null or undefined and it must be of type object.'); + if (length !== null && length !== undefined && typeof length !== 'number') { + throw new Error('length must be of type number.'); } if (offset !== null && offset !== undefined && typeof offset !== 'number') { throw new Error('offset must be of type number.'); } - if (syncFlag) { - let allowedValues = [ 'DATA', 'METADATA', 'CLOSE' ]; - if (!allowedValues.some( function(item) { return item === syncFlag; })) { - throw new Error(syncFlag + ' is not a valid value. The valid values are: ' + allowedValues); - } - } - if (leaseId !== null && leaseId !== undefined && !(typeof leaseId.valueOf() === 'string' && msRest.isValidUuid(leaseId))) { - throw new Error('leaseId must be of type string and must be a valid uuid.'); - } if (fileSessionId !== null && fileSessionId !== undefined && !(typeof fileSessionId.valueOf() === 'string' && msRest.isValidUuid(fileSessionId))) { throw new Error('fileSessionId must be of type string and must be a valid uuid.'); } @@ -1583,25 +1553,22 @@ function _append(accountName, directFilePath, streamContents, options, callback) // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{directFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{directFilePath}', encodeURIComponent(directFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; + if (length !== null && length !== undefined) { + queryParameters.push('length=' + encodeURIComponent(length.toString())); + } if (offset !== null && offset !== undefined) { queryParameters.push('offset=' + encodeURIComponent(offset.toString())); } - if (syncFlag !== null && syncFlag !== undefined) { - queryParameters.push('syncFlag=' + encodeURIComponent(syncFlag)); - } - if (leaseId !== null && leaseId !== undefined) { - queryParameters.push('leaseId=' + encodeURIComponent(leaseId.toString())); - } if (fileSessionId !== null && fileSessionId !== undefined) { queryParameters.push('fileSessionId=' + encodeURIComponent(fileSessionId.toString())); } + queryParameters.push('read=' + encodeURIComponent(read)); queryParameters.push('op=' + encodeURIComponent(op)); - queryParameters.push('append=' + encodeURIComponent(appendParameter)); queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -1609,7 +1576,7 @@ function _append(accountName, directFilePath, streamContents, options, callback) // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'POST'; + httpRequest.method = 'GET'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1626,33 +1593,32 @@ function _append(accountName, directFilePath, streamContents, options, callback) } } } - httpRequest.headers['Content-Type'] = 'application/octet-stream'; - // Serialize Request - let requestContent = streamContents; - httpRequest.body = requestContent; + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + httpRequest.body = null; // Send Request + httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } + let statusCode = response.statusCode; if (statusCode !== 200) { - let error = new Error(responseBody); + let error = new Error(`Unexpected status code: ${statusCode}`); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; let parsedErrorResponse; try { - parsedErrorResponse = JSON.parse(responseBody); + if (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['AdlsError']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -1662,37 +1628,38 @@ function _append(accountName, directFilePath, streamContents, options, callback) } return callback(error); } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; + // Create Result + let result = response; return callback(null, result, httpRequest, response); }); } /** - * Creates a file with optionally specified content. NOTE: If content is - * provided, the resulting file cannot be modified using ConcurrentAppend. + * Used for serial appends to the specified file. NOTE: The target must not + * contain data added by ConcurrentAppend. ConcurrentAppend and Append cannot + * be used interchangeably; once a target file has been modified using either + * of these append options, the other append option cannot be used on the + * target file. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to create. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append. * - * @param {object} [options] Optional Parameters. + * @param {object} streamContents The file contents to include when appending + * to the file. * - * @param {object} [options.streamContents] The file contents to include when - * creating the file. This parameter is optional, resulting in an empty file if - * not specified. + * @param {object} [options] Optional Parameters. * - * @param {boolean} [options.overwrite] The indication of if the file should be - * overwritten. + * @param {number} [options.offset] The optional offset in the stream to begin + * the append operation. Default is to append at the end of the stream. * * @param {string} [options.syncFlag] Optionally indicates what to do after - * completion of the create. DATA indicates that more data will be sent - * immediately by the client, the file handle should remain open/locked, and - * file metadata (including file length, last modified time) should NOT get + * completion of the concurrent append. DATA indicates that more data will be + * sent immediately by the client, the file handle should remain open/locked, + * and file metadata (including file length, last modified time) should NOT get * updated. METADATA indicates that more data will be sent immediately by the * client, the file handle should remain open/locked, and file metadata should * get updated. CLOSE indicates that the client is done sending data, the file @@ -1703,9 +1670,10 @@ function _append(accountName, directFilePath, streamContents, options, callback) * single writer semantics, meaning that only clients that append to the file * with the same leaseId will be allowed to do so. * - * @param {number} [options.permission] The octal representation of the unnamed - * user, mask and other permissions that should be set for the file when - * created. If not specified, it inherits these from the container. + * @param {uuid} [options.fileSessionId] Optional unique GUID per file + * indicating all the appends with the same fileSessionId are from the same + * client and same session. This will give a performance benefit when syncFlag + * is DATA or METADATA. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -1722,7 +1690,7 @@ function _append(accountName, directFilePath, streamContents, options, callback) * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _create(accountName, directFilePath, options, callback) { +function _append(accountName, path, streamContents, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1732,13 +1700,12 @@ function _create(accountName, directFilePath, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let streamContents = (options && options.streamContents !== undefined) ? options.streamContents : undefined; - let overwrite = (options && options.overwrite !== undefined) ? options.overwrite : undefined; + let offset = (options && options.offset !== undefined) ? options.offset : undefined; let syncFlag = (options && options.syncFlag !== undefined) ? options.syncFlag : 'CLOSE'; let leaseId = (options && options.leaseId !== undefined) ? options.leaseId : undefined; - let permission = (options && options.permission !== undefined) ? options.permission : undefined; - let op = 'CREATE'; - let write = 'true'; + let fileSessionId = (options && options.fileSessionId !== undefined) ? options.fileSessionId : undefined; + let appendParameter = 'true'; + let op = 'APPEND'; // Validate try { if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { @@ -1747,14 +1714,14 @@ function _create(accountName, directFilePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (directFilePath === null || directFilePath === undefined || typeof directFilePath.valueOf() !== 'string') { - throw new Error('directFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } - if (streamContents !== null && streamContents !== undefined && typeof streamContents.valueOf() !== 'object') { - throw new Error('streamContents must be of type object.'); + if (streamContents === null || streamContents === undefined) { + throw new Error('streamContents cannot be null or undefined and it must be of type object.'); } - if (overwrite !== null && overwrite !== undefined && typeof overwrite !== 'boolean') { - throw new Error('overwrite must be of type boolean.'); + if (offset !== null && offset !== undefined && typeof offset !== 'number') { + throw new Error('offset must be of type number.'); } if (syncFlag) { let allowedValues = [ 'DATA', 'METADATA', 'CLOSE' ]; @@ -1765,8 +1732,8 @@ function _create(accountName, directFilePath, options, callback) { if (leaseId !== null && leaseId !== undefined && !(typeof leaseId.valueOf() === 'string' && msRest.isValidUuid(leaseId))) { throw new Error('leaseId must be of type string and must be a valid uuid.'); } - if (permission !== null && permission !== undefined && typeof permission !== 'number') { - throw new Error('permission must be of type number.'); + if (fileSessionId !== null && fileSessionId !== undefined && !(typeof fileSessionId.valueOf() === 'string' && msRest.isValidUuid(fileSessionId))) { + throw new Error('fileSessionId must be of type string and must be a valid uuid.'); } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); @@ -1780,13 +1747,13 @@ function _create(accountName, directFilePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{directFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{directFilePath}', encodeURIComponent(directFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; - if (overwrite !== null && overwrite !== undefined) { - queryParameters.push('overwrite=' + encodeURIComponent(overwrite.toString())); + if (offset !== null && offset !== undefined) { + queryParameters.push('offset=' + encodeURIComponent(offset.toString())); } if (syncFlag !== null && syncFlag !== undefined) { queryParameters.push('syncFlag=' + encodeURIComponent(syncFlag)); @@ -1794,11 +1761,11 @@ function _create(accountName, directFilePath, options, callback) { if (leaseId !== null && leaseId !== undefined) { queryParameters.push('leaseId=' + encodeURIComponent(leaseId.toString())); } - if (permission !== null && permission !== undefined) { - queryParameters.push('permission=' + encodeURIComponent(permission.toString())); + if (fileSessionId !== null && fileSessionId !== undefined) { + queryParameters.push('fileSessionId=' + encodeURIComponent(fileSessionId.toString())); } + queryParameters.push('append=' + encodeURIComponent(appendParameter)); queryParameters.push('op=' + encodeURIComponent(op)); - queryParameters.push('write=' + encodeURIComponent(write)); queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -1806,7 +1773,7 @@ function _create(accountName, directFilePath, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'PUT'; + httpRequest.method = 'POST'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1833,7 +1800,7 @@ function _create(accountName, directFilePath, options, callback) { return callback(err); } let statusCode = response.statusCode; - if (statusCode !== 201) { + if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); @@ -1868,24 +1835,41 @@ function _create(accountName, directFilePath, options, callback) { } /** - * Opens and reads from the specified file. + * Creates a file with optionally specified content. NOTE: If content is + * provided, the resulting file cannot be modified using ConcurrentAppend. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to open. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to create. * * @param {object} [options] Optional Parameters. * - * @param {number} [options.length] The number of bytes that the server will - * attempt to retrieve. It will retrieve <= length bytes. + * @param {object} [options.streamContents] The file contents to include when + * creating the file. This parameter is optional, resulting in an empty file if + * not specified. * - * @param {number} [options.offset] The byte offset to start reading data from. + * @param {boolean} [options.overwrite] The indication of if the file should be + * overwritten. * - * @param {uuid} [options.fileSessionId] Optional unique GUID per file - * indicating all the reads with the same fileSessionId are from the same - * client and same session. This will give a performance benefit. + * @param {string} [options.syncFlag] Optionally indicates what to do after + * completion of the create. DATA indicates that more data will be sent + * immediately by the client, the file handle should remain open/locked, and + * file metadata (including file length, last modified time) should NOT get + * updated. METADATA indicates that more data will be sent immediately by the + * client, the file handle should remain open/locked, and file metadata should + * get updated. CLOSE indicates that the client is done sending data, the file + * handle should be closed/unlocked, and file metadata should get updated. + * Possible values include: 'DATA', 'METADATA', 'CLOSE' + * + * @param {uuid} [options.leaseId] Optional unique GUID per file to ensure + * single writer semantics, meaning that only clients that append to the file + * with the same leaseId will be allowed to do so. + * + * @param {number} [options.permission] The octal representation of the unnamed + * user, mask and other permissions that should be set for the file when + * created. If not specified, it inherits these from the container. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -1896,13 +1880,13 @@ function _create(accountName, directFilePath, options, callback) { * * {Error} err - The Error object if an error occurred, null otherwise. * - * {object} [result] - The deserialized result object if an error did not occur. + * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _open(accountName, directFilePath, options, callback) { +function _create(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1912,11 +1896,13 @@ function _open(accountName, directFilePath, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let length = (options && options.length !== undefined) ? options.length : undefined; - let offset = (options && options.offset !== undefined) ? options.offset : undefined; - let fileSessionId = (options && options.fileSessionId !== undefined) ? options.fileSessionId : undefined; - let op = 'OPEN'; - let read = 'true'; + let streamContents = (options && options.streamContents !== undefined) ? options.streamContents : undefined; + let overwrite = (options && options.overwrite !== undefined) ? options.overwrite : undefined; + let syncFlag = (options && options.syncFlag !== undefined) ? options.syncFlag : 'CLOSE'; + let leaseId = (options && options.leaseId !== undefined) ? options.leaseId : undefined; + let permission = (options && options.permission !== undefined) ? options.permission : undefined; + let write = 'true'; + let op = 'CREATE'; // Validate try { if (accountName === null || accountName === undefined || typeof accountName.valueOf() !== 'string') { @@ -1925,17 +1911,26 @@ function _open(accountName, directFilePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (directFilePath === null || directFilePath === undefined || typeof directFilePath.valueOf() !== 'string') { - throw new Error('directFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } - if (length !== null && length !== undefined && typeof length !== 'number') { - throw new Error('length must be of type number.'); + if (streamContents !== null && streamContents !== undefined && typeof streamContents.valueOf() !== 'object') { + throw new Error('streamContents must be of type object.'); + } + if (overwrite !== null && overwrite !== undefined && typeof overwrite !== 'boolean') { + throw new Error('overwrite must be of type boolean.'); + } + if (syncFlag) { + let allowedValues = [ 'DATA', 'METADATA', 'CLOSE' ]; + if (!allowedValues.some( function(item) { return item === syncFlag; })) { + throw new Error(syncFlag + ' is not a valid value. The valid values are: ' + allowedValues); + } } - if (offset !== null && offset !== undefined && typeof offset !== 'number') { - throw new Error('offset must be of type number.'); + if (leaseId !== null && leaseId !== undefined && !(typeof leaseId.valueOf() === 'string' && msRest.isValidUuid(leaseId))) { + throw new Error('leaseId must be of type string and must be a valid uuid.'); } - if (fileSessionId !== null && fileSessionId !== undefined && !(typeof fileSessionId.valueOf() === 'string' && msRest.isValidUuid(fileSessionId))) { - throw new Error('fileSessionId must be of type string and must be a valid uuid.'); + if (permission !== null && permission !== undefined && typeof permission !== 'number') { + throw new Error('permission must be of type number.'); } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); @@ -1949,22 +1944,25 @@ function _open(accountName, directFilePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{directFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{directFilePath}', encodeURIComponent(directFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; - if (length !== null && length !== undefined) { - queryParameters.push('length=' + encodeURIComponent(length.toString())); + if (overwrite !== null && overwrite !== undefined) { + queryParameters.push('overwrite=' + encodeURIComponent(overwrite.toString())); } - if (offset !== null && offset !== undefined) { - queryParameters.push('offset=' + encodeURIComponent(offset.toString())); + if (syncFlag !== null && syncFlag !== undefined) { + queryParameters.push('syncFlag=' + encodeURIComponent(syncFlag)); } - if (fileSessionId !== null && fileSessionId !== undefined) { - queryParameters.push('fileSessionId=' + encodeURIComponent(fileSessionId.toString())); + if (leaseId !== null && leaseId !== undefined) { + queryParameters.push('leaseId=' + encodeURIComponent(leaseId.toString())); + } + if (permission !== null && permission !== undefined) { + queryParameters.push('permission=' + encodeURIComponent(permission.toString())); } + queryParameters.push('write=' + encodeURIComponent(write)); queryParameters.push('op=' + encodeURIComponent(op)); - queryParameters.push('read=' + encodeURIComponent(read)); queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -1972,7 +1970,7 @@ function _open(accountName, directFilePath, options, callback) { // Create HTTP transport objects let httpRequest = new WebResource(); - httpRequest.method = 'GET'; + httpRequest.method = 'PUT'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers @@ -1989,32 +1987,33 @@ function _open(accountName, directFilePath, options, callback) { } } } - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - httpRequest.body = null; + httpRequest.headers['Content-Type'] = 'application/octet-stream'; + // Serialize Request + let requestContent = streamContents; + httpRequest.body = requestContent; // Send Request - httpRequest.streamedResponse = true; return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } - let statusCode = response.statusCode; - if (statusCode !== 200) { - let error = new Error(`Unexpected status code: ${statusCode}`); + if (statusCode !== 201) { + let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; let parsedErrorResponse; try { - if (responseBody !== undefined) parsedErrorResponse = JSON.parse(responseBody); + parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['CloudError']().mapper(); + let resultMapper = new client.models['AdlsError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -2024,9 +2023,10 @@ function _open(accountName, directFilePath, options, callback) { } return callback(error); } - // Create Result - let result = response; + let result = null; + if (responseBody === '') responseBody = null; + return callback(null, result, httpRequest, response); }); } @@ -2037,8 +2037,8 @@ function _open(accountName, directFilePath, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setAclFilePath The Data Lake Store path (starting with '/') - * of the file or directory on which to set the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory on which to set the ACL. * * @param {string} aclspec The ACL spec included in ACL creation operations in * the format '[default:]user|group|other::r|-w|-x|-' @@ -2060,7 +2060,7 @@ function _open(accountName, directFilePath, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _setAcl(accountName, setAclFilePath, aclspec, options, callback) { +function _setAcl(accountName, path, aclspec, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2079,8 +2079,8 @@ function _setAcl(accountName, setAclFilePath, aclspec, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (setAclFilePath === null || setAclFilePath === undefined || typeof setAclFilePath.valueOf() !== 'string') { - throw new Error('setAclFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (aclspec === null || aclspec === undefined || typeof aclspec.valueOf() !== 'string') { throw new Error('aclspec cannot be null or undefined and it must be of type string.'); @@ -2097,10 +2097,10 @@ function _setAcl(accountName, setAclFilePath, aclspec, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{setAclFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{setAclFilePath}', encodeURIComponent(setAclFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; queryParameters.push('aclspec=' + encodeURIComponent(aclspec)); queryParameters.push('op=' + encodeURIComponent(op)); @@ -2176,8 +2176,8 @@ function _setAcl(accountName, setAclFilePath, aclspec, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} modifyAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being modified. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being modified. * * @param {string} aclspec The ACL specification included in ACL modification * operations in the format '[default:]user|group|other::r|-w|-x|-' @@ -2199,7 +2199,7 @@ function _setAcl(accountName, setAclFilePath, aclspec, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _modifyAclEntries(accountName, modifyAclFilePath, aclspec, options, callback) { +function _modifyAclEntries(accountName, path, aclspec, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2218,8 +2218,8 @@ function _modifyAclEntries(accountName, modifyAclFilePath, aclspec, options, cal if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (modifyAclFilePath === null || modifyAclFilePath === undefined || typeof modifyAclFilePath.valueOf() !== 'string') { - throw new Error('modifyAclFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (aclspec === null || aclspec === undefined || typeof aclspec.valueOf() !== 'string') { throw new Error('aclspec cannot be null or undefined and it must be of type string.'); @@ -2236,10 +2236,10 @@ function _modifyAclEntries(accountName, modifyAclFilePath, aclspec, options, cal // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{modifyAclFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{modifyAclFilePath}', encodeURIComponent(modifyAclFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; queryParameters.push('aclspec=' + encodeURIComponent(aclspec)); queryParameters.push('op=' + encodeURIComponent(op)); @@ -2315,8 +2315,8 @@ function _modifyAclEntries(accountName, modifyAclFilePath, aclspec, options, cal * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} removeAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {string} aclspec The ACL spec included in ACL removal operations in * the format '[default:]user|group|other' @@ -2338,7 +2338,7 @@ function _modifyAclEntries(accountName, modifyAclFilePath, aclspec, options, cal * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _removeAclEntries(accountName, removeAclFilePath, aclspec, options, callback) { +function _removeAclEntries(accountName, path, aclspec, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2357,8 +2357,8 @@ function _removeAclEntries(accountName, removeAclFilePath, aclspec, options, cal if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (removeAclFilePath === null || removeAclFilePath === undefined || typeof removeAclFilePath.valueOf() !== 'string') { - throw new Error('removeAclFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (aclspec === null || aclspec === undefined || typeof aclspec.valueOf() !== 'string') { throw new Error('aclspec cannot be null or undefined and it must be of type string.'); @@ -2375,10 +2375,10 @@ function _removeAclEntries(accountName, removeAclFilePath, aclspec, options, cal // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{removeAclFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{removeAclFilePath}', encodeURIComponent(removeAclFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; queryParameters.push('aclspec=' + encodeURIComponent(aclspec)); queryParameters.push('op=' + encodeURIComponent(op)); @@ -2455,8 +2455,8 @@ function _removeAclEntries(accountName, removeAclFilePath, aclspec, options, cal * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} defaultAclFilePath The Data Lake Store path (starting with - * '/') of the directory with the default ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory with the default ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -2475,7 +2475,7 @@ function _removeAclEntries(accountName, removeAclFilePath, aclspec, options, cal * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _removeDefaultAcl(accountName, defaultAclFilePath, options, callback) { +function _removeDefaultAcl(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2494,8 +2494,8 @@ function _removeDefaultAcl(accountName, defaultAclFilePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (defaultAclFilePath === null || defaultAclFilePath === undefined || typeof defaultAclFilePath.valueOf() !== 'string') { - throw new Error('defaultAclFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); @@ -2509,10 +2509,10 @@ function _removeDefaultAcl(accountName, defaultAclFilePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{defaultAclFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{defaultAclFilePath}', encodeURIComponent(defaultAclFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; queryParameters.push('op=' + encodeURIComponent(op)); queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); @@ -2588,8 +2588,8 @@ function _removeDefaultAcl(accountName, defaultAclFilePath, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -2608,7 +2608,7 @@ function _removeDefaultAcl(accountName, defaultAclFilePath, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _removeAcl(accountName, aclFilePath, options, callback) { +function _removeAcl(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2627,8 +2627,8 @@ function _removeAcl(accountName, aclFilePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (aclFilePath === null || aclFilePath === undefined || typeof aclFilePath.valueOf() !== 'string') { - throw new Error('aclFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); @@ -2642,10 +2642,10 @@ function _removeAcl(accountName, aclFilePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{aclFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{aclFilePath}', encodeURIComponent(aclFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; queryParameters.push('op=' + encodeURIComponent(op)); queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); @@ -2720,8 +2720,8 @@ function _removeAcl(accountName, aclFilePath, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to get the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to get the ACL. * * @param {object} [options] Optional Parameters. * @@ -2746,7 +2746,7 @@ function _removeAcl(accountName, aclFilePath, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _getAclStatus(accountName, aclFilePath, options, callback) { +function _getAclStatus(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2766,8 +2766,8 @@ function _getAclStatus(accountName, aclFilePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (aclFilePath === null || aclFilePath === undefined || typeof aclFilePath.valueOf() !== 'string') { - throw new Error('aclFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (tooId !== null && tooId !== undefined && typeof tooId !== 'boolean') { throw new Error('tooId must be of type boolean.'); @@ -2784,10 +2784,10 @@ function _getAclStatus(accountName, aclFilePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{aclFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{aclFilePath}', encodeURIComponent(aclFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; if (tooId !== null && tooId !== undefined) { queryParameters.push('tooId=' + encodeURIComponent(tooId.toString())); @@ -2882,7 +2882,7 @@ function _getAclStatus(accountName, aclFilePath, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the + * @param {string} path The Data Lake Store path (starting with '/') of the * file or directory to delete. * * @param {object} [options] Optional Parameters. @@ -2906,7 +2906,7 @@ function _getAclStatus(accountName, aclFilePath, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _deleteMethod(accountName, filePath, options, callback) { +function _deleteMethod(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2926,8 +2926,8 @@ function _deleteMethod(accountName, filePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (filePath === null || filePath === undefined || typeof filePath.valueOf() !== 'string') { - throw new Error('filePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (recursive !== null && recursive !== undefined && typeof recursive !== 'boolean') { throw new Error('recursive must be of type boolean.'); @@ -2944,10 +2944,10 @@ function _deleteMethod(accountName, filePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{filePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{filePath}', encodeURIComponent(filePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; if (recursive !== null && recursive !== undefined) { queryParameters.push('recursive=' + encodeURIComponent(recursive.toString())); @@ -3042,8 +3042,8 @@ function _deleteMethod(accountName, filePath, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} renameFilePath The Data Lake Store path (starting with '/') - * of the file or directory to move/rename. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory to move/rename. * * @param {string} destination The path to move/rename the file or folder to * @@ -3065,7 +3065,7 @@ function _deleteMethod(accountName, filePath, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _rename(accountName, renameFilePath, destination, options, callback) { +function _rename(accountName, path, destination, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -3084,8 +3084,8 @@ function _rename(accountName, renameFilePath, destination, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (renameFilePath === null || renameFilePath === undefined || typeof renameFilePath.valueOf() !== 'string') { - throw new Error('renameFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (destination === null || destination === undefined || typeof destination.valueOf() !== 'string') { throw new Error('destination cannot be null or undefined and it must be of type string.'); @@ -3102,10 +3102,10 @@ function _rename(accountName, renameFilePath, destination, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{renameFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{renameFilePath}', encodeURIComponent(renameFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; queryParameters.push('destination=' + encodeURIComponent(destination)); queryParameters.push('op=' + encodeURIComponent(op)); @@ -3198,8 +3198,8 @@ function _rename(accountName, renameFilePath, destination, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setOwnerFilePath The Data Lake Store path (starting with - * '/') of the file or directory for which to set the owner. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the owner. * * @param {object} [options] Optional Parameters. * @@ -3224,7 +3224,7 @@ function _rename(accountName, renameFilePath, destination, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _setOwner(accountName, setOwnerFilePath, options, callback) { +function _setOwner(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -3245,8 +3245,8 @@ function _setOwner(accountName, setOwnerFilePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (setOwnerFilePath === null || setOwnerFilePath === undefined || typeof setOwnerFilePath.valueOf() !== 'string') { - throw new Error('setOwnerFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (owner !== null && owner !== undefined && typeof owner.valueOf() !== 'string') { throw new Error('owner must be of type string.'); @@ -3266,10 +3266,10 @@ function _setOwner(accountName, setOwnerFilePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{setOwnerFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{setOwnerFilePath}', encodeURIComponent(setOwnerFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; if (owner !== null && owner !== undefined) { queryParameters.push('owner=' + encodeURIComponent(owner)); @@ -3350,8 +3350,8 @@ function _setOwner(accountName, setOwnerFilePath, options, callback) { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setPermissionFilePath The Data Lake Store path (starting - * with '/') of the file or directory for which to set the permission. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the permission. * * @param {object} [options] Optional Parameters. * @@ -3373,7 +3373,7 @@ function _setOwner(accountName, setOwnerFilePath, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _setPermission(accountName, setPermissionFilePath, options, callback) { +function _setPermission(accountName, path, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -3393,8 +3393,8 @@ function _setPermission(accountName, setPermissionFilePath, options, callback) { if (this.client.adlsFileSystemDnsSuffix === null || this.client.adlsFileSystemDnsSuffix === undefined || typeof this.client.adlsFileSystemDnsSuffix.valueOf() !== 'string') { throw new Error('this.client.adlsFileSystemDnsSuffix cannot be null or undefined and it must be of type string.'); } - if (setPermissionFilePath === null || setPermissionFilePath === undefined || typeof setPermissionFilePath.valueOf() !== 'string') { - throw new Error('setPermissionFilePath cannot be null or undefined and it must be of type string.'); + if (path === null || path === undefined || typeof path.valueOf() !== 'string') { + throw new Error('path cannot be null or undefined and it must be of type string.'); } if (permission !== null && permission !== undefined && typeof permission.valueOf() !== 'string') { throw new Error('permission must be of type string.'); @@ -3411,10 +3411,10 @@ function _setPermission(accountName, setPermissionFilePath, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{setPermissionFilePath}'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'webhdfs/v1/{path}'; requestUrl = requestUrl.replace('{accountName}', accountName); requestUrl = requestUrl.replace('{adlsFileSystemDnsSuffix}', this.client.adlsFileSystemDnsSuffix); - requestUrl = requestUrl.replace('{setPermissionFilePath}', encodeURIComponent(setPermissionFilePath)); + requestUrl = requestUrl.replace('{path}', encodeURIComponent(path)); let queryParameters = []; if (permission !== null && permission !== undefined) { queryParameters.push('permission=' + encodeURIComponent(permission)); @@ -3486,21 +3486,16 @@ function _setPermission(accountName, setPermissionFilePath, options, callback) { }); } -/** - * @class - * FileSystem - * __NOTE__: An instance of this class is automatically created for an - * instance of the DataLakeStoreFileSystemManagementClient. - * Initializes a new instance of the FileSystem class. - * @constructor - * - * @param {DataLakeStoreFileSystemManagementClient} client Reference to the service client. - */ +/** Class representing a FileSystem. */ class FileSystem { + /** + * Create a FileSystem. + * @param {DataLakeStoreFileSystemManagementClient} client Reference to the service client. + */ constructor(client) { this.client = client; - this._concurrentAppend = _concurrentAppend; this._setFileExpiry = _setFileExpiry; + this._concurrentAppend = _concurrentAppend; this._checkAccess = _checkAccess; this._mkdirs = _mkdirs; this._concat = _concat; @@ -3508,9 +3503,9 @@ class FileSystem { this._listFileStatus = _listFileStatus; this._getContentSummary = _getContentSummary; this._getFileStatus = _getFileStatus; + this._open = _open; this._append = _append; this._create = _create; - this._open = _open; this._setAcl = _setAcl; this._modifyAclEntries = _modifyAclEntries; this._removeAclEntries = _removeAclEntries; @@ -3524,39 +3519,28 @@ class FileSystem { } /** - * Appends to the specified file, optionally first creating the file if it does - * not yet exist. This method supports multiple concurrent appends to the file. - * NOTE: The target must not contain data added by Create or normal (serial) - * Append. ConcurrentAppend and Append cannot be used interchangeably; once a - * target file has been modified using either of these append options, the - * other append option cannot be used on the target file. ConcurrentAppend does - * not guarantee order and can result in duplicated data landing in the target - * file. + * Sets or removes the expiration time on the specified file. This operation + * can only be executed against files. Folders are not supported. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file to which to append using concurrent append. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file on which to set or remove the expiration time. * - * @param {object} streamContents The file contents to include when appending - * to the file. + * @param {string} expiryOption Indicates the type of expiration to use for the + * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is + * an integer in milliseconds representing the expiration date relative to when + * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an + * integer in milliseconds representing the expiration date relative to file + * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix + * timestamp relative to 1/1/1970 00:00:00. Possible values include: + * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' * * @param {object} [options] Optional Parameters. * - * @param {string} [options.appendMode] Indicates the concurrent append call - * should create the file if it doesn't exist or just open the existing file - * for append. Possible values include: 'autocreate' - * - * @param {string} [options.syncFlag] Optionally indicates what to do after - * completion of the concurrent append. DATA indicates that more data will be - * sent immediately by the client, the file handle should remain open/locked, - * and file metadata (including file length, last modified time) should NOT get - * updated. METADATA indicates that more data will be sent immediately by the - * client, the file handle should remain open/locked, and file metadata should - * get updated. CLOSE indicates that the client is done sending data, the file - * handle should be closed/unlocked, and file metadata should get updated. - * Possible values include: 'DATA', 'METADATA', 'CLOSE' + * @param {number} [options.expireTime] The time that the file will expire, + * corresponding to the ExpiryOption that was set. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -3567,11 +3551,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - concurrentAppendWithHttpOperationResponse(accountName, filePath, streamContents, options) { + setFileExpiryWithHttpOperationResponse(accountName, path, expiryOption, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._concurrentAppend(accountName, filePath, streamContents, options, (err, result, request, response) => { + self._setFileExpiry(accountName, path, expiryOption, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3582,39 +3566,28 @@ class FileSystem { } /** - * Appends to the specified file, optionally first creating the file if it does - * not yet exist. This method supports multiple concurrent appends to the file. - * NOTE: The target must not contain data added by Create or normal (serial) - * Append. ConcurrentAppend and Append cannot be used interchangeably; once a - * target file has been modified using either of these append options, the - * other append option cannot be used on the target file. ConcurrentAppend does - * not guarantee order and can result in duplicated data landing in the target - * file. + * Sets or removes the expiration time on the specified file. This operation + * can only be executed against files. Folders are not supported. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file to which to append using concurrent append. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file on which to set or remove the expiration time. * - * @param {object} streamContents The file contents to include when appending - * to the file. + * @param {string} expiryOption Indicates the type of expiration to use for the + * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is + * an integer in milliseconds representing the expiration date relative to when + * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an + * integer in milliseconds representing the expiration date relative to file + * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix + * timestamp relative to 1/1/1970 00:00:00. Possible values include: + * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' * * @param {object} [options] Optional Parameters. * - * @param {string} [options.appendMode] Indicates the concurrent append call - * should create the file if it doesn't exist or just open the existing file - * for append. Possible values include: 'autocreate' - * - * @param {string} [options.syncFlag] Optionally indicates what to do after - * completion of the concurrent append. DATA indicates that more data will be - * sent immediately by the client, the file handle should remain open/locked, - * and file metadata (including file length, last modified time) should NOT get - * updated. METADATA indicates that more data will be sent immediately by the - * client, the file handle should remain open/locked, and file metadata should - * get updated. CLOSE indicates that the client is done sending data, the file - * handle should be closed/unlocked, and file metadata should get updated. - * Possible values include: 'DATA', 'METADATA', 'CLOSE' + * @param {number} [options.expireTime] The time that the file will expire, + * corresponding to the ExpiryOption that was set. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -3640,7 +3613,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - concurrentAppend(accountName, filePath, streamContents, options, optionalCallback) { + setFileExpiry(accountName, path, expiryOption, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3649,40 +3622,51 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._concurrentAppend(accountName, filePath, streamContents, options, (err, result, request, response) => { + self._setFileExpiry(accountName, path, expiryOption, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._concurrentAppend(accountName, filePath, streamContents, options, optionalCallback); + return self._setFileExpiry(accountName, path, expiryOption, options, optionalCallback); } } /** - * Sets or removes the expiration time on the specified file. This operation - * can only be executed against files. Folders are not supported. + * Appends to the specified file, optionally first creating the file if it does + * not yet exist. This method supports multiple concurrent appends to the file. + * NOTE: The target must not contain data added by Create or normal (serial) + * Append. ConcurrentAppend and Append cannot be used interchangeably; once a + * target file has been modified using either of these append options, the + * other append option cannot be used on the target file. ConcurrentAppend does + * not guarantee order and can result in duplicated data landing in the target + * file. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file on which to set or remove the expiration time. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append using concurrent append. * - * @param {string} expiryOption Indicates the type of expiration to use for the - * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is - * an integer in milliseconds representing the expiration date relative to when - * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an - * integer in milliseconds representing the expiration date relative to file - * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix - * timestamp relative to 1/1/1970 00:00:00. Possible values include: - * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' + * @param {object} streamContents The file contents to include when appending + * to the file. * * @param {object} [options] Optional Parameters. * - * @param {number} [options.expireTime] The time that the file will expire, - * corresponding to the ExpiryOption that was set. + * @param {string} [options.appendMode] Indicates the concurrent append call + * should create the file if it doesn't exist or just open the existing file + * for append. Possible values include: 'autocreate' + * + * @param {string} [options.syncFlag] Optionally indicates what to do after + * completion of the concurrent append. DATA indicates that more data will be + * sent immediately by the client, the file handle should remain open/locked, + * and file metadata (including file length, last modified time) should NOT get + * updated. METADATA indicates that more data will be sent immediately by the + * client, the file handle should remain open/locked, and file metadata should + * get updated. CLOSE indicates that the client is done sending data, the file + * handle should be closed/unlocked, and file metadata should get updated. + * Possible values include: 'DATA', 'METADATA', 'CLOSE' * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -3693,11 +3677,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - setFileExpiryWithHttpOperationResponse(accountName, filePath, expiryOption, options) { + concurrentAppendWithHttpOperationResponse(accountName, path, streamContents, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._setFileExpiry(accountName, filePath, expiryOption, options, (err, result, request, response) => { + self._concurrentAppend(accountName, path, streamContents, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3708,28 +3692,39 @@ class FileSystem { } /** - * Sets or removes the expiration time on the specified file. This operation - * can only be executed against files. Folders are not supported. - * - * @param {string} accountName The Azure Data Lake Store account to execute - * filesystem operations on. - * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file on which to set or remove the expiration time. - * - * @param {string} expiryOption Indicates the type of expiration to use for the - * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is - * an integer in milliseconds representing the expiration date relative to when - * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an - * integer in milliseconds representing the expiration date relative to file - * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix - * timestamp relative to 1/1/1970 00:00:00. Possible values include: - * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' + * Appends to the specified file, optionally first creating the file if it does + * not yet exist. This method supports multiple concurrent appends to the file. + * NOTE: The target must not contain data added by Create or normal (serial) + * Append. ConcurrentAppend and Append cannot be used interchangeably; once a + * target file has been modified using either of these append options, the + * other append option cannot be used on the target file. ConcurrentAppend does + * not guarantee order and can result in duplicated data landing in the target + * file. + * + * @param {string} accountName The Azure Data Lake Store account to execute + * filesystem operations on. + * + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append using concurrent append. + * + * @param {object} streamContents The file contents to include when appending + * to the file. * * @param {object} [options] Optional Parameters. * - * @param {number} [options.expireTime] The time that the file will expire, - * corresponding to the ExpiryOption that was set. + * @param {string} [options.appendMode] Indicates the concurrent append call + * should create the file if it doesn't exist or just open the existing file + * for append. Possible values include: 'autocreate' + * + * @param {string} [options.syncFlag] Optionally indicates what to do after + * completion of the concurrent append. DATA indicates that more data will be + * sent immediately by the client, the file handle should remain open/locked, + * and file metadata (including file length, last modified time) should NOT get + * updated. METADATA indicates that more data will be sent immediately by the + * client, the file handle should remain open/locked, and file metadata should + * get updated. CLOSE indicates that the client is done sending data, the file + * handle should be closed/unlocked, and file metadata should get updated. + * Possible values include: 'DATA', 'METADATA', 'CLOSE' * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -3755,7 +3750,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - setFileExpiry(accountName, filePath, expiryOption, options, optionalCallback) { + concurrentAppend(accountName, path, streamContents, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3764,14 +3759,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._setFileExpiry(accountName, filePath, expiryOption, options, (err, result, request, response) => { + self._concurrentAppend(accountName, path, streamContents, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._setFileExpiry(accountName, filePath, expiryOption, options, optionalCallback); + return self._concurrentAppend(accountName, path, streamContents, options, optionalCallback); } } @@ -3973,8 +3968,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} destinationPath The Data Lake Store path (starting with '/') - * of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {array} sources A list of comma separated Data Lake Store paths * (starting with '/') of the files to concatenate, in the order in which they @@ -3991,11 +3986,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - concatWithHttpOperationResponse(accountName, destinationPath, sources, options) { + concatWithHttpOperationResponse(accountName, path, sources, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._concat(accountName, destinationPath, sources, options, (err, result, request, response) => { + self._concat(accountName, path, sources, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -4012,8 +4007,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} destinationPath The Data Lake Store path (starting with '/') - * of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {array} sources A list of comma separated Data Lake Store paths * (starting with '/') of the files to concatenate, in the order in which they @@ -4045,7 +4040,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - concat(accountName, destinationPath, sources, options, optionalCallback) { + concat(accountName, path, sources, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -4054,14 +4049,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._concat(accountName, destinationPath, sources, options, (err, result, request, response) => { + self._concat(accountName, path, sources, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._concat(accountName, destinationPath, sources, options, optionalCallback); + return self._concat(accountName, path, sources, options, optionalCallback); } } @@ -4074,8 +4069,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} msConcatDestinationPath The Data Lake Store path (starting - * with '/') of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {object} streamContents A list of Data Lake Store paths (starting * with '/') of the source files. Must be a comma-separated path list in the @@ -4100,11 +4095,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - msConcatWithHttpOperationResponse(accountName, msConcatDestinationPath, streamContents, options) { + msConcatWithHttpOperationResponse(accountName, path, streamContents, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._msConcat(accountName, msConcatDestinationPath, streamContents, options, (err, result, request, response) => { + self._msConcat(accountName, path, streamContents, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -4123,8 +4118,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} msConcatDestinationPath The Data Lake Store path (starting - * with '/') of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {object} streamContents A list of Data Lake Store paths (starting * with '/') of the source files. Must be a comma-separated path list in the @@ -4164,7 +4159,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - msConcat(accountName, msConcatDestinationPath, streamContents, options, optionalCallback) { + msConcat(accountName, path, streamContents, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -4173,14 +4168,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._msConcat(accountName, msConcatDestinationPath, streamContents, options, (err, result, request, response) => { + self._msConcat(accountName, path, streamContents, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._msConcat(accountName, msConcatDestinationPath, streamContents, options, optionalCallback); + return self._msConcat(accountName, path, streamContents, options, optionalCallback); } } @@ -4191,8 +4186,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} listFilePath The Data Lake Store path (starting with '/') of - * the directory to list. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory to list. * * @param {object} [options] Optional Parameters. * @@ -4222,11 +4217,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - listFileStatusWithHttpOperationResponse(accountName, listFilePath, options) { + listFileStatusWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._listFileStatus(accountName, listFilePath, options, (err, result, request, response) => { + self._listFileStatus(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -4243,8 +4238,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} listFilePath The Data Lake Store path (starting with '/') of - * the directory to list. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory to list. * * @param {object} [options] Optional Parameters. * @@ -4290,7 +4285,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - listFileStatus(accountName, listFilePath, options, optionalCallback) { + listFileStatus(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -4299,14 +4294,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._listFileStatus(accountName, listFilePath, options, (err, result, request, response) => { + self._listFileStatus(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._listFileStatus(accountName, listFilePath, options, optionalCallback); + return self._listFileStatus(accountName, path, options, optionalCallback); } } @@ -4316,8 +4311,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getContentSummaryFilePath The Data Lake Store path (starting - * with '/') of the file for which to retrieve the summary. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file for which to retrieve the summary. * * @param {object} [options] Optional Parameters. * @@ -4330,11 +4325,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - getContentSummaryWithHttpOperationResponse(accountName, getContentSummaryFilePath, options) { + getContentSummaryWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._getContentSummary(accountName, getContentSummaryFilePath, options, (err, result, request, response) => { + self._getContentSummary(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -4350,8 +4345,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getContentSummaryFilePath The Data Lake Store path (starting - * with '/') of the file for which to retrieve the summary. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file for which to retrieve the summary. * * @param {object} [options] Optional Parameters. * @@ -4380,7 +4375,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - getContentSummary(accountName, getContentSummaryFilePath, options, optionalCallback) { + getContentSummary(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -4389,14 +4384,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._getContentSummary(accountName, getContentSummaryFilePath, options, (err, result, request, response) => { + self._getContentSummary(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._getContentSummary(accountName, getContentSummaryFilePath, options, optionalCallback); + return self._getContentSummary(accountName, path, options, optionalCallback); } } @@ -4406,8 +4401,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to retrieve the status. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to retrieve the status. * * @param {object} [options] Optional Parameters. * @@ -4424,11 +4419,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - getFileStatusWithHttpOperationResponse(accountName, getFilePath, options) { + getFileStatusWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._getFileStatus(accountName, getFilePath, options, (err, result, request, response) => { + self._getFileStatus(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -4444,8 +4439,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to retrieve the status. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to retrieve the status. * * @param {object} [options] Optional Parameters. * @@ -4478,7 +4473,114 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - getFileStatus(accountName, getFilePath, options, optionalCallback) { + getFileStatus(accountName, path, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._getFileStatus(accountName, path, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._getFileStatus(accountName, path, options, optionalCallback); + } + } + + /** + * Opens and reads from the specified file. + * + * @param {string} accountName The Azure Data Lake Store account to execute + * filesystem operations on. + * + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to open. + * + * @param {object} [options] Optional Parameters. + * + * @param {number} [options.length] The number of bytes that the server will + * attempt to retrieve. It will retrieve <= length bytes. + * + * @param {number} [options.offset] The byte offset to start reading data from. + * + * @param {uuid} [options.fileSessionId] Optional unique GUID per file + * indicating all the reads with the same fileSessionId are from the same + * client and same session. This will give a performance benefit. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + openWithHttpOperationResponse(accountName, path, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._open(accountName, path, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Opens and reads from the specified file. + * + * @param {string} accountName The Azure Data Lake Store account to execute + * filesystem operations on. + * + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to open. + * + * @param {object} [options] Optional Parameters. + * + * @param {number} [options.length] The number of bytes that the server will + * attempt to retrieve. It will retrieve <= length bytes. + * + * @param {number} [options.offset] The byte offset to start reading data from. + * + * @param {uuid} [options.fileSessionId] Optional unique GUID per file + * indicating all the reads with the same fileSessionId are from the same + * client and same session. This will give a performance benefit. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {Object} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + open(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -4487,14 +4589,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._getFileStatus(accountName, getFilePath, options, (err, result, request, response) => { + self._open(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._getFileStatus(accountName, getFilePath, options, optionalCallback); + return self._open(accountName, path, options, optionalCallback); } } @@ -4508,8 +4610,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to which to append. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append. * * @param {object} streamContents The file contents to include when appending * to the file. @@ -4547,11 +4649,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - appendWithHttpOperationResponse(accountName, directFilePath, streamContents, options) { + appendWithHttpOperationResponse(accountName, path, streamContents, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._append(accountName, directFilePath, streamContents, options, (err, result, request, response) => { + self._append(accountName, path, streamContents, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -4571,8 +4673,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to which to append. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append. * * @param {object} streamContents The file contents to include when appending * to the file. @@ -4625,7 +4727,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - append(accountName, directFilePath, streamContents, options, optionalCallback) { + append(accountName, path, streamContents, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -4634,14 +4736,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._append(accountName, directFilePath, streamContents, options, (err, result, request, response) => { + self._append(accountName, path, streamContents, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._append(accountName, directFilePath, streamContents, options, optionalCallback); + return self._append(accountName, path, streamContents, options, optionalCallback); } } @@ -4652,8 +4754,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to create. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to create. * * @param {object} [options] Optional Parameters. * @@ -4691,11 +4793,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - createWithHttpOperationResponse(accountName, directFilePath, options) { + createWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._create(accountName, directFilePath, options, (err, result, request, response) => { + self._create(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -4712,8 +4814,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to create. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to create. * * @param {object} [options] Optional Parameters. * @@ -4766,114 +4868,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - create(accountName, directFilePath, options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._create(accountName, directFilePath, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._create(accountName, directFilePath, options, optionalCallback); - } - } - - /** - * Opens and reads from the specified file. - * - * @param {string} accountName The Azure Data Lake Store account to execute - * filesystem operations on. - * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to open. - * - * @param {object} [options] Optional Parameters. - * - * @param {number} [options.length] The number of bytes that the server will - * attempt to retrieve. It will retrieve <= length bytes. - * - * @param {number} [options.offset] The byte offset to start reading data from. - * - * @param {uuid} [options.fileSessionId] Optional unique GUID per file - * indicating all the reads with the same fileSessionId are from the same - * client and same session. This will give a performance benefit. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error} - The error object. - */ - openWithHttpOperationResponse(accountName, directFilePath, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._open(accountName, directFilePath, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * Opens and reads from the specified file. - * - * @param {string} accountName The Azure Data Lake Store account to execute - * filesystem operations on. - * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to open. - * - * @param {object} [options] Optional Parameters. - * - * @param {number} [options.length] The number of bytes that the server will - * attempt to retrieve. It will retrieve <= length bytes. - * - * @param {number} [options.offset] The byte offset to start reading data from. - * - * @param {uuid} [options.fileSessionId] Optional unique GUID per file - * indicating all the reads with the same fileSessionId are from the same - * client and same session. This will give a performance benefit. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} If a callback was passed as the last parameter - * then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned - * - * @resolve {Object} - The deserialized result object. - * - * @reject {Error} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - open(accountName, directFilePath, options, optionalCallback) { + create(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -4882,14 +4877,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._open(accountName, directFilePath, options, (err, result, request, response) => { + self._create(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._open(accountName, directFilePath, options, optionalCallback); + return self._create(accountName, path, options, optionalCallback); } } @@ -4899,8 +4894,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setAclFilePath The Data Lake Store path (starting with '/') - * of the file or directory on which to set the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory on which to set the ACL. * * @param {string} aclspec The ACL spec included in ACL creation operations in * the format '[default:]user|group|other::r|-w|-x|-' @@ -4916,11 +4911,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - setAclWithHttpOperationResponse(accountName, setAclFilePath, aclspec, options) { + setAclWithHttpOperationResponse(accountName, path, aclspec, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._setAcl(accountName, setAclFilePath, aclspec, options, (err, result, request, response) => { + self._setAcl(accountName, path, aclspec, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -4936,8 +4931,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setAclFilePath The Data Lake Store path (starting with '/') - * of the file or directory on which to set the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory on which to set the ACL. * * @param {string} aclspec The ACL spec included in ACL creation operations in * the format '[default:]user|group|other::r|-w|-x|-' @@ -4968,7 +4963,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - setAcl(accountName, setAclFilePath, aclspec, options, optionalCallback) { + setAcl(accountName, path, aclspec, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -4977,14 +4972,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._setAcl(accountName, setAclFilePath, aclspec, options, (err, result, request, response) => { + self._setAcl(accountName, path, aclspec, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._setAcl(accountName, setAclFilePath, aclspec, options, optionalCallback); + return self._setAcl(accountName, path, aclspec, options, optionalCallback); } } @@ -4994,8 +4989,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} modifyAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being modified. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being modified. * * @param {string} aclspec The ACL specification included in ACL modification * operations in the format '[default:]user|group|other::r|-w|-x|-' @@ -5011,11 +5006,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - modifyAclEntriesWithHttpOperationResponse(accountName, modifyAclFilePath, aclspec, options) { + modifyAclEntriesWithHttpOperationResponse(accountName, path, aclspec, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._modifyAclEntries(accountName, modifyAclFilePath, aclspec, options, (err, result, request, response) => { + self._modifyAclEntries(accountName, path, aclspec, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -5031,8 +5026,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} modifyAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being modified. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being modified. * * @param {string} aclspec The ACL specification included in ACL modification * operations in the format '[default:]user|group|other::r|-w|-x|-' @@ -5063,7 +5058,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - modifyAclEntries(accountName, modifyAclFilePath, aclspec, options, optionalCallback) { + modifyAclEntries(accountName, path, aclspec, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -5072,14 +5067,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._modifyAclEntries(accountName, modifyAclFilePath, aclspec, options, (err, result, request, response) => { + self._modifyAclEntries(accountName, path, aclspec, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._modifyAclEntries(accountName, modifyAclFilePath, aclspec, options, optionalCallback); + return self._modifyAclEntries(accountName, path, aclspec, options, optionalCallback); } } @@ -5089,8 +5084,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} removeAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {string} aclspec The ACL spec included in ACL removal operations in * the format '[default:]user|group|other' @@ -5106,11 +5101,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - removeAclEntriesWithHttpOperationResponse(accountName, removeAclFilePath, aclspec, options) { + removeAclEntriesWithHttpOperationResponse(accountName, path, aclspec, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._removeAclEntries(accountName, removeAclFilePath, aclspec, options, (err, result, request, response) => { + self._removeAclEntries(accountName, path, aclspec, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -5126,8 +5121,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} removeAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {string} aclspec The ACL spec included in ACL removal operations in * the format '[default:]user|group|other' @@ -5158,7 +5153,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - removeAclEntries(accountName, removeAclFilePath, aclspec, options, optionalCallback) { + removeAclEntries(accountName, path, aclspec, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -5167,14 +5162,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._removeAclEntries(accountName, removeAclFilePath, aclspec, options, (err, result, request, response) => { + self._removeAclEntries(accountName, path, aclspec, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._removeAclEntries(accountName, removeAclFilePath, aclspec, options, optionalCallback); + return self._removeAclEntries(accountName, path, aclspec, options, optionalCallback); } } @@ -5185,8 +5180,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} defaultAclFilePath The Data Lake Store path (starting with - * '/') of the directory with the default ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory with the default ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -5199,11 +5194,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - removeDefaultAclWithHttpOperationResponse(accountName, defaultAclFilePath, options) { + removeDefaultAclWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._removeDefaultAcl(accountName, defaultAclFilePath, options, (err, result, request, response) => { + self._removeDefaultAcl(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -5220,8 +5215,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} defaultAclFilePath The Data Lake Store path (starting with - * '/') of the directory with the default ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory with the default ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -5249,7 +5244,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - removeDefaultAcl(accountName, defaultAclFilePath, options, optionalCallback) { + removeDefaultAcl(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -5258,14 +5253,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._removeDefaultAcl(accountName, defaultAclFilePath, options, (err, result, request, response) => { + self._removeDefaultAcl(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._removeDefaultAcl(accountName, defaultAclFilePath, options, optionalCallback); + return self._removeDefaultAcl(accountName, path, options, optionalCallback); } } @@ -5276,8 +5271,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -5290,11 +5285,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - removeAclWithHttpOperationResponse(accountName, aclFilePath, options) { + removeAclWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._removeAcl(accountName, aclFilePath, options, (err, result, request, response) => { + self._removeAcl(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -5311,8 +5306,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -5340,7 +5335,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - removeAcl(accountName, aclFilePath, options, optionalCallback) { + removeAcl(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -5349,14 +5344,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._removeAcl(accountName, aclFilePath, options, (err, result, request, response) => { + self._removeAcl(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._removeAcl(accountName, aclFilePath, options, optionalCallback); + return self._removeAcl(accountName, path, options, optionalCallback); } } @@ -5366,8 +5361,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to get the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to get the ACL. * * @param {object} [options] Optional Parameters. * @@ -5385,11 +5380,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - getAclStatusWithHttpOperationResponse(accountName, aclFilePath, options) { + getAclStatusWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._getAclStatus(accountName, aclFilePath, options, (err, result, request, response) => { + self._getAclStatus(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -5405,8 +5400,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to get the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to get the ACL. * * @param {object} [options] Optional Parameters. * @@ -5440,7 +5435,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - getAclStatus(accountName, aclFilePath, options, optionalCallback) { + getAclStatus(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -5449,14 +5444,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._getAclStatus(accountName, aclFilePath, options, (err, result, request, response) => { + self._getAclStatus(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._getAclStatus(accountName, aclFilePath, options, optionalCallback); + return self._getAclStatus(accountName, path, options, optionalCallback); } } @@ -5466,7 +5461,7 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the + * @param {string} path The Data Lake Store path (starting with '/') of the * file or directory to delete. * * @param {object} [options] Optional Parameters. @@ -5483,11 +5478,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - deleteMethodWithHttpOperationResponse(accountName, filePath, options) { + deleteMethodWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._deleteMethod(accountName, filePath, options, (err, result, request, response) => { + self._deleteMethod(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -5503,7 +5498,7 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the + * @param {string} path The Data Lake Store path (starting with '/') of the * file or directory to delete. * * @param {object} [options] Optional Parameters. @@ -5536,7 +5531,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(accountName, filePath, options, optionalCallback) { + deleteMethod(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -5545,14 +5540,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._deleteMethod(accountName, filePath, options, (err, result, request, response) => { + self._deleteMethod(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._deleteMethod(accountName, filePath, options, optionalCallback); + return self._deleteMethod(accountName, path, options, optionalCallback); } } @@ -5562,8 +5557,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} renameFilePath The Data Lake Store path (starting with '/') - * of the file or directory to move/rename. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory to move/rename. * * @param {string} destination The path to move/rename the file or folder to * @@ -5578,11 +5573,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - renameWithHttpOperationResponse(accountName, renameFilePath, destination, options) { + renameWithHttpOperationResponse(accountName, path, destination, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._rename(accountName, renameFilePath, destination, options, (err, result, request, response) => { + self._rename(accountName, path, destination, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -5598,8 +5593,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} renameFilePath The Data Lake Store path (starting with '/') - * of the file or directory to move/rename. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory to move/rename. * * @param {string} destination The path to move/rename the file or folder to * @@ -5630,7 +5625,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - rename(accountName, renameFilePath, destination, options, optionalCallback) { + rename(accountName, path, destination, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -5639,14 +5634,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._rename(accountName, renameFilePath, destination, options, (err, result, request, response) => { + self._rename(accountName, path, destination, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._rename(accountName, renameFilePath, destination, options, optionalCallback); + return self._rename(accountName, path, destination, options, optionalCallback); } } @@ -5656,8 +5651,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setOwnerFilePath The Data Lake Store path (starting with - * '/') of the file or directory for which to set the owner. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the owner. * * @param {object} [options] Optional Parameters. * @@ -5676,11 +5671,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - setOwnerWithHttpOperationResponse(accountName, setOwnerFilePath, options) { + setOwnerWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._setOwner(accountName, setOwnerFilePath, options, (err, result, request, response) => { + self._setOwner(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -5696,8 +5691,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setOwnerFilePath The Data Lake Store path (starting with - * '/') of the file or directory for which to set the owner. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the owner. * * @param {object} [options] Optional Parameters. * @@ -5731,7 +5726,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - setOwner(accountName, setOwnerFilePath, options, optionalCallback) { + setOwner(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -5740,14 +5735,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._setOwner(accountName, setOwnerFilePath, options, (err, result, request, response) => { + self._setOwner(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._setOwner(accountName, setOwnerFilePath, options, optionalCallback); + return self._setOwner(accountName, path, options, optionalCallback); } } @@ -5757,8 +5752,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setPermissionFilePath The Data Lake Store path (starting - * with '/') of the file or directory for which to set the permission. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the permission. * * @param {object} [options] Optional Parameters. * @@ -5774,11 +5769,11 @@ class FileSystem { * * @reject {Error} - The error object. */ - setPermissionWithHttpOperationResponse(accountName, setPermissionFilePath, options) { + setPermissionWithHttpOperationResponse(accountName, path, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._setPermission(accountName, setPermissionFilePath, options, (err, result, request, response) => { + self._setPermission(accountName, path, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -5794,8 +5789,8 @@ class FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setPermissionFilePath The Data Lake Store path (starting - * with '/') of the file or directory for which to set the permission. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the permission. * * @param {object} [options] Optional Parameters. * @@ -5826,7 +5821,7 @@ class FileSystem { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - setPermission(accountName, setPermissionFilePath, options, optionalCallback) { + setPermission(accountName, path, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -5835,14 +5830,14 @@ class FileSystem { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._setPermission(accountName, setPermissionFilePath, options, (err, result, request, response) => { + self._setPermission(accountName, path, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._setPermission(accountName, setPermissionFilePath, options, optionalCallback); + return self._setPermission(accountName, path, options, optionalCallback); } } diff --git a/lib/services/dataLake.Store/lib/filesystem/operations/index.d.ts b/lib/services/dataLake.Store/lib/filesystem/operations/index.d.ts index 82d0c5395a..adb56ff294 100644 --- a/lib/services/dataLake.Store/lib/filesystem/operations/index.d.ts +++ b/lib/services/dataLake.Store/lib/filesystem/operations/index.d.ts @@ -23,39 +23,28 @@ export interface FileSystem { /** - * Appends to the specified file, optionally first creating the file if it does - * not yet exist. This method supports multiple concurrent appends to the file. - * NOTE: The target must not contain data added by Create or normal (serial) - * Append. ConcurrentAppend and Append cannot be used interchangeably; once a - * target file has been modified using either of these append options, the - * other append option cannot be used on the target file. ConcurrentAppend does - * not guarantee order and can result in duplicated data landing in the target - * file. + * Sets or removes the expiration time on the specified file. This operation + * can only be executed against files. Folders are not supported. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file to which to append using concurrent append. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file on which to set or remove the expiration time. * - * @param {object} streamContents The file contents to include when appending - * to the file. + * @param {string} expiryOption Indicates the type of expiration to use for the + * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is + * an integer in milliseconds representing the expiration date relative to when + * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an + * integer in milliseconds representing the expiration date relative to file + * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix + * timestamp relative to 1/1/1970 00:00:00. Possible values include: + * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' * * @param {object} [options] Optional Parameters. * - * @param {string} [options.appendMode] Indicates the concurrent append call - * should create the file if it doesn't exist or just open the existing file - * for append. Possible values include: 'autocreate' - * - * @param {string} [options.syncFlag] Optionally indicates what to do after - * completion of the concurrent append. DATA indicates that more data will be - * sent immediately by the client, the file handle should remain open/locked, - * and file metadata (including file length, last modified time) should NOT get - * updated. METADATA indicates that more data will be sent immediately by the - * client, the file handle should remain open/locked, and file metadata should - * get updated. CLOSE indicates that the client is done sending data, the file - * handle should be closed/unlocked, and file metadata should get updated. - * Possible values include: 'DATA', 'METADATA', 'CLOSE' + * @param {number} [options.expireTime] The time that the file will expire, + * corresponding to the ExpiryOption that was set. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -66,42 +55,31 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - concurrentAppendWithHttpOperationResponse(accountName: string, filePath: string, streamContents: stream.Readable, options?: { appendMode? : string, syncFlag? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + setFileExpiryWithHttpOperationResponse(accountName: string, path: string, expiryOption: string, options?: { expireTime? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Appends to the specified file, optionally first creating the file if it does - * not yet exist. This method supports multiple concurrent appends to the file. - * NOTE: The target must not contain data added by Create or normal (serial) - * Append. ConcurrentAppend and Append cannot be used interchangeably; once a - * target file has been modified using either of these append options, the - * other append option cannot be used on the target file. ConcurrentAppend does - * not guarantee order and can result in duplicated data landing in the target - * file. + * Sets or removes the expiration time on the specified file. This operation + * can only be executed against files. Folders are not supported. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file to which to append using concurrent append. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file on which to set or remove the expiration time. * - * @param {object} streamContents The file contents to include when appending - * to the file. + * @param {string} expiryOption Indicates the type of expiration to use for the + * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is + * an integer in milliseconds representing the expiration date relative to when + * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an + * integer in milliseconds representing the expiration date relative to file + * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix + * timestamp relative to 1/1/1970 00:00:00. Possible values include: + * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' * * @param {object} [options] Optional Parameters. * - * @param {string} [options.appendMode] Indicates the concurrent append call - * should create the file if it doesn't exist or just open the existing file - * for append. Possible values include: 'autocreate' - * - * @param {string} [options.syncFlag] Optionally indicates what to do after - * completion of the concurrent append. DATA indicates that more data will be - * sent immediately by the client, the file handle should remain open/locked, - * and file metadata (including file length, last modified time) should NOT get - * updated. METADATA indicates that more data will be sent immediately by the - * client, the file handle should remain open/locked, and file metadata should - * get updated. CLOSE indicates that the client is done sending data, the file - * handle should be closed/unlocked, and file metadata should get updated. - * Possible values include: 'DATA', 'METADATA', 'CLOSE' + * @param {number} [options.expireTime] The time that the file will expire, + * corresponding to the ExpiryOption that was set. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -127,34 +105,45 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - concurrentAppend(accountName: string, filePath: string, streamContents: stream.Readable, options?: { appendMode? : string, syncFlag? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - concurrentAppend(accountName: string, filePath: string, streamContents: stream.Readable, callback: ServiceCallback): void; - concurrentAppend(accountName: string, filePath: string, streamContents: stream.Readable, options: { appendMode? : string, syncFlag? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + setFileExpiry(accountName: string, path: string, expiryOption: string, options?: { expireTime? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + setFileExpiry(accountName: string, path: string, expiryOption: string, callback: ServiceCallback): void; + setFileExpiry(accountName: string, path: string, expiryOption: string, options: { expireTime? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Sets or removes the expiration time on the specified file. This operation - * can only be executed against files. Folders are not supported. + * Appends to the specified file, optionally first creating the file if it does + * not yet exist. This method supports multiple concurrent appends to the file. + * NOTE: The target must not contain data added by Create or normal (serial) + * Append. ConcurrentAppend and Append cannot be used interchangeably; once a + * target file has been modified using either of these append options, the + * other append option cannot be used on the target file. ConcurrentAppend does + * not guarantee order and can result in duplicated data landing in the target + * file. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file on which to set or remove the expiration time. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append using concurrent append. * - * @param {string} expiryOption Indicates the type of expiration to use for the - * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is - * an integer in milliseconds representing the expiration date relative to when - * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an - * integer in milliseconds representing the expiration date relative to file - * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix - * timestamp relative to 1/1/1970 00:00:00. Possible values include: - * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' + * @param {object} streamContents The file contents to include when appending + * to the file. * * @param {object} [options] Optional Parameters. * - * @param {number} [options.expireTime] The time that the file will expire, - * corresponding to the ExpiryOption that was set. + * @param {string} [options.appendMode] Indicates the concurrent append call + * should create the file if it doesn't exist or just open the existing file + * for append. Possible values include: 'autocreate' + * + * @param {string} [options.syncFlag] Optionally indicates what to do after + * completion of the concurrent append. DATA indicates that more data will be + * sent immediately by the client, the file handle should remain open/locked, + * and file metadata (including file length, last modified time) should NOT get + * updated. METADATA indicates that more data will be sent immediately by the + * client, the file handle should remain open/locked, and file metadata should + * get updated. CLOSE indicates that the client is done sending data, the file + * handle should be closed/unlocked, and file metadata should get updated. + * Possible values include: 'DATA', 'METADATA', 'CLOSE' * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -165,31 +154,42 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - setFileExpiryWithHttpOperationResponse(accountName: string, filePath: string, expiryOption: string, options?: { expireTime? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; + concurrentAppendWithHttpOperationResponse(accountName: string, path: string, streamContents: stream.Readable, options?: { appendMode? : string, syncFlag? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Sets or removes the expiration time on the specified file. This operation - * can only be executed against files. Folders are not supported. + * Appends to the specified file, optionally first creating the file if it does + * not yet exist. This method supports multiple concurrent appends to the file. + * NOTE: The target must not contain data added by Create or normal (serial) + * Append. ConcurrentAppend and Append cannot be used interchangeably; once a + * target file has been modified using either of these append options, the + * other append option cannot be used on the target file. ConcurrentAppend does + * not guarantee order and can result in duplicated data landing in the target + * file. * * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the - * file on which to set or remove the expiration time. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append using concurrent append. * - * @param {string} expiryOption Indicates the type of expiration to use for the - * file: 1. NeverExpire: ExpireTime is ignored. 2. RelativeToNow: ExpireTime is - * an integer in milliseconds representing the expiration date relative to when - * file expiration is updated. 3. RelativeToCreationDate: ExpireTime is an - * integer in milliseconds representing the expiration date relative to file - * creation. 4. Absolute: ExpireTime is an integer in milliseconds, as a Unix - * timestamp relative to 1/1/1970 00:00:00. Possible values include: - * 'NeverExpire', 'RelativeToNow', 'RelativeToCreationDate', 'Absolute' + * @param {object} streamContents The file contents to include when appending + * to the file. * * @param {object} [options] Optional Parameters. * - * @param {number} [options.expireTime] The time that the file will expire, - * corresponding to the ExpiryOption that was set. + * @param {string} [options.appendMode] Indicates the concurrent append call + * should create the file if it doesn't exist or just open the existing file + * for append. Possible values include: 'autocreate' + * + * @param {string} [options.syncFlag] Optionally indicates what to do after + * completion of the concurrent append. DATA indicates that more data will be + * sent immediately by the client, the file handle should remain open/locked, + * and file metadata (including file length, last modified time) should NOT get + * updated. METADATA indicates that more data will be sent immediately by the + * client, the file handle should remain open/locked, and file metadata should + * get updated. CLOSE indicates that the client is done sending data, the file + * handle should be closed/unlocked, and file metadata should get updated. + * Possible values include: 'DATA', 'METADATA', 'CLOSE' * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -215,9 +215,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - setFileExpiry(accountName: string, filePath: string, expiryOption: string, options?: { expireTime? : number, customHeaders? : { [headerName: string]: string; } }): Promise; - setFileExpiry(accountName: string, filePath: string, expiryOption: string, callback: ServiceCallback): void; - setFileExpiry(accountName: string, filePath: string, expiryOption: string, options: { expireTime? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + concurrentAppend(accountName: string, path: string, streamContents: stream.Readable, options?: { appendMode? : string, syncFlag? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + concurrentAppend(accountName: string, path: string, streamContents: stream.Readable, callback: ServiceCallback): void; + concurrentAppend(accountName: string, path: string, streamContents: stream.Readable, options: { appendMode? : string, syncFlag? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -364,8 +364,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} destinationPath The Data Lake Store path (starting with '/') - * of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {array} sources A list of comma separated Data Lake Store paths * (starting with '/') of the files to concatenate, in the order in which they @@ -382,7 +382,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - concatWithHttpOperationResponse(accountName: string, destinationPath: string, sources: string[], options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + concatWithHttpOperationResponse(accountName: string, path: string, sources: string[], options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Concatenates the list of source files into the destination file, removing @@ -391,8 +391,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} destinationPath The Data Lake Store path (starting with '/') - * of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {array} sources A list of comma separated Data Lake Store paths * (starting with '/') of the files to concatenate, in the order in which they @@ -424,9 +424,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - concat(accountName: string, destinationPath: string, sources: string[], options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - concat(accountName: string, destinationPath: string, sources: string[], callback: ServiceCallback): void; - concat(accountName: string, destinationPath: string, sources: string[], options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + concat(accountName: string, path: string, sources: string[], options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + concat(accountName: string, path: string, sources: string[], callback: ServiceCallback): void; + concat(accountName: string, path: string, sources: string[], options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -438,8 +438,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} msConcatDestinationPath The Data Lake Store path (starting - * with '/') of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {object} streamContents A list of Data Lake Store paths (starting * with '/') of the source files. Must be a comma-separated path list in the @@ -464,7 +464,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - msConcatWithHttpOperationResponse(accountName: string, msConcatDestinationPath: string, streamContents: stream.Readable, options?: { deleteSourceDirectory? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + msConcatWithHttpOperationResponse(accountName: string, path: string, streamContents: stream.Readable, options?: { deleteSourceDirectory? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Concatenates the list of source files into the destination file, deleting @@ -475,8 +475,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} msConcatDestinationPath The Data Lake Store path (starting - * with '/') of the destination file resulting from the concatenation. + * @param {string} path The Data Lake Store path (starting with '/') of the + * destination file resulting from the concatenation. * * @param {object} streamContents A list of Data Lake Store paths (starting * with '/') of the source files. Must be a comma-separated path list in the @@ -516,9 +516,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - msConcat(accountName: string, msConcatDestinationPath: string, streamContents: stream.Readable, options?: { deleteSourceDirectory? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; - msConcat(accountName: string, msConcatDestinationPath: string, streamContents: stream.Readable, callback: ServiceCallback): void; - msConcat(accountName: string, msConcatDestinationPath: string, streamContents: stream.Readable, options: { deleteSourceDirectory? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + msConcat(accountName: string, path: string, streamContents: stream.Readable, options?: { deleteSourceDirectory? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + msConcat(accountName: string, path: string, streamContents: stream.Readable, callback: ServiceCallback): void; + msConcat(accountName: string, path: string, streamContents: stream.Readable, options: { deleteSourceDirectory? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -528,8 +528,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} listFilePath The Data Lake Store path (starting with '/') of - * the directory to list. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory to list. * * @param {object} [options] Optional Parameters. * @@ -559,7 +559,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - listFileStatusWithHttpOperationResponse(accountName: string, listFilePath: string, options?: { listSize? : number, listAfter? : string, listBefore? : string, tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + listFileStatusWithHttpOperationResponse(accountName: string, path: string, options?: { listSize? : number, listAfter? : string, listBefore? : string, tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the list of file status objects specified by the file path, with @@ -568,8 +568,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} listFilePath The Data Lake Store path (starting with '/') of - * the directory to list. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory to list. * * @param {object} [options] Optional Parameters. * @@ -615,9 +615,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listFileStatus(accountName: string, listFilePath: string, options?: { listSize? : number, listAfter? : string, listBefore? : string, tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; - listFileStatus(accountName: string, listFilePath: string, callback: ServiceCallback): void; - listFileStatus(accountName: string, listFilePath: string, options: { listSize? : number, listAfter? : string, listBefore? : string, tooId? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listFileStatus(accountName: string, path: string, options?: { listSize? : number, listAfter? : string, listBefore? : string, tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + listFileStatus(accountName: string, path: string, callback: ServiceCallback): void; + listFileStatus(accountName: string, path: string, options: { listSize? : number, listAfter? : string, listBefore? : string, tooId? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -626,8 +626,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getContentSummaryFilePath The Data Lake Store path (starting - * with '/') of the file for which to retrieve the summary. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file for which to retrieve the summary. * * @param {object} [options] Optional Parameters. * @@ -640,7 +640,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - getContentSummaryWithHttpOperationResponse(accountName: string, getContentSummaryFilePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getContentSummaryWithHttpOperationResponse(accountName: string, path: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the file content summary object specified by the file path. @@ -648,8 +648,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getContentSummaryFilePath The Data Lake Store path (starting - * with '/') of the file for which to retrieve the summary. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file for which to retrieve the summary. * * @param {object} [options] Optional Parameters. * @@ -678,9 +678,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getContentSummary(accountName: string, getContentSummaryFilePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getContentSummary(accountName: string, getContentSummaryFilePath: string, callback: ServiceCallback): void; - getContentSummary(accountName: string, getContentSummaryFilePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getContentSummary(accountName: string, path: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getContentSummary(accountName: string, path: string, callback: ServiceCallback): void; + getContentSummary(accountName: string, path: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -689,8 +689,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to retrieve the status. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to retrieve the status. * * @param {object} [options] Optional Parameters. * @@ -707,7 +707,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - getFileStatusWithHttpOperationResponse(accountName: string, getFilePath: string, options?: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + getFileStatusWithHttpOperationResponse(accountName: string, path: string, options?: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the file status object specified by the file path. @@ -715,8 +715,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} getFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to retrieve the status. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to retrieve the status. * * @param {object} [options] Optional Parameters. * @@ -749,9 +749,89 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getFileStatus(accountName: string, getFilePath: string, options?: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; - getFileStatus(accountName: string, getFilePath: string, callback: ServiceCallback): void; - getFileStatus(accountName: string, getFilePath: string, options: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getFileStatus(accountName: string, path: string, options?: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + getFileStatus(accountName: string, path: string, callback: ServiceCallback): void; + getFileStatus(accountName: string, path: string, options: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Opens and reads from the specified file. + * + * @param {string} accountName The Azure Data Lake Store account to execute + * filesystem operations on. + * + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to open. + * + * @param {object} [options] Optional Parameters. + * + * @param {number} [options.length] The number of bytes that the server will + * attempt to retrieve. It will retrieve <= length bytes. + * + * @param {number} [options.offset] The byte offset to start reading data from. + * + * @param {uuid} [options.fileSessionId] Optional unique GUID per file + * indicating all the reads with the same fileSessionId are from the same + * client and same session. This will give a performance benefit. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + openWithHttpOperationResponse(accountName: string, path: string, options?: { length? : number, offset? : number, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Opens and reads from the specified file. + * + * @param {string} accountName The Azure Data Lake Store account to execute + * filesystem operations on. + * + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to open. + * + * @param {object} [options] Optional Parameters. + * + * @param {number} [options.length] The number of bytes that the server will + * attempt to retrieve. It will retrieve <= length bytes. + * + * @param {number} [options.offset] The byte offset to start reading data from. + * + * @param {uuid} [options.fileSessionId] Optional unique GUID per file + * indicating all the reads with the same fileSessionId are from the same + * client and same session. This will give a performance benefit. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {Object} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {Object} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + open(accountName: string, path: string, options?: { length? : number, offset? : number, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + open(accountName: string, path: string, callback: ServiceCallback): void; + open(accountName: string, path: string, options: { length? : number, offset? : number, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -764,8 +844,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to which to append. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append. * * @param {object} streamContents The file contents to include when appending * to the file. @@ -803,7 +883,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - appendWithHttpOperationResponse(accountName: string, directFilePath: string, streamContents: stream.Readable, options?: { offset? : number, syncFlag? : string, leaseId? : string, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + appendWithHttpOperationResponse(accountName: string, path: string, streamContents: stream.Readable, options?: { offset? : number, syncFlag? : string, leaseId? : string, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Used for serial appends to the specified file. NOTE: The target must not @@ -815,8 +895,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to which to append. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to which to append. * * @param {object} streamContents The file contents to include when appending * to the file. @@ -869,9 +949,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - append(accountName: string, directFilePath: string, streamContents: stream.Readable, options?: { offset? : number, syncFlag? : string, leaseId? : string, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - append(accountName: string, directFilePath: string, streamContents: stream.Readable, callback: ServiceCallback): void; - append(accountName: string, directFilePath: string, streamContents: stream.Readable, options: { offset? : number, syncFlag? : string, leaseId? : string, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + append(accountName: string, path: string, streamContents: stream.Readable, options?: { offset? : number, syncFlag? : string, leaseId? : string, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + append(accountName: string, path: string, streamContents: stream.Readable, callback: ServiceCallback): void; + append(accountName: string, path: string, streamContents: stream.Readable, options: { offset? : number, syncFlag? : string, leaseId? : string, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -881,8 +961,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to create. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to create. * * @param {object} [options] Optional Parameters. * @@ -920,7 +1000,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - createWithHttpOperationResponse(accountName: string, directFilePath: string, options?: { streamContents? : stream.Readable, overwrite? : boolean, syncFlag? : string, leaseId? : string, permission? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; + createWithHttpOperationResponse(accountName: string, path: string, options?: { streamContents? : stream.Readable, overwrite? : boolean, syncFlag? : string, leaseId? : string, permission? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a file with optionally specified content. NOTE: If content is @@ -929,8 +1009,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to create. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file to create. * * @param {object} [options] Optional Parameters. * @@ -983,89 +1063,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - create(accountName: string, directFilePath: string, options?: { streamContents? : stream.Readable, overwrite? : boolean, syncFlag? : string, leaseId? : string, permission? : number, customHeaders? : { [headerName: string]: string; } }): Promise; - create(accountName: string, directFilePath: string, callback: ServiceCallback): void; - create(accountName: string, directFilePath: string, options: { streamContents? : stream.Readable, overwrite? : boolean, syncFlag? : string, leaseId? : string, permission? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Opens and reads from the specified file. - * - * @param {string} accountName The Azure Data Lake Store account to execute - * filesystem operations on. - * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to open. - * - * @param {object} [options] Optional Parameters. - * - * @param {number} [options.length] The number of bytes that the server will - * attempt to retrieve. It will retrieve <= length bytes. - * - * @param {number} [options.offset] The byte offset to start reading data from. - * - * @param {uuid} [options.fileSessionId] Optional unique GUID per file - * indicating all the reads with the same fileSessionId are from the same - * client and same session. This will give a performance benefit. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - openWithHttpOperationResponse(accountName: string, directFilePath: string, options?: { length? : number, offset? : number, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Opens and reads from the specified file. - * - * @param {string} accountName The Azure Data Lake Store account to execute - * filesystem operations on. - * - * @param {string} directFilePath The Data Lake Store path (starting with '/') - * of the file to open. - * - * @param {object} [options] Optional Parameters. - * - * @param {number} [options.length] The number of bytes that the server will - * attempt to retrieve. It will retrieve <= length bytes. - * - * @param {number} [options.offset] The byte offset to start reading data from. - * - * @param {uuid} [options.fileSessionId] Optional unique GUID per file - * indicating all the reads with the same fileSessionId are from the same - * client and same session. This will give a performance benefit. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {Object} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {Object} [result] - The deserialized result object if an error did not occur. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - open(accountName: string, directFilePath: string, options?: { length? : number, offset? : number, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - open(accountName: string, directFilePath: string, callback: ServiceCallback): void; - open(accountName: string, directFilePath: string, options: { length? : number, offset? : number, fileSessionId? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + create(accountName: string, path: string, options?: { streamContents? : stream.Readable, overwrite? : boolean, syncFlag? : string, leaseId? : string, permission? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + create(accountName: string, path: string, callback: ServiceCallback): void; + create(accountName: string, path: string, options: { streamContents? : stream.Readable, overwrite? : boolean, syncFlag? : string, leaseId? : string, permission? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1074,8 +1074,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setAclFilePath The Data Lake Store path (starting with '/') - * of the file or directory on which to set the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory on which to set the ACL. * * @param {string} aclspec The ACL spec included in ACL creation operations in * the format '[default:]user|group|other::r|-w|-x|-' @@ -1091,7 +1091,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - setAclWithHttpOperationResponse(accountName: string, setAclFilePath: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + setAclWithHttpOperationResponse(accountName: string, path: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Sets the Access Control List (ACL) for a file or folder. @@ -1099,8 +1099,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setAclFilePath The Data Lake Store path (starting with '/') - * of the file or directory on which to set the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory on which to set the ACL. * * @param {string} aclspec The ACL spec included in ACL creation operations in * the format '[default:]user|group|other::r|-w|-x|-' @@ -1131,9 +1131,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - setAcl(accountName: string, setAclFilePath: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - setAcl(accountName: string, setAclFilePath: string, aclspec: string, callback: ServiceCallback): void; - setAcl(accountName: string, setAclFilePath: string, aclspec: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + setAcl(accountName: string, path: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + setAcl(accountName: string, path: string, aclspec: string, callback: ServiceCallback): void; + setAcl(accountName: string, path: string, aclspec: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1142,8 +1142,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} modifyAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being modified. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being modified. * * @param {string} aclspec The ACL specification included in ACL modification * operations in the format '[default:]user|group|other::r|-w|-x|-' @@ -1159,7 +1159,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - modifyAclEntriesWithHttpOperationResponse(accountName: string, modifyAclFilePath: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + modifyAclEntriesWithHttpOperationResponse(accountName: string, path: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Modifies existing Access Control List (ACL) entries on a file or folder. @@ -1167,8 +1167,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} modifyAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being modified. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being modified. * * @param {string} aclspec The ACL specification included in ACL modification * operations in the format '[default:]user|group|other::r|-w|-x|-' @@ -1199,9 +1199,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - modifyAclEntries(accountName: string, modifyAclFilePath: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - modifyAclEntries(accountName: string, modifyAclFilePath: string, aclspec: string, callback: ServiceCallback): void; - modifyAclEntries(accountName: string, modifyAclFilePath: string, aclspec: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + modifyAclEntries(accountName: string, path: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + modifyAclEntries(accountName: string, path: string, aclspec: string, callback: ServiceCallback): void; + modifyAclEntries(accountName: string, path: string, aclspec: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1210,8 +1210,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} removeAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {string} aclspec The ACL spec included in ACL removal operations in * the format '[default:]user|group|other' @@ -1227,7 +1227,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - removeAclEntriesWithHttpOperationResponse(accountName: string, removeAclFilePath: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + removeAclEntriesWithHttpOperationResponse(accountName: string, path: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Removes existing Access Control List (ACL) entries for a file or folder. @@ -1235,8 +1235,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} removeAclFilePath The Data Lake Store path (starting with - * '/') of the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {string} aclspec The ACL spec included in ACL removal operations in * the format '[default:]user|group|other' @@ -1267,9 +1267,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - removeAclEntries(accountName: string, removeAclFilePath: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - removeAclEntries(accountName: string, removeAclFilePath: string, aclspec: string, callback: ServiceCallback): void; - removeAclEntries(accountName: string, removeAclFilePath: string, aclspec: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + removeAclEntries(accountName: string, path: string, aclspec: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + removeAclEntries(accountName: string, path: string, aclspec: string, callback: ServiceCallback): void; + removeAclEntries(accountName: string, path: string, aclspec: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1279,8 +1279,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} defaultAclFilePath The Data Lake Store path (starting with - * '/') of the directory with the default ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory with the default ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -1293,7 +1293,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - removeDefaultAclWithHttpOperationResponse(accountName: string, defaultAclFilePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + removeDefaultAclWithHttpOperationResponse(accountName: string, path: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Removes the existing Default Access Control List (ACL) of the specified @@ -1302,8 +1302,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} defaultAclFilePath The Data Lake Store path (starting with - * '/') of the directory with the default ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * directory with the default ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -1331,9 +1331,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - removeDefaultAcl(accountName: string, defaultAclFilePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - removeDefaultAcl(accountName: string, defaultAclFilePath: string, callback: ServiceCallback): void; - removeDefaultAcl(accountName: string, defaultAclFilePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + removeDefaultAcl(accountName: string, path: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + removeDefaultAcl(accountName: string, path: string, callback: ServiceCallback): void; + removeDefaultAcl(accountName: string, path: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1343,8 +1343,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -1357,7 +1357,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - removeAclWithHttpOperationResponse(accountName: string, aclFilePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + removeAclWithHttpOperationResponse(accountName: string, path: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Removes the existing Access Control List (ACL) of the specified file or @@ -1366,8 +1366,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory with the ACL being removed. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory with the ACL being removed. * * @param {object} [options] Optional Parameters. * @@ -1395,9 +1395,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - removeAcl(accountName: string, aclFilePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - removeAcl(accountName: string, aclFilePath: string, callback: ServiceCallback): void; - removeAcl(accountName: string, aclFilePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + removeAcl(accountName: string, path: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + removeAcl(accountName: string, path: string, callback: ServiceCallback): void; + removeAcl(accountName: string, path: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1406,8 +1406,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to get the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to get the ACL. * * @param {object} [options] Optional Parameters. * @@ -1425,7 +1425,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - getAclStatusWithHttpOperationResponse(accountName: string, aclFilePath: string, options?: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + getAclStatusWithHttpOperationResponse(accountName: string, path: string, options?: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets Access Control List (ACL) entries for the specified file or directory. @@ -1433,8 +1433,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} aclFilePath The Data Lake Store path (starting with '/') of - * the file or directory for which to get the ACL. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to get the ACL. * * @param {object} [options] Optional Parameters. * @@ -1468,9 +1468,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getAclStatus(accountName: string, aclFilePath: string, options?: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; - getAclStatus(accountName: string, aclFilePath: string, callback: ServiceCallback): void; - getAclStatus(accountName: string, aclFilePath: string, options: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getAclStatus(accountName: string, path: string, options?: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + getAclStatus(accountName: string, path: string, callback: ServiceCallback): void; + getAclStatus(accountName: string, path: string, options: { tooId? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1479,7 +1479,7 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the + * @param {string} path The Data Lake Store path (starting with '/') of the * file or directory to delete. * * @param {object} [options] Optional Parameters. @@ -1496,7 +1496,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(accountName: string, filePath: string, options?: { recursive? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(accountName: string, path: string, options?: { recursive? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the requested file or directory, optionally recursively. @@ -1504,7 +1504,7 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} filePath The Data Lake Store path (starting with '/') of the + * @param {string} path The Data Lake Store path (starting with '/') of the * file or directory to delete. * * @param {object} [options] Optional Parameters. @@ -1537,9 +1537,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(accountName: string, filePath: string, options?: { recursive? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(accountName: string, filePath: string, callback: ServiceCallback): void; - deleteMethod(accountName: string, filePath: string, options: { recursive? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(accountName: string, path: string, options?: { recursive? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(accountName: string, path: string, callback: ServiceCallback): void; + deleteMethod(accountName: string, path: string, options: { recursive? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1548,8 +1548,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} renameFilePath The Data Lake Store path (starting with '/') - * of the file or directory to move/rename. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory to move/rename. * * @param {string} destination The path to move/rename the file or folder to * @@ -1564,7 +1564,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - renameWithHttpOperationResponse(accountName: string, renameFilePath: string, destination: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + renameWithHttpOperationResponse(accountName: string, path: string, destination: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Rename a file or directory. @@ -1572,8 +1572,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} renameFilePath The Data Lake Store path (starting with '/') - * of the file or directory to move/rename. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory to move/rename. * * @param {string} destination The path to move/rename the file or folder to * @@ -1604,9 +1604,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - rename(accountName: string, renameFilePath: string, destination: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - rename(accountName: string, renameFilePath: string, destination: string, callback: ServiceCallback): void; - rename(accountName: string, renameFilePath: string, destination: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + rename(accountName: string, path: string, destination: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + rename(accountName: string, path: string, destination: string, callback: ServiceCallback): void; + rename(accountName: string, path: string, destination: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1615,8 +1615,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setOwnerFilePath The Data Lake Store path (starting with - * '/') of the file or directory for which to set the owner. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the owner. * * @param {object} [options] Optional Parameters. * @@ -1635,7 +1635,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - setOwnerWithHttpOperationResponse(accountName: string, setOwnerFilePath: string, options?: { owner? : string, group? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + setOwnerWithHttpOperationResponse(accountName: string, path: string, options?: { owner? : string, group? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Sets the owner of a file or directory. @@ -1643,8 +1643,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setOwnerFilePath The Data Lake Store path (starting with - * '/') of the file or directory for which to set the owner. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the owner. * * @param {object} [options] Optional Parameters. * @@ -1678,9 +1678,9 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - setOwner(accountName: string, setOwnerFilePath: string, options?: { owner? : string, group? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - setOwner(accountName: string, setOwnerFilePath: string, callback: ServiceCallback): void; - setOwner(accountName: string, setOwnerFilePath: string, options: { owner? : string, group? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + setOwner(accountName: string, path: string, options?: { owner? : string, group? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + setOwner(accountName: string, path: string, callback: ServiceCallback): void; + setOwner(accountName: string, path: string, options: { owner? : string, group? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1689,8 +1689,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setPermissionFilePath The Data Lake Store path (starting - * with '/') of the file or directory for which to set the permission. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the permission. * * @param {object} [options] Optional Parameters. * @@ -1706,7 +1706,7 @@ export interface FileSystem { * * @reject {Error|ServiceError} - The error object. */ - setPermissionWithHttpOperationResponse(accountName: string, setPermissionFilePath: string, options?: { permission? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + setPermissionWithHttpOperationResponse(accountName: string, path: string, options?: { permission? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Sets the permission of the file or folder. @@ -1714,8 +1714,8 @@ export interface FileSystem { * @param {string} accountName The Azure Data Lake Store account to execute * filesystem operations on. * - * @param {string} setPermissionFilePath The Data Lake Store path (starting - * with '/') of the file or directory for which to set the permission. + * @param {string} path The Data Lake Store path (starting with '/') of the + * file or directory for which to set the permission. * * @param {object} [options] Optional Parameters. * @@ -1746,7 +1746,7 @@ export interface FileSystem { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - setPermission(accountName: string, setPermissionFilePath: string, options?: { permission? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - setPermission(accountName: string, setPermissionFilePath: string, callback: ServiceCallback): void; - setPermission(accountName: string, setPermissionFilePath: string, options: { permission? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + setPermission(accountName: string, path: string, options?: { permission? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + setPermission(accountName: string, path: string, callback: ServiceCallback): void; + setPermission(accountName: string, path: string, options: { permission? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } diff --git a/lib/services/dataLake.Store/package.json b/lib/services/dataLake.Store/package.json index 333bfa7bd1..3c4c79d522 100644 --- a/lib/services/dataLake.Store/package.json +++ b/lib/services/dataLake.Store/package.json @@ -2,9 +2,10 @@ "name": "azure-arm-datalake-store", "author": "Microsoft Corporation", "contributors": [ - "Goldsmith, Benjamin " + "Goldsmith, Benjamin ", + "Ro, Joo Wan " ], - "version": "2.1.0-preview", + "version": "2.2.0-preview", "description": "Microsoft Azure Data Lake Store Management Client Library for node", "tags": [ "azure", diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_Delete_command_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_Delete_command_should_work.nock.js index 5602686e00..8accd27e7f 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_Delete_command_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_Delete_command_should_work.nock.js @@ -3,78 +3,78 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') - .delete('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01') + .delete('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': 'b4612567-44b9-4680-aafc-a88636e17c5a', + 'x-ms-request-id': '47a5eb6c-92e0-420f-9671-7c8707fed245', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1196', - 'x-ms-correlation-request-id': '181890f2-478b-480a-8e98-2956f748dcaf', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205621Z:181890f2-478b-480a-8e98-2956f748dcaf', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '45619673-32c6-42f4-9d62-03120aca66b8', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173952Z:45619673-32c6-42f4-9d62-03120aca66b8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:21 GMT', + date: 'Tue, 25 Jul 2017 17:39:52 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .delete('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01') + .delete('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': 'b4612567-44b9-4680-aafc-a88636e17c5a', + 'x-ms-request-id': '47a5eb6c-92e0-420f-9671-7c8707fed245', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1196', - 'x-ms-correlation-request-id': '181890f2-478b-480a-8e98-2956f748dcaf', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205621Z:181890f2-478b-480a-8e98-2956f748dcaf', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '45619673-32c6-42f4-9d62-03120aca66b8', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173952Z:45619673-32c6-42f4-9d62-03120aca66b8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:21 GMT', + date: 'Tue, 25 Jul 2017 17:39:52 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01') - .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.DataLakeStore/accounts/xplattestadls4679' under resource group 'xplattestadlarg05' was not found.\"}}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01') + .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.DataLakeStore/accounts/xplattestadls9269' under resource group 'xplattestadlarg05' was not found.\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'x-ms-failure-cause': 'gateway', - 'x-ms-request-id': '02ae955a-163f-425e-be9d-f1bdfaf47d25', - 'x-ms-correlation-request-id': '02ae955a-163f-425e-be9d-f1bdfaf47d25', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205621Z:02ae955a-163f-425e-be9d-f1bdfaf47d25', + 'x-ms-request-id': '3c1aa6a6-a2fe-4683-8497-3c78ae6c3ced', + 'x-ms-correlation-request-id': '3c1aa6a6-a2fe-4683-8497-3c78ae6c3ced', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173953Z:3c1aa6a6-a2fe-4683-8497-3c78ae6c3ced', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:20 GMT', + date: 'Tue, 25 Jul 2017 17:39:52 GMT', connection: 'close', 'content-length': '171' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01') - .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.DataLakeStore/accounts/xplattestadls4679' under resource group 'xplattestadlarg05' was not found.\"}}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01') + .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.DataLakeStore/accounts/xplattestadls9269' under resource group 'xplattestadlarg05' was not found.\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'x-ms-failure-cause': 'gateway', - 'x-ms-request-id': '02ae955a-163f-425e-be9d-f1bdfaf47d25', - 'x-ms-correlation-request-id': '02ae955a-163f-425e-be9d-f1bdfaf47d25', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205621Z:02ae955a-163f-425e-be9d-f1bdfaf47d25', + 'x-ms-request-id': '3c1aa6a6-a2fe-4683-8497-3c78ae6c3ced', + 'x-ms-correlation-request-id': '3c1aa6a6-a2fe-4683-8497-3c78ae6c3ced', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173953Z:3c1aa6a6-a2fe-4683-8497-3c78ae6c3ced', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:20 GMT', + date: 'Tue, 25 Jul 2017 17:39:52 GMT', connection: 'close', 'content-length': '171' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_create_account_with_same_name_should_fail.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_create_account_with_same_name_should_fail.nock.js index 3fcab7864c..12a9444c1f 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_create_account_with_same_name_should_fail.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_create_account_with_same_name_should_fail.nock.js @@ -3,50 +3,50 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadls2174/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01', '*') +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadls663/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01', '*') .reply(409, "{\"error\":{\"code\":\"ResourceConflicted\",\"message\":\"Resource Name belongs to another resource.\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '94', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '3d10e7a8-f3bf-4187-8225-f3bcb1fe1309', + 'x-ms-request-id': 'e5a07f0b-19bd-49d1-af35-7e5d1e814dcb', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1196', - 'x-ms-correlation-request-id': '70a29891-5282-4761-84e3-cddaa93f311c', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205614Z:70a29891-5282-4761-84e3-cddaa93f311c', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '682b49e0-98bf-4f14-8cbf-a26eb35a9d13', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173944Z:682b49e0-98bf-4f14-8cbf-a26eb35a9d13', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:14 GMT', + date: 'Tue, 25 Jul 2017 17:39:43 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadls2174/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01', '*') +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadls663/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01', '*') .reply(409, "{\"error\":{\"code\":\"ResourceConflicted\",\"message\":\"Resource Name belongs to another resource.\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '94', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '3d10e7a8-f3bf-4187-8225-f3bcb1fe1309', + 'x-ms-request-id': 'e5a07f0b-19bd-49d1-af35-7e5d1e814dcb', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1196', - 'x-ms-correlation-request-id': '70a29891-5282-4761-84e3-cddaa93f311c', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205614Z:70a29891-5282-4761-84e3-cddaa93f311c', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '682b49e0-98bf-4f14-8cbf-a26eb35a9d13', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173944Z:682b49e0-98bf-4f14-8cbf-a26eb35a9d13', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:14 GMT', + date: 'Tue, 25 Jul 2017 17:39:43 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_create_command_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_create_command_should_work.nock.js index 538cfd2ece..a07cb40b8a 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_create_command_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_create_command_should_work.nock.js @@ -3,140 +3,140 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01', '*') - .reply(201, "{\"properties\":{\"provisioningState\":\"Creating\",\"state\":null,\"endpoint\":null,\"accountId\":\"4721d5b3-41f7-4855-9279-886046a13414\",\"creationTime\":null,\"lastModifiedTime\":null},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679\",\"name\":\"xplattestadls4679\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01', '*') + .reply(201, "{\"properties\":{\"provisioningState\":\"Creating\",\"state\":null,\"endpoint\":null,\"accountId\":\"b9451d7c-eb00-4e6d-a1e0-fbae405d972b\",\"creationTime\":null,\"lastModifiedTime\":null},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269\",\"name\":\"xplattestadls9269\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '471', 'content-type': 'application/json', expires: '-1', - location: 'https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679/operationresults/0?api-version=2016-11-01', + location: 'https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269/operationresults/0?api-version=2016-11-01', 'retry-after': '10', - 'azure-asyncoperation': 'https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/4721d5b3-41f7-4855-9279-886046a134140?api-version=2016-11-01&expanded=true', - 'x-ms-request-id': 'c71e4d23-bca1-453c-9909-c54df1ce082b', + 'azure-asyncoperation': 'https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/b9451d7c-eb00-4e6d-a1e0-fbae405d972b0?api-version=2016-11-01&expanded=true', + 'x-ms-request-id': '97dfeb6a-d73b-4c20-9ee0-cb37efad869c', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': 'b599a5c4-cbcd-49cb-af68-9c05e019a57f', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205541Z:b599a5c4-cbcd-49cb-af68-9c05e019a57f', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '28b26c2b-0d78-4394-b6c2-fbe2e8dd56fd', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173911Z:28b26c2b-0d78-4394-b6c2-fbe2e8dd56fd', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:55:41 GMT', + date: 'Tue, 25 Jul 2017 17:39:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01', '*') - .reply(201, "{\"properties\":{\"provisioningState\":\"Creating\",\"state\":null,\"endpoint\":null,\"accountId\":\"4721d5b3-41f7-4855-9279-886046a13414\",\"creationTime\":null,\"lastModifiedTime\":null},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679\",\"name\":\"xplattestadls4679\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01', '*') + .reply(201, "{\"properties\":{\"provisioningState\":\"Creating\",\"state\":null,\"endpoint\":null,\"accountId\":\"b9451d7c-eb00-4e6d-a1e0-fbae405d972b\",\"creationTime\":null,\"lastModifiedTime\":null},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269\",\"name\":\"xplattestadls9269\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '471', 'content-type': 'application/json', expires: '-1', - location: 'https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourcegroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679/operationresults/0?api-version=2016-11-01', + location: 'https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269/operationresults/0?api-version=2016-11-01', 'retry-after': '10', - 'azure-asyncoperation': 'https://management.azure.com/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/4721d5b3-41f7-4855-9279-886046a134140?api-version=2016-11-01&expanded=true', - 'x-ms-request-id': 'c71e4d23-bca1-453c-9909-c54df1ce082b', + 'azure-asyncoperation': 'https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/b9451d7c-eb00-4e6d-a1e0-fbae405d972b0?api-version=2016-11-01&expanded=true', + 'x-ms-request-id': '97dfeb6a-d73b-4c20-9ee0-cb37efad869c', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': 'b599a5c4-cbcd-49cb-af68-9c05e019a57f', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205541Z:b599a5c4-cbcd-49cb-af68-9c05e019a57f', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '28b26c2b-0d78-4394-b6c2-fbe2e8dd56fd', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173911Z:28b26c2b-0d78-4394-b6c2-fbe2e8dd56fd', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:55:41 GMT', + date: 'Tue, 25 Jul 2017 17:39:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/4721d5b3-41f7-4855-9279-886046a134140?api-version=2016-11-01&expanded=true') + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/b9451d7c-eb00-4e6d-a1e0-fbae405d972b0?api-version=2016-11-01&expanded=true') .reply(200, "{\"status\":\"Succeeded\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '22', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '4663f920-7945-4866-bcbf-4f47825816e8', + 'x-ms-request-id': 'd83092a4-1a32-4521-89c4-bd40281bc9f5', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14996', - 'x-ms-correlation-request-id': 'd59b7851-8201-44e7-b987-27bcd8bb1538', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205612Z:d59b7851-8201-44e7-b987-27bcd8bb1538', + 'x-ms-ratelimit-remaining-subscription-reads': '14993', + 'x-ms-correlation-request-id': '2cc8ce39-e745-4628-bbf8-5cd06f55134a', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173941Z:2cc8ce39-e745-4628-bbf8-5cd06f55134a', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:11 GMT', + date: 'Tue, 25 Jul 2017 17:39:41 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/4721d5b3-41f7-4855-9279-886046a134140?api-version=2016-11-01&expanded=true') + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/b9451d7c-eb00-4e6d-a1e0-fbae405d972b0?api-version=2016-11-01&expanded=true') .reply(200, "{\"status\":\"Succeeded\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '22', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '4663f920-7945-4866-bcbf-4f47825816e8', + 'x-ms-request-id': 'd83092a4-1a32-4521-89c4-bd40281bc9f5', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14996', - 'x-ms-correlation-request-id': 'd59b7851-8201-44e7-b987-27bcd8bb1538', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205612Z:d59b7851-8201-44e7-b987-27bcd8bb1538', + 'x-ms-ratelimit-remaining-subscription-reads': '14993', + 'x-ms-correlation-request-id': '2cc8ce39-e745-4628-bbf8-5cd06f55134a', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173941Z:2cc8ce39-e745-4628-bbf8-5cd06f55134a', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:11 GMT', + date: 'Tue, 25 Jul 2017 17:39:41 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls4679.azuredatalakestore.net\",\"accountId\":\"4721d5b3-41f7-4855-9279-886046a13414\",\"creationTime\":\"2017-03-23T20:55:41.1422826Z\",\"lastModifiedTime\":\"2017-03-23T20:55:41.1422826Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679\",\"name\":\"xplattestadls4679\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls9269.azuredatalakestore.net\",\"accountId\":\"b9451d7c-eb00-4e6d-a1e0-fbae405d972b\",\"creationTime\":\"2017-07-25T17:39:11.1146928Z\",\"lastModifiedTime\":\"2017-07-25T17:39:11.1146928Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269\",\"name\":\"xplattestadls9269\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '797', + 'content-length': '832', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '134fef21-5791-4f14-869e-e9b3b12434c2', + 'x-ms-request-id': '70a9f4fd-106e-46f9-945e-cc9858a334be', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14997', - 'x-ms-correlation-request-id': '5e4ea424-fae6-4d7a-b9f4-bf10fc266b54', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205612Z:5e4ea424-fae6-4d7a-b9f4-bf10fc266b54', + 'x-ms-ratelimit-remaining-subscription-reads': '14994', + 'x-ms-correlation-request-id': 'e8803864-c3c4-4deb-a74f-203ff7871a30', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173942Z:e8803864-c3c4-4deb-a74f-203ff7871a30', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:12 GMT', + date: 'Tue, 25 Jul 2017 17:39:42 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls4679.azuredatalakestore.net\",\"accountId\":\"4721d5b3-41f7-4855-9279-886046a13414\",\"creationTime\":\"2017-03-23T20:55:41.1422826Z\",\"lastModifiedTime\":\"2017-03-23T20:55:41.1422826Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679\",\"name\":\"xplattestadls4679\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls9269.azuredatalakestore.net\",\"accountId\":\"b9451d7c-eb00-4e6d-a1e0-fbae405d972b\",\"creationTime\":\"2017-07-25T17:39:11.1146928Z\",\"lastModifiedTime\":\"2017-07-25T17:39:11.1146928Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269\",\"name\":\"xplattestadls9269\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '797', + 'content-length': '832', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '134fef21-5791-4f14-869e-e9b3b12434c2', + 'x-ms-request-id': '70a9f4fd-106e-46f9-945e-cc9858a334be', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14997', - 'x-ms-correlation-request-id': '5e4ea424-fae6-4d7a-b9f4-bf10fc266b54', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205612Z:5e4ea424-fae6-4d7a-b9f4-bf10fc266b54', + 'x-ms-ratelimit-remaining-subscription-reads': '14994', + 'x-ms-correlation-request-id': 'e8803864-c3c4-4deb-a74f-203ff7871a30', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173942Z:e8803864-c3c4-4deb-a74f-203ff7871a30', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:12 GMT', + date: 'Tue, 25 Jul 2017 17:39:42 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_get_command_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_get_command_should_work.nock.js index aab8fa3192..707476430c 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_get_command_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_get_command_should_work.nock.js @@ -3,48 +3,48 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls1277.azuredatalakestore.net\",\"accountId\":\"07a865e6-8bd2-4d0d-9355-7fefa473b801\",\"creationTime\":\"2017-03-23T20:55:06.9490342Z\",\"lastModifiedTime\":\"2017-03-23T20:55:06.9490342Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277\",\"name\":\"xplattestadls1277\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls363.azuredatalakestore.net\",\"accountId\":\"c38b3a2d-29bd-416c-9308-f41b5063e4f2\",\"creationTime\":\"2017-07-25T17:38:38.7685204Z\",\"lastModifiedTime\":\"2017-07-25T17:38:38.7685204Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363\",\"name\":\"xplattestadls363\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '752', + 'content-length': '784', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '8582e7cf-f4e2-4f49-8cf2-f6bad1bb4eb6', + 'x-ms-request-id': '6a0fe9c0-b6ab-4ff3-b167-a13c32384ba2', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14995', - 'x-ms-correlation-request-id': '31ee6221-29f3-49f0-8d2c-439468ac3ce9', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205615Z:31ee6221-29f3-49f0-8d2c-439468ac3ce9', + 'x-ms-ratelimit-remaining-subscription-reads': '14994', + 'x-ms-correlation-request-id': '018a3bbf-8a78-4b7e-8de1-421b776c8b1d', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173945Z:018a3bbf-8a78-4b7e-8de1-421b776c8b1d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:15 GMT', + date: 'Tue, 25 Jul 2017 17:39:44 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls1277.azuredatalakestore.net\",\"accountId\":\"07a865e6-8bd2-4d0d-9355-7fefa473b801\",\"creationTime\":\"2017-03-23T20:55:06.9490342Z\",\"lastModifiedTime\":\"2017-03-23T20:55:06.9490342Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277\",\"name\":\"xplattestadls1277\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls363.azuredatalakestore.net\",\"accountId\":\"c38b3a2d-29bd-416c-9308-f41b5063e4f2\",\"creationTime\":\"2017-07-25T17:38:38.7685204Z\",\"lastModifiedTime\":\"2017-07-25T17:38:38.7685204Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363\",\"name\":\"xplattestadls363\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '752', + 'content-length': '784', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '8582e7cf-f4e2-4f49-8cf2-f6bad1bb4eb6', + 'x-ms-request-id': '6a0fe9c0-b6ab-4ff3-b167-a13c32384ba2', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14995', - 'x-ms-correlation-request-id': '31ee6221-29f3-49f0-8d2c-439468ac3ce9', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205615Z:31ee6221-29f3-49f0-8d2c-439468ac3ce9', + 'x-ms-ratelimit-remaining-subscription-reads': '14994', + 'x-ms-correlation-request-id': '018a3bbf-8a78-4b7e-8de1-421b776c8b1d', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173945Z:018a3bbf-8a78-4b7e-8de1-421b776c8b1d', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:15 GMT', + date: 'Tue, 25 Jul 2017 17:39:44 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_list_commands_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_list_commands_should_work.nock.js index 65c1131c57..66da1ec9dd 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_list_commands_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_list_commands_should_work.nock.js @@ -3,90 +3,90 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"adlspytest01.azuredatalakestore.net\",\"accountId\":\"b898aca7-703c-401c-a082-e4d642d1ab13\",\"creationTime\":\"2017-03-20T23:56:40.4922183Z\",\"lastModifiedTime\":\"2017-03-20T23:56:40.4922183Z\"},\"location\":\"east us2\",\"tags\":{},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/adlspytestrg01/providers/Microsoft.DataLakeStore/accounts/adlspytest01\",\"name\":\"adlspytest01\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"adlspyperf01.azuredatalakestore.net\",\"accountId\":\"e41d9d8b-9c52-4522-8df1-fd51a7658405\",\"creationTime\":\"2017-03-20T19:10:49.7339872Z\",\"lastModifiedTime\":\"2017-03-20T19:10:49.7339872Z\"},\"location\":\"east us2\",\"tags\":{},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/pytest01/providers/Microsoft.DataLakeStore/accounts/adlspyperf01\",\"name\":\"adlspyperf01\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls1277.azuredatalakestore.net\",\"accountId\":\"07a865e6-8bd2-4d0d-9355-7fefa473b801\",\"creationTime\":\"2017-03-23T20:55:06.9490342Z\",\"lastModifiedTime\":\"2017-03-23T20:55:06.9490342Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277\",\"name\":\"xplattestadls1277\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls4679.azuredatalakestore.net\",\"accountId\":\"4721d5b3-41f7-4855-9279-886046a13414\",\"creationTime\":\"2017-03-23T20:55:41.1422826Z\",\"lastModifiedTime\":\"2017-03-23T20:55:41.1422826Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679\",\"name\":\"xplattestadls4679\",\"type\":\"Microsoft.DataLakeStore/accounts\"}]}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01') + .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"begoldsmadls01.azuredatalakestore.net\",\"accountId\":\"94f4bf5d-78a9-4c31-8aa7-b34d07bad898\",\"creationTime\":\"2017-03-29T21:49:35.189795Z\",\"lastModifiedTime\":\"2017-03-29T21:49:35.189795Z\"},\"location\":\"eastus2\",\"tags\":{},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/begoldsmadlsrg01/providers/Microsoft.DataLakeStore/accounts/begoldsmadls01\",\"name\":\"begoldsmadls01\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls363.azuredatalakestore.net\",\"accountId\":\"c38b3a2d-29bd-416c-9308-f41b5063e4f2\",\"creationTime\":\"2017-07-25T17:38:38.7685204Z\",\"lastModifiedTime\":\"2017-07-25T17:38:38.7685204Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363\",\"name\":\"xplattestadls363\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls9269.azuredatalakestore.net\",\"accountId\":\"b9451d7c-eb00-4e6d-a1e0-fbae405d972b\",\"creationTime\":\"2017-07-25T17:39:11.1146928Z\",\"lastModifiedTime\":\"2017-07-25T17:39:11.1146928Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269\",\"name\":\"xplattestadls9269\",\"type\":\"Microsoft.DataLakeStore/accounts\"}]}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '2100', + 'content-length': '1605', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'a7ac880c-a735-4ca5-bcc9-86b16177ccea', + 'x-ms-request-id': '98102db3-5545-40a3-9a7b-638dce23d506', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14998', - 'x-ms-correlation-request-id': '439bde0e-3687-4388-8736-0bdda511c39c', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205616Z:439bde0e-3687-4388-8736-0bdda511c39c', + 'x-ms-ratelimit-remaining-subscription-reads': '14993', + 'x-ms-correlation-request-id': '123dbaed-d962-4eed-920f-e0c6d6a2c834', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173945Z:123dbaed-d962-4eed-920f-e0c6d6a2c834', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:15 GMT', + date: 'Tue, 25 Jul 2017 17:39:45 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"adlspytest01.azuredatalakestore.net\",\"accountId\":\"b898aca7-703c-401c-a082-e4d642d1ab13\",\"creationTime\":\"2017-03-20T23:56:40.4922183Z\",\"lastModifiedTime\":\"2017-03-20T23:56:40.4922183Z\"},\"location\":\"east us2\",\"tags\":{},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/adlspytestrg01/providers/Microsoft.DataLakeStore/accounts/adlspytest01\",\"name\":\"adlspytest01\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"adlspyperf01.azuredatalakestore.net\",\"accountId\":\"e41d9d8b-9c52-4522-8df1-fd51a7658405\",\"creationTime\":\"2017-03-20T19:10:49.7339872Z\",\"lastModifiedTime\":\"2017-03-20T19:10:49.7339872Z\"},\"location\":\"east us2\",\"tags\":{},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/pytest01/providers/Microsoft.DataLakeStore/accounts/adlspyperf01\",\"name\":\"adlspyperf01\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls1277.azuredatalakestore.net\",\"accountId\":\"07a865e6-8bd2-4d0d-9355-7fefa473b801\",\"creationTime\":\"2017-03-23T20:55:06.9490342Z\",\"lastModifiedTime\":\"2017-03-23T20:55:06.9490342Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277\",\"name\":\"xplattestadls1277\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls4679.azuredatalakestore.net\",\"accountId\":\"4721d5b3-41f7-4855-9279-886046a13414\",\"creationTime\":\"2017-03-23T20:55:41.1422826Z\",\"lastModifiedTime\":\"2017-03-23T20:55:41.1422826Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679\",\"name\":\"xplattestadls4679\",\"type\":\"Microsoft.DataLakeStore/accounts\"}]}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01') + .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"begoldsmadls01.azuredatalakestore.net\",\"accountId\":\"94f4bf5d-78a9-4c31-8aa7-b34d07bad898\",\"creationTime\":\"2017-03-29T21:49:35.189795Z\",\"lastModifiedTime\":\"2017-03-29T21:49:35.189795Z\"},\"location\":\"eastus2\",\"tags\":{},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/begoldsmadlsrg01/providers/Microsoft.DataLakeStore/accounts/begoldsmadls01\",\"name\":\"begoldsmadls01\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls363.azuredatalakestore.net\",\"accountId\":\"c38b3a2d-29bd-416c-9308-f41b5063e4f2\",\"creationTime\":\"2017-07-25T17:38:38.7685204Z\",\"lastModifiedTime\":\"2017-07-25T17:38:38.7685204Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363\",\"name\":\"xplattestadls363\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls9269.azuredatalakestore.net\",\"accountId\":\"b9451d7c-eb00-4e6d-a1e0-fbae405d972b\",\"creationTime\":\"2017-07-25T17:39:11.1146928Z\",\"lastModifiedTime\":\"2017-07-25T17:39:11.1146928Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269\",\"name\":\"xplattestadls9269\",\"type\":\"Microsoft.DataLakeStore/accounts\"}]}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '2100', + 'content-length': '1605', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'a7ac880c-a735-4ca5-bcc9-86b16177ccea', + 'x-ms-request-id': '98102db3-5545-40a3-9a7b-638dce23d506', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14998', - 'x-ms-correlation-request-id': '439bde0e-3687-4388-8736-0bdda511c39c', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205616Z:439bde0e-3687-4388-8736-0bdda511c39c', + 'x-ms-ratelimit-remaining-subscription-reads': '14993', + 'x-ms-correlation-request-id': '123dbaed-d962-4eed-920f-e0c6d6a2c834', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173945Z:123dbaed-d962-4eed-920f-e0c6d6a2c834', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:15 GMT', + date: 'Tue, 25 Jul 2017 17:39:45 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls1277.azuredatalakestore.net\",\"accountId\":\"07a865e6-8bd2-4d0d-9355-7fefa473b801\",\"creationTime\":\"2017-03-23T20:55:06.9490342Z\",\"lastModifiedTime\":\"2017-03-23T20:55:06.9490342Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277\",\"name\":\"xplattestadls1277\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls4679.azuredatalakestore.net\",\"accountId\":\"4721d5b3-41f7-4855-9279-886046a13414\",\"creationTime\":\"2017-03-23T20:55:41.1422826Z\",\"lastModifiedTime\":\"2017-03-23T20:55:41.1422826Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679\",\"name\":\"xplattestadls4679\",\"type\":\"Microsoft.DataLakeStore/accounts\"}]}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01') + .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls363.azuredatalakestore.net\",\"accountId\":\"c38b3a2d-29bd-416c-9308-f41b5063e4f2\",\"creationTime\":\"2017-07-25T17:38:38.7685204Z\",\"lastModifiedTime\":\"2017-07-25T17:38:38.7685204Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363\",\"name\":\"xplattestadls363\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls9269.azuredatalakestore.net\",\"accountId\":\"b9451d7c-eb00-4e6d-a1e0-fbae405d972b\",\"creationTime\":\"2017-07-25T17:39:11.1146928Z\",\"lastModifiedTime\":\"2017-07-25T17:39:11.1146928Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269\",\"name\":\"xplattestadls9269\",\"type\":\"Microsoft.DataLakeStore/accounts\"}]}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1100', + 'content-length': '1097', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '860454b0-bb8c-4a46-9452-10706648da18', + 'x-ms-request-id': 'f0ad32fe-220c-42ae-8c9a-ded05bb9ca50', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14997', - 'x-ms-correlation-request-id': 'd02d247c-8927-46ad-9690-5583548394a2', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205616Z:d02d247c-8927-46ad-9690-5583548394a2', + 'x-ms-ratelimit-remaining-subscription-reads': '14991', + 'x-ms-correlation-request-id': '74dca1cc-9b66-4a21-88f5-dd961e8dc187', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173946Z:74dca1cc-9b66-4a21-88f5-dd961e8dc187', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:15 GMT', + date: 'Tue, 25 Jul 2017 17:39:46 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls1277.azuredatalakestore.net\",\"accountId\":\"07a865e6-8bd2-4d0d-9355-7fefa473b801\",\"creationTime\":\"2017-03-23T20:55:06.9490342Z\",\"lastModifiedTime\":\"2017-03-23T20:55:06.9490342Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277\",\"name\":\"xplattestadls1277\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls4679.azuredatalakestore.net\",\"accountId\":\"4721d5b3-41f7-4855-9279-886046a13414\",\"creationTime\":\"2017-03-23T20:55:41.1422826Z\",\"lastModifiedTime\":\"2017-03-23T20:55:41.1422826Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls4679\",\"name\":\"xplattestadls4679\",\"type\":\"Microsoft.DataLakeStore/accounts\"}]}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts?api-version=2016-11-01') + .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls363.azuredatalakestore.net\",\"accountId\":\"c38b3a2d-29bd-416c-9308-f41b5063e4f2\",\"creationTime\":\"2017-07-25T17:38:38.7685204Z\",\"lastModifiedTime\":\"2017-07-25T17:38:38.7685204Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363\",\"name\":\"xplattestadls363\",\"type\":\"Microsoft.DataLakeStore/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls9269.azuredatalakestore.net\",\"accountId\":\"b9451d7c-eb00-4e6d-a1e0-fbae405d972b\",\"creationTime\":\"2017-07-25T17:39:11.1146928Z\",\"lastModifiedTime\":\"2017-07-25T17:39:11.1146928Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls9269\",\"name\":\"xplattestadls9269\",\"type\":\"Microsoft.DataLakeStore/accounts\"}]}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1100', + 'content-length': '1097', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '860454b0-bb8c-4a46-9452-10706648da18', + 'x-ms-request-id': 'f0ad32fe-220c-42ae-8c9a-ded05bb9ca50', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14997', - 'x-ms-correlation-request-id': 'd02d247c-8927-46ad-9690-5583548394a2', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205616Z:d02d247c-8927-46ad-9690-5583548394a2', + 'x-ms-ratelimit-remaining-subscription-reads': '14991', + 'x-ms-correlation-request-id': '74dca1cc-9b66-4a21-88f5-dd961e8dc187', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173946Z:74dca1cc-9b66-4a21-88f5-dd961e8dc187', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:15 GMT', + date: 'Tue, 25 Jul 2017 17:39:46 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_updating_the_account_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_updating_the_account_should_work.nock.js index 14c43b4aa5..4ad2341b20 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_updating_the_account_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_Account_updating_the_account_should_work.nock.js @@ -3,50 +3,50 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277?api-version=2016-11-01', '*') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls1277.azuredatalakestore.net\",\"accountId\":\"07a865e6-8bd2-4d0d-9355-7fefa473b801\",\"creationTime\":\"2017-03-23T20:55:06.9490342Z\",\"lastModifiedTime\":\"2017-03-23T20:56:16.9048466Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277\",\"name\":\"xplattestadls1277\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', +.patch('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363?api-version=2016-11-01', '*') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls363.azuredatalakestore.net\",\"accountId\":\"c38b3a2d-29bd-416c-9308-f41b5063e4f2\",\"creationTime\":\"2017-07-25T17:38:38.7685204Z\",\"lastModifiedTime\":\"2017-07-25T17:39:48.4319451Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363\",\"name\":\"xplattestadls363\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '821', + 'content-length': '853', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'dd45997f-113a-420d-8e0e-624cb6272866', + 'x-ms-request-id': 'fc23ca53-891b-4198-8a20-a1259d603598', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1196', - 'x-ms-correlation-request-id': 'e8396ec0-15bd-4d5c-8dcf-fba50766247e', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205618Z:e8396ec0-15bd-4d5c-8dcf-fba50766247e', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '1b3037db-92cc-41c3-8234-14b260d07dd0', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173948Z:1b3037db-92cc-41c3-8234-14b260d07dd0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:17 GMT', + date: 'Tue, 25 Jul 2017 17:39:47 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277?api-version=2016-11-01', '*') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls1277.azuredatalakestore.net\",\"accountId\":\"07a865e6-8bd2-4d0d-9355-7fefa473b801\",\"creationTime\":\"2017-03-23T20:55:06.9490342Z\",\"lastModifiedTime\":\"2017-03-23T20:56:16.9048466Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/53d9063d-87ae-4ea8-be90-3686c3b8669f/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls1277\",\"name\":\"xplattestadls1277\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', +.patch('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363?api-version=2016-11-01', '*') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"firewallRules\":[],\"trustedIdProviderState\":\"Disabled\",\"trustedIdProviders\":[],\"encryptionState\":\"Enabled\",\"encryptionConfig\":{\"type\":\"ServiceManaged\"},\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadls363.azuredatalakestore.net\",\"accountId\":\"c38b3a2d-29bd-416c-9308-f41b5063e4f2\",\"creationTime\":\"2017-07-25T17:38:38.7685204Z\",\"lastModifiedTime\":\"2017-07-25T17:39:48.4319451Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeStore/accounts/xplattestadls363\",\"name\":\"xplattestadls363\",\"type\":\"Microsoft.DataLakeStore/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '821', + 'content-length': '853', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'dd45997f-113a-420d-8e0e-624cb6272866', + 'x-ms-request-id': 'fc23ca53-891b-4198-8a20-a1259d603598', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1196', - 'x-ms-correlation-request-id': 'e8396ec0-15bd-4d5c-8dcf-fba50766247e', - 'x-ms-routing-request-id': 'WESTUS2:20170323T205618Z:e8396ec0-15bd-4d5c-8dcf-fba50766247e', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': '1b3037db-92cc-41c3-8234-14b260d07dd0', + 'x-ms-routing-request-id': 'WESTUS2:20170725T173948Z:1b3037db-92cc-41c3-8234-14b260d07dd0', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:17 GMT', + date: 'Tue, 25 Jul 2017 17:39:47 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_Permissions_get_set_and_delete_entry_commands_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_Permissions_get_set_and_delete_entry_commands_should_work.nock.js index bc3a9b38a4..610d82d03b 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_Permissions_get_set_and_delete_entry_commands_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_Permissions_get_set_and_delete_entry_commands_should_work.nock.js @@ -3,244 +3,244 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '4bdb8bcc-32d8-46da-9e20-4d46083af380', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'd6b45a33-4d04-4c46-8707-6ab3c6788ee3', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:39 GMT', + date: 'Tue, 25 Jul 2017 17:40:08 GMT', connection: 'close', 'content-length': '171' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '4bdb8bcc-32d8-46da-9e20-4d46083af380', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'd6b45a33-4d04-4c46-8707-6ab3c6788ee3', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:39 GMT', + date: 'Tue, 25 Jul 2017 17:40:08 GMT', connection: 'close', 'content-length': '171' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/%2F?aclspec=user%3A027c28d5-c91d-49f0-98c5-d10134b169b3%3Arwx&op=MODIFYACLENTRIES&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'dad1fc7b-459a-4efa-9e6d-19cc6484f255', + 'x-ms-request-id': '97065471-088e-41ae-a253-f8c587cea425', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:39 GMT', + date: 'Tue, 25 Jul 2017 17:40:08 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/%2F?aclspec=user%3A027c28d5-c91d-49f0-98c5-d10134b169b3%3Arwx&op=MODIFYACLENTRIES&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'dad1fc7b-459a-4efa-9e6d-19cc6484f255', + 'x-ms-request-id': '97065471-088e-41ae-a253-f8c587cea425', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:39 GMT', + date: 'Tue, 25 Jul 2017 17:40:08 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'f5fe211f-2ec4-4e8c-875e-eea1853e95c1', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'aa4cfa2c-42ef-450f-8c18-bae25883eca6', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:40 GMT', + date: 'Tue, 25 Jul 2017 17:40:08 GMT', connection: 'close', 'content-length': '219' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'f5fe211f-2ec4-4e8c-875e-eea1853e95c1', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'aa4cfa2c-42ef-450f-8c18-bae25883eca6', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:40 GMT', + date: 'Tue, 25 Jul 2017 17:40:08 GMT', connection: 'close', 'content-length': '219' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/%2F?aclspec=user%3A027c28d5-c91d-49f0-98c5-d10134b169b3%3A-w-&op=MODIFYACLENTRIES&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '48d7dd9d-dbd8-4ae1-aa35-4788e245fe67', + 'x-ms-request-id': '3625c4d5-629c-4daf-b88a-f56439e87576', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:40 GMT', + date: 'Tue, 25 Jul 2017 17:40:09 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/%2F?aclspec=user%3A027c28d5-c91d-49f0-98c5-d10134b169b3%3A-w-&op=MODIFYACLENTRIES&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '48d7dd9d-dbd8-4ae1-aa35-4788e245fe67', + 'x-ms-request-id': '3625c4d5-629c-4daf-b88a-f56439e87576', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:40 GMT', + date: 'Tue, 25 Jul 2017 17:40:09 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"user:027c28d5-c91d-49f0-98c5-d10134b169b3:-w-\",\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"user:027c28d5-c91d-49f0-98c5-d10134b169b3:-w-\",\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'db537bcf-d62f-4904-abc6-a8be7465b4c9', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'd4a08543-f8ce-4b52-9bac-8972835ae2b2', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:41 GMT', + date: 'Tue, 25 Jul 2017 17:40:09 GMT', connection: 'close', 'content-length': '219' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"user:027c28d5-c91d-49f0-98c5-d10134b169b3:-w-\",\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"user:027c28d5-c91d-49f0-98c5-d10134b169b3:-w-\",\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'db537bcf-d62f-4904-abc6-a8be7465b4c9', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'd4a08543-f8ce-4b52-9bac-8972835ae2b2', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:41 GMT', + date: 'Tue, 25 Jul 2017 17:40:09 GMT', connection: 'close', 'content-length': '219' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/%2F?aclspec=user%3A027c28d5-c91d-49f0-98c5-d10134b169b3&op=REMOVEACLENTRIES&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '05b9ea82-9a3f-4f81-ab29-1e775f8250a8', + 'x-ms-request-id': 'c1f3bb6d-a0a3-48f9-9333-ee6841c4be99', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:41 GMT', + date: 'Tue, 25 Jul 2017 17:40:10 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/%2F?aclspec=user%3A027c28d5-c91d-49f0-98c5-d10134b169b3&op=REMOVEACLENTRIES&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '05b9ea82-9a3f-4f81-ab29-1e775f8250a8', + 'x-ms-request-id': 'c1f3bb6d-a0a3-48f9-9333-ee6841c4be99', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:41 GMT', + date: 'Tue, 25 Jul 2017 17:40:10 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '06b4005b-47dd-4590-a77f-38518c6621c0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'f8fbabcf-ef7f-4b83-bf70-baf71132f70e', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:41 GMT', + date: 'Tue, 25 Jul 2017 17:40:10 GMT', connection: 'close', 'content-length': '171' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '06b4005b-47dd-4590-a77f-38518c6621c0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'f8fbabcf-ef7f-4b83-bf70-baf71132f70e', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:41 GMT', + date: 'Tue, 25 Jul 2017 17:40:10 GMT', connection: 'close', 'content-length': '171' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_Permissions_show_set_and_delete_full_ACL_commands_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_Permissions_show_set_and_delete_full_ACL_commands_should_work.nock.js index 07da9bb55c..4966c3b89f 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_Permissions_show_set_and_delete_full_ACL_commands_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_Permissions_show_set_and_delete_full_ACL_commands_should_work.nock.js @@ -3,108 +3,108 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '01735796-6fad-4692-97ee-119cd5905056', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'f900dacf-7e97-427f-b5ad-8168baa04bec', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:42 GMT', + date: 'Tue, 25 Jul 2017 17:40:11 GMT', connection: 'close', 'content-length': '171' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '01735796-6fad-4692-97ee-119cd5905056', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'f900dacf-7e97-427f-b5ad-8168baa04bec', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:42 GMT', + date: 'Tue, 25 Jul 2017 17:40:11 GMT', connection: 'close', 'content-length': '171' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/%2F?aclspec=group%3A%3Arwx%2Cdefault%3Auser%3A027c28d5-c91d-49f0-98c5-d10134b169b3%3Arwx%2Cuser%3A%3Arwx%2Cother%3A%3A---%2Cmask%3A%3Arwx&op=SETACL&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'c9bf8a54-559b-4c04-9bf3-513bf602cd86', + 'x-ms-request-id': '1ed8a5c0-73c9-4b5f-939b-40627e440e3d', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:42 GMT', + date: 'Tue, 25 Jul 2017 17:40:11 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/%2F?aclspec=group%3A%3Arwx%2Cdefault%3Auser%3A027c28d5-c91d-49f0-98c5-d10134b169b3%3Arwx%2Cuser%3A%3Arwx%2Cother%3A%3A---%2Cmask%3A%3Arwx&op=SETACL&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'c9bf8a54-559b-4c04-9bf3-513bf602cd86', + 'x-ms-request-id': '1ed8a5c0-73c9-4b5f-939b-40627e440e3d', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:42 GMT', + date: 'Tue, 25 Jul 2017 17:40:11 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\",\"default:user::rwx\",\"default:user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\"default:group::rwx\",\"default:mask::rwx\",\"default:other::---\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\",\"default:user::rwx\",\"default:user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\"default:group::rwx\",\"default:mask::rwx\",\"default:other::---\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '26e529e2-6060-4a96-86f1-a42180a11bbb', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '04928bac-4f91-4e81-a7e2-8c4e95a9bf46', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:42 GMT', + date: 'Tue, 25 Jul 2017 17:40:12 GMT', connection: 'close', 'content-length': '309' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/%2F?op=GETACLSTATUS&api-version=2016-11-01') - .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\",\"default:user::rwx\",\"default:user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\"default:group::rwx\",\"default:mask::rwx\",\"default:other::---\"],\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"AclStatus\":{\"entries\":[\"group::rwx\",\"default:user::rwx\",\"default:user:027c28d5-c91d-49f0-98c5-d10134b169b3:rwx\",\"default:group::rwx\",\"default:mask::rwx\",\"default:other::---\"],\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"permission\":\"770\",\"stickyBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '26e529e2-6060-4a96-86f1-a42180a11bbb', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '04928bac-4f91-4e81-a7e2-8c4e95a9bf46', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:42 GMT', + date: 'Tue, 25 Jul 2017 17:40:12 GMT', connection: 'close', 'content-length': '309' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_add_content_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_add_content_should_work.nock.js index 992812c172..bed204e4d9 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_add_content_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_add_content_should_work.nock.js @@ -3,74 +3,74 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .filteringRequestBody(function (path) { return '*';}) -.post('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?syncFlag=CLOSE&op=APPEND&append=true&api-version=2016-11-01', '*') +.post('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?syncFlag=CLOSE&append=true&op=APPEND&api-version=2016-11-01', '*') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'c3d2e83e-3df2-43f8-a64c-b37ab4c88039', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '71c95260-7a1d-4462-9cec-78815c68f84a', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:26 GMT', + date: 'Tue, 25 Jul 2017 17:39:57 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .filteringRequestBody(function (path) { return '*';}) -.post('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?syncFlag=CLOSE&op=APPEND&append=true&api-version=2016-11-01', '*') +.post('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?syncFlag=CLOSE&append=true&op=APPEND&api-version=2016-11-01', '*') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'c3d2e83e-3df2-43f8-a64c-b37ab4c88039', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '71c95260-7a1d-4462-9cec-78815c68f84a', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:26 GMT', + date: 'Tue, 25 Jul 2017 17:39:57 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":22,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302584557,\"modificationTime\":1490302587124,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":22,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004394732,\"modificationTime\":1501004397000,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '471498a9-3409-453d-b2d3-26c95bdc9082', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '961d7176-6d8f-4910-86b4-4fde8de3cb1a', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:26 GMT', + date: 'Tue, 25 Jul 2017 17:39:56 GMT', connection: 'close', 'content-length': '305' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":22,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302584557,\"modificationTime\":1490302587124,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":22,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004394732,\"modificationTime\":1501004397000,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '471498a9-3409-453d-b2d3-26c95bdc9082', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '961d7176-6d8f-4910-86b4-4fde8de3cb1a', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:26 GMT', + date: 'Tue, 25 Jul 2017 17:39:56 GMT', connection: 'close', 'content-length': '305' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_concat_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_concat_should_work.nock.js index 83e8b4205e..70c49c7eed 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_concat_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_concat_should_work.nock.js @@ -3,72 +3,72 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .post('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?sources=adlssdkfolder01%2Femptyfile.txt%2Cadlssdkfolder01%2Fcontentfile.txt&op=CONCAT&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '2c663d2a-f876-498c-84a2-eb25906c96b9', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'e567d313-6ad0-4011-8c5e-eb41c117ed61', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:27 GMT', + date: 'Tue, 25 Jul 2017 17:39:57 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .post('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?sources=adlssdkfolder01%2Femptyfile.txt%2Cadlssdkfolder01%2Fcontentfile.txt&op=CONCAT&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '2c663d2a-f876-498c-84a2-eb25906c96b9', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'e567d313-6ad0-4011-8c5e-eb41c117ed61', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:27 GMT', + date: 'Tue, 25 Jul 2017 17:39:57 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":44,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302588119,\"modificationTime\":1490302588150,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":44,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004397860,\"modificationTime\":1501004397882,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '34a32cba-202a-43b9-b6ca-3f6eafc43b26', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'c30a997c-7955-4f65-85e7-28edb4c98379', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:28 GMT', + date: 'Tue, 25 Jul 2017 17:39:57 GMT', connection: 'close', 'content-length': '305' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":44,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302588119,\"modificationTime\":1490302588150,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":44,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004397860,\"modificationTime\":1501004397882,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '34a32cba-202a-43b9-b6ca-3f6eafc43b26', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'c30a997c-7955-4f65-85e7-28edb4c98379', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:28 GMT', + date: 'Tue, 25 Jul 2017 17:39:57 GMT', connection: 'close', 'content-length': '305' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_create_and_show_commands_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_create_and_show_commands_should_work.nock.js index 7ebdcdbb94..27b13aea83 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_create_and_show_commands_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_create_and_show_commands_should_work.nock.js @@ -3,250 +3,250 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/adlssdkfolder01?op=MKDIRS&api-version=2016-11-01') .reply(200, "{\"boolean\":true}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '7ab0d299-5336-432c-8f74-f1d9d0e163df', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '6d4f3edc-18a4-40d4-b74f-680f18408c8c', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:23 GMT', + date: 'Tue, 25 Jul 2017 17:39:53 GMT', connection: 'close', 'content-length': '16' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/adlssdkfolder01?op=MKDIRS&api-version=2016-11-01') .reply(200, "{\"boolean\":true}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '7ab0d299-5336-432c-8f74-f1d9d0e163df', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '6d4f3edc-18a4-40d4-b74f-680f18408c8c', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:23 GMT', + date: 'Tue, 25 Jul 2017 17:39:53 GMT', connection: 'close', 'content-length': '16' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"DIRECTORY\",\"blockSize\":0,\"accessTime\":1490302583819,\"modificationTime\":1490302583819,\"replication\":0,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"DIRECTORY\",\"blockSize\":0,\"accessTime\":1501004393923,\"modificationTime\":1501004393923,\"replication\":0,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '75250eab-fb0c-42df-85ad-5be281364aba', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '2e3b015b-a2a5-4993-9f76-1649e277c76d', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:24 GMT', + date: 'Tue, 25 Jul 2017 17:39:54 GMT', connection: 'close', 'content-length': '280' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"DIRECTORY\",\"blockSize\":0,\"accessTime\":1490302583819,\"modificationTime\":1490302583819,\"replication\":0,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"DIRECTORY\",\"blockSize\":0,\"accessTime\":1501004393923,\"modificationTime\":1501004393923,\"replication\":0,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '75250eab-fb0c-42df-85ad-5be281364aba', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '2e3b015b-a2a5-4993-9f76-1649e277c76d', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:24 GMT', + date: 'Tue, 25 Jul 2017 17:39:54 GMT', connection: 'close', 'content-length': '280' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') - .put('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01') +nock('http://xplattestadls363.azuredatalakestore.net:443') + .put('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01') .reply(201, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - location: 'https://xplattestadls1277.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/emptyfile.txt?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', - 'x-ms-request-id': 'ee095adc-eba2-4f99-bd81-b36959a8343c', + location: 'https://xplattestadls363.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/emptyfile.txt?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', + 'x-ms-request-id': '65956632-09fa-498b-a425-981cb987739e', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:24 GMT', + date: 'Tue, 25 Jul 2017 17:39:53 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') - .put('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01') +nock('https://xplattestadls363.azuredatalakestore.net:443') + .put('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01') .reply(201, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - location: 'https://xplattestadls1277.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/emptyfile.txt?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', - 'x-ms-request-id': 'ee095adc-eba2-4f99-bd81-b36959a8343c', + location: 'https://xplattestadls363.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/emptyfile.txt?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', + 'x-ms-request-id': '65956632-09fa-498b-a425-981cb987739e', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:24 GMT', + date: 'Tue, 25 Jul 2017 17:39:53 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302584557,\"modificationTime\":1490302584557,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004394732,\"modificationTime\":1501004394732,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '0408279e-3b8f-4cfe-9143-b747fc39ab2a', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '144baf42-80a8-4d02-9543-ce91b32f4f58', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:25 GMT', + date: 'Tue, 25 Jul 2017 17:39:54 GMT', connection: 'close', 'content-length': '304' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302584557,\"modificationTime\":1490302584557,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004394732,\"modificationTime\":1501004394732,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '0408279e-3b8f-4cfe-9143-b747fc39ab2a', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '144baf42-80a8-4d02-9543-ce91b32f4f58', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:25 GMT', + date: 'Tue, 25 Jul 2017 17:39:54 GMT', connection: 'close', 'content-length': '304' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/webhdfs/v1/adlssdkfolder01%2Fcontentfile.txt?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', '*') +.put('/webhdfs/v1/adlssdkfolder01%2Fcontentfile.txt?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', '*') .reply(201, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - location: 'https://xplattestadls1277.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/contentfile.txt?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', - 'x-ms-request-id': 'a06cbb54-4fe0-4b1a-b2a0-355ae582f1be', + location: 'https://xplattestadls363.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/contentfile.txt?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', + 'x-ms-request-id': '37335184-9978-46bc-883c-e0cb0359239e', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:25 GMT', + date: 'Tue, 25 Jul 2017 17:39:54 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/webhdfs/v1/adlssdkfolder01%2Fcontentfile.txt?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', '*') +.put('/webhdfs/v1/adlssdkfolder01%2Fcontentfile.txt?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', '*') .reply(201, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - location: 'https://xplattestadls1277.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/contentfile.txt?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', - 'x-ms-request-id': 'a06cbb54-4fe0-4b1a-b2a0-355ae582f1be', + location: 'https://xplattestadls363.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/contentfile.txt?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', + 'x-ms-request-id': '37335184-9978-46bc-883c-e0cb0359239e', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:25 GMT', + date: 'Tue, 25 Jul 2017 17:39:54 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fcontentfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":22,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302585452,\"modificationTime\":1490302585540,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":22,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004395503,\"modificationTime\":1501004395551,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '80352bac-6bab-4223-ad83-4a2d661c93f2', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '9800eb0d-ce06-4774-926d-4681607bdc3a', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:26 GMT', + date: 'Tue, 25 Jul 2017 17:39:56 GMT', connection: 'close', 'content-length': '305' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fcontentfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":22,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302585452,\"modificationTime\":1490302585540,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":22,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004395503,\"modificationTime\":1501004395551,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '80352bac-6bab-4223-ad83-4a2d661c93f2', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '9800eb0d-ce06-4774-926d-4681607bdc3a', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:26 GMT', + date: 'Tue, 25 Jul 2017 17:39:56 GMT', connection: 'close', 'content-length': '305' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01?op=LISTSTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatuses\":{\"FileStatus\":[{\"length\":22,\"pathSuffix\":\"contentfile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302585452,\"modificationTime\":1490302585540,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false},{\"length\":0,\"pathSuffix\":\"emptyfile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302584557,\"modificationTime\":1490302584557,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}]}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatuses\":{\"FileStatus\":[{\"length\":22,\"pathSuffix\":\"contentfile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004395503,\"modificationTime\":1501004395551,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false},{\"length\":0,\"pathSuffix\":\"emptyfile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004394732,\"modificationTime\":1501004394732,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}]}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '818493d6-63fa-4ba9-9c35-5ebe01c7356d', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '2d9ccc2c-06c8-43e7-b8c1-57df5c792840', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:25 GMT', + date: 'Tue, 25 Jul 2017 17:39:55 GMT', connection: 'close', 'content-length': '642' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01?op=LISTSTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatuses\":{\"FileStatus\":[{\"length\":22,\"pathSuffix\":\"contentfile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302585452,\"modificationTime\":1490302585540,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false},{\"length\":0,\"pathSuffix\":\"emptyfile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302584557,\"modificationTime\":1490302584557,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}]}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatuses\":{\"FileStatus\":[{\"length\":22,\"pathSuffix\":\"contentfile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004395503,\"modificationTime\":1501004395551,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false},{\"length\":0,\"pathSuffix\":\"emptyfile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004394732,\"modificationTime\":1501004394732,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}]}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '818493d6-63fa-4ba9-9c35-5ebe01c7356d', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '2d9ccc2c-06c8-43e7-b8c1-57df5c792840', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:25 GMT', + date: 'Tue, 25 Jul 2017 17:39:55 GMT', connection: 'close', 'content-length': '642' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_delete_commands_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_delete_commands_should_work.nock.js index f21896bafa..3f46cdb18e 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_delete_commands_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_delete_commands_should_work.nock.js @@ -3,142 +3,142 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .delete('/webhdfs/v1/adlssdkfolder01%2Fmovefile.txt?op=DELETE&api-version=2016-11-01') .reply(200, "{\"boolean\":false}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '9809ceb8-76fe-44f6-bf70-b72766749b53', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'a6f19fcf-89db-4b9f-bc17-8b311d8c848c', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:37 GMT', + date: 'Tue, 25 Jul 2017 17:40:06 GMT', connection: 'close', 'content-length': '17' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .delete('/webhdfs/v1/adlssdkfolder01%2Fmovefile.txt?op=DELETE&api-version=2016-11-01') .reply(200, "{\"boolean\":false}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '9809ceb8-76fe-44f6-bf70-b72766749b53', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'a6f19fcf-89db-4b9f-bc17-8b311d8c848c', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:37 GMT', + date: 'Tue, 25 Jul 2017 17:40:06 GMT', connection: 'close', 'content-length': '17' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fmovefile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01/movefile.txt [ee6978ae-93c0-48fc-be13-d12cca3c6065][2017-03-23T13:56:38.4264352-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01/movefile.txt [045dfe42-5662-4e2f-8a7a-1857400a0a71][2017-07-25T10:40:07.5479931-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'ee6978ae-93c0-48fc-be13-d12cca3c6065', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '045dfe42-5662-4e2f-8a7a-1857400a0a71', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:37 GMT', + date: 'Tue, 25 Jul 2017 17:40:06 GMT', connection: 'close', 'content-length': '249' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fmovefile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01/movefile.txt [ee6978ae-93c0-48fc-be13-d12cca3c6065][2017-03-23T13:56:38.4264352-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01/movefile.txt [045dfe42-5662-4e2f-8a7a-1857400a0a71][2017-07-25T10:40:07.5479931-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'ee6978ae-93c0-48fc-be13-d12cca3c6065', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '045dfe42-5662-4e2f-8a7a-1857400a0a71', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:37 GMT', + date: 'Tue, 25 Jul 2017 17:40:06 GMT', connection: 'close', 'content-length': '249' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .delete('/webhdfs/v1/adlssdkfolder02?recursive=true&op=DELETE&api-version=2016-11-01') .reply(200, "{\"boolean\":true}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'bedf4d8c-13dd-42ef-bfb2-51dac181b1c5', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '5186c8fa-9514-468e-bbc9-269bb4b3dba1', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:38 GMT', + date: 'Tue, 25 Jul 2017 17:40:07 GMT', connection: 'close', 'content-length': '16' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .delete('/webhdfs/v1/adlssdkfolder02?recursive=true&op=DELETE&api-version=2016-11-01') .reply(200, "{\"boolean\":true}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'bedf4d8c-13dd-42ef-bfb2-51dac181b1c5', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '5186c8fa-9514-468e-bbc9-269bb4b3dba1', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:38 GMT', + date: 'Tue, 25 Jul 2017 17:40:07 GMT', connection: 'close', 'content-length': '16' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder02?op=GETFILESTATUS&api-version=2016-11-01') - .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder02 [b3704923-9496-4468-966c-a6647f31668d][2017-03-23T13:56:39.4245634-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder02 [20b2a7b5-3ffe-43c0-a6ac-99b702bacedc][2017-07-25T10:40:08.3196679-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'b3704923-9496-4468-966c-a6647f31668d', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '20b2a7b5-3ffe-43c0-a6ac-99b702bacedc', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:38 GMT', + date: 'Tue, 25 Jul 2017 17:40:08 GMT', connection: 'close', 'content-length': '236' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder02?op=GETFILESTATUS&api-version=2016-11-01') - .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder02 [b3704923-9496-4468-966c-a6647f31668d][2017-03-23T13:56:39.4245634-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder02 [20b2a7b5-3ffe-43c0-a6ac-99b702bacedc][2017-07-25T10:40:08.3196679-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'b3704923-9496-4468-966c-a6647f31668d', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '20b2a7b5-3ffe-43c0-a6ac-99b702bacedc', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:38 GMT', + date: 'Tue, 25 Jul 2017 17:40:08 GMT', connection: 'close', 'content-length': '236' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_file_expiry_commands_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_file_expiry_commands_should_work.nock.js index 1eb6d3cf35..64ff4bac0c 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_file_expiry_commands_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_file_expiry_commands_should_work.nock.js @@ -3,325 +3,325 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') - .put('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01') +nock('http://xplattestadls363.azuredatalakestore.net:443') + .put('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01') .reply(201, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - location: 'https://xplattestadls1277.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/emptyfile.txt.expire?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', - 'x-ms-request-id': '6ee3bb00-596e-4c29-9c9c-6495ac7d5a8c', + location: 'https://xplattestadls363.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/emptyfile.txt.expire?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', + 'x-ms-request-id': 'cc1104ce-27d1-4bf5-b991-98f23575e8d1', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:33 GMT', + date: 'Tue, 25 Jul 2017 17:40:02 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') - .put('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01') +nock('https://xplattestadls363.azuredatalakestore.net:443') + .put('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01') .reply(201, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - location: 'https://xplattestadls1277.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/emptyfile.txt.expire?syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', - 'x-ms-request-id': '6ee3bb00-596e-4c29-9c9c-6495ac7d5a8c', + location: 'https://xplattestadls363.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/emptyfile.txt.expire?syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', + 'x-ms-request-id': 'cc1104ce-27d1-4bf5-b991-98f23575e8d1', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:33 GMT', + date: 'Tue, 25 Jul 2017 17:40:02 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '04328d80-c2ff-45e4-a199-d58188b7f027', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'f42f2482-b04f-4112-aa73-efad4676fadb', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:32 GMT', + date: 'Tue, 25 Jul 2017 17:40:03 GMT', connection: 'close', 'content-length': '304' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '04328d80-c2ff-45e4-a199-d58188b7f027', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'f42f2482-b04f-4112-aa73-efad4676fadb', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:32 GMT', + date: 'Tue, 25 Jul 2017 17:40:03 GMT', connection: 'close', 'content-length': '304' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') - .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=Absolute&expireTime=1490302713146&op=SETEXPIRY&api-version=2016-11-01') +nock('http://xplattestadls363.azuredatalakestore.net:443') + .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=Absolute&expireTime=1501004523142&op=SETEXPIRY&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '6e3eefec-3edb-4cd7-9b18-c4641aab80ef', + 'x-ms-request-id': 'edb4060a-5196-44a8-97e8-29f179f9e469', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:33 GMT', + date: 'Tue, 25 Jul 2017 17:40:03 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') - .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=Absolute&expireTime=1490302713146&op=SETEXPIRY&api-version=2016-11-01') +nock('https://xplattestadls363.azuredatalakestore.net:443') + .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=Absolute&expireTime=1501004523142&op=SETEXPIRY&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '6e3eefec-3edb-4cd7-9b18-c4641aab80ef', + 'x-ms-request-id': 'edb4060a-5196-44a8-97e8-29f179f9e469', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:33 GMT', + date: 'Tue, 25 Jul 2017 17:40:03 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":1490302713177,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":1501004523142,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '60e9f60a-56f6-4dfa-b222-09e218f8fff0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '9a044bc8-83cc-49f7-b491-f95a25cd5504', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:33 GMT', + date: 'Tue, 25 Jul 2017 17:40:03 GMT', connection: 'close', 'content-length': '316' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":1490302713177,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":1501004523142,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '60e9f60a-56f6-4dfa-b222-09e218f8fff0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '9a044bc8-83cc-49f7-b491-f95a25cd5504', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:33 GMT', + date: 'Tue, 25 Jul 2017 17:40:03 GMT', connection: 'close', 'content-length': '316' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=RelativeToCreationDate&expireTime=120000&op=SETEXPIRY&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'f587c317-9571-482f-a3e7-c86df0a147dc', + 'x-ms-request-id': '52289caf-08a6-4e22-a53d-0573b96b4e22', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:34 GMT', + date: 'Tue, 25 Jul 2017 17:40:03 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=RelativeToCreationDate&expireTime=120000&op=SETEXPIRY&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'f587c317-9571-482f-a3e7-c86df0a147dc', + 'x-ms-request-id': '52289caf-08a6-4e22-a53d-0573b96b4e22', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:34 GMT', + date: 'Tue, 25 Jul 2017 17:40:03 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":1490302713146,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":1501004523142,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'c82d29b2-8920-4dd3-a3d0-bf4c544638c9', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '74ff2c5f-33ca-4953-b7a2-3370bc856247', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:34 GMT', + date: 'Tue, 25 Jul 2017 17:40:05 GMT', connection: 'close', 'content-length': '316' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":1490302713146,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":1501004523142,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'c82d29b2-8920-4dd3-a3d0-bf4c544638c9', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '74ff2c5f-33ca-4953-b7a2-3370bc856247', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:34 GMT', + date: 'Tue, 25 Jul 2017 17:40:05 GMT', connection: 'close', 'content-length': '316' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=RelativeToNow&expireTime=120000&op=SETEXPIRY&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '14fb9b12-c11b-4824-94c9-a2022d04f9a1', + 'x-ms-request-id': '17b05bb8-a29e-4f81-a435-397edb8a9333', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:35 GMT', + date: 'Tue, 25 Jul 2017 17:40:04 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=RelativeToNow&expireTime=120000&op=SETEXPIRY&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': '14fb9b12-c11b-4824-94c9-a2022d04f9a1', + 'x-ms-request-id': '17b05bb8-a29e-4f81-a435-397edb8a9333', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:35 GMT', + date: 'Tue, 25 Jul 2017 17:40:04 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":1490302716032,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":1501004525571,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '42ad3351-ae91-4713-b139-5212a571b857', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '09f0e692-4f1b-48e5-881f-0ac71f5c8dbf', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:36 GMT', + date: 'Tue, 25 Jul 2017 17:40:05 GMT', connection: 'close', 'content-length': '316' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":1490302716032,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":1501004525571,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '42ad3351-ae91-4713-b139-5212a571b857', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '09f0e692-4f1b-48e5-881f-0ac71f5c8dbf', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:36 GMT', + date: 'Tue, 25 Jul 2017 17:40:05 GMT', connection: 'close', 'content-length': '316' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=NeverExpire&expireTime=120000&op=SETEXPIRY&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'b9d62c34-f1b4-4e25-a338-54a5a5e9734c', + 'x-ms-request-id': '3f1aa6be-14f9-427f-8b52-10132eafb8a5', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:36 GMT', + date: 'Tue, 25 Jul 2017 17:40:05 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/WebHdfsExt/adlssdkfolder01%2Femptyfile.txt.expire?expiryOption=NeverExpire&expireTime=120000&op=SETEXPIRY&api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - 'x-ms-request-id': 'b9d62c34-f1b4-4e25-a338-54a5a5e9734c', + 'x-ms-request-id': '3f1aa6be-14f9-427f-8b52-10132eafb8a5', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:36 GMT', + date: 'Tue, 25 Jul 2017 17:40:05 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '13ccf694-e264-46ac-b6d1-21773211ee49', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '61f9eb72-0db1-42e7-9727-7bd904ca930f', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:37 GMT', + date: 'Tue, 25 Jul 2017 17:40:06 GMT', connection: 'close', 'content-length': '304' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Femptyfile.txt.expire?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302593146,\"modificationTime\":1490302593146,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004403142,\"modificationTime\":1501004403142,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '13ccf694-e264-46ac-b6d1-21773211ee49', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '61f9eb72-0db1-42e7-9727-7bd904ca930f', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:37 GMT', + date: 'Tue, 25 Jul 2017 17:40:06 GMT', connection: 'close', 'content-length': '304' }); return result; }]]; - exports.mockVariables = function() { return {"nowPlusOffset":1490302715527}; }; \ No newline at end of file + exports.mockVariables = function() { return {"nowPlusOffset":1501004525143}; }; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_move_commands_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_move_commands_should_work.nock.js index ce50f57fa1..1a88c4291e 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_move_commands_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_move_commands_should_work.nock.js @@ -3,244 +3,244 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?destination=adlssdkfolder01%2Fmovefile.txt&op=RENAME&api-version=2016-11-01') .reply(200, "{\"boolean\":true}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '03d17255-6f5d-4e63-871f-3d822fb73e33', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '2ba6fdaf-3d58-4c95-bbca-88406ecef3d8', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:29 GMT', + date: 'Tue, 25 Jul 2017 17:40:00 GMT', connection: 'close', 'content-length': '16' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?destination=adlssdkfolder01%2Fmovefile.txt&op=RENAME&api-version=2016-11-01') .reply(200, "{\"boolean\":true}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '03d17255-6f5d-4e63-871f-3d822fb73e33', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '2ba6fdaf-3d58-4c95-bbca-88406ecef3d8', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:29 GMT', + date: 'Tue, 25 Jul 2017 17:40:00 GMT', connection: 'close', 'content-length': '16' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fmovefile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":44,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302589072,\"modificationTime\":1490302589121,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":44,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004399077,\"modificationTime\":1501004399121,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'e1eeb9cb-4471-4b13-b79e-efdbaf5ab378', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'c7152a2e-abfa-42bd-b1bb-83115aa9b6ca', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:29 GMT', + date: 'Tue, 25 Jul 2017 17:40:00 GMT', connection: 'close', 'content-length': '305' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fmovefile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":44,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302589072,\"modificationTime\":1490302589121,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":44,\"pathSuffix\":\"\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004399077,\"modificationTime\":1501004399121,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'e1eeb9cb-4471-4b13-b79e-efdbaf5ab378', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'c7152a2e-abfa-42bd-b1bb-83115aa9b6ca', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:29 GMT', + date: 'Tue, 25 Jul 2017 17:40:00 GMT', connection: 'close', 'content-length': '305' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01/concatfile.txt [65d22d7c-6739-410f-a673-ad14c2c6041f][2017-03-23T13:56:30.7454452-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01/concatfile.txt [5394fe90-7839-4c46-8c35-9313da56cfe5][2017-07-25T10:40:01.2994534-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '65d22d7c-6739-410f-a673-ad14c2c6041f', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '5394fe90-7839-4c46-8c35-9313da56cfe5', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:30 GMT', + date: 'Tue, 25 Jul 2017 17:40:00 GMT', connection: 'close', 'content-length': '251' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?op=GETFILESTATUS&api-version=2016-11-01') - .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01/concatfile.txt [65d22d7c-6739-410f-a673-ad14c2c6041f][2017-03-23T13:56:30.7454452-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01/concatfile.txt [5394fe90-7839-4c46-8c35-9313da56cfe5][2017-07-25T10:40:01.2994534-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '65d22d7c-6739-410f-a673-ad14c2c6041f', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '5394fe90-7839-4c46-8c35-9313da56cfe5', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:30 GMT', + date: 'Tue, 25 Jul 2017 17:40:00 GMT', connection: 'close', 'content-length': '251' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/adlssdkfolder01?destination=adlssdkfolder02&op=RENAME&api-version=2016-11-01') .reply(200, "{\"boolean\":true}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '2ad3ec7b-4eb5-478c-b5e9-3d52dd6c3ca0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'ad3fb78f-c053-4734-967a-bb2a153c23cc', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:30 GMT', + date: 'Tue, 25 Jul 2017 17:40:01 GMT', connection: 'close', 'content-length': '16' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .put('/webhdfs/v1/adlssdkfolder01?destination=adlssdkfolder02&op=RENAME&api-version=2016-11-01') .reply(200, "{\"boolean\":true}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '2ad3ec7b-4eb5-478c-b5e9-3d52dd6c3ca0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'ad3fb78f-c053-4734-967a-bb2a153c23cc', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:30 GMT', + date: 'Tue, 25 Jul 2017 17:40:01 GMT', connection: 'close', 'content-length': '16' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder02?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"DIRECTORY\",\"blockSize\":0,\"accessTime\":1490302583819,\"modificationTime\":1490302590078,\"replication\":0,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"DIRECTORY\",\"blockSize\":0,\"accessTime\":1501004393923,\"modificationTime\":1501004400391,\"replication\":0,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '66feb496-d6dd-4a41-847e-b84ab8d99f3c', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'ade31b10-3e82-467b-a01f-00267584cb4f', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:31 GMT', + date: 'Tue, 25 Jul 2017 17:40:01 GMT', connection: 'close', 'content-length': '280' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder02?op=GETFILESTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"DIRECTORY\",\"blockSize\":0,\"accessTime\":1490302583819,\"modificationTime\":1490302590078,\"replication\":0,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatus\":{\"length\":0,\"pathSuffix\":\"\",\"type\":\"DIRECTORY\",\"blockSize\":0,\"accessTime\":1501004393923,\"modificationTime\":1501004400391,\"replication\":0,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"aclBit\":false}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '66feb496-d6dd-4a41-847e-b84ab8d99f3c', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'ade31b10-3e82-467b-a01f-00267584cb4f', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:31 GMT', + date: 'Tue, 25 Jul 2017 17:40:01 GMT', connection: 'close', 'content-length': '280' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01?op=GETFILESTATUS&api-version=2016-11-01') - .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01 [c190ac97-ae26-4e46-9e78-779dc540409f][2017-03-23T13:56:32.2498916-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01 [5061cc76-1d5d-43aa-aa6c-8bb5ed351f0c][2017-07-25T10:40:02.3810077-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'c190ac97-ae26-4e46-9e78-779dc540409f', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '5061cc76-1d5d-43aa-aa6c-8bb5ed351f0c', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:32 GMT', + date: 'Tue, 25 Jul 2017 17:40:01 GMT', connection: 'close', 'content-length': '236' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder01?op=GETFILESTATUS&api-version=2016-11-01') - .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01 [c190ac97-ae26-4e46-9e78-779dc540409f][2017-03-23T13:56:32.2498916-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(404, "{\"RemoteException\":{\"exception\":\"FileNotFoundException\",\"message\":\"File/Folder does not exist: /adlssdkfolder01 [5061cc76-1d5d-43aa-aa6c-8bb5ed351f0c][2017-07-25T10:40:02.3810077-07:00]\",\"javaClassName\":\"java.io.FileNotFoundException\"}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'c190ac97-ae26-4e46-9e78-779dc540409f', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '5061cc76-1d5d-43aa-aa6c-8bb5ed351f0c', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x8309000A', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:32 GMT', + date: 'Tue, 25 Jul 2017 17:40:01 GMT', connection: 'close', 'content-length': '236' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder02?op=LISTSTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatuses\":{\"FileStatus\":[{\"length\":44,\"pathSuffix\":\"movefile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302589072,\"modificationTime\":1490302589121,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}]}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatuses\":{\"FileStatus\":[{\"length\":44,\"pathSuffix\":\"movefile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004399077,\"modificationTime\":1501004399121,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}]}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'c64c326c-594b-4559-8e24-300d0bf31e90', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'cd2d22c0-0599-4625-919a-237ee7941d02', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:32 GMT', + date: 'Tue, 25 Jul 2017 17:40:02 GMT', connection: 'close', 'content-length': '336' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .get('/webhdfs/v1/adlssdkfolder02?op=LISTSTATUS&api-version=2016-11-01') - .reply(200, "{\"FileStatuses\":{\"FileStatus\":[{\"length\":44,\"pathSuffix\":\"movefile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1490302589072,\"modificationTime\":1490302589121,\"replication\":1,\"permission\":\"770\",\"owner\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"group\":\"2e6c02d2-a364-4530-9137-d17403996cbf\",\"msExpirationTime\":0,\"aclBit\":false}]}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', + .reply(200, "{\"FileStatuses\":{\"FileStatus\":[{\"length\":44,\"pathSuffix\":\"movefile.txt\",\"type\":\"FILE\",\"blockSize\":268435456,\"accessTime\":1501004399077,\"modificationTime\":1501004399121,\"replication\":1,\"permission\":\"770\",\"owner\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"group\":\"e994d55d-2464-4c73-b5e1-40e3c9894434\",\"msExpirationTime\":0,\"aclBit\":false}]}}", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'c64c326c-594b-4559-8e24-300d0bf31e90', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': 'cd2d22c0-0599-4625-919a-237ee7941d02', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:32 GMT', + date: 'Tue, 25 Jul 2017 17:40:02 GMT', connection: 'close', 'content-length': '336' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_read_should_work.nock.js b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_read_should_work.nock.js index a9eb30671c..fbc0669821 100644 --- a/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_read_should_work.nock.js +++ b/test/recordings/arm-datalake-store-tests/Data_Lake_Store_Clients_Account_and_Filesystem_Data_Lake_Store_FileSystem_read_should_work.nock.js @@ -3,78 +3,78 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') +nock('http://xplattestadls363.azuredatalakestore.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?overwrite=true&syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', '*') +.put('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?overwrite=true&syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', '*') .reply(201, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - location: 'https://xplattestadls1277.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/concatfile.txt?overwrite=true&syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', - 'x-ms-request-id': '2c6dba7c-fdd4-440e-b417-ab2299f1039e', + location: 'https://xplattestadls363.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/concatfile.txt?overwrite=true&syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', + 'x-ms-request-id': 'd278ef5d-8da1-4125-8a22-81fecda85eb1', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:28 GMT', + date: 'Tue, 25 Jul 2017 17:39:59 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') +nock('https://xplattestadls363.azuredatalakestore.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?overwrite=true&syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', '*') +.put('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?overwrite=true&syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', '*') .reply(201, "", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', expires: '-1', - location: 'https://xplattestadls1277.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/concatfile.txt?overwrite=true&syncFlag=CLOSE&op=CREATE&write=true&api-version=2016-11-01', - 'x-ms-request-id': '2c6dba7c-fdd4-440e-b417-ab2299f1039e', + location: 'https://xplattestadls363.azuredatalakestore.net/webhdfs/v1/adlssdkfolder01/concatfile.txt?overwrite=true&syncFlag=CLOSE&write=true&op=CREATE&api-version=2016-11-01', + 'x-ms-request-id': 'd278ef5d-8da1-4125-8a22-81fecda85eb1', contentlength: '0', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:28 GMT', + date: 'Tue, 25 Jul 2017 17:39:59 GMT', connection: 'close', 'content-length': '0' }); return result; }, function (nock) { var result = -nock('http://xplattestadls1277.azuredatalakestore.net:443') - .get('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?length=23&offset=0&op=OPEN&read=true&api-version=2016-11-01') +nock('http://xplattestadls363.azuredatalakestore.net:443') + .get('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?length=23&offset=0&read=true&op=OPEN&api-version=2016-11-01') .reply(200, "adls sdk test content!a", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'transfer-encoding': 'chunked', 'content-type': 'application/octet-stream', expires: '-1', - 'x-ms-request-id': 'a7385d00-1df5-4b7b-b8d1-9104727d6605', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '732e4104-7802-4a02-9e91-11d039e094b2', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:28 GMT', + date: 'Tue, 25 Jul 2017 17:39:59 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadls1277.azuredatalakestore.net:443') - .get('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?length=23&offset=0&op=OPEN&read=true&api-version=2016-11-01') +nock('https://xplattestadls363.azuredatalakestore.net:443') + .get('/webhdfs/v1/adlssdkfolder01%2Fconcatfile.txt?length=23&offset=0&read=true&op=OPEN&api-version=2016-11-01') .reply(200, "adls sdk test content!a", { 'cache-control': 'no-cache, no-cache, no-store, max-age=0', pragma: 'no-cache', 'transfer-encoding': 'chunked', 'content-type': 'application/octet-stream', expires: '-1', - 'x-ms-request-id': 'a7385d00-1df5-4b7b-b8d1-9104727d6605', - 'x-ms-webhdfs-version': '16.12.19.00', + 'x-ms-request-id': '732e4104-7802-4a02-9e91-11d039e094b2', + 'x-ms-webhdfs-version': '17.04.22.00', status: '0x0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Thu, 23 Mar 2017 20:56:28 GMT', + date: 'Tue, 25 Jul 2017 17:39:59 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/arm-datalake-store-tests/suite.arm-datalake-store-tests.nock.js b/test/recordings/arm-datalake-store-tests/suite.arm-datalake-store-tests.nock.js index 445aa048cc..e46a9dd4e3 100644 --- a/test/recordings/arm-datalake-store-tests/suite.arm-datalake-store-tests.nock.js +++ b/test/recordings/arm-datalake-store-tests/suite.arm-datalake-store-tests.nock.js @@ -3,9 +3,9 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = '53d9063d-87ae-4ea8-be90-3686c3b8669f'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = []; - exports.randomTestIdsGenerated = function() { return ['xplattestadls2174','xplattestadls4679','xplattestadls1277'];}; \ No newline at end of file + exports.randomTestIdsGenerated = function() { return ['xplattestadls663','xplattestadls9269','xplattestadls363'];}; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_Delete_command_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_Delete_command_should_work.nock.js index 81cb7b1a48..6254cd6c8b 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_Delete_command_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_Delete_command_should_work.nock.js @@ -3,78 +3,78 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') - .delete('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01') + .delete('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': '64e0e0fb-7b35-43b3-a9f3-09a70f61b81a', + 'x-ms-request-id': '76bf89af-1afe-406a-81b0-4f22908b524c', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': '4d353d1a-f5a3-4e0e-9c6a-4a4bf0f611b6', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092418Z:4d353d1a-f5a3-4e0e-9c6a-4a4bf0f611b6', + 'x-ms-correlation-request-id': 'ce4389ef-d2d6-49fd-9db7-d82cffa82696', + 'x-ms-routing-request-id': 'WESTUS:20170725T175615Z:ce4389ef-d2d6-49fd-9db7-d82cffa82696', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:17 GMT', + date: 'Tue, 25 Jul 2017 17:56:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .delete('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01') + .delete('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': '64e0e0fb-7b35-43b3-a9f3-09a70f61b81a', + 'x-ms-request-id': '76bf89af-1afe-406a-81b0-4f22908b524c', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': '4d353d1a-f5a3-4e0e-9c6a-4a4bf0f611b6', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092418Z:4d353d1a-f5a3-4e0e-9c6a-4a4bf0f611b6', + 'x-ms-correlation-request-id': 'ce4389ef-d2d6-49fd-9db7-d82cffa82696', + 'x-ms-routing-request-id': 'WESTUS:20170725T175615Z:ce4389ef-d2d6-49fd-9db7-d82cffa82696', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:17 GMT', + date: 'Tue, 25 Jul 2017 17:56:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01') - .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.DataLakeAnalytics/accounts/xplattestadla8406' under resource group 'xplattestadlarg05' was not found.\"}}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01') + .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.DataLakeAnalytics/accounts/xplattestadla5213' under resource group 'xplattestadlarg05' was not found.\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'x-ms-failure-cause': 'gateway', - 'x-ms-request-id': '56a50e5f-1e81-4b23-9384-06808ac0622b', - 'x-ms-correlation-request-id': '56a50e5f-1e81-4b23-9384-06808ac0622b', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092419Z:56a50e5f-1e81-4b23-9384-06808ac0622b', + 'x-ms-request-id': '35616c75-2247-4250-a1cb-b96875de9967', + 'x-ms-correlation-request-id': '35616c75-2247-4250-a1cb-b96875de9967', + 'x-ms-routing-request-id': 'WESTUS:20170725T175615Z:35616c75-2247-4250-a1cb-b96875de9967', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:18 GMT', + date: 'Tue, 25 Jul 2017 17:56:15 GMT', connection: 'close', 'content-length': '175' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01') - .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.DataLakeAnalytics/accounts/xplattestadla8406' under resource group 'xplattestadlarg05' was not found.\"}}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01') + .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.DataLakeAnalytics/accounts/xplattestadla5213' under resource group 'xplattestadlarg05' was not found.\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'x-ms-failure-cause': 'gateway', - 'x-ms-request-id': '56a50e5f-1e81-4b23-9384-06808ac0622b', - 'x-ms-correlation-request-id': '56a50e5f-1e81-4b23-9384-06808ac0622b', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092419Z:56a50e5f-1e81-4b23-9384-06808ac0622b', + 'x-ms-request-id': '35616c75-2247-4250-a1cb-b96875de9967', + 'x-ms-correlation-request-id': '35616c75-2247-4250-a1cb-b96875de9967', + 'x-ms-routing-request-id': 'WESTUS:20170725T175615Z:35616c75-2247-4250-a1cb-b96875de9967', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:18 GMT', + date: 'Tue, 25 Jul 2017 17:56:15 GMT', connection: 'close', 'content-length': '175' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_adding_and_removing_blob_storage_accounts_to_the_account_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_adding_and_removing_blob_storage_accounts_to_the_account_should_work.nock.js index aea13f30c6..0fef5143c5 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_adding_and_removing_blob_storage_accounts_to_the_account_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_adding_and_removing_blob_storage_accounts_to_the_account_should_work.nock.js @@ -3,208 +3,208 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') - .post('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.Storage/storageAccounts/xplattestadls2224/listKeys?api-version=2017-06-01') - .reply(200, "{\"keys\":[{\"keyName\":\"key1\",\"permissions\":\"Full\",\"value\":\"f6fOFayRAcnZDL6s+hQElYU2RB4JT15d8Dxagv90oreT9d3ce4yA3PCrlk6QYZM4qHWcchCaW8QKc2YjcKuE9g==\"},{\"keyName\":\"key2\",\"permissions\":\"Full\",\"value\":\"7lMRuoP5NFUmGNI38NtB/gBBNmRDRckEyuiRsGtcMGe96zZbOUdWYBAMYbeCfq3qNhM96k7D8TxYDNAemZ3/wQ==\"}]}\n", { 'cache-control': 'no-cache', + .post('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.Storage/storageAccounts/xplattestadls3651/listKeys?api-version=2017-06-01') + .reply(200, "{\"keys\":[{\"keyName\":\"key1\",\"permissions\":\"Full\",\"value\":\"sogk315VrkVcW9fPLsqcOrxEYYJMe0iCoK3uIH2xDsRGGF04baNMyrRNgJjQkCZrjeszaUDkmLDt3UzAnkVwZQ==\"},{\"keyName\":\"key2\",\"permissions\":\"Full\",\"value\":\"KqKB+qHoHvNDxyuJAF+2bxkcfgSDqEe3Vr9u4halMYzO8aFEb0vBcERz7+6Ubw3+mCd051C15Fb5gnWwK+wiOA==\"}]}\n", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '289', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'af420fa1-0927-402f-a5ca-d3c5544143c3', + 'x-ms-request-id': '36af1d88-cdad-4023-ae57-b42a7e09a996', server: 'Microsoft-Azure-Storage-Resource-Provider/1.0', 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': 'af420fa1-0927-402f-a5ca-d3c5544143c3', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092406Z:af420fa1-0927-402f-a5ca-d3c5544143c3', + 'x-ms-correlation-request-id': '36af1d88-cdad-4023-ae57-b42a7e09a996', + 'x-ms-routing-request-id': 'WESTUS:20170725T175607Z:36af1d88-cdad-4023-ae57-b42a7e09a996', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:06 GMT', + date: 'Tue, 25 Jul 2017 17:56:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .post('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.Storage/storageAccounts/xplattestadls2224/listKeys?api-version=2017-06-01') - .reply(200, "{\"keys\":[{\"keyName\":\"key1\",\"permissions\":\"Full\",\"value\":\"f6fOFayRAcnZDL6s+hQElYU2RB4JT15d8Dxagv90oreT9d3ce4yA3PCrlk6QYZM4qHWcchCaW8QKc2YjcKuE9g==\"},{\"keyName\":\"key2\",\"permissions\":\"Full\",\"value\":\"7lMRuoP5NFUmGNI38NtB/gBBNmRDRckEyuiRsGtcMGe96zZbOUdWYBAMYbeCfq3qNhM96k7D8TxYDNAemZ3/wQ==\"}]}\n", { 'cache-control': 'no-cache', + .post('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.Storage/storageAccounts/xplattestadls3651/listKeys?api-version=2017-06-01') + .reply(200, "{\"keys\":[{\"keyName\":\"key1\",\"permissions\":\"Full\",\"value\":\"sogk315VrkVcW9fPLsqcOrxEYYJMe0iCoK3uIH2xDsRGGF04baNMyrRNgJjQkCZrjeszaUDkmLDt3UzAnkVwZQ==\"},{\"keyName\":\"key2\",\"permissions\":\"Full\",\"value\":\"KqKB+qHoHvNDxyuJAF+2bxkcfgSDqEe3Vr9u4halMYzO8aFEb0vBcERz7+6Ubw3+mCd051C15Fb5gnWwK+wiOA==\"}]}\n", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '289', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'af420fa1-0927-402f-a5ca-d3c5544143c3', + 'x-ms-request-id': '36af1d88-cdad-4023-ae57-b42a7e09a996', server: 'Microsoft-Azure-Storage-Resource-Provider/1.0', 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': 'af420fa1-0927-402f-a5ca-d3c5544143c3', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092406Z:af420fa1-0927-402f-a5ca-d3c5544143c3', + 'x-ms-correlation-request-id': '36af1d88-cdad-4023-ae57-b42a7e09a996', + 'x-ms-routing-request-id': 'WESTUS:20170725T175607Z:36af1d88-cdad-4023-ae57-b42a7e09a996', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:06 GMT', + date: 'Tue, 25 Jul 2017 17:56:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/StorageAccounts/xplattestadls2224?api-version=2016-11-01', '*') - .reply(200, "{\"properties\":{\"suffix\":\"core.windows.net\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/storageAccounts/xplattestadls2224\",\"name\":\"xplattestadls2224\",\"type\":\"Microsoft.DataLakeAnalytics/accounts/storageAccounts\"}", { 'cache-control': 'no-cache', +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/StorageAccounts/xplattestadls3651?api-version=2016-11-01', '*') + .reply(200, "{\"properties\":{\"suffix\":\"core.windows.net\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/storageAccounts/xplattestadls3651\",\"name\":\"xplattestadls3651\",\"type\":\"Microsoft.DataLakeAnalytics/accounts/storageAccounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '324', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '4a187985-2542-4e07-9ed2-16b4002430a9', + 'x-ms-request-id': '48ee0a2d-a8ed-43cf-bfd4-e947c4d3c1da', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '2d8642c4-ea0c-4b14-8ef6-ef346230022d', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092409Z:2d8642c4-ea0c-4b14-8ef6-ef346230022d', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '6787b719-daaa-423a-92d0-d10524f0f45f', + 'x-ms-routing-request-id': 'WESTUS:20170725T175609Z:6787b719-daaa-423a-92d0-d10524f0f45f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:08 GMT', + date: 'Tue, 25 Jul 2017 17:56:08 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/StorageAccounts/xplattestadls2224?api-version=2016-11-01', '*') - .reply(200, "{\"properties\":{\"suffix\":\"core.windows.net\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/storageAccounts/xplattestadls2224\",\"name\":\"xplattestadls2224\",\"type\":\"Microsoft.DataLakeAnalytics/accounts/storageAccounts\"}", { 'cache-control': 'no-cache', +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/StorageAccounts/xplattestadls3651?api-version=2016-11-01', '*') + .reply(200, "{\"properties\":{\"suffix\":\"core.windows.net\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/storageAccounts/xplattestadls3651\",\"name\":\"xplattestadls3651\",\"type\":\"Microsoft.DataLakeAnalytics/accounts/storageAccounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '324', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '4a187985-2542-4e07-9ed2-16b4002430a9', + 'x-ms-request-id': '48ee0a2d-a8ed-43cf-bfd4-e947c4d3c1da', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '2d8642c4-ea0c-4b14-8ef6-ef346230022d', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092409Z:2d8642c4-ea0c-4b14-8ef6-ef346230022d', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '6787b719-daaa-423a-92d0-d10524f0f45f', + 'x-ms-routing-request-id': 'WESTUS:20170725T175609Z:6787b719-daaa-423a-92d0-d10524f0f45f', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:08 GMT', + date: 'Tue, 25 Jul 2017 17:56:08 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[{\"properties\":{\"suffix\":\"core.windows.net\"},\"name\":\"xplattestadls2224\"}],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[{\"properties\":{\"suffix\":\"core.windows.net\"},\"name\":\"xplattestadls3651\"}],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1234', + 'content-length': '1232', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '1da9c578-6642-412f-b2fc-2f7d21449e01', + 'x-ms-request-id': '934c10b3-e37f-4160-9d09-b0f4f3438d25', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14980', - 'x-ms-correlation-request-id': '4a53e1ac-e2bb-4fcc-9937-abeaa5c65b92', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092410Z:4a53e1ac-e2bb-4fcc-9937-abeaa5c65b92', + 'x-ms-ratelimit-remaining-subscription-reads': '14989', + 'x-ms-correlation-request-id': 'e1777c4d-396d-4cce-acbb-a95b2c9de6c3', + 'x-ms-routing-request-id': 'WESTUS:20170725T175610Z:e1777c4d-396d-4cce-acbb-a95b2c9de6c3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:10 GMT', + date: 'Tue, 25 Jul 2017 17:56:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[{\"properties\":{\"suffix\":\"core.windows.net\"},\"name\":\"xplattestadls2224\"}],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[{\"properties\":{\"suffix\":\"core.windows.net\"},\"name\":\"xplattestadls3651\"}],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1234', + 'content-length': '1232', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '1da9c578-6642-412f-b2fc-2f7d21449e01', + 'x-ms-request-id': '934c10b3-e37f-4160-9d09-b0f4f3438d25', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14980', - 'x-ms-correlation-request-id': '4a53e1ac-e2bb-4fcc-9937-abeaa5c65b92', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092410Z:4a53e1ac-e2bb-4fcc-9937-abeaa5c65b92', + 'x-ms-ratelimit-remaining-subscription-reads': '14989', + 'x-ms-correlation-request-id': 'e1777c4d-396d-4cce-acbb-a95b2c9de6c3', + 'x-ms-routing-request-id': 'WESTUS:20170725T175610Z:e1777c4d-396d-4cce-acbb-a95b2c9de6c3', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:10 GMT', + date: 'Tue, 25 Jul 2017 17:56:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .delete('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/StorageAccounts/xplattestadls2224?api-version=2016-11-01') + .delete('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/StorageAccounts/xplattestadls3651?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': '98f7ea4b-ae6e-49de-9796-5437aa4f9a94', + 'x-ms-request-id': '49f7e309-bcc7-4c4b-a841-1f15bea3c887', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': '8cffa85a-cfaf-48a5-b60f-faf13d112943', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092412Z:8cffa85a-cfaf-48a5-b60f-faf13d112943', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': 'dfc7e9f2-449d-4369-a12b-63e8bbe6d2b8', + 'x-ms-routing-request-id': 'WESTUS:20170725T175611Z:dfc7e9f2-449d-4369-a12b-63e8bbe6d2b8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:11 GMT', + date: 'Tue, 25 Jul 2017 17:56:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .delete('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/StorageAccounts/xplattestadls2224?api-version=2016-11-01') + .delete('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/StorageAccounts/xplattestadls3651?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': '98f7ea4b-ae6e-49de-9796-5437aa4f9a94', + 'x-ms-request-id': '49f7e309-bcc7-4c4b-a841-1f15bea3c887', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': '8cffa85a-cfaf-48a5-b60f-faf13d112943', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092412Z:8cffa85a-cfaf-48a5-b60f-faf13d112943', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': 'dfc7e9f2-449d-4369-a12b-63e8bbe6d2b8', + 'x-ms-routing-request-id': 'WESTUS:20170725T175611Z:dfc7e9f2-449d-4369-a12b-63e8bbe6d2b8', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:11 GMT', + date: 'Tue, 25 Jul 2017 17:56:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1163', + 'content-length': '1161', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'c4c6e973-9ff0-4be0-b12f-bbcf0c3810cf', + 'x-ms-request-id': '3d538408-c251-4f4d-aa0f-578f4e944706', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14991', - 'x-ms-correlation-request-id': '2f194e5d-a944-4e42-a103-67489a9d93b5', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092413Z:2f194e5d-a944-4e42-a103-67489a9d93b5', + 'x-ms-ratelimit-remaining-subscription-reads': '14992', + 'x-ms-correlation-request-id': '4884441e-03cc-4268-9a24-48e6c99d157a', + 'x-ms-routing-request-id': 'WESTUS:20170725T175612Z:4884441e-03cc-4268-9a24-48e6c99d157a', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:12 GMT', + date: 'Tue, 25 Jul 2017 17:56:11 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1163', + 'content-length': '1161', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'c4c6e973-9ff0-4be0-b12f-bbcf0c3810cf', + 'x-ms-request-id': '3d538408-c251-4f4d-aa0f-578f4e944706', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14991', - 'x-ms-correlation-request-id': '2f194e5d-a944-4e42-a103-67489a9d93b5', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092413Z:2f194e5d-a944-4e42-a103-67489a9d93b5', + 'x-ms-ratelimit-remaining-subscription-reads': '14992', + 'x-ms-correlation-request-id': '4884441e-03cc-4268-9a24-48e6c99d157a', + 'x-ms-routing-request-id': 'WESTUS:20170725T175612Z:4884441e-03cc-4268-9a24-48e6c99d157a', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:12 GMT', + date: 'Tue, 25 Jul 2017 17:56:11 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_adding_and_removing_data_lake_storage_accounts_to_the_account_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_adding_and_removing_data_lake_storage_accounts_to_the_account_should_work.nock.js index d33c78a64c..103a0a4899 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_adding_and_removing_data_lake_storage_accounts_to_the_account_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_adding_and_removing_data_lake_storage_accounts_to_the_account_should_work.nock.js @@ -3,170 +3,170 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') - .put('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/DataLakeStoreAccounts/xplattestadls6153?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/dataLakeStoreAccounts/xplattestadls6153\",\"name\":\"xplattestadls6153\",\"type\":\"Microsoft.DataLakeAnalytics/accounts/dataLakeStoreAccounts\"}", { 'cache-control': 'no-cache', + .put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/DataLakeStoreAccounts/xplattestadls277?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/dataLakeStoreAccounts/xplattestadls277\",\"name\":\"xplattestadls277\",\"type\":\"Microsoft.DataLakeAnalytics/accounts/dataLakeStoreAccounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '342', + 'content-length': '340', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'e70c3422-e2ee-400d-8866-0a06523c49a1', + 'x-ms-request-id': '2ea0ab53-c876-4d45-9e81-ddc806701a03', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': '30b91d4a-5f8f-4a96-b585-764a96941bd3', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092400Z:30b91d4a-5f8f-4a96-b585-764a96941bd3', + 'x-ms-ratelimit-remaining-subscription-writes': '1196', + 'x-ms-correlation-request-id': 'f1e4a9f3-7cb4-4d62-b813-e356aaf677c1', + 'x-ms-routing-request-id': 'WESTUS:20170725T175604Z:f1e4a9f3-7cb4-4d62-b813-e356aaf677c1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:00 GMT', + date: 'Tue, 25 Jul 2017 17:56:04 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .put('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/DataLakeStoreAccounts/xplattestadls6153?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/dataLakeStoreAccounts/xplattestadls6153\",\"name\":\"xplattestadls6153\",\"type\":\"Microsoft.DataLakeAnalytics/accounts/dataLakeStoreAccounts\"}", { 'cache-control': 'no-cache', + .put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/DataLakeStoreAccounts/xplattestadls277?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/dataLakeStoreAccounts/xplattestadls277\",\"name\":\"xplattestadls277\",\"type\":\"Microsoft.DataLakeAnalytics/accounts/dataLakeStoreAccounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '342', + 'content-length': '340', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'e70c3422-e2ee-400d-8866-0a06523c49a1', + 'x-ms-request-id': '2ea0ab53-c876-4d45-9e81-ddc806701a03', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': '30b91d4a-5f8f-4a96-b585-764a96941bd3', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092400Z:30b91d4a-5f8f-4a96-b585-764a96941bd3', + 'x-ms-ratelimit-remaining-subscription-writes': '1196', + 'x-ms-correlation-request-id': 'f1e4a9f3-7cb4-4d62-b813-e356aaf677c1', + 'x-ms-routing-request-id': 'WESTUS:20170725T175604Z:f1e4a9f3-7cb4-4d62-b813-e356aaf677c1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:00 GMT', + date: 'Tue, 25 Jul 2017 17:56:04 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"},{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6153\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls277\"},{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1241', + 'content-length': '1238', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'a76c725b-fbcd-4b80-9dae-c09b4c3326f0', + 'x-ms-request-id': '03d7b4ea-337b-432a-9431-116738a1ecdc', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14996', - 'x-ms-correlation-request-id': 'a5385d74-38b8-489b-8025-ffdc453686a5', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092401Z:a5385d74-38b8-489b-8025-ffdc453686a5', + 'x-ms-ratelimit-remaining-subscription-reads': '14982', + 'x-ms-correlation-request-id': 'f3b5feeb-3991-4561-8973-7648d517c3ac', + 'x-ms-routing-request-id': 'WESTUS:20170725T175605Z:f3b5feeb-3991-4561-8973-7648d517c3ac', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:01 GMT', + date: 'Tue, 25 Jul 2017 17:56:05 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"},{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6153\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls277\"},{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1241', + 'content-length': '1238', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'a76c725b-fbcd-4b80-9dae-c09b4c3326f0', + 'x-ms-request-id': '03d7b4ea-337b-432a-9431-116738a1ecdc', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14996', - 'x-ms-correlation-request-id': 'a5385d74-38b8-489b-8025-ffdc453686a5', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092401Z:a5385d74-38b8-489b-8025-ffdc453686a5', + 'x-ms-ratelimit-remaining-subscription-reads': '14982', + 'x-ms-correlation-request-id': 'f3b5feeb-3991-4561-8973-7648d517c3ac', + 'x-ms-routing-request-id': 'WESTUS:20170725T175605Z:f3b5feeb-3991-4561-8973-7648d517c3ac', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:01 GMT', + date: 'Tue, 25 Jul 2017 17:56:05 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .delete('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/DataLakeStoreAccounts/xplattestadls6153?api-version=2016-11-01') + .delete('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/DataLakeStoreAccounts/xplattestadls277?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': '418a0716-9f7a-441a-8021-34eccaa9f2dd', + 'x-ms-request-id': 'cc3ab1a2-44e2-4fe2-b951-cd14783e1879', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': '5423bb53-cabb-40ee-a360-adbd415db160', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092403Z:5423bb53-cabb-40ee-a360-adbd415db160', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '75187613-2306-49b1-a74a-9fa2d3695400', + 'x-ms-routing-request-id': 'WESTUS:20170725T175606Z:75187613-2306-49b1-a74a-9fa2d3695400', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:02 GMT', + date: 'Tue, 25 Jul 2017 17:56:05 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .delete('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793/DataLakeStoreAccounts/xplattestadls6153?api-version=2016-11-01') + .delete('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847/DataLakeStoreAccounts/xplattestadls277?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', - 'x-ms-request-id': '418a0716-9f7a-441a-8021-34eccaa9f2dd', + 'x-ms-request-id': 'cc3ab1a2-44e2-4fe2-b951-cd14783e1879', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1197', - 'x-ms-correlation-request-id': '5423bb53-cabb-40ee-a360-adbd415db160', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092403Z:5423bb53-cabb-40ee-a360-adbd415db160', + 'x-ms-ratelimit-remaining-subscription-writes': '1198', + 'x-ms-correlation-request-id': '75187613-2306-49b1-a74a-9fa2d3695400', + 'x-ms-routing-request-id': 'WESTUS:20170725T175606Z:75187613-2306-49b1-a74a-9fa2d3695400', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:02 GMT', + date: 'Tue, 25 Jul 2017 17:56:05 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1163', + 'content-length': '1161', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'ae33387e-d203-420b-9578-49e90ccd2b28', + 'x-ms-request-id': 'ccb8a176-d26c-4307-9a0e-c8caa458798a', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14976', - 'x-ms-correlation-request-id': '35ab58fb-b8e7-4249-b58d-c31c8c6d8544', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092405Z:35ab58fb-b8e7-4249-b58d-c31c8c6d8544', + 'x-ms-ratelimit-remaining-subscription-reads': '14988', + 'x-ms-correlation-request-id': 'b6a76287-1728-42ae-91ae-ebb9f7e5ad6e', + 'x-ms-routing-request-id': 'WESTUS:20170725T175607Z:b6a76287-1728-42ae-91ae-ebb9f7e5ad6e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:04 GMT', + date: 'Tue, 25 Jul 2017 17:56:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1163', + 'content-length': '1161', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'ae33387e-d203-420b-9578-49e90ccd2b28', + 'x-ms-request-id': 'ccb8a176-d26c-4307-9a0e-c8caa458798a', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14976', - 'x-ms-correlation-request-id': '35ab58fb-b8e7-4249-b58d-c31c8c6d8544', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092405Z:35ab58fb-b8e7-4249-b58d-c31c8c6d8544', + 'x-ms-ratelimit-remaining-subscription-reads': '14988', + 'x-ms-correlation-request-id': 'b6a76287-1728-42ae-91ae-ebb9f7e5ad6e', + 'x-ms-routing-request-id': 'WESTUS:20170725T175607Z:b6a76287-1728-42ae-91ae-ebb9f7e5ad6e', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:04 GMT', + date: 'Tue, 25 Jul 2017 17:56:06 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_create_account_with_same_name_should_fail.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_create_account_with_same_name_should_fail.nock.js index a05d8bc180..da7151ae76 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_create_account_with_same_name_should_fail.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_create_account_with_same_name_should_fail.nock.js @@ -3,50 +3,50 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadla5226/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01', '*') +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadla324/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01', '*') .reply(409, "{\"error\":{\"code\":\"ResourceConflicted\",\"message\":\"Resource Name belongs to another resource.\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '94', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'd94e9816-85d0-4f45-895b-88899f0ec32b', + 'x-ms-request-id': '6e40565d-24d2-4375-a4e7-69b0d2e42953', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '94b359a4-a150-42be-9e26-15524e38711b', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092349Z:94b359a4-a150-42be-9e26-15524e38711b', + 'x-ms-ratelimit-remaining-subscription-writes': '1197', + 'x-ms-correlation-request-id': 'baa80162-4656-4c7d-9ee2-f7748f6a2a45', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175559Z:baa80162-4656-4c7d-9ee2-f7748f6a2a45', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:49 GMT', + date: 'Tue, 25 Jul 2017 17:55:58 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadla5226/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01', '*') +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadla324/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01', '*') .reply(409, "{\"error\":{\"code\":\"ResourceConflicted\",\"message\":\"Resource Name belongs to another resource.\"}}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '94', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'd94e9816-85d0-4f45-895b-88899f0ec32b', + 'x-ms-request-id': '6e40565d-24d2-4375-a4e7-69b0d2e42953', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1199', - 'x-ms-correlation-request-id': '94b359a4-a150-42be-9e26-15524e38711b', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092349Z:94b359a4-a150-42be-9e26-15524e38711b', + 'x-ms-ratelimit-remaining-subscription-writes': '1197', + 'x-ms-correlation-request-id': 'baa80162-4656-4c7d-9ee2-f7748f6a2a45', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175559Z:baa80162-4656-4c7d-9ee2-f7748f6a2a45', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:49 GMT', + date: 'Tue, 25 Jul 2017 17:55:58 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_create_command_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_create_command_should_work.nock.js index 2dbf7679c7..271b71319a 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_create_command_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_create_command_should_work.nock.js @@ -3,140 +3,140 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01', '*') - .reply(201, "{\"properties\":{\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"queryStoreRetention\":30,\"provisioningState\":\"Creating\",\"state\":null,\"endpoint\":null,\"accountId\":\"04e22247-c454-4d5e-b662-4493ff7418aa\",\"creationTime\":null,\"lastModifiedTime\":null},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406\",\"name\":\"xplattestadla8406\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01', '*') + .reply(201, "{\"properties\":{\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"queryStoreRetention\":30,\"provisioningState\":\"Creating\",\"state\":null,\"endpoint\":null,\"accountId\":\"084a66e3-c970-42b2-993f-666848318e3d\",\"creationTime\":null,\"lastModifiedTime\":null},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213\",\"name\":\"xplattestadla5213\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '702', 'content-type': 'application/json', expires: '-1', - location: 'https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourcegroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406/operationresults/0?api-version=2016-11-01', + location: 'https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213/operationresults/0?api-version=2016-11-01', 'retry-after': '10', - 'azure-asyncoperation': 'https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/04e22247-c454-4d5e-b662-4493ff7418aa0?api-version=2016-11-01&expanded=true', - 'x-ms-request-id': 'fb4d035e-54c6-4c9f-8c3a-f78208e4ff0f', + 'azure-asyncoperation': 'https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/084a66e3-c970-42b2-993f-666848318e3d0?api-version=2016-11-01&expanded=true', + 'x-ms-request-id': '85542cde-cadc-470c-a093-5f0958ca70e5', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1196', - 'x-ms-correlation-request-id': '85ab2935-f238-4e44-aacb-8d87075b4b26', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092312Z:85ab2935-f238-4e44-aacb-8d87075b4b26', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'ac9e7048-da48-460e-80aa-01d405dc1761', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175525Z:ac9e7048-da48-460e-80aa-01d405dc1761', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:11 GMT', + date: 'Tue, 25 Jul 2017 17:55:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.put('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01', '*') - .reply(201, "{\"properties\":{\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"queryStoreRetention\":30,\"provisioningState\":\"Creating\",\"state\":null,\"endpoint\":null,\"accountId\":\"04e22247-c454-4d5e-b662-4493ff7418aa\",\"creationTime\":null,\"lastModifiedTime\":null},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406\",\"name\":\"xplattestadla8406\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', +.put('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01', '*') + .reply(201, "{\"properties\":{\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"queryStoreRetention\":30,\"provisioningState\":\"Creating\",\"state\":null,\"endpoint\":null,\"accountId\":\"084a66e3-c970-42b2-993f-666848318e3d\",\"creationTime\":null,\"lastModifiedTime\":null},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213\",\"name\":\"xplattestadla5213\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '702', 'content-type': 'application/json', expires: '-1', - location: 'https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourcegroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406/operationresults/0?api-version=2016-11-01', + location: 'https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourcegroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213/operationresults/0?api-version=2016-11-01', 'retry-after': '10', - 'azure-asyncoperation': 'https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/04e22247-c454-4d5e-b662-4493ff7418aa0?api-version=2016-11-01&expanded=true', - 'x-ms-request-id': 'fb4d035e-54c6-4c9f-8c3a-f78208e4ff0f', + 'azure-asyncoperation': 'https://management.azure.com/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/084a66e3-c970-42b2-993f-666848318e3d0?api-version=2016-11-01&expanded=true', + 'x-ms-request-id': '85542cde-cadc-470c-a093-5f0958ca70e5', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-writes': '1196', - 'x-ms-correlation-request-id': '85ab2935-f238-4e44-aacb-8d87075b4b26', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092312Z:85ab2935-f238-4e44-aacb-8d87075b4b26', + 'x-ms-ratelimit-remaining-subscription-writes': '1199', + 'x-ms-correlation-request-id': 'ac9e7048-da48-460e-80aa-01d405dc1761', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175525Z:ac9e7048-da48-460e-80aa-01d405dc1761', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:11 GMT', + date: 'Tue, 25 Jul 2017 17:55:25 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/04e22247-c454-4d5e-b662-4493ff7418aa0?api-version=2016-11-01&expanded=true') + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/084a66e3-c970-42b2-993f-666848318e3d0?api-version=2016-11-01&expanded=true') .reply(200, "{\"status\":\"Succeeded\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '22', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '00406fee-3446-42ce-ab89-7725c02f7107', + 'x-ms-request-id': '594df636-84b0-4dec-8bb9-92b2fbca4989', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14988', - 'x-ms-correlation-request-id': 'a686e9ba-a534-470b-9337-5a42a9011582', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092343Z:a686e9ba-a534-470b-9337-5a42a9011582', + 'x-ms-ratelimit-remaining-subscription-reads': '14993', + 'x-ms-correlation-request-id': '0d0029a9-165f-495c-adeb-8d901aca3b51', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175556Z:0d0029a9-165f-495c-adeb-8d901aca3b51', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:43 GMT', + date: 'Tue, 25 Jul 2017 17:55:55 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/04e22247-c454-4d5e-b662-4493ff7418aa0?api-version=2016-11-01&expanded=true') + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeAnalytics/locations/eastus2/operationResults/084a66e3-c970-42b2-993f-666848318e3d0?api-version=2016-11-01&expanded=true') .reply(200, "{\"status\":\"Succeeded\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '22', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '00406fee-3446-42ce-ab89-7725c02f7107', + 'x-ms-request-id': '594df636-84b0-4dec-8bb9-92b2fbca4989', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14988', - 'x-ms-correlation-request-id': 'a686e9ba-a534-470b-9337-5a42a9011582', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092343Z:a686e9ba-a534-470b-9337-5a42a9011582', + 'x-ms-ratelimit-remaining-subscription-reads': '14993', + 'x-ms-correlation-request-id': '0d0029a9-165f-495c-adeb-8d901aca3b51', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175556Z:0d0029a9-165f-495c-adeb-8d901aca3b51', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:43 GMT', + date: 'Tue, 25 Jul 2017 17:55:55 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla8406.azuredatalakeanalytics.net\",\"accountId\":\"04e22247-c454-4d5e-b662-4493ff7418aa\",\"creationTime\":\"2017-06-09T09:23:14.8213983Z\",\"lastModifiedTime\":\"2017-06-09T09:23:14.8213983Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406\",\"name\":\"xplattestadla8406\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla5213.azuredatalakeanalytics.net\",\"accountId\":\"084a66e3-c970-42b2-993f-666848318e3d\",\"creationTime\":\"2017-07-25T17:55:25.0306153Z\",\"lastModifiedTime\":\"2017-07-25T17:55:25.0306153Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213\",\"name\":\"xplattestadla5213\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '1139', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'efba444e-758e-4576-b8d4-8b8ffa3eb67a', + 'x-ms-request-id': '832fbb1e-d350-4c4d-ba50-95ccd30783a4', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14993', - 'x-ms-correlation-request-id': '3cae4eb1-5e29-4ccc-b2b8-ec7cbfded73d', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092344Z:3cae4eb1-5e29-4ccc-b2b8-ec7cbfded73d', + 'x-ms-ratelimit-remaining-subscription-reads': '14989', + 'x-ms-correlation-request-id': 'cf288df1-812a-41dd-9cf7-66bceb7e2b7b', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175556Z:cf288df1-812a-41dd-9cf7-66bceb7e2b7b', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:44 GMT', + date: 'Tue, 25 Jul 2017 17:55:56 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla8406.azuredatalakeanalytics.net\",\"accountId\":\"04e22247-c454-4d5e-b662-4493ff7418aa\",\"creationTime\":\"2017-06-09T09:23:14.8213983Z\",\"lastModifiedTime\":\"2017-06-09T09:23:14.8213983Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406\",\"name\":\"xplattestadla8406\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla5213.azuredatalakeanalytics.net\",\"accountId\":\"084a66e3-c970-42b2-993f-666848318e3d\",\"creationTime\":\"2017-07-25T17:55:25.0306153Z\",\"lastModifiedTime\":\"2017-07-25T17:55:25.0306153Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213\",\"name\":\"xplattestadla5213\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '1139', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'efba444e-758e-4576-b8d4-8b8ffa3eb67a', + 'x-ms-request-id': '832fbb1e-d350-4c4d-ba50-95ccd30783a4', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14993', - 'x-ms-correlation-request-id': '3cae4eb1-5e29-4ccc-b2b8-ec7cbfded73d', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092344Z:3cae4eb1-5e29-4ccc-b2b8-ec7cbfded73d', + 'x-ms-ratelimit-remaining-subscription-reads': '14989', + 'x-ms-correlation-request-id': 'cf288df1-812a-41dd-9cf7-66bceb7e2b7b', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175556Z:cf288df1-812a-41dd-9cf7-66bceb7e2b7b', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:44 GMT', + date: 'Tue, 25 Jul 2017 17:55:56 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_get_command_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_get_command_should_work.nock.js index 830035d4f5..1f0b4c43e0 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_get_command_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_get_command_should_work.nock.js @@ -3,48 +3,48 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:22:35.1258092Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:54:52.827837Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1094', + 'content-length': '1092', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'f2b2bdc6-1d16-44ef-a06d-8ccc07c2353a', + 'x-ms-request-id': 'd4b40659-dcfc-4e4f-a882-8350d70e1570', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14997', - 'x-ms-correlation-request-id': '6701b38e-585d-4058-9a1f-69ca256bd8fd', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092350Z:6701b38e-585d-4058-9a1f-69ca256bd8fd', + 'x-ms-ratelimit-remaining-subscription-reads': '14989', + 'x-ms-correlation-request-id': 'a13f2f76-f6fc-41b2-bbab-d0a34ed0b630', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175600Z:a13f2f76-f6fc-41b2-bbab-d0a34ed0b630', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:50 GMT', + date: 'Tue, 25 Jul 2017 17:55:59 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:22:35.1258092Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"systemMaxDegreeOfParallelism\":100,\"systemMaxJobCount\":20,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:54:52.827837Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1094', + 'content-length': '1092', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'f2b2bdc6-1d16-44ef-a06d-8ccc07c2353a', + 'x-ms-request-id': 'd4b40659-dcfc-4e4f-a882-8350d70e1570', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14997', - 'x-ms-correlation-request-id': '6701b38e-585d-4058-9a1f-69ca256bd8fd', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092350Z:6701b38e-585d-4058-9a1f-69ca256bd8fd', + 'x-ms-ratelimit-remaining-subscription-reads': '14989', + 'x-ms-correlation-request-id': 'a13f2f76-f6fc-41b2-bbab-d0a34ed0b630', + 'x-ms-routing-request-id': 'WESTUS2:20170725T175600Z:a13f2f76-f6fc-41b2-bbab-d0a34ed0b630', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:50 GMT', + date: 'Tue, 25 Jul 2017 17:55:59 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_list_commands_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_list_commands_should_work.nock.js index 438507c1ea..a94a4946dd 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_list_commands_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_list_commands_should_work.nock.js @@ -3,90 +3,90 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:22:35.1258092Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla8406.azuredatalakeanalytics.net\",\"accountId\":\"04e22247-c454-4d5e-b662-4493ff7418aa\",\"creationTime\":\"2017-06-09T09:23:14.8213983Z\",\"lastModifiedTime\":\"2017-06-09T09:23:14.8213983Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406\",\"name\":\"xplattestadla8406\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}]}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01') + .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"begoldsmdla01.azuredatalakeanalytics.net\",\"accountId\":\"26aa3b77-01a7-486a-af33-fedb4ced8b8b\",\"creationTime\":\"2017-04-13T18:27:51.865156Z\",\"lastModifiedTime\":\"2017-04-13T18:27:51.865156Z\"},\"location\":\"eastus2\",\"tags\":{},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/begoldsmadlsrg01/providers/Microsoft.DataLakeAnalytics/accounts/begoldsmdla01\",\"name\":\"begoldsmdla01\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:54:52.827837Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla5213.azuredatalakeanalytics.net\",\"accountId\":\"084a66e3-c970-42b2-993f-666848318e3d\",\"creationTime\":\"2017-07-25T17:55:25.0306153Z\",\"lastModifiedTime\":\"2017-07-25T17:55:25.0306153Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213\",\"name\":\"xplattestadla5213\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}]}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1124', + 'content-length': '1639', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '0ec3b956-df29-46ab-a832-e390e0c8e9a0', + 'x-ms-request-id': 'd772d8c1-2e4e-4c87-acb8-ef1ab812abcb', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14992', - 'x-ms-correlation-request-id': '876d84d9-2144-49c7-9d24-31d64acd9b2e', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092352Z:876d84d9-2144-49c7-9d24-31d64acd9b2e', + 'x-ms-ratelimit-remaining-subscription-reads': '14993', + 'x-ms-correlation-request-id': '3b0f59b9-ddb2-49d2-b5a9-2aab4b74dff5', + 'x-ms-routing-request-id': 'WESTUS:20170725T175600Z:3b0f59b9-ddb2-49d2-b5a9-2aab4b74dff5', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:51 GMT', + date: 'Tue, 25 Jul 2017 17:56:00 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:22:35.1258092Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla8406.azuredatalakeanalytics.net\",\"accountId\":\"04e22247-c454-4d5e-b662-4493ff7418aa\",\"creationTime\":\"2017-06-09T09:23:14.8213983Z\",\"lastModifiedTime\":\"2017-06-09T09:23:14.8213983Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406\",\"name\":\"xplattestadla8406\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}]}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01') + .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"begoldsmdla01.azuredatalakeanalytics.net\",\"accountId\":\"26aa3b77-01a7-486a-af33-fedb4ced8b8b\",\"creationTime\":\"2017-04-13T18:27:51.865156Z\",\"lastModifiedTime\":\"2017-04-13T18:27:51.865156Z\"},\"location\":\"eastus2\",\"tags\":{},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/begoldsmadlsrg01/providers/Microsoft.DataLakeAnalytics/accounts/begoldsmdla01\",\"name\":\"begoldsmdla01\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:54:52.827837Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla5213.azuredatalakeanalytics.net\",\"accountId\":\"084a66e3-c970-42b2-993f-666848318e3d\",\"creationTime\":\"2017-07-25T17:55:25.0306153Z\",\"lastModifiedTime\":\"2017-07-25T17:55:25.0306153Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213\",\"name\":\"xplattestadla5213\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}]}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1124', + 'content-length': '1639', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': '0ec3b956-df29-46ab-a832-e390e0c8e9a0', + 'x-ms-request-id': 'd772d8c1-2e4e-4c87-acb8-ef1ab812abcb', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14992', - 'x-ms-correlation-request-id': '876d84d9-2144-49c7-9d24-31d64acd9b2e', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092352Z:876d84d9-2144-49c7-9d24-31d64acd9b2e', + 'x-ms-ratelimit-remaining-subscription-reads': '14993', + 'x-ms-correlation-request-id': '3b0f59b9-ddb2-49d2-b5a9-2aab4b74dff5', + 'x-ms-routing-request-id': 'WESTUS:20170725T175600Z:3b0f59b9-ddb2-49d2-b5a9-2aab4b74dff5', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:51 GMT', + date: 'Tue, 25 Jul 2017 17:56:00 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:22:35.1258092Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla8406.azuredatalakeanalytics.net\",\"accountId\":\"04e22247-c454-4d5e-b662-4493ff7418aa\",\"creationTime\":\"2017-06-09T09:23:14.8213983Z\",\"lastModifiedTime\":\"2017-06-09T09:23:14.8213983Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406\",\"name\":\"xplattestadla8406\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}]}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01') + .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:54:52.827837Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla5213.azuredatalakeanalytics.net\",\"accountId\":\"084a66e3-c970-42b2-993f-666848318e3d\",\"creationTime\":\"2017-07-25T17:55:25.0306153Z\",\"lastModifiedTime\":\"2017-07-25T17:55:25.0306153Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213\",\"name\":\"xplattestadla5213\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}]}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1124', + 'content-length': '1122', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'e3b034b8-6cd6-4ea9-87fc-800f6d5076c2', + 'x-ms-request-id': 'a06c6678-8289-4860-add3-8c935aeaf3dd', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14981', - 'x-ms-correlation-request-id': '51a0c6fc-2147-4741-b6f8-0adbb9d714fe', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092353Z:51a0c6fc-2147-4741-b6f8-0adbb9d714fe', + 'x-ms-ratelimit-remaining-subscription-reads': '14989', + 'x-ms-correlation-request-id': '23b6f213-4977-4dfd-9e9e-ec3ecb276192', + 'x-ms-routing-request-id': 'WESTUS:20170725T175601Z:23b6f213-4977-4dfd-9e9e-ec3ecb276192', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:53 GMT', + date: 'Tue, 25 Jul 2017 17:56:01 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') - .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:22:35.1258092Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla8406.azuredatalakeanalytics.net\",\"accountId\":\"04e22247-c454-4d5e-b662-4493ff7418aa\",\"creationTime\":\"2017-06-09T09:23:14.8213983Z\",\"lastModifiedTime\":\"2017-06-09T09:23:14.8213983Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla8406\",\"name\":\"xplattestadla8406\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}]}", { 'cache-control': 'no-cache', + .get('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts?api-version=2016-11-01') + .reply(200, "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:54:52.827837Z\"},\"location\":\"eastus2\",\"tags\":null,\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla5213.azuredatalakeanalytics.net\",\"accountId\":\"084a66e3-c970-42b2-993f-666848318e3d\",\"creationTime\":\"2017-07-25T17:55:25.0306153Z\",\"lastModifiedTime\":\"2017-07-25T17:55:25.0306153Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla5213\",\"name\":\"xplattestadla5213\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}]}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1124', + 'content-length': '1122', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'e3b034b8-6cd6-4ea9-87fc-800f6d5076c2', + 'x-ms-request-id': 'a06c6678-8289-4860-add3-8c935aeaf3dd', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', - 'x-ms-ratelimit-remaining-subscription-reads': '14981', - 'x-ms-correlation-request-id': '51a0c6fc-2147-4741-b6f8-0adbb9d714fe', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092353Z:51a0c6fc-2147-4741-b6f8-0adbb9d714fe', + 'x-ms-ratelimit-remaining-subscription-reads': '14989', + 'x-ms-correlation-request-id': '23b6f213-4977-4dfd-9e9e-ec3ecb276192', + 'x-ms-routing-request-id': 'WESTUS:20170725T175601Z:23b6f213-4977-4dfd-9e9e-ec3ecb276192', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:53 GMT', + date: 'Tue, 25 Jul 2017 17:56:01 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_updating_the_account_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_updating_the_account_should_work.nock.js index 77b4392e3c..5b647ad564 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_updating_the_account_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Account_updating_the_account_should_work.nock.js @@ -3,50 +3,50 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01', '*') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', +.patch('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01', '*') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1105', + 'content-length': '1103', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'b63fa337-d68a-4d3b-808e-5839c2376c72', + 'x-ms-request-id': '1a67f4f4-58c1-4662-a969-707cc617c840', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': 'b403b88e-7c73-4b09-bbf0-3a7dc7def354', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092358Z:b403b88e-7c73-4b09-bbf0-3a7dc7def354', + 'x-ms-correlation-request-id': '58133dee-e9a2-4ddb-b712-211e7e8e44d6', + 'x-ms-routing-request-id': 'WESTUS:20170725T175603Z:58133dee-e9a2-4ddb-b712-211e7e8e44d6', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:57 GMT', + date: 'Tue, 25 Jul 2017 17:56:03 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793?api-version=2016-11-01', '*') - .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls1506\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls1506\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla7793.azuredatalakeanalytics.net\",\"accountId\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"creationTime\":\"2017-06-09T09:22:35.1258092Z\",\"lastModifiedTime\":\"2017-06-09T09:23:56.9966253Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla7793\",\"name\":\"xplattestadla7793\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', +.patch('/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847?api-version=2016-11-01', '*') + .reply(200, "{\"properties\":{\"firewallState\":\"Disabled\",\"firewallAllowAzureIps\":\"Disabled\",\"debugDataAccessLevel\":\"All\",\"firewallRules\":[],\"defaultDataLakeStoreAccount\":\"xplattestadls6239\",\"dataLakeStoreAccounts\":[{\"properties\":{\"suffix\":\"azuredatalakestore.net\"},\"name\":\"xplattestadls6239\"}],\"storageAccounts\":[],\"maxDegreeOfParallelism\":30,\"maxJobCount\":3,\"maxDegreeOfParallelismPerJob\":30,\"minPriorityPerJob\":1,\"computePolicies\":[],\"queryStoreRetention\":30,\"hiveMetastores\":[],\"currentTier\":\"Consumption\",\"newTier\":\"Consumption\",\"provisioningState\":\"Succeeded\",\"state\":\"Active\",\"endpoint\":\"xplattestadla4847.azuredatalakeanalytics.net\",\"accountId\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"creationTime\":\"2017-07-25T17:54:52.827837Z\",\"lastModifiedTime\":\"2017-07-25T17:56:01.706283Z\"},\"location\":\"eastus2\",\"tags\":{\"testtag1\":\"testvalue1\",\"testtag2\":\"testvalue2\",\"testtag3\":\"testvalue3\"},\"id\":\"/subscriptions/04319d6d-4a66-4701-bb2f-e7dbbd9ae4db/resourceGroups/xplattestadlarg05/providers/Microsoft.DataLakeAnalytics/accounts/xplattestadla4847\",\"name\":\"xplattestadla4847\",\"type\":\"Microsoft.DataLakeAnalytics/accounts\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', - 'content-length': '1105', + 'content-length': '1103', 'content-type': 'application/json', expires: '-1', - 'x-ms-request-id': 'b63fa337-d68a-4d3b-808e-5839c2376c72', + 'x-ms-request-id': '1a67f4f4-58c1-4662-a969-707cc617c840', 'x-content-type-options': 'nosniff', server: 'Microsoft-IIS/8.5', 'x-aspnet-version': '4.0.30319', 'x-powered-by': 'ASP.NET', 'x-ms-ratelimit-remaining-subscription-writes': '1198', - 'x-ms-correlation-request-id': 'b403b88e-7c73-4b09-bbf0-3a7dc7def354', - 'x-ms-routing-request-id': 'JAPANEAST:20170609T092358Z:b403b88e-7c73-4b09-bbf0-3a7dc7def354', + 'x-ms-correlation-request-id': '58133dee-e9a2-4ddb-b712-211e7e8e44d6', + 'x-ms-routing-request-id': 'WESTUS:20170725T175603Z:58133dee-e9a2-4ddb-b712-211e7e8e44d6', 'strict-transport-security': 'max-age=31536000; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:23:57 GMT', + date: 'Tue, 25 Jul 2017 17:56:03 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Catalog_create_set_get_and_delete_commands_should_work_for_secrets.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Catalog_create_set_get_and_delete_commands_should_work_for_secrets.nock.js index 511e98afe3..8b60ce4fe0 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Catalog_create_set_get_and_delete_commands_should_work_for_secrets.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Catalog_create_set_get_and_delete_commands_should_work_for_secrets.nock.js @@ -3,260 +3,260 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01', '*') +.put('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01', '*') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': 'd50d9016-6bc6-40b0-827d-7367a9165b3d', + 'x-ms-request-id': 'e804a730-00d8-427f-b6a1-75e79837fecf', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:09 GMT', + date: 'Tue, 25 Jul 2017 17:58:12 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01', '*') +.put('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01', '*') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': 'd50d9016-6bc6-40b0-827d-7367a9165b3d', + 'x-ms-request-id': 'e804a730-00d8-427f-b6a1-75e79837fecf', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:09 GMT', + date: 'Tue, 25 Jul 2017 17:58:12 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01', '*') +.patch('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01', '*') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': 'da0b2f82-d086-41f6-b026-991ff150b0d5', + 'x-ms-request-id': 'c4b8c6e1-d5aa-4bcd-9569-846c862fa216', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:10 GMT', + date: 'Tue, 25 Jul 2017 17:58:13 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01', '*') +.patch('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01', '*') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': 'da0b2f82-d086-41f6-b026-991ff150b0d5', + 'x-ms-request-id': 'c4b8c6e1-d5aa-4bcd-9569-846c862fa216', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:10 GMT', + date: 'Tue, 25 Jul 2017 17:58:13 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/catalog/usql/databases/master/secrets/adlacatalogitem3714dup?api-version=2016-11-01', '*') +.put('/catalog/usql/databases/master/secrets/adlacatalogitem4247dup?api-version=2016-11-01', '*') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': 'c861bb23-e218-4a46-b8ed-108e91ccfcd2', + 'x-ms-request-id': '930fced4-7dbb-4dd2-84f3-cd8bb064a51a', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:13 GMT', + date: 'Tue, 25 Jul 2017 17:58:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/catalog/usql/databases/master/secrets/adlacatalogitem3714dup?api-version=2016-11-01', '*') +.put('/catalog/usql/databases/master/secrets/adlacatalogitem4247dup?api-version=2016-11-01', '*') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': 'c861bb23-e218-4a46-b8ed-108e91ccfcd2', + 'x-ms-request-id': '930fced4-7dbb-4dd2-84f3-cd8bb064a51a', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:13 GMT', + date: 'Tue, 25 Jul 2017 17:58:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/catalog/usql/databases/master/secrets/adlacatalogitem3714dup?api-version=2016-11-01', '*') - .reply(409, "{\"error\":{\"code\":\"ResourceAlreadyExists\",\"message\":\"The resource 'adl://xplattestadls1506.azuredatalakestore.net/catalog/database/f37f75f7-7a66-491d-ba0d-57fb89acac0f/credential/adlacatalogitem3714dup' already exists. Trace: 4a26520a-7bbe-41c0-b973-8ae6f1bdd98e Time: 2017-06-09T02:26:15.2148075-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.put('/catalog/usql/databases/master/secrets/adlacatalogitem4247dup?api-version=2016-11-01', '*') + .reply(409, "{\"error\":{\"code\":\"ResourceAlreadyExists\",\"message\":\"The resource 'adl://xplattestadls6239.azuredatalakestore.net/catalog/database/1824d502-562b-45b2-9641-4c10bbd29641/credential/adlacatalogitem4247dup' already exists. Trace: 88cc7653-7cce-4655-b46b-197bbfedbb18 Time: 2017-07-25T10:58:16.5268280-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '4a26520a-7bbe-41c0-b973-8ae6f1bdd98e', + 'x-ms-request-id': '88cc7653-7cce-4655-b46b-197bbfedbb18', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:14 GMT', + date: 'Tue, 25 Jul 2017 17:58:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/catalog/usql/databases/master/secrets/adlacatalogitem3714dup?api-version=2016-11-01', '*') - .reply(409, "{\"error\":{\"code\":\"ResourceAlreadyExists\",\"message\":\"The resource 'adl://xplattestadls1506.azuredatalakestore.net/catalog/database/f37f75f7-7a66-491d-ba0d-57fb89acac0f/credential/adlacatalogitem3714dup' already exists. Trace: 4a26520a-7bbe-41c0-b973-8ae6f1bdd98e Time: 2017-06-09T02:26:15.2148075-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.put('/catalog/usql/databases/master/secrets/adlacatalogitem4247dup?api-version=2016-11-01', '*') + .reply(409, "{\"error\":{\"code\":\"ResourceAlreadyExists\",\"message\":\"The resource 'adl://xplattestadls6239.azuredatalakestore.net/catalog/database/1824d502-562b-45b2-9641-4c10bbd29641/credential/adlacatalogitem4247dup' already exists. Trace: 88cc7653-7cce-4655-b46b-197bbfedbb18 Time: 2017-07-25T10:58:16.5268280-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '4a26520a-7bbe-41c0-b973-8ae6f1bdd98e', + 'x-ms-request-id': '88cc7653-7cce-4655-b46b-197bbfedbb18', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:14 GMT', + date: 'Tue, 25 Jul 2017 17:58:15 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01') - .reply(200, "{\"creationTime\":\"2017-06-09T09:26:09.2979954Z\"}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01') + .reply(200, "{\"creationTime\":\"2017-07-25T17:58:13.0111987Z\"}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'fe0e8e31-7d3f-4fd2-98ee-42e1dfaee3d7', + 'x-ms-request-id': '5c10ef2c-4a6d-437f-97a2-694129ae20d4', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:16 GMT', + date: 'Tue, 25 Jul 2017 17:58:16 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01') - .reply(200, "{\"creationTime\":\"2017-06-09T09:26:09.2979954Z\"}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01') + .reply(200, "{\"creationTime\":\"2017-07-25T17:58:13.0111987Z\"}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'fe0e8e31-7d3f-4fd2-98ee-42e1dfaee3d7', + 'x-ms-request-id': '5c10ef2c-4a6d-437f-97a2-694129ae20d4', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:16 GMT', + date: 'Tue, 25 Jul 2017 17:58:16 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .delete('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .delete('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': '23050acf-82c5-4d9b-8c95-44ba1a4c4707', + 'x-ms-request-id': '7fed8130-1953-4cd9-b94f-c0acda3556ff', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:17 GMT', + date: 'Tue, 25 Jul 2017 17:58:17 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .delete('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .delete('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': '23050acf-82c5-4d9b-8c95-44ba1a4c4707', + 'x-ms-request-id': '7fed8130-1953-4cd9-b94f-c0acda3556ff', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:17 GMT', + date: 'Tue, 25 Jul 2017 17:58:17 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01', '*') - .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The resource 'adl://xplattestadls1506.azuredatalakestore.net/catalog/database/f37f75f7-7a66-491d-ba0d-57fb89acac0f/credential/adlacatalogitem3714' does not exist. Trace: eb06b366-602e-4150-8a1a-72ab6be93cc5 Time: 2017-06-09T02:26:19.4336532-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.patch('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01', '*') + .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The resource 'adl://xplattestadls6239.azuredatalakestore.net/catalog/database/1824d502-562b-45b2-9641-4c10bbd29641/credential/adlacatalogitem4247' does not exist. Trace: 604b784f-9c71-48cb-b37f-776c7e5e815a Time: 2017-07-25T10:58:18.5112486-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'eb06b366-602e-4150-8a1a-72ab6be93cc5', + 'x-ms-request-id': '604b784f-9c71-48cb-b37f-776c7e5e815a', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:18 GMT', + date: 'Tue, 25 Jul 2017 17:58:17 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/catalog/usql/databases/master/secrets/adlacatalogitem3714?api-version=2016-11-01', '*') - .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The resource 'adl://xplattestadls1506.azuredatalakestore.net/catalog/database/f37f75f7-7a66-491d-ba0d-57fb89acac0f/credential/adlacatalogitem3714' does not exist. Trace: eb06b366-602e-4150-8a1a-72ab6be93cc5 Time: 2017-06-09T02:26:19.4336532-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.patch('/catalog/usql/databases/master/secrets/adlacatalogitem4247?api-version=2016-11-01', '*') + .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The resource 'adl://xplattestadls6239.azuredatalakestore.net/catalog/database/1824d502-562b-45b2-9641-4c10bbd29641/credential/adlacatalogitem4247' does not exist. Trace: 604b784f-9c71-48cb-b37f-776c7e5e815a Time: 2017-07-25T10:58:18.5112486-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'eb06b366-602e-4150-8a1a-72ab6be93cc5', + 'x-ms-request-id': '604b784f-9c71-48cb-b37f-776c7e5e815a', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:18 GMT', + date: 'Tue, 25 Jul 2017 17:58:17 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .delete('/catalog/usql/databases/master/secrets?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': 'b769a658-b656-4d55-ba1e-581eaf7942f5', + 'x-ms-request-id': '95d24f2d-f0c0-44ff-8ae4-476c4dc3b65c', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:21 GMT', + date: 'Tue, 25 Jul 2017 17:58:19 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .delete('/catalog/usql/databases/master/secrets?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': 'b769a658-b656-4d55-ba1e-581eaf7942f5', + 'x-ms-request-id': '95d24f2d-f0c0-44ff-8ae4-476c4dc3b65c', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:21 GMT', + date: 'Tue, 25 Jul 2017 17:58:19 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/catalog/usql/databases/master/secrets/adlacatalogitem3714dup?api-version=2016-11-01', '*') - .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The resource 'adl://xplattestadls1506.azuredatalakestore.net/catalog/database/f37f75f7-7a66-491d-ba0d-57fb89acac0f/credential/adlacatalogitem3714dup' does not exist. Trace: 40242982-2523-460c-91d4-39795732c80e Time: 2017-06-09T02:26:22.7100205-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.patch('/catalog/usql/databases/master/secrets/adlacatalogitem4247dup?api-version=2016-11-01', '*') + .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The resource 'adl://xplattestadls6239.azuredatalakestore.net/catalog/database/1824d502-562b-45b2-9641-4c10bbd29641/credential/adlacatalogitem4247dup' does not exist. Trace: f5b25495-6e64-4239-b046-84519392aea7 Time: 2017-07-25T10:58:20.3550315-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '40242982-2523-460c-91d4-39795732c80e', + 'x-ms-request-id': 'f5b25495-6e64-4239-b046-84519392aea7', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:22 GMT', + date: 'Tue, 25 Jul 2017 17:58:20 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.patch('/catalog/usql/databases/master/secrets/adlacatalogitem3714dup?api-version=2016-11-01', '*') - .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The resource 'adl://xplattestadls1506.azuredatalakestore.net/catalog/database/f37f75f7-7a66-491d-ba0d-57fb89acac0f/credential/adlacatalogitem3714dup' does not exist. Trace: 40242982-2523-460c-91d4-39795732c80e Time: 2017-06-09T02:26:22.7100205-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.patch('/catalog/usql/databases/master/secrets/adlacatalogitem4247dup?api-version=2016-11-01', '*') + .reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The resource 'adl://xplattestadls6239.azuredatalakestore.net/catalog/database/1824d502-562b-45b2-9641-4c10bbd29641/credential/adlacatalogitem4247dup' does not exist. Trace: f5b25495-6e64-4239-b046-84519392aea7 Time: 2017-07-25T10:58:20.3550315-07:00\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '40242982-2523-460c-91d4-39795732c80e', + 'x-ms-request-id': 'f5b25495-6e64-4239-b046-84519392aea7', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:22 GMT', + date: 'Tue, 25 Jul 2017 17:58:20 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Catalog_list_commands_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Catalog_list_commands_should_work.nock.js index f2b9a89e2e..d85c5508ca 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Catalog_list_commands_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Catalog_list_commands_should_work.nock.js @@ -3,511 +3,539 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .get('/catalog/usql/databases/master?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#databases/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"master\",\"version\":\"f37f75f7-7a66-491d-ba0d-57fb89acac0f\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#databases/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"master\",\"version\":\"1824d502-562b-45b2-9641-4c10bbd29641\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '9e7bcd9e-599b-450c-afe9-13f787e7cfda', + 'x-ms-request-id': 'e52ba043-b766-4847-b507-6376d7b5ddbe', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:15 GMT', + date: 'Tue, 25 Jul 2017 17:57:02 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .get('/catalog/usql/databases/master?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#databases/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"master\",\"version\":\"f37f75f7-7a66-491d-ba0d-57fb89acac0f\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#databases/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"master\",\"version\":\"1824d502-562b-45b2-9641-4c10bbd29641\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '9e7bcd9e-599b-450c-afe9-13f787e7cfda', + 'x-ms-request-id': 'e52ba043-b766-4847-b507-6376d7b5ddbe', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:15 GMT', + date: 'Tue, 25 Jul 2017 17:57:02 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/Jobs/d6a6bacf-b40f-4bcb-94f8-692d544b3065?api-version=2016-11-01', '*') - .reply(200, "{\"jobId\":\"d6a6bacf-b40f-4bcb-94f8-692d544b3065\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:17.1375171+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:17.1375171+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.put('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01', '*') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'c46df160-1083-41e2-9270-59a4bc856f4c', + 'x-ms-request-id': '23d31078-db6d-4255-973a-d4a91c8f4180', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:16 GMT', + date: 'Tue, 25 Jul 2017 17:57:02 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/Jobs/d6a6bacf-b40f-4bcb-94f8-692d544b3065?api-version=2016-11-01', '*') - .reply(200, "{\"jobId\":\"d6a6bacf-b40f-4bcb-94f8-692d544b3065\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:17.1375171+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:17.1375171+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.put('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01', '*') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'c46df160-1083-41e2-9270-59a4bc856f4c', + 'x-ms-request-id': '23d31078-db6d-4255-973a-d4a91c8f4180', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:16 GMT', + date: 'Tue, 25 Jul 2017 17:57:02 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/d6a6bacf-b40f-4bcb-94f8-692d544b3065?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"d6a6bacf-b40f-4bcb-94f8-692d544b3065\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:17.1375171+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:17.1375171+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:25:17.5593776+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem2394; CREATE DATABASE adlacatalogitem2394; CREATE TABLE adlacatalogitem2394.dbo.adlacatalogitem5832( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem2394.dbo.adlacatalogitem5832 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem2394.dbo.adlacatalogitem5661; CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT1.2883873S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:57:03.0131713+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem1507; CREATE DATABASE adlacatalogitem1507; CREATE TABLE adlacatalogitem1507.dbo.adlacatalogitem172( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem1507.dbo.adlacatalogitem172 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem1507.dbo.adlacatalogitem8019; CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0.5125678S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '3800e75a-ed83-4690-a43a-70cc1bdf5139', + 'x-ms-request-id': '11d3403d-999d-48b5-ba71-8b65744429ff', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:18 GMT', + date: 'Tue, 25 Jul 2017 17:57:03 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/d6a6bacf-b40f-4bcb-94f8-692d544b3065?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"d6a6bacf-b40f-4bcb-94f8-692d544b3065\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:17.1375171+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:17.1375171+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:25:17.5593776+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem2394; CREATE DATABASE adlacatalogitem2394; CREATE TABLE adlacatalogitem2394.dbo.adlacatalogitem5832( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem2394.dbo.adlacatalogitem5832 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem2394.dbo.adlacatalogitem5661; CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT1.2883873S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:57:03.0131713+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem1507; CREATE DATABASE adlacatalogitem1507; CREATE TABLE adlacatalogitem1507.dbo.adlacatalogitem172( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem1507.dbo.adlacatalogitem172 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem1507.dbo.adlacatalogitem8019; CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0.5125678S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '3800e75a-ed83-4690-a43a-70cc1bdf5139', + 'x-ms-request-id': '11d3403d-999d-48b5-ba71-8b65744429ff', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:18 GMT', + date: 'Tue, 25 Jul 2017 17:57:03 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/d6a6bacf-b40f-4bcb-94f8-692d544b3065?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"d6a6bacf-b40f-4bcb-94f8-692d544b3065\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:17.1375171+00:00\",\"startTime\":\"2017-06-09T09:25:39.3929736+00:00\",\"endTime\":\"2017-06-09T09:25:46.7524179+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:17.1375171+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:25:17.5593776+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-06-09T09:25:31.6585013+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-06-09T09:25:31.6741444+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:f209af01-5d24-499f-8ae2-bc48d7661add\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-06-09T09:25:31.6897729+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5353478\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-06-09T09:25:39.3929736+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:25:46.7524179+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5353478\",\"rootProcessNodeId\":\"f209af01-5d24-499f-8ae2-bc48d7661add\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem2394; CREATE DATABASE adlacatalogitem2394; CREATE TABLE adlacatalogitem2394.dbo.adlacatalogitem5832( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem2394.dbo.adlacatalogitem5832 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem2394.dbo.adlacatalogitem5661; CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/algebra.xml\",\"yarnApplicationId\":19226,\"yarnApplicationTimeStamp\":1496985982015,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT14.0991237S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156431S\",\"totalRunningTime\":\"PT7.3594443S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"state\":\"Starting\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:57:03.0131713+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:57:16.7477483+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:57:16.7633732+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:de0c9c0d-3360-4f60-804b-e56d5fe32658\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:57:16.7789981+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"de0c9c0d-3360-4f60-804b-e56d5fe32658\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem1507; CREATE DATABASE adlacatalogitem1507; CREATE TABLE adlacatalogitem1507.dbo.adlacatalogitem172( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem1507.dbo.adlacatalogitem172 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem1507.dbo.adlacatalogitem8019; CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"yarnApplicationId\":347320,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.734577S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156249S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '899aff7f-fe5d-47a0-a7bc-d4016a82f30e', + 'x-ms-request-id': '8951e4aa-34bf-4780-8d6c-0764bb91f857', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:50 GMT', + date: 'Tue, 25 Jul 2017 17:57:34 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/d6a6bacf-b40f-4bcb-94f8-692d544b3065?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"d6a6bacf-b40f-4bcb-94f8-692d544b3065\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:17.1375171+00:00\",\"startTime\":\"2017-06-09T09:25:39.3929736+00:00\",\"endTime\":\"2017-06-09T09:25:46.7524179+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:17.1375171+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:25:17.5593776+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-06-09T09:25:31.6585013+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-06-09T09:25:31.6741444+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:f209af01-5d24-499f-8ae2-bc48d7661add\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-06-09T09:25:31.6897729+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5353478\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-06-09T09:25:39.3929736+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:25:46.7524179+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5353478\",\"rootProcessNodeId\":\"f209af01-5d24-499f-8ae2-bc48d7661add\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem2394; CREATE DATABASE adlacatalogitem2394; CREATE TABLE adlacatalogitem2394.dbo.adlacatalogitem5832( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem2394.dbo.adlacatalogitem5832 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem2394.dbo.adlacatalogitem5661; CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/algebra.xml\",\"yarnApplicationId\":19226,\"yarnApplicationTimeStamp\":1496985982015,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT14.0991237S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156431S\",\"totalRunningTime\":\"PT7.3594443S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"state\":\"Starting\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:57:03.0131713+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:57:16.7477483+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:57:16.7633732+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:de0c9c0d-3360-4f60-804b-e56d5fe32658\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:57:16.7789981+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"de0c9c0d-3360-4f60-804b-e56d5fe32658\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem1507; CREATE DATABASE adlacatalogitem1507; CREATE TABLE adlacatalogitem1507.dbo.adlacatalogitem172( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem1507.dbo.adlacatalogitem172 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem1507.dbo.adlacatalogitem8019; CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"yarnApplicationId\":347320,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.734577S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156249S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '899aff7f-fe5d-47a0-a7bc-d4016a82f30e', + 'x-ms-request-id': '8951e4aa-34bf-4780-8d6c-0764bb91f857', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:50 GMT', + date: 'Tue, 25 Jul 2017 17:57:34 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/d6a6bacf-b40f-4bcb-94f8-692d544b3065?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"d6a6bacf-b40f-4bcb-94f8-692d544b3065\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:17.1375171+00:00\",\"startTime\":\"2017-06-09T09:25:39.3929736+00:00\",\"endTime\":\"2017-06-09T09:25:46.7524179+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:17.1375171+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:25:17.5593776+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-06-09T09:25:31.6585013+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-06-09T09:25:31.6741444+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:f209af01-5d24-499f-8ae2-bc48d7661add\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-06-09T09:25:31.6897729+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5353478\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-06-09T09:25:39.3929736+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:25:46.7524179+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5353478\",\"rootProcessNodeId\":\"f209af01-5d24-499f-8ae2-bc48d7661add\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem2394; CREATE DATABASE adlacatalogitem2394; CREATE TABLE adlacatalogitem2394.dbo.adlacatalogitem5832( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem2394.dbo.adlacatalogitem5832 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem2394.dbo.adlacatalogitem5661; CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/algebra.xml\",\"yarnApplicationId\":19226,\"yarnApplicationTimeStamp\":1496985982015,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT14.0991237S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156431S\",\"totalRunningTime\":\"PT7.3594443S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"startTime\":\"2017-07-25T17:57:46.6869084+00:00\",\"endTime\":\"2017-07-25T17:57:50.1088386+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:57:03.0131713+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:57:16.7477483+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:57:16.7633732+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:de0c9c0d-3360-4f60-804b-e56d5fe32658\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:57:16.7789981+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-07-25T17:57:46.6869084+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:57:50.1088386+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"de0c9c0d-3360-4f60-804b-e56d5fe32658\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem1507; CREATE DATABASE adlacatalogitem1507; CREATE TABLE adlacatalogitem1507.dbo.adlacatalogitem172( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem1507.dbo.adlacatalogitem172 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem1507.dbo.adlacatalogitem8019; CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"yarnApplicationId\":347320,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.734577S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156249S\",\"totalRunningTime\":\"PT3.4219302S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '0ff3588f-9e5b-4319-995b-e04f8065afee', + 'x-ms-request-id': 'e05902a2-1e59-43fd-ace1-60d0e06757fc', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:51 GMT', + date: 'Tue, 25 Jul 2017 17:58:04 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/d6a6bacf-b40f-4bcb-94f8-692d544b3065?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"d6a6bacf-b40f-4bcb-94f8-692d544b3065\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:17.1375171+00:00\",\"startTime\":\"2017-06-09T09:25:39.3929736+00:00\",\"endTime\":\"2017-06-09T09:25:46.7524179+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:17.1375171+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:25:17.5593776+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-06-09T09:25:31.6585013+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-06-09T09:25:31.6741444+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:f209af01-5d24-499f-8ae2-bc48d7661add\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-06-09T09:25:31.6897729+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5353478\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-06-09T09:25:39.3929736+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:25:46.7524179+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5353478\",\"rootProcessNodeId\":\"f209af01-5d24-499f-8ae2-bc48d7661add\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem2394; CREATE DATABASE adlacatalogitem2394; CREATE TABLE adlacatalogitem2394.dbo.adlacatalogitem5832( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem2394.dbo.adlacatalogitem5832 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem2394.dbo.adlacatalogitem5661; CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d6a6bacf-b40f-4bcb-94f8-692d544b3065/algebra.xml\",\"yarnApplicationId\":19226,\"yarnApplicationTimeStamp\":1496985982015,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT14.0991237S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156431S\",\"totalRunningTime\":\"PT7.3594443S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"startTime\":\"2017-07-25T17:57:46.6869084+00:00\",\"endTime\":\"2017-07-25T17:57:50.1088386+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:57:03.0131713+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:57:16.7477483+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:57:16.7633732+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:de0c9c0d-3360-4f60-804b-e56d5fe32658\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:57:16.7789981+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-07-25T17:57:46.6869084+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:57:50.1088386+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"de0c9c0d-3360-4f60-804b-e56d5fe32658\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem1507; CREATE DATABASE adlacatalogitem1507; CREATE TABLE adlacatalogitem1507.dbo.adlacatalogitem172( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem1507.dbo.adlacatalogitem172 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem1507.dbo.adlacatalogitem8019; CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"yarnApplicationId\":347320,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.734577S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156249S\",\"totalRunningTime\":\"PT3.4219302S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '0ff3588f-9e5b-4319-995b-e04f8065afee', + 'x-ms-request-id': 'e05902a2-1e59-43fd-ace1-60d0e06757fc', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:51 GMT', + date: 'Tue, 25 Jul 2017 17:58:04 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"startTime\":\"2017-07-25T17:57:46.6869084+00:00\",\"endTime\":\"2017-07-25T17:57:50.1088386+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:57:03.0131713+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:57:16.7477483+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:57:16.7633732+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:de0c9c0d-3360-4f60-804b-e56d5fe32658\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:57:16.7789981+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-07-25T17:57:46.6869084+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:57:50.1088386+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"de0c9c0d-3360-4f60-804b-e56d5fe32658\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem1507; CREATE DATABASE adlacatalogitem1507; CREATE TABLE adlacatalogitem1507.dbo.adlacatalogitem172( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem1507.dbo.adlacatalogitem172 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem1507.dbo.adlacatalogitem8019; CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"yarnApplicationId\":347320,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.734577S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156249S\",\"totalRunningTime\":\"PT3.4219302S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + 'transfer-encoding': 'chunked', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': '414fb2ad-984f-45c6-b776-dcf24d4123f0', + 'x-content-type-options': 'nosniff', + 'strict-transport-security': 'max-age=15724800; includeSubDomains', + date: 'Tue, 25 Jul 2017 17:58:04 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:57:02.8256713+00:00\",\"startTime\":\"2017-07-25T17:57:46.6869084+00:00\",\"endTime\":\"2017-07-25T17:57:50.1088386+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:57:02.8256713+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:57:03.0131713+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:57:16.7477483+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:57:16.7633732+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:de0c9c0d-3360-4f60-804b-e56d5fe32658\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:57:16.7789981+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-07-25T17:57:46.6869084+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:57:50.1088386+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"de0c9c0d-3360-4f60-804b-e56d5fe32658\",\"script\":\"DROP DATABASE IF EXISTS adlacatalogitem1507; CREATE DATABASE adlacatalogitem1507; CREATE TABLE adlacatalogitem1507.dbo.adlacatalogitem172( UserId int, Start DateTime, Region string, Query string, Duration int, Urls string, ClickedUrls string, INDEX idx1 CLUSTERED (Region ASC) PARTITIONED BY (UserId) HASH (Region)); ALTER TABLE adlacatalogitem1507.dbo.adlacatalogitem172 ADD IF NOT EXISTS PARTITION (1); DROP FUNCTION IF EXISTS adlacatalogitem1507.dbo.adlacatalogitem8019; CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END; CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/57/c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7/algebra.xml\",\"yarnApplicationId\":347320,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.734577S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156249S\",\"totalRunningTime\":\"PT3.4219302S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + 'transfer-encoding': 'chunked', + 'content-type': 'application/json; charset=utf-8', + expires: '-1', + 'x-ms-request-id': '414fb2ad-984f-45c6-b776-dcf24d4123f0', + 'x-content-type-options': 'nosniff', + 'strict-transport-security': 'max-age=15724800; includeSubDomains', + date: 'Tue, 25 Jul 2017 17:58:04 GMT', + connection: 'close' }); + return result; }, +function (nock) { +var result = +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .get('/catalog/usql/databases?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#databases\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"version\":\"a2a5efcc-8899-49e2-8c35-af271f07ab22\"\r\n },{\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"master\",\"version\":\"f37f75f7-7a66-491d-ba0d-57fb89acac0f\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#databases\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"version\":\"3dc824ec-3847-4e0d-96aa-9deba7d9ebdb\"\r\n },{\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"master\",\"version\":\"1824d502-562b-45b2-9641-4c10bbd29641\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '814df6cf-20e5-4627-b84a-bf6b72332ae7', + 'x-ms-request-id': '30afd21b-bc52-45aa-853a-29a4a9ae9858', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:52 GMT', + date: 'Tue, 25 Jul 2017 17:58:05 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .get('/catalog/usql/databases?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#databases\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"version\":\"a2a5efcc-8899-49e2-8c35-af271f07ab22\"\r\n },{\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"master\",\"version\":\"f37f75f7-7a66-491d-ba0d-57fb89acac0f\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#databases\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"version\":\"3dc824ec-3847-4e0d-96aa-9deba7d9ebdb\"\r\n },{\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"master\",\"version\":\"1824d502-562b-45b2-9641-4c10bbd29641\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '814df6cf-20e5-4627-b84a-bf6b72332ae7', + 'x-ms-request-id': '30afd21b-bc52-45aa-853a-29a4a9ae9858', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:52 GMT', + date: 'Tue, 25 Jul 2017 17:58:05 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#databases/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"version\":\"a2a5efcc-8899-49e2-8c35-af271f07ab22\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#databases/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"version\":\"3dc824ec-3847-4e0d-96aa-9deba7d9ebdb\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'fb957e79-90ff-4fd6-883c-8be7dd01734a', + 'x-ms-request-id': '637dc6cd-6842-491a-ba6a-4fc1fe1e0b97', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:53 GMT', + date: 'Tue, 25 Jul 2017 17:58:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#databases/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"version\":\"a2a5efcc-8899-49e2-8c35-af271f07ab22\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#databases/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"version\":\"3dc824ec-3847-4e0d-96aa-9deba7d9ebdb\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'fb957e79-90ff-4fd6-883c-8be7dd01734a', + 'x-ms-request-id': '637dc6cd-6842-491a-ba6a-4fc1fe1e0b97', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:53 GMT', + date: 'Tue, 25 Jul 2017 17:58:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tables?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#tables\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"tableName\":\"adlacatalogitem5832\",\"columnList\":[\r\n {\r\n \"name\":\"UserId\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Start\",\"type\":\"System.DateTime\"\r\n },{\r\n \"name\":\"Region\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Query\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Duration\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Urls\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"ClickedUrls\",\"type\":\"System.String\"\r\n }\r\n ],\"indexList\":[\r\n {\r\n \"name\":\"idx1\",\"indexKeys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"columns\":[\r\n \"Region\",\"UserId\"\r\n ],\"distributionInfo\":{\r\n \"type\":2,\"keys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"count\":0,\"dynamicCount\":0\r\n },\"partitionFunction\":\"10d83d67-f81f-4797-a7c6-e4e53949ca4f\",\"partitionKeyList\":[\r\n \"UserId\"\r\n ],\"isColumnstore\":false,\"indexId\":1,\"isUnique\":false\r\n }\r\n ],\"partitionKeyList\":[\r\n \r\n ],\"externalTable\":null,\"distributionInfo\":null,\"version\":\"4fc1bb2d-19f0-4279-a555-97f597e24103\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tables?basic=false&api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#tables\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"tableName\":\"adlacatalogitem172\",\"columnList\":[\r\n {\r\n \"name\":\"UserId\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Start\",\"type\":\"System.DateTime\"\r\n },{\r\n \"name\":\"Region\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Query\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Duration\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Urls\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"ClickedUrls\",\"type\":\"System.String\"\r\n }\r\n ],\"indexList\":[\r\n {\r\n \"name\":\"idx1\",\"indexKeys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"columns\":[\r\n \"Region\",\"UserId\"\r\n ],\"distributionInfo\":{\r\n \"type\":2,\"keys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"count\":0,\"dynamicCount\":0\r\n },\"partitionFunction\":\"195514fb-7f17-4cc9-9012-c528ffc46a42\",\"partitionKeyList\":[\r\n \"UserId\"\r\n ],\"isColumnstore\":false,\"indexId\":1,\"isUnique\":false\r\n }\r\n ],\"partitionKeyList\":[\r\n \r\n ],\"externalTable\":null,\"distributionInfo\":null,\"version\":\"e65b40f9-2ad7-4662-9970-c387a2b4b468\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'c96e6874-4778-496e-9866-edf29787c8ef', + 'x-ms-request-id': 'ad4ab362-ed4e-43d4-bbed-189c7d5085db', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:55 GMT', + date: 'Tue, 25 Jul 2017 17:58:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tables?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#tables\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"tableName\":\"adlacatalogitem5832\",\"columnList\":[\r\n {\r\n \"name\":\"UserId\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Start\",\"type\":\"System.DateTime\"\r\n },{\r\n \"name\":\"Region\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Query\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Duration\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Urls\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"ClickedUrls\",\"type\":\"System.String\"\r\n }\r\n ],\"indexList\":[\r\n {\r\n \"name\":\"idx1\",\"indexKeys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"columns\":[\r\n \"Region\",\"UserId\"\r\n ],\"distributionInfo\":{\r\n \"type\":2,\"keys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"count\":0,\"dynamicCount\":0\r\n },\"partitionFunction\":\"10d83d67-f81f-4797-a7c6-e4e53949ca4f\",\"partitionKeyList\":[\r\n \"UserId\"\r\n ],\"isColumnstore\":false,\"indexId\":1,\"isUnique\":false\r\n }\r\n ],\"partitionKeyList\":[\r\n \r\n ],\"externalTable\":null,\"distributionInfo\":null,\"version\":\"4fc1bb2d-19f0-4279-a555-97f597e24103\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tables?basic=false&api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#tables\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"tableName\":\"adlacatalogitem172\",\"columnList\":[\r\n {\r\n \"name\":\"UserId\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Start\",\"type\":\"System.DateTime\"\r\n },{\r\n \"name\":\"Region\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Query\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Duration\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Urls\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"ClickedUrls\",\"type\":\"System.String\"\r\n }\r\n ],\"indexList\":[\r\n {\r\n \"name\":\"idx1\",\"indexKeys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"columns\":[\r\n \"Region\",\"UserId\"\r\n ],\"distributionInfo\":{\r\n \"type\":2,\"keys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"count\":0,\"dynamicCount\":0\r\n },\"partitionFunction\":\"195514fb-7f17-4cc9-9012-c528ffc46a42\",\"partitionKeyList\":[\r\n \"UserId\"\r\n ],\"isColumnstore\":false,\"indexId\":1,\"isUnique\":false\r\n }\r\n ],\"partitionKeyList\":[\r\n \r\n ],\"externalTable\":null,\"distributionInfo\":null,\"version\":\"e65b40f9-2ad7-4662-9970-c387a2b4b468\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'c96e6874-4778-496e-9866-edf29787c8ef', + 'x-ms-request-id': 'ad4ab362-ed4e-43d4-bbed-189c7d5085db', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:55 GMT', + date: 'Tue, 25 Jul 2017 17:58:06 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tables/adlacatalogitem5832?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#tables/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"tableName\":\"adlacatalogitem5832\",\"columnList\":[\r\n {\r\n \"name\":\"UserId\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Start\",\"type\":\"System.DateTime\"\r\n },{\r\n \"name\":\"Region\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Query\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Duration\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Urls\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"ClickedUrls\",\"type\":\"System.String\"\r\n }\r\n ],\"indexList\":[\r\n {\r\n \"name\":\"idx1\",\"indexKeys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"columns\":[\r\n \"Region\",\"UserId\"\r\n ],\"distributionInfo\":{\r\n \"type\":2,\"keys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"count\":0,\"dynamicCount\":0\r\n },\"partitionFunction\":\"10d83d67-f81f-4797-a7c6-e4e53949ca4f\",\"partitionKeyList\":[\r\n \"UserId\"\r\n ],\"isColumnstore\":false,\"indexId\":1,\"isUnique\":false\r\n }\r\n ],\"partitionKeyList\":[\r\n \r\n ],\"externalTable\":null,\"distributionInfo\":null,\"version\":\"4fc1bb2d-19f0-4279-a555-97f597e24103\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tables/adlacatalogitem172?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#tables/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"tableName\":\"adlacatalogitem172\",\"columnList\":[\r\n {\r\n \"name\":\"UserId\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Start\",\"type\":\"System.DateTime\"\r\n },{\r\n \"name\":\"Region\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Query\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Duration\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Urls\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"ClickedUrls\",\"type\":\"System.String\"\r\n }\r\n ],\"indexList\":[\r\n {\r\n \"name\":\"idx1\",\"indexKeys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"columns\":[\r\n \"Region\",\"UserId\"\r\n ],\"distributionInfo\":{\r\n \"type\":2,\"keys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"count\":0,\"dynamicCount\":0\r\n },\"partitionFunction\":\"195514fb-7f17-4cc9-9012-c528ffc46a42\",\"partitionKeyList\":[\r\n \"UserId\"\r\n ],\"isColumnstore\":false,\"indexId\":1,\"isUnique\":false\r\n }\r\n ],\"partitionKeyList\":[\r\n \r\n ],\"externalTable\":null,\"distributionInfo\":null,\"version\":\"e65b40f9-2ad7-4662-9970-c387a2b4b468\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '6a2bae66-3812-4fc1-9cd1-06b3c75846fa', + 'x-ms-request-id': 'c5924b2a-171e-4996-b11f-461a38136cb6', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:56 GMT', + date: 'Tue, 25 Jul 2017 17:58:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tables/adlacatalogitem5832?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#tables/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"tableName\":\"adlacatalogitem5832\",\"columnList\":[\r\n {\r\n \"name\":\"UserId\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Start\",\"type\":\"System.DateTime\"\r\n },{\r\n \"name\":\"Region\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Query\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Duration\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Urls\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"ClickedUrls\",\"type\":\"System.String\"\r\n }\r\n ],\"indexList\":[\r\n {\r\n \"name\":\"idx1\",\"indexKeys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"columns\":[\r\n \"Region\",\"UserId\"\r\n ],\"distributionInfo\":{\r\n \"type\":2,\"keys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"count\":0,\"dynamicCount\":0\r\n },\"partitionFunction\":\"10d83d67-f81f-4797-a7c6-e4e53949ca4f\",\"partitionKeyList\":[\r\n \"UserId\"\r\n ],\"isColumnstore\":false,\"indexId\":1,\"isUnique\":false\r\n }\r\n ],\"partitionKeyList\":[\r\n \r\n ],\"externalTable\":null,\"distributionInfo\":null,\"version\":\"4fc1bb2d-19f0-4279-a555-97f597e24103\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tables/adlacatalogitem172?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#tables/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"tableName\":\"adlacatalogitem172\",\"columnList\":[\r\n {\r\n \"name\":\"UserId\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Start\",\"type\":\"System.DateTime\"\r\n },{\r\n \"name\":\"Region\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Query\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"Duration\",\"type\":\"System.Int32\"\r\n },{\r\n \"name\":\"Urls\",\"type\":\"System.String\"\r\n },{\r\n \"name\":\"ClickedUrls\",\"type\":\"System.String\"\r\n }\r\n ],\"indexList\":[\r\n {\r\n \"name\":\"idx1\",\"indexKeys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"columns\":[\r\n \"Region\",\"UserId\"\r\n ],\"distributionInfo\":{\r\n \"type\":2,\"keys\":[\r\n {\r\n \"name\":\"Region\",\"descending\":false\r\n }\r\n ],\"count\":0,\"dynamicCount\":0\r\n },\"partitionFunction\":\"195514fb-7f17-4cc9-9012-c528ffc46a42\",\"partitionKeyList\":[\r\n \"UserId\"\r\n ],\"isColumnstore\":false,\"indexId\":1,\"isUnique\":false\r\n }\r\n ],\"partitionKeyList\":[\r\n \r\n ],\"externalTable\":null,\"distributionInfo\":null,\"version\":\"e65b40f9-2ad7-4662-9970-c387a2b4b468\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '6a2bae66-3812-4fc1-9cd1-06b3c75846fa', + 'x-ms-request-id': 'c5924b2a-171e-4996-b11f-461a38136cb6', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:56 GMT', + date: 'Tue, 25 Jul 2017 17:58:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tables/adlacatalogitem5832/partitions?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#partitions\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"partitionName\":\"adlacatalogitem5832_Partition_216dc28f-6d8c-453d-a854-5f1d6a9bb718\",\"indexId\":1,\"label\":[\r\n \"1\"\r\n ],\"createDate\":\"2017-06-09T09:25:40.19-07:00\",\"parentName\":{\r\n \"server\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"firstPart\":\"adlacatalogitem2394\",\"secondPart\":\"dbo\",\"thirdPart\":\"adlacatalogitem5832\",\"fourthPart\":null\r\n },\"version\":\"258e8bb2-75b7-498d-99e6-53b8f379b371\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tables/adlacatalogitem172/partitions?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#partitions\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"partitionName\":\"adlacatalogitem172_Partition_0679529f-f93c-4644-8f7b-7990cbee1f35\",\"indexId\":1,\"label\":[\r\n \"1\"\r\n ],\"createDate\":\"2017-07-25T17:57:45.497-07:00\",\"parentName\":{\r\n \"server\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"firstPart\":\"adlacatalogitem1507\",\"secondPart\":\"dbo\",\"thirdPart\":\"adlacatalogitem172\",\"fourthPart\":null\r\n },\"version\":\"dbb64bb4-8657-4d79-a606-712b87dd593b\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'ae4d744f-45ea-4212-83c0-cdf04aa9cf2c', + 'x-ms-request-id': '9c5af502-1bc2-403f-b13f-a2a34d3be036', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:57 GMT', + date: 'Tue, 25 Jul 2017 17:58:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tables/adlacatalogitem5832/partitions?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#partitions\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"partitionName\":\"adlacatalogitem5832_Partition_216dc28f-6d8c-453d-a854-5f1d6a9bb718\",\"indexId\":1,\"label\":[\r\n \"1\"\r\n ],\"createDate\":\"2017-06-09T09:25:40.19-07:00\",\"parentName\":{\r\n \"server\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"firstPart\":\"adlacatalogitem2394\",\"secondPart\":\"dbo\",\"thirdPart\":\"adlacatalogitem5832\",\"fourthPart\":null\r\n },\"version\":\"258e8bb2-75b7-498d-99e6-53b8f379b371\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tables/adlacatalogitem172/partitions?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#partitions\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"partitionName\":\"adlacatalogitem172_Partition_0679529f-f93c-4644-8f7b-7990cbee1f35\",\"indexId\":1,\"label\":[\r\n \"1\"\r\n ],\"createDate\":\"2017-07-25T17:57:45.497-07:00\",\"parentName\":{\r\n \"server\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"firstPart\":\"adlacatalogitem1507\",\"secondPart\":\"dbo\",\"thirdPart\":\"adlacatalogitem172\",\"fourthPart\":null\r\n },\"version\":\"dbb64bb4-8657-4d79-a606-712b87dd593b\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'ae4d744f-45ea-4212-83c0-cdf04aa9cf2c', + 'x-ms-request-id': '9c5af502-1bc2-403f-b13f-a2a34d3be036', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:57 GMT', + date: 'Tue, 25 Jul 2017 17:58:07 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tables/adlacatalogitem5832/partitions/adlacatalogitem5832_Partition_216dc28f-6d8c-453d-a854-5f1d6a9bb718?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#partitions/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"partitionName\":\"adlacatalogitem5832_Partition_216dc28f-6d8c-453d-a854-5f1d6a9bb718\",\"indexId\":1,\"label\":[\r\n \"1\"\r\n ],\"createDate\":\"2017-06-09T09:25:40.19-07:00\",\"parentName\":{\r\n \"server\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"firstPart\":\"adlacatalogitem2394\",\"secondPart\":\"dbo\",\"thirdPart\":\"adlacatalogitem5832\",\"fourthPart\":null\r\n },\"version\":\"258e8bb2-75b7-498d-99e6-53b8f379b371\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tables/adlacatalogitem172/partitions/adlacatalogitem172_Partition_0679529f-f93c-4644-8f7b-7990cbee1f35?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#partitions/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"partitionName\":\"adlacatalogitem172_Partition_0679529f-f93c-4644-8f7b-7990cbee1f35\",\"indexId\":1,\"label\":[\r\n \"1\"\r\n ],\"createDate\":\"2017-07-25T17:57:45.497-07:00\",\"parentName\":{\r\n \"server\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"firstPart\":\"adlacatalogitem1507\",\"secondPart\":\"dbo\",\"thirdPart\":\"adlacatalogitem172\",\"fourthPart\":null\r\n },\"version\":\"dbb64bb4-8657-4d79-a606-712b87dd593b\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'fc098f33-3237-49d1-a03e-b342f8a66617', + 'x-ms-request-id': '66e50f7d-4f77-4ca9-acf3-93f32c515d1a', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:00 GMT', + date: 'Tue, 25 Jul 2017 17:58:08 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tables/adlacatalogitem5832/partitions/adlacatalogitem5832_Partition_216dc28f-6d8c-453d-a854-5f1d6a9bb718?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#partitions/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"partitionName\":\"adlacatalogitem5832_Partition_216dc28f-6d8c-453d-a854-5f1d6a9bb718\",\"indexId\":1,\"label\":[\r\n \"1\"\r\n ],\"createDate\":\"2017-06-09T09:25:40.19-07:00\",\"parentName\":{\r\n \"server\":\"220439bc-e128-415c-8e58-52dd4952b707\",\"firstPart\":\"adlacatalogitem2394\",\"secondPart\":\"dbo\",\"thirdPart\":\"adlacatalogitem5832\",\"fourthPart\":null\r\n },\"version\":\"258e8bb2-75b7-498d-99e6-53b8f379b371\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tables/adlacatalogitem172/partitions/adlacatalogitem172_Partition_0679529f-f93c-4644-8f7b-7990cbee1f35?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#partitions/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"partitionName\":\"adlacatalogitem172_Partition_0679529f-f93c-4644-8f7b-7990cbee1f35\",\"indexId\":1,\"label\":[\r\n \"1\"\r\n ],\"createDate\":\"2017-07-25T17:57:45.497-07:00\",\"parentName\":{\r\n \"server\":\"a736aeb1-09ac-4635-a54f-b57a12939283\",\"firstPart\":\"adlacatalogitem1507\",\"secondPart\":\"dbo\",\"thirdPart\":\"adlacatalogitem172\",\"fourthPart\":null\r\n },\"version\":\"dbb64bb4-8657-4d79-a606-712b87dd593b\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'fc098f33-3237-49d1-a03e-b342f8a66617', + 'x-ms-request-id': '66e50f7d-4f77-4ca9-acf3-93f32c515d1a', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:00 GMT', + date: 'Tue, 25 Jul 2017 17:58:08 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tablevaluedfunctions?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"tvfName\":\"adlacatalogitem5661\",\"definition\":\"CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END;\",\"version\":\"27d54318-1c71-4f76-a07e-e15559798d27\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tablevaluedfunctions?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"tvfName\":\"adlacatalogitem8019\",\"definition\":\"CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END;\",\"version\":\"fc6fd6f3-b183-44f6-9ccd-eee8c09a776d\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'af6d4cf8-34ef-4371-afe9-a4d98c5d60cd', + 'x-ms-request-id': '28d89680-d347-43ef-8fc3-00823a461442', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:00 GMT', + date: 'Tue, 25 Jul 2017 17:58:08 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tablevaluedfunctions?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"tvfName\":\"adlacatalogitem5661\",\"definition\":\"CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END;\",\"version\":\"27d54318-1c71-4f76-a07e-e15559798d27\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tablevaluedfunctions?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"tvfName\":\"adlacatalogitem8019\",\"definition\":\"CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END;\",\"version\":\"fc6fd6f3-b183-44f6-9ccd-eee8c09a776d\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'af6d4cf8-34ef-4371-afe9-a4d98c5d60cd', + 'x-ms-request-id': '28d89680-d347-43ef-8fc3-00823a461442', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:00 GMT', + date: 'Tue, 25 Jul 2017 17:58:08 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tablevaluedfunctions/adlacatalogitem5661?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"tvfName\":\"adlacatalogitem5661\",\"definition\":\"CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END;\",\"version\":\"27d54318-1c71-4f76-a07e-e15559798d27\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tablevaluedfunctions/adlacatalogitem8019?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"tvfName\":\"adlacatalogitem8019\",\"definition\":\"CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END;\",\"version\":\"fc6fd6f3-b183-44f6-9ccd-eee8c09a776d\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'c6d0432a-189a-4665-b295-cb7f2d094db6', + 'x-ms-request-id': '831aa6fc-e54f-4fe4-9b8c-fc4e31d48385', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:02 GMT', + date: 'Tue, 25 Jul 2017 17:58:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/tablevaluedfunctions/adlacatalogitem5661?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"tvfName\":\"adlacatalogitem5661\",\"definition\":\"CREATE FUNCTION adlacatalogitem2394.dbo.adlacatalogitem5661() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END;\",\"version\":\"27d54318-1c71-4f76-a07e-e15559798d27\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/tablevaluedfunctions/adlacatalogitem8019?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#tablevaluedfunctions/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"tvfName\":\"adlacatalogitem8019\",\"definition\":\"CREATE FUNCTION adlacatalogitem1507.dbo.adlacatalogitem8019() RETURNS @result TABLE ( s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int) AS BEGIN @result = EXTRACT s_date DateTime, s_time string, s_sitename string, cs_method string, cs_uristem string, cs_uriquery string, s_port int, cs_username string, c_ip string, cs_useragent string, cs_cookie string, cs_referer string, cs_host string, sc_status int, sc_substatus int, sc_win32status int, sc_bytes int, cs_bytes int, s_timetaken int FROM @\\\"/Samples/Data/WebLog.log\\\" USING Extractors.Text(delimiter:' '); RETURN; END;\",\"version\":\"fc6fd6f3-b183-44f6-9ccd-eee8c09a776d\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'c6d0432a-189a-4665-b295-cb7f2d094db6', + 'x-ms-request-id': '831aa6fc-e54f-4fe4-9b8c-fc4e31d48385', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:02 GMT', + date: 'Tue, 25 Jul 2017 17:58:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/views?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#views\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"viewName\":\"adlacatalogitem7106\",\"definition\":\"CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b);\",\"version\":\"639f7f71-8495-455c-bfd0-f008fd008c95\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/views?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#views\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"viewName\":\"adlacatalogitem6430\",\"definition\":\"CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b);\",\"version\":\"8a65525d-30da-4fe2-bd4b-d0b12074f39f\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '4ee515a4-ba38-449a-847d-730bebb3a4ab', + 'x-ms-request-id': '8f2a609d-d9c8-4749-bbcb-c379dcfd5abe', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:03 GMT', + date: 'Tue, 25 Jul 2017 17:58:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/views?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#views\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"viewName\":\"adlacatalogitem7106\",\"definition\":\"CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b);\",\"version\":\"639f7f71-8495-455c-bfd0-f008fd008c95\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/views?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#views\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"viewName\":\"adlacatalogitem6430\",\"definition\":\"CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b);\",\"version\":\"8a65525d-30da-4fe2-bd4b-d0b12074f39f\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '4ee515a4-ba38-449a-847d-730bebb3a4ab', + 'x-ms-request-id': '8f2a609d-d9c8-4749-bbcb-c379dcfd5abe', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:03 GMT', + date: 'Tue, 25 Jul 2017 17:58:09 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/views/adlacatalogitem7106?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#views/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"viewName\":\"adlacatalogitem7106\",\"definition\":\"CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b);\",\"version\":\"639f7f71-8495-455c-bfd0-f008fd008c95\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/views/adlacatalogitem6430?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#views/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"viewName\":\"adlacatalogitem6430\",\"definition\":\"CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b);\",\"version\":\"8a65525d-30da-4fe2-bd4b-d0b12074f39f\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '792e7d7a-12c8-43a5-b945-f098cf13f718', + 'x-ms-request-id': '3d142ef7-7858-4744-8d40-4c20d36abf94', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:04 GMT', + date: 'Tue, 25 Jul 2017 17:58:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/views/adlacatalogitem7106?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#views/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"viewName\":\"adlacatalogitem7106\",\"definition\":\"CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b);\",\"version\":\"639f7f71-8495-455c-bfd0-f008fd008c95\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/views/adlacatalogitem6430?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#views/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"viewName\":\"adlacatalogitem6430\",\"definition\":\"CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b);\",\"version\":\"8a65525d-30da-4fe2-bd4b-d0b12074f39f\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '792e7d7a-12c8-43a5-b945-f098cf13f718', + 'x-ms-request-id': '3d142ef7-7858-4744-8d40-4c20d36abf94', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:04 GMT', + date: 'Tue, 25 Jul 2017 17:58:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/procedures?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#procedures\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"procName\":\"adlacatalogitem8577\",\"definition\":\"CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"version\":\"737793ed-2f09-4845-8ac2-bec1695aceb8\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/procedures?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#procedures\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"procName\":\"adlacatalogitem8502\",\"definition\":\"CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"version\":\"eeb00da3-a422-4dd5-92dd-3ccf318910be\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '97dfbf83-c75d-45c5-b12d-b101ce351d66', + 'x-ms-request-id': 'f2f1d992-7f10-471f-a74e-e212a3b9adde', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:06 GMT', + date: 'Tue, 25 Jul 2017 17:58:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/procedures?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#procedures\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"procName\":\"adlacatalogitem8577\",\"definition\":\"CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"version\":\"737793ed-2f09-4845-8ac2-bec1695aceb8\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/procedures?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#procedures\",\"value\":[\r\n {\r\n \"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"procName\":\"adlacatalogitem8502\",\"definition\":\"CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"version\":\"eeb00da3-a422-4dd5-92dd-3ccf318910be\"\r\n }\r\n ]\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': '97dfbf83-c75d-45c5-b12d-b101ce351d66', + 'x-ms-request-id': 'f2f1d992-7f10-471f-a74e-e212a3b9adde', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:06 GMT', + date: 'Tue, 25 Jul 2017 17:58:10 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/procedures/adlacatalogitem8577?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#procedures/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"procName\":\"adlacatalogitem8577\",\"definition\":\"CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"version\":\"737793ed-2f09-4845-8ac2-bec1695aceb8\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/procedures/adlacatalogitem8502?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#procedures/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"procName\":\"adlacatalogitem8502\",\"definition\":\"CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"version\":\"eeb00da3-a422-4dd5-92dd-3ccf318910be\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'e54e88c2-81fd-44b0-9ed9-6f23382bf50d', + 'x-ms-request-id': '1a088d5c-66d4-43d7-bc9b-a7de3870fc02', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:07 GMT', + date: 'Tue, 25 Jul 2017 17:58:11 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/catalog/usql/databases/adlacatalogitem2394/schemas/dbo/procedures/adlacatalogitem8577?api-version=2016-11-01') - .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla7793.azuredatalakeanalytics.net/sqlip/$metadata#procedures/$entity\",\"computeAccountName\":\"xplattestadla7793\",\"databaseName\":\"adlacatalogitem2394\",\"schemaName\":\"dbo\",\"procName\":\"adlacatalogitem8577\",\"definition\":\"CREATE PROCEDURE adlacatalogitem2394.dbo.adlacatalogitem8577() AS BEGIN CREATE VIEW adlacatalogitem2394.dbo.adlacatalogitem7106 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"version\":\"737793ed-2f09-4845-8ac2-bec1695aceb8\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/catalog/usql/databases/adlacatalogitem1507/schemas/dbo/procedures/adlacatalogitem8502?api-version=2016-11-01') + .reply(200, "{\r\n \"@odata.context\":\"https://xplattestadla4847.azuredatalakeanalytics.net/sqlip/$metadata#procedures/$entity\",\"computeAccountName\":\"xplattestadla4847\",\"databaseName\":\"adlacatalogitem1507\",\"schemaName\":\"dbo\",\"procName\":\"adlacatalogitem8502\",\"definition\":\"CREATE PROCEDURE adlacatalogitem1507.dbo.adlacatalogitem8502() AS BEGIN CREATE VIEW adlacatalogitem1507.dbo.adlacatalogitem6430 AS SELECT * FROM ( VALUES(1,2),(2,4) ) AS T(a, b); END;\",\"version\":\"eeb00da3-a422-4dd5-92dd-3ccf318910be\"\r\n}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; odata.metadata=minimal', expires: '-1', - 'x-ms-request-id': 'e54e88c2-81fd-44b0-9ed9-6f23382bf50d', + 'x-ms-request-id': '1a088d5c-66d4-43d7-bc9b-a7de3870fc02', 'odata-version': '4.0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:26:07 GMT', + date: 'Tue, 25 Jul 2017 17:58:11 GMT', connection: 'close' }); return result; }]]; - exports.uuidsGenerated = function() { return ['d6a6bacf-b40f-4bcb-94f8-692d544b3065'];}; \ No newline at end of file + exports.uuidsGenerated = function() { return ['c2c434ce-20cb-4d5d-a2ee-fd7f0d532ef7'];}; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_create_and_cancel_job_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_create_and_cancel_job_should_work.nock.js index f2b831e49b..7bff9c82c1 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_create_and_cancel_job_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_create_and_cancel_job_should_work.nock.js @@ -3,91 +3,91 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/Jobs/d059392c-e921-4b4b-ad8a-f5e0afd119f7?api-version=2016-11-01', '*') - .reply(200, "{\"jobId\":\"d059392c-e921-4b4b-ad8a-f5e0afd119f7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:09.5124408+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:09.5124408+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d059392c-e921-4b4b-ad8a-f5e0afd119f7/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.put('/Jobs/7a0497fb-8848-45e8-afde-075c5128af81?api-version=2016-11-01', '*') + .reply(200, "{\"jobId\":\"7a0497fb-8848-45e8-afde-075c5128af81\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:59.4818856+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:59.4818856+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/7a0497fb-8848-45e8-afde-075c5128af81/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'aa882d34-b2a8-4baf-a9fb-3f19ae7737bf', + 'x-ms-request-id': '4ff372e3-4007-4068-9699-2f41498996c8', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:09 GMT', + date: 'Tue, 25 Jul 2017 17:56:59 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/Jobs/d059392c-e921-4b4b-ad8a-f5e0afd119f7?api-version=2016-11-01', '*') - .reply(200, "{\"jobId\":\"d059392c-e921-4b4b-ad8a-f5e0afd119f7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:09.5124408+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:09.5124408+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d059392c-e921-4b4b-ad8a-f5e0afd119f7/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.put('/Jobs/7a0497fb-8848-45e8-afde-075c5128af81?api-version=2016-11-01', '*') + .reply(200, "{\"jobId\":\"7a0497fb-8848-45e8-afde-075c5128af81\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:59.4818856+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:59.4818856+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/7a0497fb-8848-45e8-afde-075c5128af81/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'aa882d34-b2a8-4baf-a9fb-3f19ae7737bf', + 'x-ms-request-id': '4ff372e3-4007-4068-9699-2f41498996c8', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:09 GMT', + date: 'Tue, 25 Jul 2017 17:56:59 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .post('/Jobs/d059392c-e921-4b4b-ad8a-f5e0afd119f7/CancelJob?api-version=2016-11-01') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .post('/Jobs/7a0497fb-8848-45e8-afde-075c5128af81/CancelJob?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': '68618980-ea8e-4c44-a290-32476b450ea1', + 'x-ms-request-id': '72ef81de-3896-4295-9159-09096e06212b', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:11 GMT', + date: 'Tue, 25 Jul 2017 17:57:00 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .post('/Jobs/d059392c-e921-4b4b-ad8a-f5e0afd119f7/CancelJob?api-version=2016-11-01') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .post('/Jobs/7a0497fb-8848-45e8-afde-075c5128af81/CancelJob?api-version=2016-11-01') .reply(200, "", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', expires: '-1', - 'x-ms-request-id': '68618980-ea8e-4c44-a290-32476b450ea1', + 'x-ms-request-id': '72ef81de-3896-4295-9159-09096e06212b', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:11 GMT', + date: 'Tue, 25 Jul 2017 17:57:00 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/d059392c-e921-4b4b-ad8a-f5e0afd119f7?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"d059392c-e921-4b4b-ad8a-f5e0afd119f7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:09.5124408+00:00\",\"endTime\":\"2017-06-09T09:25:11.0593325+00:00\",\"state\":\"Ended\",\"result\":\"Cancelled\",\"errorMessage\":[{\"errorId\":\"I_USER_CJS_CANCELEDBYUSER\",\"name\":\"CANCELED_BY_USER\",\"severity\":\"Info\",\"source\":\"User\",\"component\":\"CJS\",\"message\":\"Job was cancelled.\",\"details\":\"\",\"description\":\"Job was cancelled by jasonsrptest2@SPI.\",\"resolution\":\"\",\"helpLink\":\"\",\"innerError\":null}],\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:09.5124408+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:25:09.8249458+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:25:11.0593325+00:00\",\"details\":\"result:CanceledByUser\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d059392c-e921-4b4b-ad8a-f5e0afd119f7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d059392c-e921-4b4b-ad8a-f5e0afd119f7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d059392c-e921-4b4b-ad8a-f5e0afd119f7/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"UserError\",\"totalCompilationTime\":\"PT1.2343867S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/7a0497fb-8848-45e8-afde-075c5128af81?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"7a0497fb-8848-45e8-afde-075c5128af81\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:59.4818856+00:00\",\"endTime\":\"2017-07-25T17:57:00.15375+00:00\",\"state\":\"Ended\",\"result\":\"Cancelled\",\"errorMessage\":[{\"errorId\":\"I_USER_CJS_CANCELEDBYUSER\",\"name\":\"CANCELED_BY_USER\",\"severity\":\"Info\",\"source\":\"User\",\"component\":\"CJS\",\"message\":\"Job was cancelled.\",\"details\":\"\",\"description\":\"Job was cancelled by AdlSdkTestApp01@SPI.\",\"resolution\":\"\",\"helpLink\":\"\",\"innerError\":null}],\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:59.4818856+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:56:59.6693682+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:57:00.15375+00:00\",\"details\":\"result:CanceledByUser\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/7a0497fb-8848-45e8-afde-075c5128af81/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/7a0497fb-8848-45e8-afde-075c5128af81/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/7a0497fb-8848-45e8-afde-075c5128af81/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"UserError\",\"totalCompilationTime\":\"PT0.4843818S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '66c208ed-115f-411d-ab49-911411540bb4', + 'x-ms-request-id': 'e916970d-c30d-4a2a-968b-176c49b90b93', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:13 GMT', + date: 'Tue, 25 Jul 2017 17:57:00 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/d059392c-e921-4b4b-ad8a-f5e0afd119f7?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"d059392c-e921-4b4b-ad8a-f5e0afd119f7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:09.5124408+00:00\",\"endTime\":\"2017-06-09T09:25:11.0593325+00:00\",\"state\":\"Ended\",\"result\":\"Cancelled\",\"errorMessage\":[{\"errorId\":\"I_USER_CJS_CANCELEDBYUSER\",\"name\":\"CANCELED_BY_USER\",\"severity\":\"Info\",\"source\":\"User\",\"component\":\"CJS\",\"message\":\"Job was cancelled.\",\"details\":\"\",\"description\":\"Job was cancelled by jasonsrptest2@SPI.\",\"resolution\":\"\",\"helpLink\":\"\",\"innerError\":null}],\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:25:09.5124408+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:25:09.8249458+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:25:11.0593325+00:00\",\"details\":\"result:CanceledByUser\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d059392c-e921-4b4b-ad8a-f5e0afd119f7/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d059392c-e921-4b4b-ad8a-f5e0afd119f7/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/25/d059392c-e921-4b4b-ad8a-f5e0afd119f7/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"UserError\",\"totalCompilationTime\":\"PT1.2343867S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/7a0497fb-8848-45e8-afde-075c5128af81?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"7a0497fb-8848-45e8-afde-075c5128af81\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:59.4818856+00:00\",\"endTime\":\"2017-07-25T17:57:00.15375+00:00\",\"state\":\"Ended\",\"result\":\"Cancelled\",\"errorMessage\":[{\"errorId\":\"I_USER_CJS_CANCELEDBYUSER\",\"name\":\"CANCELED_BY_USER\",\"severity\":\"Info\",\"source\":\"User\",\"component\":\"CJS\",\"message\":\"Job was cancelled.\",\"details\":\"\",\"description\":\"Job was cancelled by AdlSdkTestApp01@SPI.\",\"resolution\":\"\",\"helpLink\":\"\",\"innerError\":null}],\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:59.4818856+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:56:59.6693682+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:57:00.15375+00:00\",\"details\":\"result:CanceledByUser\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/7a0497fb-8848-45e8-afde-075c5128af81/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/7a0497fb-8848-45e8-afde-075c5128af81/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/7a0497fb-8848-45e8-afde-075c5128af81/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"UserError\",\"totalCompilationTime\":\"PT0.4843818S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '66c208ed-115f-411d-ab49-911411540bb4', + 'x-ms-request-id': 'e916970d-c30d-4a2a-968b-176c49b90b93', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:13 GMT', + date: 'Tue, 25 Jul 2017 17:57:00 GMT', connection: 'close' }); return result; }]]; - exports.uuidsGenerated = function() { return ['d059392c-e921-4b4b-ad8a-f5e0afd119f7'];}; \ No newline at end of file + exports.uuidsGenerated = function() { return ['7a0497fb-8848-45e8-afde-075c5128af81'];}; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_create_and_show_commands_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_create_and_show_commands_should_work.nock.js index d10c18d8b2..4b2ec8efa6 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_create_and_show_commands_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_create_and_show_commands_should_work.nock.js @@ -3,151 +3,151 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/Jobs/1bdd969f-80c0-4fab-b456-41692c9050a8?api-version=2016-11-01', '*') - .reply(200, "{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:24:21.6330462+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.put('/Jobs/a2d21fea-608f-4695-a654-c8a7f9b85275?api-version=2016-11-01', '*') + .reply(200, "{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:18.8093652+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '103e8d5c-7925-4bc5-a5ae-3efaf33c636b', + 'x-ms-request-id': 'e5bd24a2-449d-4dd7-b053-702e624d5cf7', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:21 GMT', + date: 'Tue, 25 Jul 2017 17:56:18 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) -.put('/Jobs/1bdd969f-80c0-4fab-b456-41692c9050a8?api-version=2016-11-01', '*') - .reply(200, "{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:24:21.6330462+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +.put('/Jobs/a2d21fea-608f-4695-a654-c8a7f9b85275?api-version=2016-11-01', '*') + .reply(200, "{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:18.8093652+00:00\",\"details\":\"userName:;submitMachine:N/A\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00Z\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '103e8d5c-7925-4bc5-a5ae-3efaf33c636b', + 'x-ms-request-id': 'e5bd24a2-449d-4dd7-b053-702e624d5cf7', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:21 GMT', + date: 'Tue, 25 Jul 2017 17:56:18 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/1bdd969f-80c0-4fab-b456-41692c9050a8?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:24:21.6330462+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:24:21.9455668+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT1.0389287S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/a2d21fea-608f-4695-a654-c8a7f9b85275?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:18.8093652+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:56:19.2625137+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0.5835952S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'e4399b19-812a-4510-92d8-216d7b7d6efe', + 'x-ms-request-id': 'dab7e67c-a408-43b1-a840-e4b92313a6ac', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:22 GMT', + date: 'Tue, 25 Jul 2017 17:56:20 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/1bdd969f-80c0-4fab-b456-41692c9050a8?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:24:21.6330462+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:24:21.9455668+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT1.0389287S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/a2d21fea-608f-4695-a654-c8a7f9b85275?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"state\":\"Compiling\",\"result\":\"None\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:18.8093652+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:56:19.2625137+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"default\",\"rootProcessNodeId\":\"00000000-0000-0000-0000-000000000000\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/algebra.xml\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT0.5835952S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0S\",\"totalRunningTime\":\"PT0S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'e4399b19-812a-4510-92d8-216d7b7d6efe', + 'x-ms-request-id': 'dab7e67c-a408-43b1-a840-e4b92313a6ac', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:22 GMT', + date: 'Tue, 25 Jul 2017 17:56:20 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/1bdd969f-80c0-4fab-b456-41692c9050a8?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"startTime\":\"2017-06-09T09:24:47.8090831+00:00\",\"endTime\":\"2017-06-09T09:24:51.4810151+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:24:21.6330462+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:24:21.9455668+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-06-09T09:24:36.2739076+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-06-09T09:24:36.2894768+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:46398937-e340-4c67-8bdd-2682543aecf7\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-06-09T09:24:36.3051084+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5353478\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-06-09T09:24:47.8090831+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:24:51.4810151+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"diagnosticsjson\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/diagnosticsjson\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5353478\",\"rootProcessNodeId\":\"46398937-e340-4c67-8bdd-2682543aecf7\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/algebra.xml\",\"yarnApplicationId\":19134,\"yarnApplicationTimeStamp\":1496985982015,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT14.3283408S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0155692S\",\"totalRunningTime\":\"PT3.671932S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/a2d21fea-608f-4695-a654-c8a7f9b85275?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"startTime\":\"2017-07-25T17:56:38.0596677+00:00\",\"endTime\":\"2017-07-25T17:56:44.919145+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:18.8093652+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:56:19.2625137+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:56:32.8408248+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:56:32.856468+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:1a0ac227-2b0e-457b-9ffe-ed6d3b18c64d\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:56:32.8720769+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-07-25T17:56:38.0596677+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:56:44.919145+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"diagnosticsjson\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/diagnosticsjson\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"1a0ac227-2b0e-457b-9ffe-ed6d3b18c64d\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/algebra.xml\",\"yarnApplicationId\":347288,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.5783111S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156432S\",\"totalRunningTime\":\"PT6.8594773S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'ac2f48a9-2ea0-406f-a025-4ed0ee5b8e76', + 'x-ms-request-id': 'b930be99-3105-47de-97a4-e36acc94beb0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:54 GMT', + date: 'Tue, 25 Jul 2017 17:56:50 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/1bdd969f-80c0-4fab-b456-41692c9050a8?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"startTime\":\"2017-06-09T09:24:47.8090831+00:00\",\"endTime\":\"2017-06-09T09:24:51.4810151+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:24:21.6330462+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:24:21.9455668+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-06-09T09:24:36.2739076+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-06-09T09:24:36.2894768+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:46398937-e340-4c67-8bdd-2682543aecf7\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-06-09T09:24:36.3051084+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5353478\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-06-09T09:24:47.8090831+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:24:51.4810151+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"diagnosticsjson\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/diagnosticsjson\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5353478\",\"rootProcessNodeId\":\"46398937-e340-4c67-8bdd-2682543aecf7\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/algebra.xml\",\"yarnApplicationId\":19134,\"yarnApplicationTimeStamp\":1496985982015,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT14.3283408S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0155692S\",\"totalRunningTime\":\"PT3.671932S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/a2d21fea-608f-4695-a654-c8a7f9b85275?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"startTime\":\"2017-07-25T17:56:38.0596677+00:00\",\"endTime\":\"2017-07-25T17:56:44.919145+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:18.8093652+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:56:19.2625137+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:56:32.8408248+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:56:32.856468+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:1a0ac227-2b0e-457b-9ffe-ed6d3b18c64d\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:56:32.8720769+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-07-25T17:56:38.0596677+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:56:44.919145+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"diagnosticsjson\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/diagnosticsjson\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"1a0ac227-2b0e-457b-9ffe-ed6d3b18c64d\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/algebra.xml\",\"yarnApplicationId\":347288,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.5783111S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156432S\",\"totalRunningTime\":\"PT6.8594773S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'ac2f48a9-2ea0-406f-a025-4ed0ee5b8e76', + 'x-ms-request-id': 'b930be99-3105-47de-97a4-e36acc94beb0', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:54 GMT', + date: 'Tue, 25 Jul 2017 17:56:50 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/1bdd969f-80c0-4fab-b456-41692c9050a8?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"startTime\":\"2017-06-09T09:24:47.8090831+00:00\",\"endTime\":\"2017-06-09T09:24:51.4810151+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:24:21.6330462+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:24:21.9455668+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-06-09T09:24:36.2739076+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-06-09T09:24:36.2894768+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:46398937-e340-4c67-8bdd-2682543aecf7\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-06-09T09:24:36.3051084+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5353478\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-06-09T09:24:47.8090831+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:24:51.4810151+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"diagnosticsjson\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/diagnosticsjson\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5353478\",\"rootProcessNodeId\":\"46398937-e340-4c67-8bdd-2682543aecf7\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/algebra.xml\",\"yarnApplicationId\":19134,\"yarnApplicationTimeStamp\":1496985982015,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT14.3283408S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0155692S\",\"totalRunningTime\":\"PT3.671932S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/a2d21fea-608f-4695-a654-c8a7f9b85275?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"startTime\":\"2017-07-25T17:56:38.0596677+00:00\",\"endTime\":\"2017-07-25T17:56:44.919145+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:18.8093652+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:56:19.2625137+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:56:32.8408248+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:56:32.856468+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:1a0ac227-2b0e-457b-9ffe-ed6d3b18c64d\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:56:32.8720769+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-07-25T17:56:38.0596677+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:56:44.919145+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"diagnosticsjson\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/diagnosticsjson\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"1a0ac227-2b0e-457b-9ffe-ed6d3b18c64d\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/algebra.xml\",\"yarnApplicationId\":347288,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.5783111S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156432S\",\"totalRunningTime\":\"PT6.8594773S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'b7f6bc66-62d1-4fd8-bd9d-0a682844e666', + 'x-ms-request-id': '7a64dd56-28db-479a-8b04-c951b891b31d', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:56 GMT', + date: 'Tue, 25 Jul 2017 17:56:50 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') - .get('/Jobs/1bdd969f-80c0-4fab-b456-41692c9050a8?api-version=2016-11-01') - .reply(200, "{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"startTime\":\"2017-06-09T09:24:47.8090831+00:00\",\"endTime\":\"2017-06-09T09:24:51.4810151+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-06-09T09:24:21.6330462+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-06-09T09:24:21.9455668+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-06-09T09:24:36.2739076+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-06-09T09:24:36.2894768+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:46398937-e340-4c67-8bdd-2682543aecf7\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-06-09T09:24:36.3051084+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5353478\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-06-09T09:24:47.8090831+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-06-09T09:24:51.4810151+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"jasonsrptest2@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"diagnosticsjson\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/diagnosticsjson\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5353478\",\"rootProcessNodeId\":\"46398937-e340-4c67-8bdd-2682543aecf7\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls1506.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/06/09/09/24/1bdd969f-80c0-4fab-b456-41692c9050a8/algebra.xml\",\"yarnApplicationId\":19134,\"yarnApplicationTimeStamp\":1496985982015,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT14.3283408S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0155692S\",\"totalRunningTime\":\"PT3.671932S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') + .get('/Jobs/a2d21fea-608f-4695-a654-c8a7f9b85275?api-version=2016-11-01') + .reply(200, "{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"startTime\":\"2017-07-25T17:56:38.0596677+00:00\",\"endTime\":\"2017-07-25T17:56:44.919145+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"stateAuditRecords\":[{\"newState\":\"New\",\"timeStamp\":\"2017-07-25T17:56:18.8093652+00:00\",\"details\":\"userName:;submitMachine:N/A\"},{\"newState\":\"Compiling\",\"timeStamp\":\"2017-07-25T17:56:19.2625137+00:00\",\"details\":\"CcsAttempts:1;Status:Dispatched\"},{\"newState\":\"Queued\",\"timeStamp\":\"2017-07-25T17:56:32.8408248+00:00\"},{\"newState\":\"Scheduling\",\"timeStamp\":\"2017-07-25T17:56:32.856468+00:00\",\"details\":\"Detail:Dispatching job to cluster.;rootProcessId:1a0ac227-2b0e-457b-9ffe-ed6d3b18c64d\"},{\"newState\":\"Starting\",\"timeStamp\":\"2017-07-25T17:56:32.8720769+00:00\",\"details\":\"runtimeVersion:kobo_live_signed_5386297\"},{\"newState\":\"Running\",\"timeStamp\":\"2017-07-25T17:56:38.0596677+00:00\",\"details\":\"runAttempt:1\"},{\"newState\":\"Ended\",\"timeStamp\":\"2017-07-25T17:56:44.919145+00:00\",\"details\":\"result:Succeeded\"}],\"properties\":{\"owner\":\"AdlSdkTestApp01@SPI\",\"resources\":[{\"name\":\"__ScopeCodeGen__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.dll\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGenEngine__.pdb\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.pdb\",\"type\":\"VertexResource\"},{\"name\":\"PartitionLastRows.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/PartitionLastRows.xml\",\"type\":\"VertexResource\"},{\"name\":\"ScopeVertexDef.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/ScopeVertexDef.xml\",\"type\":\"VertexResource\"},{\"name\":\"__ScopeCodeGen__.dll.cs\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGen__.dll.cs\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.dll.cpp\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.dll.cpp\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOutput__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenCompileOutput__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenCompileOptions__.txt\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenCompileOptions__.txt\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeCodeGenEngine__.cppresources\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeCodeGenEngine__.cppresources\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeDiagnosisInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeDiagnosisInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__SystemInternalInfo__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__SystemInternalInfo__.xml\",\"type\":\"StatisticsResource\"},{\"name\":\"__AST.json\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__AST.json\",\"type\":\"StatisticsResource\"},{\"name\":\"diagnosticsjson\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/diagnosticsjson\",\"type\":\"StatisticsResource\"},{\"name\":\"query.abr\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/query.abr\",\"type\":\"StatisticsResource\"},{\"name\":\"Profile\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/profile\",\"type\":\"StatisticsResource\"},{\"name\":\"__ScopeRuntimeStatistics__.xml\",\"resourcePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/__ScopeRuntimeStatistics__.xml\",\"type\":\"StatisticsResource\"}],\"runtimeVersion\":\"kobo_live_signed_5386297\",\"rootProcessNodeId\":\"1a0ac227-2b0e-457b-9ffe-ed6d3b18c64d\",\"script\":\"DROP DATABASE IF EXISTS FOO; CREATE DATABASE FOO; DROP DATABASE IF EXISTS FOO;\",\"algebraFilePath\":\"adl://xplattestadls6239.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/07/25/17/56/a2d21fea-608f-4695-a654-c8a7f9b85275/algebra.xml\",\"yarnApplicationId\":347288,\"yarnApplicationTimeStamp\":1500666496164,\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"totalCompilationTime\":\"PT13.5783111S\",\"totalPausedTime\":\"PT0S\",\"totalQueuedTime\":\"PT0.0156432S\",\"totalRunningTime\":\"PT6.8594773S\",\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'b7f6bc66-62d1-4fd8-bd9d-0a682844e666', + 'x-ms-request-id': '7a64dd56-28db-479a-8b04-c951b891b31d', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:24:56 GMT', + date: 'Tue, 25 Jul 2017 17:56:50 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) .post('/BuildJob?api-version=2016-11-01', '*') - .reply(200, "{\"jobId\":\"15ce231f-96c9-408a-9afd-b3e1d2202b8e\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":0,\"priority\":0,\"submitTime\":\"0001-01-01T00:00:00+00:00\",\"state\":\"Ended\",\"result\":\"Failed\",\"properties\":{\"resources\":[],\"runtimeVersion\":\"\",\"script\":\"DROP DATABASE IF EXIST FOO; CREATE DATABASE FOO;\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"diagnostics\":[{\"severity\":\"Error\",\"lineNumber\":1,\"columnNumber\":18,\"start\":17,\"end\":22,\"message\":\"E_CSC_USER_SYNTAXERROR: syntax error. Expected one of: EXISTS\"}],\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + .reply(200, "{\"jobId\":\"03cfc633-2a54-4eb3-b561-7a36893e0cb0\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":0,\"priority\":0,\"submitTime\":\"0001-01-01T00:00:00+00:00\",\"state\":\"Ended\",\"result\":\"Failed\",\"properties\":{\"resources\":[],\"runtimeVersion\":\"\",\"script\":\"DROP DATABASE IF EXIST FOO; CREATE DATABASE FOO;\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"diagnostics\":[{\"severity\":\"Error\",\"lineNumber\":1,\"columnNumber\":18,\"start\":17,\"end\":22,\"message\":\"E_CSC_USER_SYNTAXERROR: syntax error. Expected one of: EXISTS\"}],\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'd258d7e7-3d92-43cf-bc87-2edc31fa5163', + 'x-ms-request-id': '5d81d5ce-65fa-476b-9168-c93871664cf4', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:07 GMT', + date: 'Tue, 25 Jul 2017 17:56:58 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .filteringRequestBody(function (path) { return '*';}) .post('/BuildJob?api-version=2016-11-01', '*') - .reply(200, "{\"jobId\":\"15ce231f-96c9-408a-9afd-b3e1d2202b8e\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":0,\"priority\":0,\"submitTime\":\"0001-01-01T00:00:00+00:00\",\"state\":\"Ended\",\"result\":\"Failed\",\"properties\":{\"resources\":[],\"runtimeVersion\":\"\",\"script\":\"DROP DATABASE IF EXIST FOO; CREATE DATABASE FOO;\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"diagnostics\":[{\"severity\":\"Error\",\"lineNumber\":1,\"columnNumber\":18,\"start\":17,\"end\":22,\"message\":\"E_CSC_USER_SYNTAXERROR: syntax error. Expected one of: EXISTS\"}],\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + .reply(200, "{\"jobId\":\"03cfc633-2a54-4eb3-b561-7a36893e0cb0\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":0,\"priority\":0,\"submitTime\":\"0001-01-01T00:00:00+00:00\",\"state\":\"Ended\",\"result\":\"Failed\",\"properties\":{\"resources\":[],\"runtimeVersion\":\"\",\"script\":\"DROP DATABASE IF EXIST FOO; CREATE DATABASE FOO;\",\"compileMode\":\"Semantic\",\"errorSource\":\"Unknown\",\"diagnostics\":[{\"severity\":\"Error\",\"lineNumber\":1,\"columnNumber\":18,\"start\":17,\"end\":22,\"message\":\"E_CSC_USER_SYNTAXERROR: syntax error. Expected one of: EXISTS\"}],\"expirationTimeUtc\":\"0001-01-01T00:00:00\",\"type\":\"USql\"}}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': 'd258d7e7-3d92-43cf-bc87-2edc31fa5163', + 'x-ms-request-id': '5d81d5ce-65fa-476b-9168-c93871664cf4', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:07 GMT', + date: 'Tue, 25 Jul 2017 17:56:58 GMT', connection: 'close' }); return result; }]]; - exports.uuidsGenerated = function() { return ['1bdd969f-80c0-4fab-b456-41692c9050a8'];}; \ No newline at end of file + exports.uuidsGenerated = function() { return ['a2d21fea-608f-4695-a654-c8a7f9b85275'];}; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_list_command_should_work.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_list_command_should_work.nock.js index 61562ddbe9..83381e2ce3 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_list_command_should_work.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/Data_Lake_Analytics_Clients_Account_Job_and_Catalog_Data_Lake_Analytics_Job_list_command_should_work.nock.js @@ -3,34 +3,34 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = [[function (nock) { var result = -nock('http://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('http://xplattestadla4847.azuredatalakeanalytics.net:443') .get('/Jobs?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"startTime\":\"2017-06-09T09:24:47.8090831+00:00\",\"endTime\":\"2017-06-09T09:24:51.4810151+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"related\":{}},{\"jobId\":\"d059392c-e921-4b4b-ad8a-f5e0afd119f7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:09.5124408+00:00\",\"endTime\":\"2017-06-09T09:25:11.0593325+00:00\",\"state\":\"Ended\",\"result\":\"Cancelled\",\"related\":{}}]}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + .reply(200, "{\"value\":[{\"jobId\":\"7a0497fb-8848-45e8-afde-075c5128af81\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:59.4818856+00:00\",\"endTime\":\"2017-07-25T17:57:00.15375+00:00\",\"state\":\"Ended\",\"result\":\"Cancelled\",\"related\":{}},{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"startTime\":\"2017-07-25T17:56:38.0596677+00:00\",\"endTime\":\"2017-07-25T17:56:44.919145+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"related\":{}}]}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '78bde991-e469-4b65-aaca-711dc0b85c48', + 'x-ms-request-id': '9955d451-bb11-44b8-a55c-2b749472157b', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:14 GMT', + date: 'Tue, 25 Jul 2017 17:57:01 GMT', connection: 'close' }); return result; }, function (nock) { var result = -nock('https://xplattestadla7793.azuredatalakeanalytics.net:443') +nock('https://xplattestadla4847.azuredatalakeanalytics.net:443') .get('/Jobs?api-version=2016-11-01') - .reply(200, "{\"value\":[{\"jobId\":\"1bdd969f-80c0-4fab-b456-41692c9050a8\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:24:21.6330462+00:00\",\"startTime\":\"2017-06-09T09:24:47.8090831+00:00\",\"endTime\":\"2017-06-09T09:24:51.4810151+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"related\":{}},{\"jobId\":\"d059392c-e921-4b4b-ad8a-f5e0afd119f7\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"jasonsrptest2@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-06-09T09:25:09.5124408+00:00\",\"endTime\":\"2017-06-09T09:25:11.0593325+00:00\",\"state\":\"Ended\",\"result\":\"Cancelled\",\"related\":{}}]}", { 'cache-control': 'private, no-cache, no-store, max-age=0', + .reply(200, "{\"value\":[{\"jobId\":\"7a0497fb-8848-45e8-afde-075c5128af81\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:59.4818856+00:00\",\"endTime\":\"2017-07-25T17:57:00.15375+00:00\",\"state\":\"Ended\",\"result\":\"Cancelled\",\"related\":{}},{\"jobId\":\"a2d21fea-608f-4695-a654-c8a7f9b85275\",\"name\":\"xplattestjob\",\"type\":\"USql\",\"submitter\":\"AdlSdkTestApp01@SPI\",\"degreeOfParallelism\":1,\"priority\":1000,\"submitTime\":\"2017-07-25T17:56:18.8093652+00:00\",\"startTime\":\"2017-07-25T17:56:38.0596677+00:00\",\"endTime\":\"2017-07-25T17:56:44.919145+00:00\",\"state\":\"Ended\",\"result\":\"Succeeded\",\"related\":{}}]}", { 'cache-control': 'private, no-cache, no-store, max-age=0', 'transfer-encoding': 'chunked', 'content-type': 'application/json; charset=utf-8', expires: '-1', - 'x-ms-request-id': '78bde991-e469-4b65-aaca-711dc0b85c48', + 'x-ms-request-id': '9955d451-bb11-44b8-a55c-2b749472157b', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=15724800; includeSubDomains', - date: 'Fri, 09 Jun 2017 09:25:14 GMT', + date: 'Tue, 25 Jul 2017 17:57:01 GMT', connection: 'close' }); return result; }]]; \ No newline at end of file diff --git a/test/recordings/datalakeAnalyticsManagement-tests/suite.datalakeAnalyticsManagement-tests.nock.js b/test/recordings/datalakeAnalyticsManagement-tests/suite.datalakeAnalyticsManagement-tests.nock.js index 10de260194..d1b2fe7b92 100644 --- a/test/recordings/datalakeAnalyticsManagement-tests/suite.datalakeAnalyticsManagement-tests.nock.js +++ b/test/recordings/datalakeAnalyticsManagement-tests/suite.datalakeAnalyticsManagement-tests.nock.js @@ -3,9 +3,9 @@ exports.setEnvironment = function() { process.env['AZURE_TEST_LOCATION'] = 'East US 2'; process.env['AZURE_TEST_RESOURCE_GROUP'] = 'xplattestadlarg05'; - process.env['AZURE_SUBSCRIPTION_ID'] = 'ce4a7590-4722-4bcf-a2c6-e473e9f11778'; + process.env['AZURE_SUBSCRIPTION_ID'] = '04319d6d-4a66-4701-bb2f-e7dbbd9ae4db'; }; exports.scopes = []; - exports.randomTestIdsGenerated = function() { return ['xplattestadla5226','xplattestadla8406','xplattestadla7793','xplattestadls1506','xplattestadls6153','xplattestadls2224','adlacatalogitem2394','adlacatalogitem5832','adlacatalogitem5661','adlacatalogitem7106','adlacatalogitem8577','adlacatalogitem3714','adlacatalogitem6468','adlacatalogitem6'];}; \ No newline at end of file + exports.randomTestIdsGenerated = function() { return ['xplattestadla324','xplattestadla5213','xplattestadla4847','xplattestadls6239','xplattestadls277','xplattestadls3651','adlacatalogitem1507','adlacatalogitem172','adlacatalogitem8019','adlacatalogitem6430','adlacatalogitem8502','adlacatalogitem4247','adlacatalogitem8048','adlacatalogitem9430'];}; \ No newline at end of file