diff --git a/packages/@azure/arm-resourcehealth/.npmignore b/packages/@azure/arm-resourcehealth/.npmignore
new file mode 100644
index 000000000000..a07a455ac10c
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/.npmignore
@@ -0,0 +1,35 @@
+#git
+.git
+.gitignore
+#gulp
+gulpfile.js
+#documentation
+doc/
+docs/
+#dependencies
+node_modules/
+#samples
+sample/
+samples/
+#tests
+test/
+tests/
+coverage/
+#tools and scripts
+tools/
+scripts/
+#IDE settings
+*.sln
+.vscode/
+.idea
+.editorconfig
+.ntvs_analysis.*
+#build tools
+.travis.yml
+.jenkins.yml
+.codeclimate.yml
+appveyor.yml
+# Nuget packages #
+.nuget/
+packages/
+packages.config
diff --git a/packages/@azure/arm-resourcehealth/LICENSE.txt b/packages/@azure/arm-resourcehealth/LICENSE.txt
new file mode 100644
index 000000000000..5431ba98b936
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2018 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/packages/@azure/arm-resourcehealth/README.md b/packages/@azure/arm-resourcehealth/README.md
new file mode 100644
index 000000000000..9cb43b02c0e7
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/README.md
@@ -0,0 +1,81 @@
+# Azure MicrosoftResourceHealth SDK for JavaScript
+This package contains an isomorphic SDK for MicrosoftResourceHealth.
+
+## Currently supported environments
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+## How to Install
+```
+npm install @azure/arm-resourcehealth
+```
+
+
+## How to use
+
+### nodejs - Authentication, client creation and listBySubscriptionId availabilityStatuses as an example written in TypeScript.
+
+```ts
+import * as msRest from "ms-rest-js";
+import * as msRestAzure from "ms-rest-azure-js";
+import * as msRestNodeAuth from "ms-rest-nodeauth";
+import { MicrosoftResourceHealth, MicrosoftResourceHealthModels, MicrosoftResourceHealthMappers } from "@azure/arm-resourcehealth";
+const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new MicrosoftResourceHealth(creds, subscriptionId);
+ const filter = "testfilter";
+ const expand = "testexpand";
+ client.availabilityStatuses.listBySubscriptionId(filter, expand).then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+### browser - Authentication, client creation and listBySubscriptionId availabilityStatuses as an example written in JavaScript.
+See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
+
+- index.html
+```html
+
+
+
+ @azure/arm-resourcehealth sample
+
+
+
+
+
+
+
+
+
+```
+
+# Related projects
+ - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.js b/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.js
new file mode 100644
index 000000000000..8b0eb63cdfa7
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.js
@@ -0,0 +1,1058 @@
+/*
+ * 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.
+ */
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ms-rest-azure-js'), require('ms-rest-js')) :
+ typeof define === 'function' && define.amd ? define(['exports', 'ms-rest-azure-js', 'ms-rest-js'], factory) :
+ (factory((global.Azure = global.Azure || {}, global.Azure.ArmResourcehealth = {}),global.msRestAzure,global.msRest));
+}(this, (function (exports,msRestAzure,msRest) { 'use strict';
+
+ /*! *****************************************************************************
+ Copyright (c) Microsoft Corporation. All rights reserved.
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+ this file except in compliance with the License. You may obtain a copy of the
+ License at http://www.apache.org/licenses/LICENSE-2.0
+
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+ MERCHANTABLITY OR NON-INFRINGEMENT.
+
+ See the Apache Version 2.0 License for specific language governing permissions
+ and limitations under the License.
+ ***************************************************************************** */
+ /* global Reflect, Promise */
+
+ var extendStatics = function(d, b) {
+ extendStatics = Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
+ return extendStatics(d, b);
+ };
+
+ function __extends(d, b) {
+ extendStatics(d, b);
+ function __() { this.constructor = d; }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+ }
+
+ /*
+ * 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.
+ */
+ /**
+ * Defines values for AvailabilityStateValues.
+ * Possible values include: 'Available', 'Unavailable', 'Unknown'
+ * @readonly
+ * @enum {string}
+ */
+ var AvailabilityStateValues;
+ (function (AvailabilityStateValues) {
+ AvailabilityStateValues["Available"] = "Available";
+ AvailabilityStateValues["Unavailable"] = "Unavailable";
+ AvailabilityStateValues["Unknown"] = "Unknown";
+ })(AvailabilityStateValues || (AvailabilityStateValues = {}));
+ /**
+ * Defines values for ReasonChronicityTypes.
+ * Possible values include: 'Transient', 'Persistent'
+ * @readonly
+ * @enum {string}
+ */
+ var ReasonChronicityTypes;
+ (function (ReasonChronicityTypes) {
+ ReasonChronicityTypes["Transient"] = "Transient";
+ ReasonChronicityTypes["Persistent"] = "Persistent";
+ })(ReasonChronicityTypes || (ReasonChronicityTypes = {}));
+
+ var index = /*#__PURE__*/Object.freeze({
+ get AvailabilityStateValues () { return AvailabilityStateValues; },
+ get ReasonChronicityTypes () { return ReasonChronicityTypes; }
+ });
+
+ /*
+ * 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.
+ */
+ var CloudError = msRestAzure.CloudErrorMapper;
+ var BaseResource = msRestAzure.BaseResourceMapper;
+ var AvailabilityStatusPropertiesRecentlyResolvedState = {
+ serializedName: "availabilityStatus_properties_recentlyResolvedState",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusPropertiesRecentlyResolvedState",
+ modelProperties: {
+ unavailableOccurredTime: {
+ serializedName: "unavailableOccurredTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ resolvedTime: {
+ serializedName: "resolvedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ unavailabilitySummary: {
+ serializedName: "unavailabilitySummary",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ };
+ var RecommendedAction = {
+ serializedName: "recommendedAction",
+ type: {
+ name: "Composite",
+ className: "RecommendedAction",
+ modelProperties: {
+ action: {
+ serializedName: "action",
+ type: {
+ name: "String"
+ }
+ },
+ actionUrl: {
+ serializedName: "actionUrl",
+ type: {
+ name: "String"
+ }
+ },
+ actionUrlText: {
+ serializedName: "actionUrlText",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ };
+ var ServiceImpactingEventStatus = {
+ serializedName: "serviceImpactingEvent_status",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEventStatus",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ };
+ var ServiceImpactingEventIncidentProperties = {
+ serializedName: "serviceImpactingEvent_incidentProperties",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEventIncidentProperties",
+ modelProperties: {
+ title: {
+ serializedName: "title",
+ type: {
+ name: "String"
+ }
+ },
+ service: {
+ serializedName: "service",
+ type: {
+ name: "String"
+ }
+ },
+ region: {
+ serializedName: "region",
+ type: {
+ name: "String"
+ }
+ },
+ incidentType: {
+ serializedName: "incidentType",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ };
+ var ServiceImpactingEvent = {
+ serializedName: "serviceImpactingEvent",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEvent",
+ modelProperties: {
+ eventStartTime: {
+ serializedName: "eventStartTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ eventStatusLastModifiedTime: {
+ serializedName: "eventStatusLastModifiedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ correlationId: {
+ serializedName: "correlationId",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEventStatus"
+ }
+ },
+ incidentProperties: {
+ serializedName: "incidentProperties",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEventIncidentProperties"
+ }
+ }
+ }
+ }
+ };
+ var AvailabilityStatusProperties = {
+ serializedName: "availabilityStatus_properties",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusProperties",
+ modelProperties: {
+ availabilityState: {
+ serializedName: "availabilityState",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Available",
+ "Unavailable",
+ "Unknown"
+ ]
+ }
+ },
+ summary: {
+ serializedName: "summary",
+ type: {
+ name: "String"
+ }
+ },
+ detailedStatus: {
+ serializedName: "detailedStatus",
+ type: {
+ name: "String"
+ }
+ },
+ reasonType: {
+ serializedName: "reasonType",
+ type: {
+ name: "String"
+ }
+ },
+ rootCauseAttributionTime: {
+ serializedName: "rootCauseAttributionTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ healthEventType: {
+ serializedName: "healthEventType",
+ type: {
+ name: "String"
+ }
+ },
+ healthEventCause: {
+ serializedName: "healthEventCause",
+ type: {
+ name: "String"
+ }
+ },
+ healthEventCategory: {
+ serializedName: "healthEventCategory",
+ type: {
+ name: "String"
+ }
+ },
+ healthEventId: {
+ serializedName: "healthEventId",
+ type: {
+ name: "String"
+ }
+ },
+ resolutionETA: {
+ serializedName: "resolutionETA",
+ type: {
+ name: "DateTime"
+ }
+ },
+ occuredTime: {
+ serializedName: "occuredTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ reasonChronicity: {
+ serializedName: "reasonChronicity",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Transient",
+ "Persistent"
+ ]
+ }
+ },
+ reportedTime: {
+ serializedName: "reportedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ recentlyResolvedState: {
+ serializedName: "recentlyResolvedState",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusPropertiesRecentlyResolvedState"
+ }
+ },
+ recommendedActions: {
+ serializedName: "recommendedActions",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "RecommendedAction"
+ }
+ }
+ }
+ },
+ serviceImpactingEvents: {
+ serializedName: "serviceImpactingEvents",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEvent"
+ }
+ }
+ }
+ }
+ }
+ }
+ };
+ var AvailabilityStatus = {
+ serializedName: "availabilityStatus",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatus",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ location: {
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusProperties"
+ }
+ }
+ }
+ }
+ };
+ var OperationDisplay = {
+ serializedName: "operation_display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay",
+ modelProperties: {
+ provider: {
+ serializedName: "provider",
+ type: {
+ name: "String"
+ }
+ },
+ resource: {
+ serializedName: "resource",
+ type: {
+ name: "String"
+ }
+ },
+ operation: {
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ };
+ var Operation = {
+ serializedName: "operation",
+ type: {
+ name: "Composite",
+ className: "Operation",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay"
+ }
+ }
+ }
+ }
+ };
+ var OperationListResult = {
+ serializedName: "operationListResult",
+ type: {
+ name: "Composite",
+ className: "OperationListResult",
+ modelProperties: {
+ value: {
+ required: true,
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Operation"
+ }
+ }
+ }
+ }
+ }
+ }
+ };
+ var ErrorResponse = {
+ serializedName: "ErrorResponse",
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ code: {
+ readOnly: true,
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ readOnly: true,
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ },
+ details: {
+ readOnly: true,
+ serializedName: "details",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ };
+ var AvailabilityStatusListResult = {
+ serializedName: "availabilityStatusListResult",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusListResult",
+ modelProperties: {
+ value: {
+ required: true,
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatus"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ };
+
+ var mappers = /*#__PURE__*/Object.freeze({
+ CloudError: CloudError,
+ BaseResource: BaseResource,
+ AvailabilityStatusPropertiesRecentlyResolvedState: AvailabilityStatusPropertiesRecentlyResolvedState,
+ RecommendedAction: RecommendedAction,
+ ServiceImpactingEventStatus: ServiceImpactingEventStatus,
+ ServiceImpactingEventIncidentProperties: ServiceImpactingEventIncidentProperties,
+ ServiceImpactingEvent: ServiceImpactingEvent,
+ AvailabilityStatusProperties: AvailabilityStatusProperties,
+ AvailabilityStatus: AvailabilityStatus,
+ OperationDisplay: OperationDisplay,
+ Operation: Operation,
+ OperationListResult: OperationListResult,
+ ErrorResponse: ErrorResponse,
+ AvailabilityStatusListResult: AvailabilityStatusListResult
+ });
+
+ /*
+ * 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.
+ */
+
+ var Mappers = /*#__PURE__*/Object.freeze({
+ AvailabilityStatusListResult: AvailabilityStatusListResult,
+ AvailabilityStatus: AvailabilityStatus,
+ AvailabilityStatusProperties: AvailabilityStatusProperties,
+ AvailabilityStatusPropertiesRecentlyResolvedState: AvailabilityStatusPropertiesRecentlyResolvedState,
+ RecommendedAction: RecommendedAction,
+ ServiceImpactingEvent: ServiceImpactingEvent,
+ ServiceImpactingEventStatus: ServiceImpactingEventStatus,
+ ServiceImpactingEventIncidentProperties: ServiceImpactingEventIncidentProperties,
+ ErrorResponse: ErrorResponse
+ });
+
+ /*
+ * 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.
+ */
+ var acceptLanguage = {
+ parameterPath: "acceptLanguage",
+ mapper: {
+ serializedName: "accept-language",
+ defaultValue: 'en-US',
+ type: {
+ name: "String"
+ }
+ }
+ };
+ var apiVersion = {
+ parameterPath: "apiVersion",
+ mapper: {
+ required: true,
+ serializedName: "api-version",
+ type: {
+ name: "String"
+ }
+ }
+ };
+ var expand = {
+ parameterPath: [
+ "options",
+ "expand"
+ ],
+ mapper: {
+ serializedName: "$expand",
+ type: {
+ name: "String"
+ }
+ }
+ };
+ var filter = {
+ parameterPath: [
+ "options",
+ "filter"
+ ],
+ mapper: {
+ serializedName: "$filter",
+ type: {
+ name: "String"
+ }
+ }
+ };
+ var nextPageLink = {
+ parameterPath: "nextPageLink",
+ mapper: {
+ required: true,
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+ };
+ var resourceGroupName = {
+ parameterPath: "resourceGroupName",
+ mapper: {
+ required: true,
+ serializedName: "resourceGroupName",
+ type: {
+ name: "String"
+ }
+ }
+ };
+ var resourceUri = {
+ parameterPath: "resourceUri",
+ mapper: {
+ required: true,
+ serializedName: "resourceUri",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+ };
+ var subscriptionId = {
+ parameterPath: "subscriptionId",
+ mapper: {
+ required: true,
+ serializedName: "subscriptionId",
+ type: {
+ name: "String"
+ }
+ }
+ };
+
+ /*
+ * 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.
+ */
+ /** Class representing a AvailabilityStatuses. */
+ var AvailabilityStatuses = /** @class */ (function () {
+ /**
+ * Create a AvailabilityStatuses.
+ * @param {MicrosoftResourceHealthContext} client Reference to the service client.
+ */
+ function AvailabilityStatuses(client) {
+ this.client = client;
+ }
+ AvailabilityStatuses.prototype.listBySubscriptionId = function (options, callback) {
+ return this.client.sendOperationRequest({
+ options: options
+ }, listBySubscriptionIdOperationSpec, callback);
+ };
+ AvailabilityStatuses.prototype.listByResourceGroup = function (resourceGroupName$$1, options, callback) {
+ return this.client.sendOperationRequest({
+ resourceGroupName: resourceGroupName$$1,
+ options: options
+ }, listByResourceGroupOperationSpec, callback);
+ };
+ AvailabilityStatuses.prototype.getByResource = function (resourceUri$$1, options, callback) {
+ return this.client.sendOperationRequest({
+ resourceUri: resourceUri$$1,
+ options: options
+ }, getByResourceOperationSpec, callback);
+ };
+ AvailabilityStatuses.prototype.list = function (resourceUri$$1, options, callback) {
+ return this.client.sendOperationRequest({
+ resourceUri: resourceUri$$1,
+ options: options
+ }, listOperationSpec, callback);
+ };
+ AvailabilityStatuses.prototype.listBySubscriptionIdNext = function (nextPageLink$$1, options, callback) {
+ return this.client.sendOperationRequest({
+ nextPageLink: nextPageLink$$1,
+ options: options
+ }, listBySubscriptionIdNextOperationSpec, callback);
+ };
+ AvailabilityStatuses.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
+ return this.client.sendOperationRequest({
+ nextPageLink: nextPageLink$$1,
+ options: options
+ }, listByResourceGroupNextOperationSpec, callback);
+ };
+ AvailabilityStatuses.prototype.listNext = function (nextPageLink$$1, options, callback) {
+ return this.client.sendOperationRequest({
+ nextPageLink: nextPageLink$$1,
+ options: options
+ }, listNextOperationSpec, callback);
+ };
+ return AvailabilityStatuses;
+ }());
+ // Operation Specifications
+ var serializer = new msRest.Serializer(Mappers);
+ var listBySubscriptionIdOperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",
+ urlParameters: [
+ subscriptionId
+ ],
+ queryParameters: [
+ apiVersion,
+ filter,
+ expand
+ ],
+ headerParameters: [
+ acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: ErrorResponse
+ }
+ },
+ serializer: serializer
+ };
+ var listByResourceGroupOperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",
+ urlParameters: [
+ subscriptionId,
+ resourceGroupName
+ ],
+ queryParameters: [
+ apiVersion,
+ filter,
+ expand
+ ],
+ headerParameters: [
+ acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: ErrorResponse
+ }
+ },
+ serializer: serializer
+ };
+ var getByResourceOperationSpec = {
+ httpMethod: "GET",
+ path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
+ urlParameters: [
+ resourceUri
+ ],
+ queryParameters: [
+ apiVersion,
+ filter,
+ expand
+ ],
+ headerParameters: [
+ acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: AvailabilityStatus
+ },
+ default: {
+ bodyMapper: ErrorResponse
+ }
+ },
+ serializer: serializer
+ };
+ var listOperationSpec = {
+ httpMethod: "GET",
+ path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",
+ urlParameters: [
+ resourceUri
+ ],
+ queryParameters: [
+ apiVersion,
+ filter,
+ expand
+ ],
+ headerParameters: [
+ acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: ErrorResponse
+ }
+ },
+ serializer: serializer
+ };
+ var listBySubscriptionIdNextOperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ nextPageLink
+ ],
+ headerParameters: [
+ acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: ErrorResponse
+ }
+ },
+ serializer: serializer
+ };
+ var listByResourceGroupNextOperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ nextPageLink
+ ],
+ headerParameters: [
+ acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: ErrorResponse
+ }
+ },
+ serializer: serializer
+ };
+ var listNextOperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ nextPageLink
+ ],
+ headerParameters: [
+ acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: ErrorResponse
+ }
+ },
+ serializer: serializer
+ };
+
+ /*
+ * 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.
+ */
+
+ var Mappers$1 = /*#__PURE__*/Object.freeze({
+ OperationListResult: OperationListResult,
+ Operation: Operation,
+ OperationDisplay: OperationDisplay,
+ ErrorResponse: ErrorResponse
+ });
+
+ /*
+ * 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.
+ */
+ /** Class representing a Operations. */
+ var Operations = /** @class */ (function () {
+ /**
+ * Create a Operations.
+ * @param {MicrosoftResourceHealthContext} client Reference to the service client.
+ */
+ function Operations(client) {
+ this.client = client;
+ }
+ Operations.prototype.list = function (options, callback) {
+ return this.client.sendOperationRequest({
+ options: options
+ }, listOperationSpec$1, callback);
+ };
+ return Operations;
+ }());
+ // Operation Specifications
+ var serializer$1 = new msRest.Serializer(Mappers$1);
+ var listOperationSpec$1 = {
+ httpMethod: "GET",
+ path: "providers/Microsoft.ResourceHealth/operations",
+ queryParameters: [
+ apiVersion
+ ],
+ headerParameters: [
+ acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: OperationListResult
+ },
+ default: {
+ bodyMapper: ErrorResponse
+ }
+ },
+ serializer: serializer$1
+ };
+
+ /*
+ * 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.
+ */
+
+ /*
+ * 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.
+ */
+ var packageName = "@azure/arm-resourcehealth";
+ var packageVersion = "1.0.0";
+ var MicrosoftResourceHealthContext = /** @class */ (function (_super) {
+ __extends(MicrosoftResourceHealthContext, _super);
+ /**
+ * Initializes a new instance of the MicrosoftResourceHealth class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
+ * subscription. The subscription ID forms part of the URI for every service call.
+ * @param [options] The parameter options
+ */
+ function MicrosoftResourceHealthContext(credentials, subscriptionId, options) {
+ var _this = this;
+ if (credentials == undefined) {
+ throw new Error('\'credentials\' cannot be null.');
+ }
+ if (subscriptionId == undefined) {
+ throw new Error('\'subscriptionId\' cannot be null.');
+ }
+ if (!options) {
+ options = {};
+ }
+ _this = _super.call(this, credentials, options) || this;
+ _this.apiVersion = '2017-07-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;
+ _this.addUserAgentInfo(packageName + "/" + packageVersion);
+ if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
+ _this.acceptLanguage = options.acceptLanguage;
+ }
+ if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
+ _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
+ }
+ return _this;
+ }
+ return MicrosoftResourceHealthContext;
+ }(msRestAzure.AzureServiceClient));
+
+ /*
+ * 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.
+ */
+ var MicrosoftResourceHealth = /** @class */ (function (_super) {
+ __extends(MicrosoftResourceHealth, _super);
+ /**
+ * Initializes a new instance of the MicrosoftResourceHealth class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure
+ * subscription. The subscription ID forms part of the URI for every service call.
+ * @param [options] The parameter options
+ */
+ function MicrosoftResourceHealth(credentials, subscriptionId, options) {
+ var _this = _super.call(this, credentials, subscriptionId, options) || this;
+ _this.availabilityStatuses = new AvailabilityStatuses(_this);
+ _this.operations = new Operations(_this);
+ return _this;
+ }
+ return MicrosoftResourceHealth;
+ }(MicrosoftResourceHealthContext));
+
+ exports.MicrosoftResourceHealth = MicrosoftResourceHealth;
+ exports.MicrosoftResourceHealthContext = MicrosoftResourceHealthContext;
+ exports.MicrosoftResourceHealthModels = index;
+ exports.MicrosoftResourceHealthMappers = mappers;
+ exports.AvailabilityStatuses = AvailabilityStatuses;
+ exports.Operations = Operations;
+
+ Object.defineProperty(exports, '__esModule', { value: true });
+
+})));
+//# sourceMappingURL=arm-resourcehealth.js.map
diff --git a/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.js.map b/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.js.map
new file mode 100644
index 000000000000..01863113c699
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"arm-resourcehealth.js","sources":["../node_modules/tslib/tslib.es6.js","../esm/models/index.js","../esm/models/mappers.js","../esm/models/availabilityStatusesMappers.js","../esm/models/parameters.js","../esm/operations/availabilityStatuses.js","../esm/models/operationsMappers.js","../esm/operations/operations.js","../esm/operations/index.js","../esm/microsoftResourceHealthContext.js","../esm/microsoftResourceHealth.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\n/**\r\n * Defines values for AvailabilityStateValues.\r\n * Possible values include: 'Available', 'Unavailable', 'Unknown'\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var AvailabilityStateValues;\r\n(function (AvailabilityStateValues) {\r\n AvailabilityStateValues[\"Available\"] = \"Available\";\r\n AvailabilityStateValues[\"Unavailable\"] = \"Unavailable\";\r\n AvailabilityStateValues[\"Unknown\"] = \"Unknown\";\r\n})(AvailabilityStateValues || (AvailabilityStateValues = {}));\r\n/**\r\n * Defines values for ReasonChronicityTypes.\r\n * Possible values include: 'Transient', 'Persistent'\r\n * @readonly\r\n * @enum {string}\r\n */\r\nexport var ReasonChronicityTypes;\r\n(function (ReasonChronicityTypes) {\r\n ReasonChronicityTypes[\"Transient\"] = \"Transient\";\r\n ReasonChronicityTypes[\"Persistent\"] = \"Persistent\";\r\n})(ReasonChronicityTypes || (ReasonChronicityTypes = {}));\r\n//# sourceMappingURL=index.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport { CloudErrorMapper, BaseResourceMapper } from \"ms-rest-azure-js\";\r\nexport var CloudError = CloudErrorMapper;\r\nexport var BaseResource = BaseResourceMapper;\r\nexport var AvailabilityStatusPropertiesRecentlyResolvedState = {\r\n serializedName: \"availabilityStatus_properties_recentlyResolvedState\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"AvailabilityStatusPropertiesRecentlyResolvedState\",\r\n modelProperties: {\r\n unavailableOccurredTime: {\r\n serializedName: \"unavailableOccurredTime\",\r\n type: {\r\n name: \"DateTime\"\r\n }\r\n },\r\n resolvedTime: {\r\n serializedName: \"resolvedTime\",\r\n type: {\r\n name: \"DateTime\"\r\n }\r\n },\r\n unavailabilitySummary: {\r\n serializedName: \"unavailabilitySummary\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var RecommendedAction = {\r\n serializedName: \"recommendedAction\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"RecommendedAction\",\r\n modelProperties: {\r\n action: {\r\n serializedName: \"action\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n actionUrl: {\r\n serializedName: \"actionUrl\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n actionUrlText: {\r\n serializedName: \"actionUrlText\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ServiceImpactingEventStatus = {\r\n serializedName: \"serviceImpactingEvent_status\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ServiceImpactingEventStatus\",\r\n modelProperties: {\r\n value: {\r\n serializedName: \"value\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ServiceImpactingEventIncidentProperties = {\r\n serializedName: \"serviceImpactingEvent_incidentProperties\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ServiceImpactingEventIncidentProperties\",\r\n modelProperties: {\r\n title: {\r\n serializedName: \"title\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n service: {\r\n serializedName: \"service\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n region: {\r\n serializedName: \"region\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n incidentType: {\r\n serializedName: \"incidentType\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ServiceImpactingEvent = {\r\n serializedName: \"serviceImpactingEvent\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ServiceImpactingEvent\",\r\n modelProperties: {\r\n eventStartTime: {\r\n serializedName: \"eventStartTime\",\r\n type: {\r\n name: \"DateTime\"\r\n }\r\n },\r\n eventStatusLastModifiedTime: {\r\n serializedName: \"eventStatusLastModifiedTime\",\r\n type: {\r\n name: \"DateTime\"\r\n }\r\n },\r\n correlationId: {\r\n serializedName: \"correlationId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n status: {\r\n serializedName: \"status\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ServiceImpactingEventStatus\"\r\n }\r\n },\r\n incidentProperties: {\r\n serializedName: \"incidentProperties\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ServiceImpactingEventIncidentProperties\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var AvailabilityStatusProperties = {\r\n serializedName: \"availabilityStatus_properties\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"AvailabilityStatusProperties\",\r\n modelProperties: {\r\n availabilityState: {\r\n serializedName: \"availabilityState\",\r\n type: {\r\n name: \"Enum\",\r\n allowedValues: [\r\n \"Available\",\r\n \"Unavailable\",\r\n \"Unknown\"\r\n ]\r\n }\r\n },\r\n summary: {\r\n serializedName: \"summary\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n detailedStatus: {\r\n serializedName: \"detailedStatus\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n reasonType: {\r\n serializedName: \"reasonType\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n rootCauseAttributionTime: {\r\n serializedName: \"rootCauseAttributionTime\",\r\n type: {\r\n name: \"DateTime\"\r\n }\r\n },\r\n healthEventType: {\r\n serializedName: \"healthEventType\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n healthEventCause: {\r\n serializedName: \"healthEventCause\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n healthEventCategory: {\r\n serializedName: \"healthEventCategory\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n healthEventId: {\r\n serializedName: \"healthEventId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n resolutionETA: {\r\n serializedName: \"resolutionETA\",\r\n type: {\r\n name: \"DateTime\"\r\n }\r\n },\r\n occuredTime: {\r\n serializedName: \"occuredTime\",\r\n type: {\r\n name: \"DateTime\"\r\n }\r\n },\r\n reasonChronicity: {\r\n serializedName: \"reasonChronicity\",\r\n type: {\r\n name: \"Enum\",\r\n allowedValues: [\r\n \"Transient\",\r\n \"Persistent\"\r\n ]\r\n }\r\n },\r\n reportedTime: {\r\n serializedName: \"reportedTime\",\r\n type: {\r\n name: \"DateTime\"\r\n }\r\n },\r\n recentlyResolvedState: {\r\n serializedName: \"recentlyResolvedState\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"AvailabilityStatusPropertiesRecentlyResolvedState\"\r\n }\r\n },\r\n recommendedActions: {\r\n serializedName: \"recommendedActions\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"RecommendedAction\"\r\n }\r\n }\r\n }\r\n },\r\n serviceImpactingEvents: {\r\n serializedName: \"serviceImpactingEvents\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"ServiceImpactingEvent\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var AvailabilityStatus = {\r\n serializedName: \"availabilityStatus\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"AvailabilityStatus\",\r\n modelProperties: {\r\n id: {\r\n serializedName: \"id\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n name: {\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n type: {\r\n serializedName: \"type\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n location: {\r\n serializedName: \"location\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n properties: {\r\n serializedName: \"properties\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"AvailabilityStatusProperties\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var OperationDisplay = {\r\n serializedName: \"operation_display\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationDisplay\",\r\n modelProperties: {\r\n provider: {\r\n serializedName: \"provider\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n resource: {\r\n serializedName: \"resource\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n operation: {\r\n serializedName: \"operation\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n description: {\r\n serializedName: \"description\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var Operation = {\r\n serializedName: \"operation\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"Operation\",\r\n modelProperties: {\r\n name: {\r\n serializedName: \"name\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n display: {\r\n serializedName: \"display\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationDisplay\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var OperationListResult = {\r\n serializedName: \"operationListResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"OperationListResult\",\r\n modelProperties: {\r\n value: {\r\n required: true,\r\n serializedName: \"value\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"Operation\"\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var ErrorResponse = {\r\n serializedName: \"ErrorResponse\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"ErrorResponse\",\r\n modelProperties: {\r\n code: {\r\n readOnly: true,\r\n serializedName: \"code\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n message: {\r\n readOnly: true,\r\n serializedName: \"message\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n details: {\r\n readOnly: true,\r\n serializedName: \"details\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\nexport var AvailabilityStatusListResult = {\r\n serializedName: \"availabilityStatusListResult\",\r\n type: {\r\n name: \"Composite\",\r\n className: \"AvailabilityStatusListResult\",\r\n modelProperties: {\r\n value: {\r\n required: true,\r\n serializedName: \"\",\r\n type: {\r\n name: \"Sequence\",\r\n element: {\r\n type: {\r\n name: \"Composite\",\r\n className: \"AvailabilityStatus\"\r\n }\r\n }\r\n }\r\n },\r\n nextLink: {\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n }\r\n }\r\n};\r\n//# sourceMappingURL=mappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport { AvailabilityStatusListResult, AvailabilityStatus, AvailabilityStatusProperties, AvailabilityStatusPropertiesRecentlyResolvedState, RecommendedAction, ServiceImpactingEvent, ServiceImpactingEventStatus, ServiceImpactingEventIncidentProperties, ErrorResponse } from \"../models/mappers\";\r\n//# sourceMappingURL=availabilityStatusesMappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport var acceptLanguage = {\r\n parameterPath: \"acceptLanguage\",\r\n mapper: {\r\n serializedName: \"accept-language\",\r\n defaultValue: 'en-US',\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var apiVersion = {\r\n parameterPath: \"apiVersion\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"api-version\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var expand = {\r\n parameterPath: [\r\n \"options\",\r\n \"expand\"\r\n ],\r\n mapper: {\r\n serializedName: \"$expand\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var filter = {\r\n parameterPath: [\r\n \"options\",\r\n \"filter\"\r\n ],\r\n mapper: {\r\n serializedName: \"$filter\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var nextPageLink = {\r\n parameterPath: \"nextPageLink\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"nextLink\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n skipEncoding: true\r\n};\r\nexport var resourceGroupName = {\r\n parameterPath: \"resourceGroupName\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"resourceGroupName\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\nexport var resourceUri = {\r\n parameterPath: \"resourceUri\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"resourceUri\",\r\n type: {\r\n name: \"String\"\r\n }\r\n },\r\n skipEncoding: true\r\n};\r\nexport var subscriptionId = {\r\n parameterPath: \"subscriptionId\",\r\n mapper: {\r\n required: true,\r\n serializedName: \"subscriptionId\",\r\n type: {\r\n name: \"String\"\r\n }\r\n }\r\n};\r\n//# sourceMappingURL=parameters.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as msRest from \"ms-rest-js\";\r\nimport * as Mappers from \"../models/availabilityStatusesMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a AvailabilityStatuses. */\r\nvar AvailabilityStatuses = /** @class */ (function () {\r\n /**\r\n * Create a AvailabilityStatuses.\r\n * @param {MicrosoftResourceHealthContext} client Reference to the service client.\r\n */\r\n function AvailabilityStatuses(client) {\r\n this.client = client;\r\n }\r\n AvailabilityStatuses.prototype.listBySubscriptionId = function (options, callback) {\r\n return this.client.sendOperationRequest({\r\n options: options\r\n }, listBySubscriptionIdOperationSpec, callback);\r\n };\r\n AvailabilityStatuses.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceGroupName: resourceGroupName,\r\n options: options\r\n }, listByResourceGroupOperationSpec, callback);\r\n };\r\n AvailabilityStatuses.prototype.getByResource = function (resourceUri, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceUri: resourceUri,\r\n options: options\r\n }, getByResourceOperationSpec, callback);\r\n };\r\n AvailabilityStatuses.prototype.list = function (resourceUri, options, callback) {\r\n return this.client.sendOperationRequest({\r\n resourceUri: resourceUri,\r\n options: options\r\n }, listOperationSpec, callback);\r\n };\r\n AvailabilityStatuses.prototype.listBySubscriptionIdNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listBySubscriptionIdNextOperationSpec, callback);\r\n };\r\n AvailabilityStatuses.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listByResourceGroupNextOperationSpec, callback);\r\n };\r\n AvailabilityStatuses.prototype.listNext = function (nextPageLink, options, callback) {\r\n return this.client.sendOperationRequest({\r\n nextPageLink: nextPageLink,\r\n options: options\r\n }, listNextOperationSpec, callback);\r\n };\r\n return AvailabilityStatuses;\r\n}());\r\nexport { AvailabilityStatuses };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar listBySubscriptionIdOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses\",\r\n urlParameters: [\r\n Parameters.subscriptionId\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion,\r\n Parameters.filter,\r\n Parameters.expand\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.AvailabilityStatusListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listByResourceGroupOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses\",\r\n urlParameters: [\r\n Parameters.subscriptionId,\r\n Parameters.resourceGroupName\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion,\r\n Parameters.filter,\r\n Parameters.expand\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.AvailabilityStatusListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar getByResourceOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current\",\r\n urlParameters: [\r\n Parameters.resourceUri\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion,\r\n Parameters.filter,\r\n Parameters.expand\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.AvailabilityStatus\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses\",\r\n urlParameters: [\r\n Parameters.resourceUri\r\n ],\r\n queryParameters: [\r\n Parameters.apiVersion,\r\n Parameters.filter,\r\n Parameters.expand\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.AvailabilityStatusListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listBySubscriptionIdNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.AvailabilityStatusListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listByResourceGroupNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.AvailabilityStatusListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\nvar listNextOperationSpec = {\r\n httpMethod: \"GET\",\r\n baseUrl: \"https://management.azure.com\",\r\n path: \"{nextLink}\",\r\n urlParameters: [\r\n Parameters.nextPageLink\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.AvailabilityStatusListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=availabilityStatuses.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport { OperationListResult, Operation, OperationDisplay, ErrorResponse } from \"../models/mappers\";\r\n//# sourceMappingURL=operationsMappers.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as msRest from \"ms-rest-js\";\r\nimport * as Mappers from \"../models/operationsMappers\";\r\nimport * as Parameters from \"../models/parameters\";\r\n/** Class representing a Operations. */\r\nvar Operations = /** @class */ (function () {\r\n /**\r\n * Create a Operations.\r\n * @param {MicrosoftResourceHealthContext} client Reference to the service client.\r\n */\r\n function Operations(client) {\r\n this.client = client;\r\n }\r\n Operations.prototype.list = function (options, callback) {\r\n return this.client.sendOperationRequest({\r\n options: options\r\n }, listOperationSpec, callback);\r\n };\r\n return Operations;\r\n}());\r\nexport { Operations };\r\n// Operation Specifications\r\nvar serializer = new msRest.Serializer(Mappers);\r\nvar listOperationSpec = {\r\n httpMethod: \"GET\",\r\n path: \"providers/Microsoft.ResourceHealth/operations\",\r\n queryParameters: [\r\n Parameters.apiVersion\r\n ],\r\n headerParameters: [\r\n Parameters.acceptLanguage\r\n ],\r\n responses: {\r\n 200: {\r\n bodyMapper: Mappers.OperationListResult\r\n },\r\n default: {\r\n bodyMapper: Mappers.ErrorResponse\r\n }\r\n },\r\n serializer: serializer\r\n};\r\n//# sourceMappingURL=operations.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nexport * from \"./availabilityStatuses\";\r\nexport * from \"./operations\";\r\n//# sourceMappingURL=index.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport * as msRestAzure from \"ms-rest-azure-js\";\r\nvar packageName = \"@azure/arm-resourcehealth\";\r\nvar packageVersion = \"1.0.0\";\r\nvar MicrosoftResourceHealthContext = /** @class */ (function (_super) {\r\n tslib_1.__extends(MicrosoftResourceHealthContext, _super);\r\n /**\r\n * Initializes a new instance of the MicrosoftResourceHealth class.\r\n * @param credentials Credentials needed for the client to connect to Azure.\r\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure\r\n * subscription. The subscription ID forms part of the URI for every service call.\r\n * @param [options] The parameter options\r\n */\r\n function MicrosoftResourceHealthContext(credentials, subscriptionId, options) {\r\n var _this = this;\r\n if (credentials == undefined) {\r\n throw new Error('\\'credentials\\' cannot be null.');\r\n }\r\n if (subscriptionId == undefined) {\r\n throw new Error('\\'subscriptionId\\' cannot be null.');\r\n }\r\n if (!options) {\r\n options = {};\r\n }\r\n _this = _super.call(this, credentials, options) || this;\r\n _this.apiVersion = '2017-07-01';\r\n _this.acceptLanguage = 'en-US';\r\n _this.longRunningOperationRetryTimeout = 30;\r\n _this.baseUri = options.baseUri || _this.baseUri || \"https://management.azure.com\";\r\n _this.requestContentType = \"application/json; charset=utf-8\";\r\n _this.credentials = credentials;\r\n _this.subscriptionId = subscriptionId;\r\n _this.addUserAgentInfo(packageName + \"/\" + packageVersion);\r\n if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {\r\n _this.acceptLanguage = options.acceptLanguage;\r\n }\r\n if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {\r\n _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;\r\n }\r\n return _this;\r\n }\r\n return MicrosoftResourceHealthContext;\r\n}(msRestAzure.AzureServiceClient));\r\nexport { MicrosoftResourceHealthContext };\r\n//# sourceMappingURL=microsoftResourceHealthContext.js.map","/*\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for\r\n * license information.\r\n *\r\n * Code generated by Microsoft (R) AutoRest Code Generator.\r\n * Changes may cause incorrect behavior and will be lost if the code is\r\n * regenerated.\r\n */\r\nimport * as tslib_1 from \"tslib\";\r\nimport * as Models from \"./models\";\r\nimport * as Mappers from \"./models/mappers\";\r\nimport * as operations from \"./operations\";\r\nimport { MicrosoftResourceHealthContext } from \"./microsoftResourceHealthContext\";\r\nvar MicrosoftResourceHealth = /** @class */ (function (_super) {\r\n tslib_1.__extends(MicrosoftResourceHealth, _super);\r\n /**\r\n * Initializes a new instance of the MicrosoftResourceHealth class.\r\n * @param credentials Credentials needed for the client to connect to Azure.\r\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure\r\n * subscription. The subscription ID forms part of the URI for every service call.\r\n * @param [options] The parameter options\r\n */\r\n function MicrosoftResourceHealth(credentials, subscriptionId, options) {\r\n var _this = _super.call(this, credentials, subscriptionId, options) || this;\r\n _this.availabilityStatuses = new operations.AvailabilityStatuses(_this);\r\n _this.operations = new operations.Operations(_this);\r\n return _this;\r\n }\r\n return MicrosoftResourceHealth;\r\n}(MicrosoftResourceHealthContext));\r\n// Operation Specifications\r\nexport { MicrosoftResourceHealth, MicrosoftResourceHealthContext, Models as MicrosoftResourceHealthModels, Mappers as MicrosoftResourceHealthMappers };\r\nexport * from \"./operations\";\r\n//# sourceMappingURL=microsoftResourceHealth.js.map"],"names":["CloudErrorMapper","BaseResourceMapper","resourceGroupName","resourceUri","nextPageLink","msRest.Serializer","Parameters.subscriptionId","Parameters.apiVersion","Parameters.filter","Parameters.expand","Parameters.acceptLanguage","Mappers.AvailabilityStatusListResult","Mappers.ErrorResponse","Parameters.resourceGroupName","Parameters.resourceUri","Mappers.AvailabilityStatus","Parameters.nextPageLink","listOperationSpec","serializer","Mappers","Mappers.OperationListResult","tslib_1.__extends","msRestAzure.AzureServiceClient","operations.AvailabilityStatuses","operations.Operations"],"mappings":";;;;;;;;;;;;;;;IAAA;IACA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,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AAc,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC;IACpF,QAAQ,KAAK,CAAC,oBAAoB,GAAG,IAAIE,oBAA+B,CAAC,KAAK,CAAC,CAAC;IAChF,QAAQ,KAAK,CAAC,UAAU,GAAG,IAAIC,UAAqB,CAAC,KAAK,CAAC,CAAC;IAC5D,QAAQ,OAAO,KAAK,CAAC;IACrB,KAAK;IACL,IAAI,OAAO,uBAAuB,CAAC;IACnC,CAAC,CAAC,8BAA8B,CAAC,CAAC;;;;;;;;;;;;;;;;;"}
\ No newline at end of file
diff --git a/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.min.js b/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.min.js
new file mode 100644
index 000000000000..9aafae4ee01d
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.min.js
@@ -0,0 +1 @@
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("ms-rest-azure-js"),require("ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","ms-rest-azure-js","ms-rest-js"],t):t((e.Azure=e.Azure||{},e.Azure.ArmResourcehealth={}),e.msRestAzure,e.msRest)}(this,function(e,t,a){"use strict";var i,r,n,s,o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])})(e,t)};function p(e,t){function a(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}(r=i||(i={})).Available="Available",r.Unavailable="Unavailable",r.Unknown="Unknown",(s=n||(n={})).Transient="Transient",s.Persistent="Persistent";var l=Object.freeze({get AvailabilityStateValues(){return i},get ReasonChronicityTypes(){return n}}),m=t.CloudErrorMapper,u=t.BaseResourceMapper,c={serializedName:"availabilityStatus_properties_recentlyResolvedState",type:{name:"Composite",className:"AvailabilityStatusPropertiesRecentlyResolvedState",modelProperties:{unavailableOccurredTime:{serializedName:"unavailableOccurredTime",type:{name:"DateTime"}},resolvedTime:{serializedName:"resolvedTime",type:{name:"DateTime"}},unavailabilitySummary:{serializedName:"unavailabilitySummary",type:{name:"String"}}}}},d={serializedName:"recommendedAction",type:{name:"Composite",className:"RecommendedAction",modelProperties:{action:{serializedName:"action",type:{name:"String"}},actionUrl:{serializedName:"actionUrl",type:{name:"String"}},actionUrlText:{serializedName:"actionUrlText",type:{name:"String"}}}}},y={serializedName:"serviceImpactingEvent_status",type:{name:"Composite",className:"ServiceImpactingEventStatus",modelProperties:{value:{serializedName:"value",type:{name:"String"}}}}},v={serializedName:"serviceImpactingEvent_incidentProperties",type:{name:"Composite",className:"ServiceImpactingEventIncidentProperties",modelProperties:{title:{serializedName:"title",type:{name:"String"}},service:{serializedName:"service",type:{name:"String"}},region:{serializedName:"region",type:{name:"String"}},incidentType:{serializedName:"incidentType",type:{name:"String"}}}}},S={serializedName:"serviceImpactingEvent",type:{name:"Composite",className:"ServiceImpactingEvent",modelProperties:{eventStartTime:{serializedName:"eventStartTime",type:{name:"DateTime"}},eventStatusLastModifiedTime:{serializedName:"eventStatusLastModifiedTime",type:{name:"DateTime"}},correlationId:{serializedName:"correlationId",type:{name:"String"}},status:{serializedName:"status",type:{name:"Composite",className:"ServiceImpactingEventStatus"}},incidentProperties:{serializedName:"incidentProperties",type:{name:"Composite",className:"ServiceImpactingEventIncidentProperties"}}}}},g={serializedName:"availabilityStatus_properties",type:{name:"Composite",className:"AvailabilityStatusProperties",modelProperties:{availabilityState:{serializedName:"availabilityState",type:{name:"Enum",allowedValues:["Available","Unavailable","Unknown"]}},summary:{serializedName:"summary",type:{name:"String"}},detailedStatus:{serializedName:"detailedStatus",type:{name:"String"}},reasonType:{serializedName:"reasonType",type:{name:"String"}},rootCauseAttributionTime:{serializedName:"rootCauseAttributionTime",type:{name:"DateTime"}},healthEventType:{serializedName:"healthEventType",type:{name:"String"}},healthEventCause:{serializedName:"healthEventCause",type:{name:"String"}},healthEventCategory:{serializedName:"healthEventCategory",type:{name:"String"}},healthEventId:{serializedName:"healthEventId",type:{name:"String"}},resolutionETA:{serializedName:"resolutionETA",type:{name:"DateTime"}},occuredTime:{serializedName:"occuredTime",type:{name:"DateTime"}},reasonChronicity:{serializedName:"reasonChronicity",type:{name:"Enum",allowedValues:["Transient","Persistent"]}},reportedTime:{serializedName:"reportedTime",type:{name:"DateTime"}},recentlyResolvedState:{serializedName:"recentlyResolvedState",type:{name:"Composite",className:"AvailabilityStatusPropertiesRecentlyResolvedState"}},recommendedActions:{serializedName:"recommendedActions",type:{name:"Sequence",element:{type:{name:"Composite",className:"RecommendedAction"}}}},serviceImpactingEvents:{serializedName:"serviceImpactingEvents",type:{name:"Sequence",element:{type:{name:"Composite",className:"ServiceImpactingEvent"}}}}}}},h={serializedName:"availabilityStatus",type:{name:"Composite",className:"AvailabilityStatus",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}},location:{serializedName:"location",type:{name:"String"}},properties:{serializedName:"properties",type:{name:"Composite",className:"AvailabilityStatusProperties"}}}}},N={serializedName:"operation_display",type:{name:"Composite",className:"OperationDisplay",modelProperties:{provider:{serializedName:"provider",type:{name:"String"}},resource:{serializedName:"resource",type:{name:"String"}},operation:{serializedName:"operation",type:{name:"String"}},description:{serializedName:"description",type:{name:"String"}}}}},z={serializedName:"operation",type:{name:"Composite",className:"Operation",modelProperties:{name:{serializedName:"name",type:{name:"String"}},display:{serializedName:"display",type:{name:"Composite",className:"OperationDisplay"}}}}},b={serializedName:"operationListResult",type:{name:"Composite",className:"OperationListResult",modelProperties:{value:{required:!0,serializedName:"value",type:{name:"Sequence",element:{type:{name:"Composite",className:"Operation"}}}}}}},f={serializedName:"ErrorResponse",type:{name:"Composite",className:"ErrorResponse",modelProperties:{code:{readOnly:!0,serializedName:"code",type:{name:"String"}},message:{readOnly:!0,serializedName:"message",type:{name:"String"}},details:{readOnly:!0,serializedName:"details",type:{name:"String"}}}}},P={serializedName:"availabilityStatusListResult",type:{name:"Composite",className:"AvailabilityStatusListResult",modelProperties:{value:{required:!0,serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"AvailabilityStatus"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},R=Object.freeze({CloudError:m,BaseResource:u,AvailabilityStatusPropertiesRecentlyResolvedState:c,RecommendedAction:d,ServiceImpactingEventStatus:y,ServiceImpactingEventIncidentProperties:v,ServiceImpactingEvent:S,AvailabilityStatusProperties:g,AvailabilityStatus:h,OperationDisplay:N,Operation:z,OperationListResult:b,ErrorResponse:f,AvailabilityStatusListResult:P}),T=Object.freeze({AvailabilityStatusListResult:P,AvailabilityStatus:h,AvailabilityStatusProperties:g,AvailabilityStatusPropertiesRecentlyResolvedState:c,RecommendedAction:d,ServiceImpactingEvent:S,ServiceImpactingEventStatus:y,ServiceImpactingEventIncidentProperties:v,ErrorResponse:f}),E={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},M={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",type:{name:"String"}}},A={parameterPath:["options","expand"],mapper:{serializedName:"$expand",type:{name:"String"}}},O={parameterPath:["options","filter"],mapper:{serializedName:"$filter",type:{name:"String"}}},C={parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0},I={parameterPath:"resourceUri",mapper:{required:!0,serializedName:"resourceUri",type:{name:"String"}},skipEncoding:!0},q={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",type:{name:"String"}}},L=function(){function e(e){this.client=e}return e.prototype.listBySubscriptionId=function(e,t){return this.client.sendOperationRequest({options:e},x,t)},e.prototype.listByResourceGroup=function(e,t,a){return this.client.sendOperationRequest({resourceGroupName:e,options:t},_,a)},e.prototype.getByResource=function(e,t,a){return this.client.sendOperationRequest({resourceUri:e,options:t},k,a)},e.prototype.list=function(e,t,a){return this.client.sendOperationRequest({resourceUri:e,options:t},w,a)},e.prototype.listBySubscriptionIdNext=function(e,t,a){return this.client.sendOperationRequest({nextPageLink:e,options:t},G,a)},e.prototype.listByResourceGroupNext=function(e,t,a){return this.client.sendOperationRequest({nextPageLink:e,options:t},j,a)},e.prototype.listNext=function(e,t,a){return this.client.sendOperationRequest({nextPageLink:e,options:t},D,a)},e}(),U=new a.Serializer(T),x={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",urlParameters:[q],queryParameters:[M,O,A],headerParameters:[E],responses:{200:{bodyMapper:P},default:{bodyMapper:f}},serializer:U},_={httpMethod:"GET",path:"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",urlParameters:[q,{parameterPath:"resourceGroupName",mapper:{required:!0,serializedName:"resourceGroupName",type:{name:"String"}}}],queryParameters:[M,O,A],headerParameters:[E],responses:{200:{bodyMapper:P},default:{bodyMapper:f}},serializer:U},k={httpMethod:"GET",path:"{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",urlParameters:[I],queryParameters:[M,O,A],headerParameters:[E],responses:{200:{bodyMapper:h},default:{bodyMapper:f}},serializer:U},w={httpMethod:"GET",path:"{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",urlParameters:[I],queryParameters:[M,O,A],headerParameters:[E],responses:{200:{bodyMapper:P},default:{bodyMapper:f}},serializer:U},G={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[C],headerParameters:[E],responses:{200:{bodyMapper:P},default:{bodyMapper:f}},serializer:U},j={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[C],headerParameters:[E],responses:{200:{bodyMapper:P},default:{bodyMapper:f}},serializer:U},D={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[C],headerParameters:[E],responses:{200:{bodyMapper:P},default:{bodyMapper:f}},serializer:U},H=Object.freeze({OperationListResult:b,Operation:z,OperationDisplay:N,ErrorResponse:f}),B=function(){function e(e){this.client=e}return e.prototype.list=function(e,t){return this.client.sendOperationRequest({options:e},V,t)},e}(),V={httpMethod:"GET",path:"providers/Microsoft.ResourceHealth/operations",queryParameters:[M],headerParameters:[E],responses:{200:{bodyMapper:b},default:{bodyMapper:f}},serializer:new a.Serializer(H)},$=function(r){function e(e,t,a){var i=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==t)throw new Error("'subscriptionId' cannot be null.");return a||(a={}),(i=r.call(this,e,a)||this).apiVersion="2017-07-01",i.acceptLanguage="en-US",i.longRunningOperationRetryTimeout=30,i.baseUri=a.baseUri||i.baseUri||"https://management.azure.com",i.requestContentType="application/json; charset=utf-8",i.credentials=e,i.subscriptionId=t,i.addUserAgentInfo("@azure/arm-resourcehealth/1.0.0"),null!==a.acceptLanguage&&void 0!==a.acceptLanguage&&(i.acceptLanguage=a.acceptLanguage),null!==a.longRunningOperationRetryTimeout&&void 0!==a.longRunningOperationRetryTimeout&&(i.longRunningOperationRetryTimeout=a.longRunningOperationRetryTimeout),i}return p(e,r),e}(t.AzureServiceClient),F=function(r){function e(e,t,a){var i=r.call(this,e,t,a)||this;return i.availabilityStatuses=new L(i),i.operations=new B(i),i}return p(e,r),e}($);e.MicrosoftResourceHealth=F,e.MicrosoftResourceHealthContext=$,e.MicrosoftResourceHealthModels=l,e.MicrosoftResourceHealthMappers=R,e.AvailabilityStatuses=L,e.Operations=B,Object.defineProperty(e,"__esModule",{value:!0})});
\ No newline at end of file
diff --git a/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.min.js.map b/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.min.js.map
new file mode 100644
index 000000000000..71cdf5ad6a12
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/dist/arm-resourcehealth.min.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../node_modules/tslib/tslib.es6.js","../esm/models/index.js","../esm/models/mappers.js","../esm/models/parameters.js","../esm/operations/availabilityStatuses.js","../esm/operations/operations.js","../esm/microsoftResourceHealthContext.js","../esm/microsoftResourceHealth.js"],"names":["AvailabilityStateValues","ReasonChronicityTypes","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","CloudError","CloudErrorMapper","BaseResource","BaseResourceMapper","AvailabilityStatusPropertiesRecentlyResolvedState","serializedName","type","name","className","modelProperties","unavailableOccurredTime","resolvedTime","unavailabilitySummary","RecommendedAction","action","actionUrl","actionUrlText","ServiceImpactingEventStatus","value","ServiceImpactingEventIncidentProperties","title","service","region","incidentType","ServiceImpactingEvent","eventStartTime","eventStatusLastModifiedTime","correlationId","status","incidentProperties","AvailabilityStatusProperties","availabilityState","allowedValues","summary","detailedStatus","reasonType","rootCauseAttributionTime","healthEventType","healthEventCause","healthEventCategory","healthEventId","resolutionETA","occuredTime","reasonChronicity","reportedTime","recentlyResolvedState","recommendedActions","element","serviceImpactingEvents","AvailabilityStatus","id","location","properties","OperationDisplay","provider","resource","operation","description","Operation","display","OperationListResult","required","ErrorResponse","code","readOnly","message","details","AvailabilityStatusListResult","nextLink","acceptLanguage","parameterPath","mapper","defaultValue","apiVersion","expand","filter","nextPageLink","skipEncoding","resourceUri","subscriptionId","AvailabilityStatuses","client","listBySubscriptionId","options","callback","sendOperationRequest","listBySubscriptionIdOperationSpec","listByResourceGroup","resourceGroupName","listByResourceGroupOperationSpec","getByResource","getByResourceOperationSpec","list","listOperationSpec","listBySubscriptionIdNext","listBySubscriptionIdNextOperationSpec","listByResourceGroupNext","listByResourceGroupNextOperationSpec","listNext","listNextOperationSpec","serializer","msRest.Serializer","Mappers","httpMethod","path","urlParameters","Parameters.subscriptionId","queryParameters","Parameters.apiVersion","Parameters.filter","Parameters.expand","headerParameters","Parameters.acceptLanguage","responses","200","bodyMapper","Mappers.AvailabilityStatusListResult","default","Mappers.ErrorResponse","Parameters.resourceUri","Mappers.AvailabilityStatus","baseUrl","Parameters.nextPageLink","Operations","Mappers.OperationListResult","MicrosoftResourceHealthContext","_super","credentials","_this","undefined","Error","call","longRunningOperationRetryTimeout","baseUri","requestContentType","addUserAgentInfo","packageName","tslib_1.__extends","msRestAzure.AzureServiceClient","MicrosoftResourceHealth","availabilityStatuses","operations.AvailabilityStatuses","operations","operations.Operations"],"mappings":"6UAgBA,ICDWA,EACAA,EAWAC,EACAA,EDZPC,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAGrB,SAASO,EAAUR,EAAGC,GAEzB,SAASQ,IAAOC,KAAKC,YAAcX,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEY,UAAkB,OAANX,EAAaC,OAAOW,OAAOZ,IAAMQ,EAAGG,UAAYX,EAAEW,UAAW,IAAIH,ICVxEZ,EAIRA,IAA4BA,EAA0B,KAHlB,UAAI,YACvCA,EAAqC,YAAI,cACzCA,EAAiC,QAAI,WAS9BC,EAGRA,IAA0BA,EAAwB,KAFhB,UAAI,YACrCA,EAAkC,WAAI,kHCpB/BgB,EAAaC,EAAAA,iBACbC,EAAeC,EAAAA,mBACfC,EAAoD,CAC3DC,eAAgB,sDAChBC,KAAM,CACFC,KAAM,YACNC,UAAW,oDACXC,gBAAiB,CACbC,wBAAyB,CACrBL,eAAgB,0BAChBC,KAAM,CACFC,KAAM,aAGdI,aAAc,CACVN,eAAgB,eAChBC,KAAM,CACFC,KAAM,aAGdK,sBAAuB,CACnBP,eAAgB,wBAChBC,KAAM,CACFC,KAAM,cAMfM,EAAoB,CAC3BR,eAAgB,oBAChBC,KAAM,CACFC,KAAM,YACNC,UAAW,oBACXC,gBAAiB,CACbK,OAAQ,CACJT,eAAgB,S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Z,GAAmBqI,MAAfF,EACA,MAAM,IAAIG,MAAM,iCAEpB,GAAsBD,MAAlBlD,EACA,MAAM,IAAImD,MAAM,oCAoBpB,OAlBK/C,IACDA,EAAU,KAEd6C,EAAQF,EAAOK,KAAKvI,KAAMmI,EAAa5C,IAAYvF,MAC7C6E,WAAa,aACnBuD,EAAM3D,eAAiB,QACvB2D,EAAMI,iCAAmC,GACzCJ,EAAMK,QAAUlD,EAAQkD,SAAWL,EAAMK,SAAW,+BACpDL,EAAMM,mBAAqB,kCAC3BN,EAAMD,YAAcA,EACpBC,EAAMjD,eAAiBA,EACvBiD,EAAMO,iBAAiBC,mCACQ,OAA3BrD,EAAQd,qBAAsD4D,IAA3B9C,EAAQd,iBAC3C2D,EAAM3D,eAAiBc,EAAQd,gBAEc,OAA7Cc,EAAQiD,uCAA0FH,IAA7C9C,EAAQiD,mCAC7DJ,EAAMI,iCAAmCjD,EAAQiD,kCAE9CJ,EAEX,OApCAS,EAAkBZ,EAAgCC,GAoC3CD,EArCuB,CAsChCa,EAAAA,oBCrCEC,EAAyC,SAAUb,GASnD,SAASa,EAAwBZ,EAAahD,EAAgBI,GAC1D,IAAI6C,EAAQF,EAAOK,KAAKvI,KAAMmI,EAAahD,EAAgBI,IAAYvF,KAGvE,OAFAoI,EAAMY,qBAAuB,IAAIC,EAAgCb,GACjEA,EAAMc,WAAa,IAAIC,EAAsBf,GACtCA,EAEX,OAdAS,EAAkBE,EAAyBb,GAcpCa,EAfgB,CAgBzBd"}
\ No newline at end of file
diff --git a/packages/@azure/arm-resourcehealth/lib/microsoftResourceHealth.ts b/packages/@azure/arm-resourcehealth/lib/microsoftResourceHealth.ts
new file mode 100644
index 000000000000..2c47d4b8735b
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/lib/microsoftResourceHealth.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 "ms-rest-js";
+import * as Models from "./models";
+import * as Mappers from "./models/mappers";
+import * as operations from "./operations";
+import { MicrosoftResourceHealthContext } from "./microsoftResourceHealthContext";
+
+
+class MicrosoftResourceHealth extends MicrosoftResourceHealthContext {
+ // Operation groups
+ availabilityStatuses: operations.AvailabilityStatuses;
+ operations: operations.Operations;
+
+ /**
+ * Initializes a new instance of the MicrosoftResourceHealth class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId Subscription credentials which uniquely identify 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.MicrosoftResourceHealthOptions) {
+ super(credentials, subscriptionId, options);
+ this.availabilityStatuses = new operations.AvailabilityStatuses(this);
+ this.operations = new operations.Operations(this);
+ }
+}
+
+// Operation Specifications
+
+export {
+ MicrosoftResourceHealth,
+ MicrosoftResourceHealthContext,
+ Models as MicrosoftResourceHealthModels,
+ Mappers as MicrosoftResourceHealthMappers
+};
+export * from "./operations";
diff --git a/packages/@azure/arm-resourcehealth/lib/microsoftResourceHealthContext.ts b/packages/@azure/arm-resourcehealth/lib/microsoftResourceHealthContext.ts
new file mode 100644
index 000000000000..bb181cf87dda
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/lib/microsoftResourceHealthContext.ts
@@ -0,0 +1,66 @@
+/*
+ * 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 "ms-rest-js";
+import * as msRestAzure from "ms-rest-azure-js";
+
+const packageName = "@azure/arm-resourcehealth";
+const packageVersion = "1.0.0";
+
+export class MicrosoftResourceHealthContext extends msRestAzure.AzureServiceClient {
+
+ credentials: msRest.ServiceClientCredentials;
+
+ subscriptionId: string;
+
+ apiVersion: string;
+
+ acceptLanguage: string;
+
+ longRunningOperationRetryTimeout: number;
+
+ /**
+ * Initializes a new instance of the MicrosoftResourceHealth class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId Subscription credentials which uniquely identify 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.MicrosoftResourceHealthOptions) {
+ if (credentials == undefined) {
+ throw new Error('\'credentials\' cannot be null.');
+ }
+ if (subscriptionId == undefined) {
+ throw new Error('\'subscriptionId\' cannot be null.');
+ }
+
+ if (!options) {
+ options = {};
+ }
+ super(credentials, options);
+
+ this.apiVersion = '2017-07-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;
+
+ this.addUserAgentInfo(`${packageName}/${packageVersion}`);
+ 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/packages/@azure/arm-resourcehealth/lib/models/availabilityStatusesMappers.ts b/packages/@azure/arm-resourcehealth/lib/models/availabilityStatusesMappers.ts
new file mode 100644
index 000000000000..0a64bef3ee1f
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/lib/models/availabilityStatusesMappers.ts
@@ -0,0 +1,22 @@
+/*
+ * 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 {
+ AvailabilityStatusListResult,
+ AvailabilityStatus,
+ AvailabilityStatusProperties,
+ AvailabilityStatusPropertiesRecentlyResolvedState,
+ RecommendedAction,
+ ServiceImpactingEvent,
+ ServiceImpactingEventStatus,
+ ServiceImpactingEventIncidentProperties,
+ ErrorResponse
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-resourcehealth/lib/models/index.ts b/packages/@azure/arm-resourcehealth/lib/models/index.ts
new file mode 100644
index 000000000000..776b80d670cd
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/lib/models/index.ts
@@ -0,0 +1,635 @@
+/*
+ * 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 "ms-rest-azure-js";
+import * as msRest from "ms-rest-js";
+
+export { BaseResource, CloudError };
+
+
+/**
+ * @interface
+ * An interface representing AvailabilityStatusPropertiesRecentlyResolvedState.
+ * An annotation describing a change in the availabilityState to Available from
+ * Unavailable with a reasonType of type Unplanned
+ *
+ */
+export interface AvailabilityStatusPropertiesRecentlyResolvedState {
+ /**
+ * @member {Date} [unavailableOccurredTime] Timestamp for when the
+ * availabilityState changed to Unavailable
+ */
+ unavailableOccurredTime?: Date;
+ /**
+ * @member {Date} [resolvedTime] Timestamp when the availabilityState changes
+ * to Available.
+ */
+ resolvedTime?: Date;
+ /**
+ * @member {string} [unavailabilitySummary] Brief description of cause of the
+ * resource becoming unavailable.
+ */
+ unavailabilitySummary?: string;
+}
+
+/**
+ * @interface
+ * An interface representing RecommendedAction.
+ * Lists actions the user can take based on the current availabilityState of
+ * the resource.
+ *
+ */
+export interface RecommendedAction {
+ /**
+ * @member {string} [action] Recommended action.
+ */
+ action?: string;
+ /**
+ * @member {string} [actionUrl] Link to the action
+ */
+ actionUrl?: string;
+ /**
+ * @member {string} [actionUrlText] Substring of action, it describes which
+ * text should host the action url.
+ */
+ actionUrlText?: string;
+}
+
+/**
+ * @interface
+ * An interface representing ServiceImpactingEventStatus.
+ * Status of the service impacting event.
+ *
+ */
+export interface ServiceImpactingEventStatus {
+ /**
+ * @member {string} [value] Current status of the event
+ */
+ value?: string;
+}
+
+/**
+ * @interface
+ * An interface representing ServiceImpactingEventIncidentProperties.
+ * Properties of the service impacting event.
+ *
+ */
+export interface ServiceImpactingEventIncidentProperties {
+ /**
+ * @member {string} [title] Title of the incident.
+ */
+ title?: string;
+ /**
+ * @member {string} [service] Service impacted by the event.
+ */
+ service?: string;
+ /**
+ * @member {string} [region] Region impacted by the event.
+ */
+ region?: string;
+ /**
+ * @member {string} [incidentType] Type of Event.
+ */
+ incidentType?: string;
+}
+
+/**
+ * @interface
+ * An interface representing ServiceImpactingEvent.
+ * Lists the service impacting events that may be affecting the health of the
+ * resource.
+ *
+ */
+export interface ServiceImpactingEvent {
+ /**
+ * @member {Date} [eventStartTime] Timestamp for when the event started.
+ */
+ eventStartTime?: Date;
+ /**
+ * @member {Date} [eventStatusLastModifiedTime] Timestamp for when event was
+ * submitted/detected.
+ */
+ eventStatusLastModifiedTime?: Date;
+ /**
+ * @member {string} [correlationId] Correlation id for the event
+ */
+ correlationId?: string;
+ /**
+ * @member {ServiceImpactingEventStatus} [status] Status of the service
+ * impacting event.
+ */
+ status?: ServiceImpactingEventStatus;
+ /**
+ * @member {ServiceImpactingEventIncidentProperties} [incidentProperties]
+ * Properties of the service impacting event.
+ */
+ incidentProperties?: ServiceImpactingEventIncidentProperties;
+}
+
+/**
+ * @interface
+ * An interface representing AvailabilityStatusProperties.
+ * Properties of availability state.
+ *
+ */
+export interface AvailabilityStatusProperties {
+ /**
+ * @member {AvailabilityStateValues} [availabilityState] Availability status
+ * of the resource. When it is null, this availabilityStatus object
+ * represents an availability impacting event. Possible values include:
+ * 'Available', 'Unavailable', 'Unknown'
+ */
+ availabilityState?: AvailabilityStateValues;
+ /**
+ * @member {string} [summary] Summary description of the availability status.
+ */
+ summary?: string;
+ /**
+ * @member {string} [detailedStatus] Details of the availability status.
+ */
+ detailedStatus?: string;
+ /**
+ * @member {string} [reasonType] When the resource's availabilityState is
+ * Unavailable, it describes where the health impacting event was originated.
+ * Examples are planned, unplanned, user initiated or an outage etc.
+ */
+ reasonType?: string;
+ /**
+ * @member {Date} [rootCauseAttributionTime] When the resource's
+ * availabilityState is Unavailable, it provides the Timestamp for when the
+ * health impacting event was received.
+ */
+ rootCauseAttributionTime?: Date;
+ /**
+ * @member {string} [healthEventType] In case of an availability impacting
+ * event, it describes when the health impacting event was originated.
+ * Examples are Lifecycle, Downtime, Fault Analysis etc.
+ */
+ healthEventType?: string;
+ /**
+ * @member {string} [healthEventCause] In case of an availability impacting
+ * event, it describes where the health impacting event was originated.
+ * Examples are PlatformInitiated, UserInitiated etc.
+ */
+ healthEventCause?: string;
+ /**
+ * @member {string} [healthEventCategory] In case of an availability
+ * impacting event, it describes the category of a PlatformInitiated health
+ * impacting event. Examples are Planned, Unplanned etc.
+ */
+ healthEventCategory?: string;
+ /**
+ * @member {string} [healthEventId] It is a unique Id that identifies the
+ * event
+ */
+ healthEventId?: string;
+ /**
+ * @member {Date} [resolutionETA] When the resource's availabilityState is
+ * Unavailable and the reasonType is not User Initiated, it provides the date
+ * and time for when the issue is expected to be resolved.
+ */
+ resolutionETA?: Date;
+ /**
+ * @member {Date} [occuredTime] Timestamp for when last change in health
+ * status occurred.
+ */
+ occuredTime?: Date;
+ /**
+ * @member {ReasonChronicityTypes} [reasonChronicity] Chronicity of the
+ * availability transition. Possible values include: 'Transient',
+ * 'Persistent'
+ */
+ reasonChronicity?: ReasonChronicityTypes;
+ /**
+ * @member {Date} [reportedTime] Timestamp for when the health was last
+ * checked.
+ */
+ reportedTime?: Date;
+ /**
+ * @member {AvailabilityStatusPropertiesRecentlyResolvedState}
+ * [recentlyResolvedState] An annotation describing a change in the
+ * availabilityState to Available from Unavailable with a reasonType of type
+ * Unplanned
+ */
+ recentlyResolvedState?: AvailabilityStatusPropertiesRecentlyResolvedState;
+ /**
+ * @member {RecommendedAction[]} [recommendedActions] Lists actions the user
+ * can take based on the current availabilityState of the resource.
+ */
+ recommendedActions?: RecommendedAction[];
+ /**
+ * @member {ServiceImpactingEvent[]} [serviceImpactingEvents] Lists the
+ * service impacting events that may be affecting the health of the resource.
+ */
+ serviceImpactingEvents?: ServiceImpactingEvent[];
+}
+
+/**
+ * @interface
+ * An interface representing AvailabilityStatus.
+ * availabilityStatus of a resource.
+ *
+ */
+export interface AvailabilityStatus {
+ /**
+ * @member {string} [id] Azure Resource Manager Identity for the
+ * availabilityStatuses resource.
+ */
+ id?: string;
+ /**
+ * @member {string} [name] current.
+ */
+ name?: string;
+ /**
+ * @member {string} [type] Microsoft.ResourceHealth/AvailabilityStatuses.
+ */
+ type?: string;
+ /**
+ * @member {string} [location] Azure Resource Manager geo location of the
+ * resource.
+ */
+ location?: string;
+ /**
+ * @member {AvailabilityStatusProperties} [properties] Properties of
+ * availability state.
+ */
+ properties?: AvailabilityStatusProperties;
+}
+
+/**
+ * @interface
+ * An interface representing OperationDisplay.
+ * Properties of the operation.
+ *
+ */
+export interface OperationDisplay {
+ /**
+ * @member {string} [provider] Provider name.
+ */
+ provider?: string;
+ /**
+ * @member {string} [resource] Resource name.
+ */
+ resource?: string;
+ /**
+ * @member {string} [operation] Operation name.
+ */
+ operation?: string;
+ /**
+ * @member {string} [description] Description of the operation.
+ */
+ description?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Operation.
+ * Operation available in the resourcehealth resource provider.
+ *
+ */
+export interface Operation {
+ /**
+ * @member {string} [name] Name of the operation.
+ */
+ name?: string;
+ /**
+ * @member {OperationDisplay} [display] Properties of the operation.
+ */
+ display?: OperationDisplay;
+}
+
+/**
+ * @interface
+ * An interface representing OperationListResult.
+ * Lists the operations response.
+ *
+ */
+export interface OperationListResult {
+ /**
+ * @member {Operation[]} value List of operations available in the
+ * resourcehealth resource provider.
+ */
+ value: Operation[];
+}
+
+/**
+ * @interface
+ * An interface representing ErrorResponse.
+ * Error details.
+ *
+ */
+export interface ErrorResponse {
+ /**
+ * @member {string} [code] The error code.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly code?: string;
+ /**
+ * @member {string} [message] The error message.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly message?: string;
+ /**
+ * @member {string} [details] The error details.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly details?: string;
+}
+
+/**
+ * @interface
+ * An interface representing AvailabilityStatusesListBySubscriptionIdOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface AvailabilityStatusesListBySubscriptionIdOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] The filter to apply on the operation. For more
+ * information please see
+ * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
+ */
+ filter?: string;
+ /**
+ * @member {string} [expand] Setting $expand=recommendedactions in url query
+ * expands the recommendedactions in the response.
+ */
+ expand?: string;
+}
+
+/**
+ * @interface
+ * An interface representing AvailabilityStatusesListByResourceGroupOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface AvailabilityStatusesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] The filter to apply on the operation. For more
+ * information please see
+ * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
+ */
+ filter?: string;
+ /**
+ * @member {string} [expand] Setting $expand=recommendedactions in url query
+ * expands the recommendedactions in the response.
+ */
+ expand?: string;
+}
+
+/**
+ * @interface
+ * An interface representing AvailabilityStatusesGetByResourceOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface AvailabilityStatusesGetByResourceOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] The filter to apply on the operation. For more
+ * information please see
+ * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
+ */
+ filter?: string;
+ /**
+ * @member {string} [expand] Setting $expand=recommendedactions in url query
+ * expands the recommendedactions in the response.
+ */
+ expand?: string;
+}
+
+/**
+ * @interface
+ * An interface representing AvailabilityStatusesListOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface AvailabilityStatusesListOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] The filter to apply on the operation. For more
+ * information please see
+ * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
+ */
+ filter?: string;
+ /**
+ * @member {string} [expand] Setting $expand=recommendedactions in url query
+ * expands the recommendedactions in the response.
+ */
+ expand?: string;
+}
+
+/**
+ * @interface
+ * An interface representing MicrosoftResourceHealthOptions.
+ * @extends AzureServiceClientOptions
+ */
+export interface MicrosoftResourceHealthOptions extends AzureServiceClientOptions {
+ /**
+ * @member {string} [baseUri]
+ */
+ baseUri?: string;
+}
+
+
+/**
+ * @interface
+ * An interface representing the AvailabilityStatusListResult.
+ * The List availabilityStatus operation response.
+ *
+ * @extends Array
+ */
+export interface AvailabilityStatusListResult extends Array {
+ /**
+ * @member {string} [nextLink] The URI to fetch the next page of
+ * availabilityStatuses. Call ListNext() with this URI to fetch the next page
+ * of availabilityStatuses.
+ */
+ nextLink?: string;
+}
+
+/**
+ * Defines values for AvailabilityStateValues.
+ * Possible values include: 'Available', 'Unavailable', 'Unknown'
+ * @readonly
+ * @enum {string}
+ */
+export enum AvailabilityStateValues {
+ Available = 'Available',
+ Unavailable = 'Unavailable',
+ Unknown = 'Unknown',
+}
+
+/**
+ * Defines values for ReasonChronicityTypes.
+ * Possible values include: 'Transient', 'Persistent'
+ * @readonly
+ * @enum {string}
+ */
+export enum ReasonChronicityTypes {
+ Transient = 'Transient',
+ Persistent = 'Persistent',
+}
+
+/**
+ * Contains response data for the listBySubscriptionId operation.
+ */
+export type AvailabilityStatusesListBySubscriptionIdResponse = AvailabilityStatusListResult & {
+ /**
+ * 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: AvailabilityStatusListResult;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroup operation.
+ */
+export type AvailabilityStatusesListByResourceGroupResponse = AvailabilityStatusListResult & {
+ /**
+ * 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: AvailabilityStatusListResult;
+ };
+};
+
+/**
+ * Contains response data for the getByResource operation.
+ */
+export type AvailabilityStatusesGetByResourceResponse = AvailabilityStatus & {
+ /**
+ * 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: AvailabilityStatus;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type AvailabilityStatusesListResponse = AvailabilityStatusListResult & {
+ /**
+ * 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: AvailabilityStatusListResult;
+ };
+};
+
+/**
+ * Contains response data for the listBySubscriptionIdNext operation.
+ */
+export type AvailabilityStatusesListBySubscriptionIdNextResponse = AvailabilityStatusListResult & {
+ /**
+ * 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: AvailabilityStatusListResult;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroupNext operation.
+ */
+export type AvailabilityStatusesListByResourceGroupNextResponse = AvailabilityStatusListResult & {
+ /**
+ * 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: AvailabilityStatusListResult;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type AvailabilityStatusesListNextResponse = AvailabilityStatusListResult & {
+ /**
+ * 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: AvailabilityStatusListResult;
+ };
+};
+
+/**
+ * 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;
+ };
+};
diff --git a/packages/@azure/arm-resourcehealth/lib/models/mappers.ts b/packages/@azure/arm-resourcehealth/lib/models/mappers.ts
new file mode 100644
index 000000000000..56eec4f8811e
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/lib/models/mappers.ts
@@ -0,0 +1,472 @@
+/*
+ * 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 "ms-rest-azure-js";
+import * as msRest from "ms-rest-js";
+
+export const CloudError = CloudErrorMapper;
+export const BaseResource = BaseResourceMapper;
+
+export const AvailabilityStatusPropertiesRecentlyResolvedState: msRest.CompositeMapper = {
+ serializedName: "availabilityStatus_properties_recentlyResolvedState",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusPropertiesRecentlyResolvedState",
+ modelProperties: {
+ unavailableOccurredTime: {
+ serializedName: "unavailableOccurredTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ resolvedTime: {
+ serializedName: "resolvedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ unavailabilitySummary: {
+ serializedName: "unavailabilitySummary",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RecommendedAction: msRest.CompositeMapper = {
+ serializedName: "recommendedAction",
+ type: {
+ name: "Composite",
+ className: "RecommendedAction",
+ modelProperties: {
+ action: {
+ serializedName: "action",
+ type: {
+ name: "String"
+ }
+ },
+ actionUrl: {
+ serializedName: "actionUrl",
+ type: {
+ name: "String"
+ }
+ },
+ actionUrlText: {
+ serializedName: "actionUrlText",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ServiceImpactingEventStatus: msRest.CompositeMapper = {
+ serializedName: "serviceImpactingEvent_status",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEventStatus",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ServiceImpactingEventIncidentProperties: msRest.CompositeMapper = {
+ serializedName: "serviceImpactingEvent_incidentProperties",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEventIncidentProperties",
+ modelProperties: {
+ title: {
+ serializedName: "title",
+ type: {
+ name: "String"
+ }
+ },
+ service: {
+ serializedName: "service",
+ type: {
+ name: "String"
+ }
+ },
+ region: {
+ serializedName: "region",
+ type: {
+ name: "String"
+ }
+ },
+ incidentType: {
+ serializedName: "incidentType",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ServiceImpactingEvent: msRest.CompositeMapper = {
+ serializedName: "serviceImpactingEvent",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEvent",
+ modelProperties: {
+ eventStartTime: {
+ serializedName: "eventStartTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ eventStatusLastModifiedTime: {
+ serializedName: "eventStatusLastModifiedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ correlationId: {
+ serializedName: "correlationId",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEventStatus"
+ }
+ },
+ incidentProperties: {
+ serializedName: "incidentProperties",
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEventIncidentProperties"
+ }
+ }
+ }
+ }
+};
+
+export const AvailabilityStatusProperties: msRest.CompositeMapper = {
+ serializedName: "availabilityStatus_properties",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusProperties",
+ modelProperties: {
+ availabilityState: {
+ serializedName: "availabilityState",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Available",
+ "Unavailable",
+ "Unknown"
+ ]
+ }
+ },
+ summary: {
+ serializedName: "summary",
+ type: {
+ name: "String"
+ }
+ },
+ detailedStatus: {
+ serializedName: "detailedStatus",
+ type: {
+ name: "String"
+ }
+ },
+ reasonType: {
+ serializedName: "reasonType",
+ type: {
+ name: "String"
+ }
+ },
+ rootCauseAttributionTime: {
+ serializedName: "rootCauseAttributionTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ healthEventType: {
+ serializedName: "healthEventType",
+ type: {
+ name: "String"
+ }
+ },
+ healthEventCause: {
+ serializedName: "healthEventCause",
+ type: {
+ name: "String"
+ }
+ },
+ healthEventCategory: {
+ serializedName: "healthEventCategory",
+ type: {
+ name: "String"
+ }
+ },
+ healthEventId: {
+ serializedName: "healthEventId",
+ type: {
+ name: "String"
+ }
+ },
+ resolutionETA: {
+ serializedName: "resolutionETA",
+ type: {
+ name: "DateTime"
+ }
+ },
+ occuredTime: {
+ serializedName: "occuredTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ reasonChronicity: {
+ serializedName: "reasonChronicity",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Transient",
+ "Persistent"
+ ]
+ }
+ },
+ reportedTime: {
+ serializedName: "reportedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ recentlyResolvedState: {
+ serializedName: "recentlyResolvedState",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusPropertiesRecentlyResolvedState"
+ }
+ },
+ recommendedActions: {
+ serializedName: "recommendedActions",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "RecommendedAction"
+ }
+ }
+ }
+ },
+ serviceImpactingEvents: {
+ serializedName: "serviceImpactingEvents",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ServiceImpactingEvent"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const AvailabilityStatus: msRest.CompositeMapper = {
+ serializedName: "availabilityStatus",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatus",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ location: {
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusProperties"
+ }
+ }
+ }
+ }
+};
+
+export const OperationDisplay: msRest.CompositeMapper = {
+ serializedName: "operation_display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay",
+ modelProperties: {
+ provider: {
+ serializedName: "provider",
+ type: {
+ name: "String"
+ }
+ },
+ resource: {
+ serializedName: "resource",
+ type: {
+ name: "String"
+ }
+ },
+ operation: {
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Operation: msRest.CompositeMapper = {
+ serializedName: "operation",
+ type: {
+ name: "Composite",
+ className: "Operation",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay"
+ }
+ }
+ }
+ }
+};
+
+export const OperationListResult: msRest.CompositeMapper = {
+ serializedName: "operationListResult",
+ type: {
+ name: "Composite",
+ className: "OperationListResult",
+ modelProperties: {
+ value: {
+ required: true,
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Operation"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ErrorResponse: msRest.CompositeMapper = {
+ serializedName: "ErrorResponse",
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ code: {
+ readOnly: true,
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ readOnly: true,
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ },
+ details: {
+ readOnly: true,
+ serializedName: "details",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const AvailabilityStatusListResult: msRest.CompositeMapper = {
+ serializedName: "availabilityStatusListResult",
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatusListResult",
+ modelProperties: {
+ value: {
+ required: true,
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "AvailabilityStatus"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
diff --git a/packages/@azure/arm-resourcehealth/lib/models/operationsMappers.ts b/packages/@azure/arm-resourcehealth/lib/models/operationsMappers.ts
new file mode 100644
index 000000000000..715467ec9522
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/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/packages/@azure/arm-resourcehealth/lib/models/parameters.ts b/packages/@azure/arm-resourcehealth/lib/models/parameters.ts
new file mode 100644
index 000000000000..2f55897d9b76
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/lib/models/parameters.ts
@@ -0,0 +1,98 @@
+/*
+ * 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 "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 expand: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "expand"
+ ],
+ mapper: {
+ serializedName: "$expand",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const filter: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "filter"
+ ],
+ mapper: {
+ serializedName: "$filter",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const nextPageLink: msRest.OperationURLParameter = {
+ parameterPath: "nextPageLink",
+ mapper: {
+ required: true,
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+export const resourceGroupName: msRest.OperationURLParameter = {
+ parameterPath: "resourceGroupName",
+ mapper: {
+ required: true,
+ serializedName: "resourceGroupName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const resourceUri: msRest.OperationURLParameter = {
+ parameterPath: "resourceUri",
+ mapper: {
+ required: true,
+ serializedName: "resourceUri",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+export const subscriptionId: msRest.OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
+ required: true,
+ serializedName: "subscriptionId",
+ type: {
+ name: "String"
+ }
+ }
+};
diff --git a/packages/@azure/arm-resourcehealth/lib/operations/availabilityStatuses.ts b/packages/@azure/arm-resourcehealth/lib/operations/availabilityStatuses.ts
new file mode 100644
index 000000000000..f11175ba1074
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/lib/operations/availabilityStatuses.ts
@@ -0,0 +1,416 @@
+/*
+ * 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 "ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/availabilityStatusesMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftResourceHealthContext } from "../microsoftResourceHealthContext";
+
+/** Class representing a AvailabilityStatuses. */
+export class AvailabilityStatuses {
+ private readonly client: MicrosoftResourceHealthContext;
+
+ /**
+ * Create a AvailabilityStatuses.
+ * @param {MicrosoftResourceHealthContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftResourceHealthContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists the current availability status for all the resources in the subscription. Use the
+ * nextLink property in the response to get the next page of availability statuses.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listBySubscriptionId(options?: Models.AvailabilityStatusesListBySubscriptionIdOptionalParams): Promise;
+ /**
+ * @param callback The callback
+ */
+ listBySubscriptionId(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listBySubscriptionId(options: Models.AvailabilityStatusesListBySubscriptionIdOptionalParams, callback: msRest.ServiceCallback): void;
+ listBySubscriptionId(options?: Models.AvailabilityStatusesListBySubscriptionIdOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listBySubscriptionIdOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists the current availability status for all the resources in the resource group. Use the
+ * nextLink property in the response to get the next page of availability statuses.
+ * @param resourceGroupName The name of the resource group.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroup(resourceGroupName: string, options?: Models.AvailabilityStatusesListByResourceGroupOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param callback The callback
+ */
+ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByResourceGroup(resourceGroupName: string, options: Models.AvailabilityStatusesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void;
+ listByResourceGroup(resourceGroupName: string, options?: Models.AvailabilityStatusesListByResourceGroupOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ options
+ },
+ listByResourceGroupOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Gets current availability status for a single resource
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API support not nested and one nesting level resource types :
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
+ * and
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ getByResource(resourceUri: string, options?: Models.AvailabilityStatusesGetByResourceOptionalParams): Promise;
+ /**
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API support not nested and one nesting level resource types :
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
+ * and
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
+ * @param callback The callback
+ */
+ getByResource(resourceUri: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API support not nested and one nesting level resource types :
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
+ * and
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ getByResource(resourceUri: string, options: Models.AvailabilityStatusesGetByResourceOptionalParams, callback: msRest.ServiceCallback): void;
+ getByResource(resourceUri: string, options?: Models.AvailabilityStatusesGetByResourceOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceUri,
+ options
+ },
+ getByResourceOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all historical availability transitions and impacting events for a single resource. Use
+ * the nextLink property in the response to get the next page of availability status
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API support not nested and one nesting level resource types :
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
+ * and
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(resourceUri: string, options?: Models.AvailabilityStatusesListOptionalParams): Promise;
+ /**
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API support not nested and one nesting level resource types :
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
+ * and
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
+ * @param callback The callback
+ */
+ list(resourceUri: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API support not nested and one nesting level resource types :
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
+ * and
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(resourceUri: string, options: Models.AvailabilityStatusesListOptionalParams, callback: msRest.ServiceCallback): void;
+ list(resourceUri: string, options?: Models.AvailabilityStatusesListOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceUri,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists the current availability status for all the resources in the subscription. Use the
+ * nextLink property in the response to get the next page of availability statuses.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listBySubscriptionIdNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listBySubscriptionIdNext(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
+ */
+ listBySubscriptionIdNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listBySubscriptionIdNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listBySubscriptionIdNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists the current availability status for all the resources in the resource group. Use the
+ * nextLink property in the response to get the next page of availability statuses.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByResourceGroupNext(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
+ */
+ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByResourceGroupNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all historical availability transitions and impacting events for a single resource. Use
+ * the nextLink property in the response to get the next page of availability status
+ * @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, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listBySubscriptionIdOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const getByResourceOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
+ urlParameters: [
+ Parameters.resourceUri
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AvailabilityStatus
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses",
+ urlParameters: [
+ Parameters.resourceUri
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listBySubscriptionIdNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AvailabilityStatusListResult
+ },
+ 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.AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-resourcehealth/lib/operations/index.ts b/packages/@azure/arm-resourcehealth/lib/operations/index.ts
new file mode 100644
index 000000000000..ee30683ee8d3
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/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 "./availabilityStatuses";
+export * from "./operations";
diff --git a/packages/@azure/arm-resourcehealth/lib/operations/operations.ts b/packages/@azure/arm-resourcehealth/lib/operations/operations.ts
new file mode 100644
index 000000000000..9360fd9f47e4
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/lib/operations/operations.ts
@@ -0,0 +1,74 @@
+/*
+ * 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 "ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/operationsMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftResourceHealthContext } from "../microsoftResourceHealthContext";
+
+/** Class representing a Operations. */
+export class Operations {
+ private readonly client: MicrosoftResourceHealthContext;
+
+ /**
+ * Create a Operations.
+ * @param {MicrosoftResourceHealthContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftResourceHealthContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists available operations for the resourcehealth resource provider
+ * @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, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "providers/Microsoft.ResourceHealth/operations",
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.OperationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-resourcehealth/package.json b/packages/@azure/arm-resourcehealth/package.json
new file mode 100644
index 000000000000..93af1059e2b7
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/package.json
@@ -0,0 +1,42 @@
+{
+ "name": "@azure/arm-resourcehealth",
+ "author": "Microsoft Corporation",
+ "description": "MicrosoftResourceHealth Library with typescript type definitions for node.js and browser.",
+ "version": "1.0.0",
+ "dependencies": {
+ "ms-rest-azure-js": "^1.0.172",
+ "ms-rest-js": "^1.0.443",
+ "tslib": "^1.9.3"
+ },
+ "keywords": [
+ "node",
+ "azure",
+ "typescript",
+ "browser",
+ "isomorphic"
+ ],
+ "license": "MIT",
+ "main": "./dist/arm-resourcehealth.js",
+ "module": "./esm/microsoftResourceHealth.js",
+ "types": "./esm/microsoftResourceHealth.d.ts",
+ "devDependencies": {
+ "typescript": "^3.1.1",
+ "rollup": "^0.66.2",
+ "rollup-plugin-node-resolve": "^3.4.0",
+ "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"
+ },
+ "scripts": {
+ "build": "tsc && rollup -c rollup.config.js && npm run minify",
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-resourcehealth.js.map'\" -o ./dist/arm-resourcehealth.min.js ./dist/arm-resourcehealth.js",
+ "prepare": "npm run build"
+ },
+ "sideEffects": false
+}
diff --git a/packages/@azure/arm-resourcehealth/rollup.config.js b/packages/@azure/arm-resourcehealth/rollup.config.js
new file mode 100644
index 000000000000..f0e6dbe35b3d
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/rollup.config.js
@@ -0,0 +1,31 @@
+import nodeResolve from "rollup-plugin-node-resolve";
+/**
+ * @type {import('rollup').RollupFileOptions}
+ */
+const config = {
+ input: './esm/microsoftResourceHealth.js',
+ external: ["ms-rest-js", "ms-rest-azure-js"],
+ output: {
+ file: "./dist/arm-resourcehealth.js",
+ format: "umd",
+ name: "Azure.ArmResourcehealth",
+ sourcemap: true,
+ globals: {
+ "ms-rest-js": "msRest",
+ "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 })
+ ]
+};
+export default config;
diff --git a/packages/@azure/arm-resourcehealth/tsconfig.esm.json b/packages/@azure/arm-resourcehealth/tsconfig.esm.json
new file mode 100644
index 000000000000..0b3aed07505c
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/tsconfig.esm.json
@@ -0,0 +1,8 @@
+{
+ "extends": "./tsconfig",
+ "compilerOptions": {
+ "outDir": "./esm",
+ "module": "es6",
+ "target": "es5"
+ }
+}
diff --git a/packages/@azure/arm-resourcehealth/tsconfig.json b/packages/@azure/arm-resourcehealth/tsconfig.json
new file mode 100644
index 000000000000..f32d1664f320
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/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/**/*"],
+ "exclude": ["node_modules"]
+}
diff --git a/packages/@azure/arm-resourcehealth/webpack.config.js b/packages/@azure/arm-resourcehealth/webpack.config.js
new file mode 100644
index 000000000000..8b9fc931196e
--- /dev/null
+++ b/packages/@azure/arm-resourcehealth/webpack.config.js
@@ -0,0 +1,30 @@
+// This is a template webpack config file with minimal configuration.
+// Users are free to create their own webpack configuration files in their application.
+const path = require('path');
+
+/**
+ * @type {import('webpack').Configuration}
+ */
+const config = {
+ mode: 'production',
+ entry: './esm/microsoftResourceHealth.js',
+ devtool: 'source-map',
+ output: {
+ filename: 'microsoftResourceHealthBundle.js',
+ path: __dirname,
+ libraryTarget: 'var',
+ library: 'microsoftResourceHealth'
+ },
+ // "ms-rest-js" and "ms-rest-azure-js" are dependencies of this library.
+ // Customer is expected to import/include this library in browser javascript
+ // (probably using the script tag in their html file).
+ externals: {
+ "ms-rest-js": "msRest",
+ "ms-rest-azure-js": "msRestAzure"
+ },
+ resolve: {
+ extensions: [".tsx", ".ts", ".js"]
+ }
+};
+
+module.exports = config;