azure_svc_datalakeanalytics 0.2.0

generated REST API bindings
Documentation
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
#![doc = "generated by AutoRust"]
#![allow(non_camel_case_types)]
#![allow(unused_imports)]
use serde::{Deserialize, Serialize};
#[doc = "A Data Lake Analytics catalog access control list (ACL) entry."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct Acl {
    #[doc = "the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively."]
    #[serde(rename = "aceType", default, skip_serializing_if = "Option::is_none")]
    pub ace_type: Option<acl::AceType>,
    #[doc = "the Azure AD object ID of the user or group being specified in the access control list (ACL) entry."]
    #[serde(rename = "principalId", default, skip_serializing_if = "Option::is_none")]
    pub principal_id: Option<String>,
    #[doc = "the permission type of the access control list (ACL) entry."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub permission: Option<acl::Permission>,
}
impl Acl {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod acl {
    use super::*;
    #[doc = "the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AceType {
        UserObj,
        GroupObj,
        Other,
        User,
        Group,
    }
    #[doc = "the permission type of the access control list (ACL) entry."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Permission {
        None,
        Use,
        Create,
        Drop,
        Alter,
        Write,
        All,
    }
}
#[doc = "The parameters used to create or update an access control list (ACL) entry."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AclCreateOrUpdateParameters {
    #[doc = "the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively."]
    #[serde(rename = "aceType")]
    pub ace_type: acl_create_or_update_parameters::AceType,
    #[doc = "the Azure AD object ID of the user or group being specified in the access control list (ACL) entry."]
    #[serde(rename = "principalId")]
    pub principal_id: String,
    #[doc = "the permission type of the access control list (ACL) entry."]
    pub permission: acl_create_or_update_parameters::Permission,
}
impl AclCreateOrUpdateParameters {
    pub fn new(
        ace_type: acl_create_or_update_parameters::AceType,
        principal_id: String,
        permission: acl_create_or_update_parameters::Permission,
    ) -> Self {
        Self {
            ace_type,
            principal_id,
            permission,
        }
    }
}
pub mod acl_create_or_update_parameters {
    use super::*;
    #[doc = "the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AceType {
        UserObj,
        GroupObj,
        Other,
        User,
        Group,
    }
    #[doc = "the permission type of the access control list (ACL) entry."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Permission {
        None,
        Use,
        Create,
        Drop,
        Alter,
        Write,
        All,
    }
}
#[doc = "The parameters used to delete an access control list (ACL) entry."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AclDeleteParameters {
    #[doc = "the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively."]
    #[serde(rename = "aceType")]
    pub ace_type: acl_delete_parameters::AceType,
    #[doc = "the Azure AD object ID of the user or group being specified in the access control list (ACL) entry."]
    #[serde(rename = "principalId")]
    pub principal_id: String,
}
impl AclDeleteParameters {
    pub fn new(ace_type: acl_delete_parameters::AceType, principal_id: String) -> Self {
        Self { ace_type, principal_id }
    }
}
pub mod acl_delete_parameters {
    use super::*;
    #[doc = "the access control list (ACL) entry type. UserObj and GroupObj denote the owning user and group, respectively."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum AceType {
        UserObj,
        GroupObj,
        Other,
        User,
        Group,
    }
}
#[doc = "A Data Lake Analytics catalog access control list (ACL)."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AclList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the access control list (ACL)."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<Acl>,
}
impl AclList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CatalogItem {
    #[doc = "the name of the Data Lake Analytics account."]
    #[serde(rename = "computeAccountName", default, skip_serializing_if = "Option::is_none")]
    pub compute_account_name: Option<String>,
    #[doc = "the version of the catalog item."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}
impl CatalogItem {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CatalogItemList {
    #[doc = "the link to the next page of results."]
    #[serde(rename = "nextLink", default, skip_serializing_if = "Option::is_none")]
    pub next_link: Option<String>,
}
impl CatalogItemList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data Lake Analytics catalog credential creation parameters."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct DataLakeAnalyticsCatalogCredentialCreateParameters {
    #[doc = "the password for the credential and user with access to the data source."]
    pub password: String,
    #[doc = "the URI identifier for the data source this credential can connect to in the format <hostname>:<port>"]
    pub uri: String,
    #[doc = "the object identifier for the user associated with this credential with access to the data source."]
    #[serde(rename = "userId")]
    pub user_id: String,
}
impl DataLakeAnalyticsCatalogCredentialCreateParameters {
    pub fn new(password: String, uri: String, user_id: String) -> Self {
        Self { password, uri, user_id }
    }
}
#[doc = "Data Lake Analytics catalog credential deletion parameters."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct DataLakeAnalyticsCatalogCredentialDeleteParameters {
    #[doc = "the current password for the credential and user with access to the data source. This is required if the requester is not the account owner."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,
}
impl DataLakeAnalyticsCatalogCredentialDeleteParameters {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data Lake Analytics catalog credential update parameters."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct DataLakeAnalyticsCatalogCredentialUpdateParameters {
    #[doc = "the current password for the credential and user with access to the data source. This is required if the requester is not the account owner."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,
    #[doc = "the new password for the credential and user with access to the data source."]
    #[serde(rename = "newPassword", default, skip_serializing_if = "Option::is_none")]
    pub new_password: Option<String>,
    #[doc = "the URI identifier for the data source this credential can connect to in the format <hostname>:<port>"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
    #[doc = "the object identifier for the user associated with this credential with access to the data source."]
    #[serde(rename = "userId", default, skip_serializing_if = "Option::is_none")]
    pub user_id: Option<String>,
}
impl DataLakeAnalyticsCatalogCredentialUpdateParameters {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data Lake Analytics catalog secret creation and update parameters. This is deprecated and will be removed in the next release. Please use DataLakeAnalyticsCatalogCredentialCreateOrUpdateParameters instead."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters {
    #[doc = "the password for the secret to pass in"]
    pub password: String,
    #[doc = "the URI identifier for the secret in the format <hostname>:<port>"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
}
impl DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters {
    pub fn new(password: String) -> Self {
        Self { password, uri: None }
    }
}
#[doc = "A Data Lake Analytics DDL name item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct DdlName {
    #[doc = "the name of the table associated with this database and schema."]
    #[serde(rename = "firstPart", default, skip_serializing_if = "Option::is_none")]
    pub first_part: Option<String>,
    #[doc = "the name of the table associated with this database and schema."]
    #[serde(rename = "secondPart", default, skip_serializing_if = "Option::is_none")]
    pub second_part: Option<String>,
    #[doc = "the name of the table associated with this database and schema."]
    #[serde(rename = "thirdPart", default, skip_serializing_if = "Option::is_none")]
    pub third_part: Option<String>,
    #[doc = "the name of the table associated with this database and schema."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub server: Option<String>,
}
impl DdlName {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog entity identifier object."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct EntityId {
    #[doc = "A Data Lake Analytics DDL name item."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<DdlName>,
    #[doc = "the version of the external data source."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}
impl EntityId {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog external table item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ExternalTable {
    #[doc = "the name of the table associated with this database and schema."]
    #[serde(rename = "tableName", default, skip_serializing_if = "Option::is_none")]
    pub table_name: Option<String>,
    #[doc = "A Data Lake Analytics catalog entity identifier object."]
    #[serde(rename = "dataSource", default, skip_serializing_if = "Option::is_none")]
    pub data_source: Option<EntityId>,
}
impl ExternalTable {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog type field information item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TypeFieldInfo {
    #[doc = "the name of the field associated with this type."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "the type of the field."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl TypeFieldInfo {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL Assembly."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlAssembly {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the assembly."]
    #[serde(rename = "assemblyName", default, skip_serializing_if = "Option::is_none")]
    pub assembly_name: Option<String>,
    #[doc = "the name of the CLR."]
    #[serde(rename = "clrName", default, skip_serializing_if = "Option::is_none")]
    pub clr_name: Option<String>,
    #[doc = "the switch indicating if this assembly is visible or not."]
    #[serde(rename = "isVisible", default, skip_serializing_if = "Option::is_none")]
    pub is_visible: Option<bool>,
    #[doc = "the switch indicating if this assembly is user defined or not."]
    #[serde(rename = "isUserDefined", default, skip_serializing_if = "Option::is_none")]
    pub is_user_defined: Option<bool>,
    #[doc = "the list of files associated with the assembly"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub files: Vec<USqlAssemblyFileInfo>,
    #[doc = "the list of dependencies associated with the assembly"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub dependencies: Vec<USqlAssemblyDependencyInfo>,
}
impl USqlAssembly {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL assembly CLR item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlAssemblyClr {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the assembly."]
    #[serde(rename = "assemblyClrName", default, skip_serializing_if = "Option::is_none")]
    pub assembly_clr_name: Option<String>,
    #[doc = "the name of the CLR."]
    #[serde(rename = "clrName", default, skip_serializing_if = "Option::is_none")]
    pub clr_name: Option<String>,
}
impl USqlAssemblyClr {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL dependency information item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlAssemblyDependencyInfo {
    #[doc = "A Data Lake Analytics catalog entity identifier object."]
    #[serde(rename = "entityId", default, skip_serializing_if = "Option::is_none")]
    pub entity_id: Option<EntityId>,
}
impl USqlAssemblyDependencyInfo {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL assembly file information item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlAssemblyFileInfo {
    #[doc = "the assembly file type."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<u_sql_assembly_file_info::Type>,
    #[doc = "The original path to the assembly file."]
    #[serde(rename = "originalPath", default, skip_serializing_if = "Option::is_none")]
    pub original_path: Option<String>,
    #[doc = "The content path to the assembly file."]
    #[serde(rename = "contentPath", default, skip_serializing_if = "Option::is_none")]
    pub content_path: Option<String>,
}
impl USqlAssemblyFileInfo {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod u_sql_assembly_file_info {
    use super::*;
    #[doc = "the assembly file type."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Type {
        Assembly,
        Resource,
        Nodeploy,
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL assembly CLR item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlAssemblyList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of assemblies in the database"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlAssemblyClr>,
}
impl USqlAssemblyList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL credential item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlCredential {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the credential."]
    #[serde(rename = "credentialName", default, skip_serializing_if = "Option::is_none")]
    pub credential_name: Option<String>,
}
impl USqlCredential {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL credential item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlCredentialList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of credentials in the database"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlCredential>,
}
impl USqlCredentialList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL database item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlDatabase {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
}
impl USqlDatabase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL database item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlDatabaseList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of databases"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlDatabase>,
}
impl USqlDatabaseList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL directed column item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlDirectedColumn {
    #[doc = "the name of the index in the table."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "the switch indicating if the index is descending or not."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub descending: Option<bool>,
}
impl USqlDirectedColumn {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL distribution information object."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlDistributionInfo {
    #[doc = "the type of this distribution."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<i32>,
    #[doc = "the list of directed columns in the distribution"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub keys: Vec<USqlDirectedColumn>,
    #[doc = "the count of indices using this distribution."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[doc = "the dynamic count of indices using this distribution."]
    #[serde(rename = "dynamicCount", default, skip_serializing_if = "Option::is_none")]
    pub dynamic_count: Option<i32>,
}
impl USqlDistributionInfo {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL external datasource item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlExternalDataSource {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the external data source."]
    #[serde(rename = "externalDataSourceName", default, skip_serializing_if = "Option::is_none")]
    pub external_data_source_name: Option<String>,
    #[doc = "the name of the provider for the external data source."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub provider: Option<String>,
    #[doc = "the name of the provider string for the external data source."]
    #[serde(rename = "providerString", default, skip_serializing_if = "Option::is_none")]
    pub provider_string: Option<String>,
    #[doc = "the list of types to push down from the external data source."]
    #[serde(rename = "pushdownTypes", default, skip_serializing_if = "Vec::is_empty")]
    pub pushdown_types: Vec<String>,
}
impl USqlExternalDataSource {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL external datasource item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlExternalDataSourceList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of external data sources in the database"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlExternalDataSource>,
}
impl USqlExternalDataSourceList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table index item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlIndex {
    #[doc = "the name of the index in the table."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "the list of directed columns in the index"]
    #[serde(rename = "indexKeys", default, skip_serializing_if = "Vec::is_empty")]
    pub index_keys: Vec<USqlDirectedColumn>,
    #[doc = "the list of columns in the index"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub columns: Vec<String>,
    #[doc = "A Data Lake Analytics catalog U-SQL distribution information object."]
    #[serde(rename = "distributionInfo", default, skip_serializing_if = "Option::is_none")]
    pub distribution_info: Option<USqlDistributionInfo>,
    #[doc = "partition function ID for the index."]
    #[serde(rename = "partitionFunction", default, skip_serializing_if = "Option::is_none")]
    pub partition_function: Option<String>,
    #[doc = "the list of partition keys in the index"]
    #[serde(rename = "partitionKeyList", default, skip_serializing_if = "Vec::is_empty")]
    pub partition_key_list: Vec<String>,
    #[doc = "the list of full paths to the streams that contain this index in the DataLake account."]
    #[serde(rename = "streamNames", default, skip_serializing_if = "Vec::is_empty")]
    pub stream_names: Vec<String>,
    #[doc = "the switch indicating if this index is a columnstore index."]
    #[serde(rename = "isColumnstore", default, skip_serializing_if = "Option::is_none")]
    pub is_columnstore: Option<bool>,
    #[doc = "the ID of this index within the table."]
    #[serde(rename = "indexId", default, skip_serializing_if = "Option::is_none")]
    pub index_id: Option<i32>,
    #[doc = "the switch indicating if this index is a unique index."]
    #[serde(rename = "isUnique", default, skip_serializing_if = "Option::is_none")]
    pub is_unique: Option<bool>,
}
impl USqlIndex {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL package item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlPackage {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database containing the package."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the schema associated with this package and database."]
    #[serde(rename = "schemaName", default, skip_serializing_if = "Option::is_none")]
    pub schema_name: Option<String>,
    #[doc = "the name of the package."]
    #[serde(rename = "packageName", default, skip_serializing_if = "Option::is_none")]
    pub package_name: Option<String>,
    #[doc = "the definition of the package."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub definition: Option<String>,
}
impl USqlPackage {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL package item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlPackageList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of packages in the database and schema combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlPackage>,
}
impl USqlPackageList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL procedure item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlProcedure {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the schema associated with this procedure and database."]
    #[serde(rename = "schemaName", default, skip_serializing_if = "Option::is_none")]
    pub schema_name: Option<String>,
    #[doc = "the name of the procedure."]
    #[serde(rename = "procName", default, skip_serializing_if = "Option::is_none")]
    pub proc_name: Option<String>,
    #[doc = "the defined query of the procedure."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub definition: Option<String>,
}
impl USqlProcedure {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL procedure item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlProcedureList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of procedure in the database and schema combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlProcedure>,
}
impl USqlProcedureList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL schema item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlSchema {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the schema."]
    #[serde(rename = "schemaName", default, skip_serializing_if = "Option::is_none")]
    pub schema_name: Option<String>,
}
impl USqlSchema {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL schema item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlSchemaList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of schemas in the database"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlSchema>,
}
impl USqlSchemaList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL secret item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlSecret {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the secret."]
    #[serde(rename = "secretName", default, skip_serializing_if = "Option::is_none")]
    pub secret_name: Option<String>,
    #[doc = "the creation time of the credential object. This is the only information returned about a secret from a GET."]
    #[serde(rename = "creationTime", default, skip_serializing_if = "Option::is_none")]
    pub creation_time: Option<String>,
    #[doc = "the URI identifier for the secret in the format <hostname>:<port>"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
    #[doc = "the password for the secret to pass in"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,
}
impl USqlSecret {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTable {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the schema associated with this table and database."]
    #[serde(rename = "schemaName", default, skip_serializing_if = "Option::is_none")]
    pub schema_name: Option<String>,
    #[doc = "the name of the table."]
    #[serde(rename = "tableName", default, skip_serializing_if = "Option::is_none")]
    pub table_name: Option<String>,
    #[doc = "the list of columns in this table"]
    #[serde(rename = "columnList", default, skip_serializing_if = "Vec::is_empty")]
    pub column_list: Vec<USqlTableColumn>,
    #[doc = "the list of indices in this table"]
    #[serde(rename = "indexList", default, skip_serializing_if = "Vec::is_empty")]
    pub index_list: Vec<USqlIndex>,
    #[doc = "the list of partition keys in the table"]
    #[serde(rename = "partitionKeyList", default, skip_serializing_if = "Vec::is_empty")]
    pub partition_key_list: Vec<String>,
    #[doc = "A Data Lake Analytics catalog external table item."]
    #[serde(rename = "externalTable", default, skip_serializing_if = "Option::is_none")]
    pub external_table: Option<ExternalTable>,
    #[doc = "A Data Lake Analytics catalog U-SQL distribution information object."]
    #[serde(rename = "distributionInfo", default, skip_serializing_if = "Option::is_none")]
    pub distribution_info: Option<USqlDistributionInfo>,
}
impl USqlTable {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table column item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableColumn {
    #[doc = "the name of the column in the table."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "the object type of the specified column (such as System.String)."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl USqlTableColumn {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table fragment item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableFragment {
    #[doc = "the parent object Id of the table fragment. The parent could be a table or table partition."]
    #[serde(rename = "parentId", default, skip_serializing_if = "Option::is_none")]
    pub parent_id: Option<String>,
    #[doc = "the version of the catalog item."]
    #[serde(rename = "fragmentId", default, skip_serializing_if = "Option::is_none")]
    pub fragment_id: Option<String>,
    #[doc = "the ordinal of the index which contains the table fragment."]
    #[serde(rename = "indexId", default, skip_serializing_if = "Option::is_none")]
    pub index_id: Option<i32>,
    #[doc = "the data size of the table fragment in bytes."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
    #[doc = "the number of rows in the table fragment."]
    #[serde(rename = "rowCount", default, skip_serializing_if = "Option::is_none")]
    pub row_count: Option<i64>,
    #[doc = "the creation time of the table fragment."]
    #[serde(rename = "createDate", default, skip_serializing_if = "Option::is_none")]
    pub create_date: Option<String>,
    #[doc = "the relative path for the table fragment location."]
    #[serde(rename = "streamPath", default, skip_serializing_if = "Option::is_none")]
    pub stream_path: Option<String>,
}
impl USqlTableFragment {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table fragment item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableFragmentList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of table fragments in the database, schema and table combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlTableFragment>,
}
impl USqlTableFragmentList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of tables in the database and schema combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlTable>,
}
impl USqlTableList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table partition item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTablePartition {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the schema associated with this table partition and database."]
    #[serde(rename = "schemaName", default, skip_serializing_if = "Option::is_none")]
    pub schema_name: Option<String>,
    #[doc = "the name of the table partition."]
    #[serde(rename = "partitionName", default, skip_serializing_if = "Option::is_none")]
    pub partition_name: Option<String>,
    #[doc = "A Data Lake Analytics DDL name item."]
    #[serde(rename = "parentName", default, skip_serializing_if = "Option::is_none")]
    pub parent_name: Option<DdlName>,
    #[doc = "the index ID for this partition."]
    #[serde(rename = "indexId", default, skip_serializing_if = "Option::is_none")]
    pub index_id: Option<i32>,
    #[doc = "the list of labels associated with this partition."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub label: Vec<String>,
    #[doc = "the creation time of the partition"]
    #[serde(rename = "createDate", default, skip_serializing_if = "Option::is_none")]
    pub create_date: Option<String>,
}
impl USqlTablePartition {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table partition item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTablePartitionList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of table partitions in the database, schema and table combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlTablePartition>,
}
impl USqlTablePartitionList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog table or partition preview rows item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTablePreview {
    #[doc = "the total number of rows in the table or partition."]
    #[serde(rename = "totalRowCount", default, skip_serializing_if = "Option::is_none")]
    pub total_row_count: Option<i64>,
    #[doc = "the total number of columns in the table or partition."]
    #[serde(rename = "totalColumnCount", default, skip_serializing_if = "Option::is_none")]
    pub total_column_count: Option<i64>,
    #[doc = "the rows of the table or partition preview, where each row is an array of string representations the row's values. Note: Byte arrays will appear as base-64 encoded values, SqlMap and SqlArray objects will appear as escaped JSON objects, and DateTime objects will appear as ISO formatted UTC date-times."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub rows: Vec<Vec<String>>,
    #[doc = "true if the amount of data in the response is less than expected due to the preview operation's size limitations. This can occur if the requested rows or row counts are too large."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub truncated: Option<bool>,
    #[doc = "the schema of the table or partition."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub schema: Vec<USqlTableColumn>,
}
impl USqlTablePreview {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table statistics item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableStatistics {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the schema associated with this table and database."]
    #[serde(rename = "schemaName", default, skip_serializing_if = "Option::is_none")]
    pub schema_name: Option<String>,
    #[doc = "the name of the table."]
    #[serde(rename = "tableName", default, skip_serializing_if = "Option::is_none")]
    pub table_name: Option<String>,
    #[doc = "the name of the table statistics."]
    #[serde(rename = "statisticsName", default, skip_serializing_if = "Option::is_none")]
    pub statistics_name: Option<String>,
    #[doc = "the name of the user statistics."]
    #[serde(rename = "userStatName", default, skip_serializing_if = "Option::is_none")]
    pub user_stat_name: Option<String>,
    #[doc = "the path to the statistics data."]
    #[serde(rename = "statDataPath", default, skip_serializing_if = "Option::is_none")]
    pub stat_data_path: Option<String>,
    #[doc = "the creation time of the statistics."]
    #[serde(rename = "createTime", default, skip_serializing_if = "Option::is_none")]
    pub create_time: Option<String>,
    #[doc = "the last time the statistics were updated."]
    #[serde(rename = "updateTime", default, skip_serializing_if = "Option::is_none")]
    pub update_time: Option<String>,
    #[doc = "the switch indicating if these statistics are user created."]
    #[serde(rename = "isUserCreated", default, skip_serializing_if = "Option::is_none")]
    pub is_user_created: Option<bool>,
    #[doc = "the switch indicating if these statistics are automatically created."]
    #[serde(rename = "isAutoCreated", default, skip_serializing_if = "Option::is_none")]
    pub is_auto_created: Option<bool>,
    #[doc = "the switch indicating if these statistics have a filter."]
    #[serde(rename = "hasFilter", default, skip_serializing_if = "Option::is_none")]
    pub has_filter: Option<bool>,
    #[doc = "the filter definition for the statistics."]
    #[serde(rename = "filterDefinition", default, skip_serializing_if = "Option::is_none")]
    pub filter_definition: Option<String>,
    #[doc = "the list of column names associated with these statistics."]
    #[serde(rename = "colNames", default, skip_serializing_if = "Vec::is_empty")]
    pub col_names: Vec<String>,
}
impl USqlTableStatistics {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table statistics item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableStatisticsList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of table statistics in the database, schema and table combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlTableStatistics>,
}
impl USqlTableStatisticsList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table type item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableType {
    #[serde(flatten)]
    pub u_sql_type: USqlType,
    #[doc = "the type field information associated with this table type."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub columns: Vec<TypeFieldInfo>,
}
impl USqlTableType {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table type item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableTypeList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of table types in the database and schema combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlTableType>,
}
impl USqlTableTypeList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table valued function item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableValuedFunction {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the schema associated with this database."]
    #[serde(rename = "schemaName", default, skip_serializing_if = "Option::is_none")]
    pub schema_name: Option<String>,
    #[doc = "the name of the table valued function."]
    #[serde(rename = "tvfName", default, skip_serializing_if = "Option::is_none")]
    pub tvf_name: Option<String>,
    #[doc = "the definition of the table valued function."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub definition: Option<String>,
}
impl USqlTableValuedFunction {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL table valued function item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTableValuedFunctionList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of table valued functions in the database and schema combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlTableValuedFunction>,
}
impl USqlTableValuedFunctionList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL type item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlType {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the schema associated with this table and database."]
    #[serde(rename = "schemaName", default, skip_serializing_if = "Option::is_none")]
    pub schema_name: Option<String>,
    #[doc = "the name of type for this type."]
    #[serde(rename = "typeName", default, skip_serializing_if = "Option::is_none")]
    pub type_name: Option<String>,
    #[doc = "the type family for this type."]
    #[serde(rename = "typeFamily", default, skip_serializing_if = "Option::is_none")]
    pub type_family: Option<String>,
    #[doc = "the C# name for this type."]
    #[serde(rename = "cSharpName", default, skip_serializing_if = "Option::is_none")]
    pub c_sharp_name: Option<String>,
    #[doc = "the fully qualified C# name for this type."]
    #[serde(rename = "fullCSharpName", default, skip_serializing_if = "Option::is_none")]
    pub full_c_sharp_name: Option<String>,
    #[doc = "the system type ID for this type."]
    #[serde(rename = "systemTypeId", default, skip_serializing_if = "Option::is_none")]
    pub system_type_id: Option<i32>,
    #[doc = "the user type ID for this type."]
    #[serde(rename = "userTypeId", default, skip_serializing_if = "Option::is_none")]
    pub user_type_id: Option<i32>,
    #[doc = "the schema ID for this type."]
    #[serde(rename = "schemaId", default, skip_serializing_if = "Option::is_none")]
    pub schema_id: Option<i32>,
    #[doc = "the principal ID for this type."]
    #[serde(rename = "principalId", default, skip_serializing_if = "Option::is_none")]
    pub principal_id: Option<i32>,
    #[doc = "The switch indicating if this type is nullable."]
    #[serde(rename = "isNullable", default, skip_serializing_if = "Option::is_none")]
    pub is_nullable: Option<bool>,
    #[doc = "The switch indicating if this type is user defined."]
    #[serde(rename = "isUserDefined", default, skip_serializing_if = "Option::is_none")]
    pub is_user_defined: Option<bool>,
    #[doc = "The switch indicating if this type is an assembly type."]
    #[serde(rename = "isAssemblyType", default, skip_serializing_if = "Option::is_none")]
    pub is_assembly_type: Option<bool>,
    #[doc = "The switch indicating if this type is a table type."]
    #[serde(rename = "isTableType", default, skip_serializing_if = "Option::is_none")]
    pub is_table_type: Option<bool>,
    #[doc = "The switch indicating if this type is a complex type."]
    #[serde(rename = "isComplexType", default, skip_serializing_if = "Option::is_none")]
    pub is_complex_type: Option<bool>,
}
impl USqlType {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL type item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlTypeList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of types in the database and schema combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlType>,
}
impl USqlTypeList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL view item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlView {
    #[serde(flatten)]
    pub catalog_item: CatalogItem,
    #[doc = "the name of the database."]
    #[serde(rename = "databaseName", default, skip_serializing_if = "Option::is_none")]
    pub database_name: Option<String>,
    #[doc = "the name of the schema associated with this view and database."]
    #[serde(rename = "schemaName", default, skip_serializing_if = "Option::is_none")]
    pub schema_name: Option<String>,
    #[doc = "the name of the view."]
    #[serde(rename = "viewName", default, skip_serializing_if = "Option::is_none")]
    pub view_name: Option<String>,
    #[doc = "the defined query of the view."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub definition: Option<String>,
}
impl USqlView {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Data Lake Analytics catalog U-SQL view item list."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct USqlViewList {
    #[serde(flatten)]
    pub catalog_item_list: CatalogItemList,
    #[doc = "the list of view in the database and schema combination"]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<USqlView>,
}
impl USqlViewList {
    pub fn new() -> Self {
        Self::default()
    }
}