New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@azure/arm-analysisservices

Package Overview
Dependencies
Maintainers
4
Versions
292
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/arm-analysisservices - npm Package Compare versions

Comparing version 4.1.4-alpha.20230320.1 to 4.1.4-alpha.20230419.1

17

dist-esm/samples-dev/serversListByResourceGroupSample.js

@@ -20,3 +20,3 @@ /*

function listExistingServersInTheResourceGroup() {
var e_1, _a;
var _a, e_1, _b, _c;
return __awaiter(this, void 0, void 0, function* () {

@@ -29,5 +29,12 @@ const subscriptionId = "613192d7-503f-477a-9cfe-4efc3ee2bd60";

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

@@ -38,3 +45,3 @@ }

try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
}

@@ -41,0 +48,0 @@ finally { if (e_1) throw e_1.error; }

@@ -20,3 +20,3 @@ /*

function listExistingServersUnderTheSubscription() {
var e_1, _a;
var _a, e_1, _b, _c;
return __awaiter(this, void 0, void 0, function* () {

@@ -28,5 +28,12 @@ const subscriptionId = "613192d7-503f-477a-9cfe-4efc3ee2bd60";

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

@@ -37,3 +44,3 @@ }

try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
}

@@ -40,0 +47,0 @@ finally { if (e_1) throw e_1.error; }

@@ -471,3 +471,3 @@ import * as coreClient from "@azure/core-client";

*/
export declare type State = string;
export type State = string;
/** Known values of {@link ProvisioningState} that the service accepts. */

@@ -518,3 +518,3 @@ export declare enum KnownProvisioningState {

*/
export declare type ProvisioningState = string;
export type ProvisioningState = string;
/** Known values of {@link SkuTier} that the service accepts. */

@@ -538,9 +538,9 @@ export declare enum KnownSkuTier {

*/
export declare type SkuTier = string;
export type SkuTier = string;
/** Defines values for ConnectionMode. */
export declare type ConnectionMode = "All" | "ReadOnly";
export type ConnectionMode = "All" | "ReadOnly";
/** Defines values for ManagedMode. */
export declare type ManagedMode = 0 | 1;
export type ManagedMode = 0 | 1;
/** Defines values for ServerMonitorMode. */
export declare type ServerMonitorMode = 0 | 1;
export type ServerMonitorMode = 0 | 1;
/** Optional parameters. */

@@ -550,3 +550,3 @@ export interface ServersGetDetailsOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the getDetails operation. */
export declare type ServersGetDetailsResponse = AnalysisServicesServer;
export type ServersGetDetailsResponse = AnalysisServicesServer;
/** Optional parameters. */

@@ -560,3 +560,3 @@ export interface ServersCreateOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the create operation. */
export declare type ServersCreateResponse = AnalysisServicesServer;
export type ServersCreateResponse = AnalysisServicesServer;
/** Optional parameters. */

@@ -577,3 +577,3 @@ export interface ServersDeleteOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the update operation. */
export declare type ServersUpdateResponse = AnalysisServicesServer;
export type ServersUpdateResponse = AnalysisServicesServer;
/** Optional parameters. */

@@ -597,3 +597,3 @@ export interface ServersSuspendOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the listByResourceGroup operation. */
export declare type ServersListByResourceGroupResponse = AnalysisServicesServers;
export type ServersListByResourceGroupResponse = AnalysisServicesServers;
/** Optional parameters. */

@@ -603,3 +603,3 @@ export interface ServersListOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the list operation. */
export declare type ServersListResponse = AnalysisServicesServers;
export type ServersListResponse = AnalysisServicesServers;
/** Optional parameters. */

@@ -609,3 +609,3 @@ export interface ServersListSkusForNewOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the listSkusForNew operation. */
export declare type ServersListSkusForNewResponse = SkuEnumerationForNewResourceResult;
export type ServersListSkusForNewResponse = SkuEnumerationForNewResourceResult;
/** Optional parameters. */

@@ -615,3 +615,3 @@ export interface ServersListSkusForExistingOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the listSkusForExisting operation. */
export declare type ServersListSkusForExistingResponse = SkuEnumerationForExistingResourceResult;
export type ServersListSkusForExistingResponse = SkuEnumerationForExistingResourceResult;
/** Optional parameters. */

@@ -621,3 +621,3 @@ export interface ServersListGatewayStatusOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the listGatewayStatus operation. */
export declare type ServersListGatewayStatusResponse = GatewayListStatusLive;
export type ServersListGatewayStatusResponse = GatewayListStatusLive;
/** Optional parameters. */

@@ -630,3 +630,3 @@ export interface ServersDissociateGatewayOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the checkNameAvailability operation. */
export declare type ServersCheckNameAvailabilityResponse = CheckServerNameAvailabilityResult;
export type ServersCheckNameAvailabilityResponse = CheckServerNameAvailabilityResult;
/** Optional parameters. */

@@ -639,3 +639,3 @@ export interface ServersListOperationResultsOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the listOperationStatuses operation. */
export declare type ServersListOperationStatusesResponse = OperationStatus;
export type ServersListOperationStatusesResponse = OperationStatus;
/** Optional parameters. */

@@ -645,3 +645,3 @@ export interface OperationsListOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the list operation. */
export declare type OperationsListResponse = OperationListResult;
export type OperationsListResponse = OperationListResult;
/** Optional parameters. */

@@ -651,3 +651,3 @@ export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {

/** Contains response data for the listNext operation. */
export declare type OperationsListNextResponse = OperationListResult;
export type OperationsListNextResponse = OperationListResult;
/** Optional parameters. */

@@ -654,0 +654,0 @@ export interface AzureAnalysisServicesOptionalParams extends coreClient.ServiceClientOptions {

@@ -66,7 +66,14 @@ /*

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

@@ -77,3 +84,3 @@ }

try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
}

@@ -80,0 +87,0 @@ finally { if (e_1) throw e_1.error; }

@@ -56,7 +56,14 @@ /*

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

@@ -67,3 +74,3 @@ }

try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
}

@@ -104,7 +111,14 @@ finally { if (e_1) throw e_1.error; }

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

@@ -115,3 +129,3 @@ }

try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
}

@@ -118,0 +132,0 @@ finally { if (e_2) throw e_2.error; }

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

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

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

@@ -40,3 +40,3 @@ "node": ">=14.0.0"

"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.8.0",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc