/
models.go
2879 lines (2232 loc) · 115 KB
/
models.go
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
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armstreamanalytics
import "time"
// AggregateFunctionProperties - The properties that are associated with an aggregate function.
type AggregateFunctionProperties struct {
// REQUIRED; Indicates the type of function.
Type *string
Properties *FunctionConfiguration
// READ-ONLY; The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource
// has changed between requests. You can also use it in the If-Match or If-None-Match
// headers for write operations for optimistic concurrency.
Etag *string
}
// GetFunctionProperties implements the FunctionPropertiesClassification interface for type AggregateFunctionProperties.
func (a *AggregateFunctionProperties) GetFunctionProperties() *FunctionProperties {
return &FunctionProperties{
Etag: a.Etag,
Properties: a.Properties,
Type: a.Type,
}
}
// AvroSerialization - Describes how data from an input is serialized or how data is serialized when written to an output
// in Avro format.
type AvroSerialization struct {
// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
Type *EventSerializationType
// The properties that are associated with the Avro serialization type. Required on PUT (CreateOrReplace) requests.
Properties any
}
// GetSerialization implements the SerializationClassification interface for type AvroSerialization.
func (a *AvroSerialization) GetSerialization() *Serialization {
return &Serialization{
Type: a.Type,
}
}
// AzureDataExplorerOutputDataSource - Describes an Azure Data Explorer output data source.
type AzureDataExplorerOutputDataSource struct {
// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with an Azure Data Explorer output. Required on PUT (CreateOrReplace) requests.
Properties *AzureDataExplorerOutputDataSourceProperties
}
// GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureDataExplorerOutputDataSource.
func (a *AzureDataExplorerOutputDataSource) GetOutputDataSource() *OutputDataSource {
return &OutputDataSource{
Type: a.Type,
}
}
// AzureDataExplorerOutputDataSourceProperties - The properties that are associated with an Azure Data Explorer output.
type AzureDataExplorerOutputDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// The name of the Azure Data Explorer cluster. Required on PUT (CreateOrReplace) requests.
Cluster *string
// The name of the Azure Data Explorer database. Required on PUT (CreateOrReplace) requests.
Database *string
// The name of the Azure Table. Required on PUT (CreateOrReplace) requests.
Table *string
}
// AzureDataLakeStoreOutputDataSource - Describes an Azure Data Lake Store output data source.
type AzureDataLakeStoreOutputDataSource struct {
// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with an Azure Data Lake Store output. Required on PUT (CreateOrReplace) requests.
Properties *AzureDataLakeStoreOutputDataSourceProperties
}
// GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureDataLakeStoreOutputDataSource.
func (a *AzureDataLakeStoreOutputDataSource) GetOutputDataSource() *OutputDataSource {
return &OutputDataSource{
Type: a.Type,
}
}
// AzureDataLakeStoreOutputDataSourceProperties - The properties that are associated with an Azure Data Lake Store.
type AzureDataLakeStoreOutputDataSourceProperties struct {
// The name of the Azure Data Lake Store account. Required on PUT (CreateOrReplace) requests.
AccountName *string
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// The date format. Wherever {date} appears in filePathPrefix, the value of this property is used as the date format instead.
DateFormat *string
// The location of the file to which the output should be written to. Required on PUT (CreateOrReplace) requests.
FilePathPrefix *string
// A refresh token that can be used to obtain a valid access token that can then be used to authenticate with the data source.
// A valid refresh token is currently only obtainable via the Azure Portal. It
// is recommended to put a dummy string value here when creating the data source and then going to the Azure Portal to authenticate
// the data source which will update this property with a valid refresh
// token. Required on PUT (CreateOrReplace) requests.
RefreshToken *string
// The tenant id of the user used to obtain the refresh token. Required on PUT (CreateOrReplace) requests.
TenantID *string
// The time format. Wherever {time} appears in filePathPrefix, the value of this property is used as the time format instead.
TimeFormat *string
// The user display name of the user that was used to obtain the refresh token. Use this property to help remember which user
// was used to obtain the refresh token.
TokenUserDisplayName *string
// The user principal name (UPN) of the user that was used to obtain the refresh token. Use this property to help remember
// which user was used to obtain the refresh token.
TokenUserPrincipalName *string
}
// AzureFunctionOutputDataSource - Defines the metadata of AzureFunctionOutputDataSource
type AzureFunctionOutputDataSource struct {
// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with a Azure Function output. Required on PUT (CreateOrReplace) requests.
Properties *AzureFunctionOutputDataSourceProperties
}
// GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureFunctionOutputDataSource.
func (a *AzureFunctionOutputDataSource) GetOutputDataSource() *OutputDataSource {
return &OutputDataSource{
Type: a.Type,
}
}
// AzureFunctionOutputDataSourceProperties - The properties that are associated with an Azure Function output.
type AzureFunctionOutputDataSourceProperties struct {
// If you want to use an Azure Function from another subscription, you can do so by providing the key to access your function.
APIKey *string
// The name of your Azure Functions app.
FunctionAppName *string
// The name of the function in your Azure Functions app.
FunctionName *string
// A property that lets you specify the maximum number of events in each batch that's sent to Azure Functions. The default
// value is 100.
MaxBatchCount *float32
// A property that lets you set the maximum size for each output batch that's sent to your Azure function. The input unit
// is in bytes. By default, this value is 262,144 bytes (256 KB).
MaxBatchSize *float32
}
// AzureMachineLearningServiceFunctionBinding - The binding to an Azure Machine Learning web service.
type AzureMachineLearningServiceFunctionBinding struct {
// REQUIRED; Indicates the function binding type.
Type *string
// The binding properties associated with an Azure Machine learning web service.
Properties *AzureMachineLearningServiceFunctionBindingProperties
}
// GetFunctionBinding implements the FunctionBindingClassification interface for type AzureMachineLearningServiceFunctionBinding.
func (a *AzureMachineLearningServiceFunctionBinding) GetFunctionBinding() *FunctionBinding {
return &FunctionBinding{
Type: a.Type,
}
}
// AzureMachineLearningServiceFunctionBindingProperties - The binding properties associated with an Azure Machine learning
// web service.
type AzureMachineLearningServiceFunctionBindingProperties struct {
// The API key used to authenticate with Request-Response endpoint.
APIKey *string
// Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute request. Default is 1000.
BatchSize *int32
// The Request-Response execute endpoint of the Azure Machine Learning web service.
Endpoint *string
// Label for the input request object.
InputRequestName *string
// The inputs for the Azure Machine Learning web service endpoint.
Inputs []*AzureMachineLearningServiceInputColumn
// The number of parallel requests that will be sent per partition of your job to the machine learning service. Default is
// 1.
NumberOfParallelRequests *int32
// Label for the output request object.
OutputResponseName *string
// A list of outputs from the Azure Machine Learning web service endpoint execution.
Outputs []*AzureMachineLearningServiceOutputColumn
}
// AzureMachineLearningServiceFunctionBindingRetrievalProperties - The binding retrieval properties associated with an Azure
// Machine learning web service.
type AzureMachineLearningServiceFunctionBindingRetrievalProperties struct {
// The Request-Response execute endpoint of the Azure Machine Learning web service.
ExecuteEndpoint *string
// The function type.
UdfType *string
}
// AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters - The parameters needed to retrieve the default
// function definition for an Azure Machine Learning web service function.
type AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters struct {
// REQUIRED; Indicates the function binding type.
BindingType *string
// The binding retrieval properties associated with an Azure Machine learning web service.
BindingRetrievalProperties *AzureMachineLearningServiceFunctionBindingRetrievalProperties
}
// GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification
// interface for type AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters.
func (a *AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters {
return &FunctionRetrieveDefaultDefinitionParameters{
BindingType: a.BindingType,
}
}
// AzureMachineLearningServiceInputColumn - Describes an input column for the Azure Machine Learning web service endpoint.
type AzureMachineLearningServiceInputColumn struct {
// The (Azure Machine Learning supported) data type of the input column.
DataType *string
// The zero based index of the function parameter this input maps to.
MapTo *int32
// The name of the input column.
Name *string
}
// AzureMachineLearningServiceInputs - The inputs for the Azure Machine Learning web service endpoint.
type AzureMachineLearningServiceInputs struct {
// A list of input columns for the Azure Machine Learning web service endpoint.
ColumnNames []*AzureMachineLearningServiceInputColumn
// The name of the input. This is the name provided while authoring the endpoint.
Name *string
}
// AzureMachineLearningServiceOutputColumn - Describes an output column for the Azure Machine Learning web service endpoint.
type AzureMachineLearningServiceOutputColumn struct {
// The (Azure Machine Learning supported) data type of the output column.
DataType *string
// The zero based index of the function parameter this input maps to.
MapTo *int32
// The name of the output column.
Name *string
}
// AzureMachineLearningStudioFunctionBinding - The binding to an Azure Machine Learning Studio.
type AzureMachineLearningStudioFunctionBinding struct {
// REQUIRED; Indicates the function binding type.
Type *string
// The binding properties associated with an Azure Machine learning Studio.
Properties *AzureMachineLearningStudioFunctionBindingProperties
}
// GetFunctionBinding implements the FunctionBindingClassification interface for type AzureMachineLearningStudioFunctionBinding.
func (a *AzureMachineLearningStudioFunctionBinding) GetFunctionBinding() *FunctionBinding {
return &FunctionBinding{
Type: a.Type,
}
}
// AzureMachineLearningStudioFunctionBindingProperties - The binding properties associated with an Azure Machine learning
// Studio.
type AzureMachineLearningStudioFunctionBindingProperties struct {
// The API key used to authenticate with Request-Response endpoint.
APIKey *string
// Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute request. Default is 1000.
BatchSize *int32
// The Request-Response execute endpoint of the Azure Machine Learning Studio. Find out more here:
// https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
Endpoint *string
// The inputs for the Azure Machine Learning Studio endpoint.
Inputs *AzureMachineLearningStudioInputs
// A list of outputs from the Azure Machine Learning Studio endpoint execution.
Outputs []*AzureMachineLearningStudioOutputColumn
}
// AzureMachineLearningStudioFunctionBindingRetrievalProperties - The binding retrieval properties associated with an Azure
// Machine learning Studio.
type AzureMachineLearningStudioFunctionBindingRetrievalProperties struct {
// The Request-Response execute endpoint of the Azure Machine Learning Studio. Find out more here:
// https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
ExecuteEndpoint *string
// The function type.
UdfType *string
}
// AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters - The parameters needed to retrieve the default function
// definition for an Azure Machine Learning Studio function.
type AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters struct {
// REQUIRED; Indicates the function binding type.
BindingType *string
// The binding retrieval properties associated with an Azure Machine learning Studio.
BindingRetrievalProperties *AzureMachineLearningStudioFunctionBindingRetrievalProperties
}
// GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification
// interface for type AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters.
func (a *AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters {
return &FunctionRetrieveDefaultDefinitionParameters{
BindingType: a.BindingType,
}
}
// AzureMachineLearningStudioInputColumn - Describes an input column for the Azure Machine Learning Studio endpoint.
type AzureMachineLearningStudioInputColumn struct {
// The (Azure Machine Learning supported) data type of the input column. A list of valid Azure Machine Learning data types
// are described at https://msdn.microsoft.com/en-us/library/azure/dn905923.aspx .
DataType *string
// The zero based index of the function parameter this input maps to.
MapTo *int32
// The name of the input column.
Name *string
}
// AzureMachineLearningStudioInputs - The inputs for the Azure Machine Learning Studio endpoint.
type AzureMachineLearningStudioInputs struct {
// A list of input columns for the Azure Machine Learning Studio endpoint.
ColumnNames []*AzureMachineLearningStudioInputColumn
// The name of the input. This is the name provided while authoring the endpoint.
Name *string
}
// AzureMachineLearningStudioOutputColumn - Describes an output column for the Azure Machine Learning Studio endpoint.
type AzureMachineLearningStudioOutputColumn struct {
// The (Azure Machine Learning supported) data type of the output column. A list of valid Azure Machine Learning data types
// are described at https://msdn.microsoft.com/en-us/library/azure/dn905923.aspx .
DataType *string
// The name of the output column.
Name *string
}
// AzureSQLDatabaseDataSourceProperties - The properties that are associated with an Azure SQL database data source.
type AzureSQLDatabaseDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Database *string
// Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.
MaxBatchCount *float32
// Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
MaxWriterCount *float32
// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Password *string
// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Server *string
// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Table *string
// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
User *string
}
// AzureSQLDatabaseOutputDataSource - Describes an Azure SQL database output data source.
type AzureSQLDatabaseOutputDataSource struct {
// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with an Azure SQL database output. Required on PUT (CreateOrReplace) requests.
Properties *AzureSQLDatabaseOutputDataSourceProperties
}
// GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureSQLDatabaseOutputDataSource.
func (a *AzureSQLDatabaseOutputDataSource) GetOutputDataSource() *OutputDataSource {
return &OutputDataSource{
Type: a.Type,
}
}
// AzureSQLDatabaseOutputDataSourceProperties - The properties that are associated with an Azure SQL database output.
type AzureSQLDatabaseOutputDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Database *string
// Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.
MaxBatchCount *float32
// Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
MaxWriterCount *float32
// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Password *string
// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Server *string
// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Table *string
// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
User *string
}
// AzureSQLReferenceInputDataSource - Describes an Azure SQL database reference input data source.
type AzureSQLReferenceInputDataSource struct {
// REQUIRED; Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with SQL DB input containing reference data. Required on PUT (CreateOrReplace) requests.
Properties *AzureSQLReferenceInputDataSourceProperties
}
// GetReferenceInputDataSource implements the ReferenceInputDataSourceClassification interface for type AzureSQLReferenceInputDataSource.
func (a *AzureSQLReferenceInputDataSource) GetReferenceInputDataSource() *ReferenceInputDataSource {
return &ReferenceInputDataSource{
Type: a.Type,
}
}
// AzureSQLReferenceInputDataSourceProperties - The properties that are associated with SQL DB input containing reference
// data. Required on PUT (CreateOrReplace) requests.
type AzureSQLReferenceInputDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// This element is associated with the datasource element. This is the name of the database that output will be written to.
Database *string
// This element is associated with the datasource element. This query is used to fetch incremental changes from the SQL database.
// To use this option, we recommend using temporal tables in Azure SQL
// Database.
DeltaSnapshotQuery *string
// This element is associated with the datasource element. This query is used to fetch data from the sql database.
FullSnapshotQuery *string
// This element is associated with the datasource element. This is the password that will be used to connect to the SQL Database
// instance.
Password *string
// This element is associated with the datasource element. This indicates how frequently the data will be fetched from the
// database. It is of DateTime format.
RefreshRate *string
// Indicates the type of data refresh option.
RefreshType *RefreshType
// This element is associated with the datasource element. This is the name of the server that contains the database that
// will be written to.
Server *string
// This element is associated with the datasource element. This is the user name that will be used to connect to the SQL Database
// instance.
User *string
}
// AzureSynapseDataSourceProperties - The properties that are associated with an Azure SQL database data source.
type AzureSynapseDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Database *string
// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Password *string
// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Server *string
// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Table *string
// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
User *string
}
// AzureSynapseOutputDataSource - Describes an Azure Synapse output data source.
type AzureSynapseOutputDataSource struct {
// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with an Azure Synapse output. Required on PUT (CreateOrReplace) requests.
Properties *AzureSynapseOutputDataSourceProperties
}
// GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureSynapseOutputDataSource.
func (a *AzureSynapseOutputDataSource) GetOutputDataSource() *OutputDataSource {
return &OutputDataSource{
Type: a.Type,
}
}
// AzureSynapseOutputDataSourceProperties - The properties that are associated with an Azure Synapse output.
type AzureSynapseOutputDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Database *string
// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Password *string
// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Server *string
// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
Table *string
// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
User *string
}
// AzureTableOutputDataSource - Describes an Azure Table output data source.
type AzureTableOutputDataSource struct {
// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with an Azure Table output. Required on PUT (CreateOrReplace) requests.
Properties *AzureTableOutputDataSourceProperties
}
// GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureTableOutputDataSource.
func (a *AzureTableOutputDataSource) GetOutputDataSource() *OutputDataSource {
return &OutputDataSource{
Type: a.Type,
}
}
// AzureTableOutputDataSourceProperties - The properties that are associated with an Azure Table output.
type AzureTableOutputDataSourceProperties struct {
// The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests.
AccountKey *string
// The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests.
AccountName *string
// The number of rows to write to the Azure Table at a time.
BatchSize *int32
// If specified, each item in the array is the name of a column to remove (if present) from output event entities.
ColumnsToRemove []*string
// This element indicates the name of a column from the SELECT statement in the query that will be used as the partition key
// for the Azure Table. Required on PUT (CreateOrReplace) requests.
PartitionKey *string
// This element indicates the name of a column from the SELECT statement in the query that will be used as the row key for
// the Azure Table. Required on PUT (CreateOrReplace) requests.
RowKey *string
// The name of the Azure Table. Required on PUT (CreateOrReplace) requests.
Table *string
}
// BlobDataSourceProperties - The properties that are associated with a blob data source.
type BlobDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// The name of a container within the associated Storage account. This container contains either the blob(s) to be read from
// or written to. Required on PUT (CreateOrReplace) requests.
Container *string
// The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead.
DateFormat *string
// The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine
// whether or not they should be included as input or output to the job. See
// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output
// for a more detailed explanation
// and example.
PathPattern *string
// A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests.
StorageAccounts []*StorageAccount
// The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead.
TimeFormat *string
}
// BlobOutputDataSource - Describes a blob output data source.
type BlobOutputDataSource struct {
// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with a blob output. Required on PUT (CreateOrReplace) requests.
Properties *BlobOutputDataSourceProperties
}
// GetOutputDataSource implements the OutputDataSourceClassification interface for type BlobOutputDataSource.
func (b *BlobOutputDataSource) GetOutputDataSource() *OutputDataSource {
return &OutputDataSource{
Type: b.Type,
}
}
// BlobOutputDataSourceProperties - The properties that are associated with a blob output.
type BlobOutputDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// Blob path prefix.
BlobPathPrefix *string
// Blob write mode.
BlobWriteMode *BlobWriteMode
// The name of a container within the associated Storage account. This container contains either the blob(s) to be read from
// or written to. Required on PUT (CreateOrReplace) requests.
Container *string
// The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead.
DateFormat *string
// The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine
// whether or not they should be included as input or output to the job. See
// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output
// for a more detailed explanation
// and example.
PathPattern *string
// A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests.
StorageAccounts []*StorageAccount
// The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead.
TimeFormat *string
}
// BlobReferenceInputDataSource - Describes a blob input data source that contains reference data.
type BlobReferenceInputDataSource struct {
// REQUIRED; Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with a blob input containing reference data. Required on PUT (CreateOrReplace) requests.
Properties *BlobReferenceInputDataSourceProperties
}
// GetReferenceInputDataSource implements the ReferenceInputDataSourceClassification interface for type BlobReferenceInputDataSource.
func (b *BlobReferenceInputDataSource) GetReferenceInputDataSource() *ReferenceInputDataSource {
return &ReferenceInputDataSource{
Type: b.Type,
}
}
// BlobReferenceInputDataSourceProperties - The properties that are associated with a blob input containing reference data.
type BlobReferenceInputDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// The name of the blob input.
BlobName *string
// The name of a container within the associated Storage account. This container contains either the blob(s) to be read from
// or written to. Required on PUT (CreateOrReplace) requests.
Container *string
// The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead.
DateFormat *string
// The path pattern of the delta snapshot.
DeltaPathPattern *string
// The interval that the user generates a delta snapshot of this reference blob input data source.
DeltaSnapshotRefreshRate *string
// The refresh interval of the blob input data source.
FullSnapshotRefreshRate *string
// The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine
// whether or not they should be included as input or output to the job. See
// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output
// for a more detailed explanation
// and example.
PathPattern *string
// The partition count of the blob input data source. Range 1 - 256.
SourcePartitionCount *int32
// A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests.
StorageAccounts []*StorageAccount
// The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead.
TimeFormat *string
}
// BlobStreamInputDataSource - Describes a blob input data source that contains stream data.
type BlobStreamInputDataSource struct {
// REQUIRED; Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
Type *string
// The properties that are associated with a blob input containing stream data. Required on PUT (CreateOrReplace) requests.
Properties *BlobStreamInputDataSourceProperties
}
// GetStreamInputDataSource implements the StreamInputDataSourceClassification interface for type BlobStreamInputDataSource.
func (b *BlobStreamInputDataSource) GetStreamInputDataSource() *StreamInputDataSource {
return &StreamInputDataSource{
Type: b.Type,
}
}
// BlobStreamInputDataSourceProperties - The properties that are associated with a blob input containing stream data.
type BlobStreamInputDataSourceProperties struct {
// Authentication Mode.
AuthenticationMode *AuthenticationMode
// The name of a container within the associated Storage account. This container contains either the blob(s) to be read from
// or written to. Required on PUT (CreateOrReplace) requests.
Container *string
// The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead.
DateFormat *string
// The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine
// whether or not they should be included as input or output to the job. See
// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output
// for a more detailed explanation
// and example.
PathPattern *string
// The partition count of the blob input data source. Range 1 - 1024.
SourcePartitionCount *int32
// A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests.
StorageAccounts []*StorageAccount
// The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead.
TimeFormat *string
}
// CSVSerialization - Describes how data from an input is serialized or how data is serialized when written to an output in
// CSV format.
type CSVSerialization struct {
// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
Type *EventSerializationType
// The properties that are associated with the CSV serialization type. Required on PUT (CreateOrReplace) requests.
Properties *CSVSerializationProperties
}
// GetSerialization implements the SerializationClassification interface for type CSVSerialization.
func (c *CSVSerialization) GetSerialization() *Serialization {
return &Serialization{
Type: c.Type,
}
}
// CSVSerializationProperties - The properties that are associated with the CSV serialization type.
type CSVSerializationProperties struct {
// Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output.
// Required on PUT (CreateOrReplace) requests.
Encoding *Encoding
// Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input
// or
// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required
// on PUT (CreateOrReplace) requests.
FieldDelimiter *string
}
// CSharpFunctionBinding - The binding to a CSharp function.
type CSharpFunctionBinding struct {
// REQUIRED; Indicates the function binding type.
Type *string
// The binding properties associated with a CSharp function.
Properties *CSharpFunctionBindingProperties
}
// GetFunctionBinding implements the FunctionBindingClassification interface for type CSharpFunctionBinding.
func (c *CSharpFunctionBinding) GetFunctionBinding() *FunctionBinding {
return &FunctionBinding{
Type: c.Type,
}
}
// CSharpFunctionBindingProperties - The binding properties associated with a CSharp function.
type CSharpFunctionBindingProperties struct {
// The Csharp code containing a single function definition.
Class *string
// The Csharp code containing a single function definition.
DllPath *string
// The Csharp code containing a single function definition.
Method *string
// Refresh modes for Stream Analytics functions.
UpdateMode *UpdateMode
}
// CSharpFunctionBindingRetrievalProperties - The binding retrieval properties associated with a CSharp function.
type CSharpFunctionBindingRetrievalProperties struct {
// The CSharp code containing a single function definition.
Script *string
// The function type.
UdfType *string
}
// CSharpFunctionRetrieveDefaultDefinitionParameters - The parameters needed to retrieve the default function definition for
// a CSharp function.
type CSharpFunctionRetrieveDefaultDefinitionParameters struct {
// REQUIRED; Indicates the function binding type.
BindingType *string
// The binding retrieval properties associated with a CSharp function.
BindingRetrievalProperties *CSharpFunctionBindingRetrievalProperties
}
// GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification
// interface for type CSharpFunctionRetrieveDefaultDefinitionParameters.
func (c *CSharpFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters {
return &FunctionRetrieveDefaultDefinitionParameters{
BindingType: c.BindingType,
}
}
// Cluster - A Stream Analytics Cluster object
type Cluster struct {
// The geo-location where the resource lives
Location *string
// The properties associated with a Stream Analytics cluster.
Properties *ClusterProperties
// The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
SKU *ClusterSKU
// Resource tags.
Tags map[string]*string
// READ-ONLY; The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource
// has changed between requests. You can also use it in the If-Match or If-None-Match
// headers for write operations for optimistic concurrency.
Etag *string
// READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Type *string
}
// ClusterInfo - The properties associated with a Stream Analytics cluster.
type ClusterInfo struct {
// The resource id of cluster.
ID *string
}
// ClusterJob - A streaming job.
type ClusterJob struct {
// READ-ONLY; Resource ID of the streaming job.
ID *string
// READ-ONLY; The current execution state of the streaming job.
JobState *JobState
// READ-ONLY; The number of streaming units that are used by the streaming job.
StreamingUnits *int32
}
// ClusterJobListResult - A list of streaming jobs. Populated by a List operation.
type ClusterJobListResult struct {
// READ-ONLY; The URL to fetch the next set of streaming jobs.
NextLink *string
// READ-ONLY; A list of streaming jobs.
Value []*ClusterJob
}
// ClusterListResult - A list of clusters populated by a 'list' operation.
type ClusterListResult struct {
// READ-ONLY; The URL to fetch the next set of clusters.
NextLink *string
// READ-ONLY; A list of clusters.
Value []*Cluster
}
// ClusterProperties - The properties associated with a Stream Analytics cluster.
type ClusterProperties struct {
// READ-ONLY; Represents the number of streaming units currently being used on the cluster.
CapacityAllocated *int32
// READ-ONLY; Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running,
// this would be the capacity allocated.
CapacityAssigned *int32
// READ-ONLY; Unique identifier for the cluster.
ClusterID *string
// READ-ONLY; The date this cluster was created.
CreatedDate *time.Time
// READ-ONLY; The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled
ProvisioningState *ClusterProvisioningState
}
// ClusterSKU - The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate)
// requests.
type ClusterSKU struct {
// Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with
// a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate)
// requests.
Capacity *int32
// Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
Name *ClusterSKUName
}
// CompileQuery - The query compilation object which defines the input, output, and transformation for the query compilation.
type CompileQuery struct {
// REQUIRED; Describes the type of the job. Valid values are Cloud and 'Edge'.
JobType *JobType
// REQUIRED; The query to compile.
Query *string
// The query to compile.
CompatibilityLevel *CompatibilityLevel
// The functions for the query compilation.
Functions []*QueryFunction
// The inputs for the query compilation.
Inputs []*QueryInput
}
// Compression - Describes how input data is compressed
type Compression struct {
// REQUIRED; Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
Type *CompressionType
}
// CustomClrSerialization - Describes how data from an input is serialized or how data is serialized when written to an output
// in custom format.
type CustomClrSerialization struct {
// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
Type *EventSerializationType
// The properties that are associated with the CustomClr serialization type. Required on PUT (CreateOrReplace) requests.
Properties *CustomClrSerializationProperties
}
// GetSerialization implements the SerializationClassification interface for type CustomClrSerialization.
func (c *CustomClrSerialization) GetSerialization() *Serialization {
return &Serialization{
Type: c.Type,
}
}
// CustomClrSerializationProperties - The properties that are associated with the CustomClr serialization type.
type CustomClrSerializationProperties struct {
// The serialization class name.
SerializationClassName *string