1313from msrest .exceptions import HttpOperationError
1414
1515
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+
1665class Resource (Model ):
17- """Resource.
66+ """Common fields that are returned in the response for all Azure Resource
67+ Manager resources.
1868
1969 Variables are only populated by the server, and will be ignored when
2070 sending a request.
2171
22- :ivar id: Fully qualified resource Id for the resource. Ex -
72+ :ivar id: Fully qualified resource ID for the resource. Ex -
2373 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
2474 :vartype id: str
2575 :ivar name: The name of the resource
2676 :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"
2979 :vartype type: str
3080 """
3181
@@ -49,19 +99,19 @@ def __init__(self, **kwargs):
4999
50100
51101class 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.
54104
55105 Variables are only populated by the server, and will be ignored when
56106 sending a request.
57107
58- :ivar id: Fully qualified resource Id for the resource. Ex -
108+ :ivar id: Fully qualified resource ID for the resource. Ex -
59109 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
60110 :vartype id: str
61111 :ivar name: The name of the resource
62112 :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"
65115 :vartype type: str
66116 :ivar etag: Resource Etag.
67117 :vartype etag: str
@@ -95,20 +145,21 @@ class CloudError(Model):
95145
96146
97147class 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.
99150
100151 Variables are only populated by the server, and will be ignored when
101152 sending a request.
102153
103154 All required parameters must be populated in order to send to Azure.
104155
105- :ivar id: Fully qualified resource Id for the resource. Ex -
156+ :ivar id: Fully qualified resource ID for the resource. Ex -
106157 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
107158 :vartype id: str
108159 :ivar name: The name of the resource
109160 :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"
112163 :vartype type: str
113164 :param tags: Resource tags.
114165 :type tags: dict[str, str]
@@ -145,13 +196,13 @@ class ConnectedCluster(TrackedResource):
145196
146197 All required parameters must be populated in order to send to Azure.
147198
148- :ivar id: Fully qualified resource Id for the resource. Ex -
199+ :ivar id: Fully qualified resource ID for the resource. Ex -
149200 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
150201 :vartype id: str
151202 :ivar name: The name of the resource
152203 :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"
155206 :vartype type: str
156207 :param tags: Resource tags.
157208 :type tags: dict[str, str]
@@ -164,7 +215,7 @@ class ConnectedCluster(TrackedResource):
164215 certificate used by the agent to do the initial handshake to the backend
165216 services in Azure.
166217 :type agent_public_key_certificate: str
167- :param aad_profile: Required.
218+ :param aad_profile: Required. AAD profile of the connected cluster.
168219 :type aad_profile:
169220 ~azure.mgmt.hybridkubernetes.models.ConnectedClusterAADProfile
170221 :ivar kubernetes_version: The Kubernetes version of the connected cluster
@@ -176,8 +227,9 @@ class ConnectedCluster(TrackedResource):
176227 :ivar agent_version: Version of the agent running on the connected cluster
177228 resource
178229 :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'
181233 :type provisioning_state: str or
182234 ~azure.mgmt.hybridkubernetes.models.ProvisioningState
183235 """
@@ -222,7 +274,7 @@ def __init__(self, **kwargs):
222274
223275
224276class ConnectedClusterAADProfile (Model ):
225- """ConnectedClusterAADProfile .
277+ """AAD profile of the connected cluster .
226278
227279 All required parameters must be populated in order to send to Azure.
228280
@@ -370,8 +422,36 @@ def __init__(self, **kwargs):
370422 self .kubeconfigs = None
371423
372424
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.
375455
376456 Variables are only populated by the server, and will be ignored when
377457 sending a request.
@@ -380,33 +460,53 @@ class ErrorDetails(Model):
380460 :vartype code: str
381461 :ivar message: The error message.
382462 :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]
383470 """
384471
385472 _validation = {
386473 'code' : {'readonly' : True },
387474 'message' : {'readonly' : True },
475+ 'target' : {'readonly' : True },
476+ 'details' : {'readonly' : True },
477+ 'additional_info' : {'readonly' : True },
388478 }
389479
390480 _attribute_map = {
391481 'code' : {'key' : 'code' , 'type' : 'str' },
392482 'message' : {'key' : 'message' , 'type' : 'str' },
483+ 'target' : {'key' : 'target' , 'type' : 'str' },
484+ 'details' : {'key' : 'details' , 'type' : '[ErrorDetail]' },
485+ 'additional_info' : {'key' : 'additionalInfo' , 'type' : '[ErrorAdditionalInfo]' },
393486 }
394487
395488 def __init__ (self , ** kwargs ):
396- super (ErrorDetails , self ).__init__ (** kwargs )
489+ super (ErrorDetail , self ).__init__ (** kwargs )
397490 self .code = None
398491 self .message = None
492+ self .target = None
493+ self .details = None
494+ self .additional_info = None
399495
400496
401497class 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.).
403503
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
406506 """
407507
408508 _attribute_map = {
409- 'error' : {'key' : 'error' , 'type' : 'ErrorDetails ' },
509+ 'error' : {'key' : 'error' , 'type' : 'ErrorDetail ' },
410510 }
411511
412512 def __init__ (self , ** kwargs ):
@@ -484,19 +584,19 @@ def __init__(self, **kwargs):
484584
485585
486586class 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.
489589
490590 Variables are only populated by the server, and will be ignored when
491591 sending a request.
492592
493- :ivar id: Fully qualified resource Id for the resource. Ex -
593+ :ivar id: Fully qualified resource ID for the resource. Ex -
494594 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
495595 :vartype id: str
496596 :ivar name: The name of the resource
497597 :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"
500600 :vartype type: str
501601 """
502602
0 commit comments