13
13
from msrest .exceptions import HttpOperationError
14
14
15
15
16
+ class AuthenticationDetails (Model ):
17
+ """Authentication details of the user.
18
+
19
+ Variables are only populated by the server, and will be ignored when
20
+ sending a request.
21
+
22
+ All required parameters must be populated in order to send to Azure.
23
+
24
+ :ivar authentication_method: Required. The mode of client authentication.
25
+ Default value: "Token" .
26
+ :vartype authentication_method: str
27
+ :param value: Required. Authentication token value.
28
+ :type value:
29
+ ~azure.mgmt.hybridkubernetes.models.AuthenticationDetailsValue
30
+ """
31
+
32
+ _validation = {
33
+ 'authentication_method' : {'required' : True , 'constant' : True },
34
+ 'value' : {'required' : True },
35
+ }
36
+
37
+ _attribute_map = {
38
+ 'authentication_method' : {'key' : 'authenticationMethod' , 'type' : 'str' },
39
+ 'value' : {'key' : 'value' , 'type' : 'AuthenticationDetailsValue' },
40
+ }
41
+
42
+ authentication_method = "Token"
43
+
44
+ def __init__ (self , ** kwargs ):
45
+ super (AuthenticationDetails , self ).__init__ (** kwargs )
46
+ self .value = kwargs .get ('value' , None )
47
+
48
+
49
+ class AuthenticationDetailsValue (Model ):
50
+ """Authentication token value.
51
+
52
+ :param token: Authentication token.
53
+ :type token: str
54
+ """
55
+
56
+ _attribute_map = {
57
+ 'token' : {'key' : 'token' , 'type' : 'str' },
58
+ }
59
+
60
+ def __init__ (self , ** kwargs ):
61
+ super (AuthenticationDetailsValue , self ).__init__ (** kwargs )
62
+ self .token = kwargs .get ('token' , None )
63
+
64
+
16
65
class Resource (Model ):
17
- """Resource.
66
+ """Common fields that are returned in the response for all Azure Resource
67
+ Manager resources.
18
68
19
69
Variables are only populated by the server, and will be ignored when
20
70
sending a request.
21
71
22
- :ivar id: Fully qualified resource Id for the resource. Ex -
72
+ :ivar id: Fully qualified resource ID for the resource. Ex -
23
73
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
24
74
:vartype id: str
25
75
:ivar name: The name of the resource
26
76
:vartype name: str
27
- :ivar type: The type of the resource. Ex-
28
- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
77
+ :ivar type: The type of the resource. E.g.
78
+ " Microsoft.Compute/virtualMachines" or " Microsoft.Storage/storageAccounts"
29
79
:vartype type: str
30
80
"""
31
81
@@ -49,19 +99,19 @@ def __init__(self, **kwargs):
49
99
50
100
51
101
class AzureEntityResource (Resource ):
52
- """The resource model definition for a Azure Resource Manager resource with an
53
- etag.
102
+ """The resource model definition for an Azure Resource Manager resource with
103
+ an etag.
54
104
55
105
Variables are only populated by the server, and will be ignored when
56
106
sending a request.
57
107
58
- :ivar id: Fully qualified resource Id for the resource. Ex -
108
+ :ivar id: Fully qualified resource ID for the resource. Ex -
59
109
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
60
110
:vartype id: str
61
111
:ivar name: The name of the resource
62
112
:vartype name: str
63
- :ivar type: The type of the resource. Ex-
64
- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
113
+ :ivar type: The type of the resource. E.g.
114
+ " Microsoft.Compute/virtualMachines" or " Microsoft.Storage/storageAccounts"
65
115
:vartype type: str
66
116
:ivar etag: Resource Etag.
67
117
:vartype etag: str
@@ -95,20 +145,21 @@ class CloudError(Model):
95
145
96
146
97
147
class TrackedResource (Resource ):
98
- """The resource model definition for a ARM tracked top level resource.
148
+ """The resource model definition for an Azure Resource Manager tracked top
149
+ level resource.
99
150
100
151
Variables are only populated by the server, and will be ignored when
101
152
sending a request.
102
153
103
154
All required parameters must be populated in order to send to Azure.
104
155
105
- :ivar id: Fully qualified resource Id for the resource. Ex -
156
+ :ivar id: Fully qualified resource ID for the resource. Ex -
106
157
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
107
158
:vartype id: str
108
159
:ivar name: The name of the resource
109
160
:vartype name: str
110
- :ivar type: The type of the resource. Ex-
111
- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
161
+ :ivar type: The type of the resource. E.g.
162
+ " Microsoft.Compute/virtualMachines" or " Microsoft.Storage/storageAccounts"
112
163
:vartype type: str
113
164
:param tags: Resource tags.
114
165
:type tags: dict[str, str]
@@ -145,13 +196,13 @@ class ConnectedCluster(TrackedResource):
145
196
146
197
All required parameters must be populated in order to send to Azure.
147
198
148
- :ivar id: Fully qualified resource Id for the resource. Ex -
199
+ :ivar id: Fully qualified resource ID for the resource. Ex -
149
200
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
150
201
:vartype id: str
151
202
:ivar name: The name of the resource
152
203
:vartype name: str
153
- :ivar type: The type of the resource. Ex-
154
- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
204
+ :ivar type: The type of the resource. E.g.
205
+ " Microsoft.Compute/virtualMachines" or " Microsoft.Storage/storageAccounts"
155
206
:vartype type: str
156
207
:param tags: Resource tags.
157
208
:type tags: dict[str, str]
@@ -164,7 +215,7 @@ class ConnectedCluster(TrackedResource):
164
215
certificate used by the agent to do the initial handshake to the backend
165
216
services in Azure.
166
217
:type agent_public_key_certificate: str
167
- :param aad_profile: Required.
218
+ :param aad_profile: Required. AAD profile of the connected cluster.
168
219
:type aad_profile:
169
220
~azure.mgmt.hybridkubernetes.models.ConnectedClusterAADProfile
170
221
:ivar kubernetes_version: The Kubernetes version of the connected cluster
@@ -176,8 +227,9 @@ class ConnectedCluster(TrackedResource):
176
227
:ivar agent_version: Version of the agent running on the connected cluster
177
228
resource
178
229
:vartype agent_version: str
179
- :param provisioning_state: Possible values include: 'Succeeded', 'Failed',
180
- 'Canceled', 'Provisioning', 'Updating', 'Deleting', 'Accepted'
230
+ :param provisioning_state: Provisioning state of the connected cluster
231
+ resource. Possible values include: 'Succeeded', 'Failed', 'Canceled',
232
+ 'Provisioning', 'Updating', 'Deleting', 'Accepted'
181
233
:type provisioning_state: str or
182
234
~azure.mgmt.hybridkubernetes.models.ProvisioningState
183
235
"""
@@ -222,7 +274,7 @@ def __init__(self, **kwargs):
222
274
223
275
224
276
class ConnectedClusterAADProfile (Model ):
225
- """ConnectedClusterAADProfile .
277
+ """AAD profile of the connected cluster .
226
278
227
279
All required parameters must be populated in order to send to Azure.
228
280
@@ -370,8 +422,36 @@ def __init__(self, **kwargs):
370
422
self .kubeconfigs = None
371
423
372
424
373
- class ErrorDetails (Model ):
374
- """The error response details containing error code and error message.
425
+ class ErrorAdditionalInfo (Model ):
426
+ """The resource management error additional info.
427
+
428
+ Variables are only populated by the server, and will be ignored when
429
+ sending a request.
430
+
431
+ :ivar type: The additional info type.
432
+ :vartype type: str
433
+ :ivar info: The additional info.
434
+ :vartype info: object
435
+ """
436
+
437
+ _validation = {
438
+ 'type' : {'readonly' : True },
439
+ 'info' : {'readonly' : True },
440
+ }
441
+
442
+ _attribute_map = {
443
+ 'type' : {'key' : 'type' , 'type' : 'str' },
444
+ 'info' : {'key' : 'info' , 'type' : 'object' },
445
+ }
446
+
447
+ def __init__ (self , ** kwargs ):
448
+ super (ErrorAdditionalInfo , self ).__init__ (** kwargs )
449
+ self .type = None
450
+ self .info = None
451
+
452
+
453
+ class ErrorDetail (Model ):
454
+ """The error detail.
375
455
376
456
Variables are only populated by the server, and will be ignored when
377
457
sending a request.
@@ -380,33 +460,53 @@ class ErrorDetails(Model):
380
460
:vartype code: str
381
461
:ivar message: The error message.
382
462
:vartype message: str
463
+ :ivar target: The error target.
464
+ :vartype target: str
465
+ :ivar details: The error details.
466
+ :vartype details: list[~azure.mgmt.hybridkubernetes.models.ErrorDetail]
467
+ :ivar additional_info: The error additional info.
468
+ :vartype additional_info:
469
+ list[~azure.mgmt.hybridkubernetes.models.ErrorAdditionalInfo]
383
470
"""
384
471
385
472
_validation = {
386
473
'code' : {'readonly' : True },
387
474
'message' : {'readonly' : True },
475
+ 'target' : {'readonly' : True },
476
+ 'details' : {'readonly' : True },
477
+ 'additional_info' : {'readonly' : True },
388
478
}
389
479
390
480
_attribute_map = {
391
481
'code' : {'key' : 'code' , 'type' : 'str' },
392
482
'message' : {'key' : 'message' , 'type' : 'str' },
483
+ 'target' : {'key' : 'target' , 'type' : 'str' },
484
+ 'details' : {'key' : 'details' , 'type' : '[ErrorDetail]' },
485
+ 'additional_info' : {'key' : 'additionalInfo' , 'type' : '[ErrorAdditionalInfo]' },
393
486
}
394
487
395
488
def __init__ (self , ** kwargs ):
396
- super (ErrorDetails , self ).__init__ (** kwargs )
489
+ super (ErrorDetail , self ).__init__ (** kwargs )
397
490
self .code = None
398
491
self .message = None
492
+ self .target = None
493
+ self .details = None
494
+ self .additional_info = None
399
495
400
496
401
497
class ErrorResponse (Model ):
402
- """The error response that indicates why an operation has failed.
498
+ """Error response.
499
+
500
+ Common error response for all Azure Resource Manager APIs to return error
501
+ details for failed operations. (This also follows the OData error response
502
+ format.).
403
503
404
- :param error:
405
- :type error: ~azure.mgmt.hybridkubernetes.models.ErrorDetails
504
+ :param error: The error object.
505
+ :type error: ~azure.mgmt.hybridkubernetes.models.ErrorDetail
406
506
"""
407
507
408
508
_attribute_map = {
409
- 'error' : {'key' : 'error' , 'type' : 'ErrorDetails ' },
509
+ 'error' : {'key' : 'error' , 'type' : 'ErrorDetail ' },
410
510
}
411
511
412
512
def __init__ (self , ** kwargs ):
@@ -484,19 +584,19 @@ def __init__(self, **kwargs):
484
584
485
585
486
586
class ProxyResource (Resource ):
487
- """The resource model definition for a ARM proxy resource. It will have
488
- everything other than required location and tags.
587
+ """The resource model definition for an Azure Resource Manager proxy resource.
588
+ It will have everything other than required location and tags.
489
589
490
590
Variables are only populated by the server, and will be ignored when
491
591
sending a request.
492
592
493
- :ivar id: Fully qualified resource Id for the resource. Ex -
593
+ :ivar id: Fully qualified resource ID for the resource. Ex -
494
594
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
495
595
:vartype id: str
496
596
:ivar name: The name of the resource
497
597
:vartype name: str
498
- :ivar type: The type of the resource. Ex-
499
- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
598
+ :ivar type: The type of the resource. E.g.
599
+ " Microsoft.Compute/virtualMachines" or " Microsoft.Storage/storageAccounts"
500
600
:vartype type: str
501
601
"""
502
602
0 commit comments