Skip to content

Commit

Permalink
T1 cdn 2021 02 07 (#16591)
Browse files Browse the repository at this point in the history
* CodeGen from PR 12421 in Azure/azure-rest-api-specs
[Afdx] Changed all "accepted" to 202 (#12421)

* changed all "accepted" to 202

* fix validation errors

* adding 202 to examples

* prettier check

* updated maxRanking, removed certificate association, and reverted prettifier changes to KV

* reverting prettifier changes again

* revert yet again

* fixed secrets examples

* remove optimization type

* add 202 for all PUT calls, change validateSecret from 200 to 202 for async, removed bypasscache for afdx

* correct validation errors

* fixes

* add afdx into custom words

* revert the validate secret api change

* missed the message

* change from afdx to afd

* fix security policies

* remove addtional properties

* prettier

Co-authored-by: Shirley Jiang <xujia@microsoft.com>

* test,version,CHANGELOG

* fix None Error

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Shirley Jiang <xujia@microsoft.com>
  • Loading branch information
3 people authored Feb 8, 2021
1 parent 5aa3396 commit 1e20065
Show file tree
Hide file tree
Showing 30 changed files with 279 additions and 286 deletions.
12 changes: 12 additions & 0 deletions sdk/cdn/azure-mgmt-cdn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release History

## 7.0.0 (2021-02-07)

**Breaking changes**

- Operation SecurityPoliciesOperations.patch has a new signature
- Model RouteUpdateParameters no longer has parameter optimization_type
- Model Route no longer has parameter optimization_type
- Model CustomerCertificateParameters no longer has parameter thumbprint
- Model CustomerCertificateParameters no longer has parameter expiration_date
- Model CustomerCertificateParameters no longer has parameter subject
- Model ManagedCertificateParameters has a new signature

## 6.0.0 (2020-12-14)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,13 @@ class CdnManagementClient(CdnManagementClientOperationsMixin, SDKClient):
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure Subscription ID.
:type subscription_id: str
:param subscription_id1: Azure Subscription ID.
:type subscription_id1: str
:param api_version1: Version of the API to be used with the client
request. Current version is 2019-09-01.
:type api_version1: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, subscription_id1, api_version1, base_url=None):
self, credentials, subscription_id, base_url=None):

self.config = CdnManagementClientConfiguration(credentials, subscription_id, subscription_id1, api_version1, base_url)
self.config = CdnManagementClientConfiguration(credentials, subscription_id, base_url)
super(CdnManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
Expand Down
13 changes: 1 addition & 12 deletions sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,16 @@ class CdnManagementClientConfiguration(AzureConfiguration):
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure Subscription ID.
:type subscription_id: str
:param subscription_id1: Azure Subscription ID.
:type subscription_id1: str
:param api_version1: Version of the API to be used with the client
request. Current version is 2019-09-01.
:type api_version1: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, subscription_id1, api_version1, base_url=None):
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if subscription_id1 is None:
raise ValueError("Parameter 'subscription_id1' must not be None.")
if api_version1 is None:
raise ValueError("Parameter 'api_version1' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

Expand All @@ -55,5 +46,3 @@ def __init__(

self.credentials = credentials
self.subscription_id = subscription_id
self.subscription_id1 = subscription_id1
self.api_version1 = api_version1
7 changes: 5 additions & 2 deletions sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
from ._models_py3 import SecretProperties
from ._models_py3 import SecurityPolicy
from ._models_py3 import SecurityPolicyParameters
from ._models_py3 import SecurityPolicyProperties
from ._models_py3 import SecurityPolicyWebApplicationFirewallAssociation
from ._models_py3 import SecurityPolicyWebApplicationFirewallParameters
from ._models_py3 import SharedPrivateLinkResourceProperties
Expand Down Expand Up @@ -318,6 +319,7 @@
from ._models import SecretProperties
from ._models import SecurityPolicy
from ._models import SecurityPolicyParameters
from ._models import SecurityPolicyProperties
from ._models import SecurityPolicyWebApplicationFirewallAssociation
from ._models import SecurityPolicyWebApplicationFirewallParameters
from ._models import SharedPrivateLinkResourceProperties
Expand Down Expand Up @@ -423,8 +425,8 @@
DomainValidationState,
EnabledState,
AFDEndpointProtocols,
SecretType,
SharedPrivateLinkResourceStatus,
AfdQueryStringCachingBehavior,
ForwardingProtocol,
LinkToDefaultDomain,
HttpsRedirect,
Expand Down Expand Up @@ -577,6 +579,7 @@
'SecretProperties',
'SecurityPolicy',
'SecurityPolicyParameters',
'SecurityPolicyProperties',
'SecurityPolicyWebApplicationFirewallAssociation',
'SecurityPolicyWebApplicationFirewallParameters',
'SharedPrivateLinkResourceProperties',
Expand Down Expand Up @@ -681,8 +684,8 @@
'DomainValidationState',
'EnabledState',
'AFDEndpointProtocols',
'SecretType',
'SharedPrivateLinkResourceStatus',
'AfdQueryStringCachingBehavior',
'ForwardingProtocol',
'LinkToDefaultDomain',
'HttpsRedirect',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,6 @@ class AFDEndpointProtocols(str, Enum):
https = "Https"


class SecretType(str, Enum):

url_signing_key = "UrlSigningKey"
customer_certificate = "CustomerCertificate"
managed_certificate = "ManagedCertificate"


class SharedPrivateLinkResourceStatus(str, Enum):

pending = "Pending"
Expand All @@ -448,6 +441,13 @@ class SharedPrivateLinkResourceStatus(str, Enum):
timeout = "Timeout"


class AfdQueryStringCachingBehavior(str, Enum):

ignore_query_string = "IgnoreQueryString"
use_query_string = "UseQueryString"
not_set = "NotSet"


class ForwardingProtocol(str, Enum):

http_only = "HttpOnly"
Expand Down
Loading

0 comments on commit 1e20065

Please sign in to comment.