Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,35 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import AuthenticationDetails
from ._models_py3 import AuthenticationDetailsValue
from ._models_py3 import AzureEntityResource
from ._models_py3 import ConnectedCluster
from ._models_py3 import ConnectedClusterAADProfile
from ._models_py3 import ConnectedClusterIdentity
from ._models_py3 import ConnectedClusterPatch
from ._models_py3 import CredentialResult
from ._models_py3 import CredentialResults
from ._models_py3 import ErrorDetails
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import ProxyResource
from ._models_py3 import Resource
from ._models_py3 import TrackedResource
except (SyntaxError, ImportError):
from ._models import AuthenticationDetails
from ._models import AuthenticationDetailsValue
from ._models import AzureEntityResource
from ._models import ConnectedCluster
from ._models import ConnectedClusterAADProfile
from ._models import ConnectedClusterIdentity
from ._models import ConnectedClusterPatch
from ._models import CredentialResult
from ._models import CredentialResults
from ._models import ErrorDetails
from ._models import ErrorAdditionalInfo
from ._models import ErrorDetail
from ._models import ErrorResponse, ErrorResponseException
from ._models import Operation
from ._models import OperationDisplay
Expand All @@ -47,14 +53,17 @@
)

__all__ = [
'AuthenticationDetails',
'AuthenticationDetailsValue',
'AzureEntityResource',
'ConnectedCluster',
'ConnectedClusterAADProfile',
'ConnectedClusterIdentity',
'ConnectedClusterPatch',
'CredentialResult',
'CredentialResults',
'ErrorDetails',
'ErrorAdditionalInfo',
'ErrorDetail',
'ErrorResponse', 'ErrorResponseException',
'Operation',
'OperationDisplay',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,69 @@
from msrest.exceptions import HttpOperationError


class AuthenticationDetails(Model):
"""Authentication details of the user.

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 authentication_method: Required. The mode of client authentication.
Default value: "Token" .
:vartype authentication_method: str
:param value: Required. Authentication token value.
:type value:
~azure.mgmt.hybridkubernetes.models.AuthenticationDetailsValue
"""

_validation = {
'authentication_method': {'required': True, 'constant': True},
'value': {'required': True},
}

_attribute_map = {
'authentication_method': {'key': 'authenticationMethod', 'type': 'str'},
'value': {'key': 'value', 'type': 'AuthenticationDetailsValue'},
}

authentication_method = "Token"

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


class AuthenticationDetailsValue(Model):
"""Authentication token value.

:param token: Authentication token.
:type token: str
"""

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

def __init__(self, **kwargs):
super(AuthenticationDetailsValue, self).__init__(**kwargs)
self.token = kwargs.get('token', None)


class Resource(Model):
"""Resource.
"""Common fields that are returned in the response for all Azure Resource
Manager resources.

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

:ivar id: Fully qualified resource Id for the resource. Ex -
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:ivar type: The type of the resource. E.g.
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
:vartype type: str
"""

Expand All @@ -49,19 +99,19 @@ def __init__(self, **kwargs):


class AzureEntityResource(Resource):
"""The resource model definition for a Azure Resource Manager resource with an
etag.
"""The resource model definition for an Azure Resource Manager resource with
an etag.

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

:ivar id: Fully qualified resource Id for the resource. Ex -
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:ivar type: The type of the resource. E.g.
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
:vartype type: str
:ivar etag: Resource Etag.
:vartype etag: str
Expand Down Expand Up @@ -95,20 +145,21 @@ class CloudError(Model):


class TrackedResource(Resource):
"""The resource model definition for a ARM tracked top level resource.
"""The resource model definition for an Azure Resource Manager tracked top
level 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: Fully qualified resource Id for the resource. Ex -
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:ivar type: The type of the resource. E.g.
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
Expand Down Expand Up @@ -145,13 +196,13 @@ class ConnectedCluster(TrackedResource):

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

:ivar id: Fully qualified resource Id for the resource. Ex -
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:ivar type: The type of the resource. E.g.
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
:vartype type: str
:param tags: Resource tags.
:type tags: dict[str, str]
Expand All @@ -164,7 +215,7 @@ class ConnectedCluster(TrackedResource):
certificate used by the agent to do the initial handshake to the backend
services in Azure.
:type agent_public_key_certificate: str
:param aad_profile: Required.
:param aad_profile: Required. AAD profile of the connected cluster.
:type aad_profile:
~azure.mgmt.hybridkubernetes.models.ConnectedClusterAADProfile
:ivar kubernetes_version: The Kubernetes version of the connected cluster
Expand All @@ -176,8 +227,9 @@ class ConnectedCluster(TrackedResource):
:ivar agent_version: Version of the agent running on the connected cluster
resource
:vartype agent_version: str
:param provisioning_state: Possible values include: 'Succeeded', 'Failed',
'Canceled', 'Provisioning', 'Updating', 'Deleting', 'Accepted'
:param provisioning_state: Provisioning state of the connected cluster
resource. Possible values include: 'Succeeded', 'Failed', 'Canceled',
'Provisioning', 'Updating', 'Deleting', 'Accepted'
:type provisioning_state: str or
~azure.mgmt.hybridkubernetes.models.ProvisioningState
"""
Expand Down Expand Up @@ -222,7 +274,7 @@ def __init__(self, **kwargs):


class ConnectedClusterAADProfile(Model):
"""ConnectedClusterAADProfile.
"""AAD profile of the connected cluster.

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

Expand Down Expand Up @@ -370,8 +422,36 @@ def __init__(self, **kwargs):
self.kubeconfigs = None


class ErrorDetails(Model):
"""The error response details containing error code and error message.
class ErrorAdditionalInfo(Model):
"""The resource management error additional info.

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

:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
:vartype info: object
"""

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

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'info': {'key': 'info', 'type': 'object'},
}

def __init__(self, **kwargs):
super(ErrorAdditionalInfo, self).__init__(**kwargs)
self.type = None
self.info = None


class ErrorDetail(Model):
"""The error detail.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand All @@ -380,33 +460,53 @@ class ErrorDetails(Model):
:vartype code: str
:ivar message: The error message.
:vartype message: str
:ivar target: The error target.
:vartype target: str
:ivar details: The error details.
:vartype details: list[~azure.mgmt.hybridkubernetes.models.ErrorDetail]
:ivar additional_info: The error additional info.
:vartype additional_info:
list[~azure.mgmt.hybridkubernetes.models.ErrorAdditionalInfo]
"""

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

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': '[ErrorDetail]'},
'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'},
}

def __init__(self, **kwargs):
super(ErrorDetails, self).__init__(**kwargs)
super(ErrorDetail, self).__init__(**kwargs)
self.code = None
self.message = None
self.target = None
self.details = None
self.additional_info = None


class ErrorResponse(Model):
"""The error response that indicates why an operation has failed.
"""Error response.

Common error response for all Azure Resource Manager APIs to return error
details for failed operations. (This also follows the OData error response
format.).

:param error:
:type error: ~azure.mgmt.hybridkubernetes.models.ErrorDetails
:param error: The error object.
:type error: ~azure.mgmt.hybridkubernetes.models.ErrorDetail
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ErrorDetails'},
'error': {'key': 'error', 'type': 'ErrorDetail'},
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -484,19 +584,19 @@ def __init__(self, **kwargs):


class ProxyResource(Resource):
"""The resource model definition for a ARM proxy resource. It will have
everything other than required location and tags.
"""The resource model definition for an Azure Resource Manager proxy resource.
It will have everything other than required location and tags.

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

:ivar id: Fully qualified resource Id for the resource. Ex -
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:ivar type: The type of the resource. E.g.
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
:vartype type: str
"""

Expand Down
Loading