Skip to content

Commit

Permalink
Code gen for ADL
Browse files Browse the repository at this point in the history
* This change is mapped to this PR:
Azure/azure-rest-api-specs#1429
  • Loading branch information
ro-joowan committed Jul 25, 2017
1 parent 08c8001 commit b38571c
Show file tree
Hide file tree
Showing 173 changed files with 5,828 additions and 5,802 deletions.
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,27 +91,27 @@ const mappings = {
'datalake-analytics.account': {
'packageName': 'azure-arm-datalake-analytics',
'dir': 'dataLake.Analytics/lib/account',
'source': 'arm-datalake-analytics/account/2016-11-01/swagger/account.json'
'source': 'specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/account.json'
},
'datalake-analytics.catalog': {
'packageName': 'azure-arm-datalake-analytics',
'dir': 'dataLake.Analytics/lib/catalog',
'source': 'arm-datalake-analytics/catalog/2016-11-01/swagger/catalog.json'
'source': 'specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/catalog.json'
},
'datalake-analytics.job': {
'packageName': 'azure-arm-datalake-analytics',
'dir': 'dataLake.Analytics/lib/job',
'source': 'arm-datalake-analytics/job/2016-11-01/swagger/job.json'
'source': 'specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/job.json'
},
'datalake-store.account': {
'packageName': 'azure-arm-datalake-store',
'dir': 'dataLake.Store/lib/account',
'source': 'arm-datalake-store/account/2016-11-01/swagger/account.json'
'source': 'specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/account.json'
},
'datalake-store.filesystem': {
'packageName': 'azure-arm-datalake-store',
'dir': 'dataLake.Store/lib/filesystem',
'source': 'arm-datalake-store/filesystem/2016-11-01/swagger/filesystem.json'
'source': 'specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/filesystem.json'
},
'devtestlabs': {
'packageName': 'azure-arm-devtestlabs',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}

Expand Down
29 changes: 12 additions & 17 deletions lib/services/dataLake.Analytics/lib/account/models/computePolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Loading

0 comments on commit b38571c

Please sign in to comment.