Skip to content

Commit c96ce20

Browse files
chenjianfei2017SDK AutomationChenjianfeiAutorestCI
authored
Cdn release (Azure#12974)
* Update from release/v3 * release cdn * Packaging update of azure-mgmt-cdn * add rest recording * Packaging update of azure-mgmt-cdn Co-authored-by: SDK Automation <[email protected]> Co-authored-by: Chenjianfei <[email protected]> Co-authored-by: Azure SDK Bot <[email protected]>
1 parent 4a9fdc6 commit c96ce20

File tree

8 files changed

+1296
-567
lines changed

8 files changed

+1296
-567
lines changed

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

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

3+
## 5.1.0 (2020-08-10)
4+
5+
**Features**
6+
- Add UrlSigningAction
7+
38
## 5.0.0 (2020-07-21)
49

510
**Features**

sdk/cdn/azure-mgmt-cdn/README.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
## Microsoft Azure SDK for Python
1+
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure CDN Management Client Library.
4-
5-
Azure Resource Manager (ARM) is the next generation of management APIs
6-
that replace the old Azure Service Management (ASM).
7-
84
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
96

10-
For the older Azure Service Management (ASM) libraries, see
11-
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
12-
library.
137

14-
For a more complete set of Azure libraries, see the
15-
[azure sdk python release](https://aka.ms/azsdk/python/all).
8+
# Usage
169

17-
## Usage
10+
For code examples, see [CDN Management](https://docs.microsoft.com/python/api/overview/azure/cdn)
11+
on docs.microsoft.com.
1812

19-
For code examples, see [CDN
20-
Management](https://docs.microsoft.com/python/api/overview/azure/cdn) on
21-
docs.microsoft.com.
2213

23-
## Provide Feedback
14+
# Provide Feedback
2415

25-
If you encounter any bugs or have suggestions, please file an issue in
26-
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2718
section of the project.
2819

29-
![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-cdn%2FREADME.png)
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-cdn%2FREADME.png)

sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
from ._models_py3 import UrlRedirectActionParameters
110110
from ._models_py3 import UrlRewriteAction
111111
from ._models_py3 import UrlRewriteActionParameters
112+
from ._models_py3 import UrlSigningAction
112113
from ._models_py3 import UrlSigningActionParameters
113114
from ._models_py3 import UrlSigningKey
114115
from ._models_py3 import UrlSigningParamIdentifier
@@ -217,6 +218,7 @@
217218
from ._models import UrlRedirectActionParameters
218219
from ._models import UrlRewriteAction
219220
from ._models import UrlRewriteActionParameters
221+
from ._models import UrlSigningAction
220222
from ._models import UrlSigningActionParameters
221223
from ._models import UrlSigningKey
222224
from ._models import UrlSigningParamIdentifier
@@ -385,6 +387,7 @@
385387
'UrlRedirectActionParameters',
386388
'UrlRewriteAction',
387389
'UrlRewriteActionParameters',
390+
'UrlSigningAction',
388391
'UrlSigningActionParameters',
389392
'UrlSigningKey',
390393
'UrlSigningParamIdentifier',

sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ class DeliveryRuleAction(Model):
933933
"""An action for the delivery rule.
934934
935935
You probably want to use the sub-classes and not this class directly. Known
936-
sub-classes are: UrlRedirectAction, UrlRewriteAction,
936+
sub-classes are: UrlRedirectAction, UrlSigningAction, UrlRewriteAction,
937937
DeliveryRuleRequestHeaderAction, DeliveryRuleResponseHeaderAction,
938938
DeliveryRuleCacheExpirationAction, DeliveryRuleCacheKeyQueryStringAction
939939
@@ -952,7 +952,7 @@ class DeliveryRuleAction(Model):
952952
}
953953

954954
_subtype_map = {
955-
'name': {'UrlRedirect': 'UrlRedirectAction', 'UrlRewrite': 'UrlRewriteAction', 'ModifyRequestHeader': 'DeliveryRuleRequestHeaderAction', 'ModifyResponseHeader': 'DeliveryRuleResponseHeaderAction', 'CacheExpiration': 'DeliveryRuleCacheExpirationAction', 'CacheKeyQueryString': 'DeliveryRuleCacheKeyQueryStringAction'}
955+
'name': {'UrlRedirect': 'UrlRedirectAction', 'UrlSigning': 'UrlSigningAction', 'UrlRewrite': 'UrlRewriteAction', 'ModifyRequestHeader': 'DeliveryRuleRequestHeaderAction', 'ModifyResponseHeader': 'DeliveryRuleResponseHeaderAction', 'CacheExpiration': 'DeliveryRuleCacheExpirationAction', 'CacheKeyQueryString': 'DeliveryRuleCacheKeyQueryStringAction'}
956956
}
957957

958958
def __init__(self, **kwargs):
@@ -4007,6 +4007,33 @@ def __init__(self, **kwargs):
40074007
self.preserve_unmatched_path = kwargs.get('preserve_unmatched_path', None)
40084008

40094009

4010+
class UrlSigningAction(DeliveryRuleAction):
4011+
"""Defines the url signing action for the delivery rule.
4012+
4013+
All required parameters must be populated in order to send to Azure.
4014+
4015+
:param name: Required. Constant filled by server.
4016+
:type name: str
4017+
:param parameters: Required. Defines the parameters for the action.
4018+
:type parameters: ~azure.mgmt.cdn.models.UrlSigningActionParameters
4019+
"""
4020+
4021+
_validation = {
4022+
'name': {'required': True},
4023+
'parameters': {'required': True},
4024+
}
4025+
4026+
_attribute_map = {
4027+
'name': {'key': 'name', 'type': 'str'},
4028+
'parameters': {'key': 'parameters', 'type': 'UrlSigningActionParameters'},
4029+
}
4030+
4031+
def __init__(self, **kwargs):
4032+
super(UrlSigningAction, self).__init__(**kwargs)
4033+
self.parameters = kwargs.get('parameters', None)
4034+
self.name = 'UrlSigning'
4035+
4036+
40104037
class UrlSigningActionParameters(Model):
40114038
"""Defines the parameters for the Url Signing action.
40124039

sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models_py3.py

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ class DeliveryRuleAction(Model):
933933
"""An action for the delivery rule.
934934
935935
You probably want to use the sub-classes and not this class directly. Known
936-
sub-classes are: UrlRedirectAction, UrlRewriteAction,
936+
sub-classes are: UrlRedirectAction, UrlSigningAction, UrlRewriteAction,
937937
DeliveryRuleRequestHeaderAction, DeliveryRuleResponseHeaderAction,
938938
DeliveryRuleCacheExpirationAction, DeliveryRuleCacheKeyQueryStringAction
939939
@@ -952,7 +952,7 @@ class DeliveryRuleAction(Model):
952952
}
953953

954954
_subtype_map = {
955-
'name': {'UrlRedirect': 'UrlRedirectAction', 'UrlRewrite': 'UrlRewriteAction', 'ModifyRequestHeader': 'DeliveryRuleRequestHeaderAction', 'ModifyResponseHeader': 'DeliveryRuleResponseHeaderAction', 'CacheExpiration': 'DeliveryRuleCacheExpirationAction', 'CacheKeyQueryString': 'DeliveryRuleCacheKeyQueryStringAction'}
955+
'name': {'UrlRedirect': 'UrlRedirectAction', 'UrlSigning': 'UrlSigningAction', 'UrlRewrite': 'UrlRewriteAction', 'ModifyRequestHeader': 'DeliveryRuleRequestHeaderAction', 'ModifyResponseHeader': 'DeliveryRuleResponseHeaderAction', 'CacheExpiration': 'DeliveryRuleCacheExpirationAction', 'CacheKeyQueryString': 'DeliveryRuleCacheKeyQueryStringAction'}
956956
}
957957

958958
def __init__(self, **kwargs) -> None:
@@ -4007,6 +4007,33 @@ def __init__(self, *, source_pattern: str, destination: str, preserve_unmatched_
40074007
self.preserve_unmatched_path = preserve_unmatched_path
40084008

40094009

4010+
class UrlSigningAction(DeliveryRuleAction):
4011+
"""Defines the url signing action for the delivery rule.
4012+
4013+
All required parameters must be populated in order to send to Azure.
4014+
4015+
:param name: Required. Constant filled by server.
4016+
:type name: str
4017+
:param parameters: Required. Defines the parameters for the action.
4018+
:type parameters: ~azure.mgmt.cdn.models.UrlSigningActionParameters
4019+
"""
4020+
4021+
_validation = {
4022+
'name': {'required': True},
4023+
'parameters': {'required': True},
4024+
}
4025+
4026+
_attribute_map = {
4027+
'name': {'key': 'name', 'type': 'str'},
4028+
'parameters': {'key': 'parameters', 'type': 'UrlSigningActionParameters'},
4029+
}
4030+
4031+
def __init__(self, *, parameters, **kwargs) -> None:
4032+
super(UrlSigningAction, self).__init__(**kwargs)
4033+
self.parameters = parameters
4034+
self.name = 'UrlSigning'
4035+
4036+
40104037
class UrlSigningActionParameters(Model):
40114038
"""Defines the parameters for the Url Signing action.
40124039

sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "5.0.0"
12+
VERSION = "5.1.0"
1313

sdk/cdn/azure-mgmt-cdn/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
pass
3737

3838
# Version extraction inspired from 'requests'
39-
with open(os.path.join(package_folder_path, 'version.py')
39+
with open(os.path.join(package_folder_path, 'version.py')
4040
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
4141
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
4242
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',

0 commit comments

Comments
 (0)