From bdd6c332eae937a0c8c4ac4a2809816447567a2f Mon Sep 17 00:00:00 2001 From: Phoenix He Date: Thu, 24 Oct 2019 13:28:45 +0800 Subject: [PATCH 1/4] Update swagger_to_sdk_config.json --- swagger_to_sdk_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swagger_to_sdk_config.json b/swagger_to_sdk_config.json index a4f763911359..399fe6789da5 100644 --- a/swagger_to_sdk_config.json +++ b/swagger_to_sdk_config.json @@ -5,7 +5,7 @@ "typescript": "", "license-header": "MICROSOFT_MIT_NO_VERSION", "sdkrel:typescript-sdks-folder": ".", - "use": "@microsoft.azure/autorest.typescript@4.1.1" + "use": "@microsoft.azure/autorest.typescript@4.2.2" }, "advanced_options": { "clone_dir": "./azure-sdk-for-js", From be583e41b9d1d90a0302d8468afacd475bada73c Mon Sep 17 00:00:00 2001 From: Phoenix He Date: Thu, 24 Oct 2019 14:40:18 +0800 Subject: [PATCH 2/4] Update swagger_to_sdk_config.json --- swagger_to_sdk_config.json | 1 + 1 file changed, 1 insertion(+) diff --git a/swagger_to_sdk_config.json b/swagger_to_sdk_config.json index 399fe6789da5..b8a4c993ce88 100644 --- a/swagger_to_sdk_config.json +++ b/swagger_to_sdk_config.json @@ -5,6 +5,7 @@ "typescript": "", "license-header": "MICROSOFT_MIT_NO_VERSION", "sdkrel:typescript-sdks-folder": ".", + "go.clear-output-folder": "", "use": "@microsoft.azure/autorest.typescript@4.2.2" }, "advanced_options": { From c9511411cee2cb98d6bd53a8deae2c47a3e7c284 Mon Sep 17 00:00:00 2001 From: Phoenix He Date: Thu, 24 Oct 2019 14:49:49 +0800 Subject: [PATCH 3/4] Update swagger_to_sdk_config.json --- swagger_to_sdk_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swagger_to_sdk_config.json b/swagger_to_sdk_config.json index b8a4c993ce88..0387101043cb 100644 --- a/swagger_to_sdk_config.json +++ b/swagger_to_sdk_config.json @@ -5,7 +5,7 @@ "typescript": "", "license-header": "MICROSOFT_MIT_NO_VERSION", "sdkrel:typescript-sdks-folder": ".", - "go.clear-output-folder": "", + "typescript.clear-output-folder": "", "use": "@microsoft.azure/autorest.typescript@4.2.2" }, "advanced_options": { From 66d37c87c2d60bfb799bbd0e7bd18162d27ea0a2 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 25 Oct 2019 09:54:34 +0000 Subject: [PATCH 4/4] Generated from a71df15a587ec060147aaef2dcfc12d19500fdc8 Fix json format by prettier --- sdk/eventgrid/eventgrid/LICENSE.txt | 2 +- sdk/eventgrid/eventgrid/README.md | 12 +- sdk/eventgrid/eventgrid/package.json | 24 +- sdk/eventgrid/eventgrid/rollup.config.js | 22 +- .../eventgrid/src/eventGridClient.ts | 2 +- .../eventgrid/src/eventGridClientContext.ts | 4 +- sdk/eventgrid/eventgrid/src/models/index.ts | 2215 ++++++++++------- sdk/eventgrid/eventgrid/src/models/mappers.ts | 1367 +++++++++- sdk/eventgrid/eventgrid/tsconfig.json | 2 +- 9 files changed, 2742 insertions(+), 908 deletions(-) diff --git a/sdk/eventgrid/eventgrid/LICENSE.txt b/sdk/eventgrid/eventgrid/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/eventgrid/eventgrid/LICENSE.txt +++ b/sdk/eventgrid/eventgrid/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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/eventgrid/eventgrid/README.md b/sdk/eventgrid/eventgrid/README.md index 40a773f5cc69..6d5166ca35bd 100644 --- a/sdk/eventgrid/eventgrid/README.md +++ b/sdk/eventgrid/eventgrid/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for EventGridClient. ### How to Install -``` +```bash npm install @azure/eventgrid ``` @@ -19,13 +19,14 @@ npm install @azure/eventgrid ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code -```ts +```typescript 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"; @@ -57,7 +58,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -115,5 +116,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) - ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/eventgrid/eventgrid/README.png) diff --git a/sdk/eventgrid/eventgrid/package.json b/sdk/eventgrid/eventgrid/package.json index d6f4f07c612c..3cb33ac58466 100644 --- a/sdk/eventgrid/eventgrid/package.json +++ b/sdk/eventgrid/eventgrid/package.json @@ -4,9 +4,9 @@ "description": "EventGridClient Library with typescript type definitions for node.js and browser.", "version": "1.5.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.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "module": "./esm/eventGridClient.js", "types": "./esm/eventGridClient.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.5.3", + "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/master/sdk/eventgrid/eventgrid", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/eventgrid/eventgrid", "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 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/eventgrid/eventgrid/rollup.config.js b/sdk/eventgrid/eventgrid/rollup.config.js index 39cb715f189b..6425b241b4b4 100644 --- a/sdk/eventgrid/eventgrid/rollup.config.js +++ b/sdk/eventgrid/eventgrid/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/eventGridClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/eventGridClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/eventgrid.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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/eventgrid/eventgrid/src/eventGridClient.ts b/sdk/eventgrid/eventgrid/src/eventGridClient.ts index 2405169a7c16..59f920d24c56 100644 --- a/sdk/eventgrid/eventgrid/src/eventGridClient.ts +++ b/sdk/eventgrid/eventgrid/src/eventGridClient.ts @@ -22,7 +22,7 @@ class EventGridClient extends EventGridClientContext { * @param credentials Credentials needed for the client to connect to Azure. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, options?: msRestAzure.AzureServiceClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials, options?: msRest.AzureServiceClientOptions) { super(credentials, options); } diff --git a/sdk/eventgrid/eventgrid/src/eventGridClientContext.ts b/sdk/eventgrid/eventgrid/src/eventGridClientContext.ts index 2847ccadf7e7..9747d78664bb 100644 --- a/sdk/eventgrid/eventgrid/src/eventGridClientContext.ts +++ b/sdk/eventgrid/eventgrid/src/eventGridClientContext.ts @@ -12,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/eventgrid"; -const packageVersion = "0.1.0"; +const packageVersion = "1.5.0"; export class EventGridClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -41,7 +41,7 @@ export class EventGridClientContext extends msRestAzure.AzureServiceClient { this.apiVersion = '2018-01-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; - this.baseUri = 'https://{topicHostname}'; + this.baseUri = "https://{topicHostname}"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; diff --git a/sdk/eventgrid/eventgrid/src/models/index.ts b/sdk/eventgrid/eventgrid/src/models/index.ts index 8a5b88bd2814..e8d6da587fb4 100644 --- a/sdk/eventgrid/eventgrid/src/models/index.ts +++ b/sdk/eventgrid/eventgrid/src/models/index.ts @@ -1,1409 +1,1450 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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 } from "@azure/ms-rest-azure-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing StorageBlobCreatedEventData. - * Schema of the Data property of an EventGridEvent for an - * Microsoft.Storage.BlobCreated event. - * + * Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobCreated event. */ export interface StorageBlobCreatedEventData { /** - * @member {string} [api] The name of the API/operation that triggered this - * event. + * The name of the API/operation that triggered this event. */ api?: string; /** - * @member {string} [clientRequestId] A request id provided by the client of - * the storage API operation that triggered this event. + * A request id provided by the client of the storage API operation that triggered this event. */ clientRequestId?: string; /** - * @member {string} [requestId] The request id generated by the Storage - * service for the storage API operation that triggered this event. + * The request id generated by the Storage service for the storage API operation that triggered + * this event. */ requestId?: string; /** - * @member {string} [eTag] The etag of the object at the time this event was - * triggered. + * The etag of the blob at the time this event was triggered. */ eTag?: string; /** - * @member {string} [contentType] The content type of the blob. This is the - * same as what would be returned in the Content-Type header from the blob. + * The content type of the blob. This is the same as what would be returned in the Content-Type + * header from the blob. */ contentType?: string; /** - * @member {number} [contentLength] The size of the blob in bytes. This is - * the same as what would be returned in the Content-Length header from the - * blob. + * The size of the blob in bytes. This is the same as what would be returned in the + * Content-Length header from the blob. */ contentLength?: number; /** - * @member {string} [blobType] The type of blob. + * The offset of the blob in bytes. + */ + contentOffset?: number; + /** + * The type of blob. */ blobType?: string; /** - * @member {string} [url] The path to the blob. + * The path to the blob. */ url?: string; /** - * @member {string} [sequencer] An opaque string value representing the - * logical sequence of events for any particular blob name. Users can use - * standard string comparison to understand the relative sequence of two + * An opaque string value representing the logical sequence of events for any particular blob + * name. Users can use standard string comparison to understand the relative sequence of two * events on the same blob name. */ sequencer?: string; /** - * @member {any} [storageDiagnostics] For service use only. Diagnostic data - * occasionally included by the Azure Storage service. This property should - * be ignored by event consumers. + * The identity of the requester that triggered this event. + */ + identity?: string; + /** + * For service use only. Diagnostic data occasionally included by the Azure Storage service. This + * property should be ignored by event consumers. */ storageDiagnostics?: any; } /** - * @interface - * An interface representing StorageBlobDeletedEventData. - * Schema of the Data property of an EventGridEvent for an - * Microsoft.Storage.BlobDeleted event. - * + * Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobDeleted event. */ export interface StorageBlobDeletedEventData { /** - * @member {string} [api] The name of the API/operation that triggered this - * event. + * The name of the API/operation that triggered this event. */ api?: string; /** - * @member {string} [clientRequestId] A request id provided by the client of - * the storage API operation that triggered this event. + * A request id provided by the client of the storage API operation that triggered this event. */ clientRequestId?: string; /** - * @member {string} [requestId] The request id generated by the Storage - * service for the storage API operation that triggered this event. + * The request id generated by the Storage service for the storage API operation that triggered + * this event. */ requestId?: string; /** - * @member {string} [contentType] The content type of the blob. This is the - * same as what would be returned in the Content-Type header from the blob. + * The content type of the blob. This is the same as what would be returned in the Content-Type + * header from the blob. */ contentType?: string; /** - * @member {string} [blobType] The type of blob. + * The type of blob. */ blobType?: string; /** - * @member {string} [url] The path to the blob. + * The path to the blob. */ url?: string; /** - * @member {string} [sequencer] An opaque string value representing the - * logical sequence of events for any particular blob name. Users can use - * standard string comparison to understand the relative sequence of two + * An opaque string value representing the logical sequence of events for any particular blob + * name. Users can use standard string comparison to understand the relative sequence of two * events on the same blob name. */ sequencer?: string; /** - * @member {any} [storageDiagnostics] For service use only. Diagnostic data - * occasionally included by the Azure Storage service. This property should - * be ignored by event consumers. + * The identity of the requester that triggered this event. + */ + identity?: string; + /** + * For service use only. Diagnostic data occasionally included by the Azure Storage service. This + * property should be ignored by event consumers. */ storageDiagnostics?: any; } /** - * @interface - * An interface representing EventHubCaptureFileCreatedEventData. - * Schema of the Data property of an EventGridEvent for an - * Microsoft.EventHub.CaptureFileCreated event. - * + * Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryCreated + * event. + */ +export interface StorageDirectoryCreatedEventData { + /** + * The name of the API/operation that triggered this event. + */ + api?: string; + /** + * A request id provided by the client of the storage API operation that triggered this event. + */ + clientRequestId?: string; + /** + * The request id generated by the storage service for the storage API operation that triggered + * this event. + */ + requestId?: string; + /** + * The etag of the directory at the time this event was triggered. + */ + eTag?: string; + /** + * The path to the directory. + */ + url?: string; + /** + * An opaque string value representing the logical sequence of events for any particular + * directory name. Users can use standard string comparison to understand the relative sequence + * of two events on the same directory name. + */ + sequencer?: string; + /** + * The identity of the requester that triggered this event. + */ + identity?: string; + /** + * For service use only. Diagnostic data occasionally included by the Azure Storage service. This + * property should be ignored by event consumers. + */ + storageDiagnostics?: any; +} + +/** + * Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryDeleted + * event. + */ +export interface StorageDirectoryDeletedEventData { + /** + * The name of the API/operation that triggered this event. + */ + api?: string; + /** + * A request id provided by the client of the storage API operation that triggered this event. + */ + clientRequestId?: string; + /** + * The request id generated by the storage service for the storage API operation that triggered + * this event. + */ + requestId?: string; + /** + * The path to the deleted directory. + */ + url?: string; + /** + * Is this event for a recursive delete operation. + */ + recursive?: boolean; + /** + * An opaque string value representing the logical sequence of events for any particular + * directory name. Users can use standard string comparison to understand the relative sequence + * of two events on the same directory name. + */ + sequencer?: string; + /** + * The identity of the requester that triggered this event. + */ + identity?: string; + /** + * For service use only. Diagnostic data occasionally included by the Azure Storage service. This + * property should be ignored by event consumers. + */ + storageDiagnostics?: any; +} + +/** + * Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobRenamed event. + */ +export interface StorageBlobRenamedEventData { + /** + * The name of the API/operation that triggered this event. + */ + api?: string; + /** + * A request id provided by the client of the storage API operation that triggered this event. + */ + clientRequestId?: string; + /** + * The request id generated by the storage service for the storage API operation that triggered + * this event. + */ + requestId?: string; + /** + * The path to the blob that was renamed. + */ + sourceUrl?: string; + /** + * The new path to the blob after the rename operation. + */ + destinationUrl?: string; + /** + * An opaque string value representing the logical sequence of events for any particular blob + * name. Users can use standard string comparison to understand the relative sequence of two + * events on the same blob name. + */ + sequencer?: string; + /** + * The identity of the requester that triggered this event. + */ + identity?: string; + /** + * For service use only. Diagnostic data occasionally included by the Azure Storage service. This + * property should be ignored by event consumers. + */ + storageDiagnostics?: any; +} + +/** + * Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryRenamed + * event. + */ +export interface StorageDirectoryRenamedEventData { + /** + * The name of the API/operation that triggered this event. + */ + api?: string; + /** + * A request id provided by the client of the storage API operation that triggered this event. + */ + clientRequestId?: string; + /** + * The request id generated by the storage service for the storage API operation that triggered + * this event. + */ + requestId?: string; + /** + * The path to the directory that was renamed. + */ + sourceUrl?: string; + /** + * The new path to the directory after the rename operation. + */ + destinationUrl?: string; + /** + * An opaque string value representing the logical sequence of events for any particular + * directory name. Users can use standard string comparison to understand the relative sequence + * of two events on the same directory name. + */ + sequencer?: string; + /** + * The identity of the requester that triggered this event. + */ + identity?: string; + /** + * For service use only. Diagnostic data occasionally included by the Azure Storage service. This + * property should be ignored by event consumers. + */ + storageDiagnostics?: any; +} + +/** + * Schema of the Data property of an EventGridEvent for an Microsoft.EventHub.CaptureFileCreated + * event. */ export interface EventHubCaptureFileCreatedEventData { /** - * @member {string} [fileurl] The path to the capture file. + * The path to the capture file. */ fileurl?: string; /** - * @member {string} [fileType] The file type of the capture file. + * The file type of the capture file. */ fileType?: string; /** - * @member {string} [partitionId] The shard ID. + * The shard ID. */ partitionId?: string; /** - * @member {number} [sizeInBytes] The file size. + * The file size. */ sizeInBytes?: number; /** - * @member {number} [eventCount] The number of events in the file. + * The number of events in the file. */ eventCount?: number; /** - * @member {number} [firstSequenceNumber] The smallest sequence number from - * the queue. + * The smallest sequence number from the queue. */ firstSequenceNumber?: number; /** - * @member {number} [lastSequenceNumber] The last sequence number from the - * queue. + * The last sequence number from the queue. */ lastSequenceNumber?: number; /** - * @member {Date} [firstEnqueueTime] The first time from the queue. + * The first time from the queue. */ firstEnqueueTime?: Date; /** - * @member {Date} [lastEnqueueTime] The last time from the queue. + * The last time from the queue. */ lastEnqueueTime?: Date; } /** - * @interface - * An interface representing ResourceWriteSuccessData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceWriteSuccess event. This is raised when a - * resource create or update operation succeeds. - * + * Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteSuccess + * event. This is raised when a resource create or update operation succeeds. */ export interface ResourceWriteSuccessData { /** - * @member {string} [tenantId] The tenant ID of the resource. + * The tenant ID of the resource. */ tenantId?: string; /** - * @member {string} [subscriptionId] The subscription ID of the resource. + * The subscription ID of the resource. */ subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the resource. + * The resource group of the resource. */ resourceGroup?: string; /** - * @member {string} [resourceProvider] The resource provider performing the - * operation. + * The resource provider performing the operation. */ resourceProvider?: string; /** - * @member {string} [resourceUri] The URI of the resource in the operation. + * The URI of the resource in the operation. */ resourceUri?: string; /** - * @member {string} [operationName] The operation that was performed. + * The operation that was performed. */ operationName?: string; /** - * @member {string} [status] The status of the operation. + * The status of the operation. */ status?: string; /** - * @member {string} [authorization] The requested authorization for the - * operation. + * The requested authorization for the operation. */ authorization?: string; /** - * @member {string} [claims] The properties of the claims. + * The properties of the claims. */ claims?: string; /** - * @member {string} [correlationId] An operation ID used for troubleshooting. + * An operation ID used for troubleshooting. */ correlationId?: string; /** - * @member {string} [httpRequest] The details of the operation. + * The details of the operation. */ httpRequest?: string; } /** - * @interface - * An interface representing ResourceWriteFailureData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceWriteFailure event. This is raised when a - * resource create or update operation fails. - * + * Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteFailure + * event. This is raised when a resource create or update operation fails. */ export interface ResourceWriteFailureData { /** - * @member {string} [tenantId] The tenant ID of the resource. + * The tenant ID of the resource. */ tenantId?: string; /** - * @member {string} [subscriptionId] The subscription ID of the resource. + * The subscription ID of the resource. */ subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the resource. + * The resource group of the resource. */ resourceGroup?: string; /** - * @member {string} [resourceProvider] The resource provider performing the - * operation. + * The resource provider performing the operation. */ resourceProvider?: string; /** - * @member {string} [resourceUri] The URI of the resource in the operation. + * The URI of the resource in the operation. */ resourceUri?: string; /** - * @member {string} [operationName] The operation that was performed. + * The operation that was performed. */ operationName?: string; /** - * @member {string} [status] The status of the operation. + * The status of the operation. */ status?: string; /** - * @member {string} [authorization] The requested authorization for the - * operation. + * The requested authorization for the operation. */ authorization?: string; /** - * @member {string} [claims] The properties of the claims. + * The properties of the claims. */ claims?: string; /** - * @member {string} [correlationId] An operation ID used for troubleshooting. + * An operation ID used for troubleshooting. */ correlationId?: string; /** - * @member {string} [httpRequest] The details of the operation. + * The details of the operation. */ httpRequest?: string; } /** - * @interface - * An interface representing ResourceWriteCancelData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceWriteCancel event. This is raised when a - * resource create or update operation is canceled. - * + * Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceWriteCancel + * event. This is raised when a resource create or update operation is canceled. */ export interface ResourceWriteCancelData { /** - * @member {string} [tenantId] The tenant ID of the resource. + * The tenant ID of the resource. */ tenantId?: string; /** - * @member {string} [subscriptionId] The subscription ID of the resource. + * The subscription ID of the resource. */ subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the resource. + * The resource group of the resource. */ resourceGroup?: string; /** - * @member {string} [resourceProvider] The resource provider performing the - * operation. + * The resource provider performing the operation. */ resourceProvider?: string; /** - * @member {string} [resourceUri] The URI of the resource in the operation. + * The URI of the resource in the operation. */ resourceUri?: string; /** - * @member {string} [operationName] The operation that was performed. + * The operation that was performed. */ operationName?: string; /** - * @member {string} [status] The status of the operation. + * The status of the operation. */ status?: string; /** - * @member {string} [authorization] The requested authorization for the - * operation. + * The requested authorization for the operation. */ authorization?: string; /** - * @member {string} [claims] The properties of the claims. + * The properties of the claims. */ claims?: string; /** - * @member {string} [correlationId] An operation ID used for troubleshooting. + * An operation ID used for troubleshooting. */ correlationId?: string; /** - * @member {string} [httpRequest] The details of the operation. + * The details of the operation. */ httpRequest?: string; } /** - * @interface - * An interface representing ResourceDeleteSuccessData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceDeleteSuccess event. This is raised when a - * resource delete operation succeeds. - * + * Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteSuccess + * event. This is raised when a resource delete operation succeeds. */ export interface ResourceDeleteSuccessData { /** - * @member {string} [tenantId] The tenant ID of the resource. + * The tenant ID of the resource. */ tenantId?: string; /** - * @member {string} [subscriptionId] The subscription ID of the resource. + * The subscription ID of the resource. */ subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the resource. + * The resource group of the resource. */ resourceGroup?: string; /** - * @member {string} [resourceProvider] The resource provider performing the - * operation. + * The resource provider performing the operation. */ resourceProvider?: string; /** - * @member {string} [resourceUri] The URI of the resource in the operation. + * The URI of the resource in the operation. */ resourceUri?: string; /** - * @member {string} [operationName] The operation that was performed. + * The operation that was performed. */ operationName?: string; /** - * @member {string} [status] The status of the operation. + * The status of the operation. */ status?: string; /** - * @member {string} [authorization] The requested authorization for the - * operation. + * The requested authorization for the operation. */ authorization?: string; /** - * @member {string} [claims] The properties of the claims. + * The properties of the claims. */ claims?: string; /** - * @member {string} [correlationId] An operation ID used for troubleshooting. + * An operation ID used for troubleshooting. */ correlationId?: string; /** - * @member {string} [httpRequest] The details of the operation. + * The details of the operation. */ httpRequest?: string; } /** - * @interface - * An interface representing ResourceDeleteFailureData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceDeleteFailure event. This is raised when a - * resource delete operation fails. - * + * Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteFailure + * event. This is raised when a resource delete operation fails. */ export interface ResourceDeleteFailureData { /** - * @member {string} [tenantId] The tenant ID of the resource. + * The tenant ID of the resource. */ tenantId?: string; /** - * @member {string} [subscriptionId] The subscription ID of the resource. + * The subscription ID of the resource. */ subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the resource. + * The resource group of the resource. */ resourceGroup?: string; /** - * @member {string} [resourceProvider] The resource provider performing the - * operation. + * The resource provider performing the operation. */ resourceProvider?: string; /** - * @member {string} [resourceUri] The URI of the resource in the operation. + * The URI of the resource in the operation. */ resourceUri?: string; /** - * @member {string} [operationName] The operation that was performed. + * The operation that was performed. */ operationName?: string; /** - * @member {string} [status] The status of the operation. + * The status of the operation. */ status?: string; /** - * @member {string} [authorization] The requested authorization for the - * operation. + * The requested authorization for the operation. */ authorization?: string; /** - * @member {string} [claims] The properties of the claims. + * The properties of the claims. */ claims?: string; /** - * @member {string} [correlationId] An operation ID used for troubleshooting. + * An operation ID used for troubleshooting. */ correlationId?: string; /** - * @member {string} [httpRequest] The details of the operation. + * The details of the operation. */ httpRequest?: string; } /** - * @interface - * An interface representing ResourceDeleteCancelData. - * Schema of the Data property of an EventGridEvent for an - * Microsoft.Resources.ResourceDeleteCancel event. This is raised when a - * resource delete operation is canceled. - * + * Schema of the Data property of an EventGridEvent for an Microsoft.Resources.ResourceDeleteCancel + * event. This is raised when a resource delete operation is canceled. */ export interface ResourceDeleteCancelData { /** - * @member {string} [tenantId] The tenant ID of the resource. + * The tenant ID of the resource. */ tenantId?: string; /** - * @member {string} [subscriptionId] The subscription ID of the resource. + * The subscription ID of the resource. */ subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the resource. + * The resource group of the resource. */ resourceGroup?: string; /** - * @member {string} [resourceProvider] The resource provider performing the - * operation. + * The resource provider performing the operation. */ resourceProvider?: string; /** - * @member {string} [resourceUri] The URI of the resource in the operation. + * The URI of the resource in the operation. */ resourceUri?: string; /** - * @member {string} [operationName] The operation that was performed. + * The operation that was performed. */ operationName?: string; /** - * @member {string} [status] The status of the operation. + * The status of the operation. */ status?: string; /** - * @member {string} [authorization] The requested authorization for the - * operation. + * The requested authorization for the operation. */ authorization?: string; /** - * @member {string} [claims] The properties of the claims. + * The properties of the claims. */ claims?: string; /** - * @member {string} [correlationId] An operation ID used for troubleshooting. + * An operation ID used for troubleshooting. */ correlationId?: string; /** - * @member {string} [httpRequest] The details of the operation. + * The details of the operation. */ httpRequest?: string; } /** - * @interface - * An interface representing ResourceActionSuccessData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceActionSuccess event. This is raised when a - * resource action operation succeeds. - * + * Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionSuccess + * event. This is raised when a resource action operation succeeds. */ export interface ResourceActionSuccessData { /** - * @member {string} [tenantId] The tenant ID of the resource. + * The tenant ID of the resource. */ tenantId?: string; /** - * @member {string} [subscriptionId] The subscription ID of the resource. + * The subscription ID of the resource. */ subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the resource. + * The resource group of the resource. */ resourceGroup?: string; /** - * @member {string} [resourceProvider] The resource provider performing the - * operation. + * The resource provider performing the operation. */ resourceProvider?: string; /** - * @member {string} [resourceUri] The URI of the resource in the operation. + * The URI of the resource in the operation. */ resourceUri?: string; /** - * @member {string} [operationName] The operation that was performed. + * The operation that was performed. */ operationName?: string; /** - * @member {string} [status] The status of the operation. + * The status of the operation. */ status?: string; /** - * @member {string} [authorization] The requested authorization for the - * operation. + * The requested authorization for the operation. */ authorization?: string; /** - * @member {string} [claims] The properties of the claims. + * The properties of the claims. */ claims?: string; /** - * @member {string} [correlationId] An operation ID used for troubleshooting. + * An operation ID used for troubleshooting. */ correlationId?: string; /** - * @member {string} [httpRequest] The details of the operation. + * The details of the operation. */ httpRequest?: string; } /** - * @interface - * An interface representing ResourceActionFailureData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Resources.ResourceActionFailure event. This is raised when a - * resource action operation fails. - * + * Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionFailure + * event. This is raised when a resource action operation fails. */ export interface ResourceActionFailureData { /** - * @member {string} [tenantId] The tenant ID of the resource. + * The tenant ID of the resource. */ tenantId?: string; /** - * @member {string} [subscriptionId] The subscription ID of the resource. + * The subscription ID of the resource. */ subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the resource. + * The resource group of the resource. */ resourceGroup?: string; /** - * @member {string} [resourceProvider] The resource provider performing the - * operation. + * The resource provider performing the operation. */ resourceProvider?: string; /** - * @member {string} [resourceUri] The URI of the resource in the operation. + * The URI of the resource in the operation. */ resourceUri?: string; /** - * @member {string} [operationName] The operation that was performed. + * The operation that was performed. */ operationName?: string; /** - * @member {string} [status] The status of the operation. + * The status of the operation. */ status?: string; /** - * @member {string} [authorization] The requested authorization for the - * operation. + * The requested authorization for the operation. */ authorization?: string; /** - * @member {string} [claims] The properties of the claims. + * The properties of the claims. */ claims?: string; /** - * @member {string} [correlationId] An operation ID used for troubleshooting. + * An operation ID used for troubleshooting. */ correlationId?: string; /** - * @member {string} [httpRequest] The details of the operation. + * The details of the operation. */ httpRequest?: string; } /** - * @interface - * An interface representing ResourceActionCancelData. - * Schema of the Data property of an EventGridEvent for an - * Microsoft.Resources.ResourceActionCancel event. This is raised when a - * resource action operation is canceled. - * + * Schema of the Data property of an EventGridEvent for an Microsoft.Resources.ResourceActionCancel + * event. This is raised when a resource action operation is canceled. */ export interface ResourceActionCancelData { /** - * @member {string} [tenantId] The tenant ID of the resource. + * The tenant ID of the resource. */ tenantId?: string; /** - * @member {string} [subscriptionId] The subscription ID of the resource. + * The subscription ID of the resource. */ subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the resource. + * The resource group of the resource. */ resourceGroup?: string; /** - * @member {string} [resourceProvider] The resource provider performing the - * operation. + * The resource provider performing the operation. */ resourceProvider?: string; /** - * @member {string} [resourceUri] The URI of the resource in the operation. + * The URI of the resource in the operation. */ resourceUri?: string; /** - * @member {string} [operationName] The operation that was performed. + * The operation that was performed. */ operationName?: string; /** - * @member {string} [status] The status of the operation. + * The status of the operation. */ status?: string; /** - * @member {string} [authorization] The requested authorization for the - * operation. + * The requested authorization for the operation. */ authorization?: string; /** - * @member {string} [claims] The properties of the claims. + * The properties of the claims. */ claims?: string; /** - * @member {string} [correlationId] An operation ID used for troubleshooting. + * An operation ID used for troubleshooting. */ correlationId?: string; /** - * @member {string} [httpRequest] The details of the operation. + * The details of the operation. */ httpRequest?: string; } /** - * @interface - * An interface representing EventGridEvent. * Properties of an event published to an Event Grid topic. - * */ export interface EventGridEvent { /** - * @member {string} id An unique identifier for the event. + * An unique identifier for the event. */ id: string; /** - * @member {string} [topic] The resource path of the event source. + * The resource path of the event source. */ topic?: string; /** - * @member {string} subject A resource path relative to the topic path. + * A resource path relative to the topic path. */ subject: string; /** - * @member {any} data Event data specific to the event type. + * Event data specific to the event type. */ data: any; /** - * @member {string} eventType The type of the event that occurred. + * The type of the event that occurred. */ eventType: string; /** - * @member {Date} eventTime The time (in UTC) the event was generated. + * The time (in UTC) the event was generated. */ eventTime: Date; /** - * @member {string} [metadataVersion] The schema version of the event - * metadata. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The schema version of the event metadata. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly metadataVersion?: string; /** - * @member {string} dataVersion The schema version of the data object. + * The schema version of the data object. */ dataVersion: string; } /** - * @interface - * An interface representing SubscriptionValidationEventData. * Schema of the Data property of an EventGridEvent for a * Microsoft.EventGrid.SubscriptionValidationEvent. - * */ export interface SubscriptionValidationEventData { /** - * @member {string} [validationCode] The validation code sent by Azure Event - * Grid to validate an event subscription. To complete the validation - * handshake, the subscriber must either respond with this validation code as - * part of the validation response, or perform a GET request on the - * validationUrl (available starting version 2018-05-01-preview). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The validation code sent by Azure Event Grid to validate an event subscription. To complete + * the validation handshake, the subscriber must either respond with this validation code as part + * of the validation response, or perform a GET request on the validationUrl (available starting + * version 2018-05-01-preview). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly validationCode?: string; /** - * @member {string} [validationUrl] The validation URL sent by Azure Event - * Grid (available starting version 2018-05-01-preview). To complete the - * validation handshake, the subscriber must either respond with the - * validationCode as part of the validation response, or perform a GET - * request on the validationUrl (available starting version - * 2018-05-01-preview). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). + * To complete the validation handshake, the subscriber must either respond with the + * validationCode as part of the validation response, or perform a GET request on the + * validationUrl (available starting version 2018-05-01-preview). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly validationUrl?: string; } /** - * @interface - * An interface representing SubscriptionValidationResponse. - * To complete an event subscription validation handshake, a subscriber can use - * either the validationCode or the validationUrl received in a - * SubscriptionValidationEvent. When the validationCode is used, the - * SubscriptionValidationResponse can be used to build the response. - * + * To complete an event subscription validation handshake, a subscriber can use either the + * validationCode or the validationUrl received in a SubscriptionValidationEvent. When the + * validationCode is used, the SubscriptionValidationResponse can be used to build the response. */ export interface SubscriptionValidationResponse { /** - * @member {string} [validationResponse] The validation response sent by the - * subscriber to Azure Event Grid to complete the validation of an event - * subscription. + * The validation response sent by the subscriber to Azure Event Grid to complete the validation + * of an event subscription. */ validationResponse?: string; } /** - * @interface - * An interface representing SubscriptionDeletedEventData. * Schema of the Data property of an EventGridEvent for a * Microsoft.EventGrid.SubscriptionDeletedEvent. - * */ export interface SubscriptionDeletedEventData { /** - * @member {string} [eventSubscriptionId] The Azure resource ID of the - * deleted event subscription. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The Azure resource ID of the deleted event subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly eventSubscriptionId?: string; } /** - * @interface - * An interface representing DeviceLifeCycleEventProperties. - * Schema of the Data property of an EventGridEvent for a device life cycle - * event (DeviceCreated, DeviceDeleted). - * + * Schema of the Data property of an EventGridEvent for a device life cycle event (DeviceCreated, + * DeviceDeleted). */ export interface DeviceLifeCycleEventProperties { /** - * @member {string} [deviceId] The unique identifier of the device. This - * case-sensitive string can be up to 128 characters long, and supports ASCII - * 7-bit alphanumeric characters plus the following special characters: - : . - * + % _ # * ? ! ( ) , = @ ; $ '. + * The unique identifier of the device. This case-sensitive string can be up to 128 characters + * long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: + * - : . + % _ # * ? ! ( ) , = @ ; $ '. */ deviceId?: string; /** - * @member {string} [hubName] Name of the IoT Hub where the device was - * created or deleted. + * Name of the IoT Hub where the device was created or deleted. */ hubName?: string; /** - * @member {DeviceTwinInfo} [twin] Information about the device twin, which - * is the cloud representation of application device metadata. + * Information about the device twin, which is the cloud representation of application device + * metadata. */ twin?: DeviceTwinInfo; } /** - * @interface - * An interface representing IotHubDeviceCreatedEventData. * Event data for Microsoft.Devices.DeviceCreated event. - * - * @extends DeviceLifeCycleEventProperties */ export interface IotHubDeviceCreatedEventData extends DeviceLifeCycleEventProperties { } /** - * @interface - * An interface representing IotHubDeviceDeletedEventData. * Event data for Microsoft.Devices.DeviceDeleted event. - * - * @extends DeviceLifeCycleEventProperties */ export interface IotHubDeviceDeletedEventData extends DeviceLifeCycleEventProperties { } /** - * @interface - * An interface representing DeviceConnectionStateEventProperties. - * Schema of the Data property of an EventGridEvent for a device connection - * state event (DeviceConnected, DeviceDisconnected). - * + * Schema of the Data property of an EventGridEvent for a device connection state event + * (DeviceConnected, DeviceDisconnected). */ export interface DeviceConnectionStateEventProperties { /** - * @member {string} [deviceId] The unique identifier of the device. This - * case-sensitive string can be up to 128 characters long, and supports ASCII - * 7-bit alphanumeric characters plus the following special characters: - : . - * + % _ # * ? ! ( ) , = @ ; $ '. + * The unique identifier of the device. This case-sensitive string can be up to 128 characters + * long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: + * - : . + % _ # * ? ! ( ) , = @ ; $ '. */ deviceId?: string; /** - * @member {string} [moduleId] The unique identifier of the module. This - * case-sensitive string can be up to 128 characters long, and supports ASCII - * 7-bit alphanumeric characters plus the following special characters: - : . - * + % _ # * ? ! ( ) , = @ ; $ '. + * The unique identifier of the module. This case-sensitive string can be up to 128 characters + * long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: + * - : . + % _ # * ? ! ( ) , = @ ; $ '. */ moduleId?: string; /** - * @member {string} [hubName] Name of the IoT Hub where the device was - * created or deleted. + * Name of the IoT Hub where the device was created or deleted. */ hubName?: string; /** - * @member {DeviceConnectionStateEventInfo} [deviceConnectionStateEventInfo] * Information about the device connection state event. */ deviceConnectionStateEventInfo?: DeviceConnectionStateEventInfo; } /** - * @interface - * An interface representing IotHubDeviceConnectedEventData. * Event data for Microsoft.Devices.DeviceConnected event. - * - * @extends DeviceConnectionStateEventProperties */ export interface IotHubDeviceConnectedEventData extends DeviceConnectionStateEventProperties { } /** - * @interface - * An interface representing IotHubDeviceDisconnectedEventData. * Event data for Microsoft.Devices.DeviceDisconnected event. - * - * @extends DeviceConnectionStateEventProperties */ export interface IotHubDeviceDisconnectedEventData extends DeviceConnectionStateEventProperties { } /** - * @interface - * An interface representing DeviceTwinMetadata. + * Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry). + */ +export interface DeviceTelemetryEventProperties { + /** + * The content of the message from the device. + */ + body?: any; + /** + * Application properties are user-defined strings that can be added to the message. These fields + * are optional. + */ + properties?: { [propertyName: string]: string }; + /** + * System properties help identify contents and source of the messages. + */ + systemProperties?: { [propertyName: string]: string }; +} + +/** + * Event data for Microsoft.Devices.DeviceTelemetry event. + */ +export interface IotHubDeviceTelemetryEventData extends DeviceTelemetryEventProperties { +} + +/** * Metadata information for the properties JSON document. - * */ export interface DeviceTwinMetadata { /** - * @member {string} [lastUpdated] The ISO8601 timestamp of the last time the - * properties were updated. + * The ISO8601 timestamp of the last time the properties were updated. */ lastUpdated?: string; } /** - * @interface - * An interface representing DeviceTwinProperties. - * A portion of the properties that can be written only by the application - * back-end, and read by the device. - * + * A portion of the properties that can be written only by the application back-end, and read by + * the device. */ export interface DeviceTwinProperties { /** - * @member {DeviceTwinMetadata} [metadata] Metadata information for the - * properties JSON document. + * Metadata information for the properties JSON document. */ metadata?: DeviceTwinMetadata; /** - * @member {number} [version] Version of device twin properties. + * Version of device twin properties. */ version?: number; } /** - * @interface - * An interface representing DeviceTwinInfoProperties. * Properties JSON element. - * */ export interface DeviceTwinInfoProperties { /** - * @member {DeviceTwinProperties} [desired] A portion of the properties that - * can be written only by the application back-end, and read by the device. + * A portion of the properties that can be written only by the application back-end, and read by + * the device. */ desired?: DeviceTwinProperties; /** - * @member {DeviceTwinProperties} [reported] A portion of the properties that - * can be written only by the device, and read by the application back-end. + * A portion of the properties that can be written only by the device, and read by the + * application back-end. */ reported?: DeviceTwinProperties; } /** - * @interface - * An interface representing DeviceTwinInfoX509Thumbprint. - * The thumbprint is a unique value for the x509 certificate, commonly used to - * find a particular certificate in a certificate store. The thumbprint is - * dynamically generated using the SHA1 algorithm, and does not physically - * exist in the certificate. - * + * The thumbprint is a unique value for the x509 certificate, commonly used to find a particular + * certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 + * algorithm, and does not physically exist in the certificate. */ export interface DeviceTwinInfoX509Thumbprint { /** - * @member {string} [primaryThumbprint] Primary thumbprint for the x509 - * certificate. + * Primary thumbprint for the x509 certificate. */ primaryThumbprint?: string; /** - * @member {string} [secondaryThumbprint] Secondary thumbprint for the x509 - * certificate. + * Secondary thumbprint for the x509 certificate. */ secondaryThumbprint?: string; } /** - * @interface - * An interface representing DeviceTwinInfo. - * Information about the device twin, which is the cloud representation of - * application device metadata. - * + * Information about the device twin, which is the cloud representation of application device + * metadata. */ export interface DeviceTwinInfo { /** - * @member {string} [authenticationType] Authentication type used for this - * device: either SAS, SelfSigned, or CertificateAuthority. + * Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority. */ authenticationType?: string; /** - * @member {number} [cloudToDeviceMessageCount] Count of cloud to device - * messages sent to this device. + * Count of cloud to device messages sent to this device. */ cloudToDeviceMessageCount?: number; /** - * @member {string} [connectionState] Whether the device is connected or - * disconnected. + * Whether the device is connected or disconnected. */ connectionState?: string; /** - * @member {string} [deviceId] The unique identifier of the device twin. + * The unique identifier of the device twin. */ deviceId?: string; /** - * @member {string} [etag] A piece of information that describes the content - * of the device twin. Each etag is guaranteed to be unique per device twin. + * A piece of information that describes the content of the device twin. Each etag is guaranteed + * to be unique per device twin. */ etag?: string; /** - * @member {string} [lastActivityTime] The ISO8601 timestamp of the last - * activity. + * The ISO8601 timestamp of the last activity. */ lastActivityTime?: string; /** - * @member {DeviceTwinInfoProperties} [properties] Properties JSON element. + * Properties JSON element. */ properties?: DeviceTwinInfoProperties; /** - * @member {string} [status] Whether the device twin is enabled or disabled. + * Whether the device twin is enabled or disabled. */ status?: string; /** - * @member {string} [statusUpdateTime] The ISO8601 timestamp of the last - * device twin status update. + * The ISO8601 timestamp of the last device twin status update. */ statusUpdateTime?: string; /** - * @member {number} [version] An integer that is incremented by one each time - * the device twin is updated. + * An integer that is incremented by one each time the device twin is updated. */ version?: number; /** - * @member {DeviceTwinInfoX509Thumbprint} [x509Thumbprint] The thumbprint is - * a unique value for the x509 certificate, commonly used to find a - * particular certificate in a certificate store. The thumbprint is - * dynamically generated using the SHA1 algorithm, and does not physically - * exist in the certificate. + * The thumbprint is a unique value for the x509 certificate, commonly used to find a particular + * certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 + * algorithm, and does not physically exist in the certificate. */ x509Thumbprint?: DeviceTwinInfoX509Thumbprint; } /** - * @interface - * An interface representing DeviceConnectionStateEventInfo. * Information about the device connection state event. - * */ export interface DeviceConnectionStateEventInfo { /** - * @member {string} [sequenceNumber] Sequence number is string representation - * of a hexadecimal number. string compare can be used to identify the larger - * number because both in ASCII and HEX numbers come after alphabets. If you - * are converting the string to hex, then the number is a 256 bit number. + * Sequence number is string representation of a hexadecimal number. string compare can be used + * to identify the larger number because both in ASCII and HEX numbers come after alphabets. If + * you are converting the string to hex, then the number is a 256 bit number. */ sequenceNumber?: string; } /** - * @interface - * An interface representing ContainerRegistryEventData. * The content of the event request message. - * */ export interface ContainerRegistryEventData { /** - * @member {string} [id] The event ID. + * The event ID. */ id?: string; /** - * @member {Date} [timestamp] The time at which the event occurred. + * The time at which the event occurred. */ timestamp?: Date; /** - * @member {string} [action] The action that encompasses the provided event. + * The action that encompasses the provided event. */ action?: string; /** - * @member {ContainerRegistryEventTarget} [target] The target of the event. + * The target of the event. */ target?: ContainerRegistryEventTarget; /** - * @member {ContainerRegistryEventRequest} [request] The request that - * generated the event. + * The request that generated the event. */ request?: ContainerRegistryEventRequest; /** - * @member {ContainerRegistryEventActor} [actor] The agent that initiated the - * event. For most situations, this could be from the authorization context - * of the request. + * The agent that initiated the event. For most situations, this could be from the authorization + * context of the request. */ actor?: ContainerRegistryEventActor; /** - * @member {ContainerRegistryEventSource} [source] The registry node that - * generated the event. Put differently, while the actor initiates the event, - * the source generates it. + * The registry node that generated the event. Put differently, while the actor initiates the + * event, the source generates it. */ source?: ContainerRegistryEventSource; } /** - * @interface - * An interface representing ContainerRegistryImagePushedEventData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ContainerRegistry.ImagePushed event. - * - * @extends ContainerRegistryEventData + * Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ImagePushed + * event. */ export interface ContainerRegistryImagePushedEventData extends ContainerRegistryEventData { } /** - * @interface - * An interface representing ContainerRegistryImageDeletedEventData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.ContainerRegistry.ImageDeleted event. - * - * @extends ContainerRegistryEventData + * Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ImageDeleted + * event. */ export interface ContainerRegistryImageDeletedEventData extends ContainerRegistryEventData { } /** - * @interface - * An interface representing ContainerRegistryEventTarget. + * The content of the event request message. + */ +export interface ContainerRegistryArtifactEventData { + /** + * The event ID. + */ + id?: string; + /** + * The time at which the event occurred. + */ + timestamp?: Date; + /** + * The action that encompasses the provided event. + */ + action?: string; + /** + * The target of the event. + */ + target?: ContainerRegistryArtifactEventTarget; +} + +/** + * Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ChartPushed + * event. + */ +export interface ContainerRegistryChartPushedEventData extends ContainerRegistryArtifactEventData { +} + +/** + * Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ChartDeleted + * event. + */ +export interface ContainerRegistryChartDeletedEventData extends ContainerRegistryArtifactEventData { +} + +/** * The target of the event. - * */ export interface ContainerRegistryEventTarget { /** - * @member {string} [mediaType] The MIME type of the referenced object. + * The MIME type of the referenced object. */ mediaType?: string; /** - * @member {number} [size] The number of bytes of the content. Same as Length - * field. + * The number of bytes of the content. Same as Length field. */ size?: number; /** - * @member {string} [digest] The digest of the content, as defined by the - * Registry V2 HTTP API Specification. + * The digest of the content, as defined by the Registry V2 HTTP API Specification. */ digest?: string; /** - * @member {number} [length] The number of bytes of the content. Same as Size - * field. + * The number of bytes of the content. Same as Size field. */ length?: number; /** - * @member {string} [repository] The repository name. + * The repository name. */ repository?: string; /** - * @member {string} [url] The direct URL to the content. + * The direct URL to the content. */ url?: string; /** - * @member {string} [tag] The tag name. + * The tag name. */ tag?: string; } /** - * @interface - * An interface representing ContainerRegistryEventRequest. * The request that generated the event. - * */ export interface ContainerRegistryEventRequest { /** - * @member {string} [id] The ID of the request that initiated the event. + * The ID of the request that initiated the event. */ id?: string; /** - * @member {string} [addr] The IP or hostname and possibly port of the client - * connection that initiated the event. This is the RemoteAddr from the - * standard http request. + * The IP or hostname and possibly port of the client connection that initiated the event. This + * is the RemoteAddr from the standard http request. */ addr?: string; /** - * @member {string} [host] The externally accessible hostname of the registry - * instance, as specified by the http host header on incoming requests. + * The externally accessible hostname of the registry instance, as specified by the http host + * header on incoming requests. */ host?: string; /** - * @member {string} [method] The request method that generated the event. + * The request method that generated the event. */ method?: string; /** - * @member {string} [useragent] The user agent header of the request. + * The user agent header of the request. */ useragent?: string; } /** - * @interface - * An interface representing ContainerRegistryEventActor. - * The agent that initiated the event. For most situations, this could be from - * the authorization context of the request. - * + * The agent that initiated the event. For most situations, this could be from the authorization + * context of the request. */ export interface ContainerRegistryEventActor { /** - * @member {string} [name] The subject or username associated with the - * request context that generated the event. + * The subject or username associated with the request context that generated the event. */ name?: string; } /** - * @interface - * An interface representing ContainerRegistryEventSource. - * The registry node that generated the event. Put differently, while the actor - * initiates the event, the source generates it. - * + * The registry node that generated the event. Put differently, while the actor initiates the + * event, the source generates it. */ export interface ContainerRegistryEventSource { /** - * @member {string} [addr] The IP or hostname and the port of the registry - * node that generated the event. Generally, this will be resolved by - * os.Hostname() along with the running port. + * The IP or hostname and the port of the registry node that generated the event. Generally, this + * will be resolved by os.Hostname() along with the running port. */ addr?: string; /** - * @member {string} [instanceID] The running instance of an application. - * Changes after each restart. + * The running instance of an application. Changes after each restart. */ instanceID?: string; } /** - * @interface - * An interface representing ServiceBusActiveMessagesAvailableWithNoListenersEventData. + * The target of the event. + */ +export interface ContainerRegistryArtifactEventTarget { + /** + * The MIME type of the artifact. + */ + mediaType?: string; + /** + * The size in bytes of the artifact. + */ + size?: number; + /** + * The digest of the artifact. + */ + digest?: string; + /** + * The repository name of the artifact. + */ + repository?: string; + /** + * The tag of the artifact. + */ + tag?: string; + /** + * The name of the artifact. + */ + name?: string; + /** + * The version of the artifact. + */ + version?: string; +} + +/** * Schema of the Data property of an EventGridEvent for a * Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners event. - * */ export interface ServiceBusActiveMessagesAvailableWithNoListenersEventData { /** - * @member {string} [namespaceName] The namespace name of the - * Microsoft.ServiceBus resource. + * The namespace name of the Microsoft.ServiceBus resource. */ namespaceName?: string; /** - * @member {string} [requestUri] The endpoint of the Microsoft.ServiceBus - * resource. + * The endpoint of the Microsoft.ServiceBus resource. */ requestUri?: string; /** - * @member {string} [entityType] The entity type of the Microsoft.ServiceBus - * resource. Could be one of 'queue' or 'subscriber'. + * The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. */ entityType?: string; /** - * @member {string} [queueName] The name of the Microsoft.ServiceBus queue. - * If the entity type is of type 'subscriber', then this value will be null. + * The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then + * this value will be null. */ queueName?: string; /** - * @member {string} [topicName] The name of the Microsoft.ServiceBus topic. - * If the entity type is of type 'queue', then this value will be null. + * The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this + * value will be null. */ topicName?: string; /** - * @member {string} [subscriptionName] The name of the Microsoft.ServiceBus - * topic's subscription. If the entity type is of type 'queue', then this - * value will be null. + * The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type + * 'queue', then this value will be null. */ subscriptionName?: string; } /** - * @interface - * An interface representing ServiceBusDeadletterMessagesAvailableWithNoListenersEventData. * Schema of the Data property of an EventGridEvent for a * Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListenersEvent event. - * */ export interface ServiceBusDeadletterMessagesAvailableWithNoListenersEventData { /** - * @member {string} [namespaceName] The namespace name of the - * Microsoft.ServiceBus resource. + * The namespace name of the Microsoft.ServiceBus resource. */ namespaceName?: string; /** - * @member {string} [requestUri] The endpoint of the Microsoft.ServiceBus - * resource. + * The endpoint of the Microsoft.ServiceBus resource. */ requestUri?: string; /** - * @member {string} [entityType] The entity type of the Microsoft.ServiceBus - * resource. Could be one of 'queue' or 'subscriber'. + * The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. */ entityType?: string; /** - * @member {string} [queueName] The name of the Microsoft.ServiceBus queue. - * If the entity type is of type 'subscriber', then this value will be null. + * The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then + * this value will be null. */ queueName?: string; /** - * @member {string} [topicName] The name of the Microsoft.ServiceBus topic. - * If the entity type is of type 'queue', then this value will be null. + * The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this + * value will be null. */ topicName?: string; /** - * @member {string} [subscriptionName] The name of the Microsoft.ServiceBus - * topic's subscription. If the entity type is of type 'queue', then this - * value will be null. + * The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type + * 'queue', then this value will be null. */ subscriptionName?: string; } /** - * @interface - * An interface representing MediaJobStateChangeEventData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Media.JobStateChange event. - * + * Schema of the Data property of an EventGridEvent for a Microsoft.Media.JobStateChange event. */ export interface MediaJobStateChangeEventData { /** - * @member {MediaJobState} [previousState] The previous state of the Job. - * Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', - * 'Processing', 'Queued', 'Scheduled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The previous state of the Job. Possible values include: 'Canceled', 'Canceling', 'Error', + * 'Finished', 'Processing', 'Queued', 'Scheduled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly previousState?: MediaJobState; /** - * @member {MediaJobState} [state] The new state of the Job. Possible values - * include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', - * 'Queued', 'Scheduled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The new state of the Job. Possible values include: 'Canceled', 'Canceling', 'Error', + * 'Finished', 'Processing', 'Queued', 'Scheduled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly state?: MediaJobState; /** - * @member {{ [propertyName: string]: string }} [correlationData] Gets the - * Job correlation data. + * Gets the Job correlation data. */ correlationData?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing MediaJobErrorDetail. * Details of JobOutput errors. - * */ export interface MediaJobErrorDetail { /** - * @member {string} [code] Code describing the error detail. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Code describing the error detail. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly code?: string; /** - * @member {string} [message] A human-readable representation of the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A human-readable representation of the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; } /** - * @interface - * An interface representing MediaJobError. * Details of JobOutput errors. - * */ export interface MediaJobError { /** - * @member {MediaJobErrorCode} [code] Error code describing the error. - * Possible values include: 'ServiceError', 'ServiceTransientError', - * 'DownloadNotAccessible', 'DownloadTransientError', 'UploadNotAccessible', - * 'UploadTransientError', 'ConfigurationUnsupported', 'ContentMalformed', + * Error code describing the error. Possible values include: 'ServiceError', + * 'ServiceTransientError', 'DownloadNotAccessible', 'DownloadTransientError', + * 'UploadNotAccessible', 'UploadTransientError', 'ConfigurationUnsupported', 'ContentMalformed', * 'ContentUnsupported' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly code?: MediaJobErrorCode; /** - * @member {string} [message] A human-readable language-dependent - * representation of the error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A human-readable language-dependent representation of the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; /** - * @member {MediaJobErrorCategory} [category] Helps with categorization of - * errors. Possible values include: 'Service', 'Download', 'Upload', + * Helps with categorization of errors. Possible values include: 'Service', 'Download', 'Upload', * 'Configuration', 'Content' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly category?: MediaJobErrorCategory; /** - * @member {MediaJobRetry} [retry] Indicates that it may be possible to retry - * the Job. If retry is unsuccessful, please contact Azure support via Azure - * Portal. Possible values include: 'DoNotRetry', 'MayRetry' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact + * Azure support via Azure Portal. Possible values include: 'DoNotRetry', 'MayRetry' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly retry?: MediaJobRetry; /** - * @member {MediaJobErrorDetail[]} [details] An array of details about - * specific errors that led to this reported error. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * An array of details about specific errors that led to this reported error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly details?: MediaJobErrorDetail[]; } @@ -1414,691 +1455,1131 @@ export interface MediaJobError { export type MediaJobOutputUnion = MediaJobOutput | MediaJobOutputAsset; /** - * @interface - * An interface representing MediaJobOutput. * The event data for a Job output. - * */ export interface MediaJobOutput { /** - * @member {string} odatatype Polymorphic Discriminator + * Polymorphic Discriminator */ odatatype: "MediaJobOutput"; /** - * @member {MediaJobError} [error] Gets the Job output error. + * Gets the Job output error. */ error?: MediaJobError; /** - * @member {string} [label] Gets the Job output label. + * Gets the Job output label. */ label?: string; /** - * @member {number} progress Gets the Job output progress. + * Gets the Job output progress. */ progress: number; /** - * @member {MediaJobState} state Gets the Job output state. Possible values - * include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', - * 'Queued', 'Scheduled' + * Gets the Job output state. Possible values include: 'Canceled', 'Canceling', 'Error', + * 'Finished', 'Processing', 'Queued', 'Scheduled' */ state: MediaJobState; } /** - * @interface - * An interface representing MediaJobOutputAsset. * The event data for a Job output asset. - * */ export interface MediaJobOutputAsset { /** - * @member {string} odatatype Polymorphic Discriminator + * Polymorphic Discriminator */ odatatype: "#Microsoft.Media.JobOutputAsset"; /** - * @member {MediaJobError} [error] Gets the Job output error. + * Gets the Job output error. */ error?: MediaJobError; /** - * @member {string} [label] Gets the Job output label. + * Gets the Job output label. */ label?: string; /** - * @member {number} progress Gets the Job output progress. + * Gets the Job output progress. */ progress: number; /** - * @member {MediaJobState} state Gets the Job output state. Possible values - * include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', - * 'Queued', 'Scheduled' + * Gets the Job output state. Possible values include: 'Canceled', 'Canceling', 'Error', + * 'Finished', 'Processing', 'Queued', 'Scheduled' */ state: MediaJobState; /** - * @member {string} [assetName] Gets the Job output asset name. + * Gets the Job output asset name. */ assetName?: string; } /** - * @interface - * An interface representing MediaJobOutputStateChangeEventData. - * Schema of the Data property of an EventGridEvent for a - * Microsoft.Media.JobOutputStateChange event. - * + * Job Output Progress Event Data. + */ +export interface MediaJobOutputProgressEventData { + /** + * Gets the Job output label. + */ + label?: string; + /** + * Gets the Job output progress. + */ + progress?: number; + /** + * Gets the Job correlation data. + */ + jobCorrelationData?: { [propertyName: string]: string }; +} + +/** + * Schema of the Data property of an EventGridEvent for a Microsoft.Media.JobOutputStateChange + * event. */ export interface MediaJobOutputStateChangeEventData { /** - * @member {MediaJobState} [previousState] The previous state of the Job. - * Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', - * 'Processing', 'Queued', 'Scheduled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The previous state of the Job. Possible values include: 'Canceled', 'Canceling', 'Error', + * 'Finished', 'Processing', 'Queued', 'Scheduled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly previousState?: MediaJobState; /** - * @member {MediaJobOutputUnion} [output] Gets the output. + * Gets the output. */ output?: MediaJobOutputUnion; /** - * @member {{ [propertyName: string]: string }} [jobCorrelationData] Gets the - * Job correlation data. + * Gets the Job correlation data. */ jobCorrelationData?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing MediaJobScheduledEventData. * Job scheduled event data - * - * @extends MediaJobStateChangeEventData */ export interface MediaJobScheduledEventData extends MediaJobStateChangeEventData { } /** - * @interface - * An interface representing MediaJobProcessingEventData. * Job processing event data - * - * @extends MediaJobStateChangeEventData */ export interface MediaJobProcessingEventData extends MediaJobStateChangeEventData { } /** - * @interface - * An interface representing MediaJobCancelingEventData. * Job canceling event data - * - * @extends MediaJobStateChangeEventData */ export interface MediaJobCancelingEventData extends MediaJobStateChangeEventData { } /** - * @interface - * An interface representing MediaJobFinishedEventData. * Job finished event data - * - * @extends MediaJobStateChangeEventData */ export interface MediaJobFinishedEventData extends MediaJobStateChangeEventData { /** - * @member {MediaJobOutputUnion[]} [outputs] Gets the Job outputs. + * Gets the Job outputs. */ outputs?: MediaJobOutputUnion[]; } /** - * @interface - * An interface representing MediaJobCanceledEventData. * Job canceled event data - * - * @extends MediaJobStateChangeEventData */ export interface MediaJobCanceledEventData extends MediaJobStateChangeEventData { /** - * @member {MediaJobOutputUnion[]} [outputs] Gets the Job outputs. + * Gets the Job outputs. */ outputs?: MediaJobOutputUnion[]; } /** - * @interface - * An interface representing MediaJobErroredEventData. * Job error state event data - * - * @extends MediaJobStateChangeEventData */ export interface MediaJobErroredEventData extends MediaJobStateChangeEventData { /** - * @member {MediaJobOutputUnion[]} [outputs] Gets the Job outputs. + * Gets the Job outputs. */ outputs?: MediaJobOutputUnion[]; } /** - * @interface - * An interface representing MediaJobOutputCanceledEventData. * Job output canceled event data - * - * @extends MediaJobOutputStateChangeEventData */ export interface MediaJobOutputCanceledEventData extends MediaJobOutputStateChangeEventData { } /** - * @interface - * An interface representing MediaJobOutputCancelingEventData. * Job output canceling event data - * - * @extends MediaJobOutputStateChangeEventData */ export interface MediaJobOutputCancelingEventData extends MediaJobOutputStateChangeEventData { } /** - * @interface - * An interface representing MediaJobOutputErroredEventData. * Job output error event data - * - * @extends MediaJobOutputStateChangeEventData */ export interface MediaJobOutputErroredEventData extends MediaJobOutputStateChangeEventData { } /** - * @interface - * An interface representing MediaJobOutputFinishedEventData. * Job output finished event data - * - * @extends MediaJobOutputStateChangeEventData */ export interface MediaJobOutputFinishedEventData extends MediaJobOutputStateChangeEventData { } /** - * @interface - * An interface representing MediaJobOutputProcessingEventData. * Job output processing event data - * - * @extends MediaJobOutputStateChangeEventData */ export interface MediaJobOutputProcessingEventData extends MediaJobOutputStateChangeEventData { } /** - * @interface - * An interface representing MediaJobOutputScheduledEventData. * Job output scheduled event data - * - * @extends MediaJobOutputStateChangeEventData */ export interface MediaJobOutputScheduledEventData extends MediaJobOutputStateChangeEventData { } /** - * @interface - * An interface representing MediaLiveEventEncoderConnectedEventData. * Encoder connect event data. - * */ export interface MediaLiveEventEncoderConnectedEventData { /** - * @member {string} [ingestUrl] Gets the ingest URL provided by the live - * event. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the ingest URL provided by the live event. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly ingestUrl?: string; /** - * @member {string} [streamId] Gets the stream Id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the stream Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly streamId?: string; /** - * @member {string} [encoderIp] Gets the remote IP. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the remote IP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encoderIp?: string; /** - * @member {string} [encoderPort] Gets the remote port. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the remote port. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encoderPort?: string; } /** - * @interface - * An interface representing MediaLiveEventConnectionRejectedEventData. * Encoder connection rejected event data. - * */ export interface MediaLiveEventConnectionRejectedEventData { /** - * @member {string} [ingestUrl] Gets the ingest URL provided by the live - * event. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the ingest URL provided by the live event. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly ingestUrl?: string; /** - * @member {string} [streamId] Gets the stream Id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the stream Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly streamId?: string; /** - * @member {string} [encoderIp] Gets the remote IP. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the remote IP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encoderIp?: string; /** - * @member {string} [encoderPort] Gets the remote port. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the remote port. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encoderPort?: string; /** - * @member {string} [resultCode] Gets the result code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the result code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resultCode?: string; } /** - * @interface - * An interface representing MediaLiveEventEncoderDisconnectedEventData. * Encoder disconnected event data. - * */ export interface MediaLiveEventEncoderDisconnectedEventData { /** - * @member {string} [ingestUrl] Gets the ingest URL provided by the live - * event. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the ingest URL provided by the live event. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly ingestUrl?: string; /** - * @member {string} [streamId] Gets the stream Id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the stream Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly streamId?: string; /** - * @member {string} [encoderIp] Gets the remote IP. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the remote IP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encoderIp?: string; /** - * @member {string} [encoderPort] Gets the remote port. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the remote port. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encoderPort?: string; /** - * @member {string} [resultCode] Gets the result code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the result code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resultCode?: string; } /** - * @interface - * An interface representing MediaLiveEventIncomingStreamReceivedEventData. * Encoder connect event data. - * */ export interface MediaLiveEventIncomingStreamReceivedEventData { /** - * @member {string} [ingestUrl] Gets the ingest URL provided by the live - * event. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the ingest URL provided by the live event. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly ingestUrl?: string; /** - * @member {string} [trackType] Gets the type of the track (Audio / Video). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the type of the track (Audio / Video). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackType?: string; /** - * @member {string} [trackName] Gets the track name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the track name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackName?: string; /** - * @member {number} [bitrate] Gets the bitrate of the track. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the bitrate of the track. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly bitrate?: number; /** - * @member {string} [encoderIp] Gets the remote IP. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the remote IP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encoderIp?: string; /** - * @member {string} [encoderPort] Gets the remote port. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the remote port. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly encoderPort?: string; /** - * @member {string} [timestamp] Gets the first timestamp of the data chunk - * received. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the first timestamp of the data chunk received. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timestamp?: string; /** - * @member {string} [duration] Gets the duration of the first data chunk. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the duration of the first data chunk. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly duration?: string; /** - * @member {string} [timescale] Gets the timescale in which timestamp is - * represented. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timescale in which timestamp is represented. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timescale?: string; } /** - * @interface - * An interface representing MediaLiveEventIncomingStreamsOutOfSyncEventData. * Incoming streams out of sync event data. - * */ export interface MediaLiveEventIncomingStreamsOutOfSyncEventData { /** - * @member {string} [minLastTimestamp] Gets the minimum last timestamp - * received. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the minimum last timestamp received. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly minLastTimestamp?: string; /** - * @member {string} [typeOfStreamWithMinLastTimestamp] Gets the type of - * stream with minimum last timestamp. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the type of stream with minimum last timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly typeOfStreamWithMinLastTimestamp?: string; /** - * @member {string} [maxLastTimestamp] Gets the maximum timestamp among all - * the tracks (audio or video). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the maximum timestamp among all the tracks (audio or video). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly maxLastTimestamp?: string; /** - * @member {string} [typeOfStreamWithMaxLastTimestamp] Gets the type of - * stream with maximum last timestamp. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the type of stream with maximum last timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly typeOfStreamWithMaxLastTimestamp?: string; /** - * @member {string} [timescaleOfMinLastTimestamp] Gets the timescale in which - * "MinLastTimestamp" is represented. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timescale in which "MinLastTimestamp" is represented. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timescaleOfMinLastTimestamp?: string; /** - * @member {string} [timescaleOfMaxLastTimestamp] Gets the timescale in which - * "MaxLastTimestamp" is represented. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timescale in which "MaxLastTimestamp" is represented. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timescaleOfMaxLastTimestamp?: string; } /** - * @interface - * An interface representing MediaLiveEventIncomingVideoStreamsOutOfSyncEventData. * Incoming video stream out of synch event data. - * */ export interface MediaLiveEventIncomingVideoStreamsOutOfSyncEventData { /** - * @member {string} [firstTimestamp] Gets the first timestamp received for - * one of the quality levels. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the first timestamp received for one of the quality levels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly firstTimestamp?: string; /** - * @member {string} [firstDuration] Gets the duration of the data chunk with - * first timestamp. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the duration of the data chunk with first timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly firstDuration?: string; /** - * @member {string} [secondTimestamp] Gets the timestamp received for some - * other quality levels. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timestamp received for some other quality levels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly secondTimestamp?: string; /** - * @member {string} [secondDuration] Gets the duration of the data chunk with - * second timestamp. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the duration of the data chunk with second timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly secondDuration?: string; /** - * @member {string} [timescale] Gets the timescale in which both the - * timestamps and durations are represented. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timescale in which both the timestamps and durations are represented. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timescale?: string; } /** - * @interface - * An interface representing MediaLiveEventIncomingDataChunkDroppedEventData. - * Ingest fragment dropped event event data. - * + * Ingest fragment dropped event data. */ export interface MediaLiveEventIncomingDataChunkDroppedEventData { /** - * @member {string} [timestamp] Gets the timestamp of the data chunk dropped. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timestamp of the data chunk dropped. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timestamp?: string; /** - * @member {string} [trackType] Gets the type of the track (Audio / Video). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the type of the track (Audio / Video). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackType?: string; /** - * @member {number} [bitrate] Gets the bitrate of the track. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the bitrate of the track. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly bitrate?: number; /** - * @member {string} [timescale] Gets the timescale of the Timestamp. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timescale of the Timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timescale?: string; /** - * @member {string} [resultCode] Gets the result code for fragment drop - * operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the result code for fragment drop operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resultCode?: string; /** - * @member {string} [trackName] Gets the name of the track for which fragment - * is dropped. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the name of the track for which fragment is dropped. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackName?: string; } /** - * @interface - * An interface representing MediaLiveEventIngestHeartbeatEventData. - * Ingest fragment dropped event event data. - * + * Ingest fragment dropped event data. */ export interface MediaLiveEventIngestHeartbeatEventData { /** - * @member {string} [trackType] Gets the type of the track (Audio / Video). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the type of the track (Audio / Video). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackType?: string; /** - * @member {string} [trackName] Gets the track name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the track name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackName?: string; /** - * @member {number} [bitrate] Gets the bitrate of the track. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the bitrate of the track. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly bitrate?: number; /** - * @member {number} [incomingBitrate] Gets the incoming bitrate. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the incoming bitrate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly incomingBitrate?: number; /** - * @member {string} [lastTimestamp] Gets the last timestamp. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the last timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastTimestamp?: string; /** - * @member {string} [timescale] Gets the timescale of the last timestamp. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timescale of the last timestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timescale?: string; /** - * @member {number} [overlapCount] Gets the fragment Overlap count. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the fragment Overlap count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly overlapCount?: number; /** - * @member {number} [discontinuityCount] Gets the fragment Discontinuity - * count. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the fragment Discontinuity count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly discontinuityCount?: number; /** - * @member {number} [nonincreasingCount] Gets Non increasing count. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets Non increasing count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nonincreasingCount?: number; /** - * @member {boolean} [unexpectedBitrate] Gets a value indicating whether - * unexpected bitrate is present or not. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets a value indicating whether unexpected bitrate is present or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly unexpectedBitrate?: boolean; /** - * @member {string} [state] Gets the state of the live event. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the state of the live event. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly state?: string; /** - * @member {boolean} [healthy] Gets a value indicating whether preview is - * healthy or not. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets a value indicating whether preview is healthy or not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly healthy?: boolean; } /** - * @interface - * An interface representing MediaLiveEventTrackDiscontinuityDetectedEventData. * Ingest track discontinuity detected event data. - * */ export interface MediaLiveEventTrackDiscontinuityDetectedEventData { /** - * @member {string} [trackType] Gets the type of the track (Audio / Video). - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the type of the track (Audio / Video). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackType?: string; /** - * @member {string} [trackName] Gets the track name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the track name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackName?: string; /** - * @member {number} [bitrate] Gets the bitrate. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the bitrate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly bitrate?: number; /** - * @member {string} [previousTimestamp] Gets the timestamp of the previous - * fragment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timestamp of the previous fragment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly previousTimestamp?: string; /** - * @member {string} [newTimestamp] Gets the timestamp of the current - * fragment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timestamp of the current fragment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly newTimestamp?: string; /** - * @member {string} [timescale] Gets the timescale in which both timestamps - * and discontinuity gap are represented. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the timescale in which both timestamps and discontinuity gap are represented. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timescale?: string; /** - * @member {string} [discontinuityGap] Gets the discontinuity gap between - * PreviousTimestamp and NewTimestamp. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Gets the discontinuity gap between PreviousTimestamp and NewTimestamp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly discontinuityGap?: string; } +/** + * Schema of the Data property of an EventGridEvent for a Geofence event (GeofenceEntered, + * GeofenceExited, GeofenceResult). + */ +export interface MapsGeofenceEventProperties { + /** + * Lists of the geometry ID of the geofence which is expired relative to the user time in the + * request. + */ + expiredGeofenceGeometryId?: string[]; + /** + * Lists the fence geometries that either fully contain the coordinate position or have an + * overlap with the searchBuffer around the fence. + */ + geometries?: MapsGeofenceGeometry[]; + /** + * Lists of the geometry ID of the geofence which is in invalid period relative to the user time + * in the request. + */ + invalidPeriodGeofenceGeometryId?: string[]; + /** + * True if at least one event is published to the Azure Maps event subscriber, false if no event + * is published to the Azure Maps event subscriber. + */ + isEventPublished?: boolean; +} + +/** + * Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceEntered event. + */ +export interface MapsGeofenceEnteredEventData extends MapsGeofenceEventProperties { +} + +/** + * Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceExited event. + */ +export interface MapsGeofenceExitedEventData extends MapsGeofenceEventProperties { +} + +/** + * Schema of the Data property of an EventGridEvent for a Microsoft.Maps.GeofenceResult event. + */ +export interface MapsGeofenceResultEventData extends MapsGeofenceEventProperties { +} + +/** + * The geofence geometry. + */ +export interface MapsGeofenceGeometry { + /** + * ID of the device. + */ + deviceId?: string; + /** + * Distance from the coordinate to the closest border of the geofence. Positive means the + * coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more + * than the value of searchBuffer away from the closest geofence border, then the value is 999. + * Negative means the coordinate is inside of the geofence. If the coordinate is inside the + * polygon, but more than the value of searchBuffer away from the closest geofencing border,then + * the value is -999. A value of 999 means that there is great confidence the coordinate is well + * outside the geofence. A value of -999 means that there is great confidence the coordinate is + * well within the geofence. + */ + distance?: number; + /** + * The unique ID for the geofence geometry. + */ + geometryId?: string; + /** + * Latitude of the nearest point of the geometry. + */ + nearestLat?: number; + /** + * Longitude of the nearest point of the geometry. + */ + nearestLon?: number; + /** + * The unique id returned from user upload service when uploading a geofence. Will not be + * included in geofencing post API. + */ + udId?: string; +} + +/** + * Schema of the Data property of an EventGridEvent for an + * Microsoft.AppConfiguration.KeyValueModified event. + */ +export interface AppConfigurationKeyValueModifiedEventData { + /** + * The key used to identify the key-value that was modified. + */ + key?: string; + /** + * The label, if any, used to identify the key-value that was modified. + */ + label?: string; + /** + * The etag representing the new state of the key-value. + */ + etag?: string; +} + +/** + * Schema of the Data property of an EventGridEvent for an + * Microsoft.AppConfiguration.KeyValueDeleted event. + */ +export interface AppConfigurationKeyValueDeletedEventData { + /** + * The key used to identify the key-value that was deleted. + */ + key?: string; + /** + * The label, if any, used to identify the key-value that was deleted. + */ + label?: string; + /** + * The etag representing the key-value that was deleted. + */ + etag?: string; +} + +/** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.SignalRService.ClientConnectionConnected event. + */ +export interface SignalRServiceClientConnectionConnectedEventData { + /** + * The time at which the event occurred. + */ + timestamp?: Date; + /** + * The hub of connected client connection. + */ + hubName?: string; + /** + * The connection Id of connected client connection. + */ + connectionId?: string; + /** + * The user Id of connected client connection. + */ + userId?: string; +} + +/** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.SignalRService.ClientConnectionDisconnected event. + */ +export interface SignalRServiceClientConnectionDisconnectedEventData { + /** + * The time at which the event occurred. + */ + timestamp?: Date; + /** + * The hub of connected client connection. + */ + hubName?: string; + /** + * The connection Id of connected client connection. + */ + connectionId?: string; + /** + * The user Id of connected client connection. + */ + userId?: string; + /** + * The message of error that cause the client connection disconnected. + */ + errorMessage?: string; +} + +/** + * Schema of the Data property of an EventGridEvent for an CertificateNewVersionCreated event. + */ +export interface KeyVaultCertificateNewVersionCreatedEventData { + /** + * The id of the object that triggered this event. + */ + id?: string; + /** + * Key vault name of the object that triggered this event. + */ + vaultName?: string; + /** + * The type of the object that triggered this event + */ + objectType?: string; + /** + * The name of the object that triggered this event + */ + objectName?: string; + /** + * The version of the object that triggered this event + */ + version?: string; + /** + * Not before date of the object that triggered this event + */ + nbf?: number; + /** + * The expiration date of the object that triggered this event + */ + exp?: number; +} + +/** + * Schema of the Data property of an EventGridEvent for an CertificateNearExpiry event. + */ +export interface KeyVaultCertificateNearExpiryEventData { + /** + * The id of the object that triggered this event. + */ + id?: string; + /** + * Key vault name of the object that triggered this event. + */ + vaultName?: string; + /** + * The type of the object that triggered this event + */ + objectType?: string; + /** + * The name of the object that triggered this event + */ + objectName?: string; + /** + * The version of the object that triggered this event + */ + version?: string; + /** + * Not before date of the object that triggered this event + */ + nbf?: number; + /** + * The expiration date of the object that triggered this event + */ + exp?: number; +} + +/** + * Schema of the Data property of an EventGridEvent for an CertificateExpired event. + */ +export interface KeyVaultCertificateExpiredEventData { + /** + * The id of the object that triggered this event. + */ + id?: string; + /** + * Key vault name of the object that triggered this event. + */ + vaultName?: string; + /** + * The type of the object that triggered this event + */ + objectType?: string; + /** + * The name of the object that triggered this event + */ + objectName?: string; + /** + * The version of the object that triggered this event + */ + version?: string; + /** + * Not before date of the object that triggered this event + */ + nbf?: number; + /** + * The expiration date of the object that triggered this event + */ + exp?: number; +} + +/** + * Schema of the Data property of an EventGridEvent for an KeyNewVersionCreated event. + */ +export interface KeyVaultKeyNewVersionCreatedEventData { + /** + * The id of the object that triggered this event. + */ + id?: string; + /** + * Key vault name of the object that triggered this event. + */ + vaultName?: string; + /** + * The type of the object that triggered this event + */ + objectType?: string; + /** + * The name of the object that triggered this event + */ + objectName?: string; + /** + * The version of the object that triggered this event + */ + version?: string; + /** + * Not before date of the object that triggered this event + */ + nbf?: number; + /** + * The expiration date of the object that triggered this event + */ + exp?: number; +} + +/** + * Schema of the Data property of an EventGridEvent for an KeyNearExpiry event. + */ +export interface KeyVaultKeyNearExpiryEventData { + /** + * The id of the object that triggered this event. + */ + id?: string; + /** + * Key vault name of the object that triggered this event. + */ + vaultName?: string; + /** + * The type of the object that triggered this event + */ + objectType?: string; + /** + * The name of the object that triggered this event + */ + objectName?: string; + /** + * The version of the object that triggered this event + */ + version?: string; + /** + * Not before date of the object that triggered this event + */ + nbf?: number; + /** + * The expiration date of the object that triggered this event + */ + exp?: number; +} + +/** + * Schema of the Data property of an EventGridEvent for an KeyExpired event. + */ +export interface KeyVaultKeyExpiredEventData { + /** + * The id of the object that triggered this event. + */ + id?: string; + /** + * Key vault name of the object that triggered this event. + */ + vaultName?: string; + /** + * The type of the object that triggered this event + */ + objectType?: string; + /** + * The name of the object that triggered this event + */ + objectName?: string; + /** + * The version of the object that triggered this event + */ + version?: string; + /** + * Not before date of the object that triggered this event + */ + nbf?: number; + /** + * The expiration date of the object that triggered this event + */ + exp?: number; +} + +/** + * Schema of the Data property of an EventGridEvent for an SecretNewVersionCreated event. + */ +export interface KeyVaultSecretNewVersionCreatedEventData { + /** + * The id of the object that triggered this event. + */ + id?: string; + /** + * Key vault name of the object that triggered this event. + */ + vaultName?: string; + /** + * The type of the object that triggered this event + */ + objectType?: string; + /** + * The name of the object that triggered this event + */ + objectName?: string; + /** + * The version of the object that triggered this event + */ + version?: string; + /** + * Not before date of the object that triggered this event + */ + nbf?: number; + /** + * The expiration date of the object that triggered this event + */ + exp?: number; +} + +/** + * Schema of the Data property of an EventGridEvent for an SecretNearExpiry event. + */ +export interface KeyVaultSecretNearExpiryEventData { + /** + * The id of the object that triggered this event. + */ + id?: string; + /** + * Key vault name of the object that triggered this event. + */ + vaultName?: string; + /** + * The type of the object that triggered this event + */ + objectType?: string; + /** + * The name of the object that triggered this event + */ + objectName?: string; + /** + * The version of the object that triggered this event + */ + version?: string; + /** + * Not before date of the object that triggered this event + */ + nbf?: number; + /** + * The expiration date of the object that triggered this event + */ + exp?: number; +} + +/** + * Schema of the Data property of an EventGridEvent for an SecretExpired event. + */ +export interface KeyVaultSecretExpiredEventData { + /** + * The id of the object that triggered this event. + */ + id?: string; + /** + * Key vault name of the object that triggered this event. + */ + vaultName?: string; + /** + * The type of the object that triggered this event + */ + objectType?: string; + /** + * The name of the object that triggered this event + */ + objectName?: string; + /** + * The version of the object that triggered this event + */ + version?: string; + /** + * Not before date of the object that triggered this event + */ + nbf?: number; + /** + * The expiration date of the object that triggered this event + */ + exp?: number; +} + +/** + * Schema of the Data property of an EventGridEvent for an + * Microsoft.MachineLearningServices.ModelRegistered event. + */ +export interface MachineLearningServicesModelRegisteredEventData { + /** + * The name of the model that was registered. + */ + modelName?: string; + /** + * The version of the model that was registered. + */ + modelVersion?: number; + /** + * The tags of the model that was registered. + */ + modelTags?: any; + /** + * The properties of the model that was registered. + */ + modelProperties?: any; +} + +/** + * Schema of the Data property of an EventGridEvent for an + * Microsoft.MachineLearningServices.ModelDeployed event. + */ +export interface MachineLearningServicesModelDeployedEventData { + /** + * The name of the deployed service. + */ + serviceName?: string; + /** + * The compute type (e.g. ACI, AKS) of the deployed service. + */ + serviceComputeType?: string; + /** + * A common separated list of model IDs. The IDs of the models deployed in the service. + */ + modelIds?: string; + /** + * The tags of the deployed service. + */ + serviceTags?: any; + /** + * The properties of the deployed service. + */ + serviceProperties?: any; +} + +/** + * Schema of the Data property of an EventGridEvent for an + * Microsoft.MachineLearningServices.RunCompleted event. + */ +export interface MachineLearningServicesRunCompletedEventData { + /** + * The ID of the experiment that the run belongs to. + */ + experimentId?: string; + /** + * The name of the experiment that the run belongs to. + */ + experimentName?: string; + /** + * The ID of the Run that was completed. + */ + runId?: string; + /** + * The Run Type of the completed Run. + */ + runType?: string; + /** + * The tags of the completed Run. + */ + runTags?: any; + /** + * The properties of the completed Run. + */ + runProperties?: any; +} + +/** + * Schema of the Data property of an EventGridEvent for an + * Microsoft.MachineLearningServices.DatasetDriftDetected event. + */ +export interface MachineLearningServicesDatasetDriftDetectedEventData { + /** + * The ID of the data drift monitor that triggered the event. + */ + dataDriftId?: string; + /** + * The name of the data drift monitor that triggered the event. + */ + dataDriftName?: string; + /** + * The ID of the Run that detected data drift. + */ + runId?: string; + /** + * The ID of the base Dataset used to detect drift. + */ + baseDatasetId?: string; + /** + * The ID of the target Dataset used to detect drift. + */ + targetDatasetId?: string; + /** + * The coefficient result that triggered the event. + */ + driftCoefficient?: number; + /** + * The start time of the target dataset time series that resulted in drift detection. + */ + startTime?: Date; + /** + * The end time of the target dataset time series that resulted in drift detection. + */ + endTime?: Date; +} /** * Defines values for MediaJobState. diff --git a/sdk/eventgrid/eventgrid/src/models/mappers.ts b/sdk/eventgrid/eventgrid/src/models/mappers.ts index 1c19fb168b5f..ce98ef624266 100644 --- a/sdk/eventgrid/eventgrid/src/models/mappers.ts +++ b/sdk/eventgrid/eventgrid/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. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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"; @@ -56,6 +54,12 @@ export const StorageBlobCreatedEventData: msRest.CompositeMapper = { name: "Number" } }, + contentOffset: { + serializedName: "contentOffset", + type: { + name: "Number" + } + }, blobType: { serializedName: "blobType", type: { @@ -74,6 +78,12 @@ export const StorageBlobCreatedEventData: msRest.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "String" + } + }, storageDiagnostics: { serializedName: "storageDiagnostics", type: { @@ -132,6 +142,244 @@ export const StorageBlobDeletedEventData: msRest.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "String" + } + }, + storageDiagnostics: { + serializedName: "storageDiagnostics", + type: { + name: "Object" + } + } + } + } +}; + +export const StorageDirectoryCreatedEventData: msRest.CompositeMapper = { + serializedName: "StorageDirectoryCreatedEventData", + type: { + name: "Composite", + className: "StorageDirectoryCreatedEventData", + modelProperties: { + api: { + serializedName: "api", + type: { + name: "String" + } + }, + clientRequestId: { + serializedName: "clientRequestId", + type: { + name: "String" + } + }, + requestId: { + serializedName: "requestId", + type: { + name: "String" + } + }, + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + }, + sequencer: { + serializedName: "sequencer", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "String" + } + }, + storageDiagnostics: { + serializedName: "storageDiagnostics", + type: { + name: "Object" + } + } + } + } +}; + +export const StorageDirectoryDeletedEventData: msRest.CompositeMapper = { + serializedName: "StorageDirectoryDeletedEventData", + type: { + name: "Composite", + className: "StorageDirectoryDeletedEventData", + modelProperties: { + api: { + serializedName: "api", + type: { + name: "String" + } + }, + clientRequestId: { + serializedName: "clientRequestId", + type: { + name: "String" + } + }, + requestId: { + serializedName: "requestId", + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + }, + recursive: { + serializedName: "recursive", + type: { + name: "Boolean" + } + }, + sequencer: { + serializedName: "sequencer", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "String" + } + }, + storageDiagnostics: { + serializedName: "storageDiagnostics", + type: { + name: "Object" + } + } + } + } +}; + +export const StorageBlobRenamedEventData: msRest.CompositeMapper = { + serializedName: "StorageBlobRenamedEventData", + type: { + name: "Composite", + className: "StorageBlobRenamedEventData", + modelProperties: { + api: { + serializedName: "api", + type: { + name: "String" + } + }, + clientRequestId: { + serializedName: "clientRequestId", + type: { + name: "String" + } + }, + requestId: { + serializedName: "requestId", + type: { + name: "String" + } + }, + sourceUrl: { + serializedName: "sourceUrl", + type: { + name: "String" + } + }, + destinationUrl: { + serializedName: "destinationUrl", + type: { + name: "String" + } + }, + sequencer: { + serializedName: "sequencer", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "String" + } + }, + storageDiagnostics: { + serializedName: "storageDiagnostics", + type: { + name: "Object" + } + } + } + } +}; + +export const StorageDirectoryRenamedEventData: msRest.CompositeMapper = { + serializedName: "StorageDirectoryRenamedEventData", + type: { + name: "Composite", + className: "StorageDirectoryRenamedEventData", + modelProperties: { + api: { + serializedName: "api", + type: { + name: "String" + } + }, + clientRequestId: { + serializedName: "clientRequestId", + type: { + name: "String" + } + }, + requestId: { + serializedName: "requestId", + type: { + name: "String" + } + }, + sourceUrl: { + serializedName: "sourceUrl", + type: { + name: "String" + } + }, + destinationUrl: { + serializedName: "destinationUrl", + type: { + name: "String" + } + }, + sequencer: { + serializedName: "sequencer", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "String" + } + }, storageDiagnostics: { serializedName: "storageDiagnostics", type: { @@ -1120,6 +1368,55 @@ export const IotHubDeviceDisconnectedEventData: msRest.CompositeMapper = { } }; +export const DeviceTelemetryEventProperties: msRest.CompositeMapper = { + serializedName: "DeviceTelemetryEventProperties", + type: { + name: "Composite", + className: "DeviceTelemetryEventProperties", + modelProperties: { + body: { + serializedName: "body", + type: { + name: "Object" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemProperties: { + serializedName: "systemProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const IotHubDeviceTelemetryEventData: msRest.CompositeMapper = { + serializedName: "IotHubDeviceTelemetryEventData", + type: { + name: "Composite", + className: "IotHubDeviceTelemetryEventData", + modelProperties: { + ...DeviceTelemetryEventProperties.type.modelProperties + } + } +}; + export const DeviceTwinMetadata: msRest.CompositeMapper = { serializedName: "DeviceTwinMetadata", type: { @@ -1377,13 +1674,70 @@ export const ContainerRegistryImageDeletedEventData: msRest.CompositeMapper = { } }; -export const ContainerRegistryEventTarget: msRest.CompositeMapper = { - serializedName: "ContainerRegistryEventTarget", +export const ContainerRegistryArtifactEventData: msRest.CompositeMapper = { + serializedName: "ContainerRegistryArtifactEventData", type: { name: "Composite", - className: "ContainerRegistryEventTarget", + className: "ContainerRegistryArtifactEventData", modelProperties: { - mediaType: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "Composite", + className: "ContainerRegistryArtifactEventTarget" + } + } + } + } +}; + +export const ContainerRegistryChartPushedEventData: msRest.CompositeMapper = { + serializedName: "ContainerRegistryChartPushedEventData", + type: { + name: "Composite", + className: "ContainerRegistryChartPushedEventData", + modelProperties: { + ...ContainerRegistryArtifactEventData.type.modelProperties + } + } +}; + +export const ContainerRegistryChartDeletedEventData: msRest.CompositeMapper = { + serializedName: "ContainerRegistryChartDeletedEventData", + type: { + name: "Composite", + className: "ContainerRegistryChartDeletedEventData", + modelProperties: { + ...ContainerRegistryArtifactEventData.type.modelProperties + } + } +}; + +export const ContainerRegistryEventTarget: msRest.CompositeMapper = { + serializedName: "ContainerRegistryEventTarget", + type: { + name: "Composite", + className: "ContainerRegistryEventTarget", + modelProperties: { + mediaType: { serializedName: "mediaType", type: { name: "String" @@ -1507,6 +1861,58 @@ export const ContainerRegistryEventSource: msRest.CompositeMapper = { } }; +export const ContainerRegistryArtifactEventTarget: msRest.CompositeMapper = { + serializedName: "ContainerRegistryArtifactEventTarget", + type: { + name: "Composite", + className: "ContainerRegistryArtifactEventTarget", + modelProperties: { + mediaType: { + serializedName: "mediaType", + type: { + name: "String" + } + }, + size: { + serializedName: "size", + type: { + name: "Number" + } + }, + digest: { + serializedName: "digest", + type: { + name: "String" + } + }, + repository: { + serializedName: "repository", + type: { + name: "String" + } + }, + tag: { + serializedName: "tag", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + export const ServiceBusActiveMessagesAvailableWithNoListenersEventData: msRest.CompositeMapper = { serializedName: "ServiceBusActiveMessagesAvailableWithNoListenersEventData", type: { @@ -1831,6 +2237,39 @@ export const MediaJobOutputAsset: msRest.CompositeMapper = { } }; +export const MediaJobOutputProgressEventData: msRest.CompositeMapper = { + serializedName: "#Microsoft.Media.JobOutputProgress", + type: { + name: "Composite", + className: "MediaJobOutputProgressEventData", + modelProperties: { + label: { + serializedName: "label", + type: { + name: "String" + } + }, + progress: { + serializedName: "progress", + type: { + name: "Number" + } + }, + jobCorrelationData: { + serializedName: "jobCorrelationData", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const MediaJobOutputStateChangeEventData: msRest.CompositeMapper = { serializedName: "MediaJobOutputStateChangeEventData", type: { @@ -2547,7 +2986,913 @@ export const MediaLiveEventTrackDiscontinuityDetectedEventData: msRest.Composite } }; -export const discriminators = { - 'MediaJobOutput' : MediaJobOutput, - 'MediaJobOutput.#Microsoft.Media.JobOutputAsset' : MediaJobOutputAsset +export const MapsGeofenceEventProperties: msRest.CompositeMapper = { + serializedName: "MapsGeofenceEventProperties", + type: { + name: "Composite", + className: "MapsGeofenceEventProperties", + modelProperties: { + expiredGeofenceGeometryId: { + serializedName: "expiredGeofenceGeometryId", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + geometries: { + serializedName: "geometries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MapsGeofenceGeometry" + } + } + } + }, + invalidPeriodGeofenceGeometryId: { + serializedName: "invalidPeriodGeofenceGeometryId", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isEventPublished: { + serializedName: "isEventPublished", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MapsGeofenceEnteredEventData: msRest.CompositeMapper = { + serializedName: "MapsGeofenceEnteredEventData", + type: { + name: "Composite", + className: "MapsGeofenceEnteredEventData", + modelProperties: { + ...MapsGeofenceEventProperties.type.modelProperties + } + } +}; + +export const MapsGeofenceExitedEventData: msRest.CompositeMapper = { + serializedName: "MapsGeofenceExitedEventData", + type: { + name: "Composite", + className: "MapsGeofenceExitedEventData", + modelProperties: { + ...MapsGeofenceEventProperties.type.modelProperties + } + } +}; + +export const MapsGeofenceResultEventData: msRest.CompositeMapper = { + serializedName: "MapsGeofenceResultEventData", + type: { + name: "Composite", + className: "MapsGeofenceResultEventData", + modelProperties: { + ...MapsGeofenceEventProperties.type.modelProperties + } + } +}; + +export const MapsGeofenceGeometry: msRest.CompositeMapper = { + serializedName: "MapsGeofenceGeometry", + type: { + name: "Composite", + className: "MapsGeofenceGeometry", + modelProperties: { + deviceId: { + serializedName: "deviceId", + type: { + name: "String" + } + }, + distance: { + serializedName: "distance", + type: { + name: "Number" + } + }, + geometryId: { + serializedName: "geometryId", + type: { + name: "String" + } + }, + nearestLat: { + serializedName: "nearestLat", + type: { + name: "Number" + } + }, + nearestLon: { + serializedName: "nearestLon", + type: { + name: "Number" + } + }, + udId: { + serializedName: "udId", + type: { + name: "String" + } + } + } + } +}; + +export const AppConfigurationKeyValueModifiedEventData: msRest.CompositeMapper = { + serializedName: "AppConfigurationKeyValueModifiedEventData", + type: { + name: "Composite", + className: "AppConfigurationKeyValueModifiedEventData", + modelProperties: { + key: { + serializedName: "key", + type: { + name: "String" + } + }, + label: { + serializedName: "label", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AppConfigurationKeyValueDeletedEventData: msRest.CompositeMapper = { + serializedName: "AppConfigurationKeyValueDeletedEventData", + type: { + name: "Composite", + className: "AppConfigurationKeyValueDeletedEventData", + modelProperties: { + key: { + serializedName: "key", + type: { + name: "String" + } + }, + label: { + serializedName: "label", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const SignalRServiceClientConnectionConnectedEventData: msRest.CompositeMapper = { + serializedName: "SignalRServiceClientConnectionConnectedEventData", + type: { + name: "Composite", + className: "SignalRServiceClientConnectionConnectedEventData", + modelProperties: { + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + hubName: { + serializedName: "hubName", + type: { + name: "String" + } + }, + connectionId: { + serializedName: "connectionId", + type: { + name: "String" + } + }, + userId: { + serializedName: "userId", + type: { + name: "String" + } + } + } + } +}; + +export const SignalRServiceClientConnectionDisconnectedEventData: msRest.CompositeMapper = { + serializedName: "SignalRServiceClientConnectionDisconnectedEventData", + type: { + name: "Composite", + className: "SignalRServiceClientConnectionDisconnectedEventData", + modelProperties: { + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + hubName: { + serializedName: "hubName", + type: { + name: "String" + } + }, + connectionId: { + serializedName: "connectionId", + type: { + name: "String" + } + }, + userId: { + serializedName: "userId", + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + } + } + } +}; + +export const KeyVaultCertificateNewVersionCreatedEventData: msRest.CompositeMapper = { + serializedName: "KeyVaultCertificateNewVersionCreatedEventData", + type: { + name: "Composite", + className: "KeyVaultCertificateNewVersionCreatedEventData", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + type: { + name: "String" + } + }, + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + nbf: { + serializedName: "nbf", + type: { + name: "Number" + } + }, + exp: { + serializedName: "exp", + type: { + name: "Number" + } + } + } + } +}; + +export const KeyVaultCertificateNearExpiryEventData: msRest.CompositeMapper = { + serializedName: "KeyVaultCertificateNearExpiryEventData", + type: { + name: "Composite", + className: "KeyVaultCertificateNearExpiryEventData", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + type: { + name: "String" + } + }, + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + nbf: { + serializedName: "nbf", + type: { + name: "Number" + } + }, + exp: { + serializedName: "exp", + type: { + name: "Number" + } + } + } + } +}; + +export const KeyVaultCertificateExpiredEventData: msRest.CompositeMapper = { + serializedName: "KeyVaultCertificateExpiredEventData", + type: { + name: "Composite", + className: "KeyVaultCertificateExpiredEventData", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + type: { + name: "String" + } + }, + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + nbf: { + serializedName: "nbf", + type: { + name: "Number" + } + }, + exp: { + serializedName: "exp", + type: { + name: "Number" + } + } + } + } +}; + +export const KeyVaultKeyNewVersionCreatedEventData: msRest.CompositeMapper = { + serializedName: "KeyVaultKeyNewVersionCreatedEventData", + type: { + name: "Composite", + className: "KeyVaultKeyNewVersionCreatedEventData", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + type: { + name: "String" + } + }, + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + nbf: { + serializedName: "nbf", + type: { + name: "Number" + } + }, + exp: { + serializedName: "exp", + type: { + name: "Number" + } + } + } + } +}; + +export const KeyVaultKeyNearExpiryEventData: msRest.CompositeMapper = { + serializedName: "KeyVaultKeyNearExpiryEventData", + type: { + name: "Composite", + className: "KeyVaultKeyNearExpiryEventData", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + type: { + name: "String" + } + }, + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + nbf: { + serializedName: "nbf", + type: { + name: "Number" + } + }, + exp: { + serializedName: "exp", + type: { + name: "Number" + } + } + } + } +}; + +export const KeyVaultKeyExpiredEventData: msRest.CompositeMapper = { + serializedName: "KeyVaultKeyExpiredEventData", + type: { + name: "Composite", + className: "KeyVaultKeyExpiredEventData", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + type: { + name: "String" + } + }, + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + nbf: { + serializedName: "nbf", + type: { + name: "Number" + } + }, + exp: { + serializedName: "exp", + type: { + name: "Number" + } + } + } + } +}; + +export const KeyVaultSecretNewVersionCreatedEventData: msRest.CompositeMapper = { + serializedName: "KeyVaultSecretNewVersionCreatedEventData", + type: { + name: "Composite", + className: "KeyVaultSecretNewVersionCreatedEventData", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + type: { + name: "String" + } + }, + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + nbf: { + serializedName: "nbf", + type: { + name: "Number" + } + }, + exp: { + serializedName: "exp", + type: { + name: "Number" + } + } + } + } +}; + +export const KeyVaultSecretNearExpiryEventData: msRest.CompositeMapper = { + serializedName: "KeyVaultSecretNearExpiryEventData", + type: { + name: "Composite", + className: "KeyVaultSecretNearExpiryEventData", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + type: { + name: "String" + } + }, + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + nbf: { + serializedName: "nbf", + type: { + name: "Number" + } + }, + exp: { + serializedName: "exp", + type: { + name: "Number" + } + } + } + } +}; + +export const KeyVaultSecretExpiredEventData: msRest.CompositeMapper = { + serializedName: "KeyVaultSecretExpiredEventData", + type: { + name: "Composite", + className: "KeyVaultSecretExpiredEventData", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + vaultName: { + serializedName: "vaultName", + type: { + name: "String" + } + }, + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + nbf: { + serializedName: "nbf", + type: { + name: "Number" + } + }, + exp: { + serializedName: "exp", + type: { + name: "Number" + } + } + } + } +}; + +export const MachineLearningServicesModelRegisteredEventData: msRest.CompositeMapper = { + serializedName: "MachineLearningServicesModelRegisteredEventData", + type: { + name: "Composite", + className: "MachineLearningServicesModelRegisteredEventData", + modelProperties: { + modelName: { + serializedName: "modelName", + type: { + name: "String" + } + }, + modelVersion: { + serializedName: "modelVersion", + type: { + name: "Number" + } + }, + modelTags: { + serializedName: "modelTags", + type: { + name: "Object" + } + }, + modelProperties: { + serializedName: "modelProperties", + type: { + name: "Object" + } + } + } + } +}; + +export const MachineLearningServicesModelDeployedEventData: msRest.CompositeMapper = { + serializedName: "MachineLearningServicesModelDeployedEventData", + type: { + name: "Composite", + className: "MachineLearningServicesModelDeployedEventData", + modelProperties: { + serviceName: { + serializedName: "serviceName", + type: { + name: "String" + } + }, + serviceComputeType: { + serializedName: "serviceComputeType", + type: { + name: "String" + } + }, + modelIds: { + serializedName: "modelIds", + type: { + name: "String" + } + }, + serviceTags: { + serializedName: "serviceTags", + type: { + name: "Object" + } + }, + serviceProperties: { + serializedName: "serviceProperties", + type: { + name: "Object" + } + } + } + } +}; + +export const MachineLearningServicesRunCompletedEventData: msRest.CompositeMapper = { + serializedName: "MachineLearningServicesRunCompletedEventData", + type: { + name: "Composite", + className: "MachineLearningServicesRunCompletedEventData", + modelProperties: { + experimentId: { + serializedName: "experimentId", + type: { + name: "String" + } + }, + experimentName: { + serializedName: "experimentName", + type: { + name: "String" + } + }, + runId: { + serializedName: "runId", + type: { + name: "String" + } + }, + runType: { + serializedName: "runType", + type: { + name: "String" + } + }, + runTags: { + serializedName: "runTags", + type: { + name: "Object" + } + }, + runProperties: { + serializedName: "runProperties", + type: { + name: "Object" + } + } + } + } +}; + +export const MachineLearningServicesDatasetDriftDetectedEventData: msRest.CompositeMapper = { + serializedName: "MachineLearningServicesDatasetDriftDetectedEventData", + type: { + name: "Composite", + className: "MachineLearningServicesDatasetDriftDetectedEventData", + modelProperties: { + dataDriftId: { + serializedName: "dataDriftId", + type: { + name: "String" + } + }, + dataDriftName: { + serializedName: "dataDriftName", + type: { + name: "String" + } + }, + runId: { + serializedName: "runId", + type: { + name: "String" + } + }, + baseDatasetId: { + serializedName: "baseDatasetId", + type: { + name: "String" + } + }, + targetDatasetId: { + serializedName: "targetDatasetId", + type: { + name: "String" + } + }, + driftCoefficient: { + serializedName: "driftCoefficient", + type: { + name: "Number" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const discriminators = { + 'MediaJobOutput' : MediaJobOutput, + 'MediaJobOutput.#Microsoft.Media.JobOutputAsset' : MediaJobOutputAsset + }; diff --git a/sdk/eventgrid/eventgrid/tsconfig.json b/sdk/eventgrid/eventgrid/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/eventgrid/eventgrid/tsconfig.json +++ b/sdk/eventgrid/eventgrid/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true