Skip to content

Commit 5187aa3

Browse files
author
SDKAuto
committed
CodeGen from PR 31695 in Azure/azure-rest-api-specs
Merge e3ec502869bba3c2be9a9644af9274f952306590 into 18bcd0fcb4917f5cdc6c7c27141f52c2927330ff
1 parent cff747c commit 5187aa3

File tree

72 files changed

+1252
-3196
lines changed

Some content is hidden

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

72 files changed

+1252
-3196
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "8a287afb3721dee0d88f11502ec123470bc52a28",
2+
"commit": "59fdf7dbed27f516f0c096746ca3563ff035ed35",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/redisenterprise/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/redisenterprise/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/redisenterprise/resource-manager/readme.md"
1111
}

sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._redis_enterprise_management_client import RedisEnterpriseManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._redis_enterprise_management_client import RedisEnterpriseManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"RedisEnterpriseManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

@@ -28,13 +27,13 @@ class RedisEnterpriseManagementClientConfiguration: # pylint: disable=too-many-
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
32-
this default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
31+
default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2024-10-01")
3837

3938
if credential is None:
4039
raise ValueError("Parameter 'credential' must not be None.")

sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/_redis_enterprise_management_client.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from ._configuration import RedisEnterpriseManagementClientConfiguration
2020
from ._serialization import Deserializer, Serializer
2121
from .operations import (
22-
AccessPolicyAssignmentOperations,
2322
DatabasesOperations,
2423
Operations,
2524
OperationsStatusOperations,
@@ -29,11 +28,10 @@
2928
)
3029

3130
if TYPE_CHECKING:
32-
# pylint: disable=unused-import,ungrouped-imports
3331
from azure.core.credentials import TokenCredential
3432

3533

36-
class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
34+
class RedisEnterpriseManagementClient:
3735
"""REST API for managing Redis Enterprise resources in Azure.
3836
3937
:ivar operations: Operations operations
@@ -44,9 +42,6 @@ class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-ver
4442
:vartype redis_enterprise: azure.mgmt.redisenterprise.operations.RedisEnterpriseOperations
4543
:ivar databases: DatabasesOperations operations
4644
:vartype databases: azure.mgmt.redisenterprise.operations.DatabasesOperations
47-
:ivar access_policy_assignment: AccessPolicyAssignmentOperations operations
48-
:vartype access_policy_assignment:
49-
azure.mgmt.redisenterprise.operations.AccessPolicyAssignmentOperations
5045
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
5146
:vartype private_endpoint_connections:
5247
azure.mgmt.redisenterprise.operations.PrivateEndpointConnectionsOperations
@@ -59,8 +54,8 @@ class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-ver
5954
:type subscription_id: str
6055
:param base_url: Service URL. Default value is "https://management.azure.com".
6156
:type base_url: str
62-
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
63-
this default value may result in unsupported behavior.
57+
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
58+
default value may result in unsupported behavior.
6459
:paramtype api_version: str
6560
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6661
Retry-After header is present.
@@ -108,9 +103,6 @@ def __init__(
108103
self._client, self._config, self._serialize, self._deserialize
109104
)
110105
self.databases = DatabasesOperations(self._client, self._config, self._serialize, self._deserialize)
111-
self.access_policy_assignment = AccessPolicyAssignmentOperations(
112-
self._client, self._config, self._serialize, self._deserialize
113-
)
114106
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
115107
self._client, self._config, self._serialize, self._deserialize
116108
)

0 commit comments

Comments
 (0)