diff --git a/sdk/resourcehealth/arm-resourcehealth/LICENSE.txt b/sdk/resourcehealth/arm-resourcehealth/LICENSE.txt
index a70e8cf66038..2d3163745319 100644
--- a/sdk/resourcehealth/arm-resourcehealth/LICENSE.txt
+++ b/sdk/resourcehealth/arm-resourcehealth/LICENSE.txt
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2018 Microsoft
+Copyright (c) 2021 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
diff --git a/sdk/resourcehealth/arm-resourcehealth/README.md b/sdk/resourcehealth/arm-resourcehealth/README.md
index daefef06fe23..274a3311c4df 100644
--- a/sdk/resourcehealth/arm-resourcehealth/README.md
+++ b/sdk/resourcehealth/arm-resourcehealth/README.md
@@ -1,93 +1,101 @@
## Azure MicrosoftResourceHealth SDK for JavaScript
-This package contains an isomorphic SDK for MicrosoftResourceHealth.
+This package contains an isomorphic SDK (runs both in node.js and in browsers) for MicrosoftResourceHealth.
### Currently supported environments
-- Node.js version 6.x.x or higher
-- Browser JavaScript
+- [LTS versions of Node.js](https://nodejs.org/about/releases/)
+- Latest versions of Safari, Chrome, Edge and Firefox.
-### How to Install
+### Prerequisites
+You must have an [Azure subscription](https://azure.microsoft.com/free/).
+
+### How to install
+
+To use this SDK in your project, you will need to install two packages.
+- `@azure/arm-resourcehealth` that contains the client.
+- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
+
+Install both packages using the below command:
+```bash
+npm install --save @azure/arm-resourcehealth @azure/identity
```
-npm install @azure/arm-resourcehealth
-```
+> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
+If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
### How to use
-#### nodejs - Authentication, client creation and listBySubscriptionId availabilityStatuses as an example written in TypeScript.
+- If you are writing a client side browser application,
+ - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions.
+ - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below.
+- If you are writing a server side application,
+ - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples)
+ - Complete the set up steps required by the credential if any.
+ - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below.
-##### Install @azure/ms-rest-nodeauth
-
-```
-npm install @azure/ms-rest-nodeauth
-```
+In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
+Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
+#### nodejs - Authentication, client creation, and listBySubscriptionId availabilityStatuses as an example written in JavaScript.
##### Sample code
-```ts
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
-import { MicrosoftResourceHealth, MicrosoftResourceHealthModels, MicrosoftResourceHealthMappers } from "@azure/arm-resourcehealth";
+```javascript
+const { DefaultAzureCredential } = require("@azure/identity");
+const { MicrosoftResourceHealth } = require("@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);
- });
+// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
+// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
+const creds = new DefaultAzureCredential();
+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.log("An error occurred:");
console.error(err);
});
```
-#### browser - Authentication, client creation and listBySubscriptionId availabilityStatuses as an example written in JavaScript.
+#### browser - Authentication, client creation, and listBySubscriptionId availabilityStatuses as an example written in JavaScript.
-##### Install @azure/ms-rest-browserauth
-
-```
-npm install @azure/ms-rest-browserauth
-```
+In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
+ - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
+ - Note down the client Id from the previous step and use it in the browser sample below.
##### Sample code
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
- index.html
+
```html
@azure/arm-resourcehealth sample
-
-
+
@@ -99,5 +107,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
-
-
+
diff --git a/sdk/resourcehealth/arm-resourcehealth/package.json b/sdk/resourcehealth/arm-resourcehealth/package.json
index c8c350f2f591..4bb96ba27292 100644
--- a/sdk/resourcehealth/arm-resourcehealth/package.json
+++ b/sdk/resourcehealth/arm-resourcehealth/package.json
@@ -4,9 +4,10 @@
"description": "MicrosoftResourceHealth Library with typescript type definitions for node.js and browser.",
"version": "1.1.0",
"dependencies": {
- "@azure/ms-rest-azure-js": "^1.1.0",
- "@azure/ms-rest-js": "^1.1.0",
- "tslib": "^1.9.3"
+ "@azure/ms-rest-azure-js": "^2.1.0",
+ "@azure/ms-rest-js": "^2.2.0",
+ "@azure/core-auth": "^1.1.4",
+ "tslib": "^1.10.0"
},
"keywords": [
"node",
@@ -20,18 +21,19 @@
"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"
+ "typescript": "^3.6.0",
+ "rollup": "^1.18.0",
+ "rollup-plugin-node-resolve": "^5.2.0",
+ "rollup-plugin-sourcemaps": "^0.4.2",
+ "uglify-js": "^3.6.0"
},
- "homepage": "https://github.com/azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth",
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/resourcehealth/arm-resourcehealth",
"repository": {
"type": "git",
- "url": "https://github.com/azure/azure-sdk-for-js.git"
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
- "url": "https://github.com/azure/azure-sdk-for-js/issues"
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
@@ -43,6 +45,7 @@
"esm/**/*.d.ts",
"esm/**/*.d.ts.map",
"src/**/*.ts",
+ "README.md",
"rollup.config.js",
"tsconfig.json"
],
diff --git a/sdk/resourcehealth/arm-resourcehealth/rollup.config.js b/sdk/resourcehealth/arm-resourcehealth/rollup.config.js
index dcd8904d6614..269a24aa4e39 100644
--- a/sdk/resourcehealth/arm-resourcehealth/rollup.config.js
+++ b/sdk/resourcehealth/arm-resourcehealth/rollup.config.js
@@ -1,10 +1,16 @@
+import rollup from "rollup";
import nodeResolve from "rollup-plugin-node-resolve";
+import sourcemaps from "rollup-plugin-sourcemaps";
+
/**
- * @type {import('rollup').RollupFileOptions}
+ * @type {rollup.RollupFileOptions}
*/
const config = {
- input: './esm/microsoftResourceHealth.js',
- external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
+ input: "./esm/microsoftResourceHealth.js",
+ external: [
+ "@azure/ms-rest-js",
+ "@azure/ms-rest-azure-js"
+ ],
output: {
file: "./dist/arm-resourcehealth.js",
format: "umd",
@@ -15,17 +21,17 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/`
},
plugins: [
- nodeResolve({ module: true })
+ nodeResolve({ mainFields: ['module', 'main'] }),
+ sourcemaps()
]
};
+
export default config;
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts
index 07e66bbf7f91..6cf99a71df53 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealth.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@@ -9,6 +8,7 @@
*/
import * as msRest from "@azure/ms-rest-js";
+import { TokenCredential } from "@azure/core-auth";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
@@ -18,19 +18,30 @@ import { MicrosoftResourceHealthContext } from "./microsoftResourceHealthContext
class MicrosoftResourceHealth extends MicrosoftResourceHealthContext {
// Operation groups
availabilityStatuses: operations.AvailabilityStatuses;
+ childAvailabilityStatuses: operations.ChildAvailabilityStatuses;
+ childResources: operations.ChildResources;
operations: operations.Operations;
+ emergingIssues: operations.EmergingIssues;
/**
* Initializes a new instance of the MicrosoftResourceHealth class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
+ * more information about these credentials, see
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
+ * @azure/ms-rest-browserauth are also supported.
* @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) {
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MicrosoftResourceHealthOptions) {
super(credentials, subscriptionId, options);
this.availabilityStatuses = new operations.AvailabilityStatuses(this);
+ this.childAvailabilityStatuses = new operations.ChildAvailabilityStatuses(this);
+ this.childResources = new operations.ChildResources(this);
this.operations = new operations.Operations(this);
+ this.emergingIssues = new operations.EmergingIssues(this);
}
}
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealthContext.ts b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealthContext.ts
index b5256df762bb..7d7b99038f0e 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealthContext.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/microsoftResourceHealthContext.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@@ -11,23 +10,29 @@
import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
+import { TokenCredential } from "@azure/core-auth";
const packageName = "@azure/arm-resourcehealth";
-const packageVersion = "0.1.0";
+const packageVersion = "1.1.0";
export class MicrosoftResourceHealthContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials;
+ credentials: msRest.ServiceClientCredentials | TokenCredential;
subscriptionId: string;
apiVersion?: string;
/**
* Initializes a new instance of the MicrosoftResourceHealth class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
+ * more information about these credentials, see
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
+ * @azure/ms-rest-browserauth are also supported.
* @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) {
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.MicrosoftResourceHealthOptions) {
if (credentials == undefined) {
throw new Error('\'credentials\' cannot be null.');
}
@@ -38,7 +43,7 @@ export class MicrosoftResourceHealthContext extends msRestAzure.AzureServiceClie
if (!options) {
options = {};
}
- if(!options.userAgent) {
+ if (!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
@@ -53,10 +58,10 @@ export class MicrosoftResourceHealthContext extends msRestAzure.AzureServiceClie
this.credentials = credentials;
this.subscriptionId = subscriptionId;
- if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
+ if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
- if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
+ if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/availabilityStatusesMappers.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/availabilityStatusesMappers.ts
index 0a64bef3ee1f..05beeef573de 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/models/availabilityStatusesMappers.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/models/availabilityStatusesMappers.ts
@@ -1,22 +1,19 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export {
- AvailabilityStatusListResult,
AvailabilityStatus,
+ AvailabilityStatusListResult,
AvailabilityStatusProperties,
AvailabilityStatusPropertiesRecentlyResolvedState,
+ ErrorResponse,
RecommendedAction,
ServiceImpactingEvent,
- ServiceImpactingEventStatus,
ServiceImpactingEventIncidentProperties,
- ErrorResponse
+ ServiceImpactingEventStatus
} from "../models/mappers";
-
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/childAvailabilityStatusesMappers.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/childAvailabilityStatusesMappers.ts
new file mode 100644
index 000000000000..05beeef573de
--- /dev/null
+++ b/sdk/resourcehealth/arm-resourcehealth/src/models/childAvailabilityStatusesMappers.ts
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ AvailabilityStatus,
+ AvailabilityStatusListResult,
+ AvailabilityStatusProperties,
+ AvailabilityStatusPropertiesRecentlyResolvedState,
+ ErrorResponse,
+ RecommendedAction,
+ ServiceImpactingEvent,
+ ServiceImpactingEventIncidentProperties,
+ ServiceImpactingEventStatus
+} from "../models/mappers";
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/childResourcesMappers.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/childResourcesMappers.ts
new file mode 100644
index 000000000000..05beeef573de
--- /dev/null
+++ b/sdk/resourcehealth/arm-resourcehealth/src/models/childResourcesMappers.ts
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ AvailabilityStatus,
+ AvailabilityStatusListResult,
+ AvailabilityStatusProperties,
+ AvailabilityStatusPropertiesRecentlyResolvedState,
+ ErrorResponse,
+ RecommendedAction,
+ ServiceImpactingEvent,
+ ServiceImpactingEventIncidentProperties,
+ ServiceImpactingEventStatus
+} from "../models/mappers";
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/emergingIssuesMappers.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/emergingIssuesMappers.ts
new file mode 100644
index 000000000000..deecd0c57ee0
--- /dev/null
+++ b/sdk/resourcehealth/arm-resourcehealth/src/models/emergingIssuesMappers.ts
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ AzureEntityResource,
+ BaseResource,
+ EmergingIssueImpact,
+ EmergingIssueListResult,
+ EmergingIssuesGetResult,
+ ErrorResponse,
+ ImpactedRegion,
+ ProxyResource,
+ Resource,
+ StatusActiveEvent,
+ StatusBanner,
+ TrackedResource
+} from "../models/mappers";
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts
index 62b94957d241..26f43812932d 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/models/index.ts
@@ -1,11 +1,9 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
@@ -13,448 +11,672 @@ import * as msRest from "@azure/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
- *
+ * 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
+ * Timestamp for when the availabilityState changed to Unavailable
*/
unavailableOccurredTime?: Date;
/**
- * @member {Date} [resolvedTime] Timestamp when the availabilityState changes
- * to Available.
+ * Timestamp when the availabilityState changes to Available.
*/
resolvedTime?: Date;
/**
- * @member {string} [unavailabilitySummary] Brief description of cause of the
- * resource becoming unavailable.
+ * 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.
- *
+ * Lists actions the user can take based on the current availabilityState of the resource.
*/
export interface RecommendedAction {
/**
- * @member {string} [action] Recommended action.
+ * Recommended action.
*/
action?: string;
/**
- * @member {string} [actionUrl] Link to the action
+ * Link to the action
*/
actionUrl?: string;
/**
- * @member {string} [actionUrlText] Substring of action, it describes which
- * text should host the action url.
+ * 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
+ * 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 of the incident.
*/
title?: string;
/**
- * @member {string} [service] Service impacted by the event.
+ * Service impacted by the event.
*/
service?: string;
/**
- * @member {string} [region] Region impacted by the event.
+ * Region impacted by the event.
*/
region?: string;
/**
- * @member {string} [incidentType] Type of Event.
+ * Type of Event.
*/
incidentType?: string;
}
/**
- * @interface
- * An interface representing ServiceImpactingEvent.
- * Lists the service impacting events that may be affecting the health of the
- * resource.
- *
+ * 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.
+ * Timestamp for when the event started.
*/
eventStartTime?: Date;
/**
- * @member {Date} [eventStatusLastModifiedTime] Timestamp for when event was
- * submitted/detected.
+ * Timestamp for when event was submitted/detected.
*/
eventStatusLastModifiedTime?: Date;
/**
- * @member {string} [correlationId] Correlation id for the event
+ * Correlation id for the event
*/
correlationId?: string;
/**
- * @member {ServiceImpactingEventStatus} [status] Status of the service
- * impacting event.
+ * 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'
+ * 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 description of the availability status.
*/
summary?: string;
/**
- * @member {string} [detailedStatus] Details of the availability status.
+ * 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.
+ * 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
+ * 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.
+ * 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.
+ * 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.
+ * 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
+ * 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.
+ * 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.
+ * Timestamp for when last change in health status occurred.
*/
occuredTime?: Date;
/**
- * @member {ReasonChronicityTypes} [reasonChronicity] Chronicity of the
- * availability transition. Possible values include: 'Transient',
- * 'Persistent'
+ * Chronicity of the availability transition. Possible values include: 'Transient', 'Persistent'
*/
reasonChronicity?: ReasonChronicityTypes;
/**
- * @member {Date} [reportedTime] Timestamp for when the health was last
- * checked.
+ * 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
+ * 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.
+ * 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.
+ * 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.
+ * Azure Resource Manager Identity for the availabilityStatuses resource.
*/
id?: string;
/**
- * @member {string} [name] current.
+ * current.
*/
name?: string;
/**
- * @member {string} [type] Microsoft.ResourceHealth/AvailabilityStatuses.
+ * Microsoft.ResourceHealth/AvailabilityStatuses.
*/
type?: string;
/**
- * @member {string} [location] Azure Resource Manager geo location of the
- * resource.
+ * Azure Resource Manager geo location of the resource.
*/
location?: string;
/**
- * @member {AvailabilityStatusProperties} [properties] Properties of
- * availability state.
+ * Properties of availability state.
*/
properties?: AvailabilityStatusProperties;
}
/**
- * @interface
- * An interface representing OperationDisplay.
* Properties of the operation.
- *
*/
export interface OperationDisplay {
/**
- * @member {string} [provider] Provider name.
+ * Provider name.
*/
provider?: string;
/**
- * @member {string} [resource] Resource name.
+ * Resource name.
*/
resource?: string;
/**
- * @member {string} [operation] Operation name.
+ * Operation name.
*/
operation?: string;
/**
- * @member {string} [description] Description of the operation.
+ * 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 of the operation.
*/
name?: string;
/**
- * @member {OperationDisplay} [display] Properties of the operation.
+ * 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.
+ * List of operations available in the resourcehealth resource provider.
*/
value: Operation[];
}
/**
- * @interface
- * An interface representing ErrorResponse.
+ * Banner type of emerging issue.
+ */
+export interface StatusBanner {
+ /**
+ * The banner title.
+ */
+ title?: string;
+ /**
+ * The details of banner.
+ */
+ message?: string;
+ /**
+ * The cloud type of this banner.
+ */
+ cloud?: string;
+ /**
+ * The last time modified on this banner.
+ */
+ lastModifiedTime?: Date;
+}
+
+/**
+ * Object of impacted region.
+ */
+export interface ImpactedRegion {
+ /**
+ * The impacted region id.
+ */
+ id?: string;
+ /**
+ * The impacted region name.
+ */
+ name?: string;
+}
+
+/**
+ * Object of the emerging issue impact on services and regions.
+ */
+export interface EmergingIssueImpact {
+ /**
+ * The impacted service id.
+ */
+ id?: string;
+ /**
+ * The impacted service name.
+ */
+ name?: string;
+ /**
+ * The list of impacted regions for corresponding emerging issues.
+ */
+ regions?: ImpactedRegion[];
+}
+
+/**
+ * Active event type of emerging issue.
+ */
+export interface StatusActiveEvent {
+ /**
+ * The active event title.
+ */
+ title?: string;
+ /**
+ * The details of active event.
+ */
+ description?: string;
+ /**
+ * The tracking id of this active event.
+ */
+ trackingId?: string;
+ /**
+ * The impact start time on this active event.
+ */
+ startTime?: Date;
+ /**
+ * The cloud type of this active event.
+ */
+ cloud?: string;
+ /**
+ * The severity level of this active event. Possible values include: 'Information', 'Warning',
+ * 'Error'
+ */
+ severity?: SeverityValues;
+ /**
+ * The stage of this active event. Possible values include: 'Active', 'Resolve', 'Archived'
+ */
+ stage?: StageValues;
+ /**
+ * The boolean value of this active event if published or not.
+ */
+ published?: boolean;
+ /**
+ * The last time modified on this banner.
+ */
+ lastModifiedTime?: Date;
+ /**
+ * The list of emerging issues impacts.
+ */
+ impacts?: EmergingIssueImpact[];
+}
+
+/**
+ * Common fields that are returned in the response for all Azure Resource Manager resources
+ * @summary Resource
+ */
+export interface Resource extends BaseResource {
+ /**
+ * Fully qualified resource ID for the resource. Ex -
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly id?: string;
+ /**
+ * The name of the resource
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly name?: string;
+ /**
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
+ * "Microsoft.Storage/storageAccounts"
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly type?: string;
+}
+
+/**
+ * The Get EmergingIssues operation response.
+ */
+export interface EmergingIssuesGetResult extends Resource {
+ /**
+ * Timestamp for when last time refreshed for ongoing emerging issue.
+ */
+ refreshTimestamp?: Date;
+ /**
+ * The list of emerging issues of banner type.
+ */
+ statusBanners?: StatusBanner[];
+ /**
+ * The list of emerging issues of active event type.
+ */
+ statusActiveEvents?: StatusActiveEvent[];
+}
+
+/**
* 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.**
+ * 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.**
+ * 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.**
+ * 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.
+ * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags
+ * and a location
+ * @summary Proxy Resource
+ */
+export interface ProxyResource extends Resource {
+}
+
+/**
+ * The resource model definition for an Azure Resource Manager tracked top level resource which has
+ * 'tags' and a 'location'
+ * @summary Tracked Resource
+ */
+export interface TrackedResource extends Resource {
+ /**
+ * Resource tags.
+ */
+ tags?: { [propertyName: string]: string };
+ /**
+ * The geo-location where the resource lives
+ */
+ location: string;
+}
+
+/**
+ * The resource model definition for an Azure Resource Manager resource with an etag.
+ * @summary Entity Resource
+ */
+export interface AzureEntityResource extends Resource {
+ /**
+ * Resource Etag.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly etag?: string;
+}
+
+/**
* 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
+ * 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.
+ * 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
+ * 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.
+ * 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
+ * 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.
+ * 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
+ * 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.
+ * Setting $expand=recommendedactions in url query expands the recommendedactions in the
+ * response.
*/
expand?: string;
}
/**
- * @interface
- * An interface representing MicrosoftResourceHealthOptions.
- * @extends AzureServiceClientOptions
+ * Optional Parameters.
*/
-export interface MicrosoftResourceHealthOptions extends AzureServiceClientOptions {
+export interface AvailabilityStatusesListBySubscriptionIdNextOptionalParams extends msRest.RequestOptionsBase {
/**
- * @member {string} [baseUri]
+ * The filter to apply on the operation. For more information please see
+ * https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN
*/
- baseUri?: string;
+ filter?: string;
+ /**
+ * Setting $expand=recommendedactions in url query expands the recommendedactions in the
+ * response.
+ */
+ expand?: string;
}
+/**
+ * Optional Parameters.
+ */
+export interface AvailabilityStatusesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * 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;
+ /**
+ * Setting $expand=recommendedactions in url query expands the recommendedactions in the
+ * response.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface AvailabilityStatusesListNextOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * 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;
+ /**
+ * Setting $expand=recommendedactions in url query expands the recommendedactions in the
+ * response.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ChildAvailabilityStatusesGetByResourceOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * 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;
+ /**
+ * Setting $expand=recommendedactions in url query expands the recommendedactions in the
+ * response.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ChildAvailabilityStatusesListOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * 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;
+ /**
+ * Setting $expand=recommendedactions in url query expands the recommendedactions in the
+ * response.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ChildAvailabilityStatusesListNextOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * 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;
+ /**
+ * Setting $expand=recommendedactions in url query expands the recommendedactions in the
+ * response.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ChildResourcesListOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * 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;
+ /**
+ * Setting $expand=recommendedactions in url query expands the recommendedactions in the
+ * response.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ChildResourcesListNextOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * 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;
+ /**
+ * Setting $expand=recommendedactions in url query expands the recommendedactions in the
+ * response.
+ */
+ expand?: string;
+}
+
+/**
+ * An interface representing MicrosoftResourceHealthOptions.
+ */
+export interface MicrosoftResourceHealthOptions extends AzureServiceClientOptions {
+ 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.
+ * The URI to fetch the next page of availabilityStatuses. Call ListNext() with this URI to fetch
+ * the next page of availabilityStatuses.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The list of emerging issues.
+ * @extends Array
+ */
+export interface EmergingIssueListResult extends Array {
+ /**
+ * The link used to get the next page of emerging issues.
*/
nextLink?: string;
}
@@ -475,6 +697,22 @@ export type AvailabilityStateValues = 'Available' | 'Unavailable' | 'Unknown';
*/
export type ReasonChronicityTypes = 'Transient' | 'Persistent';
+/**
+ * Defines values for SeverityValues.
+ * Possible values include: 'Information', 'Warning', 'Error'
+ * @readonly
+ * @enum {string}
+ */
+export type SeverityValues = 'Information' | 'Warning' | 'Error';
+
+/**
+ * Defines values for StageValues.
+ * Possible values include: 'Active', 'Resolve', 'Archived'
+ * @readonly
+ * @enum {string}
+ */
+export type StageValues = 'Active' | 'Resolve' | 'Archived';
+
/**
* Contains response data for the listBySubscriptionId operation.
*/
@@ -487,6 +725,7 @@ export type AvailabilityStatusesListBySubscriptionIdResponse = AvailabilityStatu
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -506,6 +745,7 @@ export type AvailabilityStatusesListByResourceGroupResponse = AvailabilityStatus
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -525,6 +765,7 @@ export type AvailabilityStatusesGetByResourceResponse = AvailabilityStatus & {
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -544,6 +785,7 @@ export type AvailabilityStatusesListResponse = AvailabilityStatusListResult & {
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -563,6 +805,7 @@ export type AvailabilityStatusesListBySubscriptionIdNextResponse = AvailabilityS
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -582,6 +825,7 @@ export type AvailabilityStatusesListByResourceGroupNextResponse = AvailabilitySt
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
@@ -601,6 +845,107 @@ export type AvailabilityStatusesListNextResponse = AvailabilityStatusListResult
* 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 ChildAvailabilityStatusesGetByResourceResponse = 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 ChildAvailabilityStatusesListResponse = 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 ChildAvailabilityStatusesListNextResponse = 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 ChildResourcesListResponse = 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 ChildResourcesListNextResponse = 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
*/
@@ -620,9 +965,70 @@ export type OperationsListResponse = OperationListResult & {
* The response body as text (string format)
*/
bodyAsText: string;
+
/**
* The response body as parsed JSON or XML
*/
parsedBody: OperationListResult;
};
};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type EmergingIssuesGetResponse = EmergingIssuesGetResult & {
+ /**
+ * 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: EmergingIssuesGetResult;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type EmergingIssuesListResponse = EmergingIssueListResult & {
+ /**
+ * 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: EmergingIssueListResult;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type EmergingIssuesListNextResponse = EmergingIssueListResult & {
+ /**
+ * 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: EmergingIssueListResult;
+ };
+};
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts
index 1fce81cd1f47..6355a3107609 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/models/mappers.ts
@@ -1,11 +1,9 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
@@ -411,6 +409,244 @@ export const OperationListResult: msRest.CompositeMapper = {
}
};
+export const StatusBanner: msRest.CompositeMapper = {
+ serializedName: "statusBanner",
+ type: {
+ name: "Composite",
+ className: "StatusBanner",
+ modelProperties: {
+ title: {
+ serializedName: "title",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ },
+ cloud: {
+ serializedName: "cloud",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedTime: {
+ serializedName: "lastModifiedTime",
+ type: {
+ name: "DateTime"
+ }
+ }
+ }
+ }
+};
+
+export const ImpactedRegion: msRest.CompositeMapper = {
+ serializedName: "impactedRegion",
+ type: {
+ name: "Composite",
+ className: "ImpactedRegion",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const EmergingIssueImpact: msRest.CompositeMapper = {
+ serializedName: "emergingIssueImpact",
+ type: {
+ name: "Composite",
+ className: "EmergingIssueImpact",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ regions: {
+ serializedName: "regions",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ImpactedRegion"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const StatusActiveEvent: msRest.CompositeMapper = {
+ serializedName: "statusActiveEvent",
+ type: {
+ name: "Composite",
+ className: "StatusActiveEvent",
+ modelProperties: {
+ title: {
+ serializedName: "title",
+ type: {
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ },
+ trackingId: {
+ serializedName: "trackingId",
+ type: {
+ name: "String"
+ }
+ },
+ startTime: {
+ serializedName: "startTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ cloud: {
+ serializedName: "cloud",
+ type: {
+ name: "String"
+ }
+ },
+ severity: {
+ serializedName: "severity",
+ type: {
+ name: "String"
+ }
+ },
+ stage: {
+ serializedName: "stage",
+ type: {
+ name: "String"
+ }
+ },
+ published: {
+ serializedName: "published",
+ type: {
+ name: "Boolean"
+ }
+ },
+ lastModifiedTime: {
+ serializedName: "lastModifiedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ impacts: {
+ serializedName: "impacts",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "EmergingIssueImpact"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Resource: msRest.CompositeMapper = {
+ serializedName: "Resource",
+ type: {
+ name: "Composite",
+ className: "Resource",
+ modelProperties: {
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const EmergingIssuesGetResult: msRest.CompositeMapper = {
+ serializedName: "emergingIssuesGetResult",
+ type: {
+ name: "Composite",
+ className: "EmergingIssuesGetResult",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ refreshTimestamp: {
+ serializedName: "properties.refreshTimestamp",
+ type: {
+ name: "DateTime"
+ }
+ },
+ statusBanners: {
+ serializedName: "properties.statusBanners",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "StatusBanner"
+ }
+ }
+ }
+ },
+ statusActiveEvents: {
+ serializedName: "properties.statusActiveEvents",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "StatusActiveEvent"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
export const ErrorResponse: msRest.CompositeMapper = {
serializedName: "ErrorResponse",
type: {
@@ -442,6 +678,64 @@ export const ErrorResponse: msRest.CompositeMapper = {
}
};
+export const ProxyResource: msRest.CompositeMapper = {
+ serializedName: "ProxyResource",
+ type: {
+ name: "Composite",
+ className: "ProxyResource",
+ modelProperties: {
+ ...Resource.type.modelProperties
+ }
+ }
+};
+
+export const TrackedResource: msRest.CompositeMapper = {
+ serializedName: "TrackedResource",
+ type: {
+ name: "Composite",
+ className: "TrackedResource",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ location: {
+ required: true,
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const AzureEntityResource: msRest.CompositeMapper = {
+ serializedName: "AzureEntityResource",
+ type: {
+ name: "Composite",
+ className: "AzureEntityResource",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ etag: {
+ readOnly: true,
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const AvailabilityStatusListResult: msRest.CompositeMapper = {
serializedName: "availabilityStatusListResult",
type: {
@@ -470,3 +764,31 @@ export const AvailabilityStatusListResult: msRest.CompositeMapper = {
}
}
};
+
+export const EmergingIssueListResult: msRest.CompositeMapper = {
+ serializedName: "emergingIssueListResult",
+ type: {
+ name: "Composite",
+ className: "EmergingIssueListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "EmergingIssuesGetResult"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/operationsMappers.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/operationsMappers.ts
index 715467ec9522..3e8e33c6f2bd 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/models/operationsMappers.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/models/operationsMappers.ts
@@ -1,17 +1,14 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export {
- OperationListResult,
+ ErrorResponse,
Operation,
OperationDisplay,
- ErrorResponse
+ OperationListResult
} from "../models/mappers";
-
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts b/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts
index 3c69fabd5c3d..8e466ea63e66 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/models/parameters.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@@ -54,6 +53,18 @@ export const filter: msRest.OperationQueryParameter = {
}
}
};
+export const issueName: msRest.OperationURLParameter = {
+ parameterPath: "issueName",
+ mapper: {
+ required: true,
+ isConstant: true,
+ serializedName: "issueName",
+ defaultValue: 'default',
+ type: {
+ name: "String"
+ }
+ }
+};
export const nextPageLink: msRest.OperationURLParameter = {
parameterPath: "nextPageLink",
mapper: {
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts
index aa82932606f9..b37b4dd673f4 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/availabilityStatuses.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@@ -168,7 +167,7 @@ export class AvailabilityStatuses {
* @param [options] The optional parameters
* @returns Promise
*/
- listBySubscriptionIdNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ listBySubscriptionIdNext(nextPageLink: string, options?: Models.AvailabilityStatusesListBySubscriptionIdNextOptionalParams): Promise;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
@@ -179,8 +178,8 @@ export class AvailabilityStatuses {
* @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listBySubscriptionIdNext(nextPageLink: string, options: Models.AvailabilityStatusesListBySubscriptionIdNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listBySubscriptionIdNext(nextPageLink: string, options?: Models.AvailabilityStatusesListBySubscriptionIdNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
@@ -197,7 +196,7 @@ export class AvailabilityStatuses {
* @param [options] The optional parameters
* @returns Promise
*/
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ listByResourceGroupNext(nextPageLink: string, options?: Models.AvailabilityStatusesListByResourceGroupNextOptionalParams): Promise;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
@@ -208,8 +207,8 @@ export class AvailabilityStatuses {
* @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 | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listByResourceGroupNext(nextPageLink: string, options: Models.AvailabilityStatusesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listByResourceGroupNext(nextPageLink: string, options?: Models.AvailabilityStatusesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
@@ -226,7 +225,7 @@ export class AvailabilityStatuses {
* @param [options] The optional parameters
* @returns Promise
*/
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ listNext(nextPageLink: string, options?: Models.AvailabilityStatusesListNextOptionalParams): Promise;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
@@ -237,8 +236,8 @@ export class AvailabilityStatuses {
* @param options The optional parameters
* @param callback The callback
*/
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listNext(nextPageLink: string, options: Models.AvailabilityStatusesListNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: Models.AvailabilityStatusesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
@@ -359,6 +358,11 @@ const listBySubscriptionIdNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
headerParameters: [
Parameters.acceptLanguage
],
@@ -380,6 +384,11 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
headerParameters: [
Parameters.acceptLanguage
],
@@ -401,6 +410,11 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts
new file mode 100644
index 000000000000..99d0a8f4fb7d
--- /dev/null
+++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/childAvailabilityStatuses.ts
@@ -0,0 +1,203 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/childAvailabilityStatusesMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftResourceHealthContext } from "../microsoftResourceHealthContext";
+
+/** Class representing a ChildAvailabilityStatuses. */
+export class ChildAvailabilityStatuses {
+ private readonly client: MicrosoftResourceHealthContext;
+
+ /**
+ * Create a ChildAvailabilityStatuses.
+ * @param {MicrosoftResourceHealthContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftResourceHealthContext) {
+ this.client = client;
+ }
+
+ /**
+ * 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 only support one nesting level resource types :
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ getByResource(resourceUri: string, options?: Models.ChildAvailabilityStatusesGetByResourceOptionalParams): Promise;
+ /**
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API only support one nesting level resource types :
+ * /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 only support one nesting level resource types :
+ * /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.ChildAvailabilityStatusesGetByResourceOptionalParams, callback: msRest.ServiceCallback): void;
+ getByResource(resourceUri: string, options?: Models.ChildAvailabilityStatusesGetByResourceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceUri,
+ options
+ },
+ getByResourceOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists the historical availability statuses for a single child 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 only support one nesting level resource types :
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(resourceUri: string, options?: Models.ChildAvailabilityStatusesListOptionalParams): Promise;
+ /**
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API only support one nesting level resource types :
+ * /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 only support one nesting level resource types :
+ * /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.ChildAvailabilityStatusesListOptionalParams, callback: msRest.ServiceCallback): void;
+ list(resourceUri: string, options?: Models.ChildAvailabilityStatusesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceUri,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists the historical availability statuses for a single child 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?: Models.ChildAvailabilityStatusesListNextOptionalParams): 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: Models.ChildAvailabilityStatusesListNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: Models.ChildAvailabilityStatusesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const getByResourceOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/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/childAvailabilityStatuses",
+ urlParameters: [
+ Parameters.resourceUri
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
+ 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
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts
new file mode 100644
index 000000000000..c1bc8556dfc6
--- /dev/null
+++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/childResources.ts
@@ -0,0 +1,144 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/childResourcesMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftResourceHealthContext } from "../microsoftResourceHealthContext";
+
+/** Class representing a ChildResources. */
+export class ChildResources {
+ private readonly client: MicrosoftResourceHealthContext;
+
+ /**
+ * Create a ChildResources.
+ * @param {MicrosoftResourceHealthContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftResourceHealthContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists the all the children and its current health status for a parent resource. Use the nextLink
+ * property in the response to get the next page of children current health
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API only support not nested parent resource type:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(resourceUri: string, options?: Models.ChildResourcesListOptionalParams): Promise;
+ /**
+ * @param resourceUri The fully qualified ID of the resource, including the resource name and
+ * resource type. Currently the API only support not nested parent resource type:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
+ * @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 only support not nested parent resource type:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(resourceUri: string, options: Models.ChildResourcesListOptionalParams, callback: msRest.ServiceCallback): void;
+ list(resourceUri: string, options?: Models.ChildResourcesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceUri,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists the all the children and its current health status for a parent resource. Use the nextLink
+ * property in the response to get the next page of children current health
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: Models.ChildResourcesListNextOptionalParams): 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: Models.ChildResourcesListNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: Models.ChildResourcesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "{resourceUri}/providers/Microsoft.ResourceHealth/childResources",
+ urlParameters: [
+ Parameters.resourceUri
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
+ 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
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter,
+ Parameters.expand
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.AvailabilityStatusListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/emergingIssues.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/emergingIssues.ts
new file mode 100644
index 000000000000..2ba31ae65bf5
--- /dev/null
+++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/emergingIssues.ts
@@ -0,0 +1,172 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/emergingIssuesMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftResourceHealthContext } from "../microsoftResourceHealthContext";
+
+/** Class representing a EmergingIssues. */
+export class EmergingIssues {
+ private readonly client: MicrosoftResourceHealthContext;
+
+ /**
+ * Create a EmergingIssues.
+ * @param {MicrosoftResourceHealthContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftResourceHealthContext) {
+ this.client = client;
+ }
+
+ /**
+ * Gets Azure services' emerging issues.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ get(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists Azure services' emerging issues.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ list(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists Azure services' emerging issues.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "providers/Microsoft.ResourceHealth/emergingIssues/{issueName}",
+ urlParameters: [
+ Parameters.issueName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.EmergingIssuesGetResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "providers/Microsoft.ResourceHealth/emergingIssues",
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.EmergingIssueListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.EmergingIssueListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/index.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/index.ts
index ee30683ee8d3..61587da5307e 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/operations/index.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/index.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
@@ -9,4 +8,7 @@
*/
export * from "./availabilityStatuses";
+export * from "./childAvailabilityStatuses";
+export * from "./childResources";
export * from "./operations";
+export * from "./emergingIssues";
diff --git a/sdk/resourcehealth/arm-resourcehealth/src/operations/operations.ts b/sdk/resourcehealth/arm-resourcehealth/src/operations/operations.ts
index 00fcc25c3ae7..3bafe82eb8bf 100644
--- a/sdk/resourcehealth/arm-resourcehealth/src/operations/operations.ts
+++ b/sdk/resourcehealth/arm-resourcehealth/src/operations/operations.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
diff --git a/sdk/resourcehealth/arm-resourcehealth/tsconfig.json b/sdk/resourcehealth/arm-resourcehealth/tsconfig.json
index 87bbf5b5fa49..422b584abd5e 100644
--- a/sdk/resourcehealth/arm-resourcehealth/tsconfig.json
+++ b/sdk/resourcehealth/arm-resourcehealth/tsconfig.json
@@ -9,7 +9,7 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
- "lib": ["es6"],
+ "lib": ["es6", "dom"],
"declaration": true,
"outDir": "./esm",
"importHelpers": true