File: _models_py3.py

package info (click to toggle)
python-azure 20230112%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 749,544 kB
  • sloc: python: 6,815,827; javascript: 287; makefile: 195; xml: 109; sh: 105
file content (1192 lines) | stat: -rw-r--r-- 50,192 bytes parent folder | download | duplicates (2)
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
# coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

import sys
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union

from .. import _serialization

if sys.version_info >= (3, 9):
    from collections.abc import MutableMapping
else:
    from typing import MutableMapping  # type: ignore  # pylint: disable=ungrouped-imports

if TYPE_CHECKING:
    # pylint: disable=unused-import,ungrouped-imports
    from .. import models as _models
JSON = MutableMapping[str, Any]  # pylint: disable=unsubscriptable-object


class AcsClusterProperties(_serialization.Model):
    """Information about the container service backing the cluster.

    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 cluster_fqdn: The FQDN of the cluster.
    :vartype cluster_fqdn: str
    :ivar orchestrator_type: Type of orchestrator. It cannot be changed once the cluster is
     created. Required. Known values are: "Kubernetes" and "None".
    :vartype orchestrator_type: str or ~azure.mgmt.machinelearningcompute.models.OrchestratorType
    :ivar orchestrator_properties: Orchestrator specific properties.
    :vartype orchestrator_properties:
     ~azure.mgmt.machinelearningcompute.models.KubernetesClusterProperties
    :ivar system_services: The system services deployed to the cluster.
    :vartype system_services: list[~azure.mgmt.machinelearningcompute.models.SystemService]
    :ivar master_count: The number of master nodes in the container service.
    :vartype master_count: int
    :ivar agent_count: The number of agent nodes in the Container Service. This can be changed to
     scale the cluster.
    :vartype agent_count: int
    :ivar agent_vm_size: The Azure VM size of the agent VM nodes. This cannot be changed once the
     cluster is created. This list is non exhaustive; refer to
     https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes for the possible VM
     sizes. Known values are: "Standard_A0", "Standard_A1", "Standard_A2", "Standard_A3",
     "Standard_A4", "Standard_A5", "Standard_A6", "Standard_A7", "Standard_A8", "Standard_A9",
     "Standard_A10", "Standard_A11", "Standard_D1", "Standard_D2", "Standard_D3", "Standard_D4",
     "Standard_D11", "Standard_D12", "Standard_D13", "Standard_D14", "Standard_D1_v2",
     "Standard_D2_v2", "Standard_D3_v2", "Standard_D4_v2", "Standard_D5_v2", "Standard_D11_v2",
     "Standard_D12_v2", "Standard_D13_v2", "Standard_D14_v2", "Standard_G1", "Standard_G2",
     "Standard_G3", "Standard_G4", "Standard_G5", "Standard_DS1", "Standard_DS2", "Standard_DS3",
     "Standard_DS4", "Standard_DS11", "Standard_DS12", "Standard_DS13", "Standard_DS14",
     "Standard_GS1", "Standard_GS2", "Standard_GS3", "Standard_GS4", and "Standard_GS5".
    :vartype agent_vm_size: str or ~azure.mgmt.machinelearningcompute.models.AgentVMSizeTypes
    """

    _validation = {
        "cluster_fqdn": {"readonly": True},
        "orchestrator_type": {"required": True},
        "master_count": {"maximum": 5, "minimum": 1},
        "agent_count": {"maximum": 100, "minimum": 1},
    }

    _attribute_map = {
        "cluster_fqdn": {"key": "clusterFqdn", "type": "str"},
        "orchestrator_type": {"key": "orchestratorType", "type": "str"},
        "orchestrator_properties": {"key": "orchestratorProperties", "type": "KubernetesClusterProperties"},
        "system_services": {"key": "systemServices", "type": "[SystemService]"},
        "master_count": {"key": "masterCount", "type": "int"},
        "agent_count": {"key": "agentCount", "type": "int"},
        "agent_vm_size": {"key": "agentVmSize", "type": "str"},
    }

    def __init__(
        self,
        *,
        orchestrator_type: Union[str, "_models.OrchestratorType"],
        orchestrator_properties: Optional["_models.KubernetesClusterProperties"] = None,
        system_services: Optional[List["_models.SystemService"]] = None,
        master_count: int = 1,
        agent_count: int = 2,
        agent_vm_size: Union[str, "_models.AgentVMSizeTypes"] = "Standard_D3_v2",
        **kwargs
    ):
        """
        :keyword orchestrator_type: Type of orchestrator. It cannot be changed once the cluster is
         created. Required. Known values are: "Kubernetes" and "None".
        :paramtype orchestrator_type: str or ~azure.mgmt.machinelearningcompute.models.OrchestratorType
        :keyword orchestrator_properties: Orchestrator specific properties.
        :paramtype orchestrator_properties:
         ~azure.mgmt.machinelearningcompute.models.KubernetesClusterProperties
        :keyword system_services: The system services deployed to the cluster.
        :paramtype system_services: list[~azure.mgmt.machinelearningcompute.models.SystemService]
        :keyword master_count: The number of master nodes in the container service.
        :paramtype master_count: int
        :keyword agent_count: The number of agent nodes in the Container Service. This can be changed
         to scale the cluster.
        :paramtype agent_count: int
        :keyword agent_vm_size: The Azure VM size of the agent VM nodes. This cannot be changed once
         the cluster is created. This list is non exhaustive; refer to
         https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes for the possible VM
         sizes. Known values are: "Standard_A0", "Standard_A1", "Standard_A2", "Standard_A3",
         "Standard_A4", "Standard_A5", "Standard_A6", "Standard_A7", "Standard_A8", "Standard_A9",
         "Standard_A10", "Standard_A11", "Standard_D1", "Standard_D2", "Standard_D3", "Standard_D4",
         "Standard_D11", "Standard_D12", "Standard_D13", "Standard_D14", "Standard_D1_v2",
         "Standard_D2_v2", "Standard_D3_v2", "Standard_D4_v2", "Standard_D5_v2", "Standard_D11_v2",
         "Standard_D12_v2", "Standard_D13_v2", "Standard_D14_v2", "Standard_G1", "Standard_G2",
         "Standard_G3", "Standard_G4", "Standard_G5", "Standard_DS1", "Standard_DS2", "Standard_DS3",
         "Standard_DS4", "Standard_DS11", "Standard_DS12", "Standard_DS13", "Standard_DS14",
         "Standard_GS1", "Standard_GS2", "Standard_GS3", "Standard_GS4", and "Standard_GS5".
        :paramtype agent_vm_size: str or ~azure.mgmt.machinelearningcompute.models.AgentVMSizeTypes
        """
        super().__init__(**kwargs)
        self.cluster_fqdn = None
        self.orchestrator_type = orchestrator_type
        self.orchestrator_properties = orchestrator_properties
        self.system_services = system_services
        self.master_count = master_count
        self.agent_count = agent_count
        self.agent_vm_size = agent_vm_size


