Skip to content

Commit 74fee8d

Browse files
azure-sdkmsyyc
andauthored
[AutoRelease] t2-keyvault-2023-05-24-19767(can only be merged by SDK owner) (Azure#30513)
* code and test * version --------- Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: msyyc <[email protected]>
1 parent b8fecd9 commit 74fee8d

File tree

111 files changed

+535
-526
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+535
-526
lines changed

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

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

3+
## 10.2.2 (2023-05-24)
4+
5+
### Other Changes
6+
7+
- Added default value back for model Sku.family to avoid breaking
8+
39
## 10.2.1 (2023-04-03)
410

511
### Bugs Fixed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "945ea7b3682db6a45471cf22f77d548c54417d34",
2+
"commit": "3c2bb08d44536eecec0a8624587776a05692031c",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/[email protected].7",
6+
"@autorest/[email protected].12",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/keyvault/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].7 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/keyvault/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].12 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/keyvault/resource-manager/readme.md"
1111
}

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "10.2.1"
8+
VERSION = "10.2.2"

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "10.2.1"
9+
VERSION = "10.2.2"

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/aio/operations/_vaults_operations.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
import sys
1011
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
1112
import urllib.parse
@@ -173,7 +174,7 @@ async def create_or_update(
173174
content_type = content_type or "application/json"
174175
_json = None
175176
_content = None
176-
if isinstance(parameters, (IO, bytes)):
177+
if isinstance(parameters, (IOBase, bytes)):
177178
_content = parameters
178179
else:
179180
_json = self._serialize.body(parameters, "VaultCreateOrUpdateParameters")
@@ -319,7 +320,7 @@ async def update(
319320
content_type = content_type or "application/json"
320321
_json = None
321322
_content = None
322-
if isinstance(parameters, (IO, bytes)):
323+
if isinstance(parameters, (IOBase, bytes)):
323324
_content = parameters
324325
else:
325326
_json = self._serialize.body(parameters, "VaultPatchParameters")
@@ -599,7 +600,7 @@ async def update_access_policy(
599600
content_type = content_type or "application/json"
600601
_json = None
601602
_content = None
602-
if isinstance(parameters, (IO, bytes)):
603+
if isinstance(parameters, (IOBase, bytes)):
603604
_content = parameters
604605
else:
605606
_json = self._serialize.body(parameters, "VaultAccessPolicyParameters")
@@ -1242,7 +1243,7 @@ async def check_name_availability(
12421243
content_type = content_type or "application/json"
12431244
_json = None
12441245
_content = None
1245-
if isinstance(vault_name, (IO, bytes)):
1246+
if isinstance(vault_name, (IOBase, bytes)):
12461247
_content = vault_name
12471248
else:
12481249
_json = self._serialize.body(vault_name, "VaultCheckNameAvailabilityParameters")

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/models/_models_py3.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ class Sku(_serialization.Model):
536536
537537
All required parameters must be populated in order to send to Azure.
538538
539-
:ivar family: SKU family name. Required. "A"
539+
:ivar family: SKU family name. "A"
540540
:vartype family: str or ~azure.mgmt.keyvault.v2016_10_01.models.SkuFamily
541541
:ivar name: SKU name to specify whether the key vault is a standard vault or a premium vault.
542542
Required. Known values are: "standard" and "premium".
@@ -554,10 +554,10 @@ class Sku(_serialization.Model):
554554
}
555555

556556
def __init__(
557-
self, *, family: Union[str, "_models.SkuFamily"], name: Union[str, "_models.SkuName"], **kwargs: Any
557+
self, *, family: Union[str, "_models.SkuFamily"] = "A", name: Union[str, "_models.SkuName"], **kwargs: Any
558558
) -> None:
559559
"""
560-
:keyword family: SKU family name. Required. "A"
560+
:keyword family: SKU family name. "A"
561561
:paramtype family: str or ~azure.mgmt.keyvault.v2016_10_01.models.SkuFamily
562562
:keyword name: SKU name to specify whether the key vault is a standard vault or a premium
563563
vault. Required. Known values are: "standard" and "premium".

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/operations/_vaults_operations.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
import sys
1011
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload
1112
import urllib.parse
@@ -514,7 +515,7 @@ def create_or_update(
514515
content_type = content_type or "application/json"
515516
_json = None
516517
_content = None
517-
if isinstance(parameters, (IO, bytes)):
518+
if isinstance(parameters, (IOBase, bytes)):
518519
_content = parameters
519520
else:
520521
_json = self._serialize.body(parameters, "VaultCreateOrUpdateParameters")
@@ -660,7 +661,7 @@ def update(
660661
content_type = content_type or "application/json"
661662
_json = None
662663
_content = None
663-
if isinstance(parameters, (IO, bytes)):
664+
if isinstance(parameters, (IOBase, bytes)):
664665
_content = parameters
665666
else:
666667
_json = self._serialize.body(parameters, "VaultPatchParameters")
@@ -940,7 +941,7 @@ def update_access_policy(
940941
content_type = content_type or "application/json"
941942
_json = None
942943
_content = None
943-
if isinstance(parameters, (IO, bytes)):
944+
if isinstance(parameters, (IOBase, bytes)):
944945
_content = parameters
945946
else:
946947
_json = self._serialize.body(parameters, "VaultAccessPolicyParameters")
@@ -1581,7 +1582,7 @@ def check_name_availability(
15811582
content_type = content_type or "application/json"
15821583
_json = None
15831584
_content = None
1584-
if isinstance(vault_name, (IO, bytes)):
1585+
if isinstance(vault_name, (IOBase, bytes)):
15851586
_content = vault_name
15861587
else:
15871588
_json = self._serialize.body(vault_name, "VaultCheckNameAvailabilityParameters")

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "10.2.1"
9+
VERSION = "10.2.2"

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14/aio/operations/_private_endpoint_connections_operations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
1011

1112
from azure.core.exceptions import (
@@ -232,7 +233,7 @@ async def put(
232233
content_type = content_type or "application/json"
233234
_json = None
234235
_content = None
235-
if isinstance(properties, (IO, bytes)):
236+
if isinstance(properties, (IOBase, bytes)):
236237
_content = properties
237238
else:
238239
_json = self._serialize.body(properties, "PrivateEndpointConnection")

sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2018_02_14/aio/operations/_vaults_operations.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from io import IOBase
910
import sys
1011
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
1112
import urllib.parse
@@ -98,7 +99,7 @@ async def _create_or_update_initial(
9899
content_type = content_type or "application/json"
99100
_json = None
100101
_content = None
101-
if isinstance(parameters, (IO, bytes)):
102+
if isinstance(parameters, (IOBase, bytes)):
102103
_content = parameters
103104
else:
104105
_json = self._serialize.body(parameters, "VaultCreateOrUpdateParameters")
@@ -395,7 +396,7 @@ async def update(
395396
content_type = content_type or "application/json"
396397
_json = None
397398
_content = None
398-
if isinstance(parameters, (IO, bytes)):
399+
if isinstance(parameters, (IOBase, bytes)):
399400
_content = parameters
400401
else:
401402
_json = self._serialize.body(parameters, "VaultPatchParameters")
@@ -675,7 +676,7 @@ async def update_access_policy(
675676
content_type = content_type or "application/json"
676677
_json = None
677678
_content = None
678-
if isinstance(parameters, (IO, bytes)):
679+
if isinstance(parameters, (IOBase, bytes)):
679680
_content = parameters
680681
else:
681682
_json = self._serialize.body(parameters, "VaultAccessPolicyParameters")
@@ -1318,7 +1319,7 @@ async def check_name_availability(
13181319
content_type = content_type or "application/json"
13191320
_json = None
13201321
_content = None
1321-
if isinstance(vault_name, (IO, bytes)):
1322+
if isinstance(vault_name, (IOBase, bytes)):
13221323
_content = vault_name
13231324
else:
13241325
_json = self._serialize.body(vault_name, "VaultCheckNameAvailabilityParameters")

0 commit comments

Comments
 (0)