-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
EventGridModelFactory.cs
3113 lines (2810 loc) · 284 KB
/
EventGridModelFactory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
using Azure.Messaging.EventGrid.SystemEvents;
namespace Azure.Messaging.EventGrid
{
/// <summary> Model factory for models. </summary>
public static partial class EventGridModelFactory
{
/// <summary> Initializes a new instance of StorageBlobCreatedEventData. </summary>
/// <param name="api"> The name of the API/operation that triggered this event. </param>
/// <param name="clientRequestId"> A request id provided by the client of the storage API operation that triggered this event. </param>
/// <param name="requestId"> The request id generated by the Storage service for the storage API operation that triggered this event. </param>
/// <param name="eTag"> The etag of the blob at the time this event was triggered. </param>
/// <param name="contentType"> The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. </param>
/// <param name="contentLength"> The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. </param>
/// <param name="contentOffset"> The offset of the blob in bytes. </param>
/// <param name="blobType"> The type of blob. </param>
/// <param name="url"> The path to the blob. </param>
/// <param name="sequencer"> An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. </param>
/// <param name="identity"> The identity of the requester that triggered this event. </param>
/// <param name="storageDiagnostics"> For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. </param>
/// <returns> A new <see cref="SystemEvents.StorageBlobCreatedEventData"/> instance for mocking. </returns>
public static StorageBlobCreatedEventData StorageBlobCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string contentType = null, long? contentLength = null, long? contentOffset = null, string blobType = null, string url = null, string sequencer = null, string identity = null, object storageDiagnostics = null)
{
return new StorageBlobCreatedEventData(api, clientRequestId, requestId, eTag, contentType, contentLength, contentOffset, blobType, url, sequencer, identity, storageDiagnostics);
}
/// <summary> Initializes a new instance of StorageBlobDeletedEventData. </summary>
/// <param name="api"> The name of the API/operation that triggered this event. </param>
/// <param name="clientRequestId"> A request id provided by the client of the storage API operation that triggered this event. </param>
/// <param name="requestId"> The request id generated by the Storage service for the storage API operation that triggered this event. </param>
/// <param name="contentType"> The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. </param>
/// <param name="blobType"> The type of blob. </param>
/// <param name="url"> The path to the blob. </param>
/// <param name="sequencer"> An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. </param>
/// <param name="identity"> The identity of the requester that triggered this event. </param>
/// <param name="storageDiagnostics"> For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. </param>
/// <returns> A new <see cref="SystemEvents.StorageBlobDeletedEventData"/> instance for mocking. </returns>
public static StorageBlobDeletedEventData StorageBlobDeletedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, string blobType = null, string url = null, string sequencer = null, string identity = null, object storageDiagnostics = null)
{
return new StorageBlobDeletedEventData(api, clientRequestId, requestId, contentType, blobType, url, sequencer, identity, storageDiagnostics);
}
/// <summary> Initializes a new instance of StorageDirectoryCreatedEventData. </summary>
/// <param name="api"> The name of the API/operation that triggered this event. </param>
/// <param name="clientRequestId"> A request id provided by the client of the storage API operation that triggered this event. </param>
/// <param name="requestId"> The request id generated by the storage service for the storage API operation that triggered this event. </param>
/// <param name="eTag"> The etag of the directory at the time this event was triggered. </param>
/// <param name="url"> The path to the directory. </param>
/// <param name="sequencer"> An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name. </param>
/// <param name="identity"> The identity of the requester that triggered this event. </param>
/// <param name="storageDiagnostics"> For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. </param>
/// <returns> A new <see cref="SystemEvents.StorageDirectoryCreatedEventData"/> instance for mocking. </returns>
public static StorageDirectoryCreatedEventData StorageDirectoryCreatedEventData(string api = null, string clientRequestId = null, string requestId = null, string eTag = null, string url = null, string sequencer = null, string identity = null, object storageDiagnostics = null)
{
return new StorageDirectoryCreatedEventData(api, clientRequestId, requestId, eTag, url, sequencer, identity, storageDiagnostics);
}
/// <summary> Initializes a new instance of StorageBlobRenamedEventData. </summary>
/// <param name="api"> The name of the API/operation that triggered this event. </param>
/// <param name="clientRequestId"> A request id provided by the client of the storage API operation that triggered this event. </param>
/// <param name="requestId"> The request id generated by the storage service for the storage API operation that triggered this event. </param>
/// <param name="sourceUrl"> The path to the blob that was renamed. </param>
/// <param name="destinationUrl"> The new path to the blob after the rename operation. </param>
/// <param name="sequencer"> An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. </param>
/// <param name="identity"> The identity of the requester that triggered this event. </param>
/// <param name="storageDiagnostics"> For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. </param>
/// <returns> A new <see cref="SystemEvents.StorageBlobRenamedEventData"/> instance for mocking. </returns>
public static StorageBlobRenamedEventData StorageBlobRenamedEventData(string api = null, string clientRequestId = null, string requestId = null, string sourceUrl = null, string destinationUrl = null, string sequencer = null, string identity = null, object storageDiagnostics = null)
{
return new StorageBlobRenamedEventData(api, clientRequestId, requestId, sourceUrl, destinationUrl, sequencer, identity, storageDiagnostics);
}
/// <summary> Initializes a new instance of StorageDirectoryRenamedEventData. </summary>
/// <param name="api"> The name of the API/operation that triggered this event. </param>
/// <param name="clientRequestId"> A request id provided by the client of the storage API operation that triggered this event. </param>
/// <param name="requestId"> The request id generated by the storage service for the storage API operation that triggered this event. </param>
/// <param name="sourceUrl"> The path to the directory that was renamed. </param>
/// <param name="destinationUrl"> The new path to the directory after the rename operation. </param>
/// <param name="sequencer"> An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name. </param>
/// <param name="identity"> The identity of the requester that triggered this event. </param>
/// <param name="storageDiagnostics"> For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. </param>
/// <returns> A new <see cref="SystemEvents.StorageDirectoryRenamedEventData"/> instance for mocking. </returns>
public static StorageDirectoryRenamedEventData StorageDirectoryRenamedEventData(string api = null, string clientRequestId = null, string requestId = null, string sourceUrl = null, string destinationUrl = null, string sequencer = null, string identity = null, object storageDiagnostics = null)
{
return new StorageDirectoryRenamedEventData(api, clientRequestId, requestId, sourceUrl, destinationUrl, sequencer, identity, storageDiagnostics);
}
/// <summary> Initializes a new instance of StorageLifecyclePolicyCompletedEventData. </summary>
/// <param name="scheduleTime"> The time the policy task was scheduled. </param>
/// <param name="deleteSummary"> Execution statistics of a specific policy action in a Blob Management cycle. </param>
/// <param name="tierToCoolSummary"> Execution statistics of a specific policy action in a Blob Management cycle. </param>
/// <param name="tierToArchiveSummary"> Execution statistics of a specific policy action in a Blob Management cycle. </param>
/// <returns> A new <see cref="SystemEvents.StorageLifecyclePolicyCompletedEventData"/> instance for mocking. </returns>
public static StorageLifecyclePolicyCompletedEventData StorageLifecyclePolicyCompletedEventData(string scheduleTime = null, StorageLifecyclePolicyActionSummaryDetail deleteSummary = null, StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = null, StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = null)
{
return new StorageLifecyclePolicyCompletedEventData(scheduleTime, deleteSummary, tierToCoolSummary, tierToArchiveSummary);
}
/// <summary> Initializes a new instance of StorageLifecyclePolicyActionSummaryDetail. </summary>
/// <param name="totalObjectsCount"> Total number of objects to be acted on by this action. </param>
/// <param name="successCount"> Number of success operations of this action. </param>
/// <param name="errorList"> Error messages of this action if any. </param>
/// <returns> A new <see cref="SystemEvents.StorageLifecyclePolicyActionSummaryDetail"/> instance for mocking. </returns>
public static StorageLifecyclePolicyActionSummaryDetail StorageLifecyclePolicyActionSummaryDetail(long? totalObjectsCount = null, long? successCount = null, string errorList = null)
{
return new StorageLifecyclePolicyActionSummaryDetail(totalObjectsCount, successCount, errorList);
}
/// <summary> Initializes a new instance of StorageBlobTierChangedEventData. </summary>
/// <param name="api"> The name of the API/operation that triggered this event. </param>
/// <param name="clientRequestId"> A request id provided by the client of the storage API operation that triggered this event. </param>
/// <param name="requestId"> The request id generated by the Storage service for the storage API operation that triggered this event. </param>
/// <param name="contentType"> The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. </param>
/// <param name="contentLength"> The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. </param>
/// <param name="blobType"> The type of blob. </param>
/// <param name="url"> The path to the blob. </param>
/// <param name="sequencer"> An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. </param>
/// <param name="identity"> The identity of the requester that triggered this event. </param>
/// <param name="storageDiagnostics"> For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. </param>
/// <returns> A new <see cref="SystemEvents.StorageBlobTierChangedEventData"/> instance for mocking. </returns>
public static StorageBlobTierChangedEventData StorageBlobTierChangedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = null, string blobType = null, string url = null, string sequencer = null, string identity = null, object storageDiagnostics = null)
{
return new StorageBlobTierChangedEventData(api, clientRequestId, requestId, contentType, contentLength, blobType, url, sequencer, identity, storageDiagnostics);
}
/// <summary> Initializes a new instance of StorageAsyncOperationInitiatedEventData. </summary>
/// <param name="api"> The name of the API/operation that triggered this event. </param>
/// <param name="clientRequestId"> A request id provided by the client of the storage API operation that triggered this event. </param>
/// <param name="requestId"> The request id generated by the Storage service for the storage API operation that triggered this event. </param>
/// <param name="contentType"> The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. </param>
/// <param name="contentLength"> The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. </param>
/// <param name="blobType"> The type of blob. </param>
/// <param name="url"> The path to the blob. </param>
/// <param name="sequencer"> An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. </param>
/// <param name="identity"> The identity of the requester that triggered this event. </param>
/// <param name="storageDiagnostics"> For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. </param>
/// <returns> A new <see cref="SystemEvents.StorageAsyncOperationInitiatedEventData"/> instance for mocking. </returns>
public static StorageAsyncOperationInitiatedEventData StorageAsyncOperationInitiatedEventData(string api = null, string clientRequestId = null, string requestId = null, string contentType = null, long? contentLength = null, string blobType = null, string url = null, string sequencer = null, string identity = null, object storageDiagnostics = null)
{
return new StorageAsyncOperationInitiatedEventData(api, clientRequestId, requestId, contentType, contentLength, blobType, url, sequencer, identity, storageDiagnostics);
}
/// <summary> Initializes a new instance of StorageBlobInventoryPolicyCompletedEventData. </summary>
/// <param name="scheduleDateTime"> The time at which inventory policy was scheduled. </param>
/// <param name="accountName"> The account name for which inventory policy is registered. </param>
/// <param name="ruleName"> The rule name for inventory policy. </param>
/// <param name="policyRunStatus"> The status of inventory run, it can be Succeeded/PartiallySucceeded/Failed. </param>
/// <param name="policyRunStatusMessage"> The status message for inventory run. </param>
/// <param name="policyRunId"> The policy run id for inventory run. </param>
/// <param name="manifestBlobUrl"> The blob URL for manifest file for inventory run. </param>
/// <returns> A new <see cref="SystemEvents.StorageBlobInventoryPolicyCompletedEventData"/> instance for mocking. </returns>
public static StorageBlobInventoryPolicyCompletedEventData StorageBlobInventoryPolicyCompletedEventData(DateTimeOffset? scheduleDateTime = null, string accountName = null, string ruleName = null, string policyRunStatus = null, string policyRunStatusMessage = null, string policyRunId = null, string manifestBlobUrl = null)
{
return new StorageBlobInventoryPolicyCompletedEventData(scheduleDateTime, accountName, ruleName, policyRunStatus, policyRunStatusMessage, policyRunId, manifestBlobUrl);
}
/// <summary> Initializes a new instance of StorageTaskQueuedEventData. </summary>
/// <param name="queuedDateTime"> The time at which a storage task was queued. </param>
/// <param name="taskExecutionId"> The execution id for a storage task. </param>
/// <returns> A new <see cref="SystemEvents.StorageTaskQueuedEventData"/> instance for mocking. </returns>
public static StorageTaskQueuedEventData StorageTaskQueuedEventData(DateTimeOffset? queuedDateTime = null, string taskExecutionId = null)
{
return new StorageTaskQueuedEventData(queuedDateTime, taskExecutionId);
}
/// <summary> Initializes a new instance of StorageTaskCompletedEventData. </summary>
/// <param name="status"> The status for a storage task. </param>
/// <param name="completedDateTime"> The time at which a storage task was completed. </param>
/// <param name="taskExecutionId"> The execution id for a storage task. </param>
/// <param name="taskName"> The task name for a storage task. </param>
/// <param name="summaryReportBlobUri"> The summary report blob url for a storage task. </param>
/// <returns> A new <see cref="SystemEvents.StorageTaskCompletedEventData"/> instance for mocking. </returns>
public static StorageTaskCompletedEventData StorageTaskCompletedEventData(StorageTaskCompletedStatus? status = null, DateTimeOffset? completedDateTime = null, string taskExecutionId = null, string taskName = null, Uri summaryReportBlobUri = null)
{
return new StorageTaskCompletedEventData(status, completedDateTime, taskExecutionId, taskName, summaryReportBlobUri);
}
/// <summary> Initializes a new instance of EventHubCaptureFileCreatedEventData. </summary>
/// <param name="fileurl"> The path to the capture file. </param>
/// <param name="fileType"> The file type of the capture file. </param>
/// <param name="partitionId"> The shard ID. </param>
/// <param name="sizeInBytes"> The file size. </param>
/// <param name="eventCount"> The number of events in the file. </param>
/// <param name="firstSequenceNumber"> The smallest sequence number from the queue. </param>
/// <param name="lastSequenceNumber"> The last sequence number from the queue. </param>
/// <param name="firstEnqueueTime"> The first time from the queue. </param>
/// <param name="lastEnqueueTime"> The last time from the queue. </param>
/// <returns> A new <see cref="SystemEvents.EventHubCaptureFileCreatedEventData"/> instance for mocking. </returns>
public static EventHubCaptureFileCreatedEventData EventHubCaptureFileCreatedEventData(string fileurl = null, string fileType = null, string partitionId = null, int? sizeInBytes = null, int? eventCount = null, int? firstSequenceNumber = null, int? lastSequenceNumber = null, DateTimeOffset? firstEnqueueTime = null, DateTimeOffset? lastEnqueueTime = null)
{
return new EventHubCaptureFileCreatedEventData(fileurl, fileType, partitionId, sizeInBytes, eventCount, firstSequenceNumber, lastSequenceNumber, firstEnqueueTime, lastEnqueueTime);
}
/// <summary> Initializes a new instance of ResourceAuthorization. </summary>
/// <param name="scope"> The scope of the authorization. </param>
/// <param name="action"> The action being requested. </param>
/// <param name="evidence"> The evidence for the authorization. </param>
/// <returns> A new <see cref="SystemEvents.ResourceAuthorization"/> instance for mocking. </returns>
public static ResourceAuthorization ResourceAuthorization(string scope = null, string action = null, IReadOnlyDictionary<string, string> evidence = null)
{
evidence ??= new Dictionary<string, string>();
return new ResourceAuthorization(scope, action, evidence);
}
/// <summary> Initializes a new instance of SubscriptionValidationEventData. </summary>
/// <param name="validationCode"> The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). </param>
/// <param name="validationUrl"> The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). </param>
/// <returns> A new <see cref="SystemEvents.SubscriptionValidationEventData"/> instance for mocking. </returns>
public static SubscriptionValidationEventData SubscriptionValidationEventData(string validationCode = null, string validationUrl = null)
{
return new SubscriptionValidationEventData(validationCode, validationUrl);
}
/// <summary> Initializes a new instance of SubscriptionDeletedEventData. </summary>
/// <param name="eventSubscriptionId"> The Azure resource ID of the deleted event subscription. </param>
/// <returns> A new <see cref="SystemEvents.SubscriptionDeletedEventData"/> instance for mocking. </returns>
public static SubscriptionDeletedEventData SubscriptionDeletedEventData(string eventSubscriptionId = null)
{
return new SubscriptionDeletedEventData(eventSubscriptionId);
}
/// <summary> Initializes a new instance of EventGridMqttClientCreatedOrUpdatedEventData. </summary>
/// <param name="clientAuthenticationName"> Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. </param>
/// <param name="clientName"> Name of the client resource in the Event Grid namespace. </param>
/// <param name="namespaceName"> Name of the Event Grid namespace where the MQTT client was created or updated. </param>
/// <param name="state"> Configured state of the client. The value could be Enabled or Disabled. </param>
/// <param name="createdOn"> Time the client resource is created based on the provider's UTC time. </param>
/// <param name="updatedOn"> Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property. </param>
/// <param name="attributes"> The key-value attributes that are assigned to the client resource. </param>
/// <returns> A new <see cref="SystemEvents.EventGridMqttClientCreatedOrUpdatedEventData"/> instance for mocking. </returns>
public static EventGridMqttClientCreatedOrUpdatedEventData EventGridMqttClientCreatedOrUpdatedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, EventGridMqttClientState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, IReadOnlyDictionary<string, string> attributes = null)
{
attributes ??= new Dictionary<string, string>();
return new EventGridMqttClientCreatedOrUpdatedEventData(clientAuthenticationName, clientName, namespaceName, state, createdOn, updatedOn, attributes);
}
/// <summary> Initializes a new instance of EventGridMqttClientEventData. </summary>
/// <param name="clientAuthenticationName"> Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. </param>
/// <param name="clientName"> Name of the client resource in the Event Grid namespace. </param>
/// <param name="namespaceName"> Name of the Event Grid namespace where the MQTT client was created or updated. </param>
/// <returns> A new <see cref="SystemEvents.EventGridMqttClientEventData"/> instance for mocking. </returns>
public static EventGridMqttClientEventData EventGridMqttClientEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null)
{
return new EventGridMqttClientEventData(clientAuthenticationName, clientName, namespaceName);
}
/// <summary> Initializes a new instance of EventGridMqttClientDeletedEventData. </summary>
/// <param name="clientAuthenticationName"> Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. </param>
/// <param name="clientName"> Name of the client resource in the Event Grid namespace. </param>
/// <param name="namespaceName"> Name of the Event Grid namespace where the MQTT client was created or updated. </param>
/// <returns> A new <see cref="SystemEvents.EventGridMqttClientDeletedEventData"/> instance for mocking. </returns>
public static EventGridMqttClientDeletedEventData EventGridMqttClientDeletedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null)
{
return new EventGridMqttClientDeletedEventData(clientAuthenticationName, clientName, namespaceName);
}
/// <summary> Initializes a new instance of EventGridMqttClientSessionConnectedEventData. </summary>
/// <param name="clientAuthenticationName"> Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. </param>
/// <param name="clientName"> Name of the client resource in the Event Grid namespace. </param>
/// <param name="namespaceName"> Name of the Event Grid namespace where the MQTT client was created or updated. </param>
/// <param name="clientSessionName"> Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. </param>
/// <param name="sequenceNumber"> A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event. </param>
/// <returns> A new <see cref="SystemEvents.EventGridMqttClientSessionConnectedEventData"/> instance for mocking. </returns>
public static EventGridMqttClientSessionConnectedEventData EventGridMqttClientSessionConnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long? sequenceNumber = null)
{
return new EventGridMqttClientSessionConnectedEventData(clientAuthenticationName, clientName, namespaceName, clientSessionName, sequenceNumber);
}
/// <summary> Initializes a new instance of EventGridMqttClientSessionDisconnectedEventData. </summary>
/// <param name="clientAuthenticationName"> Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. </param>
/// <param name="clientName"> Name of the client resource in the Event Grid namespace. </param>
/// <param name="namespaceName"> Name of the Event Grid namespace where the MQTT client was created or updated. </param>
/// <param name="clientSessionName"> Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters. </param>
/// <param name="sequenceNumber"> A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event. </param>
/// <param name="disconnectionReason"> Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table. </param>
/// <returns> A new <see cref="SystemEvents.EventGridMqttClientSessionDisconnectedEventData"/> instance for mocking. </returns>
public static EventGridMqttClientSessionDisconnectedEventData EventGridMqttClientSessionDisconnectedEventData(string clientAuthenticationName = null, string clientName = null, string namespaceName = null, string clientSessionName = null, long? sequenceNumber = null, EventGridMqttClientDisconnectionReason? disconnectionReason = null)
{
return new EventGridMqttClientSessionDisconnectedEventData(clientAuthenticationName, clientName, namespaceName, clientSessionName, sequenceNumber, disconnectionReason);
}
/// <summary> Initializes a new instance of DataBoxCopyStartedEventData. </summary>
/// <param name="serialNumber"> Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. </param>
/// <param name="stageName"> Name of the current Stage. </param>
/// <param name="stageTime"> The time at which the stage happened. </param>
/// <returns> A new <see cref="SystemEvents.DataBoxCopyStartedEventData"/> instance for mocking. </returns>
public static DataBoxCopyStartedEventData DataBoxCopyStartedEventData(string serialNumber = null, DataBoxStageName? stageName = null, DateTimeOffset? stageTime = null)
{
return new DataBoxCopyStartedEventData(serialNumber, stageName, stageTime);
}
/// <summary> Initializes a new instance of DataBoxCopyCompletedEventData. </summary>
/// <param name="serialNumber"> Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. </param>
/// <param name="stageName"> Name of the current Stage. </param>
/// <param name="stageTime"> The time at which the stage happened. </param>
/// <returns> A new <see cref="SystemEvents.DataBoxCopyCompletedEventData"/> instance for mocking. </returns>
public static DataBoxCopyCompletedEventData DataBoxCopyCompletedEventData(string serialNumber = null, DataBoxStageName? stageName = null, DateTimeOffset? stageTime = null)
{
return new DataBoxCopyCompletedEventData(serialNumber, stageName, stageTime);
}
/// <summary> Initializes a new instance of DataBoxOrderCompletedEventData. </summary>
/// <param name="serialNumber"> Serial Number of the device associated with the event. The list is comma separated if more than one serial number is associated. </param>
/// <param name="stageName"> Name of the current Stage. </param>
/// <param name="stageTime"> The time at which the stage happened. </param>
/// <returns> A new <see cref="SystemEvents.DataBoxOrderCompletedEventData"/> instance for mocking. </returns>
public static DataBoxOrderCompletedEventData DataBoxOrderCompletedEventData(string serialNumber = null, DataBoxStageName? stageName = null, DateTimeOffset? stageTime = null)
{
return new DataBoxOrderCompletedEventData(serialNumber, stageName, stageTime);
}
/// <summary> Initializes a new instance of IotHubDeviceCreatedEventData. </summary>
/// <param name="deviceId"> The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. </param>
/// <param name="hubName"> Name of the IoT Hub where the device was created or deleted. </param>
/// <param name="twin"> Information about the device twin, which is the cloud representation of application device metadata. </param>
/// <returns> A new <see cref="SystemEvents.IotHubDeviceCreatedEventData"/> instance for mocking. </returns>
public static IotHubDeviceCreatedEventData IotHubDeviceCreatedEventData(string deviceId = null, string hubName = null, DeviceTwinInfo twin = null)
{
return new IotHubDeviceCreatedEventData(deviceId, hubName, twin);
}
/// <summary> Initializes a new instance of DeviceLifeCycleEventProperties. </summary>
/// <param name="deviceId"> The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. </param>
/// <param name="hubName"> Name of the IoT Hub where the device was created or deleted. </param>
/// <param name="twin"> Information about the device twin, which is the cloud representation of application device metadata. </param>
/// <returns> A new <see cref="SystemEvents.DeviceLifeCycleEventProperties"/> instance for mocking. </returns>
public static DeviceLifeCycleEventProperties DeviceLifeCycleEventProperties(string deviceId = null, string hubName = null, DeviceTwinInfo twin = null)
{
return new DeviceLifeCycleEventProperties(deviceId, hubName, twin);
}
/// <summary> Initializes a new instance of DeviceTwinInfo. </summary>
/// <param name="authenticationType"> Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority. </param>
/// <param name="cloudToDeviceMessageCount"> Count of cloud to device messages sent to this device. </param>
/// <param name="connectionState"> Whether the device is connected or disconnected. </param>
/// <param name="deviceId"> The unique identifier of the device twin. </param>
/// <param name="etag"> A piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin. </param>
/// <param name="lastActivityTime"> The ISO8601 timestamp of the last activity. </param>
/// <param name="properties"> Properties JSON element. </param>
/// <param name="status"> Whether the device twin is enabled or disabled. </param>
/// <param name="statusUpdateTime"> The ISO8601 timestamp of the last device twin status update. </param>
/// <param name="version"> An integer that is incremented by one each time the device twin is updated. </param>
/// <param name="x509Thumbprint"> The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate. </param>
/// <returns> A new <see cref="SystemEvents.DeviceTwinInfo"/> instance for mocking. </returns>
public static DeviceTwinInfo DeviceTwinInfo(string authenticationType = null, float? cloudToDeviceMessageCount = null, string connectionState = null, string deviceId = null, string etag = null, string lastActivityTime = null, DeviceTwinInfoProperties properties = null, string status = null, string statusUpdateTime = null, float? version = null, DeviceTwinInfoX509Thumbprint x509Thumbprint = null)
{
return new DeviceTwinInfo(authenticationType, cloudToDeviceMessageCount, connectionState, deviceId, etag, lastActivityTime, properties, status, statusUpdateTime, version, x509Thumbprint);
}
/// <summary> Initializes a new instance of DeviceTwinInfoProperties. </summary>
/// <param name="desired"> A portion of the properties that can be written only by the application back-end, and read by the device. </param>
/// <param name="reported"> A portion of the properties that can be written only by the device, and read by the application back-end. </param>
/// <returns> A new <see cref="SystemEvents.DeviceTwinInfoProperties"/> instance for mocking. </returns>
public static DeviceTwinInfoProperties DeviceTwinInfoProperties(DeviceTwinProperties desired = null, DeviceTwinProperties reported = null)
{
return new DeviceTwinInfoProperties(desired, reported);
}
/// <summary> Initializes a new instance of DeviceTwinProperties. </summary>
/// <param name="metadata"> Metadata information for the properties JSON document. </param>
/// <param name="version"> Version of device twin properties. </param>
/// <returns> A new <see cref="SystemEvents.DeviceTwinProperties"/> instance for mocking. </returns>
public static DeviceTwinProperties DeviceTwinProperties(DeviceTwinMetadata metadata = null, float? version = null)
{
return new DeviceTwinProperties(metadata, version);
}
/// <summary> Initializes a new instance of DeviceTwinMetadata. </summary>
/// <param name="lastUpdated"> The ISO8601 timestamp of the last time the properties were updated. </param>
/// <returns> A new <see cref="SystemEvents.DeviceTwinMetadata"/> instance for mocking. </returns>
public static DeviceTwinMetadata DeviceTwinMetadata(string lastUpdated = null)
{
return new DeviceTwinMetadata(lastUpdated);
}
/// <summary> Initializes a new instance of DeviceTwinInfoX509Thumbprint. </summary>
/// <param name="primaryThumbprint"> Primary thumbprint for the x509 certificate. </param>
/// <param name="secondaryThumbprint"> Secondary thumbprint for the x509 certificate. </param>
/// <returns> A new <see cref="SystemEvents.DeviceTwinInfoX509Thumbprint"/> instance for mocking. </returns>
public static DeviceTwinInfoX509Thumbprint DeviceTwinInfoX509Thumbprint(string primaryThumbprint = null, string secondaryThumbprint = null)
{
return new DeviceTwinInfoX509Thumbprint(primaryThumbprint, secondaryThumbprint);
}
/// <summary> Initializes a new instance of IotHubDeviceDeletedEventData. </summary>
/// <param name="deviceId"> The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. </param>
/// <param name="hubName"> Name of the IoT Hub where the device was created or deleted. </param>
/// <param name="twin"> Information about the device twin, which is the cloud representation of application device metadata. </param>
/// <returns> A new <see cref="SystemEvents.IotHubDeviceDeletedEventData"/> instance for mocking. </returns>
public static IotHubDeviceDeletedEventData IotHubDeviceDeletedEventData(string deviceId = null, string hubName = null, DeviceTwinInfo twin = null)
{
return new IotHubDeviceDeletedEventData(deviceId, hubName, twin);
}
/// <summary> Initializes a new instance of IotHubDeviceConnectedEventData. </summary>
/// <param name="deviceId"> The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. </param>
/// <param name="moduleId"> The unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. </param>
/// <param name="hubName"> Name of the IoT Hub where the device was created or deleted. </param>
/// <param name="deviceConnectionStateEventInfo"> Information about the device connection state event. </param>
/// <returns> A new <see cref="SystemEvents.IotHubDeviceConnectedEventData"/> instance for mocking. </returns>
public static IotHubDeviceConnectedEventData IotHubDeviceConnectedEventData(string deviceId = null, string moduleId = null, string hubName = null, DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = null)
{
return new IotHubDeviceConnectedEventData(deviceId, moduleId, hubName, deviceConnectionStateEventInfo);
}
/// <summary> Initializes a new instance of DeviceConnectionStateEventProperties. </summary>
/// <param name="deviceId"> The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. </param>
/// <param name="moduleId"> The unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. </param>
/// <param name="hubName"> Name of the IoT Hub where the device was created or deleted. </param>
/// <param name="deviceConnectionStateEventInfo"> Information about the device connection state event. </param>
/// <returns> A new <see cref="SystemEvents.DeviceConnectionStateEventProperties"/> instance for mocking. </returns>
public static DeviceConnectionStateEventProperties DeviceConnectionStateEventProperties(string deviceId = null, string moduleId = null, string hubName = null, DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = null)
{
return new DeviceConnectionStateEventProperties(deviceId, moduleId, hubName, deviceConnectionStateEventInfo);
}
/// <summary> Initializes a new instance of DeviceConnectionStateEventInfo. </summary>
/// <param name="sequenceNumber"> Sequence number is string representation of a hexadecimal number. string compare can be used to identify the larger number because both in ASCII and HEX numbers come after alphabets. If you are converting the string to hex, then the number is a 256 bit number. </param>
/// <returns> A new <see cref="SystemEvents.DeviceConnectionStateEventInfo"/> instance for mocking. </returns>
public static DeviceConnectionStateEventInfo DeviceConnectionStateEventInfo(string sequenceNumber = null)
{
return new DeviceConnectionStateEventInfo(sequenceNumber);
}
/// <summary> Initializes a new instance of IotHubDeviceDisconnectedEventData. </summary>
/// <param name="deviceId"> The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. </param>
/// <param name="moduleId"> The unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. </param>
/// <param name="hubName"> Name of the IoT Hub where the device was created or deleted. </param>
/// <param name="deviceConnectionStateEventInfo"> Information about the device connection state event. </param>
/// <returns> A new <see cref="SystemEvents.IotHubDeviceDisconnectedEventData"/> instance for mocking. </returns>
public static IotHubDeviceDisconnectedEventData IotHubDeviceDisconnectedEventData(string deviceId = null, string moduleId = null, string hubName = null, DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = null)
{
return new IotHubDeviceDisconnectedEventData(deviceId, moduleId, hubName, deviceConnectionStateEventInfo);
}
/// <summary> Initializes a new instance of IotHubDeviceTelemetryEventData. </summary>
/// <param name="body"> The content of the message from the device. </param>
/// <param name="properties"> Application properties are user-defined strings that can be added to the message. These fields are optional. </param>
/// <param name="systemProperties"> System properties help identify contents and source of the messages. </param>
/// <returns> A new <see cref="SystemEvents.IotHubDeviceTelemetryEventData"/> instance for mocking. </returns>
public static IotHubDeviceTelemetryEventData IotHubDeviceTelemetryEventData(object body = null, IReadOnlyDictionary<string, string> properties = null, IReadOnlyDictionary<string, string> systemProperties = null)
{
properties ??= new Dictionary<string, string>();
systemProperties ??= new Dictionary<string, string>();
return new IotHubDeviceTelemetryEventData(body, properties, systemProperties);
}
/// <summary> Initializes a new instance of DeviceTelemetryEventProperties. </summary>
/// <param name="body"> The content of the message from the device. </param>
/// <param name="properties"> Application properties are user-defined strings that can be added to the message. These fields are optional. </param>
/// <param name="systemProperties"> System properties help identify contents and source of the messages. </param>
/// <returns> A new <see cref="SystemEvents.DeviceTelemetryEventProperties"/> instance for mocking. </returns>
public static DeviceTelemetryEventProperties DeviceTelemetryEventProperties(object body = null, IReadOnlyDictionary<string, string> properties = null, IReadOnlyDictionary<string, string> systemProperties = null)
{
properties ??= new Dictionary<string, string>();
systemProperties ??= new Dictionary<string, string>();
return new DeviceTelemetryEventProperties(body, properties, systemProperties);
}
/// <summary> Initializes a new instance of ContainerRegistryImagePushedEventData. </summary>
/// <param name="id"> The event ID. </param>
/// <param name="timestamp"> The time at which the event occurred. </param>
/// <param name="action"> The action that encompasses the provided event. </param>
/// <param name="location"> The location of the event. </param>
/// <param name="target"> The target of the event. </param>
/// <param name="request"> The request that generated the event. </param>
/// <param name="actor"> The agent that initiated the event. For most situations, this could be from the authorization context of the request. </param>
/// <param name="source"> The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. </param>
/// <param name="connectedRegistry"> The connected registry information if the event is generated by a connected registry. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryImagePushedEventData"/> instance for mocking. </returns>
public static ContainerRegistryImagePushedEventData ContainerRegistryImagePushedEventData(string id = null, DateTimeOffset? timestamp = null, string action = null, string location = null, ContainerRegistryEventTarget target = null, ContainerRegistryEventRequest request = null, ContainerRegistryEventActor actor = null, ContainerRegistryEventSource source = null, ContainerRegistryEventConnectedRegistry connectedRegistry = null)
{
return new ContainerRegistryImagePushedEventData(id, timestamp, action, location, target, request, actor, source, connectedRegistry);
}
/// <summary> Initializes a new instance of ContainerRegistryEventData. </summary>
/// <param name="id"> The event ID. </param>
/// <param name="timestamp"> The time at which the event occurred. </param>
/// <param name="action"> The action that encompasses the provided event. </param>
/// <param name="location"> The location of the event. </param>
/// <param name="target"> The target of the event. </param>
/// <param name="request"> The request that generated the event. </param>
/// <param name="actor"> The agent that initiated the event. For most situations, this could be from the authorization context of the request. </param>
/// <param name="source"> The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. </param>
/// <param name="connectedRegistry"> The connected registry information if the event is generated by a connected registry. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryEventData"/> instance for mocking. </returns>
public static ContainerRegistryEventData ContainerRegistryEventData(string id = null, DateTimeOffset? timestamp = null, string action = null, string location = null, ContainerRegistryEventTarget target = null, ContainerRegistryEventRequest request = null, ContainerRegistryEventActor actor = null, ContainerRegistryEventSource source = null, ContainerRegistryEventConnectedRegistry connectedRegistry = null)
{
return new ContainerRegistryEventData(id, timestamp, action, location, target, request, actor, source, connectedRegistry);
}
/// <summary> Initializes a new instance of ContainerRegistryEventTarget. </summary>
/// <param name="mediaType"> The MIME type of the referenced object. </param>
/// <param name="size"> The number of bytes of the content. Same as Length field. </param>
/// <param name="digest"> The digest of the content, as defined by the Registry V2 HTTP API Specification. </param>
/// <param name="length"> The number of bytes of the content. Same as Size field. </param>
/// <param name="repository"> The repository name. </param>
/// <param name="url"> The direct URL to the content. </param>
/// <param name="tag"> The tag name. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryEventTarget"/> instance for mocking. </returns>
public static ContainerRegistryEventTarget ContainerRegistryEventTarget(string mediaType = null, long? size = null, string digest = null, long? length = null, string repository = null, string url = null, string tag = null)
{
return new ContainerRegistryEventTarget(mediaType, size, digest, length, repository, url, tag);
}
/// <summary> Initializes a new instance of ContainerRegistryEventRequest. </summary>
/// <param name="id"> The ID of the request that initiated the event. </param>
/// <param name="addr"> The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request. </param>
/// <param name="host"> The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests. </param>
/// <param name="method"> The request method that generated the event. </param>
/// <param name="useragent"> The user agent header of the request. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryEventRequest"/> instance for mocking. </returns>
public static ContainerRegistryEventRequest ContainerRegistryEventRequest(string id = null, string addr = null, string host = null, string method = null, string useragent = null)
{
return new ContainerRegistryEventRequest(id, addr, host, method, useragent);
}
/// <summary> Initializes a new instance of ContainerRegistryEventActor. </summary>
/// <param name="name"> The subject or username associated with the request context that generated the event. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryEventActor"/> instance for mocking. </returns>
public static ContainerRegistryEventActor ContainerRegistryEventActor(string name = null)
{
return new ContainerRegistryEventActor(name);
}
/// <summary> Initializes a new instance of ContainerRegistryEventSource. </summary>
/// <param name="addr"> The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port. </param>
/// <param name="instanceID"> The running instance of an application. Changes after each restart. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryEventSource"/> instance for mocking. </returns>
public static ContainerRegistryEventSource ContainerRegistryEventSource(string addr = null, string instanceID = null)
{
return new ContainerRegistryEventSource(addr, instanceID);
}
/// <summary> Initializes a new instance of ContainerRegistryEventConnectedRegistry. </summary>
/// <param name="name"> The name of the connected registry that generated this event. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryEventConnectedRegistry"/> instance for mocking. </returns>
public static ContainerRegistryEventConnectedRegistry ContainerRegistryEventConnectedRegistry(string name = null)
{
return new ContainerRegistryEventConnectedRegistry(name);
}
/// <summary> Initializes a new instance of ContainerRegistryImageDeletedEventData. </summary>
/// <param name="id"> The event ID. </param>
/// <param name="timestamp"> The time at which the event occurred. </param>
/// <param name="action"> The action that encompasses the provided event. </param>
/// <param name="location"> The location of the event. </param>
/// <param name="target"> The target of the event. </param>
/// <param name="request"> The request that generated the event. </param>
/// <param name="actor"> The agent that initiated the event. For most situations, this could be from the authorization context of the request. </param>
/// <param name="source"> The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. </param>
/// <param name="connectedRegistry"> The connected registry information if the event is generated by a connected registry. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryImageDeletedEventData"/> instance for mocking. </returns>
public static ContainerRegistryImageDeletedEventData ContainerRegistryImageDeletedEventData(string id = null, DateTimeOffset? timestamp = null, string action = null, string location = null, ContainerRegistryEventTarget target = null, ContainerRegistryEventRequest request = null, ContainerRegistryEventActor actor = null, ContainerRegistryEventSource source = null, ContainerRegistryEventConnectedRegistry connectedRegistry = null)
{
return new ContainerRegistryImageDeletedEventData(id, timestamp, action, location, target, request, actor, source, connectedRegistry);
}
/// <summary> Initializes a new instance of ContainerRegistryChartPushedEventData. </summary>
/// <param name="id"> The event ID. </param>
/// <param name="timestamp"> The time at which the event occurred. </param>
/// <param name="action"> The action that encompasses the provided event. </param>
/// <param name="location"> The location of the event. </param>
/// <param name="target"> The target of the event. </param>
/// <param name="connectedRegistry"> The connected registry information if the event is generated by a connected registry. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryChartPushedEventData"/> instance for mocking. </returns>
public static ContainerRegistryChartPushedEventData ContainerRegistryChartPushedEventData(string id = null, DateTimeOffset? timestamp = null, string action = null, string location = null, ContainerRegistryArtifactEventTarget target = null, ContainerRegistryEventConnectedRegistry connectedRegistry = null)
{
return new ContainerRegistryChartPushedEventData(id, timestamp, action, location, target, connectedRegistry);
}
/// <summary> Initializes a new instance of ContainerRegistryArtifactEventData. </summary>
/// <param name="id"> The event ID. </param>
/// <param name="timestamp"> The time at which the event occurred. </param>
/// <param name="action"> The action that encompasses the provided event. </param>
/// <param name="location"> The location of the event. </param>
/// <param name="target"> The target of the event. </param>
/// <param name="connectedRegistry"> The connected registry information if the event is generated by a connected registry. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryArtifactEventData"/> instance for mocking. </returns>
public static ContainerRegistryArtifactEventData ContainerRegistryArtifactEventData(string id = null, DateTimeOffset? timestamp = null, string action = null, string location = null, ContainerRegistryArtifactEventTarget target = null, ContainerRegistryEventConnectedRegistry connectedRegistry = null)
{
return new ContainerRegistryArtifactEventData(id, timestamp, action, location, target, connectedRegistry);
}
/// <summary> Initializes a new instance of ContainerRegistryArtifactEventTarget. </summary>
/// <param name="mediaType"> The MIME type of the artifact. </param>
/// <param name="size"> The size in bytes of the artifact. </param>
/// <param name="digest"> The digest of the artifact. </param>
/// <param name="repository"> The repository name of the artifact. </param>
/// <param name="tag"> The tag of the artifact. </param>
/// <param name="name"> The name of the artifact. </param>
/// <param name="version"> The version of the artifact. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryArtifactEventTarget"/> instance for mocking. </returns>
public static ContainerRegistryArtifactEventTarget ContainerRegistryArtifactEventTarget(string mediaType = null, long? size = null, string digest = null, string repository = null, string tag = null, string name = null, string version = null)
{
return new ContainerRegistryArtifactEventTarget(mediaType, size, digest, repository, tag, name, version);
}
/// <summary> Initializes a new instance of ContainerRegistryChartDeletedEventData. </summary>
/// <param name="id"> The event ID. </param>
/// <param name="timestamp"> The time at which the event occurred. </param>
/// <param name="action"> The action that encompasses the provided event. </param>
/// <param name="location"> The location of the event. </param>
/// <param name="target"> The target of the event. </param>
/// <param name="connectedRegistry"> The connected registry information if the event is generated by a connected registry. </param>
/// <returns> A new <see cref="SystemEvents.ContainerRegistryChartDeletedEventData"/> instance for mocking. </returns>
public static ContainerRegistryChartDeletedEventData ContainerRegistryChartDeletedEventData(string id = null, DateTimeOffset? timestamp = null, string action = null, string location = null, ContainerRegistryArtifactEventTarget target = null, ContainerRegistryEventConnectedRegistry connectedRegistry = null)
{
return new ContainerRegistryChartDeletedEventData(id, timestamp, action, location, target, connectedRegistry);
}
/// <summary> Initializes a new instance of ServiceBusActiveMessagesAvailableWithNoListenersEventData. </summary>
/// <param name="namespaceName"> The namespace name of the Microsoft.ServiceBus resource. </param>
/// <param name="requestUri"> The endpoint of the Microsoft.ServiceBus resource. </param>
/// <param name="entityType"> The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. </param>
/// <param name="queueName"> The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. </param>
/// <param name="topicName"> The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. </param>
/// <param name="subscriptionName"> The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. </param>
/// <returns> A new <see cref="SystemEvents.ServiceBusActiveMessagesAvailableWithNoListenersEventData"/> instance for mocking. </returns>
public static ServiceBusActiveMessagesAvailableWithNoListenersEventData ServiceBusActiveMessagesAvailableWithNoListenersEventData(string namespaceName = null, string requestUri = null, string entityType = null, string queueName = null, string topicName = null, string subscriptionName = null)
{
return new ServiceBusActiveMessagesAvailableWithNoListenersEventData(namespaceName, requestUri, entityType, queueName, topicName, subscriptionName);
}
/// <summary> Initializes a new instance of ServiceBusDeadletterMessagesAvailableWithNoListenersEventData. </summary>
/// <param name="namespaceName"> The namespace name of the Microsoft.ServiceBus resource. </param>
/// <param name="requestUri"> The endpoint of the Microsoft.ServiceBus resource. </param>
/// <param name="entityType"> The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. </param>
/// <param name="queueName"> The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. </param>
/// <param name="topicName"> The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. </param>
/// <param name="subscriptionName"> The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. </param>
/// <returns> A new <see cref="SystemEvents.ServiceBusDeadletterMessagesAvailableWithNoListenersEventData"/> instance for mocking. </returns>
public static ServiceBusDeadletterMessagesAvailableWithNoListenersEventData ServiceBusDeadletterMessagesAvailableWithNoListenersEventData(string namespaceName = null, string requestUri = null, string entityType = null, string queueName = null, string topicName = null, string subscriptionName = null)
{
return new ServiceBusDeadletterMessagesAvailableWithNoListenersEventData(namespaceName, requestUri, entityType, queueName, topicName, subscriptionName);
}
/// <summary> Initializes a new instance of ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData. </summary>
/// <param name="namespaceName"> The namespace name of the Microsoft.ServiceBus resource. </param>
/// <param name="requestUri"> The endpoint of the Microsoft.ServiceBus resource. </param>
/// <param name="entityType"> The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. </param>
/// <param name="queueName"> The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. </param>
/// <param name="topicName"> The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. </param>
/// <param name="subscriptionName"> The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. </param>
/// <returns> A new <see cref="SystemEvents.ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData"/> instance for mocking. </returns>
public static ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData(string namespaceName = null, string requestUri = null, string entityType = null, string queueName = null, string topicName = null, string subscriptionName = null)
{
return new ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData(namespaceName, requestUri, entityType, queueName, topicName, subscriptionName);
}
/// <summary> Initializes a new instance of ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData. </summary>
/// <param name="namespaceName"> The namespace name of the Microsoft.ServiceBus resource. </param>
/// <param name="requestUri"> The endpoint of the Microsoft.ServiceBus resource. </param>
/// <param name="entityType"> The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. </param>
/// <param name="queueName"> The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. </param>
/// <param name="topicName"> The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. </param>
/// <param name="subscriptionName"> The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. </param>
/// <returns> A new <see cref="SystemEvents.ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData"/> instance for mocking. </returns>
public static ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData(string namespaceName = null, string requestUri = null, string entityType = null, string queueName = null, string topicName = null, string subscriptionName = null)
{
return new ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData(namespaceName, requestUri, entityType, queueName, topicName, subscriptionName);
}
/// <summary> Initializes a new instance of MediaJobStateChangeEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="state"> The new state of the Job. </param>
/// <param name="correlationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobStateChangeEventData"/> instance for mocking. </returns>
public static MediaJobStateChangeEventData MediaJobStateChangeEventData(MediaJobState? previousState = null, MediaJobState? state = null, IReadOnlyDictionary<string, string> correlationData = null)
{
correlationData ??= new Dictionary<string, string>();
return new MediaJobStateChangeEventData(previousState, state, correlationData);
}
/// <summary> Initializes a new instance of MediaJobError. </summary>
/// <param name="code"> Error code describing the error. </param>
/// <param name="message"> A human-readable language-dependent representation of the error. </param>
/// <param name="category"> Helps with categorization of errors. </param>
/// <param name="retry"> Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. </param>
/// <param name="details"> An array of details about specific errors that led to this reported error. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobError"/> instance for mocking. </returns>
public static MediaJobError MediaJobError(MediaJobErrorCode? code = null, string message = null, MediaJobErrorCategory? category = null, MediaJobRetry? retry = null, IEnumerable<MediaJobErrorDetail> details = null)
{
details ??= new List<MediaJobErrorDetail>();
return new MediaJobError(code, message, category, retry, details?.ToList());
}
/// <summary> Initializes a new instance of MediaJobErrorDetail. </summary>
/// <param name="code"> Code describing the error detail. </param>
/// <param name="message"> A human-readable representation of the error. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobErrorDetail"/> instance for mocking. </returns>
public static MediaJobErrorDetail MediaJobErrorDetail(string code = null, string message = null)
{
return new MediaJobErrorDetail(code, message);
}
/// <summary> Initializes a new instance of MediaJobOutput. </summary>
/// <param name="odataType"> The discriminator for derived types. </param>
/// <param name="error"> Gets the Job output error. </param>
/// <param name="label"> Gets the Job output label. </param>
/// <param name="progress"> Gets the Job output progress. </param>
/// <param name="state"> Gets the Job output state. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutput"/> instance for mocking. </returns>
public static MediaJobOutput MediaJobOutput(string odataType = null, MediaJobError error = null, string label = null, long progress = default, MediaJobState state = default)
{
return new MediaJobOutput(odataType, error, label, progress, state);
}
/// <summary> Initializes a new instance of MediaJobOutputAsset. </summary>
/// <param name="odataType"> The discriminator for derived types. </param>
/// <param name="error"> Gets the Job output error. </param>
/// <param name="label"> Gets the Job output label. </param>
/// <param name="progress"> Gets the Job output progress. </param>
/// <param name="state"> Gets the Job output state. </param>
/// <param name="assetName"> Gets the Job output asset name. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutputAsset"/> instance for mocking. </returns>
public static MediaJobOutputAsset MediaJobOutputAsset(string odataType = null, MediaJobError error = null, string label = null, long progress = default, MediaJobState state = default, string assetName = null)
{
return new MediaJobOutputAsset(odataType, error, label, progress, state, assetName);
}
/// <summary> Initializes a new instance of MediaJobOutputProgressEventData. </summary>
/// <param name="label"> Gets the Job output label. </param>
/// <param name="progress"> Gets the Job output progress. </param>
/// <param name="jobCorrelationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutputProgressEventData"/> instance for mocking. </returns>
public static MediaJobOutputProgressEventData MediaJobOutputProgressEventData(string label = null, long? progress = null, IReadOnlyDictionary<string, string> jobCorrelationData = null)
{
jobCorrelationData ??= new Dictionary<string, string>();
return new MediaJobOutputProgressEventData(label, progress, jobCorrelationData);
}
/// <summary> Initializes a new instance of MediaJobOutputStateChangeEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="output">
/// Gets the output.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <param name="jobCorrelationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutputStateChangeEventData"/> instance for mocking. </returns>
public static MediaJobOutputStateChangeEventData MediaJobOutputStateChangeEventData(MediaJobState? previousState = null, MediaJobOutput output = null, IReadOnlyDictionary<string, string> jobCorrelationData = null)
{
jobCorrelationData ??= new Dictionary<string, string>();
return new MediaJobOutputStateChangeEventData(previousState, output, jobCorrelationData);
}
/// <summary> Initializes a new instance of MediaJobScheduledEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="state"> The new state of the Job. </param>
/// <param name="correlationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobScheduledEventData"/> instance for mocking. </returns>
public static MediaJobScheduledEventData MediaJobScheduledEventData(MediaJobState? previousState = null, MediaJobState? state = null, IReadOnlyDictionary<string, string> correlationData = null)
{
correlationData ??= new Dictionary<string, string>();
return new MediaJobScheduledEventData(previousState, state, correlationData);
}
/// <summary> Initializes a new instance of MediaJobProcessingEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="state"> The new state of the Job. </param>
/// <param name="correlationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobProcessingEventData"/> instance for mocking. </returns>
public static MediaJobProcessingEventData MediaJobProcessingEventData(MediaJobState? previousState = null, MediaJobState? state = null, IReadOnlyDictionary<string, string> correlationData = null)
{
correlationData ??= new Dictionary<string, string>();
return new MediaJobProcessingEventData(previousState, state, correlationData);
}
/// <summary> Initializes a new instance of MediaJobCancelingEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="state"> The new state of the Job. </param>
/// <param name="correlationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobCancelingEventData"/> instance for mocking. </returns>
public static MediaJobCancelingEventData MediaJobCancelingEventData(MediaJobState? previousState = null, MediaJobState? state = null, IReadOnlyDictionary<string, string> correlationData = null)
{
correlationData ??= new Dictionary<string, string>();
return new MediaJobCancelingEventData(previousState, state, correlationData);
}
/// <summary> Initializes a new instance of MediaJobFinishedEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="state"> The new state of the Job. </param>
/// <param name="correlationData"> Gets the Job correlation data. </param>
/// <param name="outputs">
/// Gets the Job outputs.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <returns> A new <see cref="SystemEvents.MediaJobFinishedEventData"/> instance for mocking. </returns>
public static MediaJobFinishedEventData MediaJobFinishedEventData(MediaJobState? previousState = null, MediaJobState? state = null, IReadOnlyDictionary<string, string> correlationData = null, IEnumerable<MediaJobOutput> outputs = null)
{
correlationData ??= new Dictionary<string, string>();
outputs ??= new List<MediaJobOutput>();
return new MediaJobFinishedEventData(previousState, state, correlationData, outputs?.ToList());
}
/// <summary> Initializes a new instance of MediaJobCanceledEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="state"> The new state of the Job. </param>
/// <param name="correlationData"> Gets the Job correlation data. </param>
/// <param name="outputs">
/// Gets the Job outputs.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <returns> A new <see cref="SystemEvents.MediaJobCanceledEventData"/> instance for mocking. </returns>
public static MediaJobCanceledEventData MediaJobCanceledEventData(MediaJobState? previousState = null, MediaJobState? state = null, IReadOnlyDictionary<string, string> correlationData = null, IEnumerable<MediaJobOutput> outputs = null)
{
correlationData ??= new Dictionary<string, string>();
outputs ??= new List<MediaJobOutput>();
return new MediaJobCanceledEventData(previousState, state, correlationData, outputs?.ToList());
}
/// <summary> Initializes a new instance of MediaJobErroredEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="state"> The new state of the Job. </param>
/// <param name="correlationData"> Gets the Job correlation data. </param>
/// <param name="outputs">
/// Gets the Job outputs.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <returns> A new <see cref="SystemEvents.MediaJobErroredEventData"/> instance for mocking. </returns>
public static MediaJobErroredEventData MediaJobErroredEventData(MediaJobState? previousState = null, MediaJobState? state = null, IReadOnlyDictionary<string, string> correlationData = null, IEnumerable<MediaJobOutput> outputs = null)
{
correlationData ??= new Dictionary<string, string>();
outputs ??= new List<MediaJobOutput>();
return new MediaJobErroredEventData(previousState, state, correlationData, outputs?.ToList());
}
/// <summary> Initializes a new instance of MediaJobOutputCanceledEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="output">
/// Gets the output.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <param name="jobCorrelationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutputCanceledEventData"/> instance for mocking. </returns>
public static MediaJobOutputCanceledEventData MediaJobOutputCanceledEventData(MediaJobState? previousState = null, MediaJobOutput output = null, IReadOnlyDictionary<string, string> jobCorrelationData = null)
{
jobCorrelationData ??= new Dictionary<string, string>();
return new MediaJobOutputCanceledEventData(previousState, output, jobCorrelationData);
}
/// <summary> Initializes a new instance of MediaJobOutputCancelingEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="output">
/// Gets the output.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <param name="jobCorrelationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutputCancelingEventData"/> instance for mocking. </returns>
public static MediaJobOutputCancelingEventData MediaJobOutputCancelingEventData(MediaJobState? previousState = null, MediaJobOutput output = null, IReadOnlyDictionary<string, string> jobCorrelationData = null)
{
jobCorrelationData ??= new Dictionary<string, string>();
return new MediaJobOutputCancelingEventData(previousState, output, jobCorrelationData);
}
/// <summary> Initializes a new instance of MediaJobOutputErroredEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="output">
/// Gets the output.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <param name="jobCorrelationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutputErroredEventData"/> instance for mocking. </returns>
public static MediaJobOutputErroredEventData MediaJobOutputErroredEventData(MediaJobState? previousState = null, MediaJobOutput output = null, IReadOnlyDictionary<string, string> jobCorrelationData = null)
{
jobCorrelationData ??= new Dictionary<string, string>();
return new MediaJobOutputErroredEventData(previousState, output, jobCorrelationData);
}
/// <summary> Initializes a new instance of MediaJobOutputFinishedEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="output">
/// Gets the output.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <param name="jobCorrelationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutputFinishedEventData"/> instance for mocking. </returns>
public static MediaJobOutputFinishedEventData MediaJobOutputFinishedEventData(MediaJobState? previousState = null, MediaJobOutput output = null, IReadOnlyDictionary<string, string> jobCorrelationData = null)
{
jobCorrelationData ??= new Dictionary<string, string>();
return new MediaJobOutputFinishedEventData(previousState, output, jobCorrelationData);
}
/// <summary> Initializes a new instance of MediaJobOutputProcessingEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="output">
/// Gets the output.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <param name="jobCorrelationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutputProcessingEventData"/> instance for mocking. </returns>
public static MediaJobOutputProcessingEventData MediaJobOutputProcessingEventData(MediaJobState? previousState = null, MediaJobOutput output = null, IReadOnlyDictionary<string, string> jobCorrelationData = null)
{
jobCorrelationData ??= new Dictionary<string, string>();
return new MediaJobOutputProcessingEventData(previousState, output, jobCorrelationData);
}
/// <summary> Initializes a new instance of MediaJobOutputScheduledEventData. </summary>
/// <param name="previousState"> The previous state of the Job. </param>
/// <param name="output">
/// Gets the output.
/// Please note <see cref="SystemEvents.MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="SystemEvents.MediaJobOutputAsset"/>.
/// </param>
/// <param name="jobCorrelationData"> Gets the Job correlation data. </param>
/// <returns> A new <see cref="SystemEvents.MediaJobOutputScheduledEventData"/> instance for mocking. </returns>
public static MediaJobOutputScheduledEventData MediaJobOutputScheduledEventData(MediaJobState? previousState = null, MediaJobOutput output = null, IReadOnlyDictionary<string, string> jobCorrelationData = null)
{
jobCorrelationData ??= new Dictionary<string, string>();
return new MediaJobOutputScheduledEventData(previousState, output, jobCorrelationData);
}
/// <summary> Initializes a new instance of MediaLiveEventEncoderConnectedEventData. </summary>
/// <param name="ingestUrl"> Gets the ingest URL provided by the live event. </param>
/// <param name="streamId"> Gets the stream Id. </param>
/// <param name="encoderIp"> Gets the remote IP. </param>
/// <param name="encoderPort"> Gets the remote port. </param>
/// <returns> A new <see cref="SystemEvents.MediaLiveEventEncoderConnectedEventData"/> instance for mocking. </returns>
public static MediaLiveEventEncoderConnectedEventData MediaLiveEventEncoderConnectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null)
{
return new MediaLiveEventEncoderConnectedEventData(ingestUrl, streamId, encoderIp, encoderPort);
}
/// <summary> Initializes a new instance of MediaLiveEventConnectionRejectedEventData. </summary>
/// <param name="ingestUrl"> Gets the ingest URL provided by the live event. </param>
/// <param name="streamId"> Gets the stream Id. </param>
/// <param name="encoderIp"> Gets the remote IP. </param>
/// <param name="encoderPort"> Gets the remote port. </param>
/// <param name="resultCode"> Gets the result code. </param>
/// <returns> A new <see cref="SystemEvents.MediaLiveEventConnectionRejectedEventData"/> instance for mocking. </returns>
public static MediaLiveEventConnectionRejectedEventData MediaLiveEventConnectionRejectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null, string resultCode = null)
{
return new MediaLiveEventConnectionRejectedEventData(ingestUrl, streamId, encoderIp, encoderPort, resultCode);
}
/// <summary> Initializes a new instance of MediaLiveEventEncoderDisconnectedEventData. </summary>
/// <param name="ingestUrl"> Gets the ingest URL provided by the live event. </param>
/// <param name="streamId"> Gets the stream Id. </param>
/// <param name="encoderIp"> Gets the remote IP. </param>
/// <param name="encoderPort"> Gets the remote port. </param>
/// <param name="resultCode"> Gets the result code. </param>
/// <returns> A new <see cref="SystemEvents.MediaLiveEventEncoderDisconnectedEventData"/> instance for mocking. </returns>
public static MediaLiveEventEncoderDisconnectedEventData MediaLiveEventEncoderDisconnectedEventData(string ingestUrl = null, string streamId = null, string encoderIp = null, string encoderPort = null, string resultCode = null)
{
return new MediaLiveEventEncoderDisconnectedEventData(ingestUrl, streamId, encoderIp, encoderPort, resultCode);
}
/// <summary> Initializes a new instance of MediaLiveEventIncomingStreamReceivedEventData. </summary>
/// <param name="ingestUrl"> Gets the ingest URL provided by the live event. </param>
/// <param name="trackType"> Gets the type of the track (Audio / Video). </param>
/// <param name="trackName"> Gets the track name. </param>
/// <param name="bitrate"> Gets the bitrate of the track. </param>
/// <param name="encoderIp"> Gets the remote IP. </param>
/// <param name="encoderPort"> Gets the remote port. </param>
/// <param name="timestamp"> Gets the first timestamp of the data chunk received. </param>
/// <param name="duration"> Gets the duration of the first data chunk. </param>
/// <param name="timescale"> Gets the timescale in which timestamp is represented. </param>
/// <returns> A new <see cref="SystemEvents.MediaLiveEventIncomingStreamReceivedEventData"/> instance for mocking. </returns>
public static MediaLiveEventIncomingStreamReceivedEventData MediaLiveEventIncomingStreamReceivedEventData(string ingestUrl = null, string trackType = null, string trackName = null, long? bitrate = null, string encoderIp = null, string encoderPort = null, string timestamp = null, string duration = null, string timescale = null)
{
return new MediaLiveEventIncomingStreamReceivedEventData(ingestUrl, trackType, trackName, bitrate, encoderIp, encoderPort, timestamp, duration, timescale);