Skip to content

Commit

Permalink
regenerated + change log + version (#9520)
Browse files Browse the repository at this point in the history
* regenerated + change log + version

* fixed generation mistakes

* regenerated test

* Packaging update of azure-mgmt-cdn

Co-authored-by: Azure SDK Bot <[email protected]>
  • Loading branch information
Zim Kalinowski and AutorestCI authored Jan 18, 2020
1 parent 919b139 commit 0fa0439
Show file tree
Hide file tree
Showing 22 changed files with 2,170 additions and 171 deletions.
10 changes: 10 additions & 0 deletions sdk/cdn/azure-mgmt-cdn/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
Release History
===============

4.1.0rc1 (2020-01-18)
+++++++++++++++++++++

**Features**

- Model Endpoint has a new parameter web_application_firewall_policy_link
- Model EndpointUpdateParameters has a new parameter web_application_firewall_policy_link
- Added operation group PoliciesOperations
- Added operation group ManagedRuleSetsOperations

4.0.0 (2019-11-25)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion sdk/cdn/azure-mgmt-cdn/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure CDN Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
12 changes: 11 additions & 1 deletion sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_cdn_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
from .operations import ResourceUsageOperations
from .operations import Operations
from .operations import EdgeNodesOperations
from .operations import PoliciesOperations
from .operations import ManagedRuleSetsOperations
from . import models


Expand All @@ -44,6 +46,10 @@ class CdnManagementClient(CdnManagementClientOperationsMixin, SDKClient):
:vartype operations: azure.mgmt.cdn.operations.Operations
:ivar edge_nodes: EdgeNodes operations
:vartype edge_nodes: azure.mgmt.cdn.operations.EdgeNodesOperations
:ivar policies: Policies operations
:vartype policies: azure.mgmt.cdn.operations.PoliciesOperations
:ivar managed_rule_sets: ManagedRuleSets operations
:vartype managed_rule_sets: azure.mgmt.cdn.operations.ManagedRuleSetsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -60,7 +66,7 @@ def __init__(
super(CdnManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-04-15'
self.api_version = '2019-06-15-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -78,3 +84,7 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.edge_nodes = EdgeNodesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.policies = PoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_rule_sets = ManagedRuleSetsOperations(
self._client, self.config, self._serialize, self._deserialize)
75 changes: 75 additions & 0 deletions sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@
from ._models_py3 import CacheExpirationActionParameters
from ._models_py3 import CacheKeyQueryStringActionParameters
from ._models_py3 import CdnCertificateSourceParameters
from ._models_py3 import CdnEndpoint
from ._models_py3 import CdnManagedHttpsParameters
from ._models_py3 import CdnWebApplicationFirewallPolicy
from ._models_py3 import CdnWebApplicationFirewallPolicyPatchParameters
from ._models_py3 import CheckNameAvailabilityInput
from ._models_py3 import CheckNameAvailabilityOutput
from ._models_py3 import CidrIpAddress
from ._models_py3 import CookiesMatchConditionParameters
from ._models_py3 import CustomDomain
from ._models_py3 import CustomDomainHttpsParameters
from ._models_py3 import CustomDomainParameters
from ._models_py3 import CustomRule
from ._models_py3 import CustomRuleList
from ._models_py3 import DeepCreatedOrigin
from ._models_py3 import DeliveryRule
from ._models_py3 import DeliveryRuleAction
Expand All @@ -46,6 +51,7 @@
from ._models_py3 import EdgeNode
from ._models_py3 import Endpoint
from ._models_py3 import EndpointPropertiesUpdateParametersDeliveryPolicy
from ._models_py3 import EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink
from ._models_py3 import EndpointUpdateParameters
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import GeoFilter
Expand All @@ -55,16 +61,27 @@
from ._models_py3 import IsDeviceMatchConditionParameters
from ._models_py3 import KeyVaultCertificateSourceParameters
from ._models_py3 import LoadParameters
from ._models_py3 import ManagedRuleDefinition
from ._models_py3 import ManagedRuleGroupDefinition
from ._models_py3 import ManagedRuleGroupOverride
from ._models_py3 import ManagedRuleOverride
from ._models_py3 import ManagedRuleSet
from ._models_py3 import ManagedRuleSetDefinition
from ._models_py3 import ManagedRuleSetList
from ._models_py3 import MatchCondition
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import Origin
from ._models_py3 import OriginUpdateParameters
from ._models_py3 import PolicySettings
from ._models_py3 import PostArgsMatchConditionParameters
from ._models_py3 import Profile
from ._models_py3 import ProfileUpdateParameters
from ._models_py3 import ProxyResource
from ._models_py3 import PurgeParameters
from ._models_py3 import QueryStringMatchConditionParameters
from ._models_py3 import RateLimitRule
from ._models_py3 import RateLimitRuleList
from ._models_py3 import RemoteAddressMatchConditionParameters
from ._models_py3 import RequestBodyMatchConditionParameters
from ._models_py3 import RequestHeaderMatchConditionParameters
Expand Down Expand Up @@ -93,14 +110,19 @@
from ._models import CacheExpirationActionParameters
from ._models import CacheKeyQueryStringActionParameters
from ._models import CdnCertificateSourceParameters
from ._models import CdnEndpoint
from ._models import CdnManagedHttpsParameters
from ._models import CdnWebApplicationFirewallPolicy
from ._models import CdnWebApplicationFirewallPolicyPatchParameters
from ._models import CheckNameAvailabilityInput
from ._models import CheckNameAvailabilityOutput
from ._models import CidrIpAddress
from ._models import CookiesMatchConditionParameters
from ._models import CustomDomain
from ._models import CustomDomainHttpsParameters
from ._models import CustomDomainParameters
from ._models import CustomRule
from ._models import CustomRuleList
from ._models import DeepCreatedOrigin
from ._models import DeliveryRule
from ._models import DeliveryRuleAction
Expand All @@ -126,6 +148,7 @@
from ._models import EdgeNode
from ._models import Endpoint
from ._models import EndpointPropertiesUpdateParametersDeliveryPolicy
from ._models import EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink
from ._models import EndpointUpdateParameters
from ._models import ErrorResponse, ErrorResponseException
from ._models import GeoFilter
Expand All @@ -135,16 +158,27 @@
from ._models import IsDeviceMatchConditionParameters
from ._models import KeyVaultCertificateSourceParameters
from ._models import LoadParameters
from ._models import ManagedRuleDefinition
from ._models import ManagedRuleGroupDefinition
from ._models import ManagedRuleGroupOverride
from ._models import ManagedRuleOverride
from ._models import ManagedRuleSet
from ._models import ManagedRuleSetDefinition
from ._models import ManagedRuleSetList
from ._models import MatchCondition
from ._models import Operation
from ._models import OperationDisplay
from ._models import Origin
from ._models import OriginUpdateParameters
from ._models import PolicySettings
from ._models import PostArgsMatchConditionParameters
from ._models import Profile
from ._models import ProfileUpdateParameters
from ._models import ProxyResource
from ._models import PurgeParameters
from ._models import QueryStringMatchConditionParameters
from ._models import RateLimitRule
from ._models import RateLimitRuleList
from ._models import RemoteAddressMatchConditionParameters
from ._models import RequestBodyMatchConditionParameters
from ._models import RequestHeaderMatchConditionParameters
Expand All @@ -169,9 +203,11 @@
from ._models import ValidateCustomDomainOutput
from ._models import ValidateProbeInput
from ._models import ValidateProbeOutput
from ._paged_models import CdnWebApplicationFirewallPolicyPaged
from ._paged_models import CustomDomainPaged
from ._paged_models import EdgeNodePaged
from ._paged_models import EndpointPaged
from ._paged_models import ManagedRuleSetDefinitionPaged
from ._paged_models import OperationPaged
from ._paged_models import OriginPaged
from ._paged_models import ProfilePaged
Expand Down Expand Up @@ -207,20 +243,35 @@
MinimumTlsVersion,
CertificateType,
ResourceType,
PolicyEnabledState,
PolicyMode,
CustomRuleEnabledState,
MatchVariable,
Operator,
TransformType,
ActionType,
ManagedRuleEnabledState,
ProvisioningState,
PolicyResourceState,
)

__all__ = [
'CacheExpirationActionParameters',
'CacheKeyQueryStringActionParameters',
'CdnCertificateSourceParameters',
'CdnEndpoint',
'CdnManagedHttpsParameters',
'CdnWebApplicationFirewallPolicy',
'CdnWebApplicationFirewallPolicyPatchParameters',
'CheckNameAvailabilityInput',
'CheckNameAvailabilityOutput',
'CidrIpAddress',
'CookiesMatchConditionParameters',
'CustomDomain',
'CustomDomainHttpsParameters',
'CustomDomainParameters',
'CustomRule',
'CustomRuleList',
'DeepCreatedOrigin',
'DeliveryRule',
'DeliveryRuleAction',
Expand All @@ -246,6 +297,7 @@
'EdgeNode',
'Endpoint',
'EndpointPropertiesUpdateParametersDeliveryPolicy',
'EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink',
'EndpointUpdateParameters',
'ErrorResponse', 'ErrorResponseException',
'GeoFilter',
Expand All @@ -255,16 +307,27 @@
'IsDeviceMatchConditionParameters',
'KeyVaultCertificateSourceParameters',
'LoadParameters',
'ManagedRuleDefinition',
'ManagedRuleGroupDefinition',
'ManagedRuleGroupOverride',
'ManagedRuleOverride',
'ManagedRuleSet',
'ManagedRuleSetDefinition',
'ManagedRuleSetList',
'MatchCondition',
'Operation',
'OperationDisplay',
'Origin',
'OriginUpdateParameters',
'PolicySettings',
'PostArgsMatchConditionParameters',
'Profile',
'ProfileUpdateParameters',
'ProxyResource',
'PurgeParameters',
'QueryStringMatchConditionParameters',
'RateLimitRule',
'RateLimitRuleList',
'RemoteAddressMatchConditionParameters',
'RequestBodyMatchConditionParameters',
'RequestHeaderMatchConditionParameters',
Expand Down Expand Up @@ -296,6 +359,8 @@
'CustomDomainPaged',
'OperationPaged',
'EdgeNodePaged',
'CdnWebApplicationFirewallPolicyPaged',
'ManagedRuleSetDefinitionPaged',
'SkuName',
'ProfileResourceState',
'OptimizationType',
Expand Down Expand Up @@ -326,4 +391,14 @@
'MinimumTlsVersion',
'CertificateType',
'ResourceType',
'PolicyEnabledState',
'PolicyMode',
'CustomRuleEnabledState',
'MatchVariable',
'Operator',
'TransformType',
'ActionType',
'ManagedRuleEnabledState',
'ProvisioningState',
'PolicyResourceState',
]
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,91 @@ class CertificateType(str, Enum):
class ResourceType(str, Enum):

microsoft_cdn_profiles_endpoints = "Microsoft.Cdn/Profiles/Endpoints"


class PolicyEnabledState(str, Enum):

disabled = "Disabled"
enabled = "Enabled"


class PolicyMode(str, Enum):

prevention = "Prevention"
detection = "Detection"


class CustomRuleEnabledState(str, Enum):

disabled = "Disabled"
enabled = "Enabled"


class MatchVariable(str, Enum):

remote_addr = "RemoteAddr"
country = "Country"
request_method = "RequestMethod"
request_header = "RequestHeader"
request_uri = "RequestUri"
query_string = "QueryString"
request_body = "RequestBody"
cookies = "Cookies"
post_args = "PostArgs"


class Operator(str, Enum):

any = "Any"
ip_match = "IPMatch"
geo_match = "GeoMatch"
equal = "Equal"
contains = "Contains"
less_than = "LessThan"
greater_than = "GreaterThan"
less_than_or_equal = "LessThanOrEqual"
greater_than_or_equal = "GreaterThanOrEqual"
begins_with = "BeginsWith"
ends_with = "EndsWith"
reg_ex = "RegEx"


class TransformType(str, Enum):

lowercase = "Lowercase"
uppercase = "Uppercase"
trim = "Trim"
url_decode = "UrlDecode"
url_encode = "UrlEncode"
remove_nulls = "RemoveNulls"


class ActionType(str, Enum):

allow = "Allow"
block = "Block"
log = "Log"
redirect = "Redirect"


class ManagedRuleEnabledState(str, Enum):

disabled = "Disabled"
enabled = "Enabled"


class ProvisioningState(str, Enum):

creating = "Creating"
succeeded = "Succeeded"
failed = "Failed"


class PolicyResourceState(str, Enum):

creating = "Creating"
enabling = "Enabling"
enabled = "Enabled"
disabling = "Disabling"
disabled = "Disabled"
deleting = "Deleting"
Loading

0 comments on commit 0fa0439

Please sign in to comment.