Skip to content

Commit

Permalink
Generated from 37a5a596a1d2468b7de0c42ccf501b805127d923
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Nov 9, 2020
1 parent d3eb32d commit 493ed93
Show file tree
Hide file tree
Showing 15 changed files with 1,593 additions and 93 deletions.
10 changes: 8 additions & 2 deletions sdk/keyvault/azure-mgmt-keyvault/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ For a more complete view of Azure libraries, see the [azure sdk python release](

# Usage

For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/?view=azure-python-preview)
on docs.microsoft.com.

To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)



For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/?view=azure-python-preview)
Code samples for this package can be found at [MyService Management](https://docs.microsoft.com/samples/azure-samples/azure-samples-python-management/?view=azure-python-preview) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


# Provide Feedback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,19 @@ def models(cls, api_version=DEFAULT_API_VERSION):
return models
raise ValueError("API version {} is not available".format(api_version))

@property
def keys(self):
"""Instance depends on the API version:
* 2019-09-01: :class:`KeysOperations<azure.mgmt.keyvault.v2019_09_01.operations.KeysOperations>`
"""
api_version = self._get_api_version('keys')
if api_version == '2019-09-01':
from .v2019_09_01.operations import KeysOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'keys'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def managed_hsms(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,19 @@ def models(cls, api_version=DEFAULT_API_VERSION):
return models
raise ValueError("API version {} is not available".format(api_version))

@property
def keys(self):
"""Instance depends on the API version:
* 2019-09-01: :class:`KeysOperations<azure.mgmt.keyvault.v2019_09_01.aio.operations.KeysOperations>`
"""
api_version = self._get_api_version('keys')
if api_version == '2019-09-01':
from ..v2019_09_01.aio.operations import KeysOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'keys'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def managed_hsms(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import Operations
from .operations import KeysOperations
from . import models


Expand All @@ -36,6 +37,8 @@ class KeyVaultManagementClient(object):
:vartype private_link_resources: azure.mgmt.keyvault.v2019_09_01.operations.PrivateLinkResourcesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.keyvault.v2019_09_01.operations.Operations
:ivar keys: KeysOperations operations
:vartype keys: azure.mgmt.keyvault.v2019_09_01.operations.KeysOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -69,6 +72,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.keys = KeysOperations(
self._client, self._config, self._serialize, self._deserialize)

def close(self):
# type: () -> None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"vaults": "VaultsOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
"private_link_resources": "PrivateLinkResourcesOperations",
"operations": "Operations"
"operations": "Operations",
"keys": "KeysOperations"
},
"operation_mixins": {
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import Operations
from .operations import KeysOperations
from .. import models


Expand All @@ -34,6 +35,8 @@ class KeyVaultManagementClient(object):
:vartype private_link_resources: azure.mgmt.keyvault.v2019_09_01.aio.operations.PrivateLinkResourcesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.keyvault.v2019_09_01.aio.operations.Operations
:ivar keys: KeysOperations operations
:vartype keys: azure.mgmt.keyvault.v2019_09_01.aio.operations.KeysOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -66,6 +69,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.keys = KeysOperations(
self._client, self._config, self._serialize, self._deserialize)

async def close(self) -> None:
await self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._operations import Operations
from ._keys_operations import KeysOperations

__all__ = [
'VaultsOperations',
'PrivateEndpointConnectionsOperations',
'PrivateLinkResourcesOperations',
'Operations',
'KeysOperations',
]
Loading

0 comments on commit 493ed93

Please sign in to comment.