Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 20 additions & 8 deletions sdk/resourcehealth/arm-resourcehealth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
# Release History

## 5.0.0-beta.1 (2023-08-16)

**Features**

## 4.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Interface Event_2 has a new optional parameter argQuery
- Interface Event_2 has a new optional parameter maintenanceId
- Interface Event_2 has a new optional parameter maintenanceType

### Other Changes
**Breaking Changes**

- Removed operation group ChildAvailabilityStatuses
- Removed operation group ChildResources
- Class MicrosoftResourceHealth has a new signature
- Interface AvailabilityStatusProperties no longer has parameter articleId
- Interface Event_2 no longer has parameter reason
- Interface EventPropertiesArticle no longer has parameter articleId
- Interface EventPropertiesArticle no longer has parameter parameters
- Interface RecommendedAction no longer has parameter actionUrlComment
- Class MicrosoftResourceHealth no longer has parameter childAvailabilityStatuses
- Class MicrosoftResourceHealth no longer has parameter childResources


## 4.0.0 (2023-05-12)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/resourcehealth/arm-resourcehealth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Resource Health Client.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-resourcehealth) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/resourcehealth/arm-resourcehealth/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1c3433247689aa55d7ecdd213505dc28c035f2b9",
"commit": "5c1ea682d190ad8769009466e62bb94ea8e4e17e",
"readme": "specification/resourcehealth/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resourcehealth\\resource-manager\\readme.md --use=@autorest/typescript@6.0.1 --generate-sample=true",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resourcehealth/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/typescript@6.0.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
"use": "@autorest/typescript@^6.0.4"
}
17 changes: 5 additions & 12 deletions sdk/resourcehealth/arm-resourcehealth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for MicrosoftResourceHealth.",
"version": "4.0.1",
"version": "5.0.0-beta.1",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand Down Expand Up @@ -46,6 +46,7 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
Expand Down Expand Up @@ -109,13 +110,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resourcehealth?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcehealth/arm-resourcehealth"
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export interface AvailabilityStatusListResult {

// @public
export interface AvailabilityStatusProperties {
articleId?: string;
availabilityState?: AvailabilityStateValues;
category?: string;
context?: string;
Expand Down Expand Up @@ -122,58 +121,6 @@ export interface AvailabilityStatusPropertiesRecentlyResolved {
unavailableSummary?: string;
}

// @public
export interface ChildAvailabilityStatuses {
getByResource(resourceUri: string, options?: ChildAvailabilityStatusesGetByResourceOptionalParams): Promise<ChildAvailabilityStatusesGetByResourceResponse>;
list(resourceUri: string, options?: ChildAvailabilityStatusesListOptionalParams): PagedAsyncIterableIterator<AvailabilityStatus>;
}

// @public
export interface ChildAvailabilityStatusesGetByResourceOptionalParams extends coreClient.OperationOptions {
expand?: string;
filter?: string;
}

// @public
export type ChildAvailabilityStatusesGetByResourceResponse = AvailabilityStatus;

// @public
export interface ChildAvailabilityStatusesListNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ChildAvailabilityStatusesListNextResponse = AvailabilityStatusListResult;

// @public
export interface ChildAvailabilityStatusesListOptionalParams extends coreClient.OperationOptions {
expand?: string;
filter?: string;
}

// @public
export type ChildAvailabilityStatusesListResponse = AvailabilityStatusListResult;

// @public
export interface ChildResources {
list(resourceUri: string, options?: ChildResourcesListOptionalParams): PagedAsyncIterableIterator<AvailabilityStatus>;
}

// @public
export interface ChildResourcesListNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ChildResourcesListNextResponse = AvailabilityStatusListResult;

// @public
export interface ChildResourcesListOptionalParams extends coreClient.OperationOptions {
expand?: string;
filter?: string;
}

// @public
export type ChildResourcesListResponse = AvailabilityStatusListResult;

// @public
export type CreatedByType = string;

Expand Down Expand Up @@ -204,7 +151,7 @@ export interface EmergingIssuesGetOptionalParams extends coreClient.OperationOpt
export type EmergingIssuesGetResponse = EmergingIssuesGetResult;

// @public
export interface EmergingIssuesGetResult extends ProxyResource {
export interface EmergingIssuesGetResult extends Resource {
refreshTimestamp?: Date;
statusActiveEvents?: StatusActiveEvent[];
statusBanners?: StatusBanner[];
Expand Down Expand Up @@ -234,6 +181,7 @@ export interface ErrorResponse {
// @public
interface Event_2 extends ProxyResource {
additionalInformation?: EventPropertiesAdditionalInformation;
argQuery?: string;
article?: EventPropertiesArticle;
description?: string;
duration?: number;
Expand All @@ -254,9 +202,10 @@ interface Event_2 extends ProxyResource {
lastUpdateTime?: Date;
level?: LevelValues;
links?: Link[];
maintenanceId?: string;
maintenanceType?: string;
platformInitiated?: boolean;
priority?: number;
reason?: string;
recommendedActions?: EventPropertiesRecommendedActions;
status?: EventStatusValues;
summary?: string;
Expand Down Expand Up @@ -329,8 +278,6 @@ export interface EventPropertiesAdditionalInformation {
// @public
export interface EventPropertiesArticle {
articleContent?: string;
articleId?: string;
parameters?: Record<string, unknown>;
}

// @public
Expand Down Expand Up @@ -686,15 +633,12 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MicrosoftResourceHealthOptionalParams);
constructor(credentials: coreAuth.TokenCredential, options?: MicrosoftResourceHealthOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
availabilityStatuses: AvailabilityStatuses;
// (undocumented)
childAvailabilityStatuses: ChildAvailabilityStatuses;
// (undocumented)
childResources: ChildResources;
// (undocumented)
emergingIssues: EmergingIssues;
// (undocumented)
eventOperations: EventOperations;
Expand All @@ -709,7 +653,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
// (undocumented)
securityAdvisoryImpactedResources: SecurityAdvisoryImpactedResources;
// (undocumented)
subscriptionId: string;
subscriptionId?: string;
}

// @public
Expand Down Expand Up @@ -764,7 +708,6 @@ export type ReasonTypeValues = string;
export interface RecommendedAction {
action?: string;
actionUrl?: string;
actionUrlComment?: string;
actionUrlText?: string;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import {
SecurityAdvisoryImpactedResourcesImpl,
EventsOperationsImpl,
EventOperationsImpl,
ChildAvailabilityStatusesImpl,
ChildResourcesImpl,
EmergingIssuesImpl
} from "./operations";
import {
Expand All @@ -34,16 +32,14 @@ import {
SecurityAdvisoryImpactedResources,
EventsOperations,
EventOperations,
ChildAvailabilityStatuses,
ChildResources,
EmergingIssues
} from "./operationsInterfaces";
import { MicrosoftResourceHealthOptionalParams } from "./models";

export class MicrosoftResourceHealth extends coreClient.ServiceClient {
$host: string;
apiVersion: string;
subscriptionId: string;
subscriptionId?: string;

/**
* Initializes a new instance of the MicrosoftResourceHealth class.
Expand All @@ -55,12 +51,26 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
credentials: coreAuth.TokenCredential,
subscriptionId: string,
options?: MicrosoftResourceHealthOptionalParams
);
constructor(
credentials: coreAuth.TokenCredential,
options?: MicrosoftResourceHealthOptionalParams
);
constructor(
credentials: coreAuth.TokenCredential,
subscriptionIdOrOptions?: MicrosoftResourceHealthOptionalParams | string,
options?: MicrosoftResourceHealthOptionalParams
) {
if (credentials === undefined) {
throw new Error("'credentials' cannot be null");
}
if (subscriptionId === undefined) {
throw new Error("'subscriptionId' cannot be null");

let subscriptionId: string | undefined;

if (typeof subscriptionIdOrOptions === "string") {
subscriptionId = subscriptionIdOrOptions;
} else if (typeof subscriptionIdOrOptions === "object") {
options = subscriptionIdOrOptions;
}

// Initializing default values for options
Expand All @@ -72,7 +82,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-resourcehealth/4.0.1`;
const packageDetails = `azsdk-js-arm-resourcehealth/5.0.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -125,7 +135,7 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2022-10-01";
this.apiVersion = options.apiVersion || "2023-07-01-preview";
this.availabilityStatuses = new AvailabilityStatusesImpl(this);
this.operations = new OperationsImpl(this);
this.metadata = new MetadataImpl(this);
Expand All @@ -135,8 +145,6 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
);
this.eventsOperations = new EventsOperationsImpl(this);
this.eventOperations = new EventOperationsImpl(this);
this.childAvailabilityStatuses = new ChildAvailabilityStatusesImpl(this);
this.childResources = new ChildResourcesImpl(this);
this.emergingIssues = new EmergingIssuesImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);
}
Expand Down Expand Up @@ -176,7 +184,5 @@ export class MicrosoftResourceHealth extends coreClient.ServiceClient {
securityAdvisoryImpactedResources: SecurityAdvisoryImpactedResources;
eventsOperations: EventsOperations;
eventOperations: EventOperations;
childAvailabilityStatuses: ChildAvailabilityStatuses;
childResources: ChildResources;
emergingIssues: EmergingIssues;
}
Loading