-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR] cdn/resource-manager (#3184)
* Generated from 8b60f3bd649da2d300d260eefccbc22b7b4a417d (#3129) adding standard_microsoft in pricing tier * [AutoPR cdn/resource-manager] typo: cdn/resource-manager/Microsoft.Cdn/cdn.json (#3837) * Generated from 9bd4d439bc4da2a8dc8ba1020df951c35007f0ba typo: cdn/resource-manager/Microsoft.Cdn/cdn.json - Supplemnetal -> Supplemental - pictires -> pictures - exisitng -> existing - Double word "the" - acess -> access - adress -> address - reponse -> response * Packaging update of azure-mgmt-cdn * Generated from d0c6effd968d5d082f79c835c398167e86320763 (#3907) typo: Microsoft.Cdn - subscitption -> subscription - consoto -> contoso - adress -> address * Packaging update of azure-mgmt-cdn * [AutoPR cdn/resource-manager] Enable SSL on custom domains for CDN using users certificate or CDN managed c… (#4435) * Generated from 8ee873d5b30f4242e9967ea63fa128155f0904a3 Enable SSL on custom domains using users certificate or CDN managed certificate * Packaging update of azure-mgmt-cdn * 3.1.0 * Packaging update of azure-mgmt-cdn
- Loading branch information
1 parent
9ff51d2
commit a53e2fa
Showing
39 changed files
with
734 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
recursive-include tests *.py *.yaml | ||
include *.rst | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
azure-mgmt-cdn/azure/mgmt/cdn/models/cdn_certificate_source_parameters.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class CdnCertificateSourceParameters(Model): | ||
"""Defines the parameters for using CDN managed certificate for securing | ||
custom domain. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar odatatype: Required. Default value: | ||
"#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters" . | ||
:vartype odatatype: str | ||
:param certificate_type: Required. Type of certificate used. Possible | ||
values include: 'Shared', 'Dedicated' | ||
:type certificate_type: str or ~azure.mgmt.cdn.models.CertificateType | ||
""" | ||
|
||
_validation = { | ||
'odatatype': {'required': True, 'constant': True}, | ||
'certificate_type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'odatatype': {'key': '@odata\\.type', 'type': 'str'}, | ||
'certificate_type': {'key': 'certificateType', 'type': 'str'}, | ||
} | ||
|
||
odatatype = "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters" | ||
|
||
def __init__(self, **kwargs): | ||
super(CdnCertificateSourceParameters, self).__init__(**kwargs) | ||
self.certificate_type = kwargs.get('certificate_type', None) |
46 changes: 46 additions & 0 deletions
46
azure-mgmt-cdn/azure/mgmt/cdn/models/cdn_certificate_source_parameters_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class CdnCertificateSourceParameters(Model): | ||
"""Defines the parameters for using CDN managed certificate for securing | ||
custom domain. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar odatatype: Required. Default value: | ||
"#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters" . | ||
:vartype odatatype: str | ||
:param certificate_type: Required. Type of certificate used. Possible | ||
values include: 'Shared', 'Dedicated' | ||
:type certificate_type: str or ~azure.mgmt.cdn.models.CertificateType | ||
""" | ||
|
||
_validation = { | ||
'odatatype': {'required': True, 'constant': True}, | ||
'certificate_type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'odatatype': {'key': '@odata\\.type', 'type': 'str'}, | ||
'certificate_type': {'key': 'certificateType', 'type': 'str'}, | ||
} | ||
|
||
odatatype = "#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters" | ||
|
||
def __init__(self, *, certificate_type, **kwargs) -> None: | ||
super(CdnCertificateSourceParameters, self).__init__(**kwargs) | ||
self.certificate_type = certificate_type |
48 changes: 48 additions & 0 deletions
48
azure-mgmt-cdn/azure/mgmt/cdn/models/cdn_managed_https_parameters.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .custom_domain_https_parameters import CustomDomainHttpsParameters | ||
|
||
|
||
class CdnManagedHttpsParameters(CustomDomainHttpsParameters): | ||
"""Defines the certificate source parameters using CDN managed certificate for | ||
enabling SSL. | ||
All required parameters must be populated in order to send to Azure. | ||
:param protocol_type: Required. Defines the TLS extension protocol that is | ||
used for secure delivery. Possible values include: 'ServerNameIndication', | ||
'IPBased' | ||
:type protocol_type: str or ~azure.mgmt.cdn.models.ProtocolType | ||
:param certificate_source: Required. Constant filled by server. | ||
:type certificate_source: str | ||
:param certificate_source_parameters: Required. Defines the certificate | ||
source parameters using CDN managed certificate for enabling SSL. | ||
:type certificate_source_parameters: | ||
~azure.mgmt.cdn.models.CdnCertificateSourceParameters | ||
""" | ||
|
||
_validation = { | ||
'protocol_type': {'required': True}, | ||
'certificate_source': {'required': True}, | ||
'certificate_source_parameters': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'protocol_type': {'key': 'protocolType', 'type': 'str'}, | ||
'certificate_source': {'key': 'certificateSource', 'type': 'str'}, | ||
'certificate_source_parameters': {'key': 'certificateSourceParameters', 'type': 'CdnCertificateSourceParameters'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(CdnManagedHttpsParameters, self).__init__(**kwargs) | ||
self.certificate_source_parameters = kwargs.get('certificate_source_parameters', None) | ||
self.certificate_source = 'Cdn' |
48 changes: 48 additions & 0 deletions
48
azure-mgmt-cdn/azure/mgmt/cdn/models/cdn_managed_https_parameters_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .custom_domain_https_parameters_py3 import CustomDomainHttpsParameters | ||
|
||
|
||
class CdnManagedHttpsParameters(CustomDomainHttpsParameters): | ||
"""Defines the certificate source parameters using CDN managed certificate for | ||
enabling SSL. | ||
All required parameters must be populated in order to send to Azure. | ||
:param protocol_type: Required. Defines the TLS extension protocol that is | ||
used for secure delivery. Possible values include: 'ServerNameIndication', | ||
'IPBased' | ||
:type protocol_type: str or ~azure.mgmt.cdn.models.ProtocolType | ||
:param certificate_source: Required. Constant filled by server. | ||
:type certificate_source: str | ||
:param certificate_source_parameters: Required. Defines the certificate | ||
source parameters using CDN managed certificate for enabling SSL. | ||
:type certificate_source_parameters: | ||
~azure.mgmt.cdn.models.CdnCertificateSourceParameters | ||
""" | ||
|
||
_validation = { | ||
'protocol_type': {'required': True}, | ||
'certificate_source': {'required': True}, | ||
'certificate_source_parameters': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'protocol_type': {'key': 'protocolType', 'type': 'str'}, | ||
'certificate_source': {'key': 'certificateSource', 'type': 'str'}, | ||
'certificate_source_parameters': {'key': 'certificateSourceParameters', 'type': 'CdnCertificateSourceParameters'}, | ||
} | ||
|
||
def __init__(self, *, protocol_type, certificate_source_parameters, **kwargs) -> None: | ||
super(CdnManagedHttpsParameters, self).__init__(protocol_type=protocol_type, **kwargs) | ||
self.certificate_source_parameters = certificate_source_parameters | ||
self.certificate_source = 'Cdn' |
Oops, something went wrong.