File: _models.py

package info (click to toggle)
python-azure 20201208%2Bgit-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,437,920 kB
  • sloc: python: 4,287,452; javascript: 269; makefile: 198; sh: 187; xml: 106
file content (1583 lines) | stat: -rw-r--r-- 62,706 bytes parent folder | download
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
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from msrest.exceptions import HttpOperationError


class AvailableOperation(Model):
    """Resource provider available operation model.

    :param display: The list of operations
    :type display:
     ~azure.mgmt.vmwarecloudsimple.models.AvailableOperationDisplay
    :param is_data_action: Indicating whether the operation is a data action
     or not. Default value: False .
    :type is_data_action: bool
    :param name:
     {resourceProviderNamespace}/{resourceType}/{read|write|delete|action}
    :type name: str
    :param origin: The origin of operation. Possible values include: 'user',
     'system', 'user,system'
    :type origin: str or ~azure.mgmt.vmwarecloudsimple.models.OperationOrigin
    :param service_specification: The list of specification's service metrics
    :type service_specification:
     ~azure.mgmt.vmwarecloudsimple.models.AvailableOperationDisplayPropertyServiceSpecificationMetricsList
    """

    _attribute_map = {
        'display': {'key': 'display', 'type': 'AvailableOperationDisplay'},
        'is_data_action': {'key': 'isDataAction', 'type': 'bool'},
        'name': {'key': 'name', 'type': 'str'},
        'origin': {'key': 'origin', 'type': 'OperationOrigin'},
        'service_specification': {'key': 'properties.serviceSpecification', 'type': 'AvailableOperationDisplayPropertyServiceSpecificationMetricsList'},
    }

    def __init__(self, **kwargs):
        super(AvailableOperation, self).__init__(**kwargs)
        self.display = kwargs.get('display', None)
        self.is_data_action = kwargs.get('is_data_action', False)
        self.name = kwargs.get('name', None)
        self.origin = kwargs.get('origin', None)
        self.service_specification = kwargs.get('service_specification', None)


class AvailableOperationDisplay(Model):
    """Resource provider available operation display model.

    :param description: Description of the operation for display purposes
    :type description: str
    :param operation: Name of the operation for display purposes
    :type operation: str
    :param provider: Name of the provider for display purposes
    :type provider: str
    :param resource: Name of the resource type for display purposes
    :type resource: str
    """

    _attribute_map = {
        'description': {'key': 'description', 'type': 'str'},
        'operation': {'key': 'operation', 'type': 'str'},
        'provider': {'key': 'provider', 'type': 'str'},
        'resource': {'key': 'resource', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(AvailableOperationDisplay, self).__init__(**kwargs)
        self.description = kwargs.get('description', None)
        self.operation = kwargs.get('operation', None)
        self.provider = kwargs.get('provider', None)
        self.resource = kwargs.get('resource', None)


class AvailableOperationDisplayPropertyServiceSpecificationMetricsItem(Model):
    """Available operation display property service specification metrics item.

    All required parameters must be populated in order to send to Azure.

    :param aggregation_type: Required. Metric's aggregation type for e.g.
     (Average, Total). Possible values include: 'Average', 'Total'
    :type aggregation_type: str or
     ~azure.mgmt.vmwarecloudsimple.models.AggregationType
    :param display_description: Required. Metric's description
    :type display_description: str
    :param display_name: Required. Human readable metric's name
    :type display_name: str
    :param name: Required. Metric's name/id
    :type name: str
    :param unit: Required. Metric's unit
    :type unit: str
    """

    _validation = {
        'aggregation_type': {'required': True},
        'display_description': {'required': True},
        'display_name': {'required': True},
        'name': {'required': True},
        'unit': {'required': True},
    }

    _attribute_map = {
        'aggregation_type': {'key': 'aggregationType', 'type': 'AggregationType'},
        'display_description': {'key': 'displayDescription', 'type': 'str'},
        'display_name': {'key': 'displayName', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'unit': {'key': 'unit', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(AvailableOperationDisplayPropertyServiceSpecificationMetricsItem, self).__init__(**kwargs)
        self.aggregation_type = kwargs.get('aggregation_type', None)
        self.display_description = kwargs.get('display_description', None)
        self.display_name = kwargs.get('display_name', None)
        self.name = kwargs.get('name', None)
        self.unit = kwargs.get('unit', None)


class AvailableOperationDisplayPropertyServiceSpecificationMetricsList(Model):
    """List of available operation display property service specification metrics.

    :param metric_specifications: Metric specifications of operation
    :type metric_specifications:
     list[~azure.mgmt.vmwarecloudsimple.models.AvailableOperationDisplayPropertyServiceSpecificationMetricsItem]
    """

    _attribute_map = {
        'metric_specifications': {'key': 'metricSpecifications', 'type': '[AvailableOperationDisplayPropertyServiceSpecificationMetricsItem]'},
    }

    def __init__(self, **kwargs):
        super(AvailableOperationDisplayPropertyServiceSpecificationMetricsList, self).__init__(**kwargs)
        self.metric_specifications = kwargs.get('metric_specifications', None)


class CloudError(Model):
    """CloudError.
    """

    _attribute_map = {
    }


class CSRPError(Model):
    """General error model.

    :param error: Error's body
    :type error: ~azure.mgmt.vmwarecloudsimple.models.CSRPErrorBody
    """

    _attribute_map = {
        'error': {'key': 'error', 'type': 'CSRPErrorBody'},
    }

    def __init__(self, **kwargs):
        super(CSRPError, self).__init__(**kwargs)
        self.error = kwargs.get('error', None)


class CSRPErrorException(HttpOperationError):
    """Server responsed with exception of type: 'CSRPError'.

    :param deserialize: A deserializer
    :param response: Server response to be deserialized.
    """

    def __init__(self, deserialize, response, *args):

        super(CSRPErrorException, self).__init__(deserialize, response, 'CSRPError', *args)


class CSRPErrorBody(Model):
    """Error properties.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar code: Error's code
    :vartype code: str
    :ivar details: Error's details
    :vartype details: list[~azure.mgmt.vmwarecloudsimple.models.CSRPErrorBody]
    :ivar message: Error's message
    :vartype message: str
    :param target: Error's target
    :type target: str
    """

    _validation = {
        'code': {'readonly': True},
        'details': {'readonly': True},
        'message': {'readonly': True},
    }

    _attribute_map = {
        'code': {'key': 'code', 'type': 'str'},
        'details': {'key': 'details', 'type': '[CSRPErrorBody]'},
        'message': {'key': 'message', 'type': 'str'},
        'target': {'key': 'target', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(CSRPErrorBody, self).__init__(**kwargs)
        self.code = None
        self.details = None
        self.message = None
        self.target = kwargs.get('target', None)


class CustomizationHostName(Model):
    """Host name model.

    :param name: Hostname
    :type name: str
    :param type: Type of host name. Possible values include: 'USER_DEFINED',
     'PREFIX_BASED', 'FIXED', 'VIRTUAL_MACHINE_NAME', 'CUSTOM_NAME'
    :type type: str or ~azure.mgmt.vmwarecloudsimple.models.enum
    """

    _attribute_map = {
        'name': {'key': 'name', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(CustomizationHostName, self).__init__(**kwargs)
        self.name = kwargs.get('name', None)
        self.type = kwargs.get('type', None)


class CustomizationIdentity(Model):
    """CustomizationIdentity.

    :param data: Windows Text Identity. Prepared data
    :type data: str
    :param host_name: Virtual machine host name settings
    :type host_name:
     ~azure.mgmt.vmwarecloudsimple.models.CustomizationHostName
    :param type: Identity type. Possible values include: 'WINDOWS_TEXT',
     'WINDOWS', 'LINUX'
    :type type: str or ~azure.mgmt.vmwarecloudsimple.models.enum
    :param user_data: Windows Identity. User data customization
    :type user_data:
     ~azure.mgmt.vmwarecloudsimple.models.CustomizationIdentityUserData
    """

    _attribute_map = {
        'data': {'key': 'data', 'type': 'str'},
        'host_name': {'key': 'hostName', 'type': 'CustomizationHostName'},
        'type': {'key': 'type', 'type': 'str'},
        'user_data': {'key': 'userData', 'type': 'CustomizationIdentityUserData'},
    }

    def __init__(self, **kwargs):
        super(CustomizationIdentity, self).__init__(**kwargs)
        self.data = kwargs.get('data', None)
        self.host_name = kwargs.get('host_name', None)
        self.type = kwargs.get('type', None)
        self.user_data = kwargs.get('user_data', None)


class CustomizationIdentityUserData(Model):
    """Windows Identity. User data customization.

    :param is_password_predefined: Is password predefined in customization
     policy. Default value: False .
    :type is_password_predefined: bool
    """

    _attribute_map = {
        'is_password_predefined': {'key': 'isPasswordPredefined', 'type': 'bool'},
    }

    def __init__(self, **kwargs):
        super(CustomizationIdentityUserData, self).__init__(**kwargs)
        self.is_password_predefined = kwargs.get('is_password_predefined', False)


class CustomizationIPAddress(Model):
    """CustomizationIPAddress.

    :param argument: Argument when Custom ip type is selected
    :type argument: str
    :param ip_address: Defined Ip Address when Fixed ip type is selected
    :type ip_address: str
    :param type: Customization Specification ip type. Possible values include:
     'CUSTOM', 'DHCP_IP', 'FIXED_IP', 'USER_DEFINED'
    :type type: str or ~azure.mgmt.vmwarecloudsimple.models.enum
    """

    _attribute_map = {
        'argument': {'key': 'argument', 'type': 'str'},
        'ip_address': {'key': 'ipAddress', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(CustomizationIPAddress, self).__init__(**kwargs)
        self.argument = kwargs.get('argument', None)
        self.ip_address = kwargs.get('ip_address', None)
        self.type = kwargs.get('type', None)


class CustomizationIPSettings(Model):
    """CustomizationIPSettings.

    :param gateway: The list of gateways
    :type gateway: list[str]
    :param ip: Ip address customization settings
    :type ip: ~azure.mgmt.vmwarecloudsimple.models.CustomizationIPAddress
    :param subnet_mask: Adapter subnet mask
    :type subnet_mask: str
    """

    _attribute_map = {
        'gateway': {'key': 'gateway', 'type': '[str]'},
        'ip': {'key': 'ip', 'type': 'CustomizationIPAddress'},
        'subnet_mask': {'key': 'subnetMask', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(CustomizationIPSettings, self).__init__(**kwargs)
        self.gateway = kwargs.get('gateway', None)
        self.ip = kwargs.get('ip', None)
        self.subnet_mask = kwargs.get('subnet_mask', None)


class CustomizationNicSetting(Model):
    """CustomizationNicSetting.

    :param adapter: The list of adapters' settings
    :type adapter:
     ~azure.mgmt.vmwarecloudsimple.models.CustomizationIPSettings
    :param mac_address: NIC mac address
    :type mac_address: str
    """

    _attribute_map = {
        'adapter': {'key': 'adapter', 'type': 'CustomizationIPSettings'},
        'mac_address': {'key': 'macAddress', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(CustomizationNicSetting, self).__init__(**kwargs)
        self.adapter = kwargs.get('adapter', None)
        self.mac_address = kwargs.get('mac_address', None)


class CustomizationPolicy(Model):
    """The virtual machine customization policy.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :param id: Customization policy azure id
    :type id: str
    :param location: Azure region
    :type location: str
    :ivar name: Customization policy name
    :vartype name: str
    :param description: Policy description
    :type description: str
    :param private_cloud_id: The Private cloud id
    :type private_cloud_id: str
    :param specification: Detailed customization policy specification
    :type specification:
     ~azure.mgmt.vmwarecloudsimple.models.CustomizationSpecification
    :param customization_policy_properties_type: The type of customization
     (Linux or Windows). Possible values include: 'LINUX', 'WINDOWS'
    :type customization_policy_properties_type: str or
     ~azure.mgmt.vmwarecloudsimple.models.enum
    :param version: Policy version
    :type version: str
    :ivar type:
    :vartype type: str
    """

    _validation = {
        'name': {'readonly': True},
        'type': {'readonly': True},
    }

    _attribute_map = {
        'id': {'key': 'id', 'type': 'str'},
        'location': {'key': 'location', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'description': {'key': 'properties.description', 'type': 'str'},
        'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'},
        'specification': {'key': 'properties.specification', 'type': 'CustomizationSpecification'},
        'customization_policy_properties_type': {'key': 'properties.type', 'type': 'str'},
        'version': {'key': 'properties.version', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(CustomizationPolicy, self).__init__(**kwargs)
        self.id = kwargs.get('id', None)
        self.location = kwargs.get('location', None)
        self.name = None
        self.description = kwargs.get('description', None)
        self.private_cloud_id = kwargs.get('private_cloud_id', None)
        self.specification = kwargs.get('specification', None)
        self.customization_policy_properties_type = kwargs.get('customization_policy_properties_type', None)
        self.version = kwargs.get('version', None)
        self.type = None


class CustomizationSpecification(Model):
    """The specification for Customization Policy.

    :param identity: Customization Identity. It contains data about user and
     hostname
    :type identity: ~azure.mgmt.vmwarecloudsimple.models.CustomizationIdentity
    :param nic_settings: Network interface settings
    :type nic_settings:
     list[~azure.mgmt.vmwarecloudsimple.models.CustomizationNicSetting]
    """

    _attribute_map = {
        'identity': {'key': 'identity', 'type': 'CustomizationIdentity'},
        'nic_settings': {'key': 'nicSettings', 'type': '[CustomizationNicSetting]'},
    }

    def __init__(self, **kwargs):
        super(CustomizationSpecification, self).__init__(**kwargs)
        self.identity = kwargs.get('identity', None)
        self.nic_settings = kwargs.get('nic_settings', None)


class DedicatedCloudNode(Model):
    """Dedicated cloud node model.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    All required parameters must be populated in order to send to Azure.

    :ivar id:
     /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/dedicatedCloudNodes/{dedicatedCloudNodeName}
    :vartype id: str
    :param location: Required. Azure region
    :type location: str
    :ivar name: {dedicatedCloudNodeName}
    :vartype name: str
    :param availability_zone_id: Required. Availability Zone id, e.g. "az1"
    :type availability_zone_id: str
    :ivar availability_zone_name: Availability Zone name, e.g. "Availability
     Zone 1"
    :vartype availability_zone_name: str
    :ivar cloud_rack_name: VMWare Cloud Rack Name
    :vartype cloud_rack_name: str
    :ivar created: date time the resource was created
    :vartype created: object
    :param nodes_count: Required. count of nodes to create
    :type nodes_count: int
    :param placement_group_id: Required. Placement Group id, e.g. "n1"
    :type placement_group_id: str
    :ivar placement_group_name: Placement Name, e.g. "Placement Group 1"
    :vartype placement_group_name: str
    :ivar private_cloud_id: Private Cloud Id
    :vartype private_cloud_id: str
    :ivar private_cloud_name: Resource Pool Name
    :vartype private_cloud_name: str
    :ivar provisioning_state: The provisioning status of the resource
    :vartype provisioning_state: str
    :param purchase_id: Required. purchase id
    :type purchase_id: str
    :param id1: Required. SKU's id
    :type id1: str
    :param name1: Required. SKU's name
    :type name1: str
    :ivar status: Node status, indicates is private cloud set up on this node
     or not. Possible values include: 'unused', 'used'
    :vartype status: str or ~azure.mgmt.vmwarecloudsimple.models.NodeStatus
    :ivar vmware_cluster_name: VMWare Cluster Name
    :vartype vmware_cluster_name: str
    :param sku: Dedicated Cloud Nodes SKU
    :type sku: ~azure.mgmt.vmwarecloudsimple.models.Sku
    :param tags: Dedicated Cloud Nodes tags
    :type tags: dict[str, str]
    :ivar type: {resourceProviderNamespace}/{resourceType}
    :vartype type: str
    """

    _validation = {
        'id': {'readonly': True},
        'location': {'required': True},
        'name': {'readonly': True, 'pattern': r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$'},
        'availability_zone_id': {'required': True},
        'availability_zone_name': {'readonly': True},
        'cloud_rack_name': {'readonly': True},
        'created': {'readonly': True},
        'nodes_count': {'required': True},
        'placement_group_id': {'required': True},
        'placement_group_name': {'readonly': True},
        'private_cloud_id': {'readonly': True},
        'private_cloud_name': {'readonly': True},
        'provisioning_state': {'readonly': True},
        'purchase_id': {'required': True},
        'id1': {'required': True},
        'name1': {'required': True},
        'status': {'readonly': True},
        'vmware_cluster_name': {'readonly': True},
        'type': {'readonly': True},
    }

    _attribute_map = {
        'id': {'key': 'id', 'type': 'str'},
        'location': {'key': 'location', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'availability_zone_id': {'key': 'properties.availabilityZoneId', 'type': 'str'},
        'availability_zone_name': {'key': 'properties.availabilityZoneName', 'type': 'str'},
        'cloud_rack_name': {'key': 'properties.cloudRackName', 'type': 'str'},
        'created': {'key': 'properties.created', 'type': 'object'},
        'nodes_count': {'key': 'properties.nodesCount', 'type': 'int'},
        'placement_group_id': {'key': 'properties.placementGroupId', 'type': 'str'},
        'placement_group_name': {'key': 'properties.placementGroupName', 'type': 'str'},
        'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'},
        'private_cloud_name': {'key': 'properties.privateCloudName', 'type': 'str'},
        'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
        'purchase_id': {'key': 'properties.purchaseId', 'type': 'str'},
        'id1': {'key': 'properties.skuDescription.id', 'type': 'str'},
        'name1': {'key': 'properties.skuDescription.name', 'type': 'str'},
        'status': {'key': 'properties.status', 'type': 'NodeStatus'},
        'vmware_cluster_name': {'key': 'properties.vmwareClusterName', 'type': 'str'},
        'sku': {'key': 'sku', 'type': 'Sku'},
        'tags': {'key': 'tags', 'type': '{str}'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(DedicatedCloudNode, self).__init__(**kwargs)
        self.id = None
        self.location = kwargs.get('location', None)
        self.name = None
        self.availability_zone_id = kwargs.get('availability_zone_id', None)
        self.availability_zone_name = None
        self.cloud_rack_name = None
        self.created = None
        self.nodes_count = kwargs.get('nodes_count', None)
        self.placement_group_id = kwargs.get('placement_group_id', None)
        self.placement_group_name = None
        self.private_cloud_id = None
        self.private_cloud_name = None
        self.provisioning_state = None
        self.purchase_id = kwargs.get('purchase_id', None)
        self.id1 = kwargs.get('id1', None)
        self.name1 = kwargs.get('name1', None)
        self.status = None
        self.vmware_cluster_name = None
        self.sku = kwargs.get('sku', None)
        self.tags = kwargs.get('tags', None)
        self.type = None


class DedicatedCloudService(Model):
    """Dedicated cloud service model.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    All required parameters must be populated in order to send to Azure.

    :ivar id:
     /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/dedicatedCloudServices/{dedicatedCloudServiceName}
    :vartype id: str
    :param location: Required. Azure region
    :type location: str
    :ivar name: {dedicatedCloudServiceName}
    :vartype name: str
    :param gateway_subnet: Required. gateway Subnet for the account. It will
     collect the subnet address and always treat it as /28
    :type gateway_subnet: str
    :ivar is_account_onboarded: indicates whether account onboarded or not in
     a given region. Possible values include: 'notOnBoarded', 'onBoarded',
     'onBoardingFailed', 'onBoarding'
    :vartype is_account_onboarded: str or
     ~azure.mgmt.vmwarecloudsimple.models.OnboardingStatus
    :ivar nodes: total nodes purchased
    :vartype nodes: int
    :ivar service_url: link to a service management web portal
    :vartype service_url: str
    :param tags: The list of tags
    :type tags: dict[str, str]
    :ivar type: {resourceProviderNamespace}/{resourceType}
    :vartype type: str
    """

    _validation = {
        'id': {'readonly': True},
        'location': {'required': True},
        'name': {'readonly': True, 'pattern': r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$'},
        'gateway_subnet': {'required': True},
        'is_account_onboarded': {'readonly': True},
        'nodes': {'readonly': True},
        'service_url': {'readonly': True},
        'type': {'readonly': True},
    }

    _attribute_map = {
        'id': {'key': 'id', 'type': 'str'},
        'location': {'key': 'location', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'gateway_subnet': {'key': 'properties.gatewaySubnet', 'type': 'str'},
        'is_account_onboarded': {'key': 'properties.isAccountOnboarded', 'type': 'OnboardingStatus'},
        'nodes': {'key': 'properties.nodes', 'type': 'int'},
        'service_url': {'key': 'properties.serviceURL', 'type': 'str'},
        'tags': {'key': 'tags', 'type': '{str}'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(DedicatedCloudService, self).__init__(**kwargs)
        self.id = None
        self.location = kwargs.get('location', None)
        self.name = None
        self.gateway_subnet = kwargs.get('gateway_subnet', None)
        self.is_account_onboarded = None
        self.nodes = None
        self.service_url = None
        self.tags = kwargs.get('tags', None)
        self.type = None


class GuestOSCustomization(Model):
    """Guest OS Customization properties.

    :param dns_servers: List of dns servers to use
    :type dns_servers: list[str]
    :param host_name: Virtual Machine hostname
    :type host_name: str
    :param password: Password for login
    :type password: str
    :param policy_id: id of customization policy
    :type policy_id: str
    :param username: Username for login
    :type username: str
    """

    _attribute_map = {
        'dns_servers': {'key': 'dnsServers', 'type': '[str]'},
        'host_name': {'key': 'hostName', 'type': 'str'},
        'password': {'key': 'password', 'type': 'str'},
        'policy_id': {'key': 'policyId', 'type': 'str'},
        'username': {'key': 'username', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(GuestOSCustomization, self).__init__(**kwargs)
        self.dns_servers = kwargs.get('dns_servers', None)
        self.host_name = kwargs.get('host_name', None)
        self.password = kwargs.get('password', None)
        self.policy_id = kwargs.get('policy_id', None)
        self.username = kwargs.get('username', None)


class GuestOSNICCustomization(Model):
    """Guest OS nic customization.

    :param allocation: IP address allocation method. Possible values include:
     'static', 'dynamic'
    :type allocation: str or ~azure.mgmt.vmwarecloudsimple.models.enum
    :param dns_servers: List of dns servers to use
    :type dns_servers: list[str]
    :param gateway: Gateway addresses assigned to nic
    :type gateway: list[str]
    :param ip_address: Static ip address for nic
    :type ip_address: str
    :param mask: Network mask for nic
    :type mask: str
    :param primary_wins_server: primary WINS server for Windows
    :type primary_wins_server: str
    :param secondary_wins_server: secondary WINS server for Windows
    :type secondary_wins_server: str
    """

    _attribute_map = {
        'allocation': {'key': 'allocation', 'type': 'str'},
        'dns_servers': {'key': 'dnsServers', 'type': '[str]'},
        'gateway': {'key': 'gateway', 'type': '[str]'},
        'ip_address': {'key': 'ipAddress', 'type': 'str'},
        'mask': {'key': 'mask', 'type': 'str'},
        'primary_wins_server': {'key': 'primaryWinsServer', 'type': 'str'},
        'secondary_wins_server': {'key': 'secondaryWinsServer', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(GuestOSNICCustomization, self).__init__(**kwargs)
        self.allocation = kwargs.get('allocation', None)
        self.dns_servers = kwargs.get('dns_servers', None)
        self.gateway = kwargs.get('gateway', None)
        self.ip_address = kwargs.get('ip_address', None)
        self.mask = kwargs.get('mask', None)
        self.primary_wins_server = kwargs.get('primary_wins_server', None)
        self.secondary_wins_server = kwargs.get('secondary_wins_server', None)


class OperationError(Model):
    """Operation error model.

    :param code: Error's code
    :type code: str
    :param message: Error's message
    :type message: str
    """

    _attribute_map = {
        'code': {'key': 'code', 'type': 'str'},
        'message': {'key': 'message', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(OperationError, self).__init__(**kwargs)
        self.code = kwargs.get('code', None)
        self.message = kwargs.get('message', None)


class OperationResource(Model):
    """Operation status response.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar end_time: End time of the operation
    :vartype end_time: datetime
    :param error: Error Message if operation failed
    :type error: ~azure.mgmt.vmwarecloudsimple.models.OperationError
    :ivar id: Operation Id
    :vartype id: str
    :ivar name: Operation ID
    :vartype name: str
    :ivar start_time: Start time of the operation
    :vartype start_time: datetime
    :ivar status: Operation status
    :vartype status: str
    """

    _validation = {
        'end_time': {'readonly': True},
        'id': {'readonly': True},
        'name': {'readonly': True},
        'start_time': {'readonly': True},
        'status': {'readonly': True},
    }

    _attribute_map = {
        'end_time': {'key': 'endTime', 'type': 'iso-8601'},
        'error': {'key': 'error', 'type': 'OperationError'},
        'id': {'key': 'id', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'start_time': {'key': 'startTime', 'type': 'iso-8601'},
        'status': {'key': 'status', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(OperationResource, self).__init__(**kwargs)
        self.end_time = None
        self.error = kwargs.get('error', None)
        self.id = None
        self.name = None
        self.start_time = None
        self.status = None


class PatchPayload(Model):
    """General patch payload modal.

    :param tags: The tags key:value pairs
    :type tags: dict[str, str]
    """

    _attribute_map = {
        'tags': {'key': 'tags', 'type': '{str}'},
    }

    def __init__(self, **kwargs):
        super(PatchPayload, self).__init__(**kwargs)
        self.tags = kwargs.get('tags', None)


class PrivateCloud(Model):
    """Private cloud model.

    :param id: Azure Id, e.g.
     "/subscriptions/4da99247-a172-4ed6-8ae9-ebed2d12f839/providers/Microsoft.VMwareCloudSimple/privateClouds/cloud123"
    :type id: str
    :param location: Location where private cloud created, e.g "westus"
    :type location: str
    :param name: Private cloud name
    :type name: str
    :param availability_zone_id: Availability Zone id, e.g. "az1"
    :type availability_zone_id: str
    :param availability_zone_name: Availability Zone name, e.g. "Availability
     Zone 1"
    :type availability_zone_name: str
    :param clusters_number: Number of clusters
    :type clusters_number: int
    :param created_by: User's emails who created cloud
    :type created_by: str
    :param created_on: When private cloud was created
    :type created_on: datetime
    :param dns_servers: Array of DNS servers
    :type dns_servers: list[str]
    :param expires: Expiration date of PC
    :type expires: str
    :param nsx_type: Nsx Type, e.g. "Advanced"
    :type nsx_type: str
    :param placement_group_id: Placement Group id, e.g. "n1"
    :type placement_group_id: str
    :param placement_group_name: Placement Group name
    :type placement_group_name: str
    :param private_cloud_id: Id of a private cloud
    :type private_cloud_id: str
    :param resource_pools: The list of Resource Pools
    :type resource_pools:
     list[~azure.mgmt.vmwarecloudsimple.models.ResourcePool]
    :param state: Private Cloud state, e.g. "operational"
    :type state: str
    :param total_cpu_cores: Number of cores
    :type total_cpu_cores: int
    :param total_nodes: Number of nodes
    :type total_nodes: int
    :param total_ram: Memory size
    :type total_ram: int
    :param total_storage: Disk space in TB
    :type total_storage: float
    :param private_cloud_properties_type: Virtualization type e.g. "vSphere"
    :type private_cloud_properties_type: str
    :param v_sphere_version: e.g. "6.5u2"
    :type v_sphere_version: str
    :param vcenter_fqdn: FQDN for vcenter access
    :type vcenter_fqdn: str
    :param vcenter_refid: Vcenter ip address
    :type vcenter_refid: str
    :param virtual_machine_templates: The list of Virtual Machine Templates
    :type virtual_machine_templates:
     list[~azure.mgmt.vmwarecloudsimple.models.VirtualMachineTemplate]
    :param virtual_networks: The list of Virtual Networks
    :type virtual_networks:
     list[~azure.mgmt.vmwarecloudsimple.models.VirtualNetwork]
    :param vr_ops_enabled: Is Vrops enabled/disabled
    :type vr_ops_enabled: bool
    :param type: Azure Resource type. Possible values include:
     'Microsoft.VMwareCloudSimple/privateClouds'
    :type type: str or
     ~azure.mgmt.vmwarecloudsimple.models.PrivateCloudResourceType
    """

    _attribute_map = {
        'id': {'key': 'id', 'type': 'str'},
        'location': {'key': 'location', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'availability_zone_id': {'key': 'properties.availabilityZoneId', 'type': 'str'},
        'availability_zone_name': {'key': 'properties.availabilityZoneName', 'type': 'str'},
        'clusters_number': {'key': 'properties.clustersNumber', 'type': 'int'},
        'created_by': {'key': 'properties.createdBy', 'type': 'str'},
        'created_on': {'key': 'properties.createdOn', 'type': 'iso-8601'},
        'dns_servers': {'key': 'properties.dnsServers', 'type': '[str]'},
        'expires': {'key': 'properties.expires', 'type': 'str'},
        'nsx_type': {'key': 'properties.nsxType', 'type': 'str'},
        'placement_group_id': {'key': 'properties.placementGroupId', 'type': 'str'},
        'placement_group_name': {'key': 'properties.placementGroupName', 'type': 'str'},
        'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'},
        'resource_pools': {'key': 'properties.resourcePools', 'type': '[ResourcePool]'},
        'state': {'key': 'properties.state', 'type': 'str'},
        'total_cpu_cores': {'key': 'properties.totalCpuCores', 'type': 'int'},
        'total_nodes': {'key': 'properties.totalNodes', 'type': 'int'},
        'total_ram': {'key': 'properties.totalRam', 'type': 'int'},
        'total_storage': {'key': 'properties.totalStorage', 'type': 'float'},
        'private_cloud_properties_type': {'key': 'properties.type', 'type': 'str'},
        'v_sphere_version': {'key': 'properties.vSphereVersion', 'type': 'str'},
        'vcenter_fqdn': {'key': 'properties.vcenterFqdn', 'type': 'str'},
        'vcenter_refid': {'key': 'properties.vcenterRefid', 'type': 'str'},
        'virtual_machine_templates': {'key': 'properties.virtualMachineTemplates', 'type': '[VirtualMachineTemplate]'},
        'virtual_networks': {'key': 'properties.virtualNetworks', 'type': '[VirtualNetwork]'},
        'vr_ops_enabled': {'key': 'properties.vrOpsEnabled', 'type': 'bool'},
        'type': {'key': 'type', 'type': 'PrivateCloudResourceType'},
    }

    def __init__(self, **kwargs):
        super(PrivateCloud, self).__init__(**kwargs)
        self.id = kwargs.get('id', None)
        self.location = kwargs.get('location', None)
        self.name = kwargs.get('name', None)
        self.availability_zone_id = kwargs.get('availability_zone_id', None)
        self.availability_zone_name = kwargs.get('availability_zone_name', None)
        self.clusters_number = kwargs.get('clusters_number', None)
        self.created_by = kwargs.get('created_by', None)
        self.created_on = kwargs.get('created_on', None)
        self.dns_servers = kwargs.get('dns_servers', None)
        self.expires = kwargs.get('expires', None)
        self.nsx_type = kwargs.get('nsx_type', None)
        self.placement_group_id = kwargs.get('placement_group_id', None)
        self.placement_group_name = kwargs.get('placement_group_name', None)
        self.private_cloud_id = kwargs.get('private_cloud_id', None)
        self.resource_pools = kwargs.get('resource_pools', None)
        self.state = kwargs.get('state', None)
        self.total_cpu_cores = kwargs.get('total_cpu_cores', None)
        self.total_nodes = kwargs.get('total_nodes', None)
        self.total_ram = kwargs.get('total_ram', None)
        self.total_storage = kwargs.get('total_storage', None)
        self.private_cloud_properties_type = kwargs.get('private_cloud_properties_type', None)
        self.v_sphere_version = kwargs.get('v_sphere_version', None)
        self.vcenter_fqdn = kwargs.get('vcenter_fqdn', None)
        self.vcenter_refid = kwargs.get('vcenter_refid', None)
        self.virtual_machine_templates = kwargs.get('virtual_machine_templates', None)
        self.virtual_networks = kwargs.get('virtual_networks', None)
        self.vr_ops_enabled = kwargs.get('vr_ops_enabled', None)
        self.type = kwargs.get('type', None)


class ResourcePool(Model):
    """Resource pool model.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    All required parameters must be populated in order to send to Azure.

    :param id: Required. resource pool id (privateCloudId:vsphereId)
    :type id: str
    :ivar location: Azure region
    :vartype location: str
    :ivar name: {ResourcePoolName}
    :vartype name: str
    :ivar private_cloud_id: The Private Cloud Id
    :vartype private_cloud_id: str
    :ivar full_name: Hierarchical resource pool name
    :vartype full_name: str
    :ivar type: {resourceProviderNamespace}/{resourceType}
    :vartype type: str
    """

    _validation = {
        'id': {'required': True},
        'location': {'readonly': True},
        'name': {'readonly': True},
        'private_cloud_id': {'readonly': True},
        'full_name': {'readonly': True},
        'type': {'readonly': True},
    }

    _attribute_map = {
        'id': {'key': 'id', 'type': 'str'},
        'location': {'key': 'location', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'private_cloud_id': {'key': 'privateCloudId', 'type': 'str'},
        'full_name': {'key': 'properties.fullName', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(ResourcePool, self).__init__(**kwargs)
        self.id = kwargs.get('id', None)
        self.location = None
        self.name = None
        self.private_cloud_id = None
        self.full_name = None
        self.type = None


class Sku(Model):
    """The purchase SKU for CloudSimple paid resources.

    All required parameters must be populated in order to send to Azure.

    :param capacity: The capacity of the SKU
    :type capacity: str
    :param description: dedicatedCloudNode example: 8 x Ten-Core Intel® Xeon®
     Processor E5-2640 v4 2.40GHz 25MB Cache (90W); 12 x 64GB PC4-19200 2400MHz
     DDR4 ECC Registered DIMM, ...
    :type description: str
    :param family: If the service has different generations of hardware, for
     the same SKU, then that can be captured here
    :type family: str
    :param name: Required. The name of the SKU for VMWare CloudSimple Node
    :type name: str
    :param tier: The tier of the SKU
    :type tier: str
    """

    _validation = {
        'name': {'required': True},
    }

    _attribute_map = {
        'capacity': {'key': 'capacity', 'type': 'str'},
        'description': {'key': 'description', 'type': 'str'},
        'family': {'key': 'family', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'tier': {'key': 'tier', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(Sku, self).__init__(**kwargs)
        self.capacity = kwargs.get('capacity', None)
        self.description = kwargs.get('description', None)
        self.family = kwargs.get('family', None)
        self.name = kwargs.get('name', None)
        self.tier = kwargs.get('tier', None)


class SkuAvailability(Model):
    """SKU availability model.

    All required parameters must be populated in order to send to Azure.

    :param dedicated_availability_zone_id: CloudSimple Availability Zone id
    :type dedicated_availability_zone_id: str
    :param dedicated_availability_zone_name: CloudSimple Availability Zone
     Name
    :type dedicated_availability_zone_name: str
    :param dedicated_placement_group_id: CloudSimple Placement Group Id
    :type dedicated_placement_group_id: str
    :param dedicated_placement_group_name: CloudSimple Placement Group name
    :type dedicated_placement_group_name: str
    :param limit: Required. indicates how many resources of a given SKU is
     available in a AZ->PG
    :type limit: int
    :param resource_type: resource type e.g. DedicatedCloudNodes
    :type resource_type: str
    :param sku_id: sku id
    :type sku_id: str
    :param sku_name: sku name
    :type sku_name: str
    """

    _validation = {
        'limit': {'required': True},
    }

    _attribute_map = {
        'dedicated_availability_zone_id': {'key': 'dedicatedAvailabilityZoneId', 'type': 'str'},
        'dedicated_availability_zone_name': {'key': 'dedicatedAvailabilityZoneName', 'type': 'str'},
        'dedicated_placement_group_id': {'key': 'dedicatedPlacementGroupId', 'type': 'str'},
        'dedicated_placement_group_name': {'key': 'dedicatedPlacementGroupName', 'type': 'str'},
        'limit': {'key': 'limit', 'type': 'int'},
        'resource_type': {'key': 'resourceType', 'type': 'str'},
        'sku_id': {'key': 'skuId', 'type': 'str'},
        'sku_name': {'key': 'skuName', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(SkuAvailability, self).__init__(**kwargs)
        self.dedicated_availability_zone_id = kwargs.get('dedicated_availability_zone_id', None)
        self.dedicated_availability_zone_name = kwargs.get('dedicated_availability_zone_name', None)
        self.dedicated_placement_group_id = kwargs.get('dedicated_placement_group_id', None)
        self.dedicated_placement_group_name = kwargs.get('dedicated_placement_group_name', None)
        self.limit = kwargs.get('limit', None)
        self.resource_type = kwargs.get('resource_type', None)
        self.sku_id = kwargs.get('sku_id', None)
        self.sku_name = kwargs.get('sku_name', None)


class Usage(Model):
    """Usage model.

    All required parameters must be populated in order to send to Azure.

    :param current_value: Required. The current usage value. Default value: 0
     .
    :type current_value: int
    :param limit: Required. limit of a given sku in a region for a
     subscription. The maximum permitted value for the usage quota. If there is
     no limit, this value will be -1. Default value: 0 .
    :type limit: int
    :param name: Usage name value and localized name
    :type name: ~azure.mgmt.vmwarecloudsimple.models.UsageName
    :param unit: The usages' unit. Possible values include: 'Count', 'Bytes',
     'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond'
    :type unit: str or ~azure.mgmt.vmwarecloudsimple.models.UsageCount
    """

    _validation = {
        'current_value': {'required': True},
        'limit': {'required': True},
    }

    _attribute_map = {
        'current_value': {'key': 'currentValue', 'type': 'int'},
        'limit': {'key': 'limit', 'type': 'int'},
        'name': {'key': 'name', 'type': 'UsageName'},
        'unit': {'key': 'unit', 'type': 'UsageCount'},
    }

    def __init__(self, **kwargs):
        super(Usage, self).__init__(**kwargs)
        self.current_value = kwargs.get('current_value', 0)
        self.limit = kwargs.get('limit', 0)
        self.name = kwargs.get('name', None)
        self.unit = kwargs.get('unit', None)


class UsageName(Model):
    """User name model.

    :param localized_value: e.g. "Virtual Machines"
    :type localized_value: str
    :param value: resource type or resource type sku name, e.g.
     virtualMachines
    :type value: str
    """

    _attribute_map = {
        'localized_value': {'key': 'localizedValue', 'type': 'str'},
        'value': {'key': 'value', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(UsageName, self).__init__(**kwargs)
        self.localized_value = kwargs.get('localized_value', None)
        self.value = kwargs.get('value', None)


class VirtualDisk(Model):
    """Virtual disk model.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    All required parameters must be populated in order to send to Azure.

    :param controller_id: Required. Disk's Controller id
    :type controller_id: str
    :param independence_mode: Required. Disk's independence mode type.
     Possible values include: 'persistent', 'independent_persistent',
     'independent_nonpersistent'
    :type independence_mode: str or
     ~azure.mgmt.vmwarecloudsimple.models.DiskIndependenceMode
    :param total_size: Required. Disk's total size
    :type total_size: int
    :param virtual_disk_id: Disk's id
    :type virtual_disk_id: str
    :ivar virtual_disk_name: Disk's display name
    :vartype virtual_disk_name: str
    """

    _validation = {
        'controller_id': {'required': True},
        'independence_mode': {'required': True},
        'total_size': {'required': True},
        'virtual_disk_name': {'readonly': True},
    }

    _attribute_map = {
        'controller_id': {'key': 'controllerId', 'type': 'str'},
        'independence_mode': {'key': 'independenceMode', 'type': 'DiskIndependenceMode'},
        'total_size': {'key': 'totalSize', 'type': 'int'},
        'virtual_disk_id': {'key': 'virtualDiskId', 'type': 'str'},
        'virtual_disk_name': {'key': 'virtualDiskName', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(VirtualDisk, self).__init__(**kwargs)
        self.controller_id = kwargs.get('controller_id', None)
        self.independence_mode = kwargs.get('independence_mode', None)
        self.total_size = kwargs.get('total_size', None)
        self.virtual_disk_id = kwargs.get('virtual_disk_id', None)
        self.virtual_disk_name = None


class VirtualDiskController(Model):
    """Virtual disk controller model.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar id: Controller's id
    :vartype id: str
    :ivar name: The display name of Controller
    :vartype name: str
    :ivar sub_type: dik controller subtype (VMWARE_PARAVIRTUAL, BUS_PARALLEL,
     LSI_PARALLEL, LSI_SAS)
    :vartype sub_type: str
    :ivar type: disk controller type (SCSI)
    :vartype type: str
    """

    _validation = {
        'id': {'readonly': True},
        'name': {'readonly': True},
        'sub_type': {'readonly': True},
        'type': {'readonly': True},
    }

    _attribute_map = {
        'id': {'key': 'id', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'sub_type': {'key': 'subType', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(VirtualDiskController, self).__init__(**kwargs)
        self.id = None
        self.name = None
        self.sub_type = None
        self.type = None


class VirtualMachine(Model):
    """Virtual machine model.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    All required parameters must be populated in order to send to Azure.

    :ivar id:
     /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName}
    :vartype id: str
    :param location: Required. Azure region
    :type location: str
    :ivar name: {virtualMachineName}
    :vartype name: str
    :param amount_of_ram: Required. The amount of memory
    :type amount_of_ram: int
    :ivar controllers: The list of Virtual Disks' Controllers
    :vartype controllers:
     list[~azure.mgmt.vmwarecloudsimple.models.VirtualDiskController]
    :param customization: Virtual machine properties
    :type customization:
     ~azure.mgmt.vmwarecloudsimple.models.GuestOSCustomization
    :param disks: The list of Virtual Disks
    :type disks: list[~azure.mgmt.vmwarecloudsimple.models.VirtualDisk]
    :ivar dnsname: The DNS name of Virtual Machine in VCenter
    :vartype dnsname: str
    :param expose_to_guest_vm: Expose Guest OS or not
    :type expose_to_guest_vm: bool
    :ivar folder: The path to virtual machine folder in VCenter
    :vartype folder: str
    :ivar guest_os: The name of Guest OS
    :vartype guest_os: str
    :ivar guest_os_type: The Guest OS type. Possible values include: 'linux',
     'windows', 'other'
    :vartype guest_os_type: str or
     ~azure.mgmt.vmwarecloudsimple.models.GuestOSType
    :param nics: The list of Virtual NICs
    :type nics: list[~azure.mgmt.vmwarecloudsimple.models.VirtualNic]
    :param number_of_cores: Required. The number of CPU cores
    :type number_of_cores: int
    :param password: Password for login. Deprecated - use customization
     property
    :type password: str
    :param private_cloud_id: Required. Private Cloud Id
    :type private_cloud_id: str
    :ivar provisioning_state: The provisioning status of the resource
    :vartype provisioning_state: str
    :ivar public_ip: The public ip of Virtual Machine
    :vartype public_ip: str
    :param resource_pool: Virtual Machines Resource Pool
    :type resource_pool: ~azure.mgmt.vmwarecloudsimple.models.ResourcePool
    :ivar status: The status of Virtual machine. Possible values include:
     'running', 'suspended', 'poweredoff', 'updating', 'deallocating',
     'deleting'
    :vartype status: str or
     ~azure.mgmt.vmwarecloudsimple.models.VirtualMachineStatus
    :param template_id: Virtual Machine Template Id
    :type template_id: str
    :param username: Username for login. Deprecated - use customization
     property
    :type username: str
    :param v_sphere_networks: The list of Virtual VSphere Networks
    :type v_sphere_networks: list[str]
    :ivar vm_id: The internal id of Virtual Machine in VCenter
    :vartype vm_id: str
    :ivar vmwaretools: VMware tools version
    :vartype vmwaretools: str
    :param tags: The list of tags
    :type tags: dict[str, str]
    :ivar type: {resourceProviderNamespace}/{resourceType}
    :vartype type: str
    """

    _validation = {
        'id': {'readonly': True},
        'location': {'required': True},
        'name': {'readonly': True, 'pattern': r'^[a-zA-Z0-9]([-_.a-zA-Z0-9]*[a-zA-Z0-9])?$'},
        'amount_of_ram': {'required': True},
        'controllers': {'readonly': True},
        'dnsname': {'readonly': True},
        'folder': {'readonly': True},
        'guest_os': {'readonly': True},
        'guest_os_type': {'readonly': True},
        'number_of_cores': {'required': True},
        'private_cloud_id': {'required': True},
        'provisioning_state': {'readonly': True},
        'public_ip': {'readonly': True},
        'status': {'readonly': True},
        'vm_id': {'readonly': True},
        'vmwaretools': {'readonly': True},
        'type': {'readonly': True},
    }

    _attribute_map = {
        'id': {'key': 'id', 'type': 'str'},
        'location': {'key': 'location', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'amount_of_ram': {'key': 'properties.amountOfRam', 'type': 'int'},
        'controllers': {'key': 'properties.controllers', 'type': '[VirtualDiskController]'},
        'customization': {'key': 'properties.customization', 'type': 'GuestOSCustomization'},
        'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'},
        'dnsname': {'key': 'properties.dnsname', 'type': 'str'},
        'expose_to_guest_vm': {'key': 'properties.exposeToGuestVM', 'type': 'bool'},
        'folder': {'key': 'properties.folder', 'type': 'str'},
        'guest_os': {'key': 'properties.guestOS', 'type': 'str'},
        'guest_os_type': {'key': 'properties.guestOSType', 'type': 'GuestOSType'},
        'nics': {'key': 'properties.nics', 'type': '[VirtualNic]'},
        'number_of_cores': {'key': 'properties.numberOfCores', 'type': 'int'},
        'password': {'key': 'properties.password', 'type': 'str'},
        'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'},
        'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
        'public_ip': {'key': 'properties.publicIP', 'type': 'str'},
        'resource_pool': {'key': 'properties.resourcePool', 'type': 'ResourcePool'},
        'status': {'key': 'properties.status', 'type': 'VirtualMachineStatus'},
        'template_id': {'key': 'properties.templateId', 'type': 'str'},
        'username': {'key': 'properties.username', 'type': 'str'},
        'v_sphere_networks': {'key': 'properties.vSphereNetworks', 'type': '[str]'},
        'vm_id': {'key': 'properties.vmId', 'type': 'str'},
        'vmwaretools': {'key': 'properties.vmwaretools', 'type': 'str'},
        'tags': {'key': 'tags', 'type': '{str}'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(VirtualMachine, self).__init__(**kwargs)
        self.id = None
        self.location = kwargs.get('location', None)
        self.name = None
        self.amount_of_ram = kwargs.get('amount_of_ram', None)
        self.controllers = None
        self.customization = kwargs.get('customization', None)
        self.disks = kwargs.get('disks', None)
        self.dnsname = None
        self.expose_to_guest_vm = kwargs.get('expose_to_guest_vm', None)
        self.folder = None
        self.guest_os = None
        self.guest_os_type = None
        self.nics = kwargs.get('nics', None)
        self.number_of_cores = kwargs.get('number_of_cores', None)
        self.password = kwargs.get('password', None)
        self.private_cloud_id = kwargs.get('private_cloud_id', None)
        self.provisioning_state = None
        self.public_ip = None
        self.resource_pool = kwargs.get('resource_pool', None)
        self.status = None
        self.template_id = kwargs.get('template_id', None)
        self.username = kwargs.get('username', None)
        self.v_sphere_networks = kwargs.get('v_sphere_networks', None)
        self.vm_id = None
        self.vmwaretools = None
        self.tags = kwargs.get('tags', None)
        self.type = None


class VirtualMachineStopMode(Model):
    """List of virtual machine stop modes.

    :param mode: mode indicates a type of stop operation - reboot, suspend,
     shutdown or power-off. Possible values include: 'reboot', 'suspend',
     'shutdown', 'poweroff'
    :type mode: str or ~azure.mgmt.vmwarecloudsimple.models.StopMode
    """

    _attribute_map = {
        'mode': {'key': 'mode', 'type': 'StopMode'},
    }

    def __init__(self, **kwargs):
        super(VirtualMachineStopMode, self).__init__(**kwargs)
        self.mode = kwargs.get('mode', None)


class VirtualMachineTemplate(Model):
    """Virtual machine template model.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    All required parameters must be populated in order to send to Azure.

    :ivar id: virtual machine template id (privateCloudId:vsphereId)
    :vartype id: str
    :param location: Azure region
    :type location: str
    :ivar name: {virtualMachineTemplateName}
    :vartype name: str
    :param amount_of_ram: The amount of memory
    :type amount_of_ram: int
    :param controllers: The list of Virtual Disk Controllers
    :type controllers:
     list[~azure.mgmt.vmwarecloudsimple.models.VirtualDiskController]
    :param description: The description of Virtual Machine Template
    :type description: str
    :param disks: The list of Virtual Disks
    :type disks: list[~azure.mgmt.vmwarecloudsimple.models.VirtualDisk]
    :param expose_to_guest_vm: Expose Guest OS or not
    :type expose_to_guest_vm: bool
    :ivar guest_os: The Guest OS
    :vartype guest_os: str
    :ivar guest_os_type: The Guest OS types
    :vartype guest_os_type: str
    :param nics: The list of Virtual NICs
    :type nics: list[~azure.mgmt.vmwarecloudsimple.models.VirtualNic]
    :param number_of_cores: The number of CPU cores
    :type number_of_cores: int
    :param path: path to folder
    :type path: str
    :param private_cloud_id: Required. The Private Cloud Id
    :type private_cloud_id: str
    :param v_sphere_networks: The list of VSphere networks
    :type v_sphere_networks: list[str]
    :param v_sphere_tags: The tags from VSphere
    :type v_sphere_tags: list[str]
    :ivar vmwaretools: The VMware tools version
    :vartype vmwaretools: str
    :ivar type: {resourceProviderNamespace}/{resourceType}
    :vartype type: str
    """

    _validation = {
        'id': {'readonly': True},
        'name': {'readonly': True},
        'guest_os': {'readonly': True},
        'guest_os_type': {'readonly': True},
        'private_cloud_id': {'required': True},
        'vmwaretools': {'readonly': True},
        'type': {'readonly': True},
    }

    _attribute_map = {
        'id': {'key': 'id', 'type': 'str'},
        'location': {'key': 'location', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'amount_of_ram': {'key': 'properties.amountOfRam', 'type': 'int'},
        'controllers': {'key': 'properties.controllers', 'type': '[VirtualDiskController]'},
        'description': {'key': 'properties.description', 'type': 'str'},
        'disks': {'key': 'properties.disks', 'type': '[VirtualDisk]'},
        'expose_to_guest_vm': {'key': 'properties.exposeToGuestVM', 'type': 'bool'},
        'guest_os': {'key': 'properties.guestOS', 'type': 'str'},
        'guest_os_type': {'key': 'properties.guestOSType', 'type': 'str'},
        'nics': {'key': 'properties.nics', 'type': '[VirtualNic]'},
        'number_of_cores': {'key': 'properties.numberOfCores', 'type': 'int'},
        'path': {'key': 'properties.path', 'type': 'str'},
        'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'},
        'v_sphere_networks': {'key': 'properties.vSphereNetworks', 'type': '[str]'},
        'v_sphere_tags': {'key': 'properties.vSphereTags', 'type': '[str]'},
        'vmwaretools': {'key': 'properties.vmwaretools', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(VirtualMachineTemplate, self).__init__(**kwargs)
        self.id = None
        self.location = kwargs.get('location', None)
        self.name = None
        self.amount_of_ram = kwargs.get('amount_of_ram', None)
        self.controllers = kwargs.get('controllers', None)
        self.description = kwargs.get('description', None)
        self.disks = kwargs.get('disks', None)
        self.expose_to_guest_vm = kwargs.get('expose_to_guest_vm', None)
        self.guest_os = None
        self.guest_os_type = None
        self.nics = kwargs.get('nics', None)
        self.number_of_cores = kwargs.get('number_of_cores', None)
        self.path = kwargs.get('path', None)
        self.private_cloud_id = kwargs.get('private_cloud_id', None)
        self.v_sphere_networks = kwargs.get('v_sphere_networks', None)
        self.v_sphere_tags = kwargs.get('v_sphere_tags', None)
        self.vmwaretools = None
        self.type = None


class VirtualNetwork(Model):
    """Virtual network model.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    All required parameters must be populated in order to send to Azure.

    :ivar assignable: can be used in vm creation/deletion
    :vartype assignable: bool
    :param id: Required. virtual network id (privateCloudId:vsphereId)
    :type id: str
    :ivar location: Azure region
    :vartype location: str
    :ivar name: {VirtualNetworkName}
    :vartype name: str
    :ivar private_cloud_id: The Private Cloud id
    :vartype private_cloud_id: str
    :ivar type: {resourceProviderNamespace}/{resourceType}
    :vartype type: str
    """

    _validation = {
        'assignable': {'readonly': True},
        'id': {'required': True},
        'location': {'readonly': True},
        'name': {'readonly': True},
        'private_cloud_id': {'readonly': True},
        'type': {'readonly': True},
    }

    _attribute_map = {
        'assignable': {'key': 'assignable', 'type': 'bool'},
        'id': {'key': 'id', 'type': 'str'},
        'location': {'key': 'location', 'type': 'str'},
        'name': {'key': 'name', 'type': 'str'},
        'private_cloud_id': {'key': 'properties.privateCloudId', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(VirtualNetwork, self).__init__(**kwargs)
        self.assignable = None
        self.id = kwargs.get('id', None)
        self.location = None
        self.name = None
        self.private_cloud_id = None
        self.type = None


class VirtualNic(Model):
    """Virtual NIC model.

    Variables are only populated by the server, and will be ignored when
    sending a request.

    All required parameters must be populated in order to send to Azure.

    :param customization: guest OS customization for nic
    :type customization:
     ~azure.mgmt.vmwarecloudsimple.models.GuestOSNICCustomization
    :param ip_addresses: NIC ip address
    :type ip_addresses: list[str]
    :param mac_address: NIC MAC address
    :type mac_address: str
    :param network: Required. Virtual Network
    :type network: ~azure.mgmt.vmwarecloudsimple.models.VirtualNetwork
    :param nic_type: Required. NIC type. Possible values include: 'E1000',
     'E1000E', 'PCNET32', 'VMXNET', 'VMXNET2', 'VMXNET3'
    :type nic_type: str or ~azure.mgmt.vmwarecloudsimple.models.NICType
    :param power_on_boot: Is NIC powered on/off on boot
    :type power_on_boot: bool
    :param virtual_nic_id: NIC id
    :type virtual_nic_id: str
    :ivar virtual_nic_name: NIC name
    :vartype virtual_nic_name: str
    """

    _validation = {
        'network': {'required': True},
        'nic_type': {'required': True},
        'virtual_nic_name': {'readonly': True},
    }

    _attribute_map = {
        'customization': {'key': 'customization', 'type': 'GuestOSNICCustomization'},
        'ip_addresses': {'key': 'ipAddresses', 'type': '[str]'},
        'mac_address': {'key': 'macAddress', 'type': 'str'},
        'network': {'key': 'network', 'type': 'VirtualNetwork'},
        'nic_type': {'key': 'nicType', 'type': 'NICType'},
        'power_on_boot': {'key': 'powerOnBoot', 'type': 'bool'},
        'virtual_nic_id': {'key': 'virtualNicId', 'type': 'str'},
        'virtual_nic_name': {'key': 'virtualNicName', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(VirtualNic, self).__init__(**kwargs)
        self.customization = kwargs.get('customization', None)
        self.ip_addresses = kwargs.get('ip_addresses', None)
        self.mac_address = kwargs.get('mac_address', None)
        self.network = kwargs.get('network', None)
        self.nic_type = kwargs.get('nic_type', None)
        self.power_on_boot = kwargs.get('power_on_boot', None)
        self.virtual_nic_id = kwargs.get('virtual_nic_id', None)
        self.virtual_nic_name = None