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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 25 additions & 14 deletions common/config/rush/pnpm-lock.yaml

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

386 changes: 379 additions & 7 deletions sdk/eventgrid/arm-eventgrid/CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/eventgrid/arm-eventgrid/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2024 Microsoft
Copyright (c) 2025 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
5 changes: 2 additions & 3 deletions sdk/eventgrid/arm-eventgrid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure EventGridManagement client.

Azure EventGrid Management Client
Azure EventGrid Management Client test

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/arm-eventgrid) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-eventgrid) |
Expand Down Expand Up @@ -44,7 +44,6 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure EventGridManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.

For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Expand All @@ -64,8 +63,8 @@ const client = new EventGridManagementClient(new DefaultAzureCredential(), subsc
// const client = new EventGridManagementClient(credential, subscriptionId);
```

### JavaScript Bundle

### JavaScript Bundle
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts
Expand Down
10 changes: 5 additions & 5 deletions sdk/eventgrid/arm-eventgrid/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd",
"commit": "ac25e876360fd307a78193b046042064e76e2683",
"readme": "specification/eventgrid/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --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\\eventgrid\\resource-manager\\readme.md --use=@autorest/[email protected].21 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].7",
"use": "@autorest/[email protected].21"
"autorest_command": "autorest --version=3.9.7 --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/eventgrid/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].18",
"use": "@autorest/typescript@^6.0.12"
}
104 changes: 63 additions & 41 deletions sdk/eventgrid/arm-eventgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for EventGridManagementClient.",
"version": "14.2.0-beta.5",
"version": "15.0.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/abort-controller": "^1.0.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-client": "^1.7.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.9.0",
"@azure/core-client": "^1.9.2",
"@azure/core-lro": "^2.5.4",
"@azure/core-paging": "^1.2.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
"@azure/core-paging": "^1.6.2",
"@azure/core-rest-pipeline": "^1.18.2",
"tslib": "^2.8.1"
},
"keywords": [
"node",
Expand All @@ -24,22 +24,22 @@
"isomorphic"
],
"license": "MIT",
"main": "./dist/index.js",
"main": "./dist/commonjs/index.js",
"module": "./dist-esm/src/index.js",
"types": "./types/arm-eventgrid.d.ts",
"types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@types/chai": "^4.2.8",
"@types/mocha": "^10.0.0",
"@azure/identity": "^4.6.0",
"@types/node": "^18.0.0",
"chai": "^4.2.0",
"@vitest/browser": "^3.0.3",
"@vitest/coverage-istanbul": "^3.0.3",
"dotenv": "^16.0.0",
"mocha": "^11.0.2",
"ts-node": "^10.0.0",
"typescript": "~5.7.2"
"playwright": "^1.50.0",
"typescript": "~5.6.2",
"vitest": "^3.0.3"
},
"repository": {
"type": "git",
Expand All @@ -49,24 +49,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
"dist-esm/**/*.js",
"dist-esm/**/*.js.map",
"dist-esm/**/*.d.ts",
"dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"dist/",
"README.md",
"LICENSE",
"tsconfig.json",
"review/*",
"CHANGELOG.md",
"types/*"
"review/",
"CHANGELOG.md"
],
"scripts": {
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && npm run extract-api",
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
Expand All @@ -78,7 +68,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
Expand All @@ -88,7 +78,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
Expand All @@ -102,12 +92,44 @@
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/arm-eventgrid",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
"type": "module",
"tshy": {
"project": "./tsconfig.src.json",
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
},
"dialects": [
"esm",
"commonjs"
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-eventgrid?view=azure-node-preview"
"esmDialects": [
"browser",
"react-native"
],
"selfLink": false
},
"browser": "./dist/browser/index.js",
"react-native": "./dist/react-native/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./dist/browser/index.d.ts",
"default": "./dist/browser/index.js"
},
"react-native": {
"types": "./dist/react-native/index.d.ts",
"default": "./dist/react-native/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
}
}
}
19 changes: 19 additions & 0 deletions sdk/eventgrid/arm-eventgrid/review/arm-eventgrid.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ export type CustomJwtAuthenticationManagedIdentityType = string;

// @public
export interface CustomJwtAuthenticationSettings {
encodedIssuerCertificates?: EncodedIssuerCertificateInfo[];
issuerCertificates?: IssuerCertificateInfo[];
tokenIssuer?: string;
}
Expand Down Expand Up @@ -891,6 +892,12 @@ export interface DynamicRoutingEnrichment {
value?: string;
}

// @public
export interface EncodedIssuerCertificateInfo {
encodedCertificate: string;
kid: string;
}

// @public
export type EndpointType = string;

Expand Down Expand Up @@ -1052,6 +1059,7 @@ export interface EventSubscriptionFullUrl {

// @public
export interface EventSubscriptionIdentity {
federatedIdentityCredentialInfo?: FederatedIdentityCredentialInfo;
type?: EventSubscriptionIdentityType;
userAssignedIdentity?: string;
}
Expand Down Expand Up @@ -1361,6 +1369,11 @@ export interface ExtensionTopicsGetOptionalParams extends coreClient.OperationOp
// @public
export type ExtensionTopicsGetResponse = ExtensionTopic;

// @public
export interface FederatedIdentityCredentialInfo {
federatedClientId: string;
}

// @public
export interface Filter {
key?: string;
Expand Down Expand Up @@ -3972,6 +3985,9 @@ export interface Subscription extends Resource {
filtersConfiguration?: FiltersConfiguration;
readonly provisioningState?: SubscriptionProvisioningState;
readonly systemData?: SystemData;
tags?: {
[propertyName: string]: string;
};
}

// @public
Expand All @@ -3994,6 +4010,9 @@ export interface SubscriptionUpdateParameters {
eventDeliverySchema?: DeliverySchema;
expirationTimeUtc?: Date;
filtersConfiguration?: FiltersConfiguration;
tags?: {
[propertyName: string]: string;
};
}

// @public
Expand Down
5 changes: 1 addition & 4 deletions sdk/eventgrid/arm-eventgrid/sample.env
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# App registration secret for AAD authentication
AZURE_CLIENT_SECRET=
AZURE_CLIENT_ID=
AZURE_TENANT_ID=
# Feel free to add your own environment variables.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@
// Licensed under the MIT License.
import { CaCertificate, EventGridManagementClient } from "@azure/arm-eventgrid";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Create or update a CA certificate with the specified parameters.
*
* @summary Create or update a CA certificate with the specified parameters.
* x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_CreateOrUpdate.json
*/
async function caCertificatesCreateOrUpdate() {
async function caCertificatesCreateOrUpdate(): Promise<void> {
const subscriptionId =
process.env["EVENTGRID_SUBSCRIPTION_ID"] ||
"8f6b6269-84f2-4d09-9e31-1127efcd1e40";
Expand All @@ -43,7 +41,7 @@ async function caCertificatesCreateOrUpdate() {
console.log(result);
}

async function main() {
async function main(): Promise<void> {
await caCertificatesCreateOrUpdate();
}

Expand Down
Loading
Loading