@azure/eventgrid 5.0.0-alpha.20231110.4 → 5.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +852 -1640
- package/dist/index.js.map +1 -1
- package/dist-esm/src/cadl-generated/EventGridClient.js +41 -0
- package/dist-esm/src/cadl-generated/EventGridClient.js.map +1 -0
- package/dist-esm/src/cadl-generated/api/EventGridContext.js +10 -0
- package/dist-esm/src/cadl-generated/api/EventGridContext.js.map +1 -0
- package/dist-esm/src/cadl-generated/api/index.js +5 -0
- package/dist-esm/src/cadl-generated/api/index.js.map +1 -0
- package/dist-esm/src/cadl-generated/api/operations.js +198 -0
- package/dist-esm/src/cadl-generated/api/operations.js.map +1 -0
- package/dist-esm/src/cadl-generated/index.js +4 -0
- package/dist-esm/src/cadl-generated/index.js.map +1 -0
- package/dist-esm/src/cadl-generated/logger.js +5 -0
- package/dist-esm/src/cadl-generated/logger.js.map +1 -0
- package/dist-esm/src/cadl-generated/models/index.js +4 -0
- package/dist-esm/src/cadl-generated/models/index.js.map +1 -0
- package/dist-esm/src/cadl-generated/models/models.js +4 -0
- package/dist-esm/src/cadl-generated/models/models.js.map +1 -0
- package/dist-esm/src/cadl-generated/models/options.js +4 -0
- package/dist-esm/src/cadl-generated/models/options.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/clientDefinitions.js +4 -0
- package/dist-esm/src/cadl-generated/rest/clientDefinitions.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/eventGridClient.js +38 -0
- package/dist-esm/src/cadl-generated/rest/eventGridClient.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/index.js +12 -0
- package/dist-esm/src/cadl-generated/rest/index.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/isUnexpected.js +75 -0
- package/dist-esm/src/cadl-generated/rest/isUnexpected.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/models.js +4 -0
- package/dist-esm/src/cadl-generated/rest/models.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/outputModels.js +4 -0
- package/dist-esm/src/cadl-generated/rest/outputModels.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/parameters.js +4 -0
- package/dist-esm/src/cadl-generated/rest/parameters.js.map +1 -0
- package/dist-esm/src/cadl-generated/rest/responses.js +4 -0
- package/dist-esm/src/cadl-generated/rest/responses.js.map +1 -0
- package/dist-esm/src/eventGridClientV2.js +147 -0
- package/dist-esm/src/eventGridClientV2.js.map +1 -0
- package/dist-esm/src/eventGridV2PublishBinaryMode.js +63 -0
- package/dist-esm/src/eventGridV2PublishBinaryMode.js.map +1 -0
- package/dist-esm/src/generated/generatedClientContext.js +1 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +372 -1673
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/predicates.js.map +1 -1
- package/dist-esm/src/tracing.js +1 -1
- package/dist-esm/src/tracing.js.map +1 -1
- package/package.json +13 -11
- package/types/eventgrid.d.ts +203 -705
package/dist/index.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
3
|
var coreAuth = require('@azure/core-auth');
|
6
4
|
var tslib = require('tslib');
|
7
5
|
var coreClient = require('@azure/core-client');
|
@@ -9,6 +7,10 @@ var coreTracing = require('@azure/core-tracing');
|
|
9
7
|
var uuid = require('uuid');
|
10
8
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
11
9
|
var crypto = require('crypto');
|
10
|
+
var coreClient$1 = require('@azure-rest/core-client');
|
11
|
+
var logger$1 = require('@azure/logger');
|
12
|
+
var coreUtil = require('@azure/core-util');
|
13
|
+
var buffer = require('buffer');
|
12
14
|
|
13
15
|
function _interopNamespaceDefault(e) {
|
14
16
|
var n = Object.create(null);
|
@@ -2172,35 +2174,6 @@ const SubscriptionDeletedEventData = {
|
|
2172
2174
|
}
|
2173
2175
|
}
|
2174
2176
|
};
|
2175
|
-
const EventGridMqttClientEventData = {
|
2176
|
-
type: {
|
2177
|
-
name: "Composite",
|
2178
|
-
className: "EventGridMqttClientEventData",
|
2179
|
-
modelProperties: {
|
2180
|
-
clientAuthenticationName: {
|
2181
|
-
serializedName: "clientAuthenticationName",
|
2182
|
-
required: true,
|
2183
|
-
type: {
|
2184
|
-
name: "String"
|
2185
|
-
}
|
2186
|
-
},
|
2187
|
-
clientName: {
|
2188
|
-
serializedName: "clientName",
|
2189
|
-
required: true,
|
2190
|
-
type: {
|
2191
|
-
name: "String"
|
2192
|
-
}
|
2193
|
-
},
|
2194
|
-
namespaceName: {
|
2195
|
-
serializedName: "namespaceName",
|
2196
|
-
required: true,
|
2197
|
-
type: {
|
2198
|
-
name: "String"
|
2199
|
-
}
|
2200
|
-
}
|
2201
|
-
}
|
2202
|
-
}
|
2203
|
-
};
|
2204
2177
|
const DataBoxCopyStartedEventData = {
|
2205
2178
|
type: {
|
2206
2179
|
name: "Composite",
|
@@ -4143,35 +4116,6 @@ const AppConfigurationKeyValueDeletedEventData = {
|
|
4143
4116
|
}
|
4144
4117
|
}
|
4145
4118
|
};
|
4146
|
-
const AppConfigurationSnapshotEventData = {
|
4147
|
-
type: {
|
4148
|
-
name: "Composite",
|
4149
|
-
className: "AppConfigurationSnapshotEventData",
|
4150
|
-
modelProperties: {
|
4151
|
-
name: {
|
4152
|
-
serializedName: "name",
|
4153
|
-
required: true,
|
4154
|
-
type: {
|
4155
|
-
name: "String"
|
4156
|
-
}
|
4157
|
-
},
|
4158
|
-
etag: {
|
4159
|
-
serializedName: "etag",
|
4160
|
-
required: true,
|
4161
|
-
type: {
|
4162
|
-
name: "String"
|
4163
|
-
}
|
4164
|
-
},
|
4165
|
-
syncToken: {
|
4166
|
-
serializedName: "syncToken",
|
4167
|
-
required: true,
|
4168
|
-
type: {
|
4169
|
-
name: "String"
|
4170
|
-
}
|
4171
|
-
}
|
4172
|
-
}
|
4173
|
-
}
|
4174
|
-
};
|
4175
4119
|
const SignalRServiceClientConnectionConnectedEventData = {
|
4176
4120
|
type: {
|
4177
4121
|
name: "Composite",
|
@@ -6206,27 +6150,27 @@ const AcsUserDisconnectedEventData = {
|
|
6206
6150
|
}
|
6207
6151
|
}
|
6208
6152
|
};
|
6209
|
-
const
|
6153
|
+
const AcsChatEventBase = {
|
6210
6154
|
type: {
|
6211
6155
|
name: "Composite",
|
6212
|
-
className: "
|
6156
|
+
className: "AcsChatEventBase",
|
6213
6157
|
modelProperties: {
|
6214
|
-
|
6215
|
-
serializedName: "
|
6216
|
-
required: true,
|
6158
|
+
recipientCommunicationIdentifier: {
|
6159
|
+
serializedName: "recipientCommunicationIdentifier",
|
6217
6160
|
type: {
|
6218
|
-
name: "
|
6161
|
+
name: "Composite",
|
6162
|
+
className: "CommunicationIdentifierModel"
|
6219
6163
|
}
|
6220
6164
|
},
|
6221
|
-
|
6222
|
-
serializedName: "
|
6165
|
+
transactionId: {
|
6166
|
+
serializedName: "transactionId",
|
6223
6167
|
required: true,
|
6224
6168
|
type: {
|
6225
6169
|
name: "String"
|
6226
6170
|
}
|
6227
6171
|
},
|
6228
|
-
|
6229
|
-
serializedName: "
|
6172
|
+
threadId: {
|
6173
|
+
serializedName: "threadId",
|
6230
6174
|
required: true,
|
6231
6175
|
type: {
|
6232
6176
|
name: "String"
|
@@ -6235,127 +6179,157 @@ const AcsRouterEventData = {
|
|
6235
6179
|
}
|
6236
6180
|
}
|
6237
6181
|
};
|
6238
|
-
const
|
6182
|
+
const AcsChatEventInThreadBase = {
|
6239
6183
|
type: {
|
6240
6184
|
name: "Composite",
|
6241
|
-
className: "
|
6185
|
+
className: "AcsChatEventInThreadBase",
|
6242
6186
|
modelProperties: {
|
6243
|
-
|
6244
|
-
serializedName: "
|
6187
|
+
transactionId: {
|
6188
|
+
serializedName: "transactionId",
|
6245
6189
|
required: true,
|
6246
6190
|
type: {
|
6247
6191
|
name: "String"
|
6248
6192
|
}
|
6249
6193
|
},
|
6250
|
-
|
6251
|
-
serializedName: "
|
6194
|
+
threadId: {
|
6195
|
+
serializedName: "threadId",
|
6252
6196
|
required: true,
|
6253
6197
|
type: {
|
6254
6198
|
name: "String"
|
6255
6199
|
}
|
6256
|
-
}
|
6257
|
-
|
6258
|
-
|
6200
|
+
}
|
6201
|
+
}
|
6202
|
+
}
|
6203
|
+
};
|
6204
|
+
const AcsChatThreadParticipant = {
|
6205
|
+
type: {
|
6206
|
+
name: "Composite",
|
6207
|
+
className: "AcsChatThreadParticipant",
|
6208
|
+
modelProperties: {
|
6209
|
+
displayName: {
|
6210
|
+
serializedName: "displayName",
|
6259
6211
|
required: true,
|
6260
6212
|
type: {
|
6261
6213
|
name: "String"
|
6262
6214
|
}
|
6263
6215
|
},
|
6264
|
-
|
6265
|
-
serializedName: "
|
6216
|
+
participantCommunicationIdentifier: {
|
6217
|
+
serializedName: "participantCommunicationIdentifier",
|
6266
6218
|
type: {
|
6267
6219
|
name: "Composite",
|
6268
|
-
className: "
|
6220
|
+
className: "CommunicationIdentifierModel"
|
6221
|
+
}
|
6222
|
+
}
|
6223
|
+
}
|
6224
|
+
}
|
6225
|
+
};
|
6226
|
+
const AcsSmsDeliveryAttempt = {
|
6227
|
+
type: {
|
6228
|
+
name: "Composite",
|
6229
|
+
className: "AcsSmsDeliveryAttempt",
|
6230
|
+
modelProperties: {
|
6231
|
+
timestamp: {
|
6232
|
+
serializedName: "timestamp",
|
6233
|
+
required: true,
|
6234
|
+
type: {
|
6235
|
+
name: "String"
|
6269
6236
|
}
|
6270
6237
|
},
|
6271
|
-
|
6272
|
-
serializedName: "
|
6238
|
+
segmentsSucceeded: {
|
6239
|
+
serializedName: "segmentsSucceeded",
|
6273
6240
|
required: true,
|
6274
6241
|
type: {
|
6275
|
-
name: "
|
6276
|
-
|
6277
|
-
|
6278
|
-
|
6279
|
-
|
6280
|
-
|
6281
|
-
|
6242
|
+
name: "Number"
|
6243
|
+
}
|
6244
|
+
},
|
6245
|
+
segmentsFailed: {
|
6246
|
+
serializedName: "segmentsFailed",
|
6247
|
+
required: true,
|
6248
|
+
type: {
|
6249
|
+
name: "Number"
|
6282
6250
|
}
|
6283
6251
|
}
|
6284
6252
|
}
|
6285
6253
|
}
|
6286
6254
|
};
|
6287
|
-
const
|
6255
|
+
const AcsSmsEventBase = {
|
6288
6256
|
type: {
|
6289
6257
|
name: "Composite",
|
6290
|
-
className: "
|
6258
|
+
className: "AcsSmsEventBase",
|
6291
6259
|
modelProperties: {
|
6292
|
-
|
6293
|
-
serializedName: "
|
6260
|
+
messageId: {
|
6261
|
+
serializedName: "messageId",
|
6294
6262
|
required: true,
|
6295
6263
|
type: {
|
6296
6264
|
name: "String"
|
6297
6265
|
}
|
6298
6266
|
},
|
6299
|
-
|
6300
|
-
serializedName: "
|
6267
|
+
from: {
|
6268
|
+
serializedName: "from",
|
6301
6269
|
required: true,
|
6302
6270
|
type: {
|
6303
6271
|
name: "String"
|
6304
6272
|
}
|
6305
6273
|
},
|
6306
|
-
|
6307
|
-
serializedName: "
|
6274
|
+
to: {
|
6275
|
+
serializedName: "to",
|
6308
6276
|
required: true,
|
6309
6277
|
type: {
|
6310
|
-
name: "
|
6311
|
-
value: { type: { name: "String" } }
|
6278
|
+
name: "String"
|
6312
6279
|
}
|
6313
6280
|
}
|
6314
6281
|
}
|
6315
6282
|
}
|
6316
6283
|
};
|
6317
|
-
const
|
6284
|
+
const AcsRecordingFileStatusUpdatedEventData = {
|
6318
6285
|
type: {
|
6319
6286
|
name: "Composite",
|
6320
|
-
className: "
|
6287
|
+
className: "AcsRecordingFileStatusUpdatedEventData",
|
6321
6288
|
modelProperties: {
|
6322
|
-
|
6323
|
-
serializedName: "
|
6289
|
+
recordingStorageInfo: {
|
6290
|
+
serializedName: "recordingStorageInfo",
|
6291
|
+
type: {
|
6292
|
+
name: "Composite",
|
6293
|
+
className: "AcsRecordingStorageInfo"
|
6294
|
+
}
|
6295
|
+
},
|
6296
|
+
recordingStartTime: {
|
6297
|
+
serializedName: "recordingStartTime",
|
6324
6298
|
required: true,
|
6325
6299
|
type: {
|
6326
6300
|
name: "String"
|
6327
6301
|
}
|
6328
6302
|
},
|
6329
|
-
|
6330
|
-
serializedName: "
|
6303
|
+
recordingDurationMs: {
|
6304
|
+
serializedName: "recordingDurationMs",
|
6331
6305
|
required: true,
|
6332
6306
|
type: {
|
6333
|
-
name: "
|
6307
|
+
name: "Number"
|
6334
6308
|
}
|
6335
6309
|
},
|
6336
|
-
|
6337
|
-
serializedName: "
|
6310
|
+
recordingContentType: {
|
6311
|
+
serializedName: "recordingContentType",
|
6338
6312
|
required: true,
|
6339
6313
|
type: {
|
6340
|
-
name: "
|
6314
|
+
name: "String"
|
6341
6315
|
}
|
6342
6316
|
},
|
6343
|
-
|
6344
|
-
serializedName: "
|
6317
|
+
recordingChannelType: {
|
6318
|
+
serializedName: "recordingChannelType",
|
6345
6319
|
required: true,
|
6346
6320
|
type: {
|
6347
|
-
name: "
|
6321
|
+
name: "String"
|
6348
6322
|
}
|
6349
6323
|
},
|
6350
|
-
|
6351
|
-
serializedName: "
|
6324
|
+
recordingFormatType: {
|
6325
|
+
serializedName: "recordingFormatType",
|
6352
6326
|
required: true,
|
6353
6327
|
type: {
|
6354
6328
|
name: "String"
|
6355
6329
|
}
|
6356
6330
|
},
|
6357
|
-
|
6358
|
-
serializedName: "
|
6331
|
+
sessionEndReason: {
|
6332
|
+
serializedName: "sessionEndReason",
|
6359
6333
|
required: true,
|
6360
6334
|
type: {
|
6361
6335
|
name: "String"
|
@@ -6364,157 +6338,119 @@ const AcsRouterWorkerSelector = {
|
|
6364
6338
|
}
|
6365
6339
|
}
|
6366
6340
|
};
|
6367
|
-
const
|
6341
|
+
const AcsRecordingStorageInfo = {
|
6368
6342
|
type: {
|
6369
6343
|
name: "Composite",
|
6370
|
-
className: "
|
6344
|
+
className: "AcsRecordingStorageInfo",
|
6371
6345
|
modelProperties: {
|
6372
|
-
|
6373
|
-
serializedName: "
|
6346
|
+
recordingChunks: {
|
6347
|
+
serializedName: "recordingChunks",
|
6374
6348
|
required: true,
|
6375
6349
|
type: {
|
6376
|
-
name: "
|
6350
|
+
name: "Sequence",
|
6351
|
+
element: {
|
6352
|
+
type: {
|
6353
|
+
name: "Composite",
|
6354
|
+
className: "AcsRecordingChunkInfo"
|
6355
|
+
}
|
6356
|
+
}
|
6377
6357
|
}
|
6378
6358
|
}
|
6379
6359
|
}
|
6380
6360
|
}
|
6381
6361
|
};
|
6382
|
-
const
|
6362
|
+
const AcsRecordingChunkInfo = {
|
6383
6363
|
type: {
|
6384
6364
|
name: "Composite",
|
6385
|
-
className: "
|
6365
|
+
className: "AcsRecordingChunkInfo",
|
6386
6366
|
modelProperties: {
|
6387
|
-
|
6388
|
-
serializedName: "
|
6367
|
+
documentId: {
|
6368
|
+
serializedName: "documentId",
|
6389
6369
|
required: true,
|
6390
6370
|
type: {
|
6391
6371
|
name: "String"
|
6392
6372
|
}
|
6393
6373
|
},
|
6394
|
-
|
6395
|
-
serializedName: "
|
6374
|
+
index: {
|
6375
|
+
serializedName: "index",
|
6396
6376
|
required: true,
|
6397
6377
|
type: {
|
6398
|
-
name: "
|
6399
|
-
element: {
|
6400
|
-
type: {
|
6401
|
-
name: "Composite",
|
6402
|
-
className: "AcsRouterQueueDetails"
|
6403
|
-
}
|
6404
|
-
}
|
6378
|
+
name: "Number"
|
6405
6379
|
}
|
6406
6380
|
},
|
6407
|
-
|
6408
|
-
serializedName: "
|
6381
|
+
endReason: {
|
6382
|
+
serializedName: "endReason",
|
6409
6383
|
required: true,
|
6410
6384
|
type: {
|
6411
|
-
name: "
|
6412
|
-
element: {
|
6413
|
-
type: {
|
6414
|
-
name: "Composite",
|
6415
|
-
className: "AcsRouterChannelConfiguration"
|
6416
|
-
}
|
6417
|
-
}
|
6385
|
+
name: "String"
|
6418
6386
|
}
|
6419
6387
|
},
|
6420
|
-
|
6421
|
-
serializedName: "
|
6388
|
+
metadataLocation: {
|
6389
|
+
serializedName: "metadataLocation",
|
6422
6390
|
required: true,
|
6423
6391
|
type: {
|
6424
|
-
name: "
|
6392
|
+
name: "String"
|
6425
6393
|
}
|
6426
6394
|
},
|
6427
|
-
|
6428
|
-
serializedName: "
|
6395
|
+
contentLocation: {
|
6396
|
+
serializedName: "contentLocation",
|
6429
6397
|
required: true,
|
6430
6398
|
type: {
|
6431
|
-
name: "
|
6432
|
-
value: { type: { name: "String" } }
|
6399
|
+
name: "String"
|
6433
6400
|
}
|
6434
6401
|
},
|
6435
|
-
|
6436
|
-
serializedName: "
|
6402
|
+
deleteLocation: {
|
6403
|
+
serializedName: "deleteLocation",
|
6437
6404
|
required: true,
|
6438
6405
|
type: {
|
6439
|
-
name: "
|
6440
|
-
value: { type: { name: "String" } }
|
6406
|
+
name: "String"
|
6441
6407
|
}
|
6442
6408
|
}
|
6443
6409
|
}
|
6444
6410
|
}
|
6445
6411
|
};
|
6446
|
-
const
|
6412
|
+
const AcsEmailDeliveryReportReceivedEventData = {
|
6447
6413
|
type: {
|
6448
6414
|
name: "Composite",
|
6449
|
-
className: "
|
6415
|
+
className: "AcsEmailDeliveryReportReceivedEventData",
|
6450
6416
|
modelProperties: {
|
6451
|
-
|
6452
|
-
serializedName: "
|
6417
|
+
sender: {
|
6418
|
+
serializedName: "sender",
|
6453
6419
|
required: true,
|
6454
6420
|
type: {
|
6455
6421
|
name: "String"
|
6456
6422
|
}
|
6457
6423
|
},
|
6458
|
-
|
6459
|
-
serializedName: "
|
6424
|
+
recipient: {
|
6425
|
+
serializedName: "recipient",
|
6460
6426
|
required: true,
|
6461
6427
|
type: {
|
6462
|
-
name: "
|
6428
|
+
name: "String"
|
6463
6429
|
}
|
6464
6430
|
},
|
6465
|
-
|
6466
|
-
serializedName: "
|
6431
|
+
messageId: {
|
6432
|
+
serializedName: "messageId",
|
6467
6433
|
required: true,
|
6468
6434
|
type: {
|
6469
|
-
name: "
|
6470
|
-
}
|
6471
|
-
}
|
6472
|
-
}
|
6473
|
-
}
|
6474
|
-
};
|
6475
|
-
const AcsChatEventBase = {
|
6476
|
-
type: {
|
6477
|
-
name: "Composite",
|
6478
|
-
className: "AcsChatEventBase",
|
6479
|
-
modelProperties: {
|
6480
|
-
recipientCommunicationIdentifier: {
|
6481
|
-
serializedName: "recipientCommunicationIdentifier",
|
6482
|
-
type: {
|
6483
|
-
name: "Composite",
|
6484
|
-
className: "CommunicationIdentifierModel"
|
6435
|
+
name: "String"
|
6485
6436
|
}
|
6486
6437
|
},
|
6487
|
-
|
6488
|
-
serializedName: "
|
6438
|
+
status: {
|
6439
|
+
serializedName: "status",
|
6489
6440
|
required: true,
|
6490
6441
|
type: {
|
6491
6442
|
name: "String"
|
6492
6443
|
}
|
6493
6444
|
},
|
6494
|
-
|
6495
|
-
serializedName: "
|
6496
|
-
required: true,
|
6445
|
+
deliveryStatusDetails: {
|
6446
|
+
serializedName: "deliveryStatusDetails",
|
6497
6447
|
type: {
|
6498
|
-
name: "
|
6499
|
-
|
6500
|
-
}
|
6501
|
-
}
|
6502
|
-
}
|
6503
|
-
};
|
6504
|
-
const AcsChatEventInThreadBase = {
|
6505
|
-
type: {
|
6506
|
-
name: "Composite",
|
6507
|
-
className: "AcsChatEventInThreadBase",
|
6508
|
-
modelProperties: {
|
6509
|
-
transactionId: {
|
6510
|
-
serializedName: "transactionId",
|
6511
|
-
required: true,
|
6512
|
-
type: {
|
6513
|
-
name: "String"
|
6448
|
+
name: "Composite",
|
6449
|
+
className: "AcsEmailDeliveryReportStatusDetails"
|
6514
6450
|
}
|
6515
6451
|
},
|
6516
|
-
|
6517
|
-
serializedName: "
|
6452
|
+
deliveryAttemptTimestamp: {
|
6453
|
+
serializedName: "deliveryAttemptTimeStamp",
|
6518
6454
|
required: true,
|
6519
6455
|
type: {
|
6520
6456
|
name: "String"
|
@@ -6523,86 +6459,63 @@ const AcsChatEventInThreadBase = {
|
|
6523
6459
|
}
|
6524
6460
|
}
|
6525
6461
|
};
|
6526
|
-
const
|
6462
|
+
const AcsEmailDeliveryReportStatusDetails = {
|
6527
6463
|
type: {
|
6528
6464
|
name: "Composite",
|
6529
|
-
className: "
|
6465
|
+
className: "AcsEmailDeliveryReportStatusDetails",
|
6530
6466
|
modelProperties: {
|
6531
|
-
|
6532
|
-
serializedName: "
|
6467
|
+
statusMessage: {
|
6468
|
+
serializedName: "statusMessage",
|
6533
6469
|
required: true,
|
6534
6470
|
type: {
|
6535
6471
|
name: "String"
|
6536
6472
|
}
|
6537
|
-
},
|
6538
|
-
participantCommunicationIdentifier: {
|
6539
|
-
serializedName: "participantCommunicationIdentifier",
|
6540
|
-
type: {
|
6541
|
-
name: "Composite",
|
6542
|
-
className: "CommunicationIdentifierModel"
|
6543
|
-
}
|
6544
|
-
},
|
6545
|
-
metadata: {
|
6546
|
-
serializedName: "metadata",
|
6547
|
-
required: true,
|
6548
|
-
type: {
|
6549
|
-
name: "Dictionary",
|
6550
|
-
value: { type: { name: "String" } }
|
6551
|
-
}
|
6552
6473
|
}
|
6553
6474
|
}
|
6554
6475
|
}
|
6555
6476
|
};
|
6556
|
-
const
|
6477
|
+
const AcsEmailEngagementTrackingReportReceivedEventData = {
|
6557
6478
|
type: {
|
6558
6479
|
name: "Composite",
|
6559
|
-
className: "
|
6480
|
+
className: "AcsEmailEngagementTrackingReportReceivedEventData",
|
6560
6481
|
modelProperties: {
|
6561
|
-
|
6562
|
-
serializedName: "
|
6482
|
+
sender: {
|
6483
|
+
serializedName: "sender",
|
6563
6484
|
required: true,
|
6564
6485
|
type: {
|
6565
6486
|
name: "String"
|
6566
6487
|
}
|
6567
6488
|
},
|
6568
|
-
|
6569
|
-
serializedName: "
|
6489
|
+
messageId: {
|
6490
|
+
serializedName: "messageId",
|
6570
6491
|
required: true,
|
6571
6492
|
type: {
|
6572
|
-
name: "
|
6493
|
+
name: "String"
|
6573
6494
|
}
|
6574
6495
|
},
|
6575
|
-
|
6576
|
-
serializedName: "
|
6496
|
+
userActionTimestamp: {
|
6497
|
+
serializedName: "userActionTimeStamp",
|
6577
6498
|
required: true,
|
6578
6499
|
type: {
|
6579
|
-
name: "
|
6500
|
+
name: "String"
|
6580
6501
|
}
|
6581
|
-
}
|
6582
|
-
|
6583
|
-
|
6584
|
-
};
|
6585
|
-
const AcsSmsEventBase = {
|
6586
|
-
type: {
|
6587
|
-
name: "Composite",
|
6588
|
-
className: "AcsSmsEventBase",
|
6589
|
-
modelProperties: {
|
6590
|
-
messageId: {
|
6591
|
-
serializedName: "messageId",
|
6502
|
+
},
|
6503
|
+
engagementContext: {
|
6504
|
+
serializedName: "engagementContext",
|
6592
6505
|
required: true,
|
6593
6506
|
type: {
|
6594
6507
|
name: "String"
|
6595
6508
|
}
|
6596
6509
|
},
|
6597
|
-
|
6598
|
-
serializedName: "
|
6510
|
+
userAgent: {
|
6511
|
+
serializedName: "userAgent",
|
6599
6512
|
required: true,
|
6600
6513
|
type: {
|
6601
6514
|
name: "String"
|
6602
6515
|
}
|
6603
6516
|
},
|
6604
|
-
|
6605
|
-
serializedName: "
|
6517
|
+
engagement: {
|
6518
|
+
serializedName: "engagementType",
|
6606
6519
|
required: true,
|
6607
6520
|
type: {
|
6608
6521
|
name: "String"
|
@@ -6611,55 +6524,55 @@ const AcsSmsEventBase = {
|
|
6611
6524
|
}
|
6612
6525
|
}
|
6613
6526
|
};
|
6614
|
-
const
|
6527
|
+
const PolicyInsightsPolicyStateCreatedEventData = {
|
6615
6528
|
type: {
|
6616
6529
|
name: "Composite",
|
6617
|
-
className: "
|
6530
|
+
className: "PolicyInsightsPolicyStateCreatedEventData",
|
6618
6531
|
modelProperties: {
|
6619
|
-
|
6620
|
-
serializedName: "
|
6532
|
+
timestamp: {
|
6533
|
+
serializedName: "timestamp",
|
6534
|
+
required: true,
|
6621
6535
|
type: {
|
6622
|
-
name: "
|
6623
|
-
className: "AcsRecordingStorageInfo"
|
6536
|
+
name: "String"
|
6624
6537
|
}
|
6625
6538
|
},
|
6626
|
-
|
6627
|
-
serializedName: "
|
6539
|
+
policyAssignmentId: {
|
6540
|
+
serializedName: "policyAssignmentId",
|
6628
6541
|
required: true,
|
6629
6542
|
type: {
|
6630
6543
|
name: "String"
|
6631
6544
|
}
|
6632
6545
|
},
|
6633
|
-
|
6634
|
-
serializedName: "
|
6546
|
+
policyDefinitionId: {
|
6547
|
+
serializedName: "policyDefinitionId",
|
6635
6548
|
required: true,
|
6636
6549
|
type: {
|
6637
|
-
name: "
|
6550
|
+
name: "String"
|
6638
6551
|
}
|
6639
6552
|
},
|
6640
|
-
|
6641
|
-
serializedName: "
|
6553
|
+
policyDefinitionReferenceId: {
|
6554
|
+
serializedName: "policyDefinitionReferenceId",
|
6642
6555
|
required: true,
|
6643
6556
|
type: {
|
6644
6557
|
name: "String"
|
6645
6558
|
}
|
6646
6559
|
},
|
6647
|
-
|
6648
|
-
serializedName: "
|
6560
|
+
complianceState: {
|
6561
|
+
serializedName: "complianceState",
|
6649
6562
|
required: true,
|
6650
6563
|
type: {
|
6651
6564
|
name: "String"
|
6652
6565
|
}
|
6653
6566
|
},
|
6654
|
-
|
6655
|
-
serializedName: "
|
6567
|
+
subscriptionId: {
|
6568
|
+
serializedName: "subscriptionId",
|
6656
6569
|
required: true,
|
6657
6570
|
type: {
|
6658
6571
|
name: "String"
|
6659
6572
|
}
|
6660
6573
|
},
|
6661
|
-
|
6662
|
-
serializedName: "
|
6574
|
+
complianceReasonCode: {
|
6575
|
+
serializedName: "complianceReasonCode",
|
6663
6576
|
required: true,
|
6664
6577
|
type: {
|
6665
6578
|
name: "String"
|
@@ -6668,69 +6581,55 @@ const AcsRecordingFileStatusUpdatedEventData = {
|
|
6668
6581
|
}
|
6669
6582
|
}
|
6670
6583
|
};
|
6671
|
-
const
|
6584
|
+
const PolicyInsightsPolicyStateChangedEventData = {
|
6672
6585
|
type: {
|
6673
6586
|
name: "Composite",
|
6674
|
-
className: "
|
6587
|
+
className: "PolicyInsightsPolicyStateChangedEventData",
|
6675
6588
|
modelProperties: {
|
6676
|
-
|
6677
|
-
serializedName: "
|
6589
|
+
timestamp: {
|
6590
|
+
serializedName: "timestamp",
|
6678
6591
|
required: true,
|
6679
6592
|
type: {
|
6680
|
-
name: "
|
6681
|
-
element: {
|
6682
|
-
type: {
|
6683
|
-
name: "Composite",
|
6684
|
-
className: "AcsRecordingChunkInfo"
|
6685
|
-
}
|
6686
|
-
}
|
6593
|
+
name: "String"
|
6687
6594
|
}
|
6688
|
-
}
|
6689
|
-
|
6690
|
-
|
6691
|
-
};
|
6692
|
-
const AcsRecordingChunkInfo = {
|
6693
|
-
type: {
|
6694
|
-
name: "Composite",
|
6695
|
-
className: "AcsRecordingChunkInfo",
|
6696
|
-
modelProperties: {
|
6697
|
-
documentId: {
|
6698
|
-
serializedName: "documentId",
|
6595
|
+
},
|
6596
|
+
policyAssignmentId: {
|
6597
|
+
serializedName: "policyAssignmentId",
|
6699
6598
|
required: true,
|
6700
6599
|
type: {
|
6701
6600
|
name: "String"
|
6702
6601
|
}
|
6703
6602
|
},
|
6704
|
-
|
6705
|
-
serializedName: "
|
6603
|
+
policyDefinitionId: {
|
6604
|
+
serializedName: "policyDefinitionId",
|
6706
6605
|
required: true,
|
6707
6606
|
type: {
|
6708
|
-
name: "
|
6607
|
+
name: "String"
|
6709
6608
|
}
|
6710
6609
|
},
|
6711
|
-
|
6712
|
-
serializedName: "
|
6610
|
+
policyDefinitionReferenceId: {
|
6611
|
+
serializedName: "policyDefinitionReferenceId",
|
6713
6612
|
required: true,
|
6714
6613
|
type: {
|
6715
6614
|
name: "String"
|
6716
6615
|
}
|
6717
6616
|
},
|
6718
|
-
|
6719
|
-
serializedName: "
|
6617
|
+
complianceState: {
|
6618
|
+
serializedName: "complianceState",
|
6720
6619
|
required: true,
|
6721
6620
|
type: {
|
6722
6621
|
name: "String"
|
6723
6622
|
}
|
6724
6623
|
},
|
6725
|
-
|
6726
|
-
serializedName: "
|
6624
|
+
subscriptionId: {
|
6625
|
+
serializedName: "subscriptionId",
|
6727
6626
|
required: true,
|
6728
6627
|
type: {
|
6729
6628
|
name: "String"
|
6730
6629
|
}
|
6731
6630
|
},
|
6732
|
-
|
6733
|
-
serializedName: "
|
6631
|
+
complianceReasonCode: {
|
6632
|
+
serializedName: "complianceReasonCode",
|
6734
6633
|
required: true,
|
6735
6634
|
type: {
|
6736
6635
|
name: "String"
|
@@ -6739,63 +6638,55 @@ const AcsRecordingChunkInfo = {
|
|
6739
6638
|
}
|
6740
6639
|
}
|
6741
6640
|
};
|
6742
|
-
const
|
6641
|
+
const PolicyInsightsPolicyStateDeletedEventData = {
|
6743
6642
|
type: {
|
6744
6643
|
name: "Composite",
|
6745
|
-
className: "
|
6644
|
+
className: "PolicyInsightsPolicyStateDeletedEventData",
|
6746
6645
|
modelProperties: {
|
6747
|
-
|
6748
|
-
serializedName: "
|
6646
|
+
timestamp: {
|
6647
|
+
serializedName: "timestamp",
|
6749
6648
|
required: true,
|
6750
6649
|
type: {
|
6751
6650
|
name: "String"
|
6752
6651
|
}
|
6753
6652
|
},
|
6754
|
-
|
6755
|
-
serializedName: "
|
6653
|
+
policyAssignmentId: {
|
6654
|
+
serializedName: "policyAssignmentId",
|
6756
6655
|
required: true,
|
6757
6656
|
type: {
|
6758
6657
|
name: "String"
|
6759
6658
|
}
|
6760
6659
|
},
|
6761
|
-
|
6762
|
-
serializedName: "
|
6660
|
+
policyDefinitionId: {
|
6661
|
+
serializedName: "policyDefinitionId",
|
6763
6662
|
required: true,
|
6764
6663
|
type: {
|
6765
6664
|
name: "String"
|
6766
6665
|
}
|
6767
6666
|
},
|
6768
|
-
|
6769
|
-
serializedName: "
|
6667
|
+
policyDefinitionReferenceId: {
|
6668
|
+
serializedName: "policyDefinitionReferenceId",
|
6770
6669
|
required: true,
|
6771
6670
|
type: {
|
6772
6671
|
name: "String"
|
6773
6672
|
}
|
6774
6673
|
},
|
6775
|
-
|
6776
|
-
serializedName: "
|
6674
|
+
complianceState: {
|
6675
|
+
serializedName: "complianceState",
|
6676
|
+
required: true,
|
6777
6677
|
type: {
|
6778
|
-
name: "
|
6779
|
-
className: "AcsEmailDeliveryReportStatusDetails"
|
6678
|
+
name: "String"
|
6780
6679
|
}
|
6781
6680
|
},
|
6782
|
-
|
6783
|
-
serializedName: "
|
6681
|
+
subscriptionId: {
|
6682
|
+
serializedName: "subscriptionId",
|
6784
6683
|
required: true,
|
6785
6684
|
type: {
|
6786
6685
|
name: "String"
|
6787
6686
|
}
|
6788
|
-
}
|
6789
|
-
|
6790
|
-
|
6791
|
-
};
|
6792
|
-
const AcsEmailDeliveryReportStatusDetails = {
|
6793
|
-
type: {
|
6794
|
-
name: "Composite",
|
6795
|
-
className: "AcsEmailDeliveryReportStatusDetails",
|
6796
|
-
modelProperties: {
|
6797
|
-
statusMessage: {
|
6798
|
-
serializedName: "statusMessage",
|
6687
|
+
},
|
6688
|
+
complianceReasonCode: {
|
6689
|
+
serializedName: "complianceReasonCode",
|
6799
6690
|
required: true,
|
6800
6691
|
type: {
|
6801
6692
|
name: "String"
|
@@ -6804,307 +6695,49 @@ const AcsEmailDeliveryReportStatusDetails = {
|
|
6804
6695
|
}
|
6805
6696
|
}
|
6806
6697
|
};
|
6807
|
-
const
|
6698
|
+
const ContainerServiceNewKubernetesVersionAvailableEventData = {
|
6808
6699
|
type: {
|
6809
6700
|
name: "Composite",
|
6810
|
-
className: "
|
6701
|
+
className: "ContainerServiceNewKubernetesVersionAvailableEventData",
|
6811
6702
|
modelProperties: {
|
6812
|
-
|
6813
|
-
serializedName: "
|
6703
|
+
latestSupportedKubernetesVersion: {
|
6704
|
+
serializedName: "latestSupportedKubernetesVersion",
|
6814
6705
|
required: true,
|
6815
6706
|
type: {
|
6816
6707
|
name: "String"
|
6817
6708
|
}
|
6818
6709
|
},
|
6819
|
-
|
6820
|
-
serializedName: "
|
6710
|
+
latestStableKubernetesVersion: {
|
6711
|
+
serializedName: "latestStableKubernetesVersion",
|
6821
6712
|
required: true,
|
6822
6713
|
type: {
|
6823
6714
|
name: "String"
|
6824
6715
|
}
|
6825
6716
|
},
|
6826
|
-
|
6827
|
-
serializedName: "
|
6717
|
+
lowestMinorKubernetesVersion: {
|
6718
|
+
serializedName: "lowestMinorKubernetesVersion",
|
6828
6719
|
required: true,
|
6829
6720
|
type: {
|
6830
6721
|
name: "String"
|
6831
6722
|
}
|
6832
6723
|
},
|
6833
|
-
|
6834
|
-
serializedName: "
|
6724
|
+
latestPreviewKubernetesVersion: {
|
6725
|
+
serializedName: "latestPreviewKubernetesVersion",
|
6835
6726
|
required: true,
|
6836
6727
|
type: {
|
6837
6728
|
name: "String"
|
6838
6729
|
}
|
6839
|
-
}
|
6840
|
-
|
6841
|
-
|
6842
|
-
|
6843
|
-
|
6844
|
-
|
6845
|
-
|
6846
|
-
|
6847
|
-
|
6848
|
-
|
6849
|
-
|
6850
|
-
type: {
|
6851
|
-
name: "String"
|
6852
|
-
}
|
6853
|
-
},
|
6854
|
-
engagement: {
|
6855
|
-
serializedName: "engagementType",
|
6856
|
-
required: true,
|
6857
|
-
type: {
|
6858
|
-
name: "String"
|
6859
|
-
}
|
6860
|
-
}
|
6861
|
-
}
|
6862
|
-
}
|
6863
|
-
};
|
6864
|
-
const PolicyInsightsPolicyStateCreatedEventData = {
|
6865
|
-
type: {
|
6866
|
-
name: "Composite",
|
6867
|
-
className: "PolicyInsightsPolicyStateCreatedEventData",
|
6868
|
-
modelProperties: {
|
6869
|
-
timestamp: {
|
6870
|
-
serializedName: "timestamp",
|
6871
|
-
required: true,
|
6872
|
-
type: {
|
6873
|
-
name: "String"
|
6874
|
-
}
|
6875
|
-
},
|
6876
|
-
policyAssignmentId: {
|
6877
|
-
serializedName: "policyAssignmentId",
|
6878
|
-
required: true,
|
6879
|
-
type: {
|
6880
|
-
name: "String"
|
6881
|
-
}
|
6882
|
-
},
|
6883
|
-
policyDefinitionId: {
|
6884
|
-
serializedName: "policyDefinitionId",
|
6885
|
-
required: true,
|
6886
|
-
type: {
|
6887
|
-
name: "String"
|
6888
|
-
}
|
6889
|
-
},
|
6890
|
-
policyDefinitionReferenceId: {
|
6891
|
-
serializedName: "policyDefinitionReferenceId",
|
6892
|
-
required: true,
|
6893
|
-
type: {
|
6894
|
-
name: "String"
|
6895
|
-
}
|
6896
|
-
},
|
6897
|
-
complianceState: {
|
6898
|
-
serializedName: "complianceState",
|
6899
|
-
required: true,
|
6900
|
-
type: {
|
6901
|
-
name: "String"
|
6902
|
-
}
|
6903
|
-
},
|
6904
|
-
subscriptionId: {
|
6905
|
-
serializedName: "subscriptionId",
|
6906
|
-
required: true,
|
6907
|
-
type: {
|
6908
|
-
name: "String"
|
6909
|
-
}
|
6910
|
-
},
|
6911
|
-
complianceReasonCode: {
|
6912
|
-
serializedName: "complianceReasonCode",
|
6913
|
-
required: true,
|
6914
|
-
type: {
|
6915
|
-
name: "String"
|
6916
|
-
}
|
6917
|
-
}
|
6918
|
-
}
|
6919
|
-
}
|
6920
|
-
};
|
6921
|
-
const PolicyInsightsPolicyStateChangedEventData = {
|
6922
|
-
type: {
|
6923
|
-
name: "Composite",
|
6924
|
-
className: "PolicyInsightsPolicyStateChangedEventData",
|
6925
|
-
modelProperties: {
|
6926
|
-
timestamp: {
|
6927
|
-
serializedName: "timestamp",
|
6928
|
-
required: true,
|
6929
|
-
type: {
|
6930
|
-
name: "String"
|
6931
|
-
}
|
6932
|
-
},
|
6933
|
-
policyAssignmentId: {
|
6934
|
-
serializedName: "policyAssignmentId",
|
6935
|
-
required: true,
|
6936
|
-
type: {
|
6937
|
-
name: "String"
|
6938
|
-
}
|
6939
|
-
},
|
6940
|
-
policyDefinitionId: {
|
6941
|
-
serializedName: "policyDefinitionId",
|
6942
|
-
required: true,
|
6943
|
-
type: {
|
6944
|
-
name: "String"
|
6945
|
-
}
|
6946
|
-
},
|
6947
|
-
policyDefinitionReferenceId: {
|
6948
|
-
serializedName: "policyDefinitionReferenceId",
|
6949
|
-
required: true,
|
6950
|
-
type: {
|
6951
|
-
name: "String"
|
6952
|
-
}
|
6953
|
-
},
|
6954
|
-
complianceState: {
|
6955
|
-
serializedName: "complianceState",
|
6956
|
-
required: true,
|
6957
|
-
type: {
|
6958
|
-
name: "String"
|
6959
|
-
}
|
6960
|
-
},
|
6961
|
-
subscriptionId: {
|
6962
|
-
serializedName: "subscriptionId",
|
6963
|
-
required: true,
|
6964
|
-
type: {
|
6965
|
-
name: "String"
|
6966
|
-
}
|
6967
|
-
},
|
6968
|
-
complianceReasonCode: {
|
6969
|
-
serializedName: "complianceReasonCode",
|
6970
|
-
required: true,
|
6971
|
-
type: {
|
6972
|
-
name: "String"
|
6973
|
-
}
|
6974
|
-
}
|
6975
|
-
}
|
6976
|
-
}
|
6977
|
-
};
|
6978
|
-
const PolicyInsightsPolicyStateDeletedEventData = {
|
6979
|
-
type: {
|
6980
|
-
name: "Composite",
|
6981
|
-
className: "PolicyInsightsPolicyStateDeletedEventData",
|
6982
|
-
modelProperties: {
|
6983
|
-
timestamp: {
|
6984
|
-
serializedName: "timestamp",
|
6985
|
-
required: true,
|
6986
|
-
type: {
|
6987
|
-
name: "String"
|
6988
|
-
}
|
6989
|
-
},
|
6990
|
-
policyAssignmentId: {
|
6991
|
-
serializedName: "policyAssignmentId",
|
6992
|
-
required: true,
|
6993
|
-
type: {
|
6994
|
-
name: "String"
|
6995
|
-
}
|
6996
|
-
},
|
6997
|
-
policyDefinitionId: {
|
6998
|
-
serializedName: "policyDefinitionId",
|
6999
|
-
required: true,
|
7000
|
-
type: {
|
7001
|
-
name: "String"
|
7002
|
-
}
|
7003
|
-
},
|
7004
|
-
policyDefinitionReferenceId: {
|
7005
|
-
serializedName: "policyDefinitionReferenceId",
|
7006
|
-
required: true,
|
7007
|
-
type: {
|
7008
|
-
name: "String"
|
7009
|
-
}
|
7010
|
-
},
|
7011
|
-
complianceState: {
|
7012
|
-
serializedName: "complianceState",
|
7013
|
-
required: true,
|
7014
|
-
type: {
|
7015
|
-
name: "String"
|
7016
|
-
}
|
7017
|
-
},
|
7018
|
-
subscriptionId: {
|
7019
|
-
serializedName: "subscriptionId",
|
7020
|
-
required: true,
|
7021
|
-
type: {
|
7022
|
-
name: "String"
|
7023
|
-
}
|
7024
|
-
},
|
7025
|
-
complianceReasonCode: {
|
7026
|
-
serializedName: "complianceReasonCode",
|
7027
|
-
required: true,
|
7028
|
-
type: {
|
7029
|
-
name: "String"
|
7030
|
-
}
|
7031
|
-
}
|
7032
|
-
}
|
7033
|
-
}
|
7034
|
-
};
|
7035
|
-
const ContainerServiceNewKubernetesVersionAvailableEventData = {
|
7036
|
-
type: {
|
7037
|
-
name: "Composite",
|
7038
|
-
className: "ContainerServiceNewKubernetesVersionAvailableEventData",
|
7039
|
-
modelProperties: {
|
7040
|
-
latestSupportedKubernetesVersion: {
|
7041
|
-
serializedName: "latestSupportedKubernetesVersion",
|
7042
|
-
required: true,
|
7043
|
-
type: {
|
7044
|
-
name: "String"
|
7045
|
-
}
|
7046
|
-
},
|
7047
|
-
latestStableKubernetesVersion: {
|
7048
|
-
serializedName: "latestStableKubernetesVersion",
|
7049
|
-
required: true,
|
7050
|
-
type: {
|
7051
|
-
name: "String"
|
7052
|
-
}
|
7053
|
-
},
|
7054
|
-
lowestMinorKubernetesVersion: {
|
7055
|
-
serializedName: "lowestMinorKubernetesVersion",
|
7056
|
-
required: true,
|
7057
|
-
type: {
|
7058
|
-
name: "String"
|
7059
|
-
}
|
7060
|
-
},
|
7061
|
-
latestPreviewKubernetesVersion: {
|
7062
|
-
serializedName: "latestPreviewKubernetesVersion",
|
7063
|
-
required: true,
|
7064
|
-
type: {
|
7065
|
-
name: "String"
|
7066
|
-
}
|
7067
|
-
}
|
7068
|
-
}
|
7069
|
-
}
|
7070
|
-
};
|
7071
|
-
const ContainerServiceClusterSupportEventData = {
|
7072
|
-
type: {
|
7073
|
-
name: "Composite",
|
7074
|
-
className: "ContainerServiceClusterSupportEventData",
|
7075
|
-
modelProperties: {
|
7076
|
-
kubernetesVersion: {
|
7077
|
-
serializedName: "kubernetesVersion",
|
7078
|
-
required: true,
|
7079
|
-
type: {
|
7080
|
-
name: "String"
|
7081
|
-
}
|
7082
|
-
}
|
7083
|
-
}
|
7084
|
-
}
|
7085
|
-
};
|
7086
|
-
const ContainerServiceNodePoolRollingEventData = {
|
7087
|
-
type: {
|
7088
|
-
name: "Composite",
|
7089
|
-
className: "ContainerServiceNodePoolRollingEventData",
|
7090
|
-
modelProperties: {
|
7091
|
-
nodePoolName: {
|
7092
|
-
serializedName: "nodePoolName",
|
7093
|
-
required: true,
|
7094
|
-
type: {
|
7095
|
-
name: "String"
|
7096
|
-
}
|
7097
|
-
}
|
7098
|
-
}
|
7099
|
-
}
|
7100
|
-
};
|
7101
|
-
const ApiManagementUserCreatedEventData = {
|
7102
|
-
type: {
|
7103
|
-
name: "Composite",
|
7104
|
-
className: "ApiManagementUserCreatedEventData",
|
7105
|
-
modelProperties: {
|
7106
|
-
resourceUri: {
|
7107
|
-
serializedName: "resourceUri",
|
6730
|
+
}
|
6731
|
+
}
|
6732
|
+
}
|
6733
|
+
};
|
6734
|
+
const ApiManagementUserCreatedEventData = {
|
6735
|
+
type: {
|
6736
|
+
name: "Composite",
|
6737
|
+
className: "ApiManagementUserCreatedEventData",
|
6738
|
+
modelProperties: {
|
6739
|
+
resourceUri: {
|
6740
|
+
serializedName: "resourceUri",
|
7108
6741
|
required: true,
|
7109
6742
|
type: {
|
7110
6743
|
name: "String"
|
@@ -7746,236 +7379,6 @@ const HealthcareDicomImageDeletedEventData = {
|
|
7746
7379
|
}
|
7747
7380
|
}
|
7748
7381
|
};
|
7749
|
-
const ResourceNotificationsResourceUpdatedDetails = {
|
7750
|
-
type: {
|
7751
|
-
name: "Composite",
|
7752
|
-
className: "ResourceNotificationsResourceUpdatedDetails",
|
7753
|
-
modelProperties: {
|
7754
|
-
id: {
|
7755
|
-
serializedName: "id",
|
7756
|
-
required: true,
|
7757
|
-
type: {
|
7758
|
-
name: "String"
|
7759
|
-
}
|
7760
|
-
},
|
7761
|
-
name: {
|
7762
|
-
serializedName: "name",
|
7763
|
-
required: true,
|
7764
|
-
type: {
|
7765
|
-
name: "String"
|
7766
|
-
}
|
7767
|
-
},
|
7768
|
-
type: {
|
7769
|
-
serializedName: "type",
|
7770
|
-
required: true,
|
7771
|
-
type: {
|
7772
|
-
name: "String"
|
7773
|
-
}
|
7774
|
-
},
|
7775
|
-
location: {
|
7776
|
-
serializedName: "location",
|
7777
|
-
required: true,
|
7778
|
-
type: {
|
7779
|
-
name: "String"
|
7780
|
-
}
|
7781
|
-
},
|
7782
|
-
tags: {
|
7783
|
-
serializedName: "tags",
|
7784
|
-
required: true,
|
7785
|
-
type: {
|
7786
|
-
name: "Dictionary",
|
7787
|
-
value: { type: { name: "String" } }
|
7788
|
-
}
|
7789
|
-
},
|
7790
|
-
properties: {
|
7791
|
-
serializedName: "properties",
|
7792
|
-
required: true,
|
7793
|
-
type: {
|
7794
|
-
name: "Dictionary",
|
7795
|
-
value: { type: { name: "any" } }
|
7796
|
-
}
|
7797
|
-
}
|
7798
|
-
}
|
7799
|
-
}
|
7800
|
-
};
|
7801
|
-
const ResourceNotificationsOperationalDetails = {
|
7802
|
-
type: {
|
7803
|
-
name: "Composite",
|
7804
|
-
className: "ResourceNotificationsOperationalDetails",
|
7805
|
-
modelProperties: {
|
7806
|
-
resourceEventTime: {
|
7807
|
-
serializedName: "resourceEventTime",
|
7808
|
-
required: true,
|
7809
|
-
type: {
|
7810
|
-
name: "String"
|
7811
|
-
}
|
7812
|
-
}
|
7813
|
-
}
|
7814
|
-
}
|
7815
|
-
};
|
7816
|
-
const ResourceNotificationsResourceUpdatedEventData = {
|
7817
|
-
type: {
|
7818
|
-
name: "Composite",
|
7819
|
-
className: "ResourceNotificationsResourceUpdatedEventData",
|
7820
|
-
modelProperties: {
|
7821
|
-
resourceDetails: {
|
7822
|
-
serializedName: "resourceInfo",
|
7823
|
-
type: {
|
7824
|
-
name: "Composite",
|
7825
|
-
className: "ResourceNotificationsResourceUpdatedDetails"
|
7826
|
-
}
|
7827
|
-
},
|
7828
|
-
operationalDetails: {
|
7829
|
-
serializedName: "operationalInfo",
|
7830
|
-
type: {
|
7831
|
-
name: "Composite",
|
7832
|
-
className: "ResourceNotificationsOperationalDetails"
|
7833
|
-
}
|
7834
|
-
},
|
7835
|
-
apiVersion: {
|
7836
|
-
serializedName: "apiVersion",
|
7837
|
-
required: true,
|
7838
|
-
type: {
|
7839
|
-
name: "String"
|
7840
|
-
}
|
7841
|
-
}
|
7842
|
-
}
|
7843
|
-
}
|
7844
|
-
};
|
7845
|
-
const ResourceNotificationsResourceDeletedDetails = {
|
7846
|
-
type: {
|
7847
|
-
name: "Composite",
|
7848
|
-
className: "ResourceNotificationsResourceDeletedDetails",
|
7849
|
-
modelProperties: {
|
7850
|
-
id: {
|
7851
|
-
serializedName: "id",
|
7852
|
-
required: true,
|
7853
|
-
type: {
|
7854
|
-
name: "String"
|
7855
|
-
}
|
7856
|
-
},
|
7857
|
-
name: {
|
7858
|
-
serializedName: "name",
|
7859
|
-
required: true,
|
7860
|
-
type: {
|
7861
|
-
name: "String"
|
7862
|
-
}
|
7863
|
-
},
|
7864
|
-
type: {
|
7865
|
-
serializedName: "type",
|
7866
|
-
required: true,
|
7867
|
-
type: {
|
7868
|
-
name: "String"
|
7869
|
-
}
|
7870
|
-
}
|
7871
|
-
}
|
7872
|
-
}
|
7873
|
-
};
|
7874
|
-
const ResourceNotificationsResourceDeletedEventData = {
|
7875
|
-
type: {
|
7876
|
-
name: "Composite",
|
7877
|
-
className: "ResourceNotificationsResourceDeletedEventData",
|
7878
|
-
modelProperties: {
|
7879
|
-
resourceDetails: {
|
7880
|
-
serializedName: "resourceInfo",
|
7881
|
-
type: {
|
7882
|
-
name: "Composite",
|
7883
|
-
className: "ResourceNotificationsResourceDeletedDetails"
|
7884
|
-
}
|
7885
|
-
},
|
7886
|
-
operationalDetails: {
|
7887
|
-
serializedName: "operationalInfo",
|
7888
|
-
type: {
|
7889
|
-
name: "Composite",
|
7890
|
-
className: "ResourceNotificationsOperationalDetails"
|
7891
|
-
}
|
7892
|
-
}
|
7893
|
-
}
|
7894
|
-
}
|
7895
|
-
};
|
7896
|
-
const EventGridMqttClientCreatedOrUpdatedEventData = {
|
7897
|
-
type: {
|
7898
|
-
name: "Composite",
|
7899
|
-
className: "EventGridMqttClientCreatedOrUpdatedEventData",
|
7900
|
-
modelProperties: Object.assign(Object.assign({}, EventGridMqttClientEventData.type.modelProperties), { state: {
|
7901
|
-
serializedName: "state",
|
7902
|
-
required: true,
|
7903
|
-
type: {
|
7904
|
-
name: "String"
|
7905
|
-
}
|
7906
|
-
}, createdOn: {
|
7907
|
-
serializedName: "createdOn",
|
7908
|
-
required: true,
|
7909
|
-
type: {
|
7910
|
-
name: "String"
|
7911
|
-
}
|
7912
|
-
}, updatedOn: {
|
7913
|
-
serializedName: "updatedOn",
|
7914
|
-
required: true,
|
7915
|
-
type: {
|
7916
|
-
name: "String"
|
7917
|
-
}
|
7918
|
-
}, attributes: {
|
7919
|
-
serializedName: "attributes",
|
7920
|
-
required: true,
|
7921
|
-
type: {
|
7922
|
-
name: "Dictionary",
|
7923
|
-
value: { type: { name: "String" } }
|
7924
|
-
}
|
7925
|
-
} })
|
7926
|
-
}
|
7927
|
-
};
|
7928
|
-
const EventGridMqttClientDeletedEventData = {
|
7929
|
-
type: {
|
7930
|
-
name: "Composite",
|
7931
|
-
className: "EventGridMqttClientDeletedEventData",
|
7932
|
-
modelProperties: Object.assign({}, EventGridMqttClientEventData.type.modelProperties)
|
7933
|
-
}
|
7934
|
-
};
|
7935
|
-
const EventGridMqttClientSessionConnectedEventData = {
|
7936
|
-
type: {
|
7937
|
-
name: "Composite",
|
7938
|
-
className: "EventGridMqttClientSessionConnectedEventData",
|
7939
|
-
modelProperties: Object.assign(Object.assign({}, EventGridMqttClientEventData.type.modelProperties), { clientSessionName: {
|
7940
|
-
serializedName: "clientSessionName",
|
7941
|
-
required: true,
|
7942
|
-
type: {
|
7943
|
-
name: "String"
|
7944
|
-
}
|
7945
|
-
}, sequenceNumber: {
|
7946
|
-
serializedName: "sequenceNumber",
|
7947
|
-
required: true,
|
7948
|
-
type: {
|
7949
|
-
name: "Number"
|
7950
|
-
}
|
7951
|
-
} })
|
7952
|
-
}
|
7953
|
-
};
|
7954
|
-
const EventGridMqttClientSessionDisconnectedEventData = {
|
7955
|
-
type: {
|
7956
|
-
name: "Composite",
|
7957
|
-
className: "EventGridMqttClientSessionDisconnectedEventData",
|
7958
|
-
modelProperties: Object.assign(Object.assign({}, EventGridMqttClientEventData.type.modelProperties), { clientSessionName: {
|
7959
|
-
serializedName: "clientSessionName",
|
7960
|
-
required: true,
|
7961
|
-
type: {
|
7962
|
-
name: "String"
|
7963
|
-
}
|
7964
|
-
}, sequenceNumber: {
|
7965
|
-
serializedName: "sequenceNumber",
|
7966
|
-
required: true,
|
7967
|
-
type: {
|
7968
|
-
name: "Number"
|
7969
|
-
}
|
7970
|
-
}, disconnectionReason: {
|
7971
|
-
serializedName: "disconnectionReason",
|
7972
|
-
required: true,
|
7973
|
-
type: {
|
7974
|
-
name: "String"
|
7975
|
-
}
|
7976
|
-
} })
|
7977
|
-
}
|
7978
|
-
};
|
7979
7382
|
const IotHubDeviceCreatedEventData = {
|
7980
7383
|
type: {
|
7981
7384
|
name: "Composite",
|
@@ -8208,60 +7611,6 @@ const MapsGeofenceResultEventData = {
|
|
8208
7611
|
modelProperties: Object.assign({}, MapsGeofenceEvent.type.modelProperties)
|
8209
7612
|
}
|
8210
7613
|
};
|
8211
|
-
const AppConfigurationSnapshotCreatedEventData = {
|
8212
|
-
type: {
|
8213
|
-
name: "Composite",
|
8214
|
-
className: "AppConfigurationSnapshotCreatedEventData",
|
8215
|
-
modelProperties: Object.assign({}, AppConfigurationSnapshotEventData.type.modelProperties)
|
8216
|
-
}
|
8217
|
-
};
|
8218
|
-
const AppConfigurationSnapshotModifiedEventData = {
|
8219
|
-
type: {
|
8220
|
-
name: "Composite",
|
8221
|
-
className: "AppConfigurationSnapshotModifiedEventData",
|
8222
|
-
modelProperties: Object.assign({}, AppConfigurationSnapshotEventData.type.modelProperties)
|
8223
|
-
}
|
8224
|
-
};
|
8225
|
-
const AcsRouterJobEventData = {
|
8226
|
-
type: {
|
8227
|
-
name: "Composite",
|
8228
|
-
className: "AcsRouterJobEventData",
|
8229
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterEventData.type.modelProperties), { queueId: {
|
8230
|
-
serializedName: "queueId",
|
8231
|
-
required: true,
|
8232
|
-
type: {
|
8233
|
-
name: "String"
|
8234
|
-
}
|
8235
|
-
}, labels: {
|
8236
|
-
serializedName: "labels",
|
8237
|
-
required: true,
|
8238
|
-
type: {
|
8239
|
-
name: "Dictionary",
|
8240
|
-
value: { type: { name: "String" } }
|
8241
|
-
}
|
8242
|
-
}, tags: {
|
8243
|
-
serializedName: "tags",
|
8244
|
-
required: true,
|
8245
|
-
type: {
|
8246
|
-
name: "Dictionary",
|
8247
|
-
value: { type: { name: "String" } }
|
8248
|
-
}
|
8249
|
-
} })
|
8250
|
-
}
|
8251
|
-
};
|
8252
|
-
const AcsRouterWorkerEventData = {
|
8253
|
-
type: {
|
8254
|
-
name: "Composite",
|
8255
|
-
className: "AcsRouterWorkerEventData",
|
8256
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterEventData.type.modelProperties), { workerId: {
|
8257
|
-
serializedName: "workerId",
|
8258
|
-
required: true,
|
8259
|
-
type: {
|
8260
|
-
name: "String"
|
8261
|
-
}
|
8262
|
-
} })
|
8263
|
-
}
|
8264
|
-
};
|
8265
7614
|
const AcsChatMessageEventBase = {
|
8266
7615
|
type: {
|
8267
7616
|
name: "Composite",
|
@@ -8409,727 +7758,100 @@ const AcsChatParticipantAddedToThreadEventData = {
|
|
8409
7758
|
className: "AcsChatThreadParticipant"
|
8410
7759
|
}
|
8411
7760
|
}, version: {
|
8412
|
-
serializedName: "version",
|
8413
|
-
required: true,
|
8414
|
-
type: {
|
8415
|
-
name: "Number"
|
8416
|
-
}
|
8417
|
-
} })
|
8418
|
-
}
|
8419
|
-
};
|
8420
|
-
const AcsChatParticipantRemovedFromThreadEventData = {
|
8421
|
-
type: {
|
8422
|
-
name: "Composite",
|
8423
|
-
className: "AcsChatParticipantRemovedFromThreadEventData",
|
8424
|
-
modelProperties: Object.assign(Object.assign({}, AcsChatEventInThreadBase.type.modelProperties), { time: {
|
8425
|
-
serializedName: "time",
|
8426
|
-
required: true,
|
8427
|
-
type: {
|
8428
|
-
name: "String"
|
8429
|
-
}
|
8430
|
-
}, removedByCommunicationIdentifier: {
|
8431
|
-
serializedName: "removedByCommunicationIdentifier",
|
8432
|
-
type: {
|
8433
|
-
name: "Composite",
|
8434
|
-
className: "CommunicationIdentifierModel"
|
8435
|
-
}
|
8436
|
-
}, participantRemoved: {
|
8437
|
-
serializedName: "participantRemoved",
|
8438
|
-
type: {
|
8439
|
-
name: "Composite",
|
8440
|
-
className: "AcsChatThreadParticipant"
|
8441
|
-
}
|
8442
|
-
}, version: {
|
8443
|
-
serializedName: "version",
|
8444
|
-
required: true,
|
8445
|
-
type: {
|
8446
|
-
name: "Number"
|
8447
|
-
}
|
8448
|
-
} })
|
8449
|
-
}
|
8450
|
-
};
|
8451
|
-
const AcsSmsDeliveryReportReceivedEventData = {
|
8452
|
-
type: {
|
8453
|
-
name: "Composite",
|
8454
|
-
className: "AcsSmsDeliveryReportReceivedEventData",
|
8455
|
-
modelProperties: Object.assign(Object.assign({}, AcsSmsEventBase.type.modelProperties), { deliveryStatus: {
|
8456
|
-
serializedName: "deliveryStatus",
|
8457
|
-
required: true,
|
8458
|
-
type: {
|
8459
|
-
name: "String"
|
8460
|
-
}
|
8461
|
-
}, deliveryStatusDetails: {
|
8462
|
-
serializedName: "deliveryStatusDetails",
|
8463
|
-
required: true,
|
8464
|
-
type: {
|
8465
|
-
name: "String"
|
8466
|
-
}
|
8467
|
-
}, deliveryAttempts: {
|
8468
|
-
serializedName: "deliveryAttempts",
|
8469
|
-
required: true,
|
8470
|
-
type: {
|
8471
|
-
name: "Sequence",
|
8472
|
-
element: {
|
8473
|
-
type: {
|
8474
|
-
name: "Composite",
|
8475
|
-
className: "AcsSmsDeliveryAttempt"
|
8476
|
-
}
|
8477
|
-
}
|
8478
|
-
}
|
8479
|
-
}, receivedTimestamp: {
|
8480
|
-
serializedName: "receivedTimestamp",
|
8481
|
-
required: true,
|
8482
|
-
type: {
|
8483
|
-
name: "String"
|
8484
|
-
}
|
8485
|
-
}, tag: {
|
8486
|
-
serializedName: "tag",
|
8487
|
-
required: true,
|
8488
|
-
type: {
|
8489
|
-
name: "String"
|
8490
|
-
}
|
8491
|
-
} })
|
8492
|
-
}
|
8493
|
-
};
|
8494
|
-
const AcsSmsReceivedEventData = {
|
8495
|
-
type: {
|
8496
|
-
name: "Composite",
|
8497
|
-
className: "AcsSmsReceivedEventData",
|
8498
|
-
modelProperties: Object.assign(Object.assign({}, AcsSmsEventBase.type.modelProperties), { message: {
|
8499
|
-
serializedName: "message",
|
8500
|
-
required: true,
|
8501
|
-
type: {
|
8502
|
-
name: "String"
|
8503
|
-
}
|
8504
|
-
}, receivedTimestamp: {
|
8505
|
-
serializedName: "receivedTimestamp",
|
8506
|
-
required: true,
|
8507
|
-
type: {
|
8508
|
-
name: "String"
|
8509
|
-
}
|
8510
|
-
} })
|
8511
|
-
}
|
8512
|
-
};
|
8513
|
-
const ContainerServiceClusterSupportEndedEventData = {
|
8514
|
-
type: {
|
8515
|
-
name: "Composite",
|
8516
|
-
className: "ContainerServiceClusterSupportEndedEventData",
|
8517
|
-
modelProperties: Object.assign({}, ContainerServiceClusterSupportEventData.type.modelProperties)
|
8518
|
-
}
|
8519
|
-
};
|
8520
|
-
const ContainerServiceClusterSupportEndingEventData = {
|
8521
|
-
type: {
|
8522
|
-
name: "Composite",
|
8523
|
-
className: "ContainerServiceClusterSupportEndingEventData",
|
8524
|
-
modelProperties: Object.assign({}, ContainerServiceClusterSupportEventData.type.modelProperties)
|
8525
|
-
}
|
8526
|
-
};
|
8527
|
-
const ContainerServiceNodePoolRollingStartedEventData = {
|
8528
|
-
type: {
|
8529
|
-
name: "Composite",
|
8530
|
-
className: "ContainerServiceNodePoolRollingStartedEventData",
|
8531
|
-
modelProperties: Object.assign({}, ContainerServiceNodePoolRollingEventData.type.modelProperties)
|
8532
|
-
}
|
8533
|
-
};
|
8534
|
-
const ContainerServiceNodePoolRollingSucceededEventData = {
|
8535
|
-
type: {
|
8536
|
-
name: "Composite",
|
8537
|
-
className: "ContainerServiceNodePoolRollingSucceededEventData",
|
8538
|
-
modelProperties: Object.assign({}, ContainerServiceNodePoolRollingEventData.type.modelProperties)
|
8539
|
-
}
|
8540
|
-
};
|
8541
|
-
const ContainerServiceNodePoolRollingFailedEventData = {
|
8542
|
-
type: {
|
8543
|
-
name: "Composite",
|
8544
|
-
className: "ContainerServiceNodePoolRollingFailedEventData",
|
8545
|
-
modelProperties: Object.assign({}, ContainerServiceNodePoolRollingEventData.type.modelProperties)
|
8546
|
-
}
|
8547
|
-
};
|
8548
|
-
const ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData = {
|
8549
|
-
type: {
|
8550
|
-
name: "Composite",
|
8551
|
-
className: "ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData",
|
8552
|
-
modelProperties: Object.assign({}, ResourceNotificationsResourceUpdatedEventData.type.modelProperties)
|
8553
|
-
}
|
8554
|
-
};
|
8555
|
-
const ResourceNotificationsHealthResourcesAnnotatedEventData = {
|
8556
|
-
type: {
|
8557
|
-
name: "Composite",
|
8558
|
-
className: "ResourceNotificationsHealthResourcesAnnotatedEventData",
|
8559
|
-
modelProperties: Object.assign({}, ResourceNotificationsResourceUpdatedEventData.type.modelProperties)
|
8560
|
-
}
|
8561
|
-
};
|
8562
|
-
const ResourceNotificationsResourceManagementCreatedOrUpdatedEventData = {
|
8563
|
-
type: {
|
8564
|
-
name: "Composite",
|
8565
|
-
className: "ResourceNotificationsResourceManagementCreatedOrUpdatedEventData",
|
8566
|
-
modelProperties: Object.assign({}, ResourceNotificationsResourceUpdatedEventData.type.modelProperties)
|
8567
|
-
}
|
8568
|
-
};
|
8569
|
-
const ResourceNotificationsResourceManagementDeletedEventData = {
|
8570
|
-
type: {
|
8571
|
-
name: "Composite",
|
8572
|
-
className: "ResourceNotificationsResourceManagementDeletedEventData",
|
8573
|
-
modelProperties: Object.assign({}, ResourceNotificationsResourceDeletedEventData.type.modelProperties)
|
8574
|
-
}
|
8575
|
-
};
|
8576
|
-
const AcsRouterJobCancelledEventData = {
|
8577
|
-
type: {
|
8578
|
-
name: "Composite",
|
8579
|
-
className: "AcsRouterJobCancelledEventData",
|
8580
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { note: {
|
8581
|
-
serializedName: "note",
|
8582
|
-
required: true,
|
8583
|
-
type: {
|
8584
|
-
name: "String"
|
8585
|
-
}
|
8586
|
-
}, dispositionCode: {
|
8587
|
-
serializedName: "dispositionCode",
|
8588
|
-
required: true,
|
8589
|
-
type: {
|
8590
|
-
name: "String"
|
8591
|
-
}
|
8592
|
-
} })
|
8593
|
-
}
|
8594
|
-
};
|
8595
|
-
const AcsRouterJobClassificationFailedEventData = {
|
8596
|
-
type: {
|
8597
|
-
name: "Composite",
|
8598
|
-
className: "AcsRouterJobClassificationFailedEventData",
|
8599
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { classificationPolicyId: {
|
8600
|
-
serializedName: "classificationPolicyId",
|
8601
|
-
required: true,
|
8602
|
-
type: {
|
8603
|
-
name: "String"
|
8604
|
-
}
|
8605
|
-
}, errors: {
|
8606
|
-
serializedName: "errors",
|
8607
|
-
required: true,
|
8608
|
-
type: {
|
8609
|
-
name: "Sequence",
|
8610
|
-
element: {
|
8611
|
-
type: {
|
8612
|
-
name: "Composite",
|
8613
|
-
className: "AcsRouterCommunicationError"
|
8614
|
-
}
|
8615
|
-
}
|
8616
|
-
}
|
8617
|
-
} })
|
8618
|
-
}
|
8619
|
-
};
|
8620
|
-
const AcsRouterJobClassifiedEventData = {
|
8621
|
-
type: {
|
8622
|
-
name: "Composite",
|
8623
|
-
className: "AcsRouterJobClassifiedEventData",
|
8624
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { queueDetails: {
|
8625
|
-
serializedName: "queueDetails",
|
8626
|
-
type: {
|
8627
|
-
name: "Composite",
|
8628
|
-
className: "AcsRouterQueueDetails"
|
8629
|
-
}
|
8630
|
-
}, classificationPolicyId: {
|
8631
|
-
serializedName: "classificationPolicyId",
|
8632
|
-
required: true,
|
8633
|
-
type: {
|
8634
|
-
name: "String"
|
8635
|
-
}
|
8636
|
-
}, priority: {
|
8637
|
-
serializedName: "priority",
|
8638
|
-
required: true,
|
8639
|
-
type: {
|
8640
|
-
name: "Number"
|
8641
|
-
}
|
8642
|
-
}, attachedWorkerSelectors: {
|
8643
|
-
serializedName: "attachedWorkerSelectors",
|
8644
|
-
required: true,
|
8645
|
-
type: {
|
8646
|
-
name: "Sequence",
|
8647
|
-
element: {
|
8648
|
-
type: {
|
8649
|
-
name: "Composite",
|
8650
|
-
className: "AcsRouterWorkerSelector"
|
8651
|
-
}
|
8652
|
-
}
|
8653
|
-
}
|
8654
|
-
} })
|
8655
|
-
}
|
8656
|
-
};
|
8657
|
-
const AcsRouterJobClosedEventData = {
|
8658
|
-
type: {
|
8659
|
-
name: "Composite",
|
8660
|
-
className: "AcsRouterJobClosedEventData",
|
8661
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { assignmentId: {
|
8662
|
-
serializedName: "assignmentId",
|
8663
|
-
required: true,
|
8664
|
-
type: {
|
8665
|
-
name: "String"
|
8666
|
-
}
|
8667
|
-
}, workerId: {
|
8668
|
-
serializedName: "workerId",
|
8669
|
-
required: true,
|
8670
|
-
type: {
|
8671
|
-
name: "String"
|
8672
|
-
}
|
8673
|
-
}, dispositionCode: {
|
8674
|
-
serializedName: "dispositionCode",
|
8675
|
-
required: true,
|
8676
|
-
type: {
|
8677
|
-
name: "String"
|
8678
|
-
}
|
8679
|
-
} })
|
8680
|
-
}
|
8681
|
-
};
|
8682
|
-
const AcsRouterJobCompletedEventData = {
|
8683
|
-
type: {
|
8684
|
-
name: "Composite",
|
8685
|
-
className: "AcsRouterJobCompletedEventData",
|
8686
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { assignmentId: {
|
8687
|
-
serializedName: "assignmentId",
|
8688
|
-
required: true,
|
8689
|
-
type: {
|
8690
|
-
name: "String"
|
8691
|
-
}
|
8692
|
-
}, workerId: {
|
8693
|
-
serializedName: "workerId",
|
8694
|
-
required: true,
|
8695
|
-
type: {
|
8696
|
-
name: "String"
|
8697
|
-
}
|
8698
|
-
} })
|
8699
|
-
}
|
8700
|
-
};
|
8701
|
-
const AcsRouterJobDeletedEventData = {
|
8702
|
-
type: {
|
8703
|
-
name: "Composite",
|
8704
|
-
className: "AcsRouterJobDeletedEventData",
|
8705
|
-
modelProperties: Object.assign({}, AcsRouterJobEventData.type.modelProperties)
|
8706
|
-
}
|
8707
|
-
};
|
8708
|
-
const AcsRouterJobExceptionTriggeredEventData = {
|
8709
|
-
type: {
|
8710
|
-
name: "Composite",
|
8711
|
-
className: "AcsRouterJobExceptionTriggeredEventData",
|
8712
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { ruleKey: {
|
8713
|
-
serializedName: "ruleKey",
|
8714
|
-
required: true,
|
8715
|
-
type: {
|
8716
|
-
name: "String"
|
8717
|
-
}
|
8718
|
-
}, exceptionRuleId: {
|
8719
|
-
serializedName: "exceptionRuleId",
|
8720
|
-
required: true,
|
8721
|
-
type: {
|
8722
|
-
name: "String"
|
8723
|
-
}
|
8724
|
-
} })
|
8725
|
-
}
|
8726
|
-
};
|
8727
|
-
const AcsRouterJobQueuedEventData = {
|
8728
|
-
type: {
|
8729
|
-
name: "Composite",
|
8730
|
-
className: "AcsRouterJobQueuedEventData",
|
8731
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { priority: {
|
8732
|
-
serializedName: "priority",
|
8733
|
-
required: true,
|
8734
|
-
type: {
|
8735
|
-
name: "Number"
|
8736
|
-
}
|
8737
|
-
}, attachedWorkerSelectors: {
|
8738
|
-
serializedName: "attachedWorkerSelectors",
|
8739
|
-
required: true,
|
8740
|
-
type: {
|
8741
|
-
name: "Sequence",
|
8742
|
-
element: {
|
8743
|
-
type: {
|
8744
|
-
name: "Composite",
|
8745
|
-
className: "AcsRouterWorkerSelector"
|
8746
|
-
}
|
8747
|
-
}
|
8748
|
-
}
|
8749
|
-
}, requestedWorkerSelectors: {
|
8750
|
-
serializedName: "requestedWorkerSelectors",
|
8751
|
-
required: true,
|
8752
|
-
type: {
|
8753
|
-
name: "Sequence",
|
8754
|
-
element: {
|
8755
|
-
type: {
|
8756
|
-
name: "Composite",
|
8757
|
-
className: "AcsRouterWorkerSelector"
|
8758
|
-
}
|
8759
|
-
}
|
8760
|
-
}
|
8761
|
-
} })
|
8762
|
-
}
|
8763
|
-
};
|
8764
|
-
const AcsRouterJobReceivedEventData = {
|
8765
|
-
type: {
|
8766
|
-
name: "Composite",
|
8767
|
-
className: "AcsRouterJobReceivedEventData",
|
8768
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { jobStatus: {
|
8769
|
-
serializedName: "jobStatus",
|
8770
|
-
type: {
|
8771
|
-
name: "String"
|
8772
|
-
}
|
8773
|
-
}, classificationPolicyId: {
|
8774
|
-
serializedName: "classificationPolicyId",
|
8775
|
-
type: {
|
8776
|
-
name: "String"
|
8777
|
-
}
|
8778
|
-
}, priority: {
|
8779
|
-
serializedName: "priority",
|
8780
|
-
type: {
|
8781
|
-
name: "Number"
|
8782
|
-
}
|
8783
|
-
}, requestedWorkerSelectors: {
|
8784
|
-
serializedName: "requestedWorkerSelectors",
|
8785
|
-
type: {
|
8786
|
-
name: "Sequence",
|
8787
|
-
element: {
|
8788
|
-
type: {
|
8789
|
-
name: "Composite",
|
8790
|
-
className: "AcsRouterWorkerSelector"
|
8791
|
-
}
|
8792
|
-
}
|
8793
|
-
}
|
8794
|
-
}, scheduledOn: {
|
8795
|
-
serializedName: "scheduledOn",
|
8796
|
-
type: {
|
8797
|
-
name: "String"
|
8798
|
-
}
|
8799
|
-
}, unavailableForMatching: {
|
8800
|
-
serializedName: "unavailableForMatching",
|
8801
|
-
required: true,
|
8802
|
-
type: {
|
8803
|
-
name: "Boolean"
|
8804
|
-
}
|
8805
|
-
} })
|
8806
|
-
}
|
8807
|
-
};
|
8808
|
-
const AcsRouterJobSchedulingFailedEventData = {
|
8809
|
-
type: {
|
8810
|
-
name: "Composite",
|
8811
|
-
className: "AcsRouterJobSchedulingFailedEventData",
|
8812
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { priority: {
|
8813
|
-
serializedName: "priority",
|
8814
|
-
required: true,
|
8815
|
-
type: {
|
8816
|
-
name: "Number"
|
8817
|
-
}
|
8818
|
-
}, expiredAttachedWorkerSelectors: {
|
8819
|
-
serializedName: "expiredAttachedWorkerSelectors",
|
8820
|
-
required: true,
|
8821
|
-
type: {
|
8822
|
-
name: "Sequence",
|
8823
|
-
element: {
|
8824
|
-
type: {
|
8825
|
-
name: "Composite",
|
8826
|
-
className: "AcsRouterWorkerSelector"
|
8827
|
-
}
|
8828
|
-
}
|
8829
|
-
}
|
8830
|
-
}, expiredRequestedWorkerSelectors: {
|
8831
|
-
serializedName: "expiredRequestedWorkerSelectors",
|
8832
|
-
required: true,
|
8833
|
-
type: {
|
8834
|
-
name: "Sequence",
|
8835
|
-
element: {
|
8836
|
-
type: {
|
8837
|
-
name: "Composite",
|
8838
|
-
className: "AcsRouterWorkerSelector"
|
8839
|
-
}
|
8840
|
-
}
|
8841
|
-
}
|
8842
|
-
}, scheduledOn: {
|
8843
|
-
serializedName: "scheduledOn",
|
8844
|
-
required: true,
|
8845
|
-
type: {
|
8846
|
-
name: "String"
|
8847
|
-
}
|
8848
|
-
}, failureReason: {
|
8849
|
-
serializedName: "failureReason",
|
8850
|
-
required: true,
|
8851
|
-
type: {
|
8852
|
-
name: "String"
|
8853
|
-
}
|
8854
|
-
} })
|
8855
|
-
}
|
8856
|
-
};
|
8857
|
-
const AcsRouterJobUnassignedEventData = {
|
8858
|
-
type: {
|
8859
|
-
name: "Composite",
|
8860
|
-
className: "AcsRouterJobUnassignedEventData",
|
8861
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { assignmentId: {
|
8862
|
-
serializedName: "assignmentId",
|
8863
|
-
required: true,
|
8864
|
-
type: {
|
8865
|
-
name: "String"
|
8866
|
-
}
|
8867
|
-
}, workerId: {
|
8868
|
-
serializedName: "workerId",
|
8869
|
-
required: true,
|
8870
|
-
type: {
|
8871
|
-
name: "String"
|
8872
|
-
}
|
8873
|
-
} })
|
8874
|
-
}
|
8875
|
-
};
|
8876
|
-
const AcsRouterJobWaitingForActivationEventData = {
|
8877
|
-
type: {
|
8878
|
-
name: "Composite",
|
8879
|
-
className: "AcsRouterJobWaitingForActivationEventData",
|
8880
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { priority: {
|
8881
|
-
serializedName: "priority",
|
8882
|
-
type: {
|
8883
|
-
name: "Number"
|
8884
|
-
}
|
8885
|
-
}, expiredAttachedWorkerSelectors: {
|
8886
|
-
serializedName: "expiredAttachedWorkerSelectors",
|
8887
|
-
type: {
|
8888
|
-
name: "Sequence",
|
8889
|
-
element: {
|
8890
|
-
type: {
|
8891
|
-
name: "Composite",
|
8892
|
-
className: "AcsRouterWorkerSelector"
|
8893
|
-
}
|
8894
|
-
}
|
8895
|
-
}
|
8896
|
-
}, expiredRequestedWorkerSelectors: {
|
8897
|
-
serializedName: "expiredRequestedWorkerSelectors",
|
8898
|
-
type: {
|
8899
|
-
name: "Sequence",
|
8900
|
-
element: {
|
8901
|
-
type: {
|
8902
|
-
name: "Composite",
|
8903
|
-
className: "AcsRouterWorkerSelector"
|
8904
|
-
}
|
8905
|
-
}
|
8906
|
-
}
|
8907
|
-
}, scheduledOn: {
|
8908
|
-
serializedName: "scheduledOn",
|
8909
|
-
type: {
|
8910
|
-
name: "String"
|
8911
|
-
}
|
8912
|
-
}, unavailableForMatching: {
|
8913
|
-
serializedName: "unavailableForMatching",
|
8914
|
-
required: true,
|
8915
|
-
type: {
|
8916
|
-
name: "Boolean"
|
8917
|
-
}
|
8918
|
-
} })
|
8919
|
-
}
|
8920
|
-
};
|
8921
|
-
const AcsRouterJobWorkerSelectorsExpiredEventData = {
|
8922
|
-
type: {
|
8923
|
-
name: "Composite",
|
8924
|
-
className: "AcsRouterJobWorkerSelectorsExpiredEventData",
|
8925
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterJobEventData.type.modelProperties), { expiredRequestedWorkerSelectors: {
|
8926
|
-
serializedName: "expiredRequestedWorkerSelectors",
|
8927
|
-
required: true,
|
8928
|
-
type: {
|
8929
|
-
name: "Sequence",
|
8930
|
-
element: {
|
8931
|
-
type: {
|
8932
|
-
name: "Composite",
|
8933
|
-
className: "AcsRouterWorkerSelector"
|
8934
|
-
}
|
8935
|
-
}
|
8936
|
-
}
|
8937
|
-
}, expiredAttachedWorkerSelectors: {
|
8938
|
-
serializedName: "expiredAttachedWorkerSelectors",
|
8939
|
-
required: true,
|
8940
|
-
type: {
|
8941
|
-
name: "Sequence",
|
8942
|
-
element: {
|
8943
|
-
type: {
|
8944
|
-
name: "Composite",
|
8945
|
-
className: "AcsRouterWorkerSelector"
|
8946
|
-
}
|
8947
|
-
}
|
8948
|
-
}
|
8949
|
-
} })
|
8950
|
-
}
|
8951
|
-
};
|
8952
|
-
const AcsRouterWorkerDeletedEventData = {
|
8953
|
-
type: {
|
8954
|
-
name: "Composite",
|
8955
|
-
className: "AcsRouterWorkerDeletedEventData",
|
8956
|
-
modelProperties: Object.assign({}, AcsRouterWorkerEventData.type.modelProperties)
|
8957
|
-
}
|
8958
|
-
};
|
8959
|
-
const AcsRouterWorkerOfferAcceptedEventData = {
|
8960
|
-
type: {
|
8961
|
-
name: "Composite",
|
8962
|
-
className: "AcsRouterWorkerOfferAcceptedEventData",
|
8963
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterWorkerEventData.type.modelProperties), { queueId: {
|
8964
|
-
serializedName: "queueId",
|
8965
|
-
required: true,
|
8966
|
-
type: {
|
8967
|
-
name: "String"
|
8968
|
-
}
|
8969
|
-
}, offerId: {
|
8970
|
-
serializedName: "offerId",
|
8971
|
-
required: true,
|
8972
|
-
type: {
|
8973
|
-
name: "String"
|
8974
|
-
}
|
8975
|
-
}, assignmentId: {
|
8976
|
-
serializedName: "assignmentId",
|
8977
|
-
required: true,
|
8978
|
-
type: {
|
8979
|
-
name: "String"
|
8980
|
-
}
|
8981
|
-
}, jobPriority: {
|
8982
|
-
serializedName: "jobPriority",
|
8983
|
-
required: true,
|
8984
|
-
type: {
|
8985
|
-
name: "Number"
|
8986
|
-
}
|
8987
|
-
}, workerLabels: {
|
8988
|
-
serializedName: "workerLabels",
|
8989
|
-
required: true,
|
8990
|
-
type: {
|
8991
|
-
name: "Dictionary",
|
8992
|
-
value: { type: { name: "String" } }
|
8993
|
-
}
|
8994
|
-
}, workerTags: {
|
8995
|
-
serializedName: "workerTags",
|
8996
|
-
required: true,
|
8997
|
-
type: {
|
8998
|
-
name: "Dictionary",
|
8999
|
-
value: { type: { name: "String" } }
|
9000
|
-
}
|
9001
|
-
}, jobLabels: {
|
9002
|
-
serializedName: "jobLabels",
|
9003
|
-
required: true,
|
9004
|
-
type: {
|
9005
|
-
name: "Dictionary",
|
9006
|
-
value: { type: { name: "String" } }
|
9007
|
-
}
|
9008
|
-
}, jobTags: {
|
9009
|
-
serializedName: "jobTags",
|
9010
|
-
required: true,
|
9011
|
-
type: {
|
9012
|
-
name: "Dictionary",
|
9013
|
-
value: { type: { name: "String" } }
|
9014
|
-
}
|
9015
|
-
} })
|
9016
|
-
}
|
9017
|
-
};
|
9018
|
-
const AcsRouterWorkerOfferDeclinedEventData = {
|
9019
|
-
type: {
|
9020
|
-
name: "Composite",
|
9021
|
-
className: "AcsRouterWorkerOfferDeclinedEventData",
|
9022
|
-
modelProperties: Object.assign(Object.assign({}, AcsRouterWorkerEventData.type.modelProperties), { queueId: {
|
9023
|
-
serializedName: "queueId",
|
9024
|
-
required: true,
|
9025
|
-
type: {
|
9026
|
-
name: "String"
|
9027
|
-
}
|
9028
|
-
}, offerId: {
|
9029
|
-
serializedName: "offerId",
|
7761
|
+
serializedName: "version",
|
9030
7762
|
required: true,
|
9031
7763
|
type: {
|
9032
|
-
name: "
|
7764
|
+
name: "Number"
|
9033
7765
|
}
|
9034
7766
|
} })
|
9035
7767
|
}
|
9036
7768
|
};
|
9037
|
-
const
|
7769
|
+
const AcsChatParticipantRemovedFromThreadEventData = {
|
9038
7770
|
type: {
|
9039
7771
|
name: "Composite",
|
9040
|
-
className: "
|
9041
|
-
modelProperties: Object.assign(Object.assign({},
|
9042
|
-
serializedName: "
|
7772
|
+
className: "AcsChatParticipantRemovedFromThreadEventData",
|
7773
|
+
modelProperties: Object.assign(Object.assign({}, AcsChatEventInThreadBase.type.modelProperties), { time: {
|
7774
|
+
serializedName: "time",
|
9043
7775
|
required: true,
|
9044
7776
|
type: {
|
9045
7777
|
name: "String"
|
9046
7778
|
}
|
9047
|
-
},
|
9048
|
-
serializedName: "
|
7779
|
+
}, removedByCommunicationIdentifier: {
|
7780
|
+
serializedName: "removedByCommunicationIdentifier",
|
7781
|
+
type: {
|
7782
|
+
name: "Composite",
|
7783
|
+
className: "CommunicationIdentifierModel"
|
7784
|
+
}
|
7785
|
+
}, participantRemoved: {
|
7786
|
+
serializedName: "participantRemoved",
|
7787
|
+
type: {
|
7788
|
+
name: "Composite",
|
7789
|
+
className: "AcsChatThreadParticipant"
|
7790
|
+
}
|
7791
|
+
}, version: {
|
7792
|
+
serializedName: "version",
|
9049
7793
|
required: true,
|
9050
7794
|
type: {
|
9051
|
-
name: "
|
7795
|
+
name: "Number"
|
9052
7796
|
}
|
9053
7797
|
} })
|
9054
7798
|
}
|
9055
7799
|
};
|
9056
|
-
const
|
7800
|
+
const AcsSmsDeliveryReportReceivedEventData = {
|
9057
7801
|
type: {
|
9058
7802
|
name: "Composite",
|
9059
|
-
className: "
|
9060
|
-
modelProperties: Object.assign(Object.assign({},
|
9061
|
-
serializedName: "
|
7803
|
+
className: "AcsSmsDeliveryReportReceivedEventData",
|
7804
|
+
modelProperties: Object.assign(Object.assign({}, AcsSmsEventBase.type.modelProperties), { deliveryStatus: {
|
7805
|
+
serializedName: "deliveryStatus",
|
9062
7806
|
required: true,
|
9063
7807
|
type: {
|
9064
7808
|
name: "String"
|
9065
7809
|
}
|
9066
|
-
},
|
9067
|
-
serializedName: "
|
7810
|
+
}, deliveryStatusDetails: {
|
7811
|
+
serializedName: "deliveryStatusDetails",
|
9068
7812
|
required: true,
|
9069
7813
|
type: {
|
9070
7814
|
name: "String"
|
9071
7815
|
}
|
9072
|
-
},
|
9073
|
-
serializedName: "
|
9074
|
-
required: true,
|
9075
|
-
type: {
|
9076
|
-
name: "Number"
|
9077
|
-
}
|
9078
|
-
}, workerLabels: {
|
9079
|
-
serializedName: "workerLabels",
|
7816
|
+
}, deliveryAttempts: {
|
7817
|
+
serializedName: "deliveryAttempts",
|
9080
7818
|
required: true,
|
9081
7819
|
type: {
|
9082
|
-
name: "
|
9083
|
-
|
7820
|
+
name: "Sequence",
|
7821
|
+
element: {
|
7822
|
+
type: {
|
7823
|
+
name: "Composite",
|
7824
|
+
className: "AcsSmsDeliveryAttempt"
|
7825
|
+
}
|
7826
|
+
}
|
9084
7827
|
}
|
9085
|
-
},
|
9086
|
-
serializedName: "
|
7828
|
+
}, receivedTimestamp: {
|
7829
|
+
serializedName: "receivedTimestamp",
|
9087
7830
|
required: true,
|
9088
7831
|
type: {
|
9089
7832
|
name: "String"
|
9090
7833
|
}
|
9091
|
-
},
|
9092
|
-
serializedName: "
|
7834
|
+
}, tag: {
|
7835
|
+
serializedName: "tag",
|
9093
7836
|
required: true,
|
9094
7837
|
type: {
|
9095
7838
|
name: "String"
|
9096
7839
|
}
|
9097
|
-
}, workerTags: {
|
9098
|
-
serializedName: "workerTags",
|
9099
|
-
required: true,
|
9100
|
-
type: {
|
9101
|
-
name: "Dictionary",
|
9102
|
-
value: { type: { name: "String" } }
|
9103
|
-
}
|
9104
|
-
}, jobLabels: {
|
9105
|
-
serializedName: "jobLabels",
|
9106
|
-
required: true,
|
9107
|
-
type: {
|
9108
|
-
name: "Dictionary",
|
9109
|
-
value: { type: { name: "String" } }
|
9110
|
-
}
|
9111
|
-
}, jobTags: {
|
9112
|
-
serializedName: "jobTags",
|
9113
|
-
required: true,
|
9114
|
-
type: {
|
9115
|
-
name: "Dictionary",
|
9116
|
-
value: { type: { name: "String" } }
|
9117
|
-
}
|
9118
7840
|
} })
|
9119
7841
|
}
|
9120
7842
|
};
|
9121
|
-
const
|
7843
|
+
const AcsSmsReceivedEventData = {
|
9122
7844
|
type: {
|
9123
7845
|
name: "Composite",
|
9124
|
-
className: "
|
9125
|
-
modelProperties: Object.assign(Object.assign({},
|
9126
|
-
serializedName: "
|
7846
|
+
className: "AcsSmsReceivedEventData",
|
7847
|
+
modelProperties: Object.assign(Object.assign({}, AcsSmsEventBase.type.modelProperties), { message: {
|
7848
|
+
serializedName: "message",
|
9127
7849
|
required: true,
|
9128
7850
|
type: {
|
9129
7851
|
name: "String"
|
9130
7852
|
}
|
9131
|
-
},
|
9132
|
-
serializedName: "
|
7853
|
+
}, receivedTimestamp: {
|
7854
|
+
serializedName: "receivedTimestamp",
|
9133
7855
|
required: true,
|
9134
7856
|
type: {
|
9135
7857
|
name: "String"
|
@@ -9213,13 +7935,6 @@ const AcsChatThreadCreatedWithUserEventData = {
|
|
9213
7935
|
name: "Dictionary",
|
9214
7936
|
value: { type: { name: "any" } }
|
9215
7937
|
}
|
9216
|
-
}, metadata: {
|
9217
|
-
serializedName: "metadata",
|
9218
|
-
required: true,
|
9219
|
-
type: {
|
9220
|
-
name: "Dictionary",
|
9221
|
-
value: { type: { name: "String" } }
|
9222
|
-
}
|
9223
7938
|
}, participants: {
|
9224
7939
|
serializedName: "participants",
|
9225
7940
|
required: true,
|
@@ -9270,13 +7985,6 @@ const AcsChatThreadPropertiesUpdatedPerUserEventData = {
|
|
9270
7985
|
type: {
|
9271
7986
|
name: "String"
|
9272
7987
|
}
|
9273
|
-
}, metadata: {
|
9274
|
-
serializedName: "metadata",
|
9275
|
-
required: true,
|
9276
|
-
type: {
|
9277
|
-
name: "Dictionary",
|
9278
|
-
value: { type: { name: "String" } }
|
9279
|
-
}
|
9280
7988
|
}, properties: {
|
9281
7989
|
serializedName: "properties",
|
9282
7990
|
required: true,
|
@@ -9470,13 +8178,6 @@ const AcsChatThreadPropertiesUpdatedEventData = {
|
|
9470
8178
|
name: "Dictionary",
|
9471
8179
|
value: { type: { name: "any" } }
|
9472
8180
|
}
|
9473
|
-
}, metadata: {
|
9474
|
-
serializedName: "metadata",
|
9475
|
-
required: true,
|
9476
|
-
type: {
|
9477
|
-
name: "Dictionary",
|
9478
|
-
value: { type: { name: "String" } }
|
9479
|
-
}
|
9480
8181
|
} })
|
9481
8182
|
}
|
9482
8183
|
};
|
@@ -9518,34 +8219,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
9518
8219
|
AcsRecordingChunkInfo: AcsRecordingChunkInfo,
|
9519
8220
|
AcsRecordingFileStatusUpdatedEventData: AcsRecordingFileStatusUpdatedEventData,
|
9520
8221
|
AcsRecordingStorageInfo: AcsRecordingStorageInfo,
|
9521
|
-
AcsRouterChannelConfiguration: AcsRouterChannelConfiguration,
|
9522
|
-
AcsRouterCommunicationError: AcsRouterCommunicationError,
|
9523
|
-
AcsRouterEventData: AcsRouterEventData,
|
9524
|
-
AcsRouterJobCancelledEventData: AcsRouterJobCancelledEventData,
|
9525
|
-
AcsRouterJobClassificationFailedEventData: AcsRouterJobClassificationFailedEventData,
|
9526
|
-
AcsRouterJobClassifiedEventData: AcsRouterJobClassifiedEventData,
|
9527
|
-
AcsRouterJobClosedEventData: AcsRouterJobClosedEventData,
|
9528
|
-
AcsRouterJobCompletedEventData: AcsRouterJobCompletedEventData,
|
9529
|
-
AcsRouterJobDeletedEventData: AcsRouterJobDeletedEventData,
|
9530
|
-
AcsRouterJobEventData: AcsRouterJobEventData,
|
9531
|
-
AcsRouterJobExceptionTriggeredEventData: AcsRouterJobExceptionTriggeredEventData,
|
9532
|
-
AcsRouterJobQueuedEventData: AcsRouterJobQueuedEventData,
|
9533
|
-
AcsRouterJobReceivedEventData: AcsRouterJobReceivedEventData,
|
9534
|
-
AcsRouterJobSchedulingFailedEventData: AcsRouterJobSchedulingFailedEventData,
|
9535
|
-
AcsRouterJobUnassignedEventData: AcsRouterJobUnassignedEventData,
|
9536
|
-
AcsRouterJobWaitingForActivationEventData: AcsRouterJobWaitingForActivationEventData,
|
9537
|
-
AcsRouterJobWorkerSelectorsExpiredEventData: AcsRouterJobWorkerSelectorsExpiredEventData,
|
9538
|
-
AcsRouterQueueDetails: AcsRouterQueueDetails,
|
9539
|
-
AcsRouterWorkerDeletedEventData: AcsRouterWorkerDeletedEventData,
|
9540
|
-
AcsRouterWorkerDeregisteredEventData: AcsRouterWorkerDeregisteredEventData,
|
9541
|
-
AcsRouterWorkerEventData: AcsRouterWorkerEventData,
|
9542
|
-
AcsRouterWorkerOfferAcceptedEventData: AcsRouterWorkerOfferAcceptedEventData,
|
9543
|
-
AcsRouterWorkerOfferDeclinedEventData: AcsRouterWorkerOfferDeclinedEventData,
|
9544
|
-
AcsRouterWorkerOfferExpiredEventData: AcsRouterWorkerOfferExpiredEventData,
|
9545
|
-
AcsRouterWorkerOfferIssuedEventData: AcsRouterWorkerOfferIssuedEventData,
|
9546
|
-
AcsRouterWorkerOfferRevokedEventData: AcsRouterWorkerOfferRevokedEventData,
|
9547
|
-
AcsRouterWorkerRegisteredEventData: AcsRouterWorkerRegisteredEventData,
|
9548
|
-
AcsRouterWorkerSelector: AcsRouterWorkerSelector,
|
9549
8222
|
AcsSmsDeliveryAttempt: AcsSmsDeliveryAttempt,
|
9550
8223
|
AcsSmsDeliveryReportReceivedEventData: AcsSmsDeliveryReportReceivedEventData,
|
9551
8224
|
AcsSmsEventBase: AcsSmsEventBase,
|
@@ -9579,9 +8252,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
9579
8252
|
ApiManagementUserUpdatedEventData: ApiManagementUserUpdatedEventData,
|
9580
8253
|
AppConfigurationKeyValueDeletedEventData: AppConfigurationKeyValueDeletedEventData,
|
9581
8254
|
AppConfigurationKeyValueModifiedEventData: AppConfigurationKeyValueModifiedEventData,
|
9582
|
-
AppConfigurationSnapshotCreatedEventData: AppConfigurationSnapshotCreatedEventData,
|
9583
|
-
AppConfigurationSnapshotEventData: AppConfigurationSnapshotEventData,
|
9584
|
-
AppConfigurationSnapshotModifiedEventData: AppConfigurationSnapshotModifiedEventData,
|
9585
8255
|
AppEventTypeDetail: AppEventTypeDetail,
|
9586
8256
|
AppServicePlanEventTypeDetail: AppServicePlanEventTypeDetail,
|
9587
8257
|
CloudEvent: CloudEvent,
|
@@ -9599,14 +8269,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
9599
8269
|
ContainerRegistryEventTarget: ContainerRegistryEventTarget,
|
9600
8270
|
ContainerRegistryImageDeletedEventData: ContainerRegistryImageDeletedEventData,
|
9601
8271
|
ContainerRegistryImagePushedEventData: ContainerRegistryImagePushedEventData,
|
9602
|
-
ContainerServiceClusterSupportEndedEventData: ContainerServiceClusterSupportEndedEventData,
|
9603
|
-
ContainerServiceClusterSupportEndingEventData: ContainerServiceClusterSupportEndingEventData,
|
9604
|
-
ContainerServiceClusterSupportEventData: ContainerServiceClusterSupportEventData,
|
9605
8272
|
ContainerServiceNewKubernetesVersionAvailableEventData: ContainerServiceNewKubernetesVersionAvailableEventData,
|
9606
|
-
ContainerServiceNodePoolRollingEventData: ContainerServiceNodePoolRollingEventData,
|
9607
|
-
ContainerServiceNodePoolRollingFailedEventData: ContainerServiceNodePoolRollingFailedEventData,
|
9608
|
-
ContainerServiceNodePoolRollingStartedEventData: ContainerServiceNodePoolRollingStartedEventData,
|
9609
|
-
ContainerServiceNodePoolRollingSucceededEventData: ContainerServiceNodePoolRollingSucceededEventData,
|
9610
8273
|
DataBoxCopyCompletedEventData: DataBoxCopyCompletedEventData,
|
9611
8274
|
DataBoxCopyStartedEventData: DataBoxCopyStartedEventData,
|
9612
8275
|
DataBoxOrderCompletedEventData: DataBoxOrderCompletedEventData,
|
@@ -9620,11 +8283,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
9620
8283
|
DeviceTwinInfoX509Thumbprint: DeviceTwinInfoX509Thumbprint,
|
9621
8284
|
DeviceTwinMetadata: DeviceTwinMetadata,
|
9622
8285
|
EventGridEvent: EventGridEvent,
|
9623
|
-
EventGridMqttClientCreatedOrUpdatedEventData: EventGridMqttClientCreatedOrUpdatedEventData,
|
9624
|
-
EventGridMqttClientDeletedEventData: EventGridMqttClientDeletedEventData,
|
9625
|
-
EventGridMqttClientEventData: EventGridMqttClientEventData,
|
9626
|
-
EventGridMqttClientSessionConnectedEventData: EventGridMqttClientSessionConnectedEventData,
|
9627
|
-
EventGridMqttClientSessionDisconnectedEventData: EventGridMqttClientSessionDisconnectedEventData,
|
9628
8286
|
EventHubCaptureFileCreatedEventData: EventHubCaptureFileCreatedEventData,
|
9629
8287
|
HealthcareDicomImageCreatedEventData: HealthcareDicomImageCreatedEventData,
|
9630
8288
|
HealthcareDicomImageDeletedEventData: HealthcareDicomImageDeletedEventData,
|
@@ -9703,15 +8361,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
9703
8361
|
ResourceDeleteFailureEventData: ResourceDeleteFailureEventData,
|
9704
8362
|
ResourceDeleteSuccessEventData: ResourceDeleteSuccessEventData,
|
9705
8363
|
ResourceHttpRequest: ResourceHttpRequest,
|
9706
|
-
ResourceNotificationsHealthResourcesAnnotatedEventData: ResourceNotificationsHealthResourcesAnnotatedEventData,
|
9707
|
-
ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData: ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData,
|
9708
|
-
ResourceNotificationsOperationalDetails: ResourceNotificationsOperationalDetails,
|
9709
|
-
ResourceNotificationsResourceDeletedDetails: ResourceNotificationsResourceDeletedDetails,
|
9710
|
-
ResourceNotificationsResourceDeletedEventData: ResourceNotificationsResourceDeletedEventData,
|
9711
|
-
ResourceNotificationsResourceManagementCreatedOrUpdatedEventData: ResourceNotificationsResourceManagementCreatedOrUpdatedEventData,
|
9712
|
-
ResourceNotificationsResourceManagementDeletedEventData: ResourceNotificationsResourceManagementDeletedEventData,
|
9713
|
-
ResourceNotificationsResourceUpdatedDetails: ResourceNotificationsResourceUpdatedDetails,
|
9714
|
-
ResourceNotificationsResourceUpdatedEventData: ResourceNotificationsResourceUpdatedEventData,
|
9715
8364
|
ResourceWriteCancelEventData: ResourceWriteCancelEventData,
|
9716
8365
|
ResourceWriteFailureEventData: ResourceWriteFailureEventData,
|
9717
8366
|
ResourceWriteSuccessEventData: ResourceWriteSuccessEventData,
|
@@ -9775,7 +8424,7 @@ class GeneratedClientContext extends coreClient__namespace.ServiceClient {
|
|
9775
8424
|
const defaults = {
|
9776
8425
|
requestContentType: "application/json; charset=utf-8"
|
9777
8426
|
};
|
9778
|
-
const packageDetails = `azsdk-js-eventgrid/5.0.
|
8427
|
+
const packageDetails = `azsdk-js-eventgrid/5.1.0-beta.1`;
|
9779
8428
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
9780
8429
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
9781
8430
|
: `${packageDetails}`;
|
@@ -9930,7 +8579,7 @@ function cloudEventDistributedTracingEnricherPolicy() {
|
|
9930
8579
|
const tracingClient = coreTracing.createTracingClient({
|
9931
8580
|
namespace: "Microsoft.Messaging.EventGrid",
|
9932
8581
|
packageName: "@azure/event-grid",
|
9933
|
-
packageVersion: "5.0.
|
8582
|
+
packageVersion: "5.1.0-beta.1",
|
9934
8583
|
});
|
9935
8584
|
|
9936
8585
|
// Copyright (c) Microsoft Corporation.
|
@@ -9991,7 +8640,7 @@ class EventGridPublisherClient {
|
|
9991
8640
|
if (channelName) {
|
9992
8641
|
sendOptions.aegChannelName = channelName;
|
9993
8642
|
}
|
9994
|
-
return this.client.publishCloudEventEvents(this.endpointUrl, events.map(convertCloudEventToModelType), sendOptions);
|
8643
|
+
return this.client.publishCloudEventEvents(this.endpointUrl, events.map(convertCloudEventToModelType$1), sendOptions);
|
9995
8644
|
}
|
9996
8645
|
case "Custom": {
|
9997
8646
|
return this.client.publishCustomEventEvents(this.endpointUrl, events, updatedOptions);
|
@@ -10021,7 +8670,7 @@ function convertEventGridEventToModelType(event) {
|
|
10021
8670
|
/**
|
10022
8671
|
* @internal
|
10023
8672
|
*/
|
10024
|
-
function convertCloudEventToModelType(event) {
|
8673
|
+
function convertCloudEventToModelType$1(event) {
|
10025
8674
|
var _a, _b, _c, _d;
|
10026
8675
|
if (event.extensionAttributes) {
|
10027
8676
|
for (const propName in event.extensionAttributes) {
|
@@ -10174,6 +8823,568 @@ function isSystemEvent(eventType, event) {
|
|
10174
8823
|
}
|
10175
8824
|
}
|
10176
8825
|
|
8826
|
+
// Copyright (c) Microsoft Corporation.
|
8827
|
+
// Licensed under the MIT license.
|
8828
|
+
const logger = logger$1.createClientLogger("eventgrid");
|
8829
|
+
|
8830
|
+
// Copyright (c) Microsoft Corporation.
|
8831
|
+
// Licensed under the MIT license.
|
8832
|
+
/**
|
8833
|
+
* Initialize a new instance of `EventGridContext`
|
8834
|
+
* @param endpoint - The host name of the namespace, e.g. namespaceName1.westus-1.eventgrid.azure.net
|
8835
|
+
* @param credentials - uniquely identify client credential
|
8836
|
+
* @param options - the parameter for all optional parameters
|
8837
|
+
*/
|
8838
|
+
function createClient(endpoint, credentials, options = {}) {
|
8839
|
+
var _a, _b, _c, _d, _e, _f;
|
8840
|
+
const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}`;
|
8841
|
+
options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2023-10-01-preview";
|
8842
|
+
options = Object.assign(Object.assign({}, options), { credentials: {
|
8843
|
+
scopes: (_d = (_c = options.credentials) === null || _c === void 0 ? void 0 : _c.scopes) !== null && _d !== void 0 ? _d : ["https://eventgrid.azure.net/.default"],
|
8844
|
+
apiKeyHeaderName: "Authorization",
|
8845
|
+
} });
|
8846
|
+
const userAgentInfo = `azsdk-js-eventgrid-rest/5.1.0-beta.1`;
|
8847
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
8848
|
+
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
8849
|
+
: `${userAgentInfo}`;
|
8850
|
+
options = Object.assign(Object.assign({}, options), { userAgentOptions: {
|
8851
|
+
userAgentPrefix,
|
8852
|
+
}, loggingOptions: {
|
8853
|
+
logger: (_f = (_e = options.loggingOptions) === null || _e === void 0 ? void 0 : _e.logger) !== null && _f !== void 0 ? _f : logger.info,
|
8854
|
+
} });
|
8855
|
+
const client = coreClient$1.getClient(baseUrl, credentials, options);
|
8856
|
+
client.pipeline.addPolicy({
|
8857
|
+
name: "customKeyCredentialPolicy",
|
8858
|
+
async sendRequest(request, next) {
|
8859
|
+
request.headers.set("Authorization", "SharedAccessKey " + credentials.key);
|
8860
|
+
return next(request);
|
8861
|
+
},
|
8862
|
+
});
|
8863
|
+
return client;
|
8864
|
+
}
|
8865
|
+
|
8866
|
+
// Copyright (c) Microsoft Corporation.
|
8867
|
+
// Licensed under the MIT license.
|
8868
|
+
const responseMap = {
|
8869
|
+
"POST /topics/{topicName}:publish": ["200"],
|
8870
|
+
"POST /topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:receive": ["200"],
|
8871
|
+
"POST /topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:acknowledge": ["200"],
|
8872
|
+
"POST /topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:release": ["200"],
|
8873
|
+
"POST /topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:reject": ["200"],
|
8874
|
+
"POST /topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:renewLock": ["200"],
|
8875
|
+
};
|
8876
|
+
function isUnexpected(response) {
|
8877
|
+
const lroOriginal = response.headers["x-ms-original-url"];
|
8878
|
+
const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
|
8879
|
+
const method = response.request.method;
|
8880
|
+
let pathDetails = responseMap[`${method} ${url.pathname}`];
|
8881
|
+
if (!pathDetails) {
|
8882
|
+
pathDetails = getParametrizedPathSuccess(method, url.pathname);
|
8883
|
+
}
|
8884
|
+
return !pathDetails.includes(response.status);
|
8885
|
+
}
|
8886
|
+
function getParametrizedPathSuccess(method, path) {
|
8887
|
+
var _a, _b, _c, _d;
|
8888
|
+
const pathParts = path.split("/");
|
8889
|
+
// Traverse list to match the longest candidate
|
8890
|
+
// matchedLen: the length of candidate path
|
8891
|
+
// matchedValue: the matched status code array
|
8892
|
+
let matchedLen = -1, matchedValue = [];
|
8893
|
+
// Iterate the responseMap to find a match
|
8894
|
+
for (const [key, value] of Object.entries(responseMap)) {
|
8895
|
+
// Extracting the path from the map key which is in format
|
8896
|
+
// GET /path/foo
|
8897
|
+
if (!key.startsWith(method)) {
|
8898
|
+
continue;
|
8899
|
+
}
|
8900
|
+
const candidatePath = getPathFromMapKey(key);
|
8901
|
+
// Get each part of the url path
|
8902
|
+
const candidateParts = candidatePath.split("/");
|
8903
|
+
// track if we have found a match to return the values found.
|
8904
|
+
let found = true;
|
8905
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
8906
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
8907
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
8908
|
+
// If the current part of the candidate is a "template" part
|
8909
|
+
// Try to use the suffix of pattern to match the path
|
8910
|
+
// {guid} ==> $
|
8911
|
+
// {guid}:export ==> :export$
|
8912
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
8913
|
+
if (!isMatched) {
|
8914
|
+
found = false;
|
8915
|
+
break;
|
8916
|
+
}
|
8917
|
+
continue;
|
8918
|
+
}
|
8919
|
+
// If the candidate part is not a template and
|
8920
|
+
// the parts don't match mark the candidate as not found
|
8921
|
+
// to move on with the next candidate path.
|
8922
|
+
if (candidateParts[i] !== pathParts[j]) {
|
8923
|
+
found = false;
|
8924
|
+
break;
|
8925
|
+
}
|
8926
|
+
}
|
8927
|
+
// We finished evaluating the current candidate parts
|
8928
|
+
// Update the matched value if and only if we found the longer pattern
|
8929
|
+
if (found && candidatePath.length > matchedLen) {
|
8930
|
+
matchedLen = candidatePath.length;
|
8931
|
+
matchedValue = value;
|
8932
|
+
}
|
8933
|
+
}
|
8934
|
+
return matchedValue;
|
8935
|
+
}
|
8936
|
+
function getPathFromMapKey(mapKey) {
|
8937
|
+
const pathStart = mapKey.indexOf("/");
|
8938
|
+
return mapKey.slice(pathStart);
|
8939
|
+
}
|
8940
|
+
|
8941
|
+
// Copyright (c) Microsoft Corporation.
|
8942
|
+
// Licensed under the MIT license.
|
8943
|
+
/** Azure Messaging EventGrid Client */
|
8944
|
+
function createEventGrid(endpoint, credential, options = {}) {
|
8945
|
+
const baseUrl = endpoint;
|
8946
|
+
const clientContext = createClient(baseUrl, credential, options);
|
8947
|
+
return clientContext;
|
8948
|
+
}
|
8949
|
+
|
8950
|
+
// Copyright (c) Microsoft Corporation.
|
8951
|
+
// Licensed under the MIT license.
|
8952
|
+
function _publishCloudEventSend(context, id, source, type, specversion, topicName, options = { requestOptions: {} }) {
|
8953
|
+
var _a, _b;
|
8954
|
+
return context.path("/topics/{topicName}:publish", topicName).post(Object.assign(Object.assign({}, coreClient$1.operationOptionsToRequestParameters(options)), { contentType: (_a = options.contentType) !== null && _a !== void 0 ? _a : "application/cloudevents+json; charset=utf-8", body: {
|
8955
|
+
id: id,
|
8956
|
+
source: source,
|
8957
|
+
data: options === null || options === void 0 ? void 0 : options.data,
|
8958
|
+
data_base64: (options === null || options === void 0 ? void 0 : options.dataBase64) !== undefined
|
8959
|
+
? coreUtil.uint8ArrayToString(options === null || options === void 0 ? void 0 : options.dataBase64, "base64")
|
8960
|
+
: undefined,
|
8961
|
+
type: type,
|
8962
|
+
time: (_b = options === null || options === void 0 ? void 0 : options.time) === null || _b === void 0 ? void 0 : _b.toISOString(),
|
8963
|
+
specversion: specversion,
|
8964
|
+
dataschema: options === null || options === void 0 ? void 0 : options.dataschema,
|
8965
|
+
datacontenttype: options === null || options === void 0 ? void 0 : options.datacontenttype,
|
8966
|
+
subject: options === null || options === void 0 ? void 0 : options.subject,
|
8967
|
+
} }));
|
8968
|
+
}
|
8969
|
+
async function _publishCloudEventDeserialize$1(result) {
|
8970
|
+
if (isUnexpected(result)) {
|
8971
|
+
throw result.body;
|
8972
|
+
}
|
8973
|
+
return result.body;
|
8974
|
+
}
|
8975
|
+
/** Publish Single Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error. */
|
8976
|
+
async function publishCloudEvent(context, id, source, type, specversion, topicName, options = { requestOptions: {} }) {
|
8977
|
+
const result = await _publishCloudEventSend(context, id, source, type, specversion, topicName, options);
|
8978
|
+
return _publishCloudEventDeserialize$1(result);
|
8979
|
+
}
|
8980
|
+
function _publishCloudEventsSend(context, events, topicName, options = { requestOptions: {} }) {
|
8981
|
+
var _a;
|
8982
|
+
return context.path("/topics/{topicName}:publish", topicName).post(Object.assign(Object.assign({}, coreClient$1.operationOptionsToRequestParameters(options)), { contentType: (_a = options.contentType) !== null && _a !== void 0 ? _a : "application/cloudevents-batch+json; charset=utf-8", body: (events !== null && events !== void 0 ? events : []).map((p) => {
|
8983
|
+
var _a;
|
8984
|
+
return {
|
8985
|
+
id: p["id"],
|
8986
|
+
source: p["source"],
|
8987
|
+
data: p["data"],
|
8988
|
+
data_base64: p["dataBase64"] !== undefined ? coreUtil.uint8ArrayToString(p["dataBase64"], "base64") : undefined,
|
8989
|
+
type: p["type"],
|
8990
|
+
time: (_a = p["time"]) === null || _a === void 0 ? void 0 : _a.toISOString(),
|
8991
|
+
specversion: p["specversion"],
|
8992
|
+
dataschema: p["dataschema"],
|
8993
|
+
datacontenttype: p["datacontenttype"],
|
8994
|
+
subject: p["subject"],
|
8995
|
+
};
|
8996
|
+
}) }));
|
8997
|
+
}
|
8998
|
+
async function _publishCloudEventsDeserialize(result) {
|
8999
|
+
if (isUnexpected(result)) {
|
9000
|
+
throw result.body;
|
9001
|
+
}
|
9002
|
+
return result.body;
|
9003
|
+
}
|
9004
|
+
/** Publish Batch Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error. */
|
9005
|
+
async function publishCloudEvents(context, events, topicName, options = { requestOptions: {} }) {
|
9006
|
+
const result = await _publishCloudEventsSend(context, events, topicName, options);
|
9007
|
+
return _publishCloudEventsDeserialize(result);
|
9008
|
+
}
|
9009
|
+
function _receiveCloudEventsSend(context, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9010
|
+
return context
|
9011
|
+
.path("/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:receive", topicName, eventSubscriptionName)
|
9012
|
+
.post(Object.assign(Object.assign({}, coreClient$1.operationOptionsToRequestParameters(options)), { queryParameters: {
|
9013
|
+
maxEvents: options === null || options === void 0 ? void 0 : options.maxEvents,
|
9014
|
+
maxWaitTime: options === null || options === void 0 ? void 0 : options.maxWaitTime,
|
9015
|
+
} }));
|
9016
|
+
}
|
9017
|
+
async function _receiveCloudEventsDeserialize(result) {
|
9018
|
+
var _a;
|
9019
|
+
if (isUnexpected(result)) {
|
9020
|
+
throw result.body;
|
9021
|
+
}
|
9022
|
+
return {
|
9023
|
+
value: ((_a = result.body["value"]) !== null && _a !== void 0 ? _a : []).map((p) => ({
|
9024
|
+
brokerProperties: {
|
9025
|
+
lockToken: p.brokerProperties["lockToken"],
|
9026
|
+
deliveryCount: p.brokerProperties["deliveryCount"],
|
9027
|
+
},
|
9028
|
+
event: {
|
9029
|
+
id: p.event["id"],
|
9030
|
+
source: p.event["source"],
|
9031
|
+
data: p.event["data"],
|
9032
|
+
dataBase64: typeof p.event["data_base64"] === "string"
|
9033
|
+
? coreUtil.stringToUint8Array(p.event["data_base64"], "base64")
|
9034
|
+
: p.event["data_base64"],
|
9035
|
+
type: p.event["type"],
|
9036
|
+
time: p.event["time"] !== undefined ? new Date(p.event["time"]) : undefined,
|
9037
|
+
specversion: p.event["specversion"],
|
9038
|
+
dataschema: p.event["dataschema"],
|
9039
|
+
datacontenttype: p.event["datacontenttype"],
|
9040
|
+
subject: p.event["subject"],
|
9041
|
+
},
|
9042
|
+
})),
|
9043
|
+
};
|
9044
|
+
}
|
9045
|
+
/** Receive Batch of Cloud Events from the Event Subscription. */
|
9046
|
+
async function receiveCloudEvents(context, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9047
|
+
const result = await _receiveCloudEventsSend(context, topicName, eventSubscriptionName, options);
|
9048
|
+
return _receiveCloudEventsDeserialize(result);
|
9049
|
+
}
|
9050
|
+
function _acknowledgeCloudEventsSend(context, lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9051
|
+
return context
|
9052
|
+
.path("/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:acknowledge", topicName, eventSubscriptionName)
|
9053
|
+
.post(Object.assign(Object.assign({}, coreClient$1.operationOptionsToRequestParameters(options)), { body: { lockTokens: lockTokens } }));
|
9054
|
+
}
|
9055
|
+
async function _acknowledgeCloudEventsDeserialize(result) {
|
9056
|
+
var _a;
|
9057
|
+
if (isUnexpected(result)) {
|
9058
|
+
throw result.body;
|
9059
|
+
}
|
9060
|
+
return {
|
9061
|
+
failedLockTokens: ((_a = result.body["failedLockTokens"]) !== null && _a !== void 0 ? _a : []).map((p) => ({
|
9062
|
+
lockToken: p["lockToken"],
|
9063
|
+
error: p.error,
|
9064
|
+
})),
|
9065
|
+
succeededLockTokens: result.body["succeededLockTokens"],
|
9066
|
+
};
|
9067
|
+
}
|
9068
|
+
/** Acknowledge batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully acknowledged lockTokens, along with other failed lockTokens with their corresponding error information. Successfully acknowledged events will no longer be available to any consumer. */
|
9069
|
+
async function acknowledgeCloudEvents(context, lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9070
|
+
const result = await _acknowledgeCloudEventsSend(context, lockTokens, topicName, eventSubscriptionName, options);
|
9071
|
+
return _acknowledgeCloudEventsDeserialize(result);
|
9072
|
+
}
|
9073
|
+
function _releaseCloudEventsSend(context, lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9074
|
+
return context
|
9075
|
+
.path("/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:release", topicName, eventSubscriptionName)
|
9076
|
+
.post(Object.assign(Object.assign({}, coreClient$1.operationOptionsToRequestParameters(options)), { queryParameters: {
|
9077
|
+
releaseDelayInSeconds: options === null || options === void 0 ? void 0 : options.releaseDelayInSeconds,
|
9078
|
+
}, body: { lockTokens: lockTokens } }));
|
9079
|
+
}
|
9080
|
+
async function _releaseCloudEventsDeserialize(result) {
|
9081
|
+
var _a;
|
9082
|
+
if (isUnexpected(result)) {
|
9083
|
+
throw result.body;
|
9084
|
+
}
|
9085
|
+
return {
|
9086
|
+
failedLockTokens: ((_a = result.body["failedLockTokens"]) !== null && _a !== void 0 ? _a : []).map((p) => ({
|
9087
|
+
lockToken: p["lockToken"],
|
9088
|
+
error: p.error,
|
9089
|
+
})),
|
9090
|
+
succeededLockTokens: result.body["succeededLockTokens"],
|
9091
|
+
};
|
9092
|
+
}
|
9093
|
+
/** Release batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully released lockTokens, along with other failed lockTokens with their corresponding error information. */
|
9094
|
+
async function releaseCloudEvents(context, lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9095
|
+
const result = await _releaseCloudEventsSend(context, lockTokens, topicName, eventSubscriptionName, options);
|
9096
|
+
return _releaseCloudEventsDeserialize(result);
|
9097
|
+
}
|
9098
|
+
function _rejectCloudEventsSend(context, lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9099
|
+
return context
|
9100
|
+
.path("/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:reject", topicName, eventSubscriptionName)
|
9101
|
+
.post(Object.assign(Object.assign({}, coreClient$1.operationOptionsToRequestParameters(options)), { body: { lockTokens: lockTokens } }));
|
9102
|
+
}
|
9103
|
+
async function _rejectCloudEventsDeserialize(result) {
|
9104
|
+
var _a;
|
9105
|
+
if (isUnexpected(result)) {
|
9106
|
+
throw result.body;
|
9107
|
+
}
|
9108
|
+
return {
|
9109
|
+
failedLockTokens: ((_a = result.body["failedLockTokens"]) !== null && _a !== void 0 ? _a : []).map((p) => ({
|
9110
|
+
lockToken: p["lockToken"],
|
9111
|
+
error: p.error,
|
9112
|
+
})),
|
9113
|
+
succeededLockTokens: result.body["succeededLockTokens"],
|
9114
|
+
};
|
9115
|
+
}
|
9116
|
+
/** Reject batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully rejected lockTokens, along with other failed lockTokens with their corresponding error information. */
|
9117
|
+
async function rejectCloudEvents(context, lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9118
|
+
const result = await _rejectCloudEventsSend(context, lockTokens, topicName, eventSubscriptionName, options);
|
9119
|
+
return _rejectCloudEventsDeserialize(result);
|
9120
|
+
}
|
9121
|
+
function _renewCloudEventLocksSend(context, lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9122
|
+
return context
|
9123
|
+
.path("/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:renewLock", topicName, eventSubscriptionName)
|
9124
|
+
.post(Object.assign(Object.assign({}, coreClient$1.operationOptionsToRequestParameters(options)), { body: { lockTokens: lockTokens } }));
|
9125
|
+
}
|
9126
|
+
async function _renewCloudEventLocksDeserialize(result) {
|
9127
|
+
var _a;
|
9128
|
+
if (isUnexpected(result)) {
|
9129
|
+
throw result.body;
|
9130
|
+
}
|
9131
|
+
return {
|
9132
|
+
failedLockTokens: ((_a = result.body["failedLockTokens"]) !== null && _a !== void 0 ? _a : []).map((p) => ({
|
9133
|
+
lockToken: p["lockToken"],
|
9134
|
+
error: p.error,
|
9135
|
+
})),
|
9136
|
+
succeededLockTokens: result.body["succeededLockTokens"],
|
9137
|
+
};
|
9138
|
+
}
|
9139
|
+
/** Renew lock for batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully renewed lockTokens, along with other failed lockTokens with their corresponding error information. */
|
9140
|
+
async function renewCloudEventLocks(context, lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9141
|
+
const result = await _renewCloudEventLocksSend(context, lockTokens, topicName, eventSubscriptionName, options);
|
9142
|
+
return _renewCloudEventLocksDeserialize(result);
|
9143
|
+
}
|
9144
|
+
|
9145
|
+
// Copyright (c) Microsoft Corporation.
|
9146
|
+
// Licensed under the MIT license.
|
9147
|
+
let EventGridClient$1 = class EventGridClient {
|
9148
|
+
getClient() {
|
9149
|
+
return this._client;
|
9150
|
+
}
|
9151
|
+
/** Azure Messaging EventGrid Client */
|
9152
|
+
constructor(endpoint, credential, options = {}) {
|
9153
|
+
this._client = createEventGrid(endpoint, credential, options);
|
9154
|
+
}
|
9155
|
+
/** Publish Single Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error. */
|
9156
|
+
publishCloudEvent(id, source, type, specversion, topicName, options = { requestOptions: {} }) {
|
9157
|
+
return publishCloudEvent(this._client, id, source, type, specversion, topicName, options);
|
9158
|
+
}
|
9159
|
+
/** Publish Batch Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error. */
|
9160
|
+
publishCloudEvents(events, topicName, options = { requestOptions: {} }) {
|
9161
|
+
return publishCloudEvents(this._client, events, topicName, options);
|
9162
|
+
}
|
9163
|
+
/** Receive Batch of Cloud Events from the Event Subscription. */
|
9164
|
+
receiveCloudEvents(topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9165
|
+
return receiveCloudEvents(this._client, topicName, eventSubscriptionName, options);
|
9166
|
+
}
|
9167
|
+
/** Acknowledge batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully acknowledged lockTokens, along with other failed lockTokens with their corresponding error information. Successfully acknowledged events will no longer be available to any consumer. */
|
9168
|
+
acknowledgeCloudEvents(lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9169
|
+
return acknowledgeCloudEvents(this._client, lockTokens, topicName, eventSubscriptionName, options);
|
9170
|
+
}
|
9171
|
+
/** Release batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully released lockTokens, along with other failed lockTokens with their corresponding error information. */
|
9172
|
+
releaseCloudEvents(lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9173
|
+
return releaseCloudEvents(this._client, lockTokens, topicName, eventSubscriptionName, options);
|
9174
|
+
}
|
9175
|
+
/** Reject batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully rejected lockTokens, along with other failed lockTokens with their corresponding error information. */
|
9176
|
+
rejectCloudEvents(lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9177
|
+
return rejectCloudEvents(this._client, lockTokens, topicName, eventSubscriptionName, options);
|
9178
|
+
}
|
9179
|
+
/** Renew lock for batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully renewed lockTokens, along with other failed lockTokens with their corresponding error information. */
|
9180
|
+
renewCloudEventLocks(lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9181
|
+
return renewCloudEventLocks(this._client, lockTokens, topicName, eventSubscriptionName, options);
|
9182
|
+
}
|
9183
|
+
};
|
9184
|
+
|
9185
|
+
// Copyright (c) Microsoft Corporation.
|
9186
|
+
// Licensed under the MIT license.
|
9187
|
+
async function publishCloudEventBinaryMode(context, id, source, type, specversion, topicName, options = { requestOptions: {} }) {
|
9188
|
+
const result = await _publishCloudEventSendBinaryMode(context, id, source, type, specversion, topicName, options);
|
9189
|
+
return _publishCloudEventDeserialize(result);
|
9190
|
+
}
|
9191
|
+
async function _publishCloudEventDeserialize(result) {
|
9192
|
+
if (isUnexpected(result)) {
|
9193
|
+
throw result.body;
|
9194
|
+
}
|
9195
|
+
return result.body;
|
9196
|
+
}
|
9197
|
+
function _publishCloudEventSendBinaryMode(context, id, source, type, specversion, topicName, options = { requestOptions: {} }) {
|
9198
|
+
var _a, _b;
|
9199
|
+
const headers = {
|
9200
|
+
"ce-id": id,
|
9201
|
+
"ce-source": source,
|
9202
|
+
"ce-type": type,
|
9203
|
+
"ce-specversion": specversion,
|
9204
|
+
};
|
9205
|
+
if (options === null || options === void 0 ? void 0 : options.time) {
|
9206
|
+
headers["ce-time"] = options.time.toISOString();
|
9207
|
+
}
|
9208
|
+
if (options === null || options === void 0 ? void 0 : options.dataschema) {
|
9209
|
+
headers["ce-dataschema"] = options.dataschema;
|
9210
|
+
}
|
9211
|
+
if (options === null || options === void 0 ? void 0 : options.datacontenttype) {
|
9212
|
+
headers["ce-datacontenttype"] = options.datacontenttype;
|
9213
|
+
}
|
9214
|
+
if (options === null || options === void 0 ? void 0 : options.subject) {
|
9215
|
+
headers["ce-subject"] = options.subject;
|
9216
|
+
}
|
9217
|
+
let data;
|
9218
|
+
if (options === null || options === void 0 ? void 0 : options.data) {
|
9219
|
+
// If data is already encoded
|
9220
|
+
if (buffer.Buffer.isBuffer(options.data)) {
|
9221
|
+
data = options.data;
|
9222
|
+
}
|
9223
|
+
else {
|
9224
|
+
throw new Error(`CloudEvent data must be binary when in binary mode.`);
|
9225
|
+
}
|
9226
|
+
}
|
9227
|
+
else {
|
9228
|
+
if (options === null || options === void 0 ? void 0 : options.dataBase64) {
|
9229
|
+
data = options.dataBase64;
|
9230
|
+
}
|
9231
|
+
}
|
9232
|
+
return context.path("/topics/{topicName}:publish", topicName).post(Object.assign(Object.assign({}, coreClient$1.operationOptionsToRequestParameters(options)), { contentType: (_a = options.contentType) !== null && _a !== void 0 ? _a : "application/cloudevents+json; charset=utf-8", headers, body: {
|
9233
|
+
id: id,
|
9234
|
+
source: source,
|
9235
|
+
data,
|
9236
|
+
type: type,
|
9237
|
+
time: (_b = options === null || options === void 0 ? void 0 : options.time) === null || _b === void 0 ? void 0 : _b.toISOString(),
|
9238
|
+
specversion: specversion,
|
9239
|
+
dataschema: options === null || options === void 0 ? void 0 : options.dataschema,
|
9240
|
+
datacontenttype: options === null || options === void 0 ? void 0 : options.datacontenttype,
|
9241
|
+
subject: options === null || options === void 0 ? void 0 : options.subject,
|
9242
|
+
} }));
|
9243
|
+
}
|
9244
|
+
|
9245
|
+
// Copyright (c) Microsoft Corporation.
|
9246
|
+
// Licensed under the MIT license.
|
9247
|
+
/**
|
9248
|
+
* Event Grid Client
|
9249
|
+
*/
|
9250
|
+
class EventGridClient {
|
9251
|
+
/** Azure Messaging EventGrid Client */
|
9252
|
+
constructor(endpoint, credential, options = {}) {
|
9253
|
+
// credential.update(`SharedAccessKey ${credential.key}`);
|
9254
|
+
this._client = new EventGridClient$1(endpoint, credential, options);
|
9255
|
+
}
|
9256
|
+
/**
|
9257
|
+
* Publish Single Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200
|
9258
|
+
* status code with an empty JSON object in response. Otherwise, the server can return various error codes.
|
9259
|
+
* For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message
|
9260
|
+
* is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for
|
9261
|
+
* internal server error.
|
9262
|
+
*
|
9263
|
+
* @param event - Event to publish
|
9264
|
+
* @param topicName - Topic to publish the event
|
9265
|
+
* @param options - Options to publish
|
9266
|
+
*
|
9267
|
+
*/
|
9268
|
+
publishCloudEvent(event, topicName, options = { requestOptions: {} }) {
|
9269
|
+
const cloudEventWireModel = convertCloudEventToModelType(event);
|
9270
|
+
if (!options.binaryMode) {
|
9271
|
+
return this._client.publishCloudEvent(cloudEventWireModel.id, cloudEventWireModel.source, cloudEventWireModel.type, cloudEventWireModel.specversion, topicName, Object.assign({ time: cloudEventWireModel.time, dataschema: cloudEventWireModel.dataschema, datacontenttype: cloudEventWireModel.datacontenttype, subject: cloudEventWireModel.subject, contentType: options.contentType, data: cloudEventWireModel.data, dataBase64: cloudEventWireModel.dataBase64 }, options));
|
9272
|
+
}
|
9273
|
+
else {
|
9274
|
+
return publishCloudEventBinaryMode(this._client.getClient(), cloudEventWireModel.id, cloudEventWireModel.source, cloudEventWireModel.type, cloudEventWireModel.specversion, topicName, Object.assign({ time: cloudEventWireModel.time, dataschema: cloudEventWireModel.dataschema, datacontenttype: cloudEventWireModel.datacontenttype, subject: cloudEventWireModel.subject, contentType: options.contentType, data: cloudEventWireModel.data, dataBase64: cloudEventWireModel.dataBase64 }, options));
|
9275
|
+
}
|
9276
|
+
}
|
9277
|
+
/**
|
9278
|
+
* Publish Batch Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200
|
9279
|
+
* status code with an empty JSON object in response. Otherwise, the server can return various error codes.
|
9280
|
+
* For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message
|
9281
|
+
* is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for
|
9282
|
+
* internal server error.
|
9283
|
+
*
|
9284
|
+
* @param events - Events to publish
|
9285
|
+
* @param topicName - Topic to publish the event
|
9286
|
+
* @param options - Options to publish
|
9287
|
+
*
|
9288
|
+
*/
|
9289
|
+
publishCloudEvents(events, topicName, options = { requestOptions: {} }) {
|
9290
|
+
const eventsWireModel = [];
|
9291
|
+
for (const individualevent of events) {
|
9292
|
+
eventsWireModel.push(convertCloudEventToModelType(individualevent));
|
9293
|
+
}
|
9294
|
+
return this._client.publishCloudEvents(eventsWireModel, topicName, options);
|
9295
|
+
}
|
9296
|
+
/**
|
9297
|
+
* Receive Batch of Cloud Events from the Event Subscription.
|
9298
|
+
*
|
9299
|
+
* @param topicName - Topic to receive
|
9300
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
9301
|
+
* @param options - Options to receive
|
9302
|
+
*
|
9303
|
+
*/
|
9304
|
+
receiveCloudEvents(topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9305
|
+
return this._client.receiveCloudEvents(topicName, eventSubscriptionName, options);
|
9306
|
+
}
|
9307
|
+
/**
|
9308
|
+
* Acknowledge batch of Cloud Events. The server responds with an HTTP 200 status code if at least one
|
9309
|
+
* event is successfully acknowledged. The response body will include the set of successfully acknowledged
|
9310
|
+
* lockTokens, along with other failed lockTokens with their corresponding error information. Successfully
|
9311
|
+
* acknowledged events will no longer be available to any consumer.
|
9312
|
+
*
|
9313
|
+
* @param lockTokens - Lock Tokens
|
9314
|
+
* @param topicName - Topic Name
|
9315
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
9316
|
+
* @param options - Options to Acknowledge
|
9317
|
+
*
|
9318
|
+
*/
|
9319
|
+
acknowledgeCloudEvents(lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9320
|
+
return this._client.acknowledgeCloudEvents(lockTokens, topicName, eventSubscriptionName, options);
|
9321
|
+
}
|
9322
|
+
/**
|
9323
|
+
* Release batch of Cloud Events. The server responds with an HTTP 200 status code if at least one event is
|
9324
|
+
* successfully released. The response body will include the set of successfully released lockTokens, along
|
9325
|
+
* with other failed lockTokens with their corresponding error information.
|
9326
|
+
*
|
9327
|
+
* @param lockTokens - Lock Tokens
|
9328
|
+
* @param topicName - Topic Name
|
9329
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
9330
|
+
* @param options - Options to release
|
9331
|
+
*
|
9332
|
+
*/
|
9333
|
+
releaseCloudEvents(lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9334
|
+
return this._client.releaseCloudEvents(lockTokens, topicName, eventSubscriptionName, options);
|
9335
|
+
}
|
9336
|
+
/**
|
9337
|
+
* Reject batch of Cloud Events.
|
9338
|
+
*
|
9339
|
+
* @param lockTokens - Lock Tokens
|
9340
|
+
* @param topicName - Topic Name
|
9341
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
9342
|
+
* @param options - Options to reject
|
9343
|
+
*
|
9344
|
+
*/
|
9345
|
+
rejectCloudEvents(lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9346
|
+
return this._client.rejectCloudEvents(lockTokens, topicName, eventSubscriptionName, options);
|
9347
|
+
}
|
9348
|
+
/**
|
9349
|
+
* Renew lock for batch of Cloud Events.
|
9350
|
+
*
|
9351
|
+
* @param lockTokens - Lock Tokens
|
9352
|
+
* @param topicName - Topic Name
|
9353
|
+
* @param eventSubscriptionName - Name of the Event Subscription
|
9354
|
+
* @param options - Options to renew
|
9355
|
+
*/
|
9356
|
+
renewCloudEventLocks(lockTokens, topicName, eventSubscriptionName, options = { requestOptions: {} }) {
|
9357
|
+
return this._client.renewCloudEventLocks(lockTokens, topicName, eventSubscriptionName, options);
|
9358
|
+
}
|
9359
|
+
}
|
9360
|
+
function convertCloudEventToModelType(event) {
|
9361
|
+
var _a, _b, _c, _d, _e;
|
9362
|
+
if (event.extensionAttributes) {
|
9363
|
+
for (const propName in event.extensionAttributes) {
|
9364
|
+
// Per the cloud events spec: "CloudEvents attribute names MUST consist of lower-case letters ('a' to 'z') or digits ('0' to '9') from the ASCII character set"
|
9365
|
+
// they also can not match an existing defined property name.
|
9366
|
+
if (!/^[a-z0-9]*$/.test(propName) ||
|
9367
|
+
cloudEventReservedPropertyNames.indexOf(propName) !== -1) {
|
9368
|
+
throw new Error(`invalid extension attribute name: ${propName}`);
|
9369
|
+
}
|
9370
|
+
}
|
9371
|
+
}
|
9372
|
+
const converted = Object.assign({ specversion: (_a = event.specversion) !== null && _a !== void 0 ? _a : "1.0", type: event.type, source: event.source, id: (_b = event.id) !== null && _b !== void 0 ? _b : uuid.v4(), time: (_c = event.time) !== null && _c !== void 0 ? _c : new Date(), subject: event.subject, dataschema: event.dataschema }, ((_d = event.extensionAttributes) !== null && _d !== void 0 ? _d : []));
|
9373
|
+
if (event.data instanceof Uint8Array) {
|
9374
|
+
if (!event.datacontenttype) {
|
9375
|
+
throw new Error("a data content type must be provided when sending an event with binary data");
|
9376
|
+
}
|
9377
|
+
converted.datacontenttype = event.datacontenttype;
|
9378
|
+
converted.dataBase64 = event.data;
|
9379
|
+
}
|
9380
|
+
else {
|
9381
|
+
converted.datacontenttype =
|
9382
|
+
(_e = event.datacontenttype) !== null && _e !== void 0 ? _e : "application/cloudevents+json; charset=utf-8";
|
9383
|
+
converted.data = event.data;
|
9384
|
+
}
|
9385
|
+
return converted;
|
9386
|
+
}
|
9387
|
+
|
10177
9388
|
Object.defineProperty(exports, 'AzureKeyCredential', {
|
10178
9389
|
enumerable: true,
|
10179
9390
|
get: function () { return coreAuth.AzureKeyCredential; }
|
@@ -10182,6 +9393,7 @@ Object.defineProperty(exports, 'AzureSASCredential', {
|
|
10182
9393
|
enumerable: true,
|
10183
9394
|
get: function () { return coreAuth.AzureSASCredential; }
|
10184
9395
|
});
|
9396
|
+
exports.EventGridClient = EventGridClient;
|
10185
9397
|
exports.EventGridDeserializer = EventGridDeserializer;
|
10186
9398
|
exports.EventGridPublisherClient = EventGridPublisherClient;
|
10187
9399
|
exports.generateSharedAccessSignature = generateSharedAccessSignature;
|