Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-redisenterprise] Update forcelink API examples #9423

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 2 additions & 2 deletions sdk/redisenterprise/azure-mgmt-redisenterprise/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "8a287afb3721dee0d88f11502ec123470bc52a28",
"commit": "7edb50b179e6af0b4f69fa363021377999a23dc0",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"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/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/redisenterprise/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class RedisEnterpriseManagementClientConfiguration: # pylint: disable=too-many-
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

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

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from ._configuration import RedisEnterpriseManagementClientConfiguration
from ._serialization import Deserializer, Serializer
from .operations import (
AccessPolicyAssignmentOperations,
DatabasesOperations,
Operations,
OperationsStatusOperations,
Expand All @@ -33,7 +32,7 @@
from azure.core.credentials import TokenCredential


class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-version-keyword
"""REST API for managing Redis Enterprise resources in Azure.

:ivar operations: Operations operations
Expand All @@ -44,9 +43,6 @@ class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-ver
:vartype redis_enterprise: azure.mgmt.redisenterprise.operations.RedisEnterpriseOperations
:ivar databases: DatabasesOperations operations
:vartype databases: azure.mgmt.redisenterprise.operations.DatabasesOperations
:ivar access_policy_assignment: AccessPolicyAssignmentOperations operations
:vartype access_policy_assignment:
azure.mgmt.redisenterprise.operations.AccessPolicyAssignmentOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections:
azure.mgmt.redisenterprise.operations.PrivateEndpointConnectionsOperations
Expand All @@ -59,8 +55,8 @@ class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-ver
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -108,9 +104,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.databases = DatabasesOperations(self._client, self._config, self._serialize, self._deserialize)
self.access_policy_assignment = AccessPolicyAssignmentOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
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 = "3.1.0b2"
VERSION = "2.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class RedisEnterpriseManagementClientConfiguration: # pylint: disable=too-many-
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-09-01-preview")
api_version: str = kwargs.pop("api_version", "2024-10-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from .._serialization import Deserializer, Serializer
from ._configuration import RedisEnterpriseManagementClientConfiguration
from .operations import (
AccessPolicyAssignmentOperations,
DatabasesOperations,
Operations,
OperationsStatusOperations,
Expand All @@ -33,7 +32,7 @@
from azure.core.credentials_async import AsyncTokenCredential


class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-version-keyword
"""REST API for managing Redis Enterprise resources in Azure.

:ivar operations: Operations operations
Expand All @@ -45,9 +44,6 @@ class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-ver
:vartype redis_enterprise: azure.mgmt.redisenterprise.aio.operations.RedisEnterpriseOperations
:ivar databases: DatabasesOperations operations
:vartype databases: azure.mgmt.redisenterprise.aio.operations.DatabasesOperations
:ivar access_policy_assignment: AccessPolicyAssignmentOperations operations
:vartype access_policy_assignment:
azure.mgmt.redisenterprise.aio.operations.AccessPolicyAssignmentOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections:
azure.mgmt.redisenterprise.aio.operations.PrivateEndpointConnectionsOperations
Expand All @@ -60,8 +56,8 @@ class RedisEnterpriseManagementClient: # pylint: disable=client-accepts-api-ver
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-10-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -109,9 +105,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.databases = DatabasesOperations(self._client, self._config, self._serialize, self._deserialize)
self.access_policy_assignment = AccessPolicyAssignmentOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from ._operations_status_operations import OperationsStatusOperations
from ._redis_enterprise_operations import RedisEnterpriseOperations
from ._databases_operations import DatabasesOperations
from ._access_policy_assignment_operations import AccessPolicyAssignmentOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations

Expand All @@ -23,7 +22,6 @@
"OperationsStatusOperations",
"RedisEnterpriseOperations",
"DatabasesOperations",
"AccessPolicyAssignmentOperations",
"PrivateEndpointConnectionsOperations",
"PrivateLinkResourcesOperations",
]
Expand Down
Loading
Loading