node_modules/@azure/arm-containerinstance/dist/arm-containerinstance.js
/**
         * Initializes a new instance of the ContainerInstanceManagementClient class.
         * @param credentials Credentials needed for the client to connect to Azure.
         * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
         * subscription. The subscription ID forms part of the URI for every service call.
         * @param [options] The parameter options
         */
Initializes a new instance of the ContainerInstanceManagementClient class.
@param credentials Credentials needed for the client to connect to Azure.
@param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call.
@param [options] The parameter options
Initializes a new instance of the ContainerInstanceManagementClient class . @param credentials Credentials needed for the client to connect to Azure . @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription . The subscription ID forms part of the URI for every service call . @param [ options ] The parameter options
function ContainerInstanceManagementClientContext(credentials, subscriptionId, options) {
            var _this = this;
            if (credentials == undefined) {
                throw new Error('\'credentials\' cannot be null.');
            }
            if (subscriptionId == undefined) {
                throw new Error('\'subscriptionId\' cannot be null.');
            }
            if (!options) {
                options = {};
            }
            if (!options.userAgent) {
                var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
                options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
            }
            _this = _super.call(this, credentials, options) || this;
            _this.apiVersion = '2019-12-01';
            _this.acceptLanguage = 'en-US';
            _this.longRunningOperationRetryTimeout = 30;
            _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
            _this.requestContentType = "application/json; charset=utf-8";
            _this.credentials = credentials;
            _this.subscriptionId = subscriptionId;
            if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
                _this.acceptLanguage = options.acceptLanguage;
            }
            if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
                _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
            }
            return _this;
        }
function ContainerInstanceManagementClientContext ( credentials , subscriptionId , options ) { var _this = this ; if ( credentials == undefined ) { throw new Error ( '\'credentials\' cannot be null.' ) ; } if ( subscriptionId == undefined ) { throw new Error ( '\'subscriptionId\' cannot be null.' ) ; } if ( ! options ) { options = { } ; } if ( ! options . userAgent ) { var defaultUserAgent = msRestAzure . getDefaultUserAgentValue ( ) ; options . userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent ; } _this = _super . call ( this , credentials , options ) || this ; _this . apiVersion = '2019-12-01' ; _this . acceptLanguage = 'en-US' ; _this . longRunningOperationRetryTimeout = 30 ; _this . baseUri = options . baseUri || _this . baseUri || "https://management.azure.com" ; _this . requestContentType = "application/json; charset=utf-8" ; _this . credentials = credentials ; _this . subscriptionId = subscriptionId ; if ( options . acceptLanguage !== null && options . acceptLanguage !== undefined ) { _this . acceptLanguage = options . acceptLanguage ; } if ( options . longRunningOperationRetryTimeout !== null && options . longRunningOperationRetryTimeout !== undefined ) { _this . longRunningOperationRetryTimeout = options . longRunningOperationRetryTimeout ; } return _this ; }
Initializes a new instance of the ContainerInstanceManagementClient class.
Initializes a new instance of the ContainerInstanceManagementClient class .