/**
   * Create a AutoRestComplexTestService.
   * @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
   */
  constructor(baseUri, options) {

    if (!options) options = {};

    super(null, options);

    this.apiVersion = '2014-04-01-preview';
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'http://localhost';
    }

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    this.basicOperations = new operations.BasicOperations(this);
    this.primitive = new operations.Primitive(this);
    this.arrayModel = new operations.ArrayModel(this);
    this.dictionary = new operations.Dictionary(this);
    this.inheritance = new operations.Inheritance(this);
    this.polymorphism = new operations.Polymorphism(this);
    this.polymorphicrecursive = new operations.Polymorphicrecursive(this);
    this.readonlyproperty = new operations.Readonlyproperty(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
  /**
   * Create a AutoRestUrlTestService.
   * @param {string} globalStringPath - A string value 'globalItemStringPath' that appears in the path
   * @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.globalStringQuery] - should contain value null
   */
  constructor(globalStringPath, baseUri, options) {
    if (globalStringPath === null || globalStringPath === undefined) {
      throw new Error('\'globalStringPath\' cannot be null.');
    }

    if (!options) options = {};

    super(null, options);

    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'http://localhost';
    }
    this.globalStringPath = globalStringPath;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.globalStringQuery !== null && options.globalStringQuery !== undefined) {
      this.globalStringQuery = options.globalStringQuery;
    }
    this.paths = new operations.Paths(this);
    this.queries = new operations.Queries(this);
    this.pathItems = new operations.PathItems(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
/**
 * @class
 * Initializes a new instance of the SubscriptionClient class.
 * @constructor
 *
 * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
 *
 * @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.
 *
 */
function SubscriptionClient(credentials, baseUri, options) {
  this.apiVersion = '2016-06-01';
  this.acceptLanguage = 'en-US';
  this.longRunningOperationRetryTimeout = 30;
  this.generateClientRequestId = true;
  if (credentials === null || credentials === undefined) {
    throw new Error('\'credentials\' cannot be null.');
  }

  if (!options) options = {};

  SubscriptionClient['super_'].call(this, credentials, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'https://management.azure.com';
  }
  this.credentials = credentials;

  if(options.apiVersion !== null && options.apiVersion !== undefined) { 
    this.apiVersion = options.apiVersion;
  }
  if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { 
    this.acceptLanguage = options.acceptLanguage;
  }
  if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { 
    this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
  }
  if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { 
    this.generateClientRequestId = options.generateClientRequestId;
  }
  this.subscriptions = new operations.Subscriptions(this);
  this.tenants = new operations.Tenants(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
/**
 * @class
 * Initializes a new instance of the AutoRestRequiredOptionalTestService class.
 * @constructor
 *
 * @param {string} requiredGlobalPath - number of items to skip
 *
 * @param {string} requiredGlobalQuery - number of items to skip
 *
 * @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 {number} [options.optionalGlobalQuery] - number of items to skip
 *
 */
function AutoRestRequiredOptionalTestService(requiredGlobalPath, requiredGlobalQuery, baseUri, options) {
  if (requiredGlobalPath === null || requiredGlobalPath === undefined) {
    throw new Error('\'requiredGlobalPath\' cannot be null.');
  }
  if (requiredGlobalQuery === null || requiredGlobalQuery === undefined) {
    throw new Error('\'requiredGlobalQuery\' cannot be null.');
  }

  if (!options) options = {};

  AutoRestRequiredOptionalTestService['super_'].call(this, null, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'http://localhost';
  }
  this.requiredGlobalPath = requiredGlobalPath;
  this.requiredGlobalQuery = requiredGlobalQuery;

  if(options.optionalGlobalQuery !== null && options.optionalGlobalQuery !== undefined) {
    this.optionalGlobalQuery = options.optionalGlobalQuery;
  }
  this.implicit = new operations.Implicit(this);
  this.explicit = new operations.Explicit(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
/**
 * @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.
 *
 */
function DataLakeStoreFileSystemManagementClient(credentials, options) {
  this.apiVersion = '2015-10-01-preview';
  this.adlsFileSystemDnsSuffix = 'azuredatalakestore.net';
  this.acceptLanguage = 'en-US';
  this.longRunningOperationRetryTimeout = 30;
  this.generateClientRequestId = true;
  if (credentials === null || credentials === undefined) {
    throw new Error('\'credentials\' cannot be null.');
  }

  if (!options) options = {};

  DataLakeStoreFileSystemManagementClient['super_'].call(this, credentials, options);
  this.baseUri = 'https://{accountName}.{adlsFileSystemDnsSuffix}';
  this.credentials = credentials;

  if(options.apiVersion !== null && options.apiVersion !== undefined) { 
    this.apiVersion = options.apiVersion;
  }
  if(options.adlsFileSystemDnsSuffix !== null && options.adlsFileSystemDnsSuffix !== undefined) { 
    this.adlsFileSystemDnsSuffix = options.adlsFileSystemDnsSuffix;
  }
  if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { 
    this.acceptLanguage = options.acceptLanguage;
  }
  if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { 
    this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
  }
  if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { 
    this.generateClientRequestId = options.generateClientRequestId;
  }
  this.fileSystem = new operations.FileSystem(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
  /**
   * Create a TextAnalyticsClient.
   * @param {credentials} credentials - Subscription credentials which uniquely identify client subscription.
   * @param {string} endpoint - Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).
   * @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
   */
  constructor(credentials, endpoint, options) {
    if (credentials === null || credentials === undefined) {
      throw new Error('\'credentials\' cannot be null.');
    }
    if (endpoint === null || endpoint === undefined) {
      throw new Error('\'endpoint\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.baseUri = '{Endpoint}/text/analytics/v2.1';
    this.credentials = credentials;
    this.endpoint = endpoint;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    this.models = models;
    this._detectLanguage = _detectLanguage;
    this._entities = _entities;
    this._keyPhrases = _keyPhrases;
    this._sentiment = _sentiment;
    msRest.addSerializationMixin(this);
  }
  /**
   * Create a AutoRestValidationTest.
   * @param {string} subscriptionId - Subscription ID.
   * @param {string} apiVersion - Required string following pattern \d{2}-\d{2}-\d{4}
   * @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
   */
  constructor(subscriptionId, apiVersion, baseUri, options) {
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }
    if (apiVersion === null || apiVersion === undefined) {
      throw new Error('\'apiVersion\' cannot be null.');
    }

    if (!options) options = {};

    super(null, options);

    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'http://localhost';
    }
    this.subscriptionId = subscriptionId;
    this.apiVersion = apiVersion;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    this.models = models;
    this._validationOfMethodParameters = _validationOfMethodParameters;
    this._validationOfBody = _validationOfBody;
    this._getWithConstantInPath = _getWithConstantInPath;
    this._postWithConstantInBody = _postWithConstantInBody;
    msRest.addSerializationMixin(this);
  }
/**
 * @class
 * Initializes a new instance of the AutoRestParameterGroupingTestService class.
 * @constructor
 *
 * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
 *
 * @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.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.
 *
 */
function AutoRestParameterGroupingTestService(credentials, baseUri, options) {
  this.acceptLanguage = 'en-US';
  this.longRunningOperationRetryTimeout = 30;
  this.generateClientRequestId = true;
  if (credentials === null || credentials === undefined) {
    throw new Error('\'credentials\' cannot be null.');
  }

  if (!options) options = {};

  AutoRestParameterGroupingTestService['super_'].call(this, credentials, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'https://localhost';
  }
  this.credentials = credentials;

  if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
    this.acceptLanguage = options.acceptLanguage;
  }
  if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
    this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
  }
  if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
    this.generateClientRequestId = options.generateClientRequestId;
  }
  this.parameterGrouping = new operations.ParameterGrouping(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
  /**
   * Create a EventGridClient.
   * @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.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.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.apiVersion = '2018-01-01';
    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = 'https://{topicHostname}';
    this.credentials = credentials;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.models = models;
    this._publishEvents = _publishEvents;
    msRest.addSerializationMixin(this);
  }
Example #10
0
  /**
   * Create a FaceClient.
   * @param {credentials} credentials - Subscription credentials which uniquely identify client subscription.
   * @param {string} endpoint - Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).
   * @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
   */
  constructor(credentials, endpoint, options) {
    if (credentials === null || credentials === undefined) {
      throw new Error('\'credentials\' cannot be null.');
    }
    if (endpoint === null || endpoint === undefined) {
      throw new Error('\'endpoint\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.baseUri = '{Endpoint}/face/v1.0';
    this.credentials = credentials;
    this.endpoint = endpoint;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    this.face = new operations.Face(this);
    this.personGroupPerson = new operations.PersonGroupPerson(this);
    this.personGroupOperations = new operations.PersonGroupOperations(this);
    this.faceListOperations = new operations.FaceListOperations(this);
    this.largePersonGroupPerson = new operations.LargePersonGroupPerson(this);
    this.largePersonGroupOperations = new operations.LargePersonGroupOperations(this);
    this.largeFaceListOperations = new operations.LargeFaceListOperations(this);
    this.snapshotOperations = new operations.SnapshotOperations(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
/**
 * @class
 * Initializes a new instance of the AutoRestParameterizedHostTestClient class.
 * @constructor
 *
 * @param {credentials} credentials - Gets Azure subscription credentials.
 *
 * @param {string} host - A string value that is used as a global part of the parameterized host
 *
 * @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.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.
 *
 */
function AutoRestParameterizedHostTestClient(credentials, host, options) {
  this.host = 'host';
  this.acceptLanguage = 'en-US';
  this.longRunningOperationRetryTimeout = 30;
  this.generateClientRequestId = true;
  if (credentials === null || credentials === undefined) {
    throw new Error('\'credentials\' cannot be null.');
  }
  if (host === null || host === undefined) {
    throw new Error('\'host\' cannot be null.');
  }

  if (!options) options = {};

  AutoRestParameterizedHostTestClient['super_'].call(this, credentials, options);
  if (!this.baseUri) {
    this.baseUri = 'http://{accountName}{host}';
  }
  this.credentials = credentials;
  this.host = host;

  if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { 
    this.acceptLanguage = options.acceptLanguage;
  }
  if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { 
    this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
  }
  if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { 
    this.generateClientRequestId = options.generateClientRequestId;
  }
  this.paths = new operations.Paths(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
  constructor(credentials, options) {
    if (credentials === null || credentials === undefined) {
      throw new Error('\'credentials\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.host = 'host';
    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = 'http://{accountName}{host}';
    this.credentials = credentials;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.host !== null && options.host !== undefined) {
      this.host = options.host;
    }
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.paths = new operations.Paths(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
  constructor(requiredGlobalPath, requiredGlobalQuery, baseUri, options) {
    if (requiredGlobalPath === null || requiredGlobalPath === undefined) {
      throw new Error('\'requiredGlobalPath\' cannot be null.');
    }
    if (requiredGlobalQuery === null || requiredGlobalQuery === undefined) {
      throw new Error('\'requiredGlobalQuery\' cannot be null.');
    }

    if (!options) options = {};

    super(null, options);

    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'http://localhost';
    }
    this.requiredGlobalPath = requiredGlobalPath;
    this.requiredGlobalQuery = requiredGlobalQuery;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.optionalGlobalQuery !== null && options.optionalGlobalQuery !== undefined) {
      this.optionalGlobalQuery = options.optionalGlobalQuery;
    }
    this.implicit = new operations.Implicit(this);
    this.explicit = new operations.Explicit(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
  constructor(credentials, subscriptionId, baseUri, options) {
    if (credentials === null || credentials === undefined) {
      throw new Error('\'credentials\' cannot be null.');
    }
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'https://management.azure.com';
    }
    this.credentials = credentials;
    this.subscriptionId = subscriptionId;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.itemLevelRecoveryConnections = new operations.ItemLevelRecoveryConnections(this);
    this.restores = new operations.Restores(this);
    this.protectionPolicyOperationStatuses = new operations.ProtectionPolicyOperationStatuses(this);
    this.protectionPolicyOperationResults = new operations.ProtectionPolicyOperationResults(this);
    this.protectionPolicies = new operations.ProtectionPolicies(this);
    this.protectionContainerOperationResults = new operations.ProtectionContainerOperationResults(this);
    this.protectionContainerRefreshOperationResults = new operations.ProtectionContainerRefreshOperationResults(this);
    this.protectionContainers = new operations.ProtectionContainers(this);
    this.recoveryPoints = new operations.RecoveryPoints(this);
    this.backups = new operations.Backups(this);
    this.protectedItemOperationStatuses = new operations.ProtectedItemOperationStatuses(this);
    this.protectedItemOperationResults = new operations.ProtectedItemOperationResults(this);
    this.protectedItems = new operations.ProtectedItems(this);
    this.protectableItems = new operations.ProtectableItems(this);
    this.exportJobsOperationResults = new operations.ExportJobsOperationResults(this);
    this.jobOperationResults = new operations.JobOperationResults(this);
    this.jobs = new operations.Jobs(this);
    this.jobCancellations = new operations.JobCancellations(this);
    this.jobDetails = new operations.JobDetails(this);
    this.backupOperationStatuses = new operations.BackupOperationStatuses(this);
    this.backupOperationResults = new operations.BackupOperationResults(this);
    this.backupEngines = new operations.BackupEngines(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
  /**
   * Create a DevTestLabsClient.
   * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
   * @param {string} subscriptionId - The subscription ID.
   * @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.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.');
    }
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.apiVersion = '2016-05-15';
    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'https://management.azure.com';
    }
    this.credentials = credentials;
    this.subscriptionId = subscriptionId;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.labs = new operations.Labs(this);
    this.globalSchedules = new operations.GlobalSchedules(this);
    this.artifactSources = new operations.ArtifactSources(this);
    this.armTemplates = new operations.ArmTemplates(this);
    this.artifacts = new operations.Artifacts(this);
    this.costs = new operations.Costs(this);
    this.customImages = new operations.CustomImages(this);
    this.formulas = new operations.Formulas(this);
    this.galleryImages = new operations.GalleryImages(this);
    this.notificationChannels = new operations.NotificationChannels(this);
    this.policySets = new operations.PolicySets(this);
    this.policies = new operations.Policies(this);
    this.schedules = new operations.Schedules(this);
    this.serviceRunners = new operations.ServiceRunners(this);
    this.users = new operations.Users(this);
    this.disks = new operations.Disks(this);
    this.environments = new operations.Environments(this);
    this.secrets = new operations.Secrets(this);
    this.virtualMachines = new operations.VirtualMachines(this);
    this.virtualMachineSchedules = new operations.VirtualMachineSchedules(this);
    this.virtualNetworks = new operations.VirtualNetworks(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
  /**
   * Create a MonitorManagementClient.
   * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
   * @param {string} subscriptionId - The Azure subscription Id.
   * @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.acceptLanguage] - The preferred language for the response.
   * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
   * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. 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.');
    }
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'https://management.azure.com';
    }
    this.credentials = credentials;
    this.subscriptionId = subscriptionId;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.autoscaleSettings = new operations.AutoscaleSettings(this);
    this.operations = new operations.Operations(this);
    this.alertRuleIncidents = new operations.AlertRuleIncidents(this);
    this.alertRules = new operations.AlertRules(this);
    this.logProfiles = new operations.LogProfiles(this);
    this.diagnosticSettingsOperations = new operations.DiagnosticSettingsOperations(this);
    this.diagnosticSettingsCategoryOperations = new operations.DiagnosticSettingsCategoryOperations(this);
    this.actionGroups = new operations.ActionGroups(this);
    this.activityLogAlerts = new operations.ActivityLogAlerts(this);
    this.activityLogs = new operations.ActivityLogs(this);
    this.eventCategories = new operations.EventCategories(this);
    this.tenantActivityLogs = new operations.TenantActivityLogs(this);
    this.metricDefinitions = new operations.MetricDefinitions(this);
    this.metrics = new operations.Metrics(this);
    this.metricBaseline = new operations.MetricBaseline(this);
    this.metricAlerts = new operations.MetricAlerts(this);
    this.metricAlertsStatus = new operations.MetricAlertsStatus(this);
    this.scheduledQueryRules = new operations.ScheduledQueryRules(this);
    this.metricNamespaces = new operations.MetricNamespaces(this);
    this.vMInsights = new operations.VMInsights(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
/**
 * @class
 * Initializes a new instance of the NetworkManagementClient 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.
 *
 */
function NetworkManagementClient(credentials, subscriptionId, baseUri, options) {
  this.apiVersion = '2016-09-01';
  this.acceptLanguage = 'en-US';
  this.longRunningOperationRetryTimeout = 30;
  this.generateClientRequestId = true;
  if (credentials === null || credentials === undefined) {
    throw new Error('\'credentials\' cannot be null.');
  }
  if (subscriptionId === null || subscriptionId === undefined) {
    throw new Error('\'subscriptionId\' cannot be null.');
  }

  if (!options) options = {};

  NetworkManagementClient['super_'].call(this, credentials, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'https://management.azure.com';
  }
  this.credentials = credentials;
  this.subscriptionId = subscriptionId;

  if(options.apiVersion !== null && options.apiVersion !== undefined) { 
    this.apiVersion = options.apiVersion;
  }
  if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { 
    this.acceptLanguage = options.acceptLanguage;
  }
  if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { 
    this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
  }
  if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { 
    this.generateClientRequestId = options.generateClientRequestId;
  }
  this.applicationGateways = new operations.ApplicationGateways(this);
  this.expressRouteCircuitAuthorizations = new operations.ExpressRouteCircuitAuthorizations(this);
  this.expressRouteCircuitPeerings = new operations.ExpressRouteCircuitPeerings(this);
  this.expressRouteCircuits = new operations.ExpressRouteCircuits(this);
  this.expressRouteServiceProviders = new operations.ExpressRouteServiceProviders(this);
  this.loadBalancers = new operations.LoadBalancers(this);
  this.localNetworkGateways = new operations.LocalNetworkGateways(this);
  this.networkInterfaces = new operations.NetworkInterfaces(this);
  this.networkSecurityGroups = new operations.NetworkSecurityGroups(this);
  this.publicIPAddresses = new operations.PublicIPAddresses(this);
  this.routeTables = new operations.RouteTables(this);
  this.routes = new operations.Routes(this);
  this.securityRules = new operations.SecurityRules(this);
  this.subnets = new operations.Subnets(this);
  this.virtualNetworkPeerings = new operations.VirtualNetworkPeerings(this);
  this.usages = new operations.Usages(this);
  this.virtualNetworkGatewayConnections = new operations.VirtualNetworkGatewayConnections(this);
  this.virtualNetworkGateways = new operations.VirtualNetworkGateways(this);
  this.virtualNetworks = new operations.VirtualNetworks(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
  constructor(credentials, subscriptionId, baseUri, options) {
    if (credentials === null || credentials === undefined) {
      throw new Error('\'credentials\' cannot be null.');
    }
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.apiVersion = '2016-06-01';
    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'https://management.azure.com';
    }
    this.credentials = credentials;
    this.subscriptionId = subscriptionId;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.apiVersion !== null && options.apiVersion !== undefined) {
      this.apiVersion = options.apiVersion;
    }
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.workflows = new operations.Workflows(this);
    this.workflowVersions = new operations.WorkflowVersions(this);
    this.workflowTriggers = new operations.WorkflowTriggers(this);
    this.workflowTriggerHistories = new operations.WorkflowTriggerHistories(this);
    this.workflowRuns = new operations.WorkflowRuns(this);
    this.workflowRunActions = new operations.WorkflowRunActions(this);
    this.integrationAccounts = new operations.IntegrationAccounts(this);
    this.schemas = new operations.Schemas(this);
    this.maps = new operations.Maps(this);
    this.partners = new operations.Partners(this);
    this.agreements = new operations.Agreements(this);
    this.certificates = new operations.Certificates(this);
    this.sessions = new operations.Sessions(this);
    this.models = models;
    this._listOperations = _listOperations;
    this._listOperationsNext = _listOperationsNext;
    msRest.addSerializationMixin(this);
  }
  /**
   * Create a StorSimple8000SeriesManagementClient.
   * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
   * @param {string} subscriptionId - The subscription id
   * @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.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.');
    }
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.apiVersion = '2017-06-01';
    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'https://management.azure.com';
    }
    this.credentials = credentials;
    this.subscriptionId = subscriptionId;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.operations = new operations.Operations(this);
    this.managers = new operations.Managers(this);
    this.accessControlRecords = new operations.AccessControlRecords(this);
    this.alerts = new operations.Alerts(this);
    this.bandwidthSettings = new operations.BandwidthSettings(this);
    this.cloudAppliances = new operations.CloudAppliances(this);
    this.devices = new operations.Devices(this);
    this.deviceSettings = new operations.DeviceSettings(this);
    this.backupPolicies = new operations.BackupPolicies(this);
    this.backupSchedules = new operations.BackupSchedules(this);
    this.backups = new operations.Backups(this);
    this.hardwareComponentGroups = new operations.HardwareComponentGroups(this);
    this.jobs = new operations.Jobs(this);
    this.volumeContainers = new operations.VolumeContainers(this);
    this.volumes = new operations.Volumes(this);
    this.storageAccountCredentials = new operations.StorageAccountCredentials(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
  /**
   * Create a ApplicationInsightsManagementClient.
   * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
   * @param {string} subscriptionId - The Azure subscription ID.
   * @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.acceptLanguage] - The preferred language for the response.
   * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
   * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. 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.');
    }
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.apiVersion = '2015-05-01';
    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'https://management.azure.com';
    }
    this.credentials = credentials;
    this.subscriptionId = subscriptionId;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.operations = new operations.Operations(this);
    this.annotations = new operations.Annotations(this);
    this.aPIKeys = new operations.APIKeys(this);
    this.exportConfigurations = new operations.ExportConfigurations(this);
    this.componentCurrentBillingFeatures = new operations.ComponentCurrentBillingFeatures(this);
    this.componentQuotaStatus = new operations.ComponentQuotaStatus(this);
    this.componentFeatureCapabilities = new operations.ComponentFeatureCapabilities(this);
    this.componentAvailableFeatures = new operations.ComponentAvailableFeatures(this);
    this.proactiveDetectionConfigurations = new operations.ProactiveDetectionConfigurations(this);
    this.components = new operations.Components(this);
    this.workItemConfigurations = new operations.WorkItemConfigurations(this);
    this.favorites = new operations.Favorites(this);
    this.webTestLocations = new operations.WebTestLocations(this);
    this.webTests = new operations.WebTests(this);
    this.analyticsItems = new operations.AnalyticsItems(this);
    this.workbooks = new operations.Workbooks(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
/**
 * @class
 * Initializes a new instance of the AutoRestResourceFlatteningTestService class.
 * @constructor
 *
 * @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
 *
 */
function AutoRestResourceFlatteningTestService(baseUri, options) {

  if (!options) options = {};

  AutoRestResourceFlatteningTestService['super_'].call(this, null, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'http://localhost';
  }

  this.models = models;
  msRest.addSerializationMixin(this);
}
  /**
   * Create a CosmosDBManagementClient.
   * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
   * @param {string} subscriptionId - Azure subscription ID.
   * @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.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.');
    }
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.apiVersion = '2015-04-08';
    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'https://management.azure.com';
    }
    this.credentials = credentials;
    this.subscriptionId = subscriptionId;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.databaseAccounts = new operations.DatabaseAccounts(this);
    this.operations = new operations.Operations(this);
    this.database = new operations.Database(this);
    this.collection = new operations.Collection(this);
    this.collectionRegion = new operations.CollectionRegion(this);
    this.databaseAccountRegion = new operations.DatabaseAccountRegion(this);
    this.percentileSourceTarget = new operations.PercentileSourceTarget(this);
    this.percentileTarget = new operations.PercentileTarget(this);
    this.percentile = new operations.Percentile(this);
    this.collectionPartitionRegion = new operations.CollectionPartitionRegion(this);
    this.collectionPartition = new operations.CollectionPartition(this);
    this.partitionKeyRangeId = new operations.PartitionKeyRangeId(this);
    this.partitionKeyRangeIdRegion = new operations.PartitionKeyRangeIdRegion(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
/**
 * @class
 * Initializes a new instance of the AutoRestRFC1123DateTimeTestService class.
 * @constructor
 *
 * @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
 *
 */
function AutoRestRFC1123DateTimeTestService(baseUri, options) {

  if (!options) options = {};

  AutoRestRFC1123DateTimeTestService['super_'].call(this, null, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'https://localhost';
  }

  this.datetimerfc1123 = new operations.Datetimerfc1123(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
/**
 * @class
 * Initializes a new instance of the AutoRestNumberTestService class.
 * @constructor
 *
 * @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
 *
 */
function AutoRestNumberTestService(baseUri, options) {

  if (!options) options = {};

  AutoRestNumberTestService['super_'].call(this, null, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'https://localhost';
  }

  this.number = new operations.Number(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
/**
 * @class
 * Initializes a new instance of the DevTestLabsClient class.
 * @constructor
 *
 * @param {credentials} credentials - Gets Azure subscription credentials.
 *
 * @param {string} subscriptionId - The subscription ID.
 *
 * @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.
 *
 */
function DevTestLabsClient(credentials, subscriptionId, baseUri, options) {
  this.apiVersion = '2015-05-21-preview';
  this.acceptLanguage = 'en-US';
  this.longRunningOperationRetryTimeout = 30;
  this.generateClientRequestId = true;
  if (credentials === null || credentials === undefined) {
    throw new Error('\'credentials\' cannot be null.');
  }
  if (subscriptionId === null || subscriptionId === undefined) {
    throw new Error('\'subscriptionId\' cannot be null.');
  }

  if (!options) options = {};

  DevTestLabsClient['super_'].call(this, credentials, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'https://management.azure.com';
  }
  this.credentials = credentials;
  this.subscriptionId = subscriptionId;

  if(options.apiVersion !== null && options.apiVersion !== undefined) { 
    this.apiVersion = options.apiVersion;
  }
  if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { 
    this.acceptLanguage = options.acceptLanguage;
  }
  if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { 
    this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
  }
  if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { 
    this.generateClientRequestId = options.generateClientRequestId;
  }
  this.labOperations = new operations.LabOperations(this);
  this.artifactSourceOperations = new operations.ArtifactSourceOperations(this);
  this.artifactOperations = new operations.ArtifactOperations(this);
  this.costInsightOperations = new operations.CostInsightOperations(this);
  this.costOperations = new operations.CostOperations(this);
  this.customImageOperations = new operations.CustomImageOperations(this);
  this.formulaOperations = new operations.FormulaOperations(this);
  this.galleryImageOperations = new operations.GalleryImageOperations(this);
  this.policySet = new operations.PolicySet(this);
  this.policyOperations = new operations.PolicyOperations(this);
  this.scheduleOperations = new operations.ScheduleOperations(this);
  this.virtualMachine = new operations.VirtualMachine(this);
  this.virtualNetworkOperations = new operations.VirtualNetworkOperations(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
/**
 * @class
 * Initializes a new instance of the AutoRestParameterFlattening class.
 * @constructor
 *
 * @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
 *
 */
function AutoRestParameterFlattening(baseUri, options) {

  if (!options) options = {};

  AutoRestParameterFlattening['super_'].call(this, null, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'http://localhost';
  }

  this.availabilitySets = new operations.AvailabilitySets(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
/**
 * @class
 * Initializes a new instance of the AutoRestSwaggerBATHeaderService class.
 * @constructor
 *
 * @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
 *
 */
function AutoRestSwaggerBATHeaderService(baseUri, options) {

  if (!options) options = {};

  AutoRestSwaggerBATHeaderService['super_'].call(this, null, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'http://localhost';
  }

  this.header = new operations.Header(this);
  this.models = models;
  msRest.addSerializationMixin(this);
}
Example #28
0
/**
 * @class
 * Initializes a new instance of the ComplexModelClient class.
 * @constructor
 *
 * @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
 *
 */
function ComplexModelClient(baseUri, options) {
  this.subscriptionId = '123456';
  this.apiVersion = '2014-04-01-preview';

  if (!options) options = {};

  ComplexModelClient['super_'].call(this, null, options);
  this.baseUri = baseUri;
  if (!this.baseUri) {
    this.baseUri = 'http://localhost';
  }

  this.models = models;
  msRest.addSerializationMixin(this);
}
  /**
   * Create a AutoRestAzureSpecialParametersTestClient.
   * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
   * @param {string} subscriptionId - The subscription id, which appears in the path, always modeled in credentials. The value is always '1234-5678-9012-3456'
   * @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] - The api version, which appears in the query, the value is always '2015-07-01-preview'
   * @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.');
    }
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.apiVersion = '2015-07-01-preview';
    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'http://localhost';
    }
    this.credentials = credentials;
    this.subscriptionId = subscriptionId;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.apiVersion !== null && options.apiVersion !== undefined) {
      this.apiVersion = options.apiVersion;
    }
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.xMsClientRequestId = new operations.XMsClientRequestId(this);
    this.subscriptionInCredentials = new operations.SubscriptionInCredentials(this);
    this.subscriptionInMethod = new operations.SubscriptionInMethod(this);
    this.apiVersionDefault = new operations.ApiVersionDefault(this);
    this.apiVersionLocal = new operations.ApiVersionLocal(this);
    this.skipUrlEncoding = new operations.SkipUrlEncoding(this);
    this.odata = new operations.Odata(this);
    this.header = new operations.Header(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }
  /**
   * Create a MySQLManagementClient.
   * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
   * @param {string} subscriptionId - The subscription ID that identifies an Azure subscription.
   * @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.acceptLanguage] - The preferred language for the response.
   * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
   * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. 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.');
    }
    if (subscriptionId === null || subscriptionId === undefined) {
      throw new Error('\'subscriptionId\' cannot be null.');
    }

    if (!options) options = {};

    super(credentials, options);

    this.apiVersion = '2017-12-01';
    this.acceptLanguage = 'en-US';
    this.longRunningOperationRetryTimeout = 30;
    this.generateClientRequestId = true;
    this.baseUri = baseUri;
    if (!this.baseUri) {
      this.baseUri = 'https://management.azure.com';
    }
    this.credentials = credentials;
    this.subscriptionId = subscriptionId;

    let packageInfo = this.getPackageJsonInfo(__dirname);
    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
      this.acceptLanguage = options.acceptLanguage;
    }
    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
    }
    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
      this.generateClientRequestId = options.generateClientRequestId;
    }
    this.servers = new operations.Servers(this);
    this.firewallRules = new operations.FirewallRules(this);
    this.virtualNetworkRules = new operations.VirtualNetworkRules(this);
    this.databases = new operations.Databases(this);
    this.configurations = new operations.Configurations(this);
    this.logFiles = new operations.LogFiles(this);
    this.locationBasedPerformanceTier = new operations.LocationBasedPerformanceTier(this);
    this.checkNameAvailability = new operations.CheckNameAvailability(this);
    this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this);
    this.operations = new operations.Operations(this);
    this.models = models;
    msRest.addSerializationMixin(this);
  }