diff --git a/sdk/analysisservices/arm-analysisservices/LICENSE.txt b/sdk/analysisservices/arm-analysisservices/LICENSE.txt
new file mode 100644
index 000000000000..8f3d856145c5
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2019 Microsoft
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/sdk/analysisservices/arm-analysisservices/README.md b/sdk/analysisservices/arm-analysisservices/README.md
new file mode 100644
index 000000000000..882c12985390
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/README.md
@@ -0,0 +1,100 @@
+## Azure AnalysisServicesManagementClient SDK for JavaScript
+
+This package contains an isomorphic SDK for AnalysisServicesManagementClient.
+
+### Currently supported environments
+
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+### How to Install
+
+```bash
+npm install @azure/arm-analysisservices
+```
+
+### How to use
+
+#### nodejs - Authentication, client creation and getDetails servers as an example written in TypeScript.
+
+##### Install @azure/ms-rest-nodeauth
+
+```bash
+npm install @azure/ms-rest-nodeauth
+```
+
+##### Sample code
+
+```typescript
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
+import { AnalysisServicesManagementClient, AnalysisServicesManagementModels, AnalysisServicesManagementMappers } from "@azure/arm-analysisservices";
+const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new AnalysisServicesManagementClient(creds, subscriptionId);
+ const resourceGroupName = "testresourceGroupName";
+ const serverName = "testserverName";
+ client.servers.getDetails(resourceGroupName, serverName).then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+#### browser - Authentication, client creation and getDetails servers as an example written in JavaScript.
+
+##### Install @azure/ms-rest-browserauth
+
+```bash
+npm install @azure/ms-rest-browserauth
+```
+
+##### Sample code
+
+See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
+
+- index.html
+```html
+
+
+
+ @azure/arm-analysisservices sample
+
+
+
+
+
+
+
+
+```
+
+## Related projects
+
+- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/sdk/analysisservices/arm-analysisservices/lib/analysisServicesManagementClient.ts b/sdk/analysisservices/arm-analysisservices/lib/analysisServicesManagementClient.ts
new file mode 100644
index 000000000000..2d67bb6378b1
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/analysisServicesManagementClient.ts
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "./models";
+import * as Mappers from "./models/mappers";
+import * as operations from "./operations";
+import { AnalysisServicesManagementClientContext } from "./analysisServicesManagementClientContext";
+
+
+class AnalysisServicesManagementClient extends AnalysisServicesManagementClientContext {
+ // Operation groups
+ servers: operations.Servers;
+ operations: operations.Operations;
+
+ /**
+ * Initializes a new instance of the AnalysisServicesManagementClient class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId A unique identifier for a Microsoft Azure subscription. The subscription
+ * ID forms part of the URI for every service call.
+ * @param [options] The parameter options
+ */
+ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AnalysisServicesManagementClientOptions) {
+ super(credentials, subscriptionId, options);
+ this.servers = new operations.Servers(this);
+ this.operations = new operations.Operations(this);
+ }
+}
+
+// Operation Specifications
+
+export {
+ AnalysisServicesManagementClient,
+ AnalysisServicesManagementClientContext,
+ Models as AnalysisServicesManagementModels,
+ Mappers as AnalysisServicesManagementMappers
+};
+export * from "./operations";
diff --git a/sdk/analysisservices/arm-analysisservices/lib/analysisServicesManagementClientContext.ts b/sdk/analysisservices/arm-analysisservices/lib/analysisServicesManagementClientContext.ts
new file mode 100644
index 000000000000..fc8ef52bb827
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/analysisServicesManagementClientContext.ts
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as Models from "./models";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+
+const packageName = "@azure/arm-analysisservices";
+const packageVersion = "2.3.0";
+
+export class AnalysisServicesManagementClientContext extends msRestAzure.AzureServiceClient {
+ credentials: msRest.ServiceClientCredentials;
+ subscriptionId: string;
+ apiVersion?: string;
+
+ /**
+ * Initializes a new instance of the AnalysisServicesManagementClient class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId A unique identifier for a Microsoft Azure subscription. The subscription
+ * ID forms part of the URI for every service call.
+ * @param [options] The parameter options
+ */
+ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AnalysisServicesManagementClientOptions) {
+ if (credentials == undefined) {
+ throw new Error('\'credentials\' cannot be null.');
+ }
+ if (subscriptionId == undefined) {
+ throw new Error('\'subscriptionId\' cannot be null.');
+ }
+
+ if (!options) {
+ options = {};
+ }
+ if(!options.userAgent) {
+ const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
+ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
+ }
+
+ super(credentials, options);
+
+ this.apiVersion = '2017-08-01';
+ this.acceptLanguage = 'en-US';
+ this.longRunningOperationRetryTimeout = 30;
+ this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
+ this.requestContentType = "application/json; charset=utf-8";
+ this.credentials = credentials;
+ this.subscriptionId = subscriptionId;
+
+ if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
+ this.acceptLanguage = options.acceptLanguage;
+ }
+ if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
+ this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
+ }
+ }
+}
diff --git a/sdk/analysisservices/arm-analysisservices/lib/models/index.ts b/sdk/analysisservices/arm-analysisservices/lib/models/index.ts
new file mode 100644
index 000000000000..1f80dde48a4d
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/models/index.ts
@@ -0,0 +1,849 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
+
+export { BaseResource, CloudError };
+
+
+/**
+ * @interface
+ * An interface representing OperationDisplay.
+ * The object that represents the operation.
+ *
+ */
+export interface OperationDisplay {
+ /**
+ * @member {string} [provider] Service provider: Microsoft.Consumption.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly provider?: string;
+ /**
+ * @member {string} [resource] Resource on which the operation is performed:
+ * UsageDetail, etc.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly resource?: string;
+ /**
+ * @member {string} [operation] Operation type: Read, write, delete, etc.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly operation?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Operation.
+ * A Consumption REST API operation.
+ *
+ */
+export interface Operation {
+ /**
+ * @member {string} [name] Operation name: {provider}/{resource}/{operation}.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly name?: string;
+ /**
+ * @member {OperationDisplay} [display] The object that represents the
+ * operation.
+ */
+ display?: OperationDisplay;
+}
+
+/**
+ * @interface
+ * An interface representing ResourceSku.
+ * Represents the SKU name and Azure pricing tier for Analysis Services
+ * resource.
+ *
+ */
+export interface ResourceSku {
+ /**
+ * @member {string} name Name of the SKU level.
+ */
+ name: string;
+ /**
+ * @member {SkuTier} [tier] The name of the Azure pricing tier to which the
+ * SKU applies. Possible values include: 'Development', 'Basic', 'Standard'
+ */
+ tier?: SkuTier;
+ /**
+ * @member {number} [capacity] The number of instances in the read only query
+ * pool. Default value: 1 .
+ */
+ capacity?: number;
+}
+
+/**
+ * @interface
+ * An interface representing Resource.
+ * Represents an instance of an Analysis Services resource.
+ *
+ * @extends BaseResource
+ */
+export interface Resource extends BaseResource {
+ /**
+ * @member {string} [id] An identifier that represents the Analysis Services
+ * resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly id?: string;
+ /**
+ * @member {string} [name] The name of the Analysis Services resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly name?: string;
+ /**
+ * @member {string} [type] The type of the Analysis Services resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly type?: string;
+ /**
+ * @member {string} location Location of the Analysis Services resource.
+ */
+ location: string;
+ /**
+ * @member {ResourceSku} sku The SKU of the Analysis Services resource.
+ */
+ sku: ResourceSku;
+ /**
+ * @member {{ [propertyName: string]: string }} [tags] Key-value pairs of
+ * additional resource provisioning properties.
+ */
+ tags?: { [propertyName: string]: string };
+}
+
+/**
+ * @interface
+ * An interface representing AnalysisServicesServer.
+ * Represents an instance of an Analysis Services resource.
+ *
+ * @extends Resource
+ */
+export interface AnalysisServicesServer extends Resource {
+ /**
+ * @member {ServerAdministrators} [asAdministrators] A collection of AS
+ * server administrators
+ */
+ asAdministrators?: ServerAdministrators;
+ /**
+ * @member {string} [backupBlobContainerUri] The SAS container URI to the
+ * backup container.
+ */
+ backupBlobContainerUri?: string;
+ /**
+ * @member {GatewayDetails} [gatewayDetails] The gateway details configured
+ * for the AS server.
+ */
+ gatewayDetails?: GatewayDetails;
+ /**
+ * @member {IPv4FirewallSettings} [ipV4FirewallSettings] The firewall
+ * settings for the AS server.
+ */
+ ipV4FirewallSettings?: IPv4FirewallSettings;
+ /**
+ * @member {ConnectionMode} [querypoolConnectionMode] How the read-write
+ * server's participation in the query pool is controlled.
It can have
+ * the following values: - readOnly - indicates that the read-write
+ * server is intended not to participate in query operations
- all -
+ * indicates that the read-write server can participate in query
+ * operations
Specifying readOnly when capacity is 1 results in
+ * error. Possible values include: 'All', 'ReadOnly'. Default value: 'All' .
+ */
+ querypoolConnectionMode?: ConnectionMode;
+ /**
+ * @member {State} [state] The current state of Analysis Services resource.
+ * The state is to indicate more states outside of resource provisioning.
+ * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused',
+ * 'Suspended', 'Provisioning', 'Updating', 'Suspending', 'Pausing',
+ * 'Resuming', 'Preparing', 'Scaling'
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly state?: State;
+ /**
+ * @member {ProvisioningState} [provisioningState] The current deployment
+ * state of Analysis Services resource. The provisioningState is to indicate
+ * states for resource provisioning. Possible values include: 'Deleting',
+ * 'Succeeded', 'Failed', 'Paused', 'Suspended', 'Provisioning', 'Updating',
+ * 'Suspending', 'Pausing', 'Resuming', 'Preparing', 'Scaling'
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly provisioningState?: ProvisioningState;
+ /**
+ * @member {string} [serverFullName] The full name of the Analysis Services
+ * resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly serverFullName?: string;
+}
+
+/**
+ * @interface
+ * An interface representing ServerAdministrators.
+ * An array of administrator user identities.
+ *
+ */
+export interface ServerAdministrators {
+ /**
+ * @member {string[]} [members] An array of administrator user identities.
+ */
+ members?: string[];
+}
+
+/**
+ * @interface
+ * An interface representing GatewayDetails.
+ * The gateway details.
+ *
+ */
+export interface GatewayDetails {
+ /**
+ * @member {string} [gatewayResourceId] Gateway resource to be associated
+ * with the server.
+ */
+ gatewayResourceId?: string;
+ /**
+ * @member {string} [gatewayObjectId] Gateway object id from in the DMTS
+ * cluster for the gateway resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly gatewayObjectId?: string;
+ /**
+ * @member {string} [dmtsClusterUri] Uri of the DMTS cluster.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly dmtsClusterUri?: string;
+}
+
+/**
+ * @interface
+ * An interface representing IPv4FirewallRule.
+ * The detail of firewall rule.
+ *
+ */
+export interface IPv4FirewallRule {
+ /**
+ * @member {string} [firewallRuleName] The rule name.
+ */
+ firewallRuleName?: string;
+ /**
+ * @member {string} [rangeStart] The start range of IPv4.
+ */
+ rangeStart?: string;
+ /**
+ * @member {string} [rangeEnd] The end range of IPv4.
+ */
+ rangeEnd?: string;
+}
+
+/**
+ * @interface
+ * An interface representing IPv4FirewallSettings.
+ * An array of firewall rules.
+ *
+ */
+export interface IPv4FirewallSettings {
+ /**
+ * @member {IPv4FirewallRule[]} [firewallRules] An array of firewall rules.
+ */
+ firewallRules?: IPv4FirewallRule[];
+ /**
+ * @member {string} [enablePowerBIService] The indicator of enabling PBI
+ * service.
+ */
+ enablePowerBIService?: string;
+}
+
+/**
+ * @interface
+ * An interface representing AnalysisServicesServerUpdateParameters.
+ * Provision request specification
+ *
+ */
+export interface AnalysisServicesServerUpdateParameters {
+ /**
+ * @member {ResourceSku} [sku] The SKU of the Analysis Services resource.
+ */
+ sku?: ResourceSku;
+ /**
+ * @member {{ [propertyName: string]: string }} [tags] Key-value pairs of
+ * additional provisioning properties.
+ */
+ tags?: { [propertyName: string]: string };
+ /**
+ * @member {ServerAdministrators} [asAdministrators] A collection of AS
+ * server administrators
+ */
+ asAdministrators?: ServerAdministrators;
+ /**
+ * @member {string} [backupBlobContainerUri] The SAS container URI to the
+ * backup container.
+ */
+ backupBlobContainerUri?: string;
+ /**
+ * @member {GatewayDetails} [gatewayDetails] The gateway details configured
+ * for the AS server.
+ */
+ gatewayDetails?: GatewayDetails;
+ /**
+ * @member {IPv4FirewallSettings} [ipV4FirewallSettings] The firewall
+ * settings for the AS server.
+ */
+ ipV4FirewallSettings?: IPv4FirewallSettings;
+ /**
+ * @member {ConnectionMode} [querypoolConnectionMode] How the read-write
+ * server's participation in the query pool is controlled.
It can have
+ * the following values: - readOnly - indicates that the read-write
+ * server is intended not to participate in query operations
- all -
+ * indicates that the read-write server can participate in query
+ * operations
Specifying readOnly when capacity is 1 results in
+ * error. Possible values include: 'All', 'ReadOnly'. Default value: 'All' .
+ */
+ querypoolConnectionMode?: ConnectionMode;
+}
+
+/**
+ * @interface
+ * An interface representing GatewayListStatusLive.
+ * Status of gateway is live.
+ *
+ */
+export interface GatewayListStatusLive {
+ /**
+ * @member {Status} [status] Live message of list gateway. Possible values
+ * include: 'Live'
+ */
+ status?: Status;
+}
+
+/**
+ * @interface
+ * An interface representing GatewayError.
+ * Detail of gateway errors.
+ *
+ */
+export interface GatewayError {
+ /**
+ * @member {string} [code] Error code of list gateway.
+ */
+ code?: string;
+ /**
+ * @member {string} [message] Error message of list gateway.
+ */
+ message?: string;
+}
+
+/**
+ * @interface
+ * An interface representing GatewayListStatusError.
+ * Status of gateway is error.
+ *
+ */
+export interface GatewayListStatusError {
+ /**
+ * @member {GatewayError} [error] Error of the list gateway status.
+ */
+ error?: GatewayError;
+}
+
+/**
+ * @interface
+ * An interface representing CheckServerNameAvailabilityParameters.
+ * Details of server name request body.
+ *
+ */
+export interface CheckServerNameAvailabilityParameters {
+ /**
+ * @member {string} [name] Name for checking availability.
+ */
+ name?: string;
+ /**
+ * @member {string} [type] The resource type of azure analysis services.
+ * Default value: 'Microsoft.AnalysisServices/servers' .
+ */
+ type?: string;
+}
+
+/**
+ * @interface
+ * An interface representing CheckServerNameAvailabilityResult.
+ * The checking result of server name availability.
+ *
+ */
+export interface CheckServerNameAvailabilityResult {
+ /**
+ * @member {boolean} [nameAvailable] Indicator of available of the server
+ * name.
+ */
+ nameAvailable?: boolean;
+ /**
+ * @member {string} [reason] The reason of unavailability.
+ */
+ reason?: string;
+ /**
+ * @member {string} [message] The detailed message of the request
+ * unavailability.
+ */
+ message?: string;
+}
+
+/**
+ * @interface
+ * An interface representing ErrorResponse.
+ * Describes the format of Error response.
+ *
+ */
+export interface ErrorResponse {
+ /**
+ * @member {string} [code] Error code
+ */
+ code?: string;
+ /**
+ * @member {string} [message] Error message indicating why the operation
+ * failed.
+ */
+ message?: string;
+}
+
+/**
+ * @interface
+ * An interface representing OperationStatus.
+ * The status of operation.
+ *
+ */
+export interface OperationStatus {
+ /**
+ * @member {string} [id] The operation Id.
+ */
+ id?: string;
+ /**
+ * @member {string} [name] The operation name.
+ */
+ name?: string;
+ /**
+ * @member {string} [startTime] The start time of the operation.
+ */
+ startTime?: string;
+ /**
+ * @member {string} [endTime] The end time of the operation.
+ */
+ endTime?: string;
+ /**
+ * @member {string} [status] The status of the operation.
+ */
+ status?: string;
+ /**
+ * @member {ErrorResponse} [error] The error detail of the operation if any.
+ */
+ error?: ErrorResponse;
+}
+
+/**
+ * @interface
+ * An interface representing SkuEnumerationForNewResourceResult.
+ * An object that represents enumerating SKUs for new resources.
+ *
+ */
+export interface SkuEnumerationForNewResourceResult {
+ /**
+ * @member {ResourceSku[]} [value] The collection of available SKUs for new
+ * resources.
+ */
+ value?: ResourceSku[];
+}
+
+/**
+ * @interface
+ * An interface representing SkuDetailsForExistingResource.
+ * An object that represents SKU details for existing resources.
+ *
+ */
+export interface SkuDetailsForExistingResource {
+ /**
+ * @member {ResourceSku} [sku] The SKU in SKU details for existing resources.
+ */
+ sku?: ResourceSku;
+}
+
+/**
+ * @interface
+ * An interface representing SkuEnumerationForExistingResourceResult.
+ * An object that represents enumerating SKUs for existing resources.
+ *
+ */
+export interface SkuEnumerationForExistingResourceResult {
+ /**
+ * @member {SkuDetailsForExistingResource[]} [value] The collection of
+ * available SKUs for existing resources.
+ */
+ value?: SkuDetailsForExistingResource[];
+}
+
+/**
+ * @interface
+ * An interface representing AnalysisServicesManagementClientOptions.
+ * @extends AzureServiceClientOptions
+ */
+export interface AnalysisServicesManagementClientOptions extends AzureServiceClientOptions {
+ /**
+ * @member {string} [baseUri]
+ */
+ baseUri?: string;
+}
+
+
+/**
+ * @interface
+ * An interface representing the AnalysisServicesServers.
+ * An array of Analysis Services resources.
+ *
+ * @extends Array
+ */
+export interface AnalysisServicesServers extends Array {
+}
+
+/**
+ * @interface
+ * An interface representing the OperationListResult.
+ * Result of listing consumption operations. It contains a list of operations
+ * and a URL link to get the next set of results.
+ *
+ * @extends Array
+ */
+export interface OperationListResult extends Array {
+ /**
+ * @member {string} [nextLink] URL to get the next set of operation list
+ * results if there are any.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly nextLink?: string;
+}
+
+/**
+ * Defines values for SkuTier.
+ * Possible values include: 'Development', 'Basic', 'Standard'
+ * @readonly
+ * @enum {string}
+ */
+export type SkuTier = 'Development' | 'Basic' | 'Standard';
+
+/**
+ * Defines values for State.
+ * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused', 'Suspended',
+ * 'Provisioning', 'Updating', 'Suspending', 'Pausing', 'Resuming', 'Preparing', 'Scaling'
+ * @readonly
+ * @enum {string}
+ */
+export type State = 'Deleting' | 'Succeeded' | 'Failed' | 'Paused' | 'Suspended' | 'Provisioning' | 'Updating' | 'Suspending' | 'Pausing' | 'Resuming' | 'Preparing' | 'Scaling';
+
+/**
+ * Defines values for ProvisioningState.
+ * Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused', 'Suspended',
+ * 'Provisioning', 'Updating', 'Suspending', 'Pausing', 'Resuming', 'Preparing', 'Scaling'
+ * @readonly
+ * @enum {string}
+ */
+export type ProvisioningState = 'Deleting' | 'Succeeded' | 'Failed' | 'Paused' | 'Suspended' | 'Provisioning' | 'Updating' | 'Suspending' | 'Pausing' | 'Resuming' | 'Preparing' | 'Scaling';
+
+/**
+ * Defines values for ConnectionMode.
+ * Possible values include: 'All', 'ReadOnly'
+ * @readonly
+ * @enum {string}
+ */
+export type ConnectionMode = 'All' | 'ReadOnly';
+
+/**
+ * Defines values for Status.
+ * Possible values include: 'Live'
+ * @readonly
+ * @enum {string}
+ */
+export type Status = 'Live';
+
+/**
+ * Contains response data for the getDetails operation.
+ */
+export type ServersGetDetailsResponse = AnalysisServicesServer & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: AnalysisServicesServer;
+ };
+};
+
+/**
+ * Contains response data for the create operation.
+ */
+export type ServersCreateResponse = AnalysisServicesServer & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: AnalysisServicesServer;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type ServersUpdateResponse = AnalysisServicesServer & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: AnalysisServicesServer;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroup operation.
+ */
+export type ServersListByResourceGroupResponse = AnalysisServicesServers & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: AnalysisServicesServers;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type ServersListResponse = AnalysisServicesServers & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: AnalysisServicesServers;
+ };
+};
+
+/**
+ * Contains response data for the listSkusForNew operation.
+ */
+export type ServersListSkusForNewResponse = SkuEnumerationForNewResourceResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: SkuEnumerationForNewResourceResult;
+ };
+};
+
+/**
+ * Contains response data for the listSkusForExisting operation.
+ */
+export type ServersListSkusForExistingResponse = SkuEnumerationForExistingResourceResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: SkuEnumerationForExistingResourceResult;
+ };
+};
+
+/**
+ * Contains response data for the listGatewayStatus operation.
+ */
+export type ServersListGatewayStatusResponse = GatewayListStatusLive & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: GatewayListStatusLive;
+ };
+};
+
+/**
+ * Contains response data for the checkNameAvailability operation.
+ */
+export type ServersCheckNameAvailabilityResponse = CheckServerNameAvailabilityResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CheckServerNameAvailabilityResult;
+ };
+};
+
+/**
+ * Contains response data for the listOperationStatuses operation.
+ */
+export type ServersListOperationStatusesResponse = OperationStatus & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: OperationStatus;
+ };
+};
+
+/**
+ * Contains response data for the beginCreate operation.
+ */
+export type ServersBeginCreateResponse = AnalysisServicesServer & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: AnalysisServicesServer;
+ };
+};
+
+/**
+ * Contains response data for the beginUpdate operation.
+ */
+export type ServersBeginUpdateResponse = AnalysisServicesServer & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: AnalysisServicesServer;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type OperationsListResponse = OperationListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: OperationListResult;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type OperationsListNextResponse = OperationListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: OperationListResult;
+ };
+};
diff --git a/sdk/analysisservices/arm-analysisservices/lib/models/mappers.ts b/sdk/analysisservices/arm-analysisservices/lib/models/mappers.ts
new file mode 100644
index 000000000000..0a5ec0f18454
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/models/mappers.ts
@@ -0,0 +1,701 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
+
+export const CloudError = CloudErrorMapper;
+export const BaseResource = BaseResourceMapper;
+
+export const OperationDisplay: msRest.CompositeMapper = {
+ serializedName: "Operation_display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay",
+ modelProperties: {
+ provider: {
+ readOnly: true,
+ serializedName: "provider",
+ type: {
+ name: "String"
+ }
+ },
+ resource: {
+ readOnly: true,
+ serializedName: "resource",
+ type: {
+ name: "String"
+ }
+ },
+ operation: {
+ readOnly: true,
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Operation: msRest.CompositeMapper = {
+ serializedName: "Operation",
+ type: {
+ name: "Composite",
+ className: "Operation",
+ modelProperties: {
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay"
+ }
+ }
+ }
+ }
+};
+
+export const ResourceSku: msRest.CompositeMapper = {
+ serializedName: "ResourceSku",
+ type: {
+ name: "Composite",
+ className: "ResourceSku",
+ modelProperties: {
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ tier: {
+ serializedName: "tier",
+ type: {
+ name: "String"
+ }
+ },
+ capacity: {
+ serializedName: "capacity",
+ defaultValue: 1,
+ constraints: {
+ InclusiveMaximum: 8,
+ InclusiveMinimum: 1
+ },
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const Resource: msRest.CompositeMapper = {
+ serializedName: "Resource",
+ type: {
+ name: "Composite",
+ className: "Resource",
+ modelProperties: {
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ location: {
+ required: true,
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ },
+ sku: {
+ required: true,
+ serializedName: "sku",
+ type: {
+ name: "Composite",
+ className: "ResourceSku"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const AnalysisServicesServer: msRest.CompositeMapper = {
+ serializedName: "AnalysisServicesServer",
+ type: {
+ name: "Composite",
+ className: "AnalysisServicesServer",
+ modelProperties: {
+ ...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: {
+ serializedName: "properties.querypoolConnectionMode",
+ defaultValue: 'All',
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "All",
+ "ReadOnly"
+ ]
+ }
+ },
+ state: {
+ readOnly: true,
+ serializedName: "properties.state",
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ readOnly: true,
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ serverFullName: {
+ readOnly: true,
+ serializedName: "properties.serverFullName",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ServerAdministrators: msRest.CompositeMapper = {
+ serializedName: "ServerAdministrators",
+ type: {
+ name: "Composite",
+ className: "ServerAdministrators",
+ modelProperties: {
+ members: {
+ serializedName: "members",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const GatewayDetails: msRest.CompositeMapper = {
+ serializedName: "GatewayDetails",
+ type: {
+ name: "Composite",
+ className: "GatewayDetails",
+ modelProperties: {
+ gatewayResourceId: {
+ serializedName: "gatewayResourceId",
+ type: {
+ name: "String"
+ }
+ },
+ gatewayObjectId: {
+ readOnly: true,
+ serializedName: "gatewayObjectId",
+ type: {
+ name: "String"
+ }
+ },
+ dmtsClusterUri: {
+ readOnly: true,
+ serializedName: "dmtsClusterUri",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const IPv4FirewallRule: msRest.CompositeMapper = {
+ serializedName: "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"
+ }
+ }
+ }
+ }
+};
+
+export const IPv4FirewallSettings: msRest.CompositeMapper = {
+ serializedName: "IPv4FirewallSettings",
+ type: {
+ name: "Composite",
+ className: "IPv4FirewallSettings",
+ modelProperties: {
+ firewallRules: {
+ serializedName: "firewallRules",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "IPv4FirewallRule"
+ }
+ }
+ }
+ },
+ enablePowerBIService: {
+ serializedName: "enablePowerBIService",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const AnalysisServicesServerUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "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: {
+ serializedName: "properties.querypoolConnectionMode",
+ defaultValue: 'All',
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "All",
+ "ReadOnly"
+ ]
+ }
+ }
+ }
+ }
+};
+
+export const GatewayListStatusLive: msRest.CompositeMapper = {
+ serializedName: "GatewayListStatusLive",
+ type: {
+ name: "Composite",
+ className: "GatewayListStatusLive",
+ modelProperties: {
+ status: {
+ serializedName: "status",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Live"
+ ]
+ }
+ }
+ }
+ }
+};
+
+export const GatewayError: msRest.CompositeMapper = {
+ serializedName: "GatewayError",
+ type: {
+ name: "Composite",
+ className: "GatewayError",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const GatewayListStatusError: msRest.CompositeMapper = {
+ serializedName: "GatewayListStatusError",
+ type: {
+ name: "Composite",
+ className: "GatewayListStatusError",
+ modelProperties: {
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "GatewayError"
+ }
+ }
+ }
+ }
+};
+
+export const CheckServerNameAvailabilityParameters: msRest.CompositeMapper = {
+ serializedName: "CheckServerNameAvailabilityParameters",
+ type: {
+ name: "Composite",
+ className: "CheckServerNameAvailabilityParameters",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ constraints: {
+ MaxLength: 63,
+ MinLength: 3,
+ Pattern: /^[a-z][a-z0-9]*$/
+ },
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ defaultValue: 'Microsoft.AnalysisServices/servers',
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CheckServerNameAvailabilityResult: msRest.CompositeMapper = {
+ serializedName: "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"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorResponse: msRest.CompositeMapper = {
+ serializedName: "ErrorResponse",
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationStatus: msRest.CompositeMapper = {
+ serializedName: "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: "ErrorResponse"
+ }
+ }
+ }
+ }
+};
+
+export const SkuEnumerationForNewResourceResult: msRest.CompositeMapper = {
+ serializedName: "SkuEnumerationForNewResourceResult",
+ type: {
+ name: "Composite",
+ className: "SkuEnumerationForNewResourceResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ResourceSku"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const SkuDetailsForExistingResource: msRest.CompositeMapper = {
+ serializedName: "SkuDetailsForExistingResource",
+ type: {
+ name: "Composite",
+ className: "SkuDetailsForExistingResource",
+ modelProperties: {
+ sku: {
+ serializedName: "sku",
+ type: {
+ name: "Composite",
+ className: "ResourceSku"
+ }
+ }
+ }
+ }
+};
+
+export const SkuEnumerationForExistingResourceResult: msRest.CompositeMapper = {
+ serializedName: "SkuEnumerationForExistingResourceResult",
+ type: {
+ name: "Composite",
+ className: "SkuEnumerationForExistingResourceResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SkuDetailsForExistingResource"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const AnalysisServicesServers: msRest.CompositeMapper = {
+ serializedName: "AnalysisServicesServers",
+ type: {
+ name: "Composite",
+ className: "AnalysisServicesServers",
+ modelProperties: {
+ value: {
+ required: true,
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "AnalysisServicesServer"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const OperationListResult: msRest.CompositeMapper = {
+ serializedName: "OperationListResult",
+ type: {
+ name: "Composite",
+ className: "OperationListResult",
+ modelProperties: {
+ value: {
+ readOnly: true,
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Operation"
+ }
+ }
+ }
+ },
+ nextLink: {
+ readOnly: true,
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
diff --git a/sdk/analysisservices/arm-analysisservices/lib/models/operationsMappers.ts b/sdk/analysisservices/arm-analysisservices/lib/models/operationsMappers.ts
new file mode 100644
index 000000000000..715467ec9522
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/models/operationsMappers.ts
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+export {
+ OperationListResult,
+ Operation,
+ OperationDisplay,
+ ErrorResponse
+} from "../models/mappers";
+
diff --git a/sdk/analysisservices/arm-analysisservices/lib/models/parameters.ts b/sdk/analysisservices/arm-analysisservices/lib/models/parameters.ts
new file mode 100644
index 000000000000..f105f633287c
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/models/parameters.ts
@@ -0,0 +1,103 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+
+export const acceptLanguage: msRest.OperationParameter = {
+ parameterPath: "acceptLanguage",
+ mapper: {
+ serializedName: "accept-language",
+ defaultValue: 'en-US',
+ type: {
+ name: "String"
+ }
+ }
+};
+export const apiVersion: msRest.OperationQueryParameter = {
+ parameterPath: "apiVersion",
+ mapper: {
+ required: true,
+ serializedName: "api-version",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const location: msRest.OperationURLParameter = {
+ parameterPath: "location",
+ mapper: {
+ required: true,
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const nextPageLink: msRest.OperationURLParameter = {
+ parameterPath: "nextPageLink",
+ mapper: {
+ required: true,
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+export const operationId: msRest.OperationURLParameter = {
+ parameterPath: "operationId",
+ mapper: {
+ required: true,
+ serializedName: "operationId",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const resourceGroupName: msRest.OperationURLParameter = {
+ parameterPath: "resourceGroupName",
+ mapper: {
+ required: true,
+ serializedName: "resourceGroupName",
+ constraints: {
+ MaxLength: 90,
+ MinLength: 1,
+ Pattern: /^[-\w\._\(\)]+$/
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
+export const serverName: msRest.OperationURLParameter = {
+ parameterPath: "serverName",
+ mapper: {
+ required: true,
+ serializedName: "serverName",
+ constraints: {
+ MaxLength: 63,
+ MinLength: 3,
+ Pattern: /^[a-z][a-z0-9]*$/
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
+export const subscriptionId: msRest.OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
+ required: true,
+ serializedName: "subscriptionId",
+ type: {
+ name: "String"
+ }
+ }
+};
diff --git a/sdk/analysisservices/arm-analysisservices/lib/models/serversMappers.ts b/sdk/analysisservices/arm-analysisservices/lib/models/serversMappers.ts
new file mode 100644
index 000000000000..6d1d2ff928dc
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/models/serversMappers.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+export {
+ AnalysisServicesServer,
+ Resource,
+ BaseResource,
+ ResourceSku,
+ ServerAdministrators,
+ GatewayDetails,
+ IPv4FirewallSettings,
+ IPv4FirewallRule,
+ CloudError,
+ AnalysisServicesServerUpdateParameters,
+ AnalysisServicesServers,
+ SkuEnumerationForNewResourceResult,
+ SkuEnumerationForExistingResourceResult,
+ SkuDetailsForExistingResource,
+ GatewayListStatusLive,
+ GatewayListStatusError,
+ GatewayError,
+ CheckServerNameAvailabilityParameters,
+ CheckServerNameAvailabilityResult,
+ OperationStatus,
+ ErrorResponse
+} from "../models/mappers";
+
diff --git a/sdk/analysisservices/arm-analysisservices/lib/operations/index.ts b/sdk/analysisservices/arm-analysisservices/lib/operations/index.ts
new file mode 100644
index 000000000000..57fb9a053e74
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/operations/index.ts
@@ -0,0 +1,12 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+export * from "./servers";
+export * from "./operations";
diff --git a/sdk/analysisservices/arm-analysisservices/lib/operations/operations.ts b/sdk/analysisservices/arm-analysisservices/lib/operations/operations.ts
new file mode 100644
index 000000000000..accd15e90fb1
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/operations/operations.ts
@@ -0,0 +1,123 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/operationsMappers";
+import * as Parameters from "../models/parameters";
+import { AnalysisServicesManagementClientContext } from "../analysisServicesManagementClientContext";
+
+/** Class representing a Operations. */
+export class Operations {
+ private readonly client: AnalysisServicesManagementClientContext;
+
+ /**
+ * Create a Operations.
+ * @param {AnalysisServicesManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: AnalysisServicesManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists all of the available consumption REST API operations.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ list(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all of the available consumption REST API operations.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "providers/Microsoft.AnalysisServices/operations",
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.OperationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.OperationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/analysisservices/arm-analysisservices/lib/operations/servers.ts b/sdk/analysisservices/arm-analysisservices/lib/operations/servers.ts
new file mode 100644
index 000000000000..58b42cdede71
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/lib/operations/servers.ts
@@ -0,0 +1,929 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/serversMappers";
+import * as Parameters from "../models/parameters";
+import { AnalysisServicesManagementClientContext } from "../analysisServicesManagementClientContext";
+
+/** Class representing a Servers. */
+export class Servers {
+ private readonly client: AnalysisServicesManagementClientContext;
+
+ /**
+ * Create a Servers.
+ * @param {AnalysisServicesManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: AnalysisServicesManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Gets details about the specified Analysis Services server.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be a minimum of 3
+ * characters, and a maximum of 63.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ getDetails(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be a minimum of 3
+ * characters, and a maximum of 63.
+ * @param callback The callback
+ */
+ getDetails(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be a minimum of 3
+ * characters, and a maximum of 63.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ getDetails(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ getDetails(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ serverName,
+ options
+ },
+ getDetailsOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Provisions the specified Analysis Services server based on the configuration specified in the
+ * request.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be a minimum of 3
+ * characters, and a maximum of 63.
+ * @param serverParameters Contains the information used to provision the Analysis Services server.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ create(resourceGroupName: string, serverName: string, serverParameters: Models.AnalysisServicesServer, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCreate(resourceGroupName,serverName,serverParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Deletes the specified Analysis Services server.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,serverName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Updates the current state of the specified Analysis Services server.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param serverUpdateParameters Request object that contains the updated information for the
+ * server.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ update(resourceGroupName: string, serverName: string, serverUpdateParameters: Models.AnalysisServicesServerUpdateParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginUpdate(resourceGroupName,serverName,serverUpdateParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Suspends operation of the specified Analysis Services server instance.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ suspend(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginSuspend(resourceGroupName,serverName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Resumes operation of the specified Analysis Services server instance.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ resume(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginResume(resourceGroupName,serverName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Gets all the Analysis Services servers for the given resource group.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param callback The callback
+ */
+ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ options
+ },
+ listByResourceGroupOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all the Analysis Services servers for the given subscription.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ list(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists eligible SKUs for Analysis Services resource provider.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listSkusForNew(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ listSkusForNew(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listSkusForNew(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listSkusForNew(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listSkusForNewOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists eligible SKUs for an Analysis Services resource.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listSkusForExisting(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param callback The callback
+ */
+ listSkusForExisting(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listSkusForExisting(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listSkusForExisting(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ serverName,
+ options
+ },
+ listSkusForExistingOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Return the gateway status of the specified Analysis Services server instance.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listGatewayStatus(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server.
+ * @param callback The callback
+ */
+ listGatewayStatus(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listGatewayStatus(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listGatewayStatus(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ serverName,
+ options
+ },
+ listGatewayStatusOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Dissociates a Unified Gateway associated with the server.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ dissociateGateway(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param callback The callback
+ */
+ dissociateGateway(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ dissociateGateway(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ dissociateGateway(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ serverName,
+ options
+ },
+ dissociateGatewayOperationSpec,
+ callback);
+ }
+
+ /**
+ * Check the name availability in the target location.
+ * @param location The region name which the operation will lookup into.
+ * @param serverParameters Contains the information used to provision the Analysis Services server.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ checkNameAvailability(location: string, serverParameters: Models.CheckServerNameAvailabilityParameters, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param location The region name which the operation will lookup into.
+ * @param serverParameters Contains the information used to provision the Analysis Services server.
+ * @param callback The callback
+ */
+ checkNameAvailability(location: string, serverParameters: Models.CheckServerNameAvailabilityParameters, callback: msRest.ServiceCallback): void;
+ /**
+ * @param location The region name which the operation will lookup into.
+ * @param serverParameters Contains the information used to provision the Analysis Services server.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ checkNameAvailability(location: string, serverParameters: Models.CheckServerNameAvailabilityParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ checkNameAvailability(location: string, serverParameters: Models.CheckServerNameAvailabilityParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ location,
+ serverParameters,
+ options
+ },
+ checkNameAvailabilityOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * List the result of the specified operation.
+ * @param location The region name which the operation will lookup into.
+ * @param operationId The target operation Id.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listOperationResults(location: string, operationId: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param location The region name which the operation will lookup into.
+ * @param operationId The target operation Id.
+ * @param callback The callback
+ */
+ listOperationResults(location: string, operationId: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param location The region name which the operation will lookup into.
+ * @param operationId The target operation Id.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listOperationResults(location: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listOperationResults(location: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ location,
+ operationId,
+ options
+ },
+ listOperationResultsOperationSpec,
+ callback);
+ }
+
+ /**
+ * List the status of operation.
+ * @param location The region name which the operation will lookup into.
+ * @param operationId The target operation Id.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listOperationStatuses(location: string, operationId: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param location The region name which the operation will lookup into.
+ * @param operationId The target operation Id.
+ * @param callback The callback
+ */
+ listOperationStatuses(location: string, operationId: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param location The region name which the operation will lookup into.
+ * @param operationId The target operation Id.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listOperationStatuses(location: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listOperationStatuses(location: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ location,
+ operationId,
+ options
+ },
+ listOperationStatusesOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Provisions the specified Analysis Services server based on the configuration specified in the
+ * request.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be a minimum of 3
+ * characters, and a maximum of 63.
+ * @param serverParameters Contains the information used to provision the Analysis Services server.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreate(resourceGroupName: string, serverName: string, serverParameters: Models.AnalysisServicesServer, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ serverName,
+ serverParameters,
+ options
+ },
+ beginCreateOperationSpec,
+ options);
+ }
+
+ /**
+ * Deletes the specified Analysis Services server.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginDeleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ serverName,
+ options
+ },
+ beginDeleteMethodOperationSpec,
+ options);
+ }
+
+ /**
+ * Updates the current state of the specified Analysis Services server.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param serverUpdateParameters Request object that contains the updated information for the
+ * server.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginUpdate(resourceGroupName: string, serverName: string, serverUpdateParameters: Models.AnalysisServicesServerUpdateParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ serverName,
+ serverUpdateParameters,
+ options
+ },
+ beginUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * Suspends operation of the specified Analysis Services server instance.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginSuspend(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ serverName,
+ options
+ },
+ beginSuspendOperationSpec,
+ options);
+ }
+
+ /**
+ * Resumes operation of the specified Analysis Services server instance.
+ * @param resourceGroupName The name of the Azure Resource group of which a given Analysis Services
+ * server is part. This name must be at least 1 character in length, and no more than 90.
+ * @param serverName The name of the Analysis Services server. It must be at least 3 characters in
+ * length, and no more than 63.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginResume(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ serverName,
+ options
+ },
+ beginResumeOperationSpec,
+ options);
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const getDetailsOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.serverName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AnalysisServicesServer
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AnalysisServicesServers
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/servers",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AnalysisServicesServers
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listSkusForNewOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/skus",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.SkuEnumerationForNewResourceResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listSkusForExistingOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/skus",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.serverName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.SkuEnumerationForExistingResourceResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listGatewayStatusOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/listGatewayStatus",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.serverName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.GatewayListStatusLive
+ },
+ default: {
+ bodyMapper: Mappers.GatewayListStatusError
+ }
+ },
+ serializer
+};
+
+const dissociateGatewayOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/dissociateGateway",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.serverName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/checkNameAvailability",
+ urlParameters: [
+ Parameters.location,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "serverParameters",
+ mapper: {
+ ...Mappers.CheckServerNameAvailabilityParameters,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.CheckServerNameAvailabilityResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listOperationResultsOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/operationresults/{operationId}",
+ urlParameters: [
+ Parameters.location,
+ Parameters.operationId,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listOperationStatusesOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/operationstatuses/{operationId}",
+ urlParameters: [
+ Parameters.location,
+ Parameters.operationId,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ 202: {
+ bodyMapper: Mappers.OperationStatus
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCreateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.serverName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "serverParameters",
+ mapper: {
+ ...Mappers.AnalysisServicesServer,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AnalysisServicesServer
+ },
+ 201: {
+ bodyMapper: Mappers.AnalysisServicesServer
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.serverName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PATCH",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.serverName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "serverUpdateParameters",
+ mapper: {
+ ...Mappers.AnalysisServicesServerUpdateParameters,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AnalysisServicesServer
+ },
+ 202: {
+ bodyMapper: Mappers.AnalysisServicesServer
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginSuspendOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/suspend",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.serverName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginResumeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/resume",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.serverName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/sdk/analysisservices/arm-analysisservices/package.json b/sdk/analysisservices/arm-analysisservices/package.json
new file mode 100644
index 000000000000..e4a892ad1881
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/package.json
@@ -0,0 +1,56 @@
+{
+ "name": "@azure/arm-analysisservices",
+ "author": "Microsoft Corporation",
+ "description": "AnalysisServicesManagementClient Library with typescript type definitions for node.js and browser.",
+ "version": "2.3.0",
+ "dependencies": {
+ "@azure/ms-rest-azure-js": "^1.2.0",
+ "@azure/ms-rest-js": "^1.2.0",
+ "tslib": "^1.9.3"
+ },
+ "keywords": [
+ "node",
+ "azure",
+ "typescript",
+ "browser",
+ "isomorphic"
+ ],
+ "license": "MIT",
+ "main": "./dist/arm-analysisservices.js",
+ "module": "./esm/analysisServicesManagementClient.js",
+ "types": "./esm/analysisServicesManagementClient.d.ts",
+ "devDependencies": {
+ "typescript": "^3.1.1",
+ "rollup": "^0.66.2",
+ "rollup-plugin-node-resolve": "^3.4.0",
+ "rollup-plugin-sourcemaps": "^0.4.2",
+ "uglify-js": "^3.4.9"
+ },
+ "homepage": "https://github.com/azure/azure-sdk-for-js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/azure/azure-sdk-for-js.git"
+ },
+ "bugs": {
+ "url": "https://github.com/azure/azure-sdk-for-js/issues"
+ },
+ "files": [
+ "dist/**/*.js",
+ "dist/**/*.js.map",
+ "dist/**/*.d.ts",
+ "dist/**/*.d.ts.map",
+ "esm/**/*.js",
+ "esm/**/*.js.map",
+ "esm/**/*.d.ts",
+ "esm/**/*.d.ts.map",
+ "lib/**/*.ts",
+ "rollup.config.js",
+ "tsconfig.json"
+ ],
+ "scripts": {
+ "build": "tsc && rollup -c rollup.config.js && npm run minify",
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-analysisservices.js.map'\" -o ./dist/arm-analysisservices.min.js ./dist/arm-analysisservices.js",
+ "prepack": "npm install && npm run build"
+ },
+ "sideEffects": false
+}
diff --git a/sdk/analysisservices/arm-analysisservices/rollup.config.js b/sdk/analysisservices/arm-analysisservices/rollup.config.js
new file mode 100644
index 000000000000..c9bcde08174c
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/rollup.config.js
@@ -0,0 +1,37 @@
+import rollup from "rollup";
+import nodeResolve from "rollup-plugin-node-resolve";
+import sourcemaps from "rollup-plugin-sourcemaps";
+
+/**
+ * @type {rollup.RollupFileOptions}
+ */
+const config = {
+ input: "./esm/analysisServicesManagementClient.js",
+ external: [
+ "@azure/ms-rest-js",
+ "@azure/ms-rest-azure-js"
+ ],
+ output: {
+ file: "./dist/arm-analysisservices.js",
+ format: "umd",
+ name: "Azure.ArmAnalysisservices",
+ sourcemap: true,
+ globals: {
+ "@azure/ms-rest-js": "msRest",
+ "@azure/ms-rest-azure-js": "msRestAzure"
+ },
+ banner: `/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */`
+ },
+ plugins: [
+ nodeResolve({ module: true }),
+ sourcemaps()
+ ]
+};
+
+export default config;
diff --git a/sdk/analysisservices/arm-analysisservices/tsconfig.json b/sdk/analysisservices/arm-analysisservices/tsconfig.json
new file mode 100644
index 000000000000..51ea90961ce5
--- /dev/null
+++ b/sdk/analysisservices/arm-analysisservices/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "module": "es6",
+ "moduleResolution": "node",
+ "strict": true,
+ "target": "es5",
+ "sourceMap": true,
+ "declarationMap": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "forceConsistentCasingInFileNames": true,
+ "lib": ["es6"],
+ "declaration": true,
+ "outDir": "./esm",
+ "importHelpers": true
+ },
+ "include": ["./lib/**/*.ts"],
+ "exclude": ["node_modules"]
+}