Skip to content

Commit 64128ba

Browse files
Azure CLI BotSDKAutoRAY-316
authored
[AutoRelease] t2-redis-2021-07-16-74903 (Azure#19843)
* CodeGen from PR 15117 in Azure/azure-rest-api-specs Cjf release0708 (Azure#15117) * add tag into readme.go.md * add tag to readme.go.md to release gosdk * version,CHANGELOG * test * test config Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed Lei <[email protected]> Co-authored-by: Zed <[email protected]>
1 parent 1614c53 commit 64128ba

33 files changed

+2932
-2185
lines changed

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

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

3+
## 13.0.0 (2021-07-16)
4+
5+
**Features**
6+
7+
- Model RedisUpdateProperties has a new parameter redis_version
8+
- Model RedisUpdateProperties has a new parameter replicas_per_primary
9+
- Model RedisUpdateProperties has a new parameter public_network_access
10+
- Model RedisCommonProperties has a new parameter redis_version
11+
- Model RedisCommonProperties has a new parameter replicas_per_primary
12+
- Model RedisCommonProperties has a new parameter public_network_access
13+
- Model RedisFirewallRuleCreateParameters has a new parameter type
14+
- Model RedisFirewallRuleCreateParameters has a new parameter name
15+
- Model RedisFirewallRuleCreateParameters has a new parameter id
16+
- Model RedisProperties has a new parameter private_endpoint_connections
17+
- Model RedisProperties has a new parameter replicas_per_primary
18+
- Model RedisProperties has a new parameter public_network_access
19+
- Model RedisCreateProperties has a new parameter redis_version
20+
- Model RedisCreateProperties has a new parameter replicas_per_primary
21+
- Model RedisCreateProperties has a new parameter public_network_access
22+
- Model RedisUpdateParameters has a new parameter redis_version
23+
- Model RedisUpdateParameters has a new parameter replicas_per_primary
24+
- Model RedisUpdateParameters has a new parameter public_network_access
25+
- Model RedisResource has a new parameter private_endpoint_connections
26+
- Model RedisResource has a new parameter replicas_per_primary
27+
- Model RedisResource has a new parameter public_network_access
28+
- Model RedisInstanceDetails has a new parameter is_primary
29+
- Model RedisCreateParameters has a new parameter redis_version
30+
- Model RedisCreateParameters has a new parameter replicas_per_primary
31+
- Model RedisCreateParameters has a new parameter public_network_access
32+
- Added operation RedisOperations.list_by_subscription
33+
- Added operation FirewallRulesOperations.list
34+
- Added operation group PrivateLinkResourcesOperations
35+
- Added operation group PrivateEndpointConnectionsOperations
36+
37+
**Breaking changes**
38+
39+
- Removed operation RedisOperations.list
40+
- Removed operation FirewallRulesOperations.list_by_redis_resource
41+
342
## 12.0.0 (2020-11-25)
443

544
## 12.0.0b1 (2020-10-12)

sdk/redis/azure-mgmt-redis/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"autorest": "3.4.2",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "55558c4b2a1ee05064b1ce6733edf72a0345cfb8",
8+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9+
"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/[email protected] --use=@autorest/[email protected] --version=3.4.2",
10+
"readme": "specification/redis/resource-manager/readme.md"
11+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2019-07-01"
51+
self.api_version = "2020-12-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-redis/{}'.format(VERSION))
5454
self._configure(**kwargs)
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"chosen_version": "2020-12-01",
3+
"total_api_version_list": ["2020-12-01"],
4+
"client": {
5+
"name": "RedisManagementClient",
6+
"filename": "_redis_management_client",
7+
"description": "REST API for Azure Redis Cache Service.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"client_side_validation": false,
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"RedisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"RedisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
15+
},
16+
"global_parameters": {
17+
"sync": {
18+
"credential": {
19+
"signature": "credential, # type: \"TokenCredential\"",
20+
"description": "Credential needed for the client to connect to Azure.",
21+
"docstring_type": "~azure.core.credentials.TokenCredential",
22+
"required": true
23+
},
24+
"subscription_id": {
25+
"signature": "subscription_id, # type: str",
26+
"description": "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
27+
"docstring_type": "str",
28+
"required": true
29+
}
30+
},
31+
"async": {
32+
"credential": {
33+
"signature": "credential: \"AsyncTokenCredential\",",
34+
"description": "Credential needed for the client to connect to Azure.",
35+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
36+
"required": true
37+
},
38+
"subscription_id": {
39+
"signature": "subscription_id: str,",
40+
"description": "Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
41+
"docstring_type": "str",
42+
"required": true
43+
}
44+
},
45+
"constant": {
46+
},
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
90+
},
91+
"config": {
92+
"credential": true,
93+
"credential_scopes": ["https://management.azure.com/.default"],
94+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
95+
"credential_default_policy_type_has_async_version": true,
96+
"credential_key_header_name": null,
97+
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
98+
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
99+
},
100+
"operation_groups": {
101+
"operations": "Operations",
102+
"redis": "RedisOperations",
103+
"firewall_rules": "FirewallRulesOperations",
104+
"patch_schedules": "PatchSchedulesOperations",
105+
"linked_server": "LinkedServerOperations",
106+
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
107+
"private_link_resources": "PrivateLinkResourcesOperations"
108+
}
109+
}

sdk/redis/azure-mgmt-redis/azure/mgmt/redis/_redis_management_client.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import RedisManagementClientConfiguration
2122
from .operations import Operations
2223
from .operations import RedisOperations
2324
from .operations import FirewallRulesOperations
2425
from .operations import PatchSchedulesOperations
2526
from .operations import LinkedServerOperations
27+
from .operations import PrivateEndpointConnectionsOperations
28+
from .operations import PrivateLinkResourcesOperations
2629
from . import models
2730

2831

@@ -39,6 +42,10 @@ class RedisManagementClient(object):
3942
:vartype patch_schedules: azure.mgmt.redis.operations.PatchSchedulesOperations
4043
:ivar linked_server: LinkedServerOperations operations
4144
:vartype linked_server: azure.mgmt.redis.operations.LinkedServerOperations
45+
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
46+
:vartype private_endpoint_connections: azure.mgmt.redis.operations.PrivateEndpointConnectionsOperations
47+
:ivar private_link_resources: PrivateLinkResourcesOperations operations
48+
:vartype private_link_resources: azure.mgmt.redis.operations.PrivateLinkResourcesOperations
4249
:param credential: Credential needed for the client to connect to Azure.
4350
:type credential: ~azure.core.credentials.TokenCredential
4451
:param subscription_id: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
@@ -75,6 +82,28 @@ def __init__(
7582
self._client, self._config, self._serialize, self._deserialize)
7683
self.linked_server = LinkedServerOperations(
7784
self._client, self._config, self._serialize, self._deserialize)
85+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
86+
self._client, self._config, self._serialize, self._deserialize)
87+
self.private_link_resources = PrivateLinkResourcesOperations(
88+
self._client, self._config, self._serialize, self._deserialize)
89+
90+
def _send_request(self, http_request, **kwargs):
91+
# type: (HttpRequest, Any) -> HttpResponse
92+
"""Runs the network request through the client's chained policies.
93+
94+
:param http_request: The network request you want to make. Required.
95+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
96+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
97+
:return: The response of your network call. Does not do error handling on your response.
98+
:rtype: ~azure.core.pipeline.transport.HttpResponse
99+
"""
100+
path_format_arguments = {
101+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
102+
}
103+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
104+
stream = kwargs.pop("stream", True)
105+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
106+
return pipeline_response.http_response
78107

79108
def close(self):
80109
# type: () -> None

sdk/redis/azure-mgmt-redis/azure/mgmt/redis/_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 = "12.0.0"
9+
VERSION = "13.0.0"

sdk/redis/azure-mgmt-redis/azure/mgmt/redis/aio/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2019-07-01"
48+
self.api_version = "2020-12-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-redis/{}'.format(VERSION))
5151
self._configure(**kwargs)

sdk/redis/azure-mgmt-redis/azure/mgmt/redis/aio/_redis_management_client.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -21,6 +22,8 @@
2122
from .operations import FirewallRulesOperations
2223
from .operations import PatchSchedulesOperations
2324
from .operations import LinkedServerOperations
25+
from .operations import PrivateEndpointConnectionsOperations
26+
from .operations import PrivateLinkResourcesOperations
2427
from .. import models
2528

2629

@@ -37,6 +40,10 @@ class RedisManagementClient(object):
3740
:vartype patch_schedules: azure.mgmt.redis.aio.operations.PatchSchedulesOperations
3841
:ivar linked_server: LinkedServerOperations operations
3942
:vartype linked_server: azure.mgmt.redis.aio.operations.LinkedServerOperations
43+
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
44+
:vartype private_endpoint_connections: azure.mgmt.redis.aio.operations.PrivateEndpointConnectionsOperations
45+
:ivar private_link_resources: PrivateLinkResourcesOperations operations
46+
:vartype private_link_resources: azure.mgmt.redis.aio.operations.PrivateLinkResourcesOperations
4047
:param credential: Credential needed for the client to connect to Azure.
4148
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
4249
:param subscription_id: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
@@ -72,6 +79,27 @@ def __init__(
7279
self._client, self._config, self._serialize, self._deserialize)
7380
self.linked_server = LinkedServerOperations(
7481
self._client, self._config, self._serialize, self._deserialize)
82+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
83+
self._client, self._config, self._serialize, self._deserialize)
84+
self.private_link_resources = PrivateLinkResourcesOperations(
85+
self._client, self._config, self._serialize, self._deserialize)
86+
87+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
88+
"""Runs the network request through the client's chained policies.
89+
90+
:param http_request: The network request you want to make. Required.
91+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
92+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
93+
:return: The response of your network call. Does not do error handling on your response.
94+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
95+
"""
96+
path_format_arguments = {
97+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
98+
}
99+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
100+
stream = kwargs.pop("stream", True)
101+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
102+
return pipeline_response.http_response
75103

76104
async def close(self) -> None:
77105
await self._client.close()

sdk/redis/azure-mgmt-redis/azure/mgmt/redis/aio/operations/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111
from ._firewall_rules_operations import FirewallRulesOperations
1212
from ._patch_schedules_operations import PatchSchedulesOperations
1313
from ._linked_server_operations import LinkedServerOperations
14+
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
15+
from ._private_link_resources_operations import PrivateLinkResourcesOperations
1416

1517
__all__ = [
1618
'Operations',
1719
'RedisOperations',
1820
'FirewallRulesOperations',
1921
'PatchSchedulesOperations',
2022
'LinkedServerOperations',
23+
'PrivateEndpointConnectionsOperations',
24+
'PrivateLinkResourcesOperations',
2125
]

0 commit comments

Comments
 (0)