Skip to content

Commit

Permalink
Generated from f63047ebcbb4a32beaebb72e75d813d1300ac2f9
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Oct 12, 2020
1 parent 380ae62 commit 85d91a7
Show file tree
Hide file tree
Showing 5 changed files with 267 additions and 49 deletions.
7 changes: 7 additions & 0 deletions sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ This is the Microsoft Azure HybridKubernetes Management Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


# Usage

For code examples, see [HybridKubernetes Management](https://docs.microsoft.com/python/api/overview/azure/hybrid-kubernetes)
on docs.microsoft.com.


# Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,36 @@
# --------------------------------------------------------------------------

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 ErrorResponse, ErrorResponseException
from ._models_py3 import ErrorResponseError
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 ErrorResponse, ErrorResponseException
from ._models import ErrorResponseError
from ._models import Operation
from ._models import OperationDisplay
from ._models import ProxyResource
Expand All @@ -47,15 +53,18 @@
)

__all__ = [
'AuthenticationDetails',
'AuthenticationDetailsValue',
'AzureEntityResource',
'ConnectedCluster',
'ConnectedClusterAADProfile',
'ConnectedClusterIdentity',
'ConnectedClusterPatch',
'CredentialResult',
'CredentialResults',
'ErrorDetails',
'ErrorAdditionalInfo',
'ErrorResponse', 'ErrorResponseException',
'ErrorResponseError',
'Operation',
'OperationDisplay',
'ProxyResource',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,57 @@
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.
"""The resource model definition for a ARM tracked top level resource.
Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -164,7 +213,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 +225,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 +272,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,43 +420,43 @@ 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 code: The error code.
:vartype code: str
:ivar message: The error message.
:vartype message: str
:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
:vartype info: object
"""

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

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

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


class ErrorResponse(Model):
"""The error response that indicates why an operation has failed.
"""The resource management error response.
:param error:
:type error: ~azure.mgmt.hybridkubernetes.models.ErrorDetails
:param error: The error object.
:type error: ~azure.mgmt.hybridkubernetes.models.ErrorResponseError
"""

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

def __init__(self, **kwargs):
Expand All @@ -426,6 +476,50 @@ def __init__(self, deserialize, response, *args):
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)


class ErrorResponseError(Model):
"""The error object.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar code: The error code.
: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.ErrorResponse]
: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': '[ErrorResponse]'},
'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'},
}

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


class Operation(Model):
"""The Connected cluster API operation.
Expand Down
Loading

0 comments on commit 85d91a7

Please sign in to comment.