Skip to content

Commit

Permalink
[AutoRelease] t2-keyvault-2023-05-24-19767(can only be merged by SDK …
Browse files Browse the repository at this point in the history
…owner) (Azure#30513)

* code and test

* version

---------

Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: msyyc <[email protected]>
  • Loading branch information
azure-sdk and msyyc authored May 24, 2023
1 parent b8fecd9 commit 74fee8d
Show file tree
Hide file tree
Showing 111 changed files with 535 additions and 526 deletions.
6 changes: 6 additions & 0 deletions sdk/keyvault/azure-mgmt-keyvault/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 10.2.2 (2023-05-24)

### Other Changes

- Added default value back for model Sku.family to avoid breaking

## 10.2.1 (2023-04-03)

### Bugs Fixed
Expand Down
6 changes: 3 additions & 3 deletions sdk/keyvault/azure-mgmt-keyvault/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "945ea7b3682db6a45471cf22f77d548c54417d34",
"commit": "3c2bb08d44536eecec0a8624587776a05692031c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/[email protected].7",
"@autorest/[email protected].12",
"@autorest/[email protected]"
],
"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",
"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",
"readme": "specification/keyvault/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "10.2.1"
VERSION = "10.2.2"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "10.2.1"
VERSION = "10.2.2"
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
import sys
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
Expand Down Expand Up @@ -173,7 +174,7 @@ async def create_or_update(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultCreateOrUpdateParameters")
Expand Down Expand Up @@ -319,7 +320,7 @@ async def update(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultPatchParameters")
Expand Down Expand Up @@ -599,7 +600,7 @@ async def update_access_policy(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultAccessPolicyParameters")
Expand Down Expand Up @@ -1242,7 +1243,7 @@ async def check_name_availability(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(vault_name, (IO, bytes)):
if isinstance(vault_name, (IOBase, bytes)):
_content = vault_name
else:
_json = self._serialize.body(vault_name, "VaultCheckNameAvailabilityParameters")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ class Sku(_serialization.Model):
All required parameters must be populated in order to send to Azure.
:ivar family: SKU family name. Required. "A"
:ivar family: SKU family name. "A"
:vartype family: str or ~azure.mgmt.keyvault.v2016_10_01.models.SkuFamily
:ivar name: SKU name to specify whether the key vault is a standard vault or a premium vault.
Required. Known values are: "standard" and "premium".
Expand All @@ -554,10 +554,10 @@ class Sku(_serialization.Model):
}

def __init__(
self, *, family: Union[str, "_models.SkuFamily"], name: Union[str, "_models.SkuName"], **kwargs: Any
self, *, family: Union[str, "_models.SkuFamily"] = "A", name: Union[str, "_models.SkuName"], **kwargs: Any
) -> None:
"""
:keyword family: SKU family name. Required. "A"
:keyword family: SKU family name. "A"
:paramtype family: str or ~azure.mgmt.keyvault.v2016_10_01.models.SkuFamily
:keyword name: SKU name to specify whether the key vault is a standard vault or a premium
vault. Required. Known values are: "standard" and "premium".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
import sys
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload
import urllib.parse
Expand Down Expand Up @@ -514,7 +515,7 @@ def create_or_update(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultCreateOrUpdateParameters")
Expand Down Expand Up @@ -660,7 +661,7 @@ def update(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultPatchParameters")
Expand Down Expand Up @@ -940,7 +941,7 @@ def update_access_policy(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultAccessPolicyParameters")
Expand Down Expand Up @@ -1581,7 +1582,7 @@ def check_name_availability(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(vault_name, (IO, bytes)):
if isinstance(vault_name, (IOBase, bytes)):
_content = vault_name
else:
_json = self._serialize.body(vault_name, "VaultCheckNameAvailabilityParameters")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "10.2.1"
VERSION = "10.2.2"
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -232,7 +233,7 @@ async def put(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(properties, (IO, bytes)):
if isinstance(properties, (IOBase, bytes)):
_content = properties
else:
_json = self._serialize.body(properties, "PrivateEndpointConnection")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
import sys
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
Expand Down Expand Up @@ -98,7 +99,7 @@ async def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultCreateOrUpdateParameters")
Expand Down Expand Up @@ -395,7 +396,7 @@ async def update(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultPatchParameters")
Expand Down Expand Up @@ -675,7 +676,7 @@ async def update_access_policy(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultAccessPolicyParameters")
Expand Down Expand Up @@ -1318,7 +1319,7 @@ async def check_name_availability(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(vault_name, (IO, bytes)):
if isinstance(vault_name, (IOBase, bytes)):
_content = vault_name
else:
_json = self._serialize.body(vault_name, "VaultCheckNameAvailabilityParameters")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ class Sku(_serialization.Model):
All required parameters must be populated in order to send to Azure.
:ivar family: SKU family name. Required. "A"
:ivar family: SKU family name. "A"
:vartype family: str or ~azure.mgmt.keyvault.v2018_02_14.models.SkuFamily
:ivar name: SKU name to specify whether the key vault is a standard vault or a premium vault.
Required. Known values are: "standard" and "premium".
Expand All @@ -920,10 +920,10 @@ class Sku(_serialization.Model):
}

def __init__(
self, *, family: Union[str, "_models.SkuFamily"], name: Union[str, "_models.SkuName"], **kwargs: Any
self, *, family: Union[str, "_models.SkuFamily"] = "A", name: Union[str, "_models.SkuName"], **kwargs: Any
) -> None:
"""
:keyword family: SKU family name. Required. "A"
:keyword family: SKU family name. "A"
:paramtype family: str or ~azure.mgmt.keyvault.v2018_02_14.models.SkuFamily
:keyword name: SKU name to specify whether the key vault is a standard vault or a premium
vault. Required. Known values are: "standard" and "premium".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -348,7 +349,7 @@ def put(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(properties, (IO, bytes)):
if isinstance(properties, (IOBase, bytes)):
_content = properties
else:
_json = self._serialize.body(properties, "PrivateEndpointConnection")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
import sys
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload
import urllib.parse
Expand Down Expand Up @@ -439,7 +440,7 @@ def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultCreateOrUpdateParameters")
Expand Down Expand Up @@ -736,7 +737,7 @@ def update(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultPatchParameters")
Expand Down Expand Up @@ -1016,7 +1017,7 @@ def update_access_policy(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultAccessPolicyParameters")
Expand Down Expand Up @@ -1657,7 +1658,7 @@ def check_name_availability(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(vault_name, (IO, bytes)):
if isinstance(vault_name, (IOBase, bytes)):
_content = vault_name
else:
_json = self._serialize.body(vault_name, "VaultCheckNameAvailabilityParameters")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "10.2.1"
VERSION = "10.2.2"
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
import urllib.parse

Expand Down Expand Up @@ -174,7 +175,7 @@ async def create_if_not_exist(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "KeyCreateParameters")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -234,7 +235,7 @@ async def put(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(properties, (IO, bytes)):
if isinstance(properties, (IOBase, bytes)):
_content = properties
else:
_json = self._serialize.body(properties, "PrivateEndpointConnection")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
import sys
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
Expand Down Expand Up @@ -98,7 +99,7 @@ async def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultCreateOrUpdateParameters")
Expand Down Expand Up @@ -395,7 +396,7 @@ async def update(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultPatchParameters")
Expand Down Expand Up @@ -675,7 +676,7 @@ async def update_access_policy(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(parameters, (IO, bytes)):
if isinstance(parameters, (IOBase, bytes)):
_content = parameters
else:
_json = self._serialize.body(parameters, "VaultAccessPolicyParameters")
Expand Down Expand Up @@ -1318,7 +1319,7 @@ async def check_name_availability(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(vault_name, (IO, bytes)):
if isinstance(vault_name, (IOBase, bytes)):
_content = vault_name
else:
_json = self._serialize.body(vault_name, "VaultCheckNameAvailabilityParameters")
Expand Down
Loading

0 comments on commit 74fee8d

Please sign in to comment.