class AppInsightsCredentials(_serialization.Model):
    """AppInsights credentials.

    :ivar app_id: The AppInsights application ID.
    :vartype app_id: str
    :ivar instrumentation_key: The AppInsights instrumentation key. This is not returned in
     response of GET/PUT on the resource. To see this please call listKeys API.
    :vartype instrumentation_key: str
    """

    _attribute_map = {
        "app_id": {"key": "appId", "type": "str"},
        "instrumentation_key": {"key": "instrumentationKey", "type": "str"},
    }

    def __init__(self, *, app_id: Optional[str] = None, instrumentation_key: Optional[str] = None, **kwargs):
        """
        :keyword app_id: The AppInsights application ID.
        :paramtype app_id: str
        :keyword instrumentation_key: The AppInsights instrumentation key. This is not returned in
         response of GET/PUT on the resource. To see this please call listKeys API.
        :paramtype instrumentation_key: str
        """
        super().__init__(**kwargs)
        self.app_id = app_id
        self.instrumentation_key = instrumentation_key


class AppInsightsProperties(_serialization.Model):
    """Properties of App Insights.

    :ivar resource_id: ARM resource ID of the App Insights.
    :vartype resource_id: str
    """

    _attribute_map = {
        "resource_id": {"key": "resourceId", "type": "str"},
    }

    def __init__(self, *, resource_id: Optional[str] = None, **kwargs):
        """
        :keyword resource_id: ARM resource ID of the App Insights.
        :paramtype resource_id: str
        """
        super().__init__(**kwargs)
        self.resource_id = resource_id


class AutoScaleConfiguration(_serialization.Model):
    """AutoScale configuration properties.

    :ivar status: If auto-scale is enabled for all services. Each service can turn it off
     individually. Known values are: "Enabled" and "Disabled".
    :vartype status: str or ~azure.mgmt.machinelearningcompute.models.Status
    :ivar min_replicas: The minimum number of replicas for each service.
    :vartype min_replicas: int
    :ivar max_replicas: The maximum number of replicas for each service.
    :vartype max_replicas: int
    :ivar target_utilization: The target utilization.
    :vartype target_utilization: float
    :ivar refresh_period_in_seconds: Refresh period in seconds.
    :vartype refresh_period_in_seconds: int
    """

    _validation = {
        "min_replicas": {"minimum": 1},
        "max_replicas": {"minimum": 1},
    }

    _attribute_map = {
        "status": {"key": "status", "type": "str"},
        "min_replicas": {"key": "minReplicas", "type": "int"},
        "max_replicas": {"key": "maxReplicas", "type": "int"},
        "target_utilization": {"key": "targetUtilization", "type": "float"},
        "refresh_period_in_seconds": {"key": "refreshPeriodInSeconds", "type": "int"},
    }

    def __init__(
        self,
        *,
        status: Optional[Union[str, "_models.Status"]] = None,
        min_replicas: int = 1,
        max_replicas: int = 100,
        target_utilization: Optional[float] = None,
        refresh_period_in_seconds: Optional[int] = None,
        **kwargs
    ):
        """
        :keyword status: If auto-scale is enabled for all services. Each service can turn it off
         individually. Known values are: "Enabled" and "Disabled".
        :paramtype status: str or ~azure.mgmt.machinelearningcompute.models.Status
        :keyword min_replicas: The minimum number of replicas for each service.
        :paramtype min_replicas: int
        :keyword max_replicas: The maximum number of replicas for each service.
        :paramtype max_replicas: int
        :keyword target_utilization: The target utilization.
        :paramtype target_utilization: float
        :keyword refresh_period_in_seconds: Refresh period in seconds.
        :paramtype refresh_period_in_seconds: int
        """
        super().__init__(**kwargs)
        self.status = status
        self.min_replicas = min_replicas
        self.max_replicas = max_replicas
        self.target_utilization = target_utilization
        self.refresh_period_in_seconds = refresh_period_in_seconds


class AvailableOperations(_serialization.Model):
    """Available operation list.

    :ivar value: An array of available operations.
    :vartype value: list[~azure.mgmt.machinelearningcompute.models.ResourceOperation]
    """

    _attribute_map = {
        "value": {"key": "value", "type": "[ResourceOperation]"},
    }

    def __init__(self, *, value: Optional[List["_models.ResourceOperation"]] = None, **kwargs):
        """
        :keyword value: An array of available operations.
        :paramtype value: list[~azure.mgmt.machinelearningcompute.models.ResourceOperation]
        """
        super().__init__(**kwargs)
        self.value = value


class CheckSystemServicesUpdatesAvailableResponse(_serialization.Model):
    """Information about updates available for system services in a cluster.

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

    :ivar updates_available: Yes if updates are available for the system services, No if not. Known
     values are: "Yes" and "No".
    :vartype updates_available: str or ~azure.mgmt.machinelearningcompute.models.UpdatesAvailable
    """

    _validation = {
        "updates_available": {"readonly": True},
    }

    _attribute_map = {
        "updates_available": {"key": "updatesAvailable", "type": "str"},
    }

    def __init__(self, **kwargs):
        """ """
        super().__init__(**kwargs)
        self.updates_available = None


class ContainerRegistryCredentials(_serialization.Model):
    """Information about the Azure Container Registry which contains the images deployed to the cluster.

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

    :ivar login_server: The ACR login server name. User name is the first part of the FQDN.
    :vartype login_server: str
    :ivar password: The ACR primary password.
    :vartype password: str
    :ivar password2: The ACR secondary password.
    :vartype password2: str
    :ivar username: The ACR login username.
    :vartype username: str
    """

    _validation = {
        "login_server": {"readonly": True},
        "password": {"readonly": True},
        "password2": {"readonly": True},
        "username": {"readonly": True},
    }

    _attribute_map = {
        "login_server": {"key": "loginServer", "type": "str"},
        "password": {"key": "password", "type": "str"},
        "password2": {"key": "password2", "type": "str"},
        "username": {"key": "username", "type": "str"},
    }

    def __init__(self, **kwargs):
        """ """
        super().__init__(**kwargs)
        self.login_server = None
        self.password = None
        self.password2 = None
        self.username = None


class ContainerRegistryProperties(_serialization.Model):
    """Properties of Azure Container Registry.

    :ivar resource_id: ARM resource ID of the Azure Container Registry used to store Docker images
     for web services in the cluster. If not provided one will be created. This cannot be changed
     once the cluster is created.
    :vartype resource_id: str
    """

    _attribute_map = {
        "resource_id": {"key": "resourceId", "type": "str"},
    }

    def __init__(self, *, resource_id: Optional[str] = None, **kwargs):
        """
        :keyword resource_id: ARM resource ID of the Azure Container Registry used to store Docker
         images for web services in the cluster. If not provided one will be created. This cannot be
         changed once the cluster is created.
        :paramtype resource_id: str
        """
        super().__init__(**kwargs)
        self.resource_id = resource_id


class ContainerServiceCredentials(_serialization.Model):
    """Information about the Azure Container Registry which contains the images deployed to the cluster.

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

    :ivar acs_kube_config: The ACS kube config file.
    :vartype acs_kube_config: str
    :ivar service_principal_configuration: Service principal configuration used by Kubernetes.
    :vartype service_principal_configuration:
     ~azure.mgmt.machinelearningcompute.models.ServicePrincipalProperties
    :ivar image_pull_secret_name: The ACR image pull secret name which was created in Kubernetes.
    :vartype image_pull_secret_name: str
    """

    _validation = {
        "acs_kube_config": {"readonly": True},
        "service_principal_configuration": {"readonly": True},
        "image_pull_secret_name": {"readonly": True},
    }

    _attribute_map = {
        "acs_kube_config": {"key": "acsKubeConfig", "type": "str"},
        "service_principal_configuration": {
            "key": "servicePrincipalConfiguration",
            "type": "ServicePrincipalProperties",
        },
        "image_pull_secret_name": {"key": "imagePullSecretName", "type": "str"},
    }

    def __init__(self, **kwargs):
        """ """
        super().__init__(**kwargs)
        self.acs_kube_config = None
        self.service_principal_configuration = None
        self.image_pull_secret_name = None


class ErrorDetail(_serialization.Model):
    """Error detail information.

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

    :ivar code: Error code. Required.
    :vartype code: str
    :ivar message: Error message. Required.
    :vartype message: str
    """

    _validation = {
        "code": {"required": True},
        "message": {"required": True},
    }

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

    def __init__(self, *, code: str, message: str, **kwargs):
        """
        :keyword code: Error code. Required.
        :paramtype code: str
        :keyword message: Error message. Required.
        :paramtype message: str
        """
        super().__init__(**kwargs)
        self.code = code
        self.message = message


class ErrorResponse(_serialization.Model):
    """Error response information.

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

    :ivar code: Error code. Required.
    :vartype code: str
    :ivar message: Error message. Required.
    :vartype message: str
    :ivar details: An array of error detail objects.
    :vartype details: list[~azure.mgmt.machinelearningcompute.models.ErrorDetail]
    """

    _validation = {
        "code": {"required": True},
        "message": {"required": True},
    }

    _attribute_map = {
        "code": {"key": "code", "type": "str"},
        "message": {"key": "message", "type": "str"},
        "details": {"key": "details", "type": "[ErrorDetail]"},
    }

    def __init__(self, *, code: str, message: str, details: Optional[List["_models.ErrorDetail"]] = None, **kwargs):
        """
        :keyword code: Error code. Required.
        :paramtype code: str
        :keyword message: Error message. Required.
        :paramtype message: str
        :keyword details: An array of error detail objects.
        :paramtype details: list[~azure.mgmt.machinelearningcompute.models.ErrorDetail]
        """
        super().__init__(**kwargs)
        self.code = code
        self.message = message
        self.details = details


class ErrorResponseWrapper(_serialization.Model):
    """Wrapper for error response to follow ARM guidelines.

    :ivar error: The error response.
    :vartype error: ~azure.mgmt.machinelearningcompute.models.ErrorResponse
    """

    _attribute_map = {
        "error": {"key": "error", "type": "ErrorResponse"},
    }

    def __init__(self, *, error: Optional["_models.ErrorResponse"] = None, **kwargs):
        """
        :keyword error: The error response.
        :paramtype error: ~azure.mgmt.machinelearningcompute.models.ErrorResponse
        """
        super().__init__(**kwargs)
        self.error = error


class GlobalServiceConfiguration(_serialization.Model):
    """Global configuration for services in the cluster.

    :ivar additional_properties: Unmatched properties from the message are deserialized to this
     collection.
    :vartype additional_properties: dict[str, JSON]
    :ivar etag: The configuration ETag for updates.
    :vartype etag: str
    :ivar ssl: The SSL configuration properties.
    :vartype ssl: ~azure.mgmt.machinelearningcompute.models.SslConfiguration
    :ivar service_auth: Optional global authorization keys for all user services deployed in
     cluster. These are used if the service does not have auth keys.
    :vartype service_auth: ~azure.mgmt.machinelearningcompute.models.ServiceAuthConfiguration
    :ivar auto_scale: The auto-scale configuration.
    :vartype auto_scale: ~azure.mgmt.machinelearningcompute.models.AutoScaleConfiguration
    """

    _attribute_map = {
        "additional_properties": {"key": "", "type": "{object}"},
        "etag": {"key": "etag", "type": "str"},
        "ssl": {"key": "ssl", "type": "SslConfiguration"},
        "service_auth": {"key": "serviceAuth", "type": "ServiceAuthConfiguration"},
        "auto_scale": {"key": "autoScale", "type": "AutoScaleConfiguration"},
    }

    def __init__(
        self,
        *,
        additional_properties: Optional[Dict[str, JSON]] = None,
        etag: Optional[str] = None,
        ssl: Optional["_models.SslConfiguration"] = None,
        service_auth: Optional["_models.ServiceAuthConfiguration"] = None,
        auto_scale: Optional["_models.AutoScaleConfiguration"] = None,
        **kwargs
    ):
        """
        :keyword additional_properties: Unmatched properties from the message are deserialized to this
         collection.
        :paramtype additional_properties: dict[str, JSON]
        :keyword etag: The configuration ETag for updates.
        :paramtype etag: str
        :keyword ssl: The SSL configuration properties.
        :paramtype ssl: ~azure.mgmt.machinelearningcompute.models.SslConfiguration
        :keyword service_auth: Optional global authorization keys for all user services deployed in
         cluster. These are used if the service does not have auth keys.
        :paramtype service_auth: ~azure.mgmt.machinelearningcompute.models.ServiceAuthConfiguration
        :keyword auto_scale: The auto-scale configuration.
        :paramtype auto_scale: ~azure.mgmt.machinelearningcompute.models.AutoScaleConfiguration
        """
        super().__init__(**kwargs)
        self.additional_properties = additional_properties
        self.etag = etag
        self.ssl = ssl
        self.service_auth = service_auth
        self.auto_scale = auto_scale


class KubernetesClusterProperties(_serialization.Model):
    """Kubernetes cluster specific properties.

    :ivar service_principal: The Azure Service Principal used by Kubernetes.
    :vartype service_principal:
     ~azure.mgmt.machinelearningcompute.models.ServicePrincipalProperties
    """

    _attribute_map = {
        "service_principal": {"key": "servicePrincipal", "type": "ServicePrincipalProperties"},
    }

    def __init__(self, *, service_principal: Optional["_models.ServicePrincipalProperties"] = None, **kwargs):
        """
        :keyword service_principal: The Azure Service Principal used by Kubernetes.
        :paramtype service_principal:
         ~azure.mgmt.machinelearningcompute.models.ServicePrincipalProperties
        """
        super().__init__(**kwargs)
        self.service_principal = service_principal


class Resource(_serialization.Model):
    """Azure resource.

    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: Specifies the resource ID.
    :vartype id: str
    :ivar name: Specifies the name of the resource.
    :vartype name: str
    :ivar location: Specifies the location of the resource. Required.
    :vartype location: str
    :ivar type: Specifies the type of the resource.
    :vartype type: str
    :ivar tags: Contains resource tags defined as key/value pairs.
    :vartype tags: dict[str, str]
    """

    _validation = {
        "id": {"readonly": True},
        "name": {"readonly": True},
        "location": {"required": True},
        "type": {"readonly": True},
    }

    _attribute_map = {
        "id": {"key": "id", "type": "str"},
        "name": {"key": "name", "type": "str"},
        "location": {"key": "location", "type": "str"},
        "type": {"key": "type", "type": "str"},
        "tags": {"key": "tags", "type": "{str}"},
    }

    def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs):
        """
        :keyword location: Specifies the location of the resource. Required.
        :paramtype location: str
        :keyword tags: Contains resource tags defined as key/value pairs.
        :paramtype tags: dict[str, str]
        """
        super().__init__(**kwargs)
        self.id = None
        self.name = None
        self.location = location
        self.type = None
        self.tags = tags


class OperationalizationCluster(Resource):  # pylint: disable=too-many-instance-attributes
    """Instance of an Azure ML Operationalization Cluster resource.

    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: Specifies the resource ID.
    :vartype id: str
    :ivar name: Specifies the name of the resource.
    :vartype name: str
    :ivar location: Specifies the location of the resource. Required.
    :vartype location: str
    :ivar type: Specifies the type of the resource.
    :vartype type: str
    :ivar tags: Contains resource tags defined as key/value pairs.
    :vartype tags: dict[str, str]
    :ivar description: The description of the cluster.
    :vartype description: str
    :ivar created_on: The date and time when the cluster was created.
    :vartype created_on: ~datetime.datetime
    :ivar modified_on: The date and time when the cluster was last modified.
    :vartype modified_on: ~datetime.datetime
    :ivar provisioning_state: The provision state of the cluster. Valid values are Unknown,
     Updating, Provisioning, Succeeded, and Failed. Known values are: "Unknown", "Updating",
     "Creating", "Deleting", "Succeeded", "Failed", and "Canceled".
    :vartype provisioning_state: str or ~azure.mgmt.machinelearningcompute.models.OperationStatus
    :ivar provisioning_errors: List of provisioning errors reported by the resource provider.
    :vartype provisioning_errors:
     list[~azure.mgmt.machinelearningcompute.models.ErrorResponseWrapper]
    :ivar cluster_type: The cluster type. Known values are: "ACS" and "Local".
    :vartype cluster_type: str or ~azure.mgmt.machinelearningcompute.models.ClusterType
    :ivar storage_account: Storage Account properties.
    :vartype storage_account: ~azure.mgmt.machinelearningcompute.models.StorageAccountProperties
    :ivar container_registry: Container Registry properties.
    :vartype container_registry:
     ~azure.mgmt.machinelearningcompute.models.ContainerRegistryProperties
    :ivar container_service: Parameters for the Azure Container Service cluster.
    :vartype container_service: ~azure.mgmt.machinelearningcompute.models.AcsClusterProperties
    :ivar app_insights: AppInsights configuration.
    :vartype app_insights: ~azure.mgmt.machinelearningcompute.models.AppInsightsProperties
    :ivar global_service_configuration: Contains global configuration for the web services in the
     cluster.
    :vartype global_service_configuration:
     ~azure.mgmt.machinelearningcompute.models.GlobalServiceConfiguration
    """

    _validation = {
        "id": {"readonly": True},
        "name": {"readonly": True},
        "location": {"required": True},
        "type": {"readonly": True},
        "created_on": {"readonly": True},
        "modified_on": {"readonly": True},
        "provisioning_state": {"readonly": True},
        "provisioning_errors": {"readonly": True},
    }

    _attribute_map = {
        "id": {"key": "id", "type": "str"},
        "name": {"key": "name", "type": "str"},
        "location": {"key": "location", "type": "str"},
        "type": {"key": "type", "type": "str"},
        "tags": {"key": "tags", "type": "{str}"},
        "description": {"key": "properties.description", "type": "str"},
        "created_on": {"key": "properties.createdOn", "type": "iso-8601"},
        "modified_on": {"key": "properties.modifiedOn", "type": "iso-8601"},
        "provisioning_state": {"key": "properties.provisioningState", "type": "str"},
        "provisioning_errors": {"key": "properties.provisioningErrors", "type": "[ErrorResponseWrapper]"},
        "cluster_type": {"key": "properties.clusterType", "type": "str"},
        "storage_account": {"key": "properties.storageAccount", "type": "StorageAccountProperties"},
        "container_registry": {"key": "properties.containerRegistry", "type": "ContainerRegistryProperties"},
        "container_service": {"key": "properties.containerService", "type": "AcsClusterProperties"},
        "app_insights": {"key": "properties.appInsights", "type": "AppInsightsProperties"},
        "global_service_configuration": {
            "key": "properties.globalServiceConfiguration",
            "type": "GlobalServiceConfiguration",
        },
    }

    def __init__(
        self,
        *,
        location: str,
        tags: Optional[Dict[str, str]] = None,
        description: Optional[str] = None,
        cluster_type: Optional[Union[str, "_models.ClusterType"]] = None,
        storage_account: Optional["_models.StorageAccountProperties"] = None,
        container_registry: Optional["_models.ContainerRegistryProperties"] = None,
        container_service: Optional["_models.AcsClusterProperties"] = None,
        app_insights: Optional["_models.AppInsightsProperties"] = None,
        global_service_configuration: Optional["_models.GlobalServiceConfiguration"] = None,
        **kwargs
    ):
        """
        :keyword location: Specifies the location of the resource. Required.
        :paramtype location: str
        :keyword tags: Contains resource tags defined as key/value pairs.
        :paramtype tags: dict[str, str]
        :keyword description: The description of the cluster.
        :paramtype description: str
        :keyword cluster_type: The cluster type. Known values are: "ACS" and "Local".
        :paramtype cluster_type: str or ~azure.mgmt.machinelearningcompute.models.ClusterType
        :keyword storage_account: Storage Account properties.
        :paramtype storage_account: ~azure.mgmt.machinelearningcompute.models.StorageAccountProperties
        :keyword container_registry: Container Registry properties.
        :paramtype container_registry:
         ~azure.mgmt.machinelearningcompute.models.ContainerRegistryProperties
        :keyword container_service: Parameters for the Azure Container Service cluster.
        :paramtype container_service: ~azure.mgmt.machinelearningcompute.models.AcsClusterProperties
        :keyword app_insights: AppInsights configuration.
        :paramtype app_insights: ~azure.mgmt.machinelearningcompute.models.AppInsightsProperties
        :keyword global_service_configuration: Contains global configuration for the web services in
         the cluster.
        :paramtype global_service_configuration:
         ~azure.mgmt.machinelearningcompute.models.GlobalServiceConfiguration
        """
        super().__init__(location=location, tags=tags, **kwargs)
        self.description = description
        self.created_on = None
        self.modified_on = None
        self.provisioning_state = None
        self.provisioning_errors = None
        self.cluster_type = cluster_type
        self.storage_account = storage_account
        self.container_registry = container_registry
        self.container_service = container_service
        self.app_insights = app_insights
        self.global_service_configuration = global_service_configuration


class OperationalizationClusterCredentials(_serialization.Model):
    """Credentials to resources in the cluster.

    :ivar storage_account: Credentials for the Storage Account.
    :vartype storage_account: ~azure.mgmt.machinelearningcompute.models.StorageAccountCredentials
    :ivar container_registry: Credentials for Azure Container Registry.
    :vartype container_registry:
     ~azure.mgmt.machinelearningcompute.models.ContainerRegistryCredentials
    :ivar container_service: Credentials for Azure Container Service.
    :vartype container_service:
     ~azure.mgmt.machinelearningcompute.models.ContainerServiceCredentials
    :ivar app_insights: Credentials for Azure AppInsights.
    :vartype app_insights: ~azure.mgmt.machinelearningcompute.models.AppInsightsCredentials
    :ivar service_auth_configuration: Global authorization keys for all user services deployed in
     cluster. These are used if the service does not have auth keys.
    :vartype service_auth_configuration:
     ~azure.mgmt.machinelearningcompute.models.ServiceAuthConfiguration
    :ivar ssl_configuration: The SSL configuration for the services.
    :vartype ssl_configuration: ~azure.mgmt.machinelearningcompute.models.SslConfiguration
    """

    _attribute_map = {
        "storage_account": {"key": "storageAccount", "type": "StorageAccountCredentials"},
        "container_registry": {"key": "containerRegistry", "type": "ContainerRegistryCredentials"},
        "container_service": {"key": "containerService", "type": "ContainerServiceCredentials"},
        "app_insights": {"key": "appInsights", "type": "AppInsightsCredentials"},
        "service_auth_configuration": {"key": "serviceAuthConfiguration", "type": "ServiceAuthConfiguration"},
        "ssl_configuration": {"key": "sslConfiguration", "type": "SslConfiguration"},
    }

    def __init__(
        self,
        *,
        storage_account: Optional["_models.StorageAccountCredentials"] = None,
        container_registry: Optional["_models.ContainerRegistryCredentials"] = None,
        container_service: Optional["_models.ContainerServiceCredentials"] = None,
        app_insights: Optional["_models.AppInsightsCredentials"] = None,
        service_auth_configuration: Optional["_models.ServiceAuthConfiguration"] = None,
        ssl_configuration: Optional["_models.SslConfiguration"] = None,
        **kwargs
    ):
        """
        :keyword storage_account: Credentials for the Storage Account.
        :paramtype storage_account: ~azure.mgmt.machinelearningcompute.models.StorageAccountCredentials
        :keyword container_registry: Credentials for Azure Container Registry.
        :paramtype container_registry:
         ~azure.mgmt.machinelearningcompute.models.ContainerRegistryCredentials
        :keyword container_service: Credentials for Azure Container Service.
        :paramtype container_service:
         ~azure.mgmt.machinelearningcompute.models.ContainerServiceCredentials
        :keyword app_insights: Credentials for Azure AppInsights.
        :paramtype app_insights: ~azure.mgmt.machinelearningcompute.models.AppInsightsCredentials
        :keyword service_auth_configuration: Global authorization keys for all user services deployed
         in cluster. These are used if the service does not have auth keys.
        :paramtype service_auth_configuration:
         ~azure.mgmt.machinelearningcompute.models.ServiceAuthConfiguration
        :keyword ssl_configuration: The SSL configuration for the services.
        :paramtype ssl_configuration: ~azure.mgmt.machinelearningcompute.models.SslConfiguration
        """
        super().__init__(**kwargs)
        self.storage_account = storage_account
        self.container_registry = container_registry
        self.container_service = container_service
        self.app_insights = app_insights
        self.service_auth_configuration = service_auth_configuration
        self.ssl_configuration = ssl_configuration


class OperationalizationClusterUpdateParameters(_serialization.Model):
    """Parameters for PATCH operation on an operationalization cluster.

    :ivar tags: Gets or sets a list of key value pairs that describe the resource. These tags can
     be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags
     can be provided for a resource. Each tag must have a key no greater in length than 128
     characters and a value no greater in length than 256 characters.
    :vartype tags: dict[str, str]
    """

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

    def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs):
        """
        :keyword tags: Gets or sets a list of key value pairs that describe the resource. These tags
         can be used in viewing and grouping this resource (across resource groups). A maximum of 15
         tags can be provided for a resource. Each tag must have a key no greater in length than 128
         characters and a value no greater in length than 256 characters.
        :paramtype tags: dict[str, str]
        """
        super().__init__(**kwargs)
        self.tags = tags


class PaginatedOperationalizationClustersList(_serialization.Model):
    """Paginated list of operationalization clusters.

    :ivar value: An array of cluster objects.
    :vartype value: list[~azure.mgmt.machinelearningcompute.models.OperationalizationCluster]
    :ivar next_link: A continuation link (absolute URI) to the next page of results in the list.
    :vartype next_link: str
    """

    _attribute_map = {
        "value": {"key": "value", "type": "[OperationalizationCluster]"},
        "next_link": {"key": "nextLink", "type": "str"},
    }

    def __init__(
        self,
        *,
        value: Optional[List["_models.OperationalizationCluster"]] = None,
        next_link: Optional[str] = None,
        **kwargs
    ):
        """
        :keyword value: An array of cluster objects.
        :paramtype value: list[~azure.mgmt.machinelearningcompute.models.OperationalizationCluster]
        :keyword next_link: A continuation link (absolute URI) to the next page of results in the list.
        :paramtype next_link: str
        """
        super().__init__(**kwargs)
        self.value = value
        self.next_link = next_link


class ResourceOperation(_serialization.Model):
    """Resource operation.

    :ivar name: Name of this operation.
    :vartype name: str
    :ivar display: Display of the operation.
    :vartype display: ~azure.mgmt.machinelearningcompute.models.ResourceOperationDisplay
    :ivar origin: The operation origin.
    :vartype origin: str
    """

    _attribute_map = {
        "name": {"key": "name", "type": "str"},
        "display": {"key": "display", "type": "ResourceOperationDisplay"},
        "origin": {"key": "origin", "type": "str"},
    }

    def __init__(
        self,
        *,
        name: Optional[str] = None,
        display: Optional["_models.ResourceOperationDisplay"] = None,
        origin: Optional[str] = None,
        **kwargs
    ):
        """
        :keyword name: Name of this operation.
        :paramtype name: str
        :keyword display: Display of the operation.
        :paramtype display: ~azure.mgmt.machinelearningcompute.models.ResourceOperationDisplay
        :keyword origin: The operation origin.
        :paramtype origin: str
        """
        super().__init__(**kwargs)
        self.name = name
        self.display = display
        self.origin = origin


class ResourceOperationDisplay(_serialization.Model):
    """Display of the operation.

    :ivar provider: The resource provider name.
    :vartype provider: str
    :ivar resource: The resource name.
    :vartype resource: str
    :ivar operation: The operation.
    :vartype operation: str
    :ivar description: The description of the operation.
    :vartype description: str
    """

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

    def __init__(
        self,
        *,
        provider: Optional[str] = None,
        resource: Optional[str] = None,
        operation: Optional[str] = None,
        description: Optional[str] = None,
        **kwargs
    ):
        """
        :keyword provider: The resource provider name.
        :paramtype provider: str
        :keyword resource: The resource name.
        :paramtype resource: str
        :keyword operation: The operation.
        :paramtype operation: str
        :keyword description: The description of the operation.
        :paramtype description: str
        """
        super().__init__(**kwargs)
        self.provider = provider
        self.resource = resource
        self.operation = operation
        self.description = description


class ServiceAuthConfiguration(_serialization.Model):
    """Global service auth configuration properties. These are the data-plane authorization keys and are used if a service doesn't define it's own.

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

    :ivar primary_auth_key_hash: The primary auth key hash. This is not returned in response of
     GET/PUT on the resource.. To see this please call listKeys API. Required.
    :vartype primary_auth_key_hash: str
    :ivar secondary_auth_key_hash: The secondary auth key hash. This is not returned in response of
     GET/PUT on the resource.. To see this please call listKeys API. Required.
    :vartype secondary_auth_key_hash: str
    """

    _validation = {
        "primary_auth_key_hash": {"required": True},
        "secondary_auth_key_hash": {"required": True},
    }

    _attribute_map = {
        "primary_auth_key_hash": {"key": "primaryAuthKeyHash", "type": "str"},
        "secondary_auth_key_hash": {"key": "secondaryAuthKeyHash", "type": "str"},
    }

    def __init__(self, *, primary_auth_key_hash: str, secondary_auth_key_hash: str, **kwargs):
        """
        :keyword primary_auth_key_hash: The primary auth key hash. This is not returned in response of
         GET/PUT on the resource.. To see this please call listKeys API. Required.
        :paramtype primary_auth_key_hash: str
        :keyword secondary_auth_key_hash: The secondary auth key hash. This is not returned in response
         of GET/PUT on the resource.. To see this please call listKeys API. Required.
        :paramtype secondary_auth_key_hash: str
        """
        super().__init__(**kwargs)
        self.primary_auth_key_hash = primary_auth_key_hash
        self.secondary_auth_key_hash = secondary_auth_key_hash


class ServicePrincipalProperties(_serialization.Model):
    """The Azure service principal used by Kubernetes for configuring load balancers.

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

    :ivar client_id: The service principal client ID. Required.
    :vartype client_id: str
    :ivar secret: The service principal secret. This is not returned in response of GET/PUT on the
     resource. To see this please call listKeys. Required.
    :vartype secret: str
    """

    _validation = {
        "client_id": {"required": True},
        "secret": {"required": True},
    }

    _attribute_map = {
        "client_id": {"key": "clientId", "type": "str"},
        "secret": {"key": "secret", "type": "str"},
    }

    def __init__(self, *, client_id: str, secret: str, **kwargs):
        """
        :keyword client_id: The service principal client ID. Required.
        :paramtype client_id: str
        :keyword secret: The service principal secret. This is not returned in response of GET/PUT on
         the resource. To see this please call listKeys. Required.
        :paramtype secret: str
        """
        super().__init__(**kwargs)
        self.client_id = client_id
        self.secret = secret


class SslConfiguration(_serialization.Model):
    """SSL configuration. If configured data-plane calls to user services will be exposed over SSL only.

    :ivar status: SSL status. Allowed values are Enabled and Disabled. Known values are: "Enabled"
     and "Disabled".
    :vartype status: str or ~azure.mgmt.machinelearningcompute.models.Status
    :ivar cert: The SSL cert data in PEM format.
    :vartype cert: str
    :ivar key: The SSL key data in PEM format. This is not returned in response of GET/PUT on the
     resource. To see this please call listKeys API.
    :vartype key: str
    :ivar cname: The CName of the certificate.
    :vartype cname: str
    """

    _attribute_map = {
        "status": {"key": "status", "type": "str"},
        "cert": {"key": "cert", "type": "str"},
        "key": {"key": "key", "type": "str"},
        "cname": {"key": "cname", "type": "str"},
    }

    def __init__(
        self,
        *,
        status: Optional[Union[str, "_models.Status"]] = None,
        cert: Optional[str] = None,
        key: Optional[str] = None,
        cname: Optional[str] = None,
        **kwargs
    ):
        """
        :keyword status: SSL status. Allowed values are Enabled and Disabled. Known values are:
         "Enabled" and "Disabled".
        :paramtype status: str or ~azure.mgmt.machinelearningcompute.models.Status
        :keyword cert: The SSL cert data in PEM format.
        :paramtype cert: str
        :keyword key: The SSL key data in PEM format. This is not returned in response of GET/PUT on
         the resource. To see this please call listKeys API.
        :paramtype key: str
        :keyword cname: The CName of the certificate.
        :paramtype cname: str
        """
        super().__init__(**kwargs)
        self.status = status
        self.cert = cert
        self.key = key
        self.cname = cname


class StorageAccountCredentials(_serialization.Model):
    """Access information for the storage account.

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

    :ivar resource_id: The ARM resource ID of the storage account.
    :vartype resource_id: str
    :ivar primary_key: The primary key of the storage account.
    :vartype primary_key: str
    :ivar secondary_key: The secondary key of the storage account.
    :vartype secondary_key: str
    """

    _validation = {
        "resource_id": {"readonly": True},
        "primary_key": {"readonly": True},
        "secondary_key": {"readonly": True},
    }

    _attribute_map = {
        "resource_id": {"key": "resourceId", "type": "str"},
        "primary_key": {"key": "primaryKey", "type": "str"},
        "secondary_key": {"key": "secondaryKey", "type": "str"},
    }

    def __init__(self, **kwargs):
        """ """
        super().__init__(**kwargs)
        self.resource_id = None
        self.primary_key = None
        self.secondary_key = None


class StorageAccountProperties(_serialization.Model):
    """Properties of Storage Account.

    :ivar resource_id: ARM resource ID of the Azure Storage Account to store CLI specific files. If
     not provided one will be created. This cannot be changed once the cluster is created.
    :vartype resource_id: str
    """

    _attribute_map = {
        "resource_id": {"key": "resourceId", "type": "str"},
    }

    def __init__(self, *, resource_id: Optional[str] = None, **kwargs):
        """
        :keyword resource_id: ARM resource ID of the Azure Storage Account to store CLI specific files.
         If not provided one will be created. This cannot be changed once the cluster is created.
        :paramtype resource_id: str
        """
        super().__init__(**kwargs)
        self.resource_id = resource_id


class SystemService(_serialization.Model):
    """Information about a system service deployed in the cluster.

    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 system_service_type: The system service type. Required. Known values are: "None",
     "ScoringFrontEnd", and "BatchFrontEnd".
    :vartype system_service_type: str or
     ~azure.mgmt.machinelearningcompute.models.SystemServiceType
    :ivar public_ip_address: The public IP address of the system service.
    :vartype public_ip_address: str
    :ivar version: The state of the system service.
    :vartype version: str
    """

    _validation = {
        "system_service_type": {"required": True},
        "public_ip_address": {"readonly": True},
        "version": {"readonly": True},
    }

    _attribute_map = {
        "system_service_type": {"key": "systemServiceType", "type": "str"},
        "public_ip_address": {"key": "publicIpAddress", "type": "str"},
        "version": {"key": "version", "type": "str"},
    }

    def __init__(self, *, system_service_type: Union[str, "_models.SystemServiceType"], **kwargs):
        """
        :keyword system_service_type: The system service type. Required. Known values are: "None",
         "ScoringFrontEnd", and "BatchFrontEnd".
        :paramtype system_service_type: str or
         ~azure.mgmt.machinelearningcompute.models.SystemServiceType
        """
        super().__init__(**kwargs)
        self.system_service_type = system_service_type
        self.public_ip_address = None
        self.version = None


class UpdateSystemServicesResponse(_serialization.Model):
    """Response of the update system services API.

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

    :ivar update_status: Update status. Known values are: "Unknown", "Updating", "Creating",
     "Deleting", "Succeeded", "Failed", and "Canceled".
    :vartype update_status: str or ~azure.mgmt.machinelearningcompute.models.OperationStatus
    :ivar update_started_on: The date and time when the last system services update was started.
    :vartype update_started_on: ~datetime.datetime
    :ivar update_completed_on: The date and time when the last system services update completed.
    :vartype update_completed_on: ~datetime.datetime
    """

    _validation = {
        "update_status": {"readonly": True},
        "update_started_on": {"readonly": True},
        "update_completed_on": {"readonly": True},
    }

    _attribute_map = {
        "update_status": {"key": "updateStatus", "type": "str"},
        "update_started_on": {"key": "updateStartedOn", "type": "iso-8601"},
        "update_completed_on": {"key": "updateCompletedOn", "type": "iso-8601"},
    }

    def __init__(self, **kwargs):
        """ """
        super().__init__(**kwargs)
        self.update_status = None
        self.update_started_on = None
        self.update_completed_on = None