Skip to content

Commit

Permalink
[@azure/eventgrid] Update System events for EG Version 5.9.0 (#32011)
Browse files Browse the repository at this point in the history
### Packages impacted by this PR

@Azure/eventgrid

### Issues associated with this PR

NA

### Describe the problem that is addressed by this PR

This PR consists of the following changes:

- Added new System Events:
-
`Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted`
- A new property `policyRunSummary` has been added to
`StorageLifecyclePolicyCompletedEventData` interface.
- New properties `StorageLifecycleCompletionStatus` and
`KnownStorageLifecycleCompletionStatus` have been added.


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

There are no specific/complex design scenarios for this task. It is a
straightforward regenerate and some standard changes to the custom layer
of the code.

### Are there test cases added in this PR? _(If not, why?)_

No. This item is standard and we need not add test cases for every new
events. The existing cases would be sufficient.

### Provide a list of related PRs _(if any)_
- #28176 (This is the PR
that adds similar events to the SDK in the 5.1.0 release)
- #28513 (This is the PR
that adds similar events to the SDK in the 5.2.0 release)
- #28891 (This is the PR
that adds similar events to the SDK in the 5.3.0 release)
- #29035 (This is the PR
that adds similar events to the SDK in the 5.4.0 release)
- #29872 (This is the PR
that adds similar events to the SDK in the 5.5.0 release)
- #30811 (This is the PR
that adds similar events to the SDK in the 5.6.0 release)

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_
```autorest --typescript swagger\README.md```

### Checklists
- [X] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_
- [X] Added a changelog (if necessary)
  • Loading branch information
sarangan12 authored Dec 2, 2024
1 parent b7ba46e commit 1350c15
Show file tree
Hide file tree
Showing 10 changed files with 104 additions and 8 deletions.
9 changes: 6 additions & 3 deletions sdk/eventgrid/eventgrid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Release History

## 5.8.1 (Unreleased)
## 5.9.0 (2024-12-02)

### Features Added

### Breaking Changes
- Added new System Events:

### Bugs Fixed
- `Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted`

### Other Changes

- A new property `policyRunSummary` has been added to `StorageLifecyclePolicyCompletedEventData` interface.
- New properties `StorageLifecycleCompletionStatus` and `KnownStorageLifecycleCompletionStatus` have been added.

## 5.8.0 (2024-10-14)

### Other Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventgrid/eventgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "client",
"author": "Microsoft Corporation",
"description": "An isomorphic client library for the Azure Event Grid service.",
"version": "5.8.1",
"version": "5.9.0",
"keywords": [
"node",
"azure",
Expand Down
23 changes: 23 additions & 0 deletions sdk/eventgrid/eventgrid/review/eventgrid.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,16 @@ export const enum KnownStampKind {
Public = "Public"
}

// @public
export const enum KnownStorageLifecycleCompletionStatus {
// (undocumented)
Completed = "Completed",
// (undocumented)
CompletedWithError = "CompletedWithError",
// (undocumented)
Incomplete = "Incomplete"
}

// @public
export const enum KnownStorageTaskAssignmentCompletedStatus {
// (undocumented)
Expand Down Expand Up @@ -2340,6 +2350,9 @@ export interface ResourceHttpRequest {
url: string;
}

// @public
export type ResourceNotificationsContainerServiceEventResourcesScheduledEventData = ResourceNotificationsResourceUpdatedEventData & {};

// @public
export type ResourceNotificationsHealthResourcesAnnotatedEventData = ResourceNotificationsResourceUpdatedEventData & {};

Expand Down Expand Up @@ -2614,6 +2627,9 @@ export interface StorageDirectoryRenamedEventData {
storageDiagnostics: any;
}

// @public
export type StorageLifecycleCompletionStatus = string;

// @public
export interface StorageLifecyclePolicyActionSummaryDetail {
errorList: string;
Expand All @@ -2624,12 +2640,18 @@ export interface StorageLifecyclePolicyActionSummaryDetail {
// @public
export interface StorageLifecyclePolicyCompletedEventData {
deleteSummary: StorageLifecyclePolicyActionSummaryDetail;
policyRunSummary: StorageLifecyclePolicyRunSummary;
scheduleTime: string;
tierToArchiveSummary: StorageLifecyclePolicyActionSummaryDetail;
tierToColdSummary: StorageLifecyclePolicyActionSummaryDetail;
tierToCoolSummary: StorageLifecyclePolicyActionSummaryDetail;
}

// @public
export interface StorageLifecyclePolicyRunSummary {
completionStatus: StorageLifecycleCompletionStatus;
}

// @public
export interface StorageTaskAssignmentCompletedEventData {
completedOn: string;
Expand Down Expand Up @@ -2847,6 +2869,7 @@ export interface SystemEventNameToEventData {
"Microsoft.PolicyInsights.PolicyStateChanged ": PolicyInsightsPolicyStateChangedEventData;
"Microsoft.PolicyInsights.PolicyStateCreated": PolicyInsightsPolicyStateCreatedEventData;
"Microsoft.PolicyInsights.PolicyStateDeleted": PolicyInsightsPolicyStateDeletedEventData;
"Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted": ResourceNotificationsContainerServiceEventResourcesScheduledEventData;
"Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged": ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData;
"Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated": ResourceNotificationsHealthResourcesAnnotatedEventData;
"Microsoft.ResourceNotifications.Resources.CreatedOrUpdated": ResourceNotificationsResourceManagementCreatedOrUpdatedEventData;
Expand Down

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

29 changes: 29 additions & 0 deletions sdk/eventgrid/eventgrid/src/generated/models/index.ts

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

34 changes: 34 additions & 0 deletions sdk/eventgrid/eventgrid/src/generated/models/mappers.ts

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

4 changes: 4 additions & 0 deletions sdk/eventgrid/eventgrid/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,8 @@ export {
AcsChatThreadPropertiesUpdatedEventData,
AcsChatThreadEventInThreadBase,
StorageBlobAccessTier,
ResourceNotificationsContainerServiceEventResourcesScheduledEventData,
StorageLifecyclePolicyRunSummary,
StorageLifecycleCompletionStatus,
KnownStorageLifecycleCompletionStatus,
} from "./generated/models/index.js";
3 changes: 3 additions & 0 deletions sdk/eventgrid/eventgrid/src/predicates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ import type {
AcsChatThreadDeletedEventData,
AcsChatThreadCreatedEventData,
AcsChatThreadPropertiesUpdatedEventData,
ResourceNotificationsContainerServiceEventResourcesScheduledEventData,
} from "./generated/models/index.js";

import type { CloudEvent, EventGridEvent } from "./models.js";
Expand Down Expand Up @@ -646,6 +647,8 @@ export interface SystemEventNameToEventData {
"Microsoft.Communication.ChatThreadDeleted": AcsChatThreadDeletedEventData;
/** An interface for the event data of a "Microsoft.Communication.ChatThreadPropertiesUpdated" event. */
"Microsoft.Communication.ChatThreadPropertiesUpdated": AcsChatThreadPropertiesUpdatedEventData;
/** An interface for the event data of a "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted" event. */
"Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted": ResourceNotificationsContainerServiceEventResourcesScheduledEventData;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventgrid/eventgrid/src/tracing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ import { createTracingClient } from "@azure/core-tracing";
export const tracingClient = createTracingClient({
namespace: "Microsoft.Messaging.EventGrid",
packageName: "@azure/event-grid",
packageVersion: "5.8.1",
packageVersion: "5.9.0",
});
4 changes: 2 additions & 2 deletions sdk/eventgrid/eventgrid/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
## Configuration

```yaml
require: "https://github.com/Azure/azure-rest-api-specs/blob/012021c786c360e0c34faf7af888c7fd7dbe2df5/specification/eventgrid/data-plane/readme.md"
require: "https://github.com/Azure/azure-rest-api-specs/blob/fb64eaa0dfc7ee8abc8e10369495729d5b3c1cc5/specification/eventgrid/data-plane/readme.md"
package-name: "@azure/eventgrid"
package-version: "5.8.1"
package-version: "5.9.0"
title: GeneratedClient
description: EventGrid Client
generate-metadata: false
Expand Down

0 comments on commit 1350c15

Please sign in to comment.