Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions sdk/keyvault/azure-keyvault-keys/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace azure.keyvault.keys
class azure.keyvault.keys.ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
V2016_10_01 = "2016-10-01"
V2025_07_01 = "2025-07-01"
V2026_01_01_PREVIEW = "2026-01-01-preview"
V7_0 = "7.0"
V7_1 = "7.1"
V7_2 = "7.2"
Expand Down Expand Up @@ -36,6 +37,23 @@ namespace azure.keyvault.keys
def __repr__(self) -> str: ...


class azure.keyvault.keys.ExternalKey:
# A key that is managed outside Azure Key Vault.
# External keys reference key material stored by an external key manager,
# allowing Key Vault operations to identify and use that external key by id.
# A key that is managed outside Azure Key Vault.
# External keys reference key material stored by an external key manager,
# allowing Key Vault operations to identify and use that external key by id.

def __init__(
self,
*,
id: str
) -> None: ...

def __repr__(self) -> str: ...


class azure.keyvault.keys.JsonWebKey:

def __init__(
Expand Down Expand Up @@ -132,6 +150,20 @@ namespace azure.keyvault.keys
**kwargs: Any
) -> KeyVaultKey: ...

@distributed_trace
def create_external_key(
self,
name: str,
external_key: ExternalKey,
*,
enabled: Optional[bool] = ...,
expires_on: Optional[datetime] = ...,
not_before: Optional[datetime] = ...,
release_policy: Optional[KeyReleasePolicy] = ...,
tags: Optional[Dict[str, str]] = ...,
**kwargs: Any
) -> KeyVaultKey: ...

@distributed_trace
def create_key(
self,
Expand Down Expand Up @@ -359,8 +391,10 @@ namespace azure.keyvault.keys
property enabled: Optional[bool] # Read-only
property expires_on: Optional[datetime] # Read-only
property exportable: Optional[bool] # Read-only
property external_key: Optional[ExternalKey] # Read-only
property hsm_platform: Optional[str] # Read-only
property id: str # Read-only
property key_size: Optional[int] # Read-only
property managed: Optional[bool] # Read-only
property name: str # Read-only
property not_before: Optional[datetime] # Read-only
Expand Down Expand Up @@ -508,6 +542,20 @@ namespace azure.keyvault.keys.aio
**kwargs: Any
) -> KeyVaultKey: ...

@distributed_trace_async
async def create_external_key(
self,
name: str,
external_key: ExternalKey,
*,
enabled: Optional[bool] = ...,
expires_on: Optional[datetime] = ...,
not_before: Optional[datetime] = ...,
release_policy: Optional[KeyReleasePolicy] = ...,
tags: Optional[Dict[str, str]] = ...,
**kwargs: Any
) -> KeyVaultKey: ...

@distributed_trace_async
async def create_key(
self,
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/azure-keyvault-keys/API.metadata.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiMdSha256: 81afb80fc423bf72aca4bf217228bd93c2b2215c37ae30f15d4c2ec0690922a2
apiMdSha256: 62270a2145e6cec059c90c07ca0ec87d665bd6c0d0f6d5fff967d1832ac363aa
parserVersion: 0.3.28
pythonVersion: 3.11.4