Skip to content

Commit 94dff33

Browse files
authored
[Key Vault] Fix managed property in keys and secrets (Azure#22368)
1 parent 5cb03b2 commit 94dff33

File tree

6 files changed

+33
-27
lines changed

6 files changed

+33
-27
lines changed

sdk/keyvault/azure-keyvault-administration/CHANGELOG.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# Release History
22

3-
## 4.1.0b3 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
3+
## 4.1.0b3 (2022-02-08)
104

115
### Other Changes
126
- Python 2.7 is no longer supported. Please use Python version 3.6 or later.
137
- Updated minimum `azure-core` version to 1.20.0
8+
- (From 4.1.0b2) To support multi-tenant authentication, `get_token` calls during challenge
9+
authentication requests now pass in a `tenant_id` keyword argument
10+
([#20698](https://github.com/Azure/azure-sdk-for-python/issues/20698))
1411

1512
## 4.1.0b2 (2021-11-11)
1613

sdk/keyvault/azure-keyvault-certificates/CHANGELOG.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# Release History
22

3-
## 4.4.0b3 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
3+
## 4.4.0b3 (2022-02-08)
104

115
### Other Changes
126
- Python 2.7 is no longer supported. Please use Python version 3.6 or later.
7+
- (From 4.4.0b2) To support multi-tenant authentication, `get_token` calls during challenge
8+
authentication requests now pass in a `tenant_id` keyword argument
9+
([#20698](https://github.com/Azure/azure-sdk-for-python/issues/20698))
1310

1411
## 4.4.0b2 (2021-11-11)
1512

sdk/keyvault/azure-keyvault-keys/CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 4.5.0b6 (Unreleased)
3+
## 4.5.0b6 (2022-02-08)
44

55
### Features Added
66
- Added `immutable` keyword-only argument and property to `KeyReleasePolicy` to support immutable
@@ -12,11 +12,14 @@
1212
- Renamed the required argument `data` in `KeyReleasePolicy`'s constructor to
1313
`encoded_policy`
1414

15-
### Bugs Fixed
16-
1715
### Other Changes
1816
- Python 2.7 is no longer supported. Please use Python version 3.6 or later.
1917
- Updated minimum `azure-core` version to 1.20.0
18+
- Updated type hints for `KeyProperties` model's `managed`, `exportable`, and `release_policy`
19+
properties ([#22368](https://github.com/Azure/azure-sdk-for-python/pull/22368))
20+
- (From 4.5.0b5) To support multi-tenant authentication, `get_token` calls during challenge
21+
authentication requests now pass in a `tenant_id` keyword argument
22+
([#20698](https://github.com/Azure/azure-sdk-for-python/issues/20698))
2023

2124
## 4.5.0b5 (2021-11-11)
2225

sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_models.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ def tags(self):
225225

226226
@property
227227
def managed(self):
228-
# type: () -> bool
229-
"""Returns whether the key's lifetime is managed by key vault
228+
# type: () -> Optional[bool]
229+
"""Whether the key's lifetime is managed by Key Vault. If the key backs a certificate, this will be true.
230230
231-
:rtype: bool
231+
:rtype: bool or None
232232
"""
233233
return self._managed
234234

@@ -237,7 +237,7 @@ def exportable(self):
237237
# type: () -> Optional[bool]
238238
"""Whether the private key can be exported
239239
240-
:rtype: bool
240+
:rtype: bool or None
241241
"""
242242
# exportable was added in 7.3-preview
243243
if self._attributes:
@@ -249,7 +249,7 @@ def release_policy(self):
249249
# type: () -> Optional[KeyReleasePolicy]
250250
"""The :class:`~azure.keyvault.keys.KeyReleasePolicy` specifying the rules under which the key can be exported.
251251
252-
:rtype: ~azure.keyvault.keys.KeyReleasePolicy
252+
:rtype: ~azure.keyvault.keys.KeyReleasePolicy or None
253253
"""
254254
return self._release_policy
255255

sdk/keyvault/azure-keyvault-secrets/CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Release History
22

3-
## 4.4.0b3 (Unreleased)
3+
## 4.4.0b3 (2022-02-08)
44

55
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
6+
- Added `managed` property to SecretProperties
107

118
### Other Changes
129
- Python 2.7 is no longer supported. Please use Python version 3.6 or later.
10+
- (From 4.4.0b2) To support multi-tenant authentication, `get_token` calls during challenge
11+
authentication requests now pass in a `tenant_id` keyword argument
12+
([#20698](https://github.com/Azure/azure-sdk-for-python/issues/20698))
1313

1414
## 4.4.0b2 (2021-11-11)
1515

sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_models.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,15 @@ def tags(self):
187187
"""
188188
return self._tags
189189

190+
@property
191+
def managed(self):
192+
# type: () -> Optional[bool]
193+
"""Whether the secret's lifetime is managed by Key Vault. If the secret backs a certificate, this will be true.
194+
195+
:rtype: bool or None
196+
"""
197+
return self._managed
198+
190199

191200
class KeyVaultSecret(object):
192201
"""All of a secret's properties, and its value."""

0 commit comments

Comments
 (0)