Skip to content

Commit

Permalink
[T1] cdn 2020 12 10 (#15742)
Browse files Browse the repository at this point in the history
* test,version,CHANGELOG

* Update CHANGELOG.md
  • Loading branch information
msyyc authored Dec 14, 2020
1 parent ffef335 commit c8a50ec
Show file tree
Hide file tree
Showing 34 changed files with 16,050 additions and 7,886 deletions.
33 changes: 33 additions & 0 deletions sdk/cdn/azure-mgmt-cdn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Release History

## 6.0.0 (2020-12-14)

**Features**

- Model ProxyResource has a new parameter system_data
- Model OriginGroup has a new parameter system_data
- Model Endpoint has a new parameter system_data
- Model Origin has a new parameter system_data
- Model TrackedResource has a new parameter system_data
- Model EdgeNode has a new parameter system_data
- Model CdnWebApplicationFirewallPolicy has a new parameter system_data
- Model CustomDomain has a new parameter system_data
- Model Profile has a new parameter frontdoor_id
- Model Profile has a new parameter system_data
- Added operation group AFDEndpointsOperations
- Added operation group RuleSetsOperations
- Added operation group AFDOriginGroupsOperations
- Added operation group ValidateOperations
- Added operation group SecretsOperations
- Added operation group AFDOriginsOperations
- Added operation group SecurityPoliciesOperations
- Added operation group RoutesOperations
- Added operation group LogAnalyticsOperations
- Added operation group AFDProfilesOperations
- Added operation group RulesOperations
- Added operation group AFDCustomDomainsOperations

**Breaking changes**

- Parameter odatatype of model UrlSigningActionParameters is now required
- Model UrlSigningActionParameters no longer has parameter ip_subnets
- Model UrlSigningActionParameters no longer has parameter key_id

## 5.2.0 (2020-12-01)

**Features**
Expand Down
71 changes: 68 additions & 3 deletions sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_cdn_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@
from .operations import ResourceUsageOperations
from .operations import Operations
from .operations import EdgeNodesOperations
from .operations import AFDProfilesOperations
from .operations import AFDCustomDomainsOperations
from .operations import AFDEndpointsOperations
from .operations import AFDOriginGroupsOperations
from .operations import AFDOriginsOperations
from .operations import RoutesOperations
from .operations import RuleSetsOperations
from .operations import RulesOperations
from .operations import SecurityPoliciesOperations
from .operations import SecretsOperations
from .operations import ValidateOperations
from .operations import LogAnalyticsOperations
from .operations import PoliciesOperations
from .operations import ManagedRuleSetsOperations
from . import models
Expand Down Expand Up @@ -49,6 +61,30 @@ 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 afd_profiles: AFDProfiles operations
:vartype afd_profiles: azure.mgmt.cdn.operations.AFDProfilesOperations
:ivar afd_custom_domains: AFDCustomDomains operations
:vartype afd_custom_domains: azure.mgmt.cdn.operations.AFDCustomDomainsOperations
:ivar afd_endpoints: AFDEndpoints operations
:vartype afd_endpoints: azure.mgmt.cdn.operations.AFDEndpointsOperations
:ivar afd_origin_groups: AFDOriginGroups operations
:vartype afd_origin_groups: azure.mgmt.cdn.operations.AFDOriginGroupsOperations
:ivar afd_origins: AFDOrigins operations
:vartype afd_origins: azure.mgmt.cdn.operations.AFDOriginsOperations
:ivar routes: Routes operations
:vartype routes: azure.mgmt.cdn.operations.RoutesOperations
:ivar rule_sets: RuleSets operations
:vartype rule_sets: azure.mgmt.cdn.operations.RuleSetsOperations
:ivar rules: Rules operations
:vartype rules: azure.mgmt.cdn.operations.RulesOperations
:ivar security_policies: SecurityPolicies operations
:vartype security_policies: azure.mgmt.cdn.operations.SecurityPoliciesOperations
:ivar secrets: Secrets operations
:vartype secrets: azure.mgmt.cdn.operations.SecretsOperations
:ivar validate: Validate operations
:vartype validate: azure.mgmt.cdn.operations.ValidateOperations
:ivar log_analytics: LogAnalytics operations
:vartype log_analytics: azure.mgmt.cdn.operations.LogAnalyticsOperations
:ivar policies: Policies operations
:vartype policies: azure.mgmt.cdn.operations.PoliciesOperations
:ivar managed_rule_sets: ManagedRuleSets operations
Expand All @@ -59,17 +95,22 @@ 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, base_url=None):
self, credentials, subscription_id, subscription_id1, api_version1, base_url=None):

This comment has been minimized.

Copy link
@ChenglongLiu

ChenglongLiu Dec 28, 2020

Member

The two subscription_id1, api_version1 cause the CLI test to fail.

“TypeError: __init__() missing 2 required positional arguments: 'subscription_id1' and 'api_version1'”. 

I'd like to know how to fix this.


self.config = CdnManagementClientConfiguration(credentials, subscription_id, base_url)
self.config = CdnManagementClientConfiguration(credentials, subscription_id, subscription_id1, api_version1, 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)}
self.api_version = '2020-04-15'
self.api_version = '2020-09-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -89,6 +130,30 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.edge_nodes = EdgeNodesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.afd_profiles = AFDProfilesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.afd_custom_domains = AFDCustomDomainsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.afd_endpoints = AFDEndpointsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.afd_origin_groups = AFDOriginGroupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.afd_origins = AFDOriginsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.routes = RoutesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.rule_sets = RuleSetsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.rules = RulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.security_policies = SecurityPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.secrets = SecretsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.validate = ValidateOperations(
self._client, self.config, self._serialize, self._deserialize)
self.log_analytics = LogAnalyticsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.policies = PoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_rule_sets = ManagedRuleSetsOperations(
Expand Down
13 changes: 12 additions & 1 deletion sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,25 @@ 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, base_url=None):
self, credentials, subscription_id, subscription_id1, api_version1, 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 @@ -46,3 +55,5 @@ def __init__(

self.credentials = credentials
self.subscription_id = subscription_id
self.subscription_id1 = subscription_id1
self.api_version1 = api_version1
Loading

0 comments on commit c8a50ec

Please sign in to comment.