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 track2_azure-mgmt-redis] [Hub Generated] Review request for Microsoft.Cache to add version stable/2020-12-01 #9003

Closed
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/redis/azure-mgmt-redis/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/python@5.12.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "b28cdff098a89aab796e38c78b6b71a897fbae47",
"commit": "4d741e220aa2fa6d963b281f691554cc6922983c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/redis/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/redis/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/redis/resource-manager/readme.md"
}
13 changes: 5 additions & 8 deletions sdk/redis/azure-mgmt-redis/azure/mgmt/redis/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import TYPE_CHECKING
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
Expand All @@ -16,8 +16,6 @@

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential


Expand All @@ -35,11 +33,10 @@ class RedisManagementClientConfiguration(Configuration):

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
**kwargs # type: Any
):
# type: (...) -> None
credential: "TokenCredential",
subscription_id: str,
**kwargs: Any
) -> None:
super(RedisManagementClientConfiguration, self).__init__(**kwargs)
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 @@ -7,8 +7,9 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING

from azure.core.rest import HttpRequest, HttpResponse
from azure.mgmt.core import ARMPipelineClient
from msrest import Deserializer, Serializer

Expand All @@ -18,12 +19,9 @@

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any, Optional

from azure.core.credentials import TokenCredential
from azure.core.rest import HttpRequest, HttpResponse

class RedisManagementClient(object):
class RedisManagementClient:
"""REST API for Azure Redis Cache Service.

:ivar operations: Operations operations
Expand Down Expand Up @@ -54,12 +52,11 @@ class RedisManagementClient(object):

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
base_url="https://management.azure.com", # type: str
**kwargs # type: Any
):
# type: (...) -> None
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
**kwargs: Any
) -> None:
self._config = RedisManagementClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

Expand All @@ -79,9 +76,8 @@ def __init__(
def _send_request(
self,
request, # type: HttpRequest
**kwargs # type: Any
):
# type: (...) -> HttpResponse
**kwargs: Any
) -> HttpResponse:
"""Runs the network request through the client's chained policies.

>>> from azure.core.rest import HttpRequest
Expand Down
2 changes: 1 addition & 1 deletion sdk/redis/azure-mgmt-redis/azure/mgmt/redis/_version.py
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 = "13.1.0"
VERSION = "12.0.0b1"
150 changes: 50 additions & 100 deletions sdk/redis/azure-mgmt-redis/azure/mgmt/redis/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,106 +6,56 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

try:
from ._models_py3 import CheckNameAvailabilityParameters
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
from ._models_py3 import ErrorResponse
from ._models_py3 import ExportRDBParameters
from ._models_py3 import ImportRDBParameters
from ._models_py3 import ManagedServiceIdentity
from ._models_py3 import NotificationListResponse
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationListResult
from ._models_py3 import PrivateEndpoint
from ._models_py3 import PrivateEndpointConnection
from ._models_py3 import PrivateEndpointConnectionListResult
from ._models_py3 import PrivateLinkResource
from ._models_py3 import PrivateLinkResourceListResult
from ._models_py3 import PrivateLinkServiceConnectionState
from ._models_py3 import ProxyResource
from ._models_py3 import RedisAccessKeys
from ._models_py3 import RedisCommonProperties
from ._models_py3 import RedisCommonPropertiesRedisConfiguration
from ._models_py3 import RedisCreateParameters
from ._models_py3 import RedisCreateProperties
from ._models_py3 import RedisFirewallRule
from ._models_py3 import RedisFirewallRuleCreateParameters
from ._models_py3 import RedisFirewallRuleListResult
from ._models_py3 import RedisForceRebootResponse
from ._models_py3 import RedisInstanceDetails
from ._models_py3 import RedisLinkedServer
from ._models_py3 import RedisLinkedServerCreateParameters
from ._models_py3 import RedisLinkedServerCreateProperties
from ._models_py3 import RedisLinkedServerProperties
from ._models_py3 import RedisLinkedServerWithProperties
from ._models_py3 import RedisLinkedServerWithPropertiesList
from ._models_py3 import RedisListResult
from ._models_py3 import RedisPatchSchedule
from ._models_py3 import RedisPatchScheduleListResult
from ._models_py3 import RedisProperties
from ._models_py3 import RedisRebootParameters
from ._models_py3 import RedisRegenerateKeyParameters
from ._models_py3 import RedisResource
from ._models_py3 import RedisUpdateParameters
from ._models_py3 import RedisUpdateProperties
from ._models_py3 import Resource
from ._models_py3 import ScheduleEntry
from ._models_py3 import Sku
from ._models_py3 import TrackedResource
from ._models_py3 import UpgradeNotification
from ._models_py3 import UserAssignedIdentity
except (SyntaxError, ImportError):
from ._models import CheckNameAvailabilityParameters # type: ignore
from ._models import ErrorAdditionalInfo # type: ignore
from ._models import ErrorDetail # type: ignore
from ._models import ErrorResponse # type: ignore
from ._models import ExportRDBParameters # type: ignore
from ._models import ImportRDBParameters # type: ignore
from ._models import ManagedServiceIdentity # type: ignore
from ._models import NotificationListResponse # type: ignore
from ._models import Operation # type: ignore
from ._models import OperationDisplay # type: ignore
from ._models import OperationListResult # type: ignore
from ._models import PrivateEndpoint # type: ignore
from ._models import PrivateEndpointConnection # type: ignore
from ._models import PrivateEndpointConnectionListResult # type: ignore
from ._models import PrivateLinkResource # type: ignore
from ._models import PrivateLinkResourceListResult # type: ignore
from ._models import PrivateLinkServiceConnectionState # type: ignore
from ._models import ProxyResource # type: ignore
from ._models import RedisAccessKeys # type: ignore
from ._models import RedisCommonProperties # type: ignore
from ._models import RedisCommonPropertiesRedisConfiguration # type: ignore
from ._models import RedisCreateParameters # type: ignore
from ._models import RedisCreateProperties # type: ignore
from ._models import RedisFirewallRule # type: ignore
from ._models import RedisFirewallRuleCreateParameters # type: ignore
from ._models import RedisFirewallRuleListResult # type: ignore
from ._models import RedisForceRebootResponse # type: ignore
from ._models import RedisInstanceDetails # type: ignore
from ._models import RedisLinkedServer # type: ignore
from ._models import RedisLinkedServerCreateParameters # type: ignore
from ._models import RedisLinkedServerCreateProperties # type: ignore
from ._models import RedisLinkedServerProperties # type: ignore
from ._models import RedisLinkedServerWithProperties # type: ignore
from ._models import RedisLinkedServerWithPropertiesList # type: ignore
from ._models import RedisListResult # type: ignore
from ._models import RedisPatchSchedule # type: ignore
from ._models import RedisPatchScheduleListResult # type: ignore
from ._models import RedisProperties # type: ignore
from ._models import RedisRebootParameters # type: ignore
from ._models import RedisRegenerateKeyParameters # type: ignore
from ._models import RedisResource # type: ignore
from ._models import RedisUpdateParameters # type: ignore
from ._models import RedisUpdateProperties # type: ignore
from ._models import Resource # type: ignore
from ._models import ScheduleEntry # type: ignore
from ._models import Sku # type: ignore
from ._models import TrackedResource # type: ignore
from ._models import UpgradeNotification # type: ignore
from ._models import UserAssignedIdentity # type: ignore
from ._models_py3 import CheckNameAvailabilityParameters
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
from ._models_py3 import ErrorResponse
from ._models_py3 import ExportRDBParameters
from ._models_py3 import ImportRDBParameters
from ._models_py3 import ManagedServiceIdentity
from ._models_py3 import NotificationListResponse
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationListResult
from ._models_py3 import PrivateEndpoint
from ._models_py3 import PrivateEndpointConnection
from ._models_py3 import PrivateEndpointConnectionListResult
from ._models_py3 import PrivateLinkResource
from ._models_py3 import PrivateLinkResourceListResult
from ._models_py3 import PrivateLinkServiceConnectionState
from ._models_py3 import ProxyResource
from ._models_py3 import RedisAccessKeys
from ._models_py3 import RedisCommonProperties
from ._models_py3 import RedisCommonPropertiesRedisConfiguration
from ._models_py3 import RedisCreateParameters
from ._models_py3 import RedisCreateProperties
from ._models_py3 import RedisFirewallRule
from ._models_py3 import RedisFirewallRuleCreateParameters
from ._models_py3 import RedisFirewallRuleListResult
from ._models_py3 import RedisForceRebootResponse
from ._models_py3 import RedisInstanceDetails
from ._models_py3 import RedisLinkedServer
from ._models_py3 import RedisLinkedServerCreateParameters
from ._models_py3 import RedisLinkedServerCreateProperties
from ._models_py3 import RedisLinkedServerProperties
from ._models_py3 import RedisLinkedServerWithProperties
from ._models_py3 import RedisLinkedServerWithPropertiesList
from ._models_py3 import RedisListResult
from ._models_py3 import RedisPatchSchedule
from ._models_py3 import RedisPatchScheduleListResult
from ._models_py3 import RedisProperties
from ._models_py3 import RedisRebootParameters
from ._models_py3 import RedisRegenerateKeyParameters
from ._models_py3 import RedisResource
from ._models_py3 import RedisUpdateParameters
from ._models_py3 import RedisUpdateProperties
from ._models_py3 import Resource
from ._models_py3 import ScheduleEntry
from ._models_py3 import Sku
from ._models_py3 import TrackedResource
from ._models_py3 import UpgradeNotification
from ._models_py3 import UserAssignedIdentity


from ._redis_management_client_enums import (
DayOfWeek,
Expand Down
Loading