Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/arm-analysisservices

Package Overview
Dependencies
Maintainers
4
Versions
283
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/arm-analysisservices - npm Package Compare versions

Comparing version 4.1.4-alpha.20231016.1 to 4.1.4-alpha.20231023.1

11

dist-esm/samples-dev/serversListByResourceGroupSample.js

@@ -28,12 +28,7 @@ /*

try {
for (var _d = true, _e = __asyncValues(client.servers.listByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
for (var _d = true, _e = __asyncValues(client.servers.listByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
_c = _f.value;
_d = false;
try {
let item = _c;
resArray.push(item);
}
finally {
_d = true;
}
let item = _c;
resArray.push(item);
}

@@ -40,0 +35,0 @@ }

@@ -27,12 +27,7 @@ /*

try {
for (var _d = true, _e = __asyncValues(client.servers.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
for (var _d = true, _e = __asyncValues(client.servers.list()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
_c = _f.value;
_d = false;
try {
let item = _c;
resArray.push(item);
}
finally {
_d = true;
}
let item = _c;
resArray.push(item);
}

@@ -39,0 +34,0 @@ }

@@ -68,12 +68,7 @@ /*

try {
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
_c = _f.value;
_d = false;
try {
const page = _c;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
finally {
_d = true;
}
const page = _c;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}

@@ -80,0 +75,0 @@ }

@@ -58,12 +58,7 @@ /*

try {
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
_c = _f.value;
_d = false;
try {
const page = _c;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
finally {
_d = true;
}
const page = _c;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}

@@ -112,12 +107,7 @@ }

try {
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
_c = _f.value;
_d = false;
try {
const page = _c;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
finally {
_d = true;
}
const page = _c;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}

@@ -124,0 +114,0 @@ }

@@ -1,1 +0,1 @@

"use strict";var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespaceDefault(i){var a=Object.create(null);return i&&Object.keys(i).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return i[e]}}))}),a.default=i,Object.freeze(a)}var coreClient__namespace=_interopNamespaceDefault(coreClient),coreRestPipeline__namespace=_interopNamespaceDefault(coreRestPipeline);const pageMap=new WeakMap;function getContinuationToken(e){return"object"!=typeof e||null===e||null==(e=pageMap.get(e))?void 0:e.continuationToken}function setContinuationToken(e,r){var i;"object"==typeof e&&null!==e&&r&&((i=null!=(i=pageMap.get(e))?i:{}).continuationToken=r,pageMap.set(e,i))}exports.KnownState=void 0,function(e){e.Deleting="Deleting",e.Succeeded="Succeeded",e.Failed="Failed",e.Paused="Paused",e.Suspended="Suspended",e.Provisioning="Provisioning",e.Updating="Updating",e.Suspending="Suspending",e.Pausing="Pausing",e.Resuming="Resuming",e.Preparing="Preparing",e.Scaling="Scaling"}(exports.KnownState||(exports.KnownState={})),exports.KnownProvisioningState=void 0,function(e){e.Deleting="Deleting",e.Succeeded="Succeeded",e.Failed="Failed",e.Paused="Paused",e.Suspended="Suspended",e.Provisioning="Provisioning",e.Updating="Updating",e.Suspending="Suspending",e.Pausing="Pausing",e.Resuming="Resuming",e.Preparing="Preparing",e.Scaling="Scaling"}(exports.KnownProvisioningState||(exports.KnownProvisioningState={})),exports.KnownSkuTier=void 0,function(e){e.Development="Development",e.Basic="Basic",e.Standard="Standard"}(exports.KnownSkuTier||(exports.KnownSkuTier={}));const ResourceSku={type:{name:"Composite",className:"ResourceSku",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},tier:{serializedName:"tier",type:{name:"String"}},capacity:{defaultValue:1,constraints:{InclusiveMaximum:8,InclusiveMinimum:1},serializedName:"capacity",type:{name:"Number"}}}}},AnalysisServicesServerMutableProperties={type:{name:"Composite",className:"AnalysisServicesServerMutableProperties",modelProperties:{asAdministrators:{serializedName:"asAdministrators",type:{name:"Composite",className:"ServerAdministrators"}},backupBlobContainerUri:{serializedName:"backupBlobContainerUri",type:{name:"String"}},gatewayDetails:{serializedName:"gatewayDetails",type:{name:"Composite",className:"GatewayDetails"}},ipV4FirewallSettings:{serializedName:"ipV4FirewallSettings",type:{name:"Composite",className:"IPv4FirewallSettings"}},querypoolConnectionMode:{defaultValue:"All",serializedName:"querypoolConnectionMode",type:{name:"Enum",allowedValues:["All","ReadOnly"]}},managedMode:{defaultValue:"1",serializedName:"managedMode",type:{name:"Enum",allowedValues:[0,1]}},serverMonitorMode:{defaultValue:"1",serializedName:"serverMonitorMode",type:{name:"Enum",allowedValues:[0,1]}}}}},ServerAdministrators={type:{name:"Composite",className:"ServerAdministrators",modelProperties:{members:{serializedName:"members",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},GatewayDetails={type:{name:"Composite",className:"GatewayDetails",modelProperties:{gatewayResourceId:{serializedName:"gatewayResourceId",type:{name:"String"}},gatewayObjectId:{serializedName:"gatewayObjectId",readOnly:!0,type:{name:"String"}},dmtsClusterUri:{serializedName:"dmtsClusterUri",readOnly:!0,type:{name:"String"}}}}},IPv4FirewallSettings={type:{name:"Composite",className:"IPv4FirewallSettings",modelProperties:{firewallRules:{serializedName:"firewallRules",type:{name:"Sequence",element:{type:{name:"Composite",className:"IPv4FirewallRule"}}}},enablePowerBIService:{serializedName:"enablePowerBIService",type:{name:"Boolean"}}}}},IPv4FirewallRule={type:{name:"Composite",className:"IPv4FirewallRule",modelProperties:{firewallRuleName:{serializedName:"firewallRuleName",type:{name:"String"}},rangeStart:{serializedName:"rangeStart",type:{name:"String"}},rangeEnd:{serializedName:"rangeEnd",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",required:!0,type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"ResourceSku"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetail"}}}}},ErrorDetail={type:{name:"Composite",className:"ErrorDetail",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}},subCode:{serializedName:"subCode",readOnly:!0,type:{name:"Number"}},httpStatusCode:{serializedName:"httpStatusCode",readOnly:!0,type:{name:"Number"}},timeStamp:{serializedName:"timeStamp",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorDetail"}}}},additionalInfo:{serializedName:"additionalInfo",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorAdditionalInfo"}}}}}}},ErrorAdditionalInfo={type:{name:"Composite",className:"ErrorAdditionalInfo",modelProperties:{type:{serializedName:"type",readOnly:!0,type:{name:"String"}},info:{serializedName:"info",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},AnalysisServicesServerUpdateParameters={type:{name:"Composite",className:"AnalysisServicesServerUpdateParameters",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"ResourceSku"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},asAdministrators:{serializedName:"properties.asAdministrators",type:{name:"Composite",className:"ServerAdministrators"}},backupBlobContainerUri:{serializedName:"properties.backupBlobContainerUri",type:{name:"String"}},gatewayDetails:{serializedName:"properties.gatewayDetails",type:{name:"Composite",className:"GatewayDetails"}},ipV4FirewallSettings:{serializedName:"properties.ipV4FirewallSettings",type:{name:"Composite",className:"IPv4FirewallSettings"}},querypoolConnectionMode:{defaultValue:"All",serializedName:"properties.querypoolConnectionMode",type:{name:"Enum",allowedValues:["All","ReadOnly"]}},managedMode:{defaultValue:"1",serializedName:"properties.managedMode",type:{name:"Enum",allowedValues:[0,1]}},serverMonitorMode:{defaultValue:"1",serializedName:"properties.serverMonitorMode",type:{name:"Enum",allowedValues:[0,1]}}}}},AnalysisServicesServers={type:{name:"Composite",className:"AnalysisServicesServers",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"AnalysisServicesServer"}}}}}}},SkuEnumerationForNewResourceResult={type:{name:"Composite",className:"SkuEnumerationForNewResourceResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ResourceSku"}}}}}}},SkuEnumerationForExistingResourceResult={type:{name:"Composite",className:"SkuEnumerationForExistingResourceResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"SkuDetailsForExistingResource"}}}}}}},SkuDetailsForExistingResource={type:{name:"Composite",className:"SkuDetailsForExistingResource",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"ResourceSku"}},resourceType:{serializedName:"resourceType",type:{name:"String"}}}}},GatewayListStatusLive={type:{name:"Composite",className:"GatewayListStatusLive",modelProperties:{status:{defaultValue:0,isConstant:!0,serializedName:"status",type:{name:"Number"}}}}},GatewayListStatusError={type:{name:"Composite",className:"GatewayListStatusError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetail"}}}}},CheckServerNameAvailabilityParameters={type:{name:"Composite",className:"CheckServerNameAvailabilityParameters",modelProperties:{name:{constraints:{Pattern:new RegExp("^[a-z][a-z0-9]*$"),MaxLength:63,MinLength:3},serializedName:"name",type:{name:"String"}},type:{defaultValue:"Microsoft.AnalysisServices/servers",serializedName:"type",type:{name:"String"}}}}},CheckServerNameAvailabilityResult={type:{name:"Composite",className:"CheckServerNameAvailabilityResult",modelProperties:{nameAvailable:{serializedName:"nameAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},OperationStatus={type:{name:"Composite",className:"OperationStatus",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},startTime:{serializedName:"startTime",type:{name:"String"}},endTime:{serializedName:"endTime",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetail"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",readOnly:!0,type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"OperationProperties"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",readOnly:!0,type:{name:"String"}},resource:{serializedName:"resource",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}}}}},OperationProperties={type:{name:"Composite",className:"OperationProperties",modelProperties:{serviceSpecification:{serializedName:"serviceSpecification",type:{name:"Composite",className:"OperationPropertiesServiceSpecification"}}}}},OperationPropertiesServiceSpecification={type:{name:"Composite",className:"OperationPropertiesServiceSpecification",modelProperties:{metricSpecifications:{serializedName:"metricSpecifications",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricSpecifications"}}}},logSpecifications:{serializedName:"logSpecifications",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"LogSpecifications"}}}}}}},MetricSpecifications={type:{name:"Composite",className:"MetricSpecifications",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},displayDescription:{serializedName:"displayDescription",readOnly:!0,type:{name:"String"}},unit:{serializedName:"unit",readOnly:!0,type:{name:"String"}},aggregationType:{serializedName:"aggregationType",readOnly:!0,type:{name:"String"}},dimensions:{serializedName:"dimensions",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricDimensions"}}}}}}},MetricDimensions={type:{name:"Composite",className:"MetricDimensions",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}}}}},LogSpecifications={type:{name:"Composite",className:"LogSpecifications",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},blobDuration:{serializedName:"blobDuration",readOnly:!0,type:{name:"String"}}}}},AnalysisServicesServerProperties={type:{name:"Composite",className:"AnalysisServicesServerProperties",modelProperties:Object.assign(Object.assign({},AnalysisServicesServerMutableProperties.type.modelProperties),{state:{serializedName:"state",readOnly:!0,type:{name:"String"}},provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},serverFullName:{serializedName:"serverFullName",readOnly:!0,type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"ResourceSku"}}})}},AnalysisServicesServer={type:{name:"Composite",className:"AnalysisServicesServer",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{asAdministrators:{serializedName:"properties.asAdministrators",type:{name:"Composite",className:"ServerAdministrators"}},backupBlobContainerUri:{serializedName:"properties.backupBlobContainerUri",type:{name:"String"}},gatewayDetails:{serializedName:"properties.gatewayDetails",type:{name:"Composite",className:"GatewayDetails"}},ipV4FirewallSettings:{serializedName:"properties.ipV4FirewallSettings",type:{name:"Composite",className:"IPv4FirewallSettings"}},querypoolConnectionMode:{defaultValue:"All",serializedName:"properties.querypoolConnectionMode",type:{name:"Enum",allowedValues:["All","ReadOnly"]}},managedMode:{defaultValue:"1",serializedName:"properties.managedMode",type:{name:"Enum",allowedValues:[0,1]}},serverMonitorMode:{defaultValue:"1",serializedName:"properties.serverMonitorMode",type:{name:"Enum",allowedValues:[0,1]}},state:{serializedName:"properties.state",readOnly:!0,type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},serverFullName:{serializedName:"properties.serverFullName",readOnly:!0,type:{name:"String"}},skuPropertiesSku:{serializedName:"properties.sku",type:{name:"Composite",className:"ResourceSku"}}})}};var Mappers=Object.freeze({__proto__:null,AnalysisServicesServer:AnalysisServicesServer,AnalysisServicesServerMutableProperties:AnalysisServicesServerMutableProperties,AnalysisServicesServerProperties:AnalysisServicesServerProperties,AnalysisServicesServerUpdateParameters:AnalysisServicesServerUpdateParameters,AnalysisServicesServers:AnalysisServicesServers,CheckServerNameAvailabilityParameters:CheckServerNameAvailabilityParameters,CheckServerNameAvailabilityResult:CheckServerNameAvailabilityResult,ErrorAdditionalInfo:ErrorAdditionalInfo,ErrorDetail:ErrorDetail,ErrorResponse:ErrorResponse,GatewayDetails:GatewayDetails,GatewayListStatusError:GatewayListStatusError,GatewayListStatusLive:GatewayListStatusLive,IPv4FirewallRule:IPv4FirewallRule,IPv4FirewallSettings:IPv4FirewallSettings,LogSpecifications:LogSpecifications,MetricDimensions:MetricDimensions,MetricSpecifications:MetricSpecifications,Operation:Operation,OperationDisplay:OperationDisplay,OperationListResult:OperationListResult,OperationProperties:OperationProperties,OperationPropertiesServiceSpecification:OperationPropertiesServiceSpecification,OperationStatus:OperationStatus,Resource:Resource,ResourceSku:ResourceSku,ServerAdministrators:ServerAdministrators,SkuDetailsForExistingResource:SkuDetailsForExistingResource,SkuEnumerationForExistingResourceResult:SkuEnumerationForExistingResourceResult,SkuEnumerationForNewResourceResult:SkuEnumerationForNewResourceResult});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},serverName={parameterPath:"serverName",mapper:{constraints:{Pattern:new RegExp("^[a-z][a-z0-9]*$"),MaxLength:63,MinLength:3},serializedName:"serverName",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2017-08-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},serverParameters={parameterPath:"serverParameters",mapper:AnalysisServicesServer},serverUpdateParameters={parameterPath:"serverUpdateParameters",mapper:AnalysisServicesServerUpdateParameters},serverParameters1={parameterPath:"serverParameters",mapper:CheckServerNameAvailabilityParameters},location={parameterPath:"location",mapper:{serializedName:"location",required:!0,type:{name:"String"}}},operationId={parameterPath:"operationId",mapper:{serializedName:"operationId",required:!0,type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class LroImpl{constructor(e,r,i,a=i.path,s=i.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=i,this.requestPath=a,this.requestMethod=s}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(r){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:r,httpMethod:"GET"}))})}}class ServersImpl{constructor(e){this.client=e}listByResourceGroup(r,i){const e=this.listByResourceGroupPagingAll(r,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(r,i,e)}}}listByResourceGroupPagingPage(r,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,i));yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(o,l){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,i,a;try{for(var s,t=!0,n=tslib.__asyncValues(this.listByResourceGroupPagingPage(o,l));!(e=(s=yield tslib.__await(n.next())).done);){a=s.value,t=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{t=!0}}}catch(e){r={error:e}}finally{try{t||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(r)throw r.error}}})}list(r){const e=this.listPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,e)}}}listPagingPage(r,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r));yield yield tslib.__await(e.value||[])})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,i,a;try{for(var s,t=!0,n=tslib.__asyncValues(this.listPagingPage(o));!(e=(s=yield tslib.__await(n.next())).done);){a=s.value,t=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{t=!0}}}catch(e){r={error:e}}finally{try{t||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(r)throw r.error}}})}getDetails(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:i},getDetailsOperationSpec)}beginCreate(r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,serverParameters:a,options:s},createOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,i,a)).pollUntilDone()})}beginDelete(r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,options:a},deleteOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,i)).pollUntilDone()})}beginUpdate(r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,serverUpdateParameters:a,options:s},updateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,r,i,a)).pollUntilDone()})}beginSuspend(r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,options:a},suspendOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginSuspendAndWait(e,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginSuspend(e,r,i)).pollUntilDone()})}beginResume(r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,options:a},resumeOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginResumeAndWait(e,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginResume(e,r,i)).pollUntilDone()})}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}listSkusForNew(e){return this.client.sendOperationRequest({options:e},listSkusForNewOperationSpec)}listSkusForExisting(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:i},listSkusForExistingOperationSpec)}listGatewayStatus(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:i},listGatewayStatusOperationSpec)}dissociateGateway(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:i},dissociateGatewayOperationSpec)}checkNameAvailability(e,r,i){return this.client.sendOperationRequest({location:e,serverParameters:r,options:i},checkNameAvailabilityOperationSpec)}listOperationResults(e,r,i){return this.client.sendOperationRequest({location:e,operationId:r,options:i},listOperationResultsOperationSpec)}listOperationStatuses(e,r,i){return this.client.sendOperationRequest({location:e,operationId:r,options:i},listOperationStatusesOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),getDetailsOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",httpMethod:"GET",responses:{200:{bodyMapper:AnalysisServicesServer},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},createOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",httpMethod:"PUT",responses:{200:{bodyMapper:AnalysisServicesServer},201:{bodyMapper:AnalysisServicesServer},202:{bodyMapper:AnalysisServicesServer},204:{bodyMapper:AnalysisServicesServer},default:{bodyMapper:ErrorResponse}},requestBody:serverParameters,queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",httpMethod:"PATCH",responses:{200:{bodyMapper:AnalysisServicesServer},201:{bodyMapper:AnalysisServicesServer},202:{bodyMapper:AnalysisServicesServer},204:{bodyMapper:AnalysisServicesServer},default:{bodyMapper:ErrorResponse}},requestBody:serverUpdateParameters,queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},suspendOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/suspend",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},resumeOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/resume",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers",httpMethod:"GET",responses:{200:{bodyMapper:AnalysisServicesServers},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,subscriptionId],headerParameters:[accept],serializer:serializer$1},listOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/servers",httpMethod:"GET",responses:{200:{bodyMapper:AnalysisServicesServers},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$1},listSkusForNewOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/skus",httpMethod:"GET",responses:{200:{bodyMapper:SkuEnumerationForNewResourceResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$1},listSkusForExistingOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/skus",httpMethod:"GET",responses:{200:{bodyMapper:SkuEnumerationForExistingResourceResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},listGatewayStatusOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/listGatewayStatus",httpMethod:"POST",responses:{200:{bodyMapper:GatewayListStatusLive},default:{bodyMapper:GatewayListStatusError}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},dissociateGatewayOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/dissociateGateway",httpMethod:"POST",responses:{200:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:CheckServerNameAvailabilityResult},default:{bodyMapper:ErrorResponse}},requestBody:serverParameters1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,location],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},listOperationResultsOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/operationresults/{operationId}",httpMethod:"GET",responses:{200:{},202:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,location,operationId],headerParameters:[accept],serializer:serializer$1},listOperationStatusesOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/operationstatuses/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationStatus},202:{bodyMapper:OperationStatus},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,location,operationId],headerParameters:[accept],serializer:serializer$1};class OperationsImpl{constructor(e){this.client=e}list(r){const e=this.listPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,e)}}}listPagingPage(s,t){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==t?void 0:t.continuationToken;var i;for(r||(setContinuationToken(i=(e=yield tslib.__await(this._list(s))).value||[],r=e.nextLink),yield yield tslib.__await(i));r;){e=yield tslib.__await(this._listNext(r,s)),r=e.nextLink;var a=e.value||[];setContinuationToken(a,r),yield yield tslib.__await(a)}})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,i,a;try{for(var s,t=!0,n=tslib.__asyncValues(this.listPagingPage(o));!(e=(s=yield tslib.__await(n.next())).done);){a=s.value,t=!1;try{yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}finally{t=!0}}}catch(e){r={error:e}}finally{try{t||e||!(i=n.return)||(yield tslib.__await(i.call(n)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.AnalysisServices/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer};class AzureAnalysisServices extends coreClient__namespace.ServiceClient{constructor(e,r,i){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var a,s="azsdk-js-arm-analysisservices/4.1.4",s=(i=i||{}).userAgentOptions&&i.userAgentOptions.userAgentPrefix?i.userAgentOptions.userAgentPrefix+" "+s:s,s=Object.assign(Object.assign(Object.assign({},{requestContentType:"application/json; charset=utf-8",credential:e}),i),{userAgentOptions:{userAgentPrefix:s},endpoint:null!=(s=null!=(s=i.endpoint)?s:i.baseUri)?s:"https://management.azure.com"});super(s);let t=!1;null!=i&&i.pipeline&&0<i.pipeline.getOrderedPolicies().length&&(a=i.pipeline.getOrderedPolicies(),t=a.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)),i&&i.pipeline&&0!=i.pipeline.getOrderedPolicies().length&&t||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:null!=(a=s.credentialScopes)?a:s.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=r,this.$host=i.$host||"https://management.azure.com",this.apiVersion=i.apiVersion||"2017-08-01",this.servers=new ServersImpl(this),this.operations=new OperationsImpl(this),this.addCustomApiVersionPolicy(i.apiVersion)}addCustomApiVersionPolicy(s){s&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(i,a){return tslib.__awaiter(this,void 0,void 0,function*(){var e,r=i.url.split("?");return 1<r.length&&(e=r[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+s:e),i.url=r[0]+"?"+e.join("&")),a(i)})}})}}exports.AzureAnalysisServices=AzureAnalysisServices,exports.getContinuationToken=getContinuationToken;
"use strict";var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespaceDefault(i){var a=Object.create(null);return i&&Object.keys(i).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return i[e]}}))}),a.default=i,Object.freeze(a)}var coreClient__namespace=_interopNamespaceDefault(coreClient),coreRestPipeline__namespace=_interopNamespaceDefault(coreRestPipeline);const pageMap=new WeakMap;function getContinuationToken(e){return"object"!=typeof e||null===e||null==(e=pageMap.get(e))?void 0:e.continuationToken}function setContinuationToken(e,r){var i;"object"==typeof e&&null!==e&&r&&((i=null!=(i=pageMap.get(e))?i:{}).continuationToken=r,pageMap.set(e,i))}exports.KnownState=void 0,function(e){e.Deleting="Deleting",e.Succeeded="Succeeded",e.Failed="Failed",e.Paused="Paused",e.Suspended="Suspended",e.Provisioning="Provisioning",e.Updating="Updating",e.Suspending="Suspending",e.Pausing="Pausing",e.Resuming="Resuming",e.Preparing="Preparing",e.Scaling="Scaling"}(exports.KnownState||(exports.KnownState={})),exports.KnownProvisioningState=void 0,function(e){e.Deleting="Deleting",e.Succeeded="Succeeded",e.Failed="Failed",e.Paused="Paused",e.Suspended="Suspended",e.Provisioning="Provisioning",e.Updating="Updating",e.Suspending="Suspending",e.Pausing="Pausing",e.Resuming="Resuming",e.Preparing="Preparing",e.Scaling="Scaling"}(exports.KnownProvisioningState||(exports.KnownProvisioningState={})),exports.KnownSkuTier=void 0,function(e){e.Development="Development",e.Basic="Basic",e.Standard="Standard"}(exports.KnownSkuTier||(exports.KnownSkuTier={}));const ResourceSku={type:{name:"Composite",className:"ResourceSku",modelProperties:{name:{serializedName:"name",required:!0,type:{name:"String"}},tier:{serializedName:"tier",type:{name:"String"}},capacity:{defaultValue:1,constraints:{InclusiveMaximum:8,InclusiveMinimum:1},serializedName:"capacity",type:{name:"Number"}}}}},AnalysisServicesServerMutableProperties={type:{name:"Composite",className:"AnalysisServicesServerMutableProperties",modelProperties:{asAdministrators:{serializedName:"asAdministrators",type:{name:"Composite",className:"ServerAdministrators"}},backupBlobContainerUri:{serializedName:"backupBlobContainerUri",type:{name:"String"}},gatewayDetails:{serializedName:"gatewayDetails",type:{name:"Composite",className:"GatewayDetails"}},ipV4FirewallSettings:{serializedName:"ipV4FirewallSettings",type:{name:"Composite",className:"IPv4FirewallSettings"}},querypoolConnectionMode:{defaultValue:"All",serializedName:"querypoolConnectionMode",type:{name:"Enum",allowedValues:["All","ReadOnly"]}},managedMode:{defaultValue:"1",serializedName:"managedMode",type:{name:"Enum",allowedValues:[0,1]}},serverMonitorMode:{defaultValue:"1",serializedName:"serverMonitorMode",type:{name:"Enum",allowedValues:[0,1]}}}}},ServerAdministrators={type:{name:"Composite",className:"ServerAdministrators",modelProperties:{members:{serializedName:"members",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},GatewayDetails={type:{name:"Composite",className:"GatewayDetails",modelProperties:{gatewayResourceId:{serializedName:"gatewayResourceId",type:{name:"String"}},gatewayObjectId:{serializedName:"gatewayObjectId",readOnly:!0,type:{name:"String"}},dmtsClusterUri:{serializedName:"dmtsClusterUri",readOnly:!0,type:{name:"String"}}}}},IPv4FirewallSettings={type:{name:"Composite",className:"IPv4FirewallSettings",modelProperties:{firewallRules:{serializedName:"firewallRules",type:{name:"Sequence",element:{type:{name:"Composite",className:"IPv4FirewallRule"}}}},enablePowerBIService:{serializedName:"enablePowerBIService",type:{name:"Boolean"}}}}},IPv4FirewallRule={type:{name:"Composite",className:"IPv4FirewallRule",modelProperties:{firewallRuleName:{serializedName:"firewallRuleName",type:{name:"String"}},rangeStart:{serializedName:"rangeStart",type:{name:"String"}},rangeEnd:{serializedName:"rangeEnd",type:{name:"String"}}}}},Resource={type:{name:"Composite",className:"Resource",modelProperties:{id:{serializedName:"id",readOnly:!0,type:{name:"String"}},name:{serializedName:"name",readOnly:!0,type:{name:"String"}},type:{serializedName:"type",readOnly:!0,type:{name:"String"}},location:{serializedName:"location",required:!0,type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"ResourceSku"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},ErrorResponse={type:{name:"Composite",className:"ErrorResponse",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetail"}}}}},ErrorDetail={type:{name:"Composite",className:"ErrorDetail",modelProperties:{code:{serializedName:"code",readOnly:!0,type:{name:"String"}},message:{serializedName:"message",readOnly:!0,type:{name:"String"}},target:{serializedName:"target",readOnly:!0,type:{name:"String"}},subCode:{serializedName:"subCode",readOnly:!0,type:{name:"Number"}},httpStatusCode:{serializedName:"httpStatusCode",readOnly:!0,type:{name:"Number"}},timeStamp:{serializedName:"timeStamp",readOnly:!0,type:{name:"String"}},details:{serializedName:"details",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorDetail"}}}},additionalInfo:{serializedName:"additionalInfo",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"ErrorAdditionalInfo"}}}}}}},ErrorAdditionalInfo={type:{name:"Composite",className:"ErrorAdditionalInfo",modelProperties:{type:{serializedName:"type",readOnly:!0,type:{name:"String"}},info:{serializedName:"info",readOnly:!0,type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},AnalysisServicesServerUpdateParameters={type:{name:"Composite",className:"AnalysisServicesServerUpdateParameters",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"ResourceSku"}},tags:{serializedName:"tags",type:{name:"Dictionary",value:{type:{name:"String"}}}},asAdministrators:{serializedName:"properties.asAdministrators",type:{name:"Composite",className:"ServerAdministrators"}},backupBlobContainerUri:{serializedName:"properties.backupBlobContainerUri",type:{name:"String"}},gatewayDetails:{serializedName:"properties.gatewayDetails",type:{name:"Composite",className:"GatewayDetails"}},ipV4FirewallSettings:{serializedName:"properties.ipV4FirewallSettings",type:{name:"Composite",className:"IPv4FirewallSettings"}},querypoolConnectionMode:{defaultValue:"All",serializedName:"properties.querypoolConnectionMode",type:{name:"Enum",allowedValues:["All","ReadOnly"]}},managedMode:{defaultValue:"1",serializedName:"properties.managedMode",type:{name:"Enum",allowedValues:[0,1]}},serverMonitorMode:{defaultValue:"1",serializedName:"properties.serverMonitorMode",type:{name:"Enum",allowedValues:[0,1]}}}}},AnalysisServicesServers={type:{name:"Composite",className:"AnalysisServicesServers",modelProperties:{value:{serializedName:"value",required:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"AnalysisServicesServer"}}}}}}},SkuEnumerationForNewResourceResult={type:{name:"Composite",className:"SkuEnumerationForNewResourceResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"ResourceSku"}}}}}}},SkuEnumerationForExistingResourceResult={type:{name:"Composite",className:"SkuEnumerationForExistingResourceResult",modelProperties:{value:{serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"SkuDetailsForExistingResource"}}}}}}},SkuDetailsForExistingResource={type:{name:"Composite",className:"SkuDetailsForExistingResource",modelProperties:{sku:{serializedName:"sku",type:{name:"Composite",className:"ResourceSku"}},resourceType:{serializedName:"resourceType",type:{name:"String"}}}}},GatewayListStatusLive={type:{name:"Composite",className:"GatewayListStatusLive",modelProperties:{status:{defaultValue:0,isConstant:!0,serializedName:"status",type:{name:"Number"}}}}},GatewayListStatusError={type:{name:"Composite",className:"GatewayListStatusError",modelProperties:{error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetail"}}}}},CheckServerNameAvailabilityParameters={type:{name:"Composite",className:"CheckServerNameAvailabilityParameters",modelProperties:{name:{constraints:{Pattern:new RegExp("^[a-z][a-z0-9]*$"),MaxLength:63,MinLength:3},serializedName:"name",type:{name:"String"}},type:{defaultValue:"Microsoft.AnalysisServices/servers",serializedName:"type",type:{name:"String"}}}}},CheckServerNameAvailabilityResult={type:{name:"Composite",className:"CheckServerNameAvailabilityResult",modelProperties:{nameAvailable:{serializedName:"nameAvailable",type:{name:"Boolean"}},reason:{serializedName:"reason",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},OperationStatus={type:{name:"Composite",className:"OperationStatus",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},startTime:{serializedName:"startTime",type:{name:"String"}},endTime:{serializedName:"endTime",type:{name:"String"}},status:{serializedName:"status",type:{name:"String"}},error:{serializedName:"error",type:{name:"Composite",className:"ErrorDetail"}}}}},OperationListResult={type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{serializedName:"value",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}},nextLink:{serializedName:"nextLink",readOnly:!0,type:{name:"String"}}}}},Operation={type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}},origin:{serializedName:"origin",readOnly:!0,type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"OperationProperties"}}}}},OperationDisplay={type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",readOnly:!0,type:{name:"String"}},resource:{serializedName:"resource",readOnly:!0,type:{name:"String"}},operation:{serializedName:"operation",readOnly:!0,type:{name:"String"}},description:{serializedName:"description",readOnly:!0,type:{name:"String"}}}}},OperationProperties={type:{name:"Composite",className:"OperationProperties",modelProperties:{serviceSpecification:{serializedName:"serviceSpecification",type:{name:"Composite",className:"OperationPropertiesServiceSpecification"}}}}},OperationPropertiesServiceSpecification={type:{name:"Composite",className:"OperationPropertiesServiceSpecification",modelProperties:{metricSpecifications:{serializedName:"metricSpecifications",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricSpecifications"}}}},logSpecifications:{serializedName:"logSpecifications",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"LogSpecifications"}}}}}}},MetricSpecifications={type:{name:"Composite",className:"MetricSpecifications",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},displayDescription:{serializedName:"displayDescription",readOnly:!0,type:{name:"String"}},unit:{serializedName:"unit",readOnly:!0,type:{name:"String"}},aggregationType:{serializedName:"aggregationType",readOnly:!0,type:{name:"String"}},dimensions:{serializedName:"dimensions",readOnly:!0,type:{name:"Sequence",element:{type:{name:"Composite",className:"MetricDimensions"}}}}}}},MetricDimensions={type:{name:"Composite",className:"MetricDimensions",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}}}}},LogSpecifications={type:{name:"Composite",className:"LogSpecifications",modelProperties:{name:{serializedName:"name",readOnly:!0,type:{name:"String"}},displayName:{serializedName:"displayName",readOnly:!0,type:{name:"String"}},blobDuration:{serializedName:"blobDuration",readOnly:!0,type:{name:"String"}}}}},AnalysisServicesServerProperties={type:{name:"Composite",className:"AnalysisServicesServerProperties",modelProperties:Object.assign(Object.assign({},AnalysisServicesServerMutableProperties.type.modelProperties),{state:{serializedName:"state",readOnly:!0,type:{name:"String"}},provisioningState:{serializedName:"provisioningState",readOnly:!0,type:{name:"String"}},serverFullName:{serializedName:"serverFullName",readOnly:!0,type:{name:"String"}},sku:{serializedName:"sku",type:{name:"Composite",className:"ResourceSku"}}})}},AnalysisServicesServer={type:{name:"Composite",className:"AnalysisServicesServer",modelProperties:Object.assign(Object.assign({},Resource.type.modelProperties),{asAdministrators:{serializedName:"properties.asAdministrators",type:{name:"Composite",className:"ServerAdministrators"}},backupBlobContainerUri:{serializedName:"properties.backupBlobContainerUri",type:{name:"String"}},gatewayDetails:{serializedName:"properties.gatewayDetails",type:{name:"Composite",className:"GatewayDetails"}},ipV4FirewallSettings:{serializedName:"properties.ipV4FirewallSettings",type:{name:"Composite",className:"IPv4FirewallSettings"}},querypoolConnectionMode:{defaultValue:"All",serializedName:"properties.querypoolConnectionMode",type:{name:"Enum",allowedValues:["All","ReadOnly"]}},managedMode:{defaultValue:"1",serializedName:"properties.managedMode",type:{name:"Enum",allowedValues:[0,1]}},serverMonitorMode:{defaultValue:"1",serializedName:"properties.serverMonitorMode",type:{name:"Enum",allowedValues:[0,1]}},state:{serializedName:"properties.state",readOnly:!0,type:{name:"String"}},provisioningState:{serializedName:"properties.provisioningState",readOnly:!0,type:{name:"String"}},serverFullName:{serializedName:"properties.serverFullName",readOnly:!0,type:{name:"String"}},skuPropertiesSku:{serializedName:"properties.sku",type:{name:"Composite",className:"ResourceSku"}}})}};var Mappers=Object.freeze({__proto__:null,AnalysisServicesServer:AnalysisServicesServer,AnalysisServicesServerMutableProperties:AnalysisServicesServerMutableProperties,AnalysisServicesServerProperties:AnalysisServicesServerProperties,AnalysisServicesServerUpdateParameters:AnalysisServicesServerUpdateParameters,AnalysisServicesServers:AnalysisServicesServers,CheckServerNameAvailabilityParameters:CheckServerNameAvailabilityParameters,CheckServerNameAvailabilityResult:CheckServerNameAvailabilityResult,ErrorAdditionalInfo:ErrorAdditionalInfo,ErrorDetail:ErrorDetail,ErrorResponse:ErrorResponse,GatewayDetails:GatewayDetails,GatewayListStatusError:GatewayListStatusError,GatewayListStatusLive:GatewayListStatusLive,IPv4FirewallRule:IPv4FirewallRule,IPv4FirewallSettings:IPv4FirewallSettings,LogSpecifications:LogSpecifications,MetricDimensions:MetricDimensions,MetricSpecifications:MetricSpecifications,Operation:Operation,OperationDisplay:OperationDisplay,OperationListResult:OperationListResult,OperationProperties:OperationProperties,OperationPropertiesServiceSpecification:OperationPropertiesServiceSpecification,OperationStatus:OperationStatus,Resource:Resource,ResourceSku:ResourceSku,ServerAdministrators:ServerAdministrators,SkuDetailsForExistingResource:SkuDetailsForExistingResource,SkuEnumerationForExistingResourceResult:SkuEnumerationForExistingResourceResult,SkuEnumerationForNewResourceResult:SkuEnumerationForNewResourceResult});const accept={parameterPath:"accept",mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},$host={parameterPath:"$host",mapper:{serializedName:"$host",required:!0,type:{name:"String"}},skipEncoding:!0},resourceGroupName={parameterPath:"resourceGroupName",mapper:{constraints:{Pattern:new RegExp("^[-\\w\\._\\(\\)]+$"),MaxLength:90,MinLength:1},serializedName:"resourceGroupName",required:!0,type:{name:"String"}}},serverName={parameterPath:"serverName",mapper:{constraints:{Pattern:new RegExp("^[a-z][a-z0-9]*$"),MaxLength:63,MinLength:3},serializedName:"serverName",required:!0,type:{name:"String"}}},apiVersion={parameterPath:"apiVersion",mapper:{defaultValue:"2017-08-01",isConstant:!0,serializedName:"api-version",type:{name:"String"}}},subscriptionId={parameterPath:"subscriptionId",mapper:{serializedName:"subscriptionId",required:!0,type:{name:"String"}}},contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/json",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},serverParameters={parameterPath:"serverParameters",mapper:AnalysisServicesServer},serverUpdateParameters={parameterPath:"serverUpdateParameters",mapper:AnalysisServicesServerUpdateParameters},serverParameters1={parameterPath:"serverParameters",mapper:CheckServerNameAvailabilityParameters},location={parameterPath:"location",mapper:{serializedName:"location",required:!0,type:{name:"String"}}},operationId={parameterPath:"operationId",mapper:{serializedName:"operationId",required:!0,type:{name:"String"}}},nextLink={parameterPath:"nextLink",mapper:{serializedName:"nextLink",required:!0,type:{name:"String"}},skipEncoding:!0};class LroImpl{constructor(e,r,i,a=i.path,s=i.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=i,this.requestPath=a,this.requestMethod=s}sendInitialRequest(){return tslib.__awaiter(this,void 0,void 0,function*(){return this.sendOperationFn(this.args,this.spec)})}sendPollRequest(r){return tslib.__awaiter(this,void 0,void 0,function*(){var e=this.spec,e=tslib.__rest(e,["requestBody"]);return this.sendOperationFn(this.args,Object.assign(Object.assign({},e),{path:r,httpMethod:"GET"}))})}}class ServersImpl{constructor(e){this.client=e}listByResourceGroup(r,i){const e=this.listByResourceGroupPagingAll(r,i);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listByResourceGroupPagingPage(r,i,e)}}}listByResourceGroupPagingPage(r,i,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,i));yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(o,p){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,i;try{for(var a,s=!0,t=tslib.__asyncValues(this.listByResourceGroupPagingPage(o,p));!(e=(a=yield tslib.__await(t.next())).done);s=!0){var n=a.value,s=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{s||e||!(i=t.return)||(yield tslib.__await(i.call(t)))}finally{if(r)throw r.error}}})}list(r){const e=this.listPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,e)}}}listPagingPage(r,e){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r));yield yield tslib.__await(e.value||[])})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,i;try{for(var a,s=!0,t=tslib.__asyncValues(this.listPagingPage(o));!(e=(a=yield tslib.__await(t.next())).done);s=!0){var n=a.value,s=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{s||e||!(i=t.return)||(yield tslib.__await(i.call(t)))}finally{if(r)throw r.error}}})}getDetails(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:i},getDetailsOperationSpec)}beginCreate(r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,serverParameters:a,options:s},createOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginCreateAndWait(e,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginCreate(e,r,i,a)).pollUntilDone()})}beginDelete(r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,options:a},deleteOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginDeleteAndWait(e,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginDelete(e,r,i)).pollUntilDone()})}beginUpdate(r,i,a,s){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,serverUpdateParameters:a,options:s},updateOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==s?void 0:s.resumeFrom,intervalInMs:null==s?void 0:s.updateIntervalInMs});return yield e.poll(),e})}beginUpdateAndWait(e,r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginUpdate(e,r,i,a)).pollUntilDone()})}beginSuspend(r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,options:a},suspendOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginSuspendAndWait(e,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginSuspend(e,r,i)).pollUntilDone()})}beginResume(r,i,a){return tslib.__awaiter(this,void 0,void 0,function*(){const t=(e,r)=>tslib.__awaiter(this,void 0,void 0,function*(){return this.client.sendOperationRequest(e,r)});var e=new LroImpl((r,s)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const a=null==(e=r.options)?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{i=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,s),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:r,serverName:i,options:a},resumeOperationSpec),e=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield e.poll(),e})}beginResumeAndWait(e,r,i){return tslib.__awaiter(this,void 0,void 0,function*(){return(yield this.beginResume(e,r,i)).pollUntilDone()})}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec$1)}listSkusForNew(e){return this.client.sendOperationRequest({options:e},listSkusForNewOperationSpec)}listSkusForExisting(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:i},listSkusForExistingOperationSpec)}listGatewayStatus(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:i},listGatewayStatusOperationSpec)}dissociateGateway(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:i},dissociateGatewayOperationSpec)}checkNameAvailability(e,r,i){return this.client.sendOperationRequest({location:e,serverParameters:r,options:i},checkNameAvailabilityOperationSpec)}listOperationResults(e,r,i){return this.client.sendOperationRequest({location:e,operationId:r,options:i},listOperationResultsOperationSpec)}listOperationStatuses(e,r,i){return this.client.sendOperationRequest({location:e,operationId:r,options:i},listOperationStatusesOperationSpec)}}const serializer$1=coreClient__namespace.createSerializer(Mappers,!1),getDetailsOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",httpMethod:"GET",responses:{200:{bodyMapper:AnalysisServicesServer},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},createOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",httpMethod:"PUT",responses:{200:{bodyMapper:AnalysisServicesServer},201:{bodyMapper:AnalysisServicesServer},202:{bodyMapper:AnalysisServicesServer},204:{bodyMapper:AnalysisServicesServer},default:{bodyMapper:ErrorResponse}},requestBody:serverParameters,queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},deleteOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",httpMethod:"DELETE",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},updateOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",httpMethod:"PATCH",responses:{200:{bodyMapper:AnalysisServicesServer},201:{bodyMapper:AnalysisServicesServer},202:{bodyMapper:AnalysisServicesServer},204:{bodyMapper:AnalysisServicesServer},default:{bodyMapper:ErrorResponse}},requestBody:serverUpdateParameters,queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},suspendOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/suspend",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},resumeOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/resume",httpMethod:"POST",responses:{200:{},201:{},202:{},204:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},listByResourceGroupOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers",httpMethod:"GET",responses:{200:{bodyMapper:AnalysisServicesServers},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,subscriptionId],headerParameters:[accept],serializer:serializer$1},listOperationSpec$1={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/servers",httpMethod:"GET",responses:{200:{bodyMapper:AnalysisServicesServers},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$1},listSkusForNewOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/skus",httpMethod:"GET",responses:{200:{bodyMapper:SkuEnumerationForNewResourceResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId],headerParameters:[accept],serializer:serializer$1},listSkusForExistingOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/skus",httpMethod:"GET",responses:{200:{bodyMapper:SkuEnumerationForExistingResourceResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},listGatewayStatusOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/listGatewayStatus",httpMethod:"POST",responses:{200:{bodyMapper:GatewayListStatusLive},default:{bodyMapper:GatewayListStatusError}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},dissociateGatewayOperationSpec={path:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/dissociateGateway",httpMethod:"POST",responses:{200:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,resourceGroupName,serverName,subscriptionId],headerParameters:[accept],serializer:serializer$1},checkNameAvailabilityOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/checkNameAvailability",httpMethod:"POST",responses:{200:{bodyMapper:CheckServerNameAvailabilityResult},default:{bodyMapper:ErrorResponse}},requestBody:serverParameters1,queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,location],headerParameters:[accept,contentType],mediaType:"json",serializer:serializer$1},listOperationResultsOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/operationresults/{operationId}",httpMethod:"GET",responses:{200:{},202:{},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,location,operationId],headerParameters:[accept],serializer:serializer$1},listOperationStatusesOperationSpec={path:"/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/operationstatuses/{operationId}",httpMethod:"GET",responses:{200:{bodyMapper:OperationStatus},202:{bodyMapper:OperationStatus},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,subscriptionId,location,operationId],headerParameters:[accept],serializer:serializer$1};class OperationsImpl{constructor(e){this.client=e}list(r){const e=this.listPagingAll(r);return{next(){return e.next()},[Symbol.asyncIterator](){return this},byPage:e=>{if(null!=e&&e.maxPageSize)throw new Error("maxPageSize is not supported by this operation.");return this.listPagingPage(r,e)}}}listPagingPage(s,t){return tslib.__asyncGenerator(this,arguments,function*(){let e,r=null==t?void 0:t.continuationToken;var i;for(r||(setContinuationToken(i=(e=yield tslib.__await(this._list(s))).value||[],r=e.nextLink),yield yield tslib.__await(i));r;){e=yield tslib.__await(this._listNext(r,s)),r=e.nextLink;var a=e.value||[];setContinuationToken(a,r),yield yield tslib.__await(a)}})}listPagingAll(o){return tslib.__asyncGenerator(this,arguments,function*(){var e,r,i;try{for(var a,s=!0,t=tslib.__asyncValues(this.listPagingPage(o));!(e=(a=yield tslib.__await(t.next())).done);s=!0){var n=a.value,s=!1;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(n)))}}catch(e){r={error:e}}finally{try{s||e||!(i=t.return)||(yield tslib.__await(i.call(t)))}finally{if(r)throw r.error}}})}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer=coreClient__namespace.createSerializer(Mappers,!1),listOperationSpec={path:"/providers/Microsoft.AnalysisServices/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer};class AzureAnalysisServices extends coreClient__namespace.ServiceClient{constructor(e,r,i){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var a,s="azsdk-js-arm-analysisservices/4.1.4",s=(i=i||{}).userAgentOptions&&i.userAgentOptions.userAgentPrefix?i.userAgentOptions.userAgentPrefix+" "+s:s,s=Object.assign(Object.assign(Object.assign({},{requestContentType:"application/json; charset=utf-8",credential:e}),i),{userAgentOptions:{userAgentPrefix:s},endpoint:null!=(s=null!=(s=i.endpoint)?s:i.baseUri)?s:"https://management.azure.com"});super(s);let t=!1;null!=i&&i.pipeline&&0<i.pipeline.getOrderedPolicies().length&&(a=i.pipeline.getOrderedPolicies(),t=a.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)),i&&i.pipeline&&0!=i.pipeline.getOrderedPolicies().length&&t||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:null!=(a=s.credentialScopes)?a:s.endpoint+"/.default",challengeCallbacks:{authorizeRequestOnChallenge:coreClient__namespace.authorizeRequestOnClaimChallenge}}))),this.subscriptionId=r,this.$host=i.$host||"https://management.azure.com",this.apiVersion=i.apiVersion||"2017-08-01",this.servers=new ServersImpl(this),this.operations=new OperationsImpl(this),this.addCustomApiVersionPolicy(i.apiVersion)}addCustomApiVersionPolicy(s){s&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(i,a){return tslib.__awaiter(this,void 0,void 0,function*(){var e,r=i.url.split("?");return 1<r.length&&(e=r[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+s:e),i.url=r[0]+"?"+e.join("&")),a(i)})}})}}exports.AzureAnalysisServices=AzureAnalysisServices,exports.getContinuationToken=getContinuationToken;

@@ -6,3 +6,3 @@ {

"description": "A generated SDK for AzureAnalysisServices.",
"version": "4.1.4-alpha.20231016.1",
"version": "4.1.4-alpha.20231023.1",
"engines": {

@@ -34,3 +34,3 @@ "node": ">=16.0.0"

"mkdirp": "^1.0.4",
"typescript": "~5.0.0",
"typescript": "~5.2.0",
"uglify-js": "^3.4.9",

@@ -37,0 +37,0 @@ "rimraf": "^3.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc