Skip to content

Commit

Permalink
CodeGen from PR 15502 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
ResourceHealth - Swagger - AVAILABILITYSTATUSES API - 2020-05-01 Stable & Preview API versions (Azure#15502)

* Add files via upload

Stable - 2020-05-01 API version AvailabilityStatusesAPI

* Add files via upload

Preview - 2020-05-01 API version AvailabilityStatusesAPI

* Update readme.md

fixing the readme file

* Update readme.md

adding stable 202-05-01 API version

* Update ResourceHealth.json

fixed the PR checks for ResourceHealth.json Stable 2020-05-01 API version

* Delete ResourceHealth.json.bak

deleting .bak file

* Update ResourceHealth.json

fixed preview resourcehealth.json

* Update ResourceHealth.json

fixing the typo occurredTime

* Update ResourceHealth.json

fixing typo occurredTime

* Update ResourceHealth.json

fix PR errors

* Update ResourceHealth.json

fix PR checks

* Update ResourceHealth.json

fixing semantic validation

* Update ResourceHealth.json

fixing semantic validation for stable 2020-05-01 API

* Update custom-words.txt

fixing Swagger SpellCheck failure

* Update ResourceHealth.json

fixed Swagger PrettierCheck changes

* Update ResourceHealth.json

fixed Swagger PrettierCheck failure

* Update ResourceHealth.json

fixed Swagger LintDiff

* Update ResourceHealth.json

fixing Swagger LintDiff

* Update ResourceHealth.json

fix Swagger LintDiff failures

* Update readme.md

fixing swagger checks

* Update ResourceHealth.json

fixed eventid issue

* Update ResourceHealth.json

fixed eventId param

* Update ResourceHealth.json

fixing the Swagger PrettierCheck

* Update ResourceHealth.json

correcting the REsourceHealth.json file

* Add files via upload

uplaoding local files

* Add files via upload

fix swagger prettier

* Add files via upload

fix swagger pretttier issue - preview examples

* Add files via upload

fix prettier changes

* Add files via upload

fix swagger prettier changes

* Update readme.md

fixing Swagger Avocado failures

* Update ResourceHealth.json

fixing the ErrorResponse obj

* Update ResourceHealth.json

fix ErrorResponse

* Update ResourceHealth.json

adding operations API

* Update ResourceHealth.json

adding operations API

* Update ResourceHealth.json

removing EventIdParameter

* Update readme.md

fix .md file issue

* Update ResourceHealth.json

added operationsList

* Update ResourceHealth.json

added operationsList

* Add files via upload

fixing swagger prettier checks

* Add files via upload

fixing swagger prettier checks

* Update ResourceHealth.json

fixing semantic validation

* Update ResourceHealth.json

fixing semantic validation

* Create ResourceHealth.json

fixing the preview folder name

* Delete specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview directory

delete temp

* Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json

renaming the folder name

* Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json

rename

* Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json

rename

* Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json

rename

* Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json

rename

* Update readme.md

fixing 2020-05-01-preivew paths

* Update custom-words.txt

reverting back  occured typo

* Update AvailabilityStatus_GetByResource.json

fix typo

* Update AvailabilityStatuses_List.json

fix typo

* Update AvailabilityStatuses_ListByResourceGroup.json

fix typo

* Update AvailabilityStatuses_ListBySubscriptionId.json

fix typo

* Update AvailabilityStatus_GetByResource.json

fix typo

* Update AvailabilityStatus_GetByResource.json

fix typo

* Update AvailabilityStatuses_List.json

fix typo

* Update AvailabilityStatuses_ListByResourceGroup.json

fix typo

* Update AvailabilityStatuses_ListBySubscriptionId.json

fix typo

* Update ResourceHealth.json

fix typo

* Update ResourceHealth.json

fix typo

* Update AvailabilityStatuses_ListByResourceGroup.json

fix typo

* Update AvailabilityStatuses_List.json

fix typo

* Update AvailabilityStatuses_ListBySubscriptionId.json

fix typo

* Update AvailabilityStatuses_List.json

fixed typo

* Update AvailabilityStatuses_ListByResourceGroup.json

fix typo

* Update AvailabilityStatuses_ListBySubscriptionId.json

fixed typo
  • Loading branch information
SDKAuto committed Sep 7, 2021
1 parent cbdc48e commit dcfe9e2
Show file tree
Hide file tree
Showing 21 changed files with 1,587 additions and 250 deletions.
2 changes: 1 addition & 1 deletion sdk/resourcehealth/arm-resourcehealth/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 3 additions & 5 deletions sdk/resourcehealth/arm-resourcehealth/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Azure MicrosoftResourceHealth SDK for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for MicrosoftResourceHealth.
This package contains an isomorphic SDK (runs both in node.js and in browsers) for MicrosoftResourceHealth.

### Currently supported environments

- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge, and Firefox.
- Latest versions of Safari, Chrome, Edge and Firefox.

### Prerequisites

Expand All @@ -21,7 +21,6 @@ Install both packages using the below command:
```bash
npm install --save @azure/arm-resourcehealth @azure/identity
```

> **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.

Expand All @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/

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
Expand Down Expand Up @@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
const credential = new InteractiveBrowserCredential(
{
clientId: "<client id for your Azure AD app>",
tenantId: "<optional tenant for your organization>"
tenant: "<optional tenant for your organization>"
});
const client = new Azure.ArmResourcehealth.MicrosoftResourceHealth(creds, subscriptionId);
const filter = "testfilter";
Expand Down
20 changes: 11 additions & 9 deletions sdk/resourcehealth/arm-resourcehealth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "MicrosoftResourceHealth Library with typescript type definitions for node.js and browser.",
"version": "1.2.1",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.4.0",
"@azure/ms-rest-js": "^1.11.0",
"@azure/ms-rest-azure-js": "^2.1.0",
"@azure/ms-rest-js": "^2.2.0",
"@azure/core-auth": "^1.1.4",
"tslib": "^1.9.3"
"tslib": "^1.10.0"
},
"keywords": [
"node",
Expand All @@ -22,17 +22,18 @@
"types": "./esm/microsoftResourceHealth.d.ts",
"devDependencies": {
"typescript": "^3.6.0",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"uglify-js": "^3.4.9"
"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/feature/v4/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",
Expand All @@ -44,6 +45,7 @@
"esm/**/*.d.ts",
"esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
"rollup.config.js",
"tsconfig.json"
],
Expand Down
24 changes: 15 additions & 9 deletions sdk/resourcehealth/arm-resourcehealth/rollup.config.js
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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;
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -19,7 +18,10 @@ 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.
Expand All @@ -36,7 +38,10 @@ class MicrosoftResourceHealth extends MicrosoftResourceHealthContext {
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);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,8 +9,8 @@

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import { TokenCredential } from "@azure/core-auth";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import { TokenCredential } from "@azure/core-auth";

const packageName = "@azure/arm-resourcehealth";
const packageVersion = "1.2.1";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Original file line number Diff line number Diff line change
@@ -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";
Original file line number Diff line number Diff line change
@@ -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";
Original file line number Diff line number Diff line change
@@ -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";
Loading

0 comments on commit dcfe9e2

Please sign in to comment.