@azure/arm-analysisservices
Advanced tools
Comparing version 4.0.0-beta.1 to 4.0.0
@@ -1,14 +0,11 @@ | ||
## 4.0.0-beta.1 (2021-11-30) | ||
# Release History | ||
## 4.0.0 (2021-12-27) | ||
This is the first preview for the new version of the `@azure/arm-analysisservices` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services. | ||
The package of @azure/arm-analysisservices is using our next generation design principles since version 4.0.0, which contains breaking changes. | ||
While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/). | ||
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). | ||
Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies. | ||
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). | ||
**Noteworthy changes and features** | ||
- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice. | ||
- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead. | ||
- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page. | ||
- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`. | ||
- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6. | ||
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). |
@@ -33,3 +33,3 @@ /* | ||
}; | ||
const packageDetails = `azsdk-js-arm-analysisservices/1.0.0-beta.1`; | ||
const packageDetails = `azsdk-js-arm-analysisservices/4.0.0`; | ||
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix | ||
@@ -36,0 +36,0 @@ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib"),coreLro=require("@azure/core-lro");!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={})),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={})),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,s,a=s.path,i=s.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=s,this.requestPath=a,this.requestMethod=i}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 s=this.listByResourceGroupPagingAll(e,r);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(r,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,s));yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(t,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var s,a=tslib.__asyncValues(this.listByResourceGroupPagingPage(t,o));!(s=yield tslib.__await(a.next())).done;){var i=s.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){r={error:e}}finally{try{s&&!s.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 s,a=tslib.__asyncValues(this.listPagingPage(t));!(s=yield tslib.__await(a.next())).done;){var i=s.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}getDetails(e,r,s){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:s},getDetailsOperationSpec)}beginCreate(r,s,a,i){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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,serverParameters:a,options:i},createOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs})})}beginCreateAndWait(r,s,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreate(r,s,a,i);return e.pollUntilDone()})}beginDelete(r,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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,options:a},deleteOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginDeleteAndWait(r,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,s,a);return e.pollUntilDone()})}beginUpdate(r,s,a,i){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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,serverUpdateParameters:a,options:i},updateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs})})}beginUpdateAndWait(r,s,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,s,a,i);return e.pollUntilDone()})}beginSuspend(r,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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,options:a},suspendOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginSuspendAndWait(r,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginSuspend(r,s,a);return e.pollUntilDone()})}beginResume(r,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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,options:a},resumeOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginResumeAndWait(r,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginResume(r,s,a);return e.pollUntilDone()})}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}listSkusForNew(e){return this.client.sendOperationRequest({options:e},listSkusForNewOperationSpec)}listSkusForExisting(e,r,s){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:s},listSkusForExistingOperationSpec)}listGatewayStatus(e,r,s){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:s},listGatewayStatusOperationSpec)}dissociateGateway(e,r,s){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:s},dissociateGatewayOperationSpec)}checkNameAvailability(e,r,s){return this.client.sendOperationRequest({location:e,serverParameters:r,options:s},checkNameAvailabilityOperationSpec)}listOperationResults(e,r,s){return this.client.sendOperationRequest({location:e,operationId:r,options:s},listOperationResultsOperationSpec)}listOperationStatuses(e,r,s){return this.client.sendOperationRequest({location:e,operationId:r,options:s},listOperationStatusesOperationSpec)}}const serializer=coreClient.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},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},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},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},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},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},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},listOperationSpec={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},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},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},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},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},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},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},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};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(s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(t){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var s,a=tslib.__asyncValues(this.listPagingPage(t));!(s=yield tslib.__await(a.next())).done;){var i=s.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){r={error:e}}finally{try{s&&!s.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$1)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec$1={path:"/providers/Microsoft.AnalysisServices/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class AzureAnalysisServices extends coreClient.ServiceClient{constructor(e,r,s){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var a={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-analysisservices/1.0.0-beta.1",e=(s=s||{}).userAgentOptions&&s.userAgentOptions.userAgentPrefix?s.userAgentOptions.userAgentPrefix+" "+e:e;s.credentialScopes||(s.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},a),s),{userAgentOptions:{userAgentPrefix:e},baseUri:s.endpoint||"https://management.azure.com"})),this.subscriptionId=r,this.$host=s.$host||"https://management.azure.com",this.apiVersion=s.apiVersion||"2017-08-01",this.servers=new ServersImpl(this),this.operations=new OperationsImpl(this)}}exports.AzureAnalysisServices=AzureAnalysisServices; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var coreClient=require("@azure/core-client"),tslib=require("tslib"),coreLro=require("@azure/core-lro");!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={})),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={})),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,s,a=s.path,i=s.httpMethod){this.sendOperationFn=e,this.args=r,this.spec=s,this.requestPath=a,this.requestMethod=i}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 s=this.listByResourceGroupPagingAll(e,r);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:()=>this.listByResourceGroupPagingPage(e,r)}}listByResourceGroupPagingPage(r,s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._listByResourceGroup(r,s));yield yield tslib.__await(e.value||[])})}listByResourceGroupPagingAll(t,o){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var s,a=tslib.__asyncValues(this.listByResourceGroupPagingPage(t,o));!(s=yield tslib.__await(a.next())).done;){var i=s.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){r={error:e}}finally{try{s&&!s.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 s,a=tslib.__asyncValues(this.listPagingPage(t));!(s=yield tslib.__await(a.next())).done;){var i=s.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(e=a.return)&&(yield tslib.__await(e.call(a)))}finally{if(r)throw r.error}}})}getDetails(e,r,s){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:s},getDetailsOperationSpec)}beginCreate(r,s,a,i){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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,serverParameters:a,options:i},createOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs})})}beginCreateAndWait(r,s,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginCreate(r,s,a,i);return e.pollUntilDone()})}beginDelete(r,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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,options:a},deleteOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginDeleteAndWait(r,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginDelete(r,s,a);return e.pollUntilDone()})}beginUpdate(r,s,a,i){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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,serverUpdateParameters:a,options:i},updateOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==i?void 0:i.resumeFrom,intervalInMs:null==i?void 0:i.updateIntervalInMs})})}beginUpdateAndWait(r,s,a,i){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginUpdate(r,s,a,i);return e.pollUntilDone()})}beginSuspend(r,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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,options:a},suspendOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginSuspendAndWait(r,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginSuspend(r,s,a);return e.pollUntilDone()})}beginResume(r,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,i)=>tslib.__awaiter(this,void 0,void 0,function*(){let s=void 0;const a=null===(e=r.options)||void 0===e?void 0:e.onResponse;var e=Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{onResponse:(e,r)=>{s=e,null!==a&&void 0!==a&&a(e,r)}})});return{flatResponse:yield t(e,i),rawResponse:{statusCode:s.status,body:s.parsedBody,headers:s.headers.toJSON()}}}),{resourceGroupName:r,serverName:s,options:a},resumeOperationSpec);return new coreLro.LroEngine(e,{resumeFrom:null==a?void 0:a.resumeFrom,intervalInMs:null==a?void 0:a.updateIntervalInMs})})}beginResumeAndWait(r,s,a){return tslib.__awaiter(this,void 0,void 0,function*(){const e=yield this.beginResume(r,s,a);return e.pollUntilDone()})}_listByResourceGroup(e,r){return this.client.sendOperationRequest({resourceGroupName:e,options:r},listByResourceGroupOperationSpec)}_list(e){return this.client.sendOperationRequest({options:e},listOperationSpec)}listSkusForNew(e){return this.client.sendOperationRequest({options:e},listSkusForNewOperationSpec)}listSkusForExisting(e,r,s){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:s},listSkusForExistingOperationSpec)}listGatewayStatus(e,r,s){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:s},listGatewayStatusOperationSpec)}dissociateGateway(e,r,s){return this.client.sendOperationRequest({resourceGroupName:e,serverName:r,options:s},dissociateGatewayOperationSpec)}checkNameAvailability(e,r,s){return this.client.sendOperationRequest({location:e,serverParameters:r,options:s},checkNameAvailabilityOperationSpec)}listOperationResults(e,r,s){return this.client.sendOperationRequest({location:e,operationId:r,options:s},listOperationResultsOperationSpec)}listOperationStatuses(e,r,s){return this.client.sendOperationRequest({location:e,operationId:r,options:s},listOperationStatusesOperationSpec)}}const serializer=coreClient.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},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},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},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},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},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},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},listOperationSpec={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},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},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},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},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},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},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},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};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(s){return tslib.__asyncGenerator(this,arguments,function*(){var e=yield tslib.__await(this._list(s));yield yield tslib.__await(e.value||[]);let r=e.nextLink;for(;r;)e=yield tslib.__await(this._listNext(r,s)),r=e.nextLink,yield yield tslib.__await(e.value||[])})}listPagingAll(t){return tslib.__asyncGenerator(this,arguments,function*(){var r,e;try{for(var s,a=tslib.__asyncValues(this.listPagingPage(t));!(s=yield tslib.__await(a.next())).done;){var i=s.value;yield tslib.__await(yield*tslib.__asyncDelegator(tslib.__asyncValues(i)))}}catch(e){r={error:e}}finally{try{s&&!s.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$1)}_listNext(e,r){return this.client.sendOperationRequest({nextLink:e,options:r},listNextOperationSpec)}}const serializer$1=coreClient.createSerializer(Mappers,!1),listOperationSpec$1={path:"/providers/Microsoft.AnalysisServices/operations",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host],headerParameters:[accept],serializer:serializer$1},listNextOperationSpec={path:"{nextLink}",httpMethod:"GET",responses:{200:{bodyMapper:OperationListResult},default:{bodyMapper:ErrorResponse}},queryParameters:[apiVersion],urlParameters:[$host,nextLink],headerParameters:[accept],serializer:serializer$1};class AzureAnalysisServices extends coreClient.ServiceClient{constructor(e,r,s){if(void 0===e)throw new Error("'credentials' cannot be null");if(void 0===r)throw new Error("'subscriptionId' cannot be null");var a={requestContentType:"application/json; charset=utf-8",credential:e},e="azsdk-js-arm-analysisservices/4.0.0",e=(s=s||{}).userAgentOptions&&s.userAgentOptions.userAgentPrefix?s.userAgentOptions.userAgentPrefix+" "+e:e;s.credentialScopes||(s.credentialScopes=["https://management.azure.com/.default"]),super(Object.assign(Object.assign(Object.assign({},a),s),{userAgentOptions:{userAgentPrefix:e},baseUri:s.endpoint||"https://management.azure.com"})),this.subscriptionId=r,this.$host=s.$host||"https://management.azure.com",this.apiVersion=s.apiVersion||"2017-08-01",this.servers=new ServersImpl(this),this.operations=new OperationsImpl(this)}}exports.AzureAnalysisServices=AzureAnalysisServices; |
@@ -6,3 +6,3 @@ { | ||
"description": "A generated SDK for AzureAnalysisServices.", | ||
"version": "4.0.0-beta.1", | ||
"version": "4.0.0", | ||
"engines": { "node": ">=12.0.0" }, | ||
@@ -9,0 +9,0 @@ "dependencies": { |
@@ -9,3 +9,3 @@ # Azure Service client library for JavaScript | ||
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-analysisservices) | | ||
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-analysisservices?view=azure-node-preview) | | ||
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-analysisservices) | | ||
[Samples](https://github.com/Azure-Samples/azure-samples-js-management) | ||
@@ -12,0 +12,0 @@ |
@@ -48,3 +48,3 @@ /* | ||
const packageDetails = `azsdk-js-arm-analysisservices/1.0.0-beta.1`; | ||
const packageDetails = `azsdk-js-arm-analysisservices/4.0.0`; | ||
const userAgentPrefix = | ||
@@ -51,0 +51,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.18.19" | ||
"packageVersion": "7.19.2" | ||
} | ||
] | ||
} |
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
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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
0
1
0
660214