-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* KeyVault multiapi template * [AutoPR keyvault/resource-manager] KV multiapi Readme (#2928) * Generated from dc6eeefac40f35620e785bd22e81c8dc97984c79 KV multiapi Readme * Fix multiapi client * Generated from dc6eeefac40f35620e785bd22e81c8dc97984c79 (#3014) KV multiapi Readme
- Loading branch information
Showing
110 changed files
with
3,648 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# -------------------------------------------------------------------------- | ||
import warnings | ||
|
||
from .v2018_02_14.models import * |
18 changes: 18 additions & 0 deletions
18
azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .key_vault_management_client import KeyVaultManagementClient | ||
from .version import VERSION | ||
|
||
__all__ = ['KeyVaultManagementClient'] | ||
|
||
__version__ = VERSION | ||
|
90 changes: 90 additions & 0 deletions
90
azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/key_vault_management_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
from msrestazure import AzureConfiguration | ||
from .version import VERSION | ||
from .operations.vaults_operations import VaultsOperations | ||
from .operations.operations import Operations | ||
from . import models | ||
|
||
|
||
class KeyVaultManagementClientConfiguration(AzureConfiguration): | ||
"""Configuration for KeyVaultManagementClient | ||
Note that all parameters used to create this instance are saved as instance | ||
attributes. | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: Subscription credentials which uniquely identify | ||
Microsoft Azure subscription. The subscription ID forms part of the URI | ||
for every service call. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
if credentials is None: | ||
raise ValueError("Parameter 'credentials' must not be None.") | ||
if subscription_id is None: | ||
raise ValueError("Parameter 'subscription_id' must not be None.") | ||
if not base_url: | ||
base_url = 'https://management.azure.com' | ||
|
||
super(KeyVaultManagementClientConfiguration, self).__init__(base_url) | ||
|
||
self.add_user_agent('azure-mgmt-keyvault/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id | ||
|
||
|
||
class KeyVaultManagementClient(SDKClient): | ||
"""The Azure management API provides a RESTful set of web services that interact with Azure Key Vault. | ||
:ivar config: Configuration for client. | ||
:vartype config: KeyVaultManagementClientConfiguration | ||
:ivar vaults: Vaults operations | ||
:vartype vaults: azure.mgmt.keyvault.v2016_10_01.operations.VaultsOperations | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.keyvault.v2016_10_01.operations.Operations | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: Subscription credentials which uniquely identify | ||
Microsoft Azure subscription. The subscription ID forms part of the URI | ||
for every service call. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
self.config = KeyVaultManagementClientConfiguration(credentials, subscription_id, base_url) | ||
super(KeyVaultManagementClient, self).__init__(self.config.credentials, self.config) | ||
|
||
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} | ||
self.api_version = '2016-10-01' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.vaults = VaultsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) |
99 changes: 99 additions & 0 deletions
99
azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
try: | ||
from .sku_py3 import Sku | ||
from .permissions_py3 import Permissions | ||
from .access_policy_entry_py3 import AccessPolicyEntry | ||
from .vault_properties_py3 import VaultProperties | ||
from .vault_patch_properties_py3 import VaultPatchProperties | ||
from .vault_access_policy_properties_py3 import VaultAccessPolicyProperties | ||
from .deleted_vault_properties_py3 import DeletedVaultProperties | ||
from .vault_create_or_update_parameters_py3 import VaultCreateOrUpdateParameters | ||
from .vault_patch_parameters_py3 import VaultPatchParameters | ||
from .vault_access_policy_parameters_py3 import VaultAccessPolicyParameters | ||
from .vault_py3 import Vault | ||
from .deleted_vault_py3 import DeletedVault | ||
from .resource_py3 import Resource | ||
from .vault_check_name_availability_parameters_py3 import VaultCheckNameAvailabilityParameters | ||
from .check_name_availability_result_py3 import CheckNameAvailabilityResult | ||
from .operation_display_py3 import OperationDisplay | ||
from .log_specification_py3 import LogSpecification | ||
from .service_specification_py3 import ServiceSpecification | ||
from .operation_py3 import Operation | ||
except (SyntaxError, ImportError): | ||
from .sku import Sku | ||
from .permissions import Permissions | ||
from .access_policy_entry import AccessPolicyEntry | ||
from .vault_properties import VaultProperties | ||
from .vault_patch_properties import VaultPatchProperties | ||
from .vault_access_policy_properties import VaultAccessPolicyProperties | ||
from .deleted_vault_properties import DeletedVaultProperties | ||
from .vault_create_or_update_parameters import VaultCreateOrUpdateParameters | ||
from .vault_patch_parameters import VaultPatchParameters | ||
from .vault_access_policy_parameters import VaultAccessPolicyParameters | ||
from .vault import Vault | ||
from .deleted_vault import DeletedVault | ||
from .resource import Resource | ||
from .vault_check_name_availability_parameters import VaultCheckNameAvailabilityParameters | ||
from .check_name_availability_result import CheckNameAvailabilityResult | ||
from .operation_display import OperationDisplay | ||
from .log_specification import LogSpecification | ||
from .service_specification import ServiceSpecification | ||
from .operation import Operation | ||
from .vault_paged import VaultPaged | ||
from .deleted_vault_paged import DeletedVaultPaged | ||
from .resource_paged import ResourcePaged | ||
from .operation_paged import OperationPaged | ||
from .key_vault_management_client_enums import ( | ||
SkuName, | ||
KeyPermissions, | ||
SecretPermissions, | ||
CertificatePermissions, | ||
StoragePermissions, | ||
CreateMode, | ||
Reason, | ||
AccessPolicyUpdateKind, | ||
) | ||
|
||
__all__ = [ | ||
'Sku', | ||
'Permissions', | ||
'AccessPolicyEntry', | ||
'VaultProperties', | ||
'VaultPatchProperties', | ||
'VaultAccessPolicyProperties', | ||
'DeletedVaultProperties', | ||
'VaultCreateOrUpdateParameters', | ||
'VaultPatchParameters', | ||
'VaultAccessPolicyParameters', | ||
'Vault', | ||
'DeletedVault', | ||
'Resource', | ||
'VaultCheckNameAvailabilityParameters', | ||
'CheckNameAvailabilityResult', | ||
'OperationDisplay', | ||
'LogSpecification', | ||
'ServiceSpecification', | ||
'Operation', | ||
'VaultPaged', | ||
'DeletedVaultPaged', | ||
'ResourcePaged', | ||
'OperationPaged', | ||
'SkuName', | ||
'KeyPermissions', | ||
'SecretPermissions', | ||
'CertificatePermissions', | ||
'StoragePermissions', | ||
'CreateMode', | ||
'Reason', | ||
'AccessPolicyUpdateKind', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.