@azure/arm-analysisservices
Advanced tools
Comparing version 4.1.1 to 4.1.2-alpha.20220930.2
# Release History | ||
## 4.1.2 (Unreleased) | ||
### Features Added | ||
### Breaking Changes | ||
### Bugs Fixed | ||
### Other Changes | ||
## 4.1.1 (2022-09-30) | ||
@@ -4,0 +14,0 @@ |
@@ -36,3 +36,3 @@ /* | ||
}; | ||
const packageDetails = `azsdk-js-arm-analysisservices/4.1.1`; | ||
const packageDetails = `azsdk-js-arm-analysisservices/4.1.2`; | ||
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix | ||
@@ -39,0 +39,0 @@ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespace(i){var a;return i&&i.__esModule?i:(a=Object.create(null),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=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);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,ResourceSku:ResourceSku,AnalysisServicesServerMutableProperties:AnalysisServicesServerMutableProperties,ServerAdministrators:ServerAdministrators,GatewayDetails:GatewayDetails,IPv4FirewallSettings:IPv4FirewallSettings,IPv4FirewallRule:IPv4FirewallRule,Resource:Resource,ErrorResponse:ErrorResponse,ErrorDetail:ErrorDetail,ErrorAdditionalInfo:ErrorAdditionalInfo,AnalysisServicesServerUpdateParameters:AnalysisServicesServerUpdateParameters,AnalysisServicesServers:AnalysisServicesServers,SkuEnumerationForNewResourceResult:SkuEnumerationForNewResourceResult,SkuEnumerationForExistingResourceResult:SkuEnumerationForExistingResourceResult,SkuDetailsForExistingResource:SkuDetailsForExistingResource,GatewayListStatusLive:GatewayListStatusLive,GatewayListStatusError:GatewayListStatusError,CheckServerNameAvailabilityParameters:CheckServerNameAvailabilityParameters,CheckServerNameAvailabilityResult:CheckServerNameAvailabilityResult,OperationStatus:OperationStatus,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,OperationProperties:OperationProperties,OperationPropertiesServiceSpecification:OperationPropertiesServiceSpecification,MetricSpecifications:MetricSpecifications,MetricDimensions:MetricDimensions,LogSpecifications:LogSpecifications,AnalysisServicesServerProperties:AnalysisServicesServerProperties,AnalysisServicesServer:AnalysisServicesServer});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(e,r){const i=this.listByResourceGroupPagingAll(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,i));yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(t,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,a=tslib.__asyncValues(this.listByResourceGroupPagingPage(t,n));!(i=yield tslib.__await(a.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r));yield yield tslib.__await(e.value||[])})}listPagingAll(t){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,a=tslib.__asyncValues(this.listPagingPage(t));!(i=yield tslib.__await(a.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}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(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(t){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,a=tslib.__asyncValues(this.listPagingPage(t));!(i=yield tslib.__await(a.next())).done;){var s=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(s)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}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.1",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},baseUri: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:""+s.credentialScopes,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; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tslib=require("tslib"),coreClient=require("@azure/core-client"),coreRestPipeline=require("@azure/core-rest-pipeline"),coreLro=require("@azure/core-lro");function _interopNamespace(i){if(i&&i.__esModule)return i;var s=Object.create(null);return i&&Object.keys(i).forEach(function(e){var r;"default"!==e&&(r=Object.getOwnPropertyDescriptor(i,e),Object.defineProperty(s,e,r.get?r:{enumerable:!0,get:function(){return i[e]}}))}),s.default=i,Object.freeze(s)}var coreClient__namespace=_interopNamespace(coreClient),coreRestPipeline__namespace=_interopNamespace(coreRestPipeline);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,ResourceSku:ResourceSku,AnalysisServicesServerMutableProperties:AnalysisServicesServerMutableProperties,ServerAdministrators:ServerAdministrators,GatewayDetails:GatewayDetails,IPv4FirewallSettings:IPv4FirewallSettings,IPv4FirewallRule:IPv4FirewallRule,Resource:Resource,ErrorResponse:ErrorResponse,ErrorDetail:ErrorDetail,ErrorAdditionalInfo:ErrorAdditionalInfo,AnalysisServicesServerUpdateParameters:AnalysisServicesServerUpdateParameters,AnalysisServicesServers:AnalysisServicesServers,SkuEnumerationForNewResourceResult:SkuEnumerationForNewResourceResult,SkuEnumerationForExistingResourceResult:SkuEnumerationForExistingResourceResult,SkuDetailsForExistingResource:SkuDetailsForExistingResource,GatewayListStatusLive:GatewayListStatusLive,GatewayListStatusError:GatewayListStatusError,CheckServerNameAvailabilityParameters:CheckServerNameAvailabilityParameters,CheckServerNameAvailabilityResult:CheckServerNameAvailabilityResult,OperationStatus:OperationStatus,OperationListResult:OperationListResult,Operation:Operation,OperationDisplay:OperationDisplay,OperationProperties:OperationProperties,OperationPropertiesServiceSpecification:OperationPropertiesServiceSpecification,MetricSpecifications:MetricSpecifications,MetricDimensions:MetricDimensions,LogSpecifications:LogSpecifications,AnalysisServicesServerProperties:AnalysisServicesServerProperties,AnalysisServicesServer:AnalysisServicesServer});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,s=i.path,a=i.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=i,this.requestPath=s,this.requestMethod=a}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(e,r){const i=this.listByResourceGroupPagingAll(e,r);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(r,i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,i));yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(t,n){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,s=tslib.__asyncValues(this.listByResourceGroupPagingPage(t,n));!(i=yield tslib.__await(s.next())).done;){var a=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=s.return)&&(yield tslib.__await(e.call(s)))}finally{if(r)throw r.error}}})}list(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(r){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(r));yield yield tslib.__await(e.value||[])})}listPagingAll(t){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,s=tslib.__asyncValues(this.listPagingPage(t));!(i=yield tslib.__await(s.next())).done;){var a=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=s.return)&&(yield tslib.__await(e.call(s)))}finally{if(r)throw r.error}}})}getDetails(e,r,i){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:i},getDetailsOperationSpec)}beginCreate(i,s,a,n){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,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const s=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!==s&&void 0!==s&&s(e,r)}})});return{flatResponse:yield t(e,a),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,serverName:s,serverParameters:a,options:n},createOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginCreateAndWait(r,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreate(r,i,s,a);return e.pollUntilDone()})}beginDelete(i,s,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,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const s=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!==s&&void 0!==s&&s(e,r)}})});return{flatResponse:yield t(e,a),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,serverName:s,options:a},deleteOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield r.poll(),r})}beginDeleteAndWait(r,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,i,s);return e.pollUntilDone()})}beginUpdate(i,s,a,n){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,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const s=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!==s&&void 0!==s&&s(e,r)}})});return{flatResponse:yield t(e,a),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,serverName:s,serverUpdateParameters:a,options:n},updateOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==n?void 0:n.resumeFrom,intervalInMs:null==n?void 0:n.updateIntervalInMs});return yield r.poll(),r})}beginUpdateAndWait(r,i,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,i,s,a);return e.pollUntilDone()})}beginSuspend(i,s,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,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const s=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!==s&&void 0!==s&&s(e,r)}})});return{flatResponse:yield t(e,a),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,serverName:s,options:a},suspendOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield r.poll(),r})}beginSuspendAndWait(r,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginSuspend(r,i,s);return e.pollUntilDone()})}beginResume(i,s,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,a)=>tslib.__awaiter(this,void 0,void 0,function*(){let i=void 0;const s=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!==s&&void 0!==s&&s(e,r)}})});return{flatResponse:yield t(e,a),rawResponse:{statusCode:i.status,body:i.parsedBody,headers:i.headers.toJSON()}}}),{resourceGroupName:i,serverName:s,options:a},resumeOperationSpec);const r=new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs});return yield r.poll(),r})}beginResumeAndWait(r,i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginResume(r,i,s);return e.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(e){const r=this.listPagingAll(e);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listPagingPage(e)}}listPagingPage(i){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(i));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,i)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(t){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var i,s=tslib.__asyncValues(this.listPagingPage(t));!(i=yield tslib.__await(s.next())).done;){var a=i.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(a)))}}catch(e){r={error:e}}finally{try{i&&!i.done&&(e=s.return)&&(yield tslib.__await(e.call(s)))}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 s="azsdk-js-arm-analysisservices/4.1.2",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},baseUri:null!=(s=null!=(s=i.endpoint)?s:i.baseUri)?s:"https://management.azure.com"});super(s);let a=!1;if(null!=i&&i.pipeline&&0<i.pipeline.getOrderedPolicies().length){const t=i.pipeline.getOrderedPolicies();a=t.some(e=>e.name===coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName)}i&&i.pipeline&&0!=i.pipeline.getOrderedPolicies().length&&a||(this.pipeline.removePolicy({name:coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName}),this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({credential:e,scopes:""+s.credentialScopes,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(a){a&&this.pipeline.addPolicy({name:"CustomApiVersionPolicy",sendRequest(i,s){return tslib.__awaiter(this,void 0,void 0,function*(){const e=i.url.split("?");if(1<e.length){const r=e[1].split("&").map(e=>-1<e.indexOf("api-version")?"api-version="+a:e);i.url=e[0]+"?"+r.join("&")}return s(i)})}})}}exports.AzureAnalysisServices=AzureAnalysisServices; |
@@ -6,3 +6,3 @@ { | ||
"description": "A generated SDK for AzureAnalysisServices.", | ||
"version": "4.1.1", | ||
"version": "4.1.2-alpha.20220930.2", | ||
"engines": { | ||
@@ -45,3 +45,3 @@ "node": ">=12.0.0" | ||
"@azure-tools/test-recorder": "^2.0.0", | ||
"@azure-tools/test-credential": "^1.0.0", | ||
"@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb", | ||
"mocha": "^7.1.1", | ||
@@ -51,3 +51,3 @@ "@types/chai": "^4.2.8", | ||
"cross-env": "^7.0.2", | ||
"@azure/dev-tool": "^1.0.0" | ||
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb" | ||
}, | ||
@@ -54,0 +54,0 @@ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/analysisservices/arm-analysisservices", |
@@ -54,3 +54,3 @@ /* | ||
const packageDetails = `azsdk-js-arm-analysisservices/4.1.1`; | ||
const packageDetails = `azsdk-js-arm-analysisservices/4.1.2`; | ||
const userAgentPrefix = | ||
@@ -57,0 +57,0 @@ options.userAgentOptions && options.userAgentOptions.userAgentPrefix |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.31.2" | ||
"packageVersion": "7.31.1" | ||
} | ||
] | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
731189
2