-
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.
[AutoPR keyvault/resource-manager] KV multiapi Readme (#2928)
* Generated from dc6eeefac40f35620e785bd22e81c8dc97984c79 KV multiapi Readme * Fix multiapi client
- Loading branch information
1 parent
3e7a525
commit 912fd07
Showing
107 changed files
with
7,047 additions
and
6 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
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', | ||
] |
54 changes: 54 additions & 0 deletions
54
azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/models/access_policy_entry.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,54 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class AccessPolicyEntry(Model): | ||
"""An identity that have access to the key vault. All identities in the array | ||
must use the same tenant ID as the key vault's tenant ID. | ||
All required parameters must be populated in order to send to Azure. | ||
:param tenant_id: Required. The Azure Active Directory tenant ID that | ||
should be used for authenticating requests to the key vault. | ||
:type tenant_id: str | ||
:param object_id: Required. The object ID of a user, service principal or | ||
security group in the Azure Active Directory tenant for the vault. The | ||
object ID must be unique for the list of access policies. | ||
:type object_id: str | ||
:param application_id: Application ID of the client making request on | ||
behalf of a principal | ||
:type application_id: str | ||
:param permissions: Required. Permissions the identity has for keys, | ||
secrets and certificates. | ||
:type permissions: ~azure.mgmt.keyvault.v2016_10_01.models.Permissions | ||
""" | ||
|
||
_validation = { | ||
'tenant_id': {'required': True}, | ||
'object_id': {'required': True}, | ||
'permissions': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'tenant_id': {'key': 'tenantId', 'type': 'str'}, | ||
'object_id': {'key': 'objectId', 'type': 'str'}, | ||
'application_id': {'key': 'applicationId', 'type': 'str'}, | ||
'permissions': {'key': 'permissions', 'type': 'Permissions'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AccessPolicyEntry, self).__init__(**kwargs) | ||
self.tenant_id = kwargs.get('tenant_id', None) | ||
self.object_id = kwargs.get('object_id', None) | ||
self.application_id = kwargs.get('application_id', None) | ||
self.permissions = kwargs.get('permissions', None) |
54 changes: 54 additions & 0 deletions
54
azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/models/access_policy_entry_py3.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,54 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class AccessPolicyEntry(Model): | ||
"""An identity that have access to the key vault. All identities in the array | ||
must use the same tenant ID as the key vault's tenant ID. | ||
All required parameters must be populated in order to send to Azure. | ||
:param tenant_id: Required. The Azure Active Directory tenant ID that | ||
should be used for authenticating requests to the key vault. | ||
:type tenant_id: str | ||
:param object_id: Required. The object ID of a user, service principal or | ||
security group in the Azure Active Directory tenant for the vault. The | ||
object ID must be unique for the list of access policies. | ||
:type object_id: str | ||
:param application_id: Application ID of the client making request on | ||
behalf of a principal | ||
:type application_id: str | ||
:param permissions: Required. Permissions the identity has for keys, | ||
secrets and certificates. | ||
:type permissions: ~azure.mgmt.keyvault.v2016_10_01.models.Permissions | ||
""" | ||
|
||
_validation = { | ||
'tenant_id': {'required': True}, | ||
'object_id': {'required': True}, | ||
'permissions': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'tenant_id': {'key': 'tenantId', 'type': 'str'}, | ||
'object_id': {'key': 'objectId', 'type': 'str'}, | ||
'application_id': {'key': 'applicationId', 'type': 'str'}, | ||
'permissions': {'key': 'permissions', 'type': 'Permissions'}, | ||
} | ||
|
||
def __init__(self, *, tenant_id: str, object_id: str, permissions, application_id: str=None, **kwargs) -> None: | ||
super(AccessPolicyEntry, self).__init__(**kwargs) | ||
self.tenant_id = tenant_id | ||
self.object_id = object_id | ||
self.application_id = application_id | ||
self.permissions = permissions |
Oops, something went wrong.