Skip to content

Commit 4e48ee5

Browse files
dw511214992SDK AutomationAutorestCIZim Kalinowski
authored
Release azure mgmt hybridkubernetes (#11483)
* Generated from 3e3c09cb2ebcd9b902007bc0a344c3b71a10afe8 updated name * initial release * initial release * Packaging update of azure-mgmt-hybridkubernetes * Update version.py Co-authored-by: SDK Automation <[email protected]> Co-authored-by: Azure SDK Bot <[email protected]> Co-authored-by: Zim Kalinowski <[email protected]>
1 parent a5e1447 commit 4e48ee5

22 files changed

+2177
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 0.1.0 (2020-05-18)
4+
5+
* Initial Release
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
recursive-include tests *.py *.yaml
2+
include *.md
3+
include azure/__init__.py
4+
include azure/mgmt/__init__.py
5+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure HybridKubernetes Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)
6+
7+
8+
# Usage
9+
10+
For code examples, see [HybridKubernetes Management](https://docs.microsoft.com/python/api/overview/azure/hybrid-kubernetes)
11+
on docs.microsoft.com.
12+
13+
14+
# Provide Feedback
15+
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
18+
section of the project.
19+
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-hybridkubernetes%2FREADME.png)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import ConnectedKubernetesClientConfiguration
13+
from ._connected_kubernetes_client import ConnectedKubernetesClient
14+
__all__ = ['ConnectedKubernetesClient', 'ConnectedKubernetesClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class ConnectedKubernetesClientConfiguration(AzureConfiguration):
17+
"""Configuration for ConnectedKubernetesClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The ID of the target subscription.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(ConnectedKubernetesClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-hybridkubernetes/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import ConnectedKubernetesClientConfiguration
16+
from .operations import ConnectedClusterOperations
17+
from .operations import Operations
18+
from . import models
19+
20+
21+
class ConnectedKubernetesClient(SDKClient):
22+
"""Azure Connected Cluster Resource Provider API for adopting any Kubernetes Cluster
23+
24+
:ivar config: Configuration for client.
25+
:vartype config: ConnectedKubernetesClientConfiguration
26+
27+
:ivar connected_cluster: ConnectedCluster operations
28+
:vartype connected_cluster: azure.mgmt.hybridkubernetes.operations.ConnectedClusterOperations
29+
:ivar operations: Operations operations
30+
:vartype operations: azure.mgmt.hybridkubernetes.operations.Operations
31+
32+
:param credentials: Credentials needed for the client to connect to Azure.
33+
:type credentials: :mod:`A msrestazure Credentials
34+
object<msrestazure.azure_active_directory>`
35+
:param subscription_id: The ID of the target subscription.
36+
:type subscription_id: str
37+
:param str base_url: Service URL
38+
"""
39+
40+
def __init__(
41+
self, credentials, subscription_id, base_url=None):
42+
43+
self.config = ConnectedKubernetesClientConfiguration(credentials, subscription_id, base_url)
44+
super(ConnectedKubernetesClient, self).__init__(self.config.credentials, self.config)
45+
46+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
47+
self.api_version = '2020-01-01-preview'
48+
self._serialize = Serializer(client_models)
49+
self._deserialize = Deserializer(client_models)
50+
51+
self.connected_cluster = ConnectedClusterOperations(
52+
self._client, self.config, self._serialize, self._deserialize)
53+
self.operations = Operations(
54+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from ._models_py3 import AzureEntityResource
14+
from ._models_py3 import ConnectedCluster
15+
from ._models_py3 import ConnectedClusterAADProfile
16+
from ._models_py3 import ConnectedClusterIdentity
17+
from ._models_py3 import ConnectedClusterPatch
18+
from ._models_py3 import CredentialResult
19+
from ._models_py3 import CredentialResults
20+
from ._models_py3 import ErrorDetails
21+
from ._models_py3 import ErrorResponse, ErrorResponseException
22+
from ._models_py3 import Operation
23+
from ._models_py3 import OperationDisplay
24+
from ._models_py3 import ProxyResource
25+
from ._models_py3 import Resource
26+
from ._models_py3 import TrackedResource
27+
except (SyntaxError, ImportError):
28+
from ._models import AzureEntityResource
29+
from ._models import ConnectedCluster
30+
from ._models import ConnectedClusterAADProfile
31+
from ._models import ConnectedClusterIdentity
32+
from ._models import ConnectedClusterPatch
33+
from ._models import CredentialResult
34+
from ._models import CredentialResults
35+
from ._models import ErrorDetails
36+
from ._models import ErrorResponse, ErrorResponseException
37+
from ._models import Operation
38+
from ._models import OperationDisplay
39+
from ._models import ProxyResource
40+
from ._models import Resource
41+
from ._models import TrackedResource
42+
from ._paged_models import ConnectedClusterPaged
43+
from ._paged_models import OperationPaged
44+
from ._connected_kubernetes_client_enums import (
45+
ResourceIdentityType,
46+
ProvisioningState,
47+
)
48+
49+
__all__ = [
50+
'AzureEntityResource',
51+
'ConnectedCluster',
52+
'ConnectedClusterAADProfile',
53+
'ConnectedClusterIdentity',
54+
'ConnectedClusterPatch',
55+
'CredentialResult',
56+
'CredentialResults',
57+
'ErrorDetails',
58+
'ErrorResponse', 'ErrorResponseException',
59+
'Operation',
60+
'OperationDisplay',
61+
'ProxyResource',
62+
'Resource',
63+
'TrackedResource',
64+
'ConnectedClusterPaged',
65+
'OperationPaged',
66+
'ResourceIdentityType',
67+
'ProvisioningState',
68+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from enum import Enum
13+
14+
15+
class ResourceIdentityType(str, Enum):
16+
17+
none = "None"
18+
system_assigned = "SystemAssigned"
19+
20+
21+
class ProvisioningState(str, Enum):
22+
23+
succeeded = "Succeeded"
24+
failed = "Failed"
25+
canceled = "Canceled"
26+
provisioning = "Provisioning"
27+
updating = "Updating"
28+
deleting = "Deleting"
29+
accepted = "Accepted"

0 commit comments

Comments
 (0)