From 620c3b42c1019fd5ad03b8778fed6af5534ac131 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 20 Aug 2026 22:52:23 +0000 Subject: [PATCH] Configurations: 'specification/cdn/resource-manager/Microsoft.Cdn/Cdn/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: '3341e9a7c51cfeb60ebd1cf2c4c77dfc960352b9' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6727894 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- sdk/cdn/azure-mgmt-cdn/CHANGELOG.md | 41 + sdk/cdn/azure-mgmt-cdn/_metadata.json | 10 +- sdk/cdn/azure-mgmt-cdn/api.md | 1170 +++++---- sdk/cdn/azure-mgmt-cdn/api.metadata.yml | 6 +- .../azure-mgmt-cdn/apiview-properties.json | 29 +- .../azure-mgmt-cdn/azure/mgmt/cdn/_client.py | 6 +- .../azure/mgmt/cdn/_configuration.py | 7 +- .../azure-mgmt-cdn/azure/mgmt/cdn/_patch.py | 1 - .../azure/mgmt/cdn/_utils/model_base.py | 37 +- .../azure/mgmt/cdn/_utils/serialization.py | 6 +- .../azure-mgmt-cdn/azure/mgmt/cdn/_version.py | 2 +- .../azure/mgmt/cdn/aio/_client.py | 6 +- .../azure/mgmt/cdn/aio/_configuration.py | 7 +- .../azure/mgmt/cdn/aio/_patch.py | 1 - .../mgmt/cdn/aio/operations/_operations.py | 46 +- .../azure/mgmt/cdn/aio/operations/_patch.py | 1 - .../azure/mgmt/cdn/models/__init__.py | 38 + .../azure/mgmt/cdn/models/_enums.py | 118 + .../azure/mgmt/cdn/models/_models.py | 1279 +++++++--- .../azure/mgmt/cdn/models/_patch.py | 1 - .../azure/mgmt/cdn/operations/_operations.py | 276 +- .../azure/mgmt/cdn/operations/_patch.py | 1 - .../azure-mgmt-cdn/azure/mgmt/cdn/types.py | 2230 ++++++++++------- .../afd_custom_domains_create.py | 4 +- .../afd_custom_domains_delete.py | 2 +- .../afd_custom_domains_get.py | 2 +- .../afd_custom_domains_list_by_profile.py | 2 +- ...custom_domains_refresh_validation_token.py | 2 +- .../afd_custom_domains_update.py | 4 +- .../generated_samples/afd_endpoints_create.py | 2 +- .../generated_samples/afd_endpoints_delete.py | 2 +- .../generated_samples/afd_endpoints_get.py | 2 +- .../afd_endpoints_list_by_profile.py | 2 +- .../afd_endpoints_list_resource_usage.py | 2 +- .../afd_endpoints_purge_content.py | 2 +- .../generated_samples/afd_endpoints_update.py | 2 +- .../afd_endpoints_validate_custom_domain.py | 2 +- .../afd_origin_groups_create.py | 2 +- .../afd_origin_groups_delete.py | 2 +- .../afd_origin_groups_get.py | 2 +- .../afd_origin_groups_list_by_profile.py | 2 +- .../afd_origin_groups_list_resource_usage.py | 2 +- .../afd_origin_groups_update.py | 2 +- .../generated_samples/afd_origins_create.py | 2 +- ...igins_create_custom_certificate_subject.py | 56 + .../afd_origins_create_origin_hostname.py | 55 + ...te_with_incoming_host_header_validation.py | 55 + .../generated_samples/afd_origins_delete.py | 2 +- .../generated_samples/afd_origins_get.py | 2 +- .../afd_origins_list_by_origin_group.py | 2 +- .../generated_samples/afd_origins_update.py | 2 +- ...igins_update_custom_certificate_subject.py | 56 + .../afd_origins_update_origin_hostname.py | 55 + ...ofiles_check_endpoint_name_availability.py | 2 +- ...d_profiles_check_host_name_availability.py | 2 +- .../afd_profiles_list_resource_usage.py | 2 +- .../generated_samples/afd_profiles_upgrade.py | 2 +- .../afd_profiles_validate_secret.py | 2 +- .../cdn_profiles_can_migrate.py | 2 +- .../generated_samples/cdn_profiles_migrate.py | 2 +- .../check_endpoint_name_availability.py | 2 +- .../check_name_availability.py | 2 +- ...eck_name_availability_with_subscription.py | 2 +- .../custom_domains_create.py | 2 +- .../custom_domains_delete.py | 2 +- .../custom_domains_disable_custom_https.py | 2 +- ..._domains_enable_custom_https_using_byoc.py | 2 +- ...tom_https_using_cdn_managed_certificate.py | 2 +- .../generated_samples/custom_domains_get.py | 2 +- .../custom_domains_list_by_endpoint.py | 2 +- .../generated_samples/edge_nodes_list.py | 2 +- .../generated_samples/endpoints_create.py | 2 +- .../generated_samples/endpoints_delete.py | 2 +- .../generated_samples/endpoints_get.py | 2 +- .../endpoints_list_by_profile.py | 2 +- .../endpoints_list_resource_usage.py | 2 +- .../endpoints_load_content.py | 2 +- .../endpoints_purge_content.py | 2 +- .../generated_samples/endpoints_start.py | 2 +- .../generated_samples/endpoints_stop.py | 2 +- .../generated_samples/endpoints_update.py | 2 +- .../endpoints_validate_custom_domain.py | 2 +- ...g_analytics_get_log_analytics_locations.py | 2 +- ...log_analytics_get_log_analytics_metrics.py | 2 +- ...og_analytics_get_log_analytics_rankings.py | 2 +- ...g_analytics_get_log_analytics_resources.py | 2 +- ...analytics_get_waf_log_analytics_metrics.py | 2 +- ...nalytics_get_waf_log_analytics_rankings.py | 2 +- .../generated_samples/operations_list.py | 2 +- .../generated_samples/origin_groups_create.py | 2 +- .../generated_samples/origin_groups_delete.py | 2 +- .../generated_samples/origin_groups_get.py | 2 +- .../origin_groups_list_by_endpoint.py | 2 +- .../generated_samples/origin_groups_update.py | 2 +- .../generated_samples/origins_create.py | 2 +- .../generated_samples/origins_delete.py | 2 +- .../generated_samples/origins_get.py | 2 +- .../origins_list_by_endpoint.py | 2 +- .../generated_samples/origins_update.py | 2 +- .../generated_samples/profiles_can_migrate.py | 2 +- .../generated_samples/profiles_create.py | 2 +- .../generated_samples/profiles_delete.py | 2 +- .../profiles_generate_sso_uri.py | 2 +- .../generated_samples/profiles_get.py | 2 +- .../generated_samples/profiles_list.py | 2 +- .../profiles_list_by_resource_group.py | 2 +- .../profiles_list_resource_usage.py | 2 +- ...files_list_supported_optimization_types.py | 2 +- .../generated_samples/profiles_migrate.py | 2 +- .../profiles_migration_abort.py | 2 +- .../profiles_migration_commit.py | 2 +- .../generated_samples/profiles_update.py | 2 +- .../generated_samples/resource_usage_list.py | 2 +- .../generated_samples/routes_create.py | 2 +- .../generated_samples/routes_delete.py | 2 +- .../generated_samples/routes_get.py | 2 +- .../routes_list_by_endpoint.py | 2 +- .../generated_samples/routes_update.py | 2 +- .../generated_samples/rule_sets_create.py | 2 +- .../generated_samples/rule_sets_delete.py | 2 +- .../generated_samples/rule_sets_get.py | 2 +- .../rule_sets_list_by_profile.py | 2 +- .../rule_sets_list_resource_usage.py | 2 +- .../generated_samples/rules_create.py | 2 +- .../generated_samples/rules_delete.py | 2 +- .../generated_samples/rules_get.py | 2 +- .../rules_list_by_rule_set.py | 2 +- .../generated_samples/rules_update.py | 2 +- .../generated_samples/secrets_create.py | 2 +- ...ecrets_create_customer_certificate_type.py | 56 + .../secrets_create_url_signing_key_type.py | 56 + .../generated_samples/secrets_delete.py | 2 +- .../generated_samples/secrets_get.py | 2 +- .../secrets_list_by_profile.py | 2 +- .../security_policies_create.py | 2 +- .../security_policies_delete.py | 2 +- .../security_policies_get.py | 2 +- .../security_policies_list_by_profile.py | 2 +- .../security_policies_patch.py | 2 +- .../generated_samples/validate_probe.py | 2 +- .../waf_list_managed_rule_sets.py | 2 +- .../generated_samples/waf_list_policies.py | 2 +- .../generated_samples/waf_patch_policy.py | 2 +- .../waf_policy_create_or_update.py | 2 +- .../generated_samples/waf_policy_delete.py | 2 +- .../generated_samples/waf_policy_get.py | 2 +- ...anagement_afd_custom_domains_operations.py | 6 + ...ent_afd_custom_domains_operations_async.py | 6 + ...cdn_management_afd_endpoints_operations.py | 3 +- ...nagement_afd_endpoints_operations_async.py | 3 +- ...management_afd_origin_groups_operations.py | 14 +- ...ment_afd_origin_groups_operations_async.py | 14 +- ...t_cdn_management_afd_origins_operations.py | 4 + ...management_afd_origins_operations_async.py | 4 + sdk/cdn/azure-mgmt-cdn/tsp-location.yaml | 2 +- 155 files changed, 3986 insertions(+), 2014 deletions(-) create mode 100644 sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_custom_certificate_subject.py create mode 100644 sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_origin_hostname.py create mode 100644 sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_with_incoming_host_header_validation.py create mode 100644 sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update_custom_certificate_subject.py create mode 100644 sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update_origin_hostname.py create mode 100644 sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create_customer_certificate_type.py create mode 100644 sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create_url_signing_key_type.py diff --git a/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md b/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md index dccb944ced85..6c47d8b137b9 100644 --- a/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md +++ b/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md @@ -1,5 +1,46 @@ # Release History +## 14.1.0 (2026-08-20) + +### Features Added + + - Model `AFDDomainHttpsParameters` added property `server_tls_group_policy` + - Model `AFDDomainHttpsParameters` added property `server_tls_groups` + - Model `AFDDomainProperties` added property `mtls_settings` + - Model `AFDDomainUpdatePropertiesParameters` added property `mtls_settings` + - Model `AFDEndpointProperties` added property `enforce_mtls` + - Model `AFDEndpointPropertiesUpdateParameters` added property `enforce_mtls` + - Model `AFDOriginProperties` added property `certificate_name_check_validation_mode` + - Model `AFDOriginProperties` added property `custom_certificate_subjects` + - Model `AFDOriginUpdatePropertiesParameters` added property `certificate_name_check_validation_mode` + - Model `AFDOriginUpdatePropertiesParameters` added property `custom_certificate_subjects` + - Enum `DeliveryRuleActionEnum` added member `AFD_URL_SIGNING` + - Enum `DeliveryRuleActionEnum` added member `EDGE_ACTION` + - Enum `DeliveryRuleActionParametersType` added member `DELIVERY_RULE_EDGE_ACTION_PARAMETERS` + - Model `OriginAuthenticationProperties` added property `token_destination_header` + - Enum `SecretType` added member `MTLS_CERTIFICATE_CHAIN` + - Model `SecurityPolicyWebApplicationFirewallAssociation` added property `routes` + - Model `SecurityPolicyWebApplicationFirewallParameters` added property `is_profile_level` + - Added model `AFDDomainMtlsParameters` + - Added model `AfdSecretMtlsCertificateChain` + - Added enum `AfdServerTlsGroup` + - Added enum `AfdServerTlsGroupPolicy` + - Added model `AfdUrlSigningAction` + - Added model `AfdUrlSigningActionParameters` + - Added enum `CertificateNameCheckValidationMode` + - Added enum `CertificateRevocationCheckEnabledState` + - Added model `ClientCertificateRequiredAndOriginValidatesAdvancedSettings` + - Added model `ClientCertificateRequiredAndValidatedAdvancedSettings` + - Added model `ClientCertificateValidatedIfPresentedAdvancedSettings` + - Added model `CompleteMtlsPassthroughToOriginAdvancedSettings` + - Added model `DeliveryRuleEdgeActionParameters` + - Added model `EdgeAction` + - Added enum `EnforceMtlsEnabledState` + - Added enum `InvocationPoint` + - Added enum `MtlsScenarioType` + - Added enum `OriginAuthenticationTokenDestinationHeader` + - Added enum `TypeName` + ## 14.0.0 (2026-07-13) ### Features Added diff --git a/sdk/cdn/azure-mgmt-cdn/_metadata.json b/sdk/cdn/azure-mgmt-cdn/_metadata.json index 02000586307a..6d19c2baaaa0 100644 --- a/sdk/cdn/azure-mgmt-cdn/_metadata.json +++ b/sdk/cdn/azure-mgmt-cdn/_metadata.json @@ -1,11 +1,11 @@ { - "apiVersion": "2025-12-01", + "apiVersion": "2026-07-01", "apiVersions": { - "Microsoft.Cdn": "2025-12-01" + "Microsoft.Cdn": "2026-07-01" }, - "commit": "965041b72edd6a89003243f98e36c74ffbfc33c9", + "commit": "3341e9a7c51cfeb60ebd1cf2c4c77dfc960352b9", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/cdn/resource-manager/Microsoft.Cdn/Cdn", - "emitterVersion": "0.63.2", - "httpClientPythonVersion": "^0.34.1" + "emitterVersion": "0.63.5", + "httpClientPythonVersion": "^0.36.0" } \ No newline at end of file diff --git a/sdk/cdn/azure-mgmt-cdn/api.md b/sdk/cdn/azure-mgmt-cdn/api.md index 85c21a22dec1..4febee324526 100644 --- a/sdk/cdn/azure-mgmt-cdn/api.md +++ b/sdk/cdn/azure-mgmt-cdn/api.md @@ -2622,6 +2622,8 @@ namespace azure.mgmt.cdn.models customized_cipher_suite_set: Optional[AFDDomainHttpsCustomizedCipherSuiteSet] minimum_tls_version: Optional[Union[str, AfdMinimumTlsVersion]] secret: Optional[ResourceReference] + server_tls_group_policy: Optional[Union[str, AfdServerTlsGroupPolicy]] + server_tls_groups: Optional[list[Union[str, AfdServerTlsGroup]]] @overload def __init__( @@ -2631,7 +2633,23 @@ namespace azure.mgmt.cdn.models cipher_suite_set_type: Optional[Union[str, AfdCipherSuiteSetType]] = ..., customized_cipher_suite_set: Optional[AFDDomainHttpsCustomizedCipherSuiteSet] = ..., minimum_tls_version: Optional[Union[str, AfdMinimumTlsVersion]] = ..., - secret: Optional[ResourceReference] = ... + secret: Optional[ResourceReference] = ..., + server_tls_group_policy: Optional[Union[str, AfdServerTlsGroupPolicy]] = ..., + server_tls_groups: Optional[list[Union[str, AfdServerTlsGroup]]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cdn.models.AFDDomainMtlsParameters(_Model): + scenario: str + + @overload + def __init__( + self, + *, + scenario: str ) -> None: ... @overload @@ -2644,6 +2662,7 @@ namespace azure.mgmt.cdn.models domain_validation_state: Optional[Union[str, DomainValidationState]] extended_properties: Optional[dict[str, str]] host_name: str + mtls_settings: Optional[AFDDomainMtlsParameters] pre_validated_custom_domain_resource_id: Optional[ResourceReference] profile_name: Optional[str] provisioning_state: Optional[Union[str, AfdProvisioningState]] @@ -2657,6 +2676,7 @@ namespace azure.mgmt.cdn.models azure_dns_zone: Optional[ResourceReference] = ..., extended_properties: Optional[dict[str, str]] = ..., host_name: str, + mtls_settings: Optional[AFDDomainMtlsParameters] = ..., pre_validated_custom_domain_resource_id: Optional[ResourceReference] = ..., tls_settings: Optional[AFDDomainHttpsParameters] = ... ) -> None: ... @@ -2689,6 +2709,7 @@ namespace azure.mgmt.cdn.models class azure.mgmt.cdn.models.AFDDomainUpdatePropertiesParameters(_Model): azure_dns_zone: Optional[ResourceReference] + mtls_settings: Optional[AFDDomainMtlsParameters] pre_validated_custom_domain_resource_id: Optional[ResourceReference] profile_name: Optional[str] tls_settings: Optional[AFDDomainHttpsParameters] @@ -2698,6 +2719,7 @@ namespace azure.mgmt.cdn.models self, *, azure_dns_zone: Optional[ResourceReference] = ..., + mtls_settings: Optional[AFDDomainMtlsParameters] = ..., pre_validated_custom_domain_resource_id: Optional[ResourceReference] = ..., tls_settings: Optional[AFDDomainHttpsParameters] = ... ) -> None: ... @@ -2740,6 +2762,7 @@ namespace azure.mgmt.cdn.models auto_generated_domain_name_label_scope: Optional[Union[str, AutoGeneratedDomainNameLabelScope]] deployment_status: Optional[Union[str, DeploymentStatus]] enabled_state: Optional[Union[str, EnabledState]] + enforce_mtls: Optional[Union[str, EnforceMtlsEnabledState]] host_name: Optional[str] profile_name: Optional[str] provisioning_state: Optional[Union[str, AfdProvisioningState]] @@ -2749,7 +2772,8 @@ namespace azure.mgmt.cdn.models self, *, auto_generated_domain_name_label_scope: Optional[Union[str, AutoGeneratedDomainNameLabelScope]] = ..., - enabled_state: Optional[Union[str, EnabledState]] = ... + enabled_state: Optional[Union[str, EnabledState]] = ..., + enforce_mtls: Optional[Union[str, EnforceMtlsEnabledState]] = ... ) -> None: ... @overload @@ -2758,13 +2782,15 @@ namespace azure.mgmt.cdn.models class azure.mgmt.cdn.models.AFDEndpointPropertiesUpdateParameters(_Model): enabled_state: Optional[Union[str, EnabledState]] + enforce_mtls: Optional[Union[str, EnforceMtlsEnabledState]] profile_name: Optional[str] @overload def __init__( self, *, - enabled_state: Optional[Union[str, EnabledState]] = ... + enabled_state: Optional[Union[str, EnabledState]] = ..., + enforce_mtls: Optional[Union[str, EnforceMtlsEnabledState]] = ... ) -> None: ... @overload @@ -2924,6 +2950,8 @@ namespace azure.mgmt.cdn.models class azure.mgmt.cdn.models.AFDOriginProperties(_Model): azure_origin: Optional[ResourceReference] + certificate_name_check_validation_mode: Optional[Union[str, CertificateNameCheckValidationMode]] + custom_certificate_subjects: Optional[list[str]] deployment_status: Optional[Union[str, DeploymentStatus]] enabled_state: Optional[Union[str, EnabledState]] enforce_certificate_name_check: Optional[bool] @@ -2942,6 +2970,8 @@ namespace azure.mgmt.cdn.models self, *, azure_origin: Optional[ResourceReference] = ..., + certificate_name_check_validation_mode: Optional[Union[str, CertificateNameCheckValidationMode]] = ..., + custom_certificate_subjects: Optional[list[str]] = ..., enabled_state: Optional[Union[str, EnabledState]] = ..., enforce_certificate_name_check: Optional[bool] = ..., host_name: Optional[str] = ..., @@ -2981,6 +3011,8 @@ namespace azure.mgmt.cdn.models class azure.mgmt.cdn.models.AFDOriginUpdatePropertiesParameters(_Model): azure_origin: Optional[ResourceReference] + certificate_name_check_validation_mode: Optional[Union[str, CertificateNameCheckValidationMode]] + custom_certificate_subjects: Optional[list[str]] enabled_state: Optional[Union[str, EnabledState]] enforce_certificate_name_check: Optional[bool] host_name: Optional[str] @@ -2997,6 +3029,8 @@ namespace azure.mgmt.cdn.models self, *, azure_origin: Optional[ResourceReference] = ..., + certificate_name_check_validation_mode: Optional[Union[str, CertificateNameCheckValidationMode]] = ..., + custom_certificate_subjects: Optional[list[str]] = ..., enabled_state: Optional[Union[str, EnabledState]] = ..., enforce_certificate_name_check: Optional[bool] = ..., host_name: Optional[str] = ..., @@ -3121,6 +3155,75 @@ namespace azure.mgmt.cdn.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.cdn.models.AfdSecretMtlsCertificateChain(SecretParameters, discriminator='MtlsCertificateChain'): + expiration_date: Optional[datetime] + secret_source: ResourceReference + secret_version: str + type: Literal[SecretType.MTLS_CERTIFICATE_CHAIN] + + @overload + def __init__( + self, + *, + secret_source: ResourceReference, + secret_version: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cdn.models.AfdServerTlsGroup(str, Enum, metaclass=CaseInsensitiveEnumMeta): + PRIME256_V1 = "prime256v1" + SECP384_R1 = "secp384r1" + SECP521_R1 = "secp521r1" + SEC_P256_R1_MLKEM768 = "SecP256r1MLKEM768" + SEC_P384_R1_MLKEM1024 = "SecP384r1MLKEM1024" + X25519 = "X25519" + X25519_MLKEM768 = "X25519MLKEM768" + + + class azure.mgmt.cdn.models.AfdServerTlsGroupPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CUSTOM = "Custom" + ENHANCED = "Enhanced" + STANDARD = "Standard" + + + class azure.mgmt.cdn.models.AfdUrlSigningAction(DeliveryRuleAction, discriminator='AfdUrlSigning'): + name: Literal[DeliveryRuleActionEnum.AFD_URL_SIGNING] + parameters: AfdUrlSigningActionParameters + + @overload + def __init__( + self, + *, + parameters: AfdUrlSigningActionParameters + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cdn.models.AfdUrlSigningActionParameters(_Model): + algorithm: Optional[Union[str, Algorithm]] + key_group_reference: ResourceReference + parameter_name_override: Optional[list[UrlSigningParamIdentifier]] + type_name: Union[str, TypeName] + + @overload + def __init__( + self, + *, + algorithm: Optional[Union[str, Algorithm]] = ..., + key_group_reference: ResourceReference, + parameter_name_override: Optional[list[UrlSigningParamIdentifier]] = ..., + type_name: Union[str, TypeName] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.cdn.models.Algorithm(str, Enum, metaclass=CaseInsensitiveEnumMeta): SHA256 = "SHA256" @@ -3439,6 +3542,17 @@ namespace azure.mgmt.cdn.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.cdn.models.CertificateNameCheckValidationMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CUSTOM_CERTIFICATE_SUBJECT = "CustomCertificateSubject" + INCOMING_HOST_HEADER = "IncomingHostHeader" + ORIGIN_HOSTNAME = "OriginHostname" + + + class azure.mgmt.cdn.models.CertificateRevocationCheckEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + DISABLED = "Disabled" + ENABLED = "Enabled" + + class azure.mgmt.cdn.models.CertificateSource(str, Enum, metaclass=CaseInsensitiveEnumMeta): AZURE_KEY_VAULT = "AzureKeyVault" CDN = "Cdn" @@ -3545,6 +3659,54 @@ namespace azure.mgmt.cdn.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.cdn.models.ClientCertificateRequiredAndOriginValidatesAdvancedSettings(AFDDomainMtlsParameters, discriminator='ClientCertificateRequiredAndOriginValidates'): + scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES] + + @overload + def __init__(self) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cdn.models.ClientCertificateRequiredAndValidatedAdvancedSettings(AFDDomainMtlsParameters, discriminator='ClientCertificateRequiredAndValidated'): + allowed_fqdns: Optional[list[str]] + certificate_revocation_check: Optional[Union[str, CertificateRevocationCheckEnabledState]] + scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED] + secrets: list[ResourceReference] + + @overload + def __init__( + self, + *, + allowed_fqdns: Optional[list[str]] = ..., + certificate_revocation_check: Optional[Union[str, CertificateRevocationCheckEnabledState]] = ..., + secrets: list[ResourceReference] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.cdn.models.ClientCertificateValidatedIfPresentedAdvancedSettings(AFDDomainMtlsParameters, discriminator='ClientCertificateValidatedIfPresented'): + allowed_fqdns: Optional[list[str]] + certificate_revocation_check: Optional[Union[str, CertificateRevocationCheckEnabledState]] + scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED] + secrets: list[ResourceReference] + + @overload + def __init__( + self, + *, + allowed_fqdns: Optional[list[str]] = ..., + certificate_revocation_check: Optional[Union[str, CertificateRevocationCheckEnabledState]] = ..., + secrets: list[ResourceReference] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.cdn.models.ClientPortMatchConditionParameters(DeliveryRuleConditionParameters, discriminator='DeliveryRuleClientPortConditionParameters'): match_values: Optional[list[str]] negate_condition: Optional[bool] @@ -3579,6 +3741,16 @@ namespace azure.mgmt.cdn.models REG_EX = "RegEx" + class azure.mgmt.cdn.models.CompleteMtlsPassthroughToOriginAdvancedSettings(AFDDomainMtlsParameters, discriminator='CompleteMtlsPassthroughToOrigin'): + scenario: Literal[MtlsScenarioType.COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN] + + @overload + def __init__(self) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.cdn.models.Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems(_Model): date_time: Optional[datetime] value: Optional[float] @@ -4110,8 +4282,10 @@ namespace azure.mgmt.cdn.models class azure.mgmt.cdn.models.DeliveryRuleActionEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): + AFD_URL_SIGNING = "AfdUrlSigning" CACHE_EXPIRATION = "CacheExpiration" CACHE_KEY_QUERY_STRING = "CacheKeyQueryString" + EDGE_ACTION = "EdgeAction" MODIFY_REQUEST_HEADER = "ModifyRequestHeader" MODIFY_RESPONSE_HEADER = "ModifyResponseHeader" ORIGIN_GROUP_OVERRIDE = "OriginGroupOverride" @@ -4138,6 +4312,7 @@ namespace azure.mgmt.cdn.models class azure.mgmt.cdn.models.DeliveryRuleActionParametersType(str, Enum, metaclass=CaseInsensitiveEnumMeta): DELIVERY_RULE_CACHE_EXPIRATION_ACTION_PARAMETERS = "DeliveryRuleCacheExpirationActionParameters" DELIVERY_RULE_CACHE_KEY_QUERY_STRING_BEHAVIOR_ACTION_PARAMETERS = "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters" + DELIVERY_RULE_EDGE_ACTION_PARAMETERS = "DeliveryRuleEdgeActionParameters" DELIVERY_RULE_HEADER_ACTION_PARAMETERS = "DeliveryRuleHeaderActionParameters" DELIVERY_RULE_ORIGIN_GROUP_OVERRIDE_ACTION_PARAMETERS = "DeliveryRuleOriginGroupOverrideActionParameters" DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS = "DeliveryRuleRouteConfigurationOverrideActionParameters" @@ -4256,6 +4431,23 @@ namespace azure.mgmt.cdn.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.cdn.models.DeliveryRuleEdgeActionParameters(DeliveryRuleActionParameters, discriminator='DeliveryRuleEdgeActionParameters'): + edge_action_reference: ResourceReference + invocation_point: Union[str, InvocationPoint] + type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_EDGE_ACTION_PARAMETERS] + + @overload + def __init__( + self, + *, + edge_action_reference: ResourceReference, + invocation_point: Union[str, InvocationPoint] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.cdn.models.DeliveryRuleHostNameCondition(DeliveryRuleCondition, discriminator='HostName'): name: Literal[MatchVariable.HOST_NAME] parameters: HostNameMatchConditionParameters @@ -4604,6 +4796,21 @@ namespace azure.mgmt.cdn.models UNKNOWN = "Unknown" + class azure.mgmt.cdn.models.EdgeAction(DeliveryRuleAction, discriminator='EdgeAction'): + name: Literal[DeliveryRuleActionEnum.EDGE_ACTION] + parameters: DeliveryRuleEdgeActionParameters + + @overload + def __init__( + self, + *, + parameters: DeliveryRuleEdgeActionParameters + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.cdn.models.EdgeNode(ProxyResource): id: str name: str @@ -4838,6 +5045,11 @@ namespace azure.mgmt.cdn.models ) -> None: ... + class azure.mgmt.cdn.models.EnforceMtlsEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + DISABLED = "Disabled" + ENABLED = "Enabled" + + class azure.mgmt.cdn.models.ErrorAdditionalInfo(_Model): info: Optional[Any] type: Optional[str] @@ -5025,6 +5237,11 @@ namespace azure.mgmt.cdn.models ENABLED = "Enabled" + class azure.mgmt.cdn.models.InvocationPoint(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CLIENT_REQUEST = "ClientRequest" + ORIGIN_REQUEST = "OriginRequest" + + class azure.mgmt.cdn.models.IpAddressGroup(_Model): delivery_region: Optional[str] ipv4_addresses: Optional[list[CidrIpAddress]] @@ -5644,6 +5861,13 @@ namespace azure.mgmt.cdn.models TLS12 = "TLS12" + class azure.mgmt.cdn.models.MtlsScenarioType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES = "ClientCertificateRequiredAndOriginValidates" + CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED = "ClientCertificateRequiredAndValidated" + CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED = "ClientCertificateValidatedIfPresented" + COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN = "CompleteMtlsPassthroughToOrigin" + + class azure.mgmt.cdn.models.Operation(_Model): display: Optional[OperationDisplay] is_data_action: Optional[bool] @@ -5744,6 +5968,7 @@ namespace azure.mgmt.cdn.models class azure.mgmt.cdn.models.OriginAuthenticationProperties(_Model): scope: Optional[str] + token_destination_header: Optional[Union[str, OriginAuthenticationTokenDestinationHeader]] type: Optional[Union[str, OriginAuthenticationType]] user_assigned_identity: Optional[ResourceReference] @@ -5752,6 +5977,7 @@ namespace azure.mgmt.cdn.models self, *, scope: Optional[str] = ..., + token_destination_header: Optional[Union[str, OriginAuthenticationTokenDestinationHeader]] = ..., type: Optional[Union[str, OriginAuthenticationType]] = ..., user_assigned_identity: Optional[ResourceReference] = ... ) -> None: ... @@ -5760,6 +5986,11 @@ namespace azure.mgmt.cdn.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.cdn.models.OriginAuthenticationTokenDestinationHeader(str, Enum, metaclass=CaseInsensitiveEnumMeta): + AUTHORIZATION = "Authorization" + X_AZURE_AUTHORIZATION = "X-Azure-Authorization" + + class azure.mgmt.cdn.models.OriginAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): SYSTEM_ASSIGNED_IDENTITY = "SystemAssignedIdentity" USER_ASSIGNED_IDENTITY = "UserAssignedIdentity" @@ -7211,6 +7442,7 @@ namespace azure.mgmt.cdn.models AZURE_FIRST_PARTY_MANAGED_CERTIFICATE = "AzureFirstPartyManagedCertificate" CUSTOMER_CERTIFICATE = "CustomerCertificate" MANAGED_CERTIFICATE = "ManagedCertificate" + MTLS_CERTIFICATE_CHAIN = "MtlsCertificateChain" URL_SIGNING_KEY = "UrlSigningKey" @@ -7314,13 +7546,15 @@ namespace azure.mgmt.cdn.models class azure.mgmt.cdn.models.SecurityPolicyWebApplicationFirewallAssociation(_Model): domains: Optional[list[ActivatedResourceReference]] patterns_to_match: Optional[list[str]] + routes: Optional[list[ResourceReference]] @overload def __init__( self, *, domains: Optional[list[ActivatedResourceReference]] = ..., - patterns_to_match: Optional[list[str]] = ... + patterns_to_match: Optional[list[str]] = ..., + routes: Optional[list[ResourceReference]] = ... ) -> None: ... @overload @@ -7329,6 +7563,7 @@ namespace azure.mgmt.cdn.models class azure.mgmt.cdn.models.SecurityPolicyWebApplicationFirewallParameters(SecurityPolicyPropertiesParameters, discriminator='WebApplicationFirewall'): associations: Optional[list[SecurityPolicyWebApplicationFirewallAssociation]] + is_profile_level: Optional[bool] type: Literal[SecurityPolicyType.WEB_APPLICATION_FIREWALL] waf_policy: Optional[ResourceReference] @@ -7337,6 +7572,7 @@ namespace azure.mgmt.cdn.models self, *, associations: Optional[list[SecurityPolicyWebApplicationFirewallAssociation]] = ..., + is_profile_level: Optional[bool] = ..., waf_policy: Optional[ResourceReference] = ... ) -> None: ... @@ -7588,6 +7824,10 @@ namespace azure.mgmt.cdn.models URL_ENCODE = "UrlEncode" + class azure.mgmt.cdn.models.TypeName(str, Enum, metaclass=CaseInsensitiveEnumMeta): + DELIVERY_RULE_AFD_URL_SIGNING_ACTION_PARAMETERS = "DeliveryRuleAfdUrlSigningActionParameters" + + class azure.mgmt.cdn.models.UpdateRule(str, Enum, metaclass=CaseInsensitiveEnumMeta): NO_ACTION = "NoAction" @@ -10410,15 +10650,13 @@ namespace azure.mgmt.cdn.types id: str name: str properties: AFDDomainProperties - system_data: SystemData + systemData: SystemData type: str class azure.mgmt.cdn.types.AFDDomainHttpsCustomizedCipherSuiteSet(TypedDict, total=False): cipherSuiteSetForTls12: list[Union[str, AfdCustomizedCipherSuiteForTls12]] cipherSuiteSetForTls13: list[Union[str, AfdCustomizedCipherSuiteForTls13]] - cipher_suite_set_for_tls12: list[Union[str, AfdCustomizedCipherSuiteForTls12]] - cipher_suite_set_for_tls13: list[Union[str, AfdCustomizedCipherSuiteForTls13]] class azure.mgmt.cdn.types.AFDDomainHttpsParameters(TypedDict, total=False): @@ -10427,11 +10665,14 @@ namespace azure.mgmt.cdn.types key "customizedCipherSuiteSet": ForwardRef('AFDDomainHttpsCustomizedCipherSuiteSet', module='types') key "minimumTlsVersion": Union[str, AfdMinimumTlsVersion] key "secret": ForwardRef('ResourceReference', module='types') - certificate_type: Union[str, AfdCertificateType] - cipher_suite_set_type: Union[str, AfdCipherSuiteSetType] - customized_cipher_suite_set: AFDDomainHttpsCustomizedCipherSuiteSet - minimum_tls_version: Union[str, AfdMinimumTlsVersion] + key "serverTlsGroupPolicy": Union[str, AfdServerTlsGroupPolicy] + certificateType: Union[str, AfdCertificateType] + cipherSuiteSetType: Union[str, AfdCipherSuiteSetType] + customizedCipherSuiteSet: AFDDomainHttpsCustomizedCipherSuiteSet + minimumTlsVersion: Union[str, AfdMinimumTlsVersion] secret: ResourceReference + serverTlsGroupPolicy: Union[str, AfdServerTlsGroupPolicy] + serverTlsGroups: list[Union[str, AfdServerTlsGroup]] class azure.mgmt.cdn.types.AFDDomainProperties(TypedDict, total=False): @@ -10439,22 +10680,23 @@ namespace azure.mgmt.cdn.types key "deploymentStatus": Union[str, DeploymentStatus] key "domainValidationState": Union[str, DomainValidationState] key "hostName": Required[str] + key "mtlsSettings": ForwardRef('AFDDomainMtlsParameters', module='types') key "preValidatedCustomDomainResourceId": ForwardRef('ResourceReference', module='types') key "profileName": str key "provisioningState": Union[str, AfdProvisioningState] key "tlsSettings": ForwardRef('AFDDomainHttpsParameters', module='types') key "validationProperties": ForwardRef('DomainValidationProperties', module='types') - azure_dns_zone: ResourceReference - deployment_status: Union[str, DeploymentStatus] - domain_validation_state: Union[str, DomainValidationState] + azureDnsZone: ResourceReference + deploymentStatus: Union[str, DeploymentStatus] + domainValidationState: Union[str, DomainValidationState] extendedProperties: dict[str, str] - extended_properties: dict[str, str] - host_name: str - pre_validated_custom_domain_resource_id: ResourceReference - profile_name: str - provisioning_state: Union[str, AfdProvisioningState] - tls_settings: AFDDomainHttpsParameters - validation_properties: DomainValidationProperties + hostName: str + mtlsSettings: AFDDomainMtlsParameters + preValidatedCustomDomainResourceId: ResourceReference + profileName: str + provisioningState: Union[str, AfdProvisioningState] + tlsSettings: AFDDomainHttpsParameters + validationProperties: DomainValidationProperties class azure.mgmt.cdn.types.AFDDomainUpdateParameters(TypedDict, total=False): @@ -10464,13 +10706,15 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.AFDDomainUpdatePropertiesParameters(TypedDict, total=False): key "azureDnsZone": ForwardRef('ResourceReference', module='types') + key "mtlsSettings": ForwardRef('AFDDomainMtlsParameters', module='types') key "preValidatedCustomDomainResourceId": ForwardRef('ResourceReference', module='types') key "profileName": str key "tlsSettings": ForwardRef('AFDDomainHttpsParameters', module='types') - azure_dns_zone: ResourceReference - pre_validated_custom_domain_resource_id: ResourceReference - profile_name: str - tls_settings: AFDDomainHttpsParameters + azureDnsZone: ResourceReference + mtlsSettings: AFDDomainMtlsParameters + preValidatedCustomDomainResourceId: ResourceReference + profileName: str + tlsSettings: AFDDomainHttpsParameters class azure.mgmt.cdn.types.AFDEndpoint(TrackedResource): @@ -10484,7 +10728,7 @@ namespace azure.mgmt.cdn.types location: str name: str properties: AFDEndpointProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -10493,22 +10737,26 @@ namespace azure.mgmt.cdn.types key "autoGeneratedDomainNameLabelScope": Union[str, AutoGeneratedDomainNameLabelScope] key "deploymentStatus": Union[str, DeploymentStatus] key "enabledState": Union[str, EnabledState] + key "enforceMtls": Union[str, EnforceMtlsEnabledState] key "hostName": str key "profileName": str key "provisioningState": Union[str, AfdProvisioningState] - auto_generated_domain_name_label_scope: Union[str, AutoGeneratedDomainNameLabelScope] - deployment_status: Union[str, DeploymentStatus] - enabled_state: Union[str, EnabledState] - host_name: str - profile_name: str - provisioning_state: Union[str, AfdProvisioningState] + autoGeneratedDomainNameLabelScope: Union[str, AutoGeneratedDomainNameLabelScope] + deploymentStatus: Union[str, DeploymentStatus] + enabledState: Union[str, EnabledState] + enforceMtls: Union[str, EnforceMtlsEnabledState] + hostName: str + profileName: str + provisioningState: Union[str, AfdProvisioningState] class azure.mgmt.cdn.types.AFDEndpointPropertiesUpdateParameters(TypedDict, total=False): key "enabledState": Union[str, EnabledState] + key "enforceMtls": Union[str, EnforceMtlsEnabledState] key "profileName": str - enabled_state: Union[str, EnabledState] - profile_name: str + enabledState: Union[str, EnabledState] + enforceMtls: Union[str, EnforceMtlsEnabledState] + profileName: str class azure.mgmt.cdn.types.AFDEndpointUpdateParameters(TypedDict, total=False): @@ -10526,7 +10774,7 @@ namespace azure.mgmt.cdn.types id: str name: str properties: AFDOriginProperties - system_data: SystemData + systemData: SystemData type: str @@ -10539,7 +10787,7 @@ namespace azure.mgmt.cdn.types id: str name: str properties: AFDOriginGroupProperties - system_data: SystemData + systemData: SystemData type: str @@ -10553,13 +10801,13 @@ namespace azure.mgmt.cdn.types key "sessionAffinityState": Union[str, EnabledState] key "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": int authentication: OriginAuthenticationProperties - deployment_status: Union[str, DeploymentStatus] - health_probe_settings: HealthProbeParameters - load_balancing_settings: LoadBalancingSettingsParameters - profile_name: str - provisioning_state: Union[str, AfdProvisioningState] - session_affinity_state: Union[str, EnabledState] - traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int + deploymentStatus: Union[str, DeploymentStatus] + healthProbeSettings: HealthProbeParameters + loadBalancingSettings: LoadBalancingSettingsParameters + profileName: str + provisioningState: Union[str, AfdProvisioningState] + sessionAffinityState: Union[str, EnabledState] + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int class azure.mgmt.cdn.types.AFDOriginGroupUpdateParameters(TypedDict, total=False): @@ -10575,15 +10823,16 @@ namespace azure.mgmt.cdn.types key "sessionAffinityState": Union[str, EnabledState] key "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": int authentication: OriginAuthenticationProperties - health_probe_settings: HealthProbeParameters - load_balancing_settings: LoadBalancingSettingsParameters - profile_name: str - session_affinity_state: Union[str, EnabledState] - traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int + healthProbeSettings: HealthProbeParameters + loadBalancingSettings: LoadBalancingSettingsParameters + profileName: str + sessionAffinityState: Union[str, EnabledState] + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int class azure.mgmt.cdn.types.AFDOriginProperties(TypedDict, total=False): key "azureOrigin": ForwardRef('ResourceReference', module='types') + key "certificateNameCheckValidationMode": Union[str, CertificateNameCheckValidationMode] key "deploymentStatus": Union[str, DeploymentStatus] key "enabledState": Union[str, EnabledState] key "enforceCertificateNameCheck": bool @@ -10596,18 +10845,20 @@ namespace azure.mgmt.cdn.types key "provisioningState": Union[str, AfdProvisioningState] key "sharedPrivateLinkResource": ForwardRef('SharedPrivateLinkResourceProperties', module='types') key "weight": int - azure_origin: ResourceReference - deployment_status: Union[str, DeploymentStatus] - enabled_state: Union[str, EnabledState] - enforce_certificate_name_check: bool - host_name: str - http_port: int - https_port: int - origin_group_name: str - origin_host_header: str + azureOrigin: ResourceReference + certificateNameCheckValidationMode: Union[str, CertificateNameCheckValidationMode] + customCertificateSubjects: list[str] + deploymentStatus: Union[str, DeploymentStatus] + enabledState: Union[str, EnabledState] + enforceCertificateNameCheck: bool + hostName: str + httpPort: int + httpsPort: int + originGroupName: str + originHostHeader: str priority: int - provisioning_state: Union[str, AfdProvisioningState] - shared_private_link_resource: SharedPrivateLinkResourceProperties + provisioningState: Union[str, AfdProvisioningState] + sharedPrivateLinkResource: SharedPrivateLinkResourceProperties weight: int @@ -10618,6 +10869,7 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.AFDOriginUpdatePropertiesParameters(TypedDict, total=False): key "azureOrigin": ForwardRef('ResourceReference', module='types') + key "certificateNameCheckValidationMode": Union[str, CertificateNameCheckValidationMode] key "enabledState": Union[str, EnabledState] key "enforceCertificateNameCheck": bool key "hostName": str @@ -10628,36 +10880,38 @@ namespace azure.mgmt.cdn.types key "priority": int key "sharedPrivateLinkResource": ForwardRef('SharedPrivateLinkResourceProperties', module='types') key "weight": int - azure_origin: ResourceReference - enabled_state: Union[str, EnabledState] - enforce_certificate_name_check: bool - host_name: str - http_port: int - https_port: int - origin_group_name: str - origin_host_header: str + azureOrigin: ResourceReference + certificateNameCheckValidationMode: Union[str, CertificateNameCheckValidationMode] + customCertificateSubjects: list[str] + enabledState: Union[str, EnabledState] + enforceCertificateNameCheck: bool + hostName: str + httpPort: int + httpsPort: int + originGroupName: str + originHostHeader: str priority: int - shared_private_link_resource: SharedPrivateLinkResourceProperties + sharedPrivateLinkResource: SharedPrivateLinkResourceProperties weight: int class azure.mgmt.cdn.types.AFDStateProperties(TypedDict, total=False): key "deploymentStatus": Union[str, DeploymentStatus] key "provisioningState": Union[str, AfdProvisioningState] - deployment_status: Union[str, DeploymentStatus] - provisioning_state: Union[str, AfdProvisioningState] + deploymentStatus: Union[str, DeploymentStatus] + provisioningState: Union[str, AfdProvisioningState] class azure.mgmt.cdn.types.ActivatedResourceReference(TypedDict, total=False): key "id": str key "isActive": bool id: str - is_active: bool + isActive: bool class azure.mgmt.cdn.types.AfdPurgeParameters(TypedDict, total=False): key "contentPaths": Required[list[str]] - content_paths: list[str] + contentPaths: list[str] domains: list[str] @@ -10665,9 +10919,37 @@ namespace azure.mgmt.cdn.types key "compressionSettings": ForwardRef('CompressionSettings', module='types') key "queryParameters": str key "queryStringCachingBehavior": Union[str, AfdQueryStringCachingBehavior] - compression_settings: CompressionSettings - query_parameters: str - query_string_caching_behavior: Union[str, AfdQueryStringCachingBehavior] + compressionSettings: CompressionSettings + queryParameters: str + queryStringCachingBehavior: Union[str, AfdQueryStringCachingBehavior] + + + class azure.mgmt.cdn.types.AfdSecretMtlsCertificateChain(TypedDict, total=False): + key "expirationDate": str + key "secretSource": Required[ResourceReference] + key "secretVersion": Required[str] + key "type": Required[Literal[SecretType.MTLS_CERTIFICATE_CHAIN]] + expirationDate: str + secretSource: ResourceReference + secretVersion: str + type: Literal[SecretType.MTLS_CERTIFICATE_CHAIN] + + + class azure.mgmt.cdn.types.AfdUrlSigningAction(TypedDict, total=False): + key "name": Required[Literal[DeliveryRuleActionEnum.AFD_URL_SIGNING]] + key "parameters": Required[AfdUrlSigningActionParameters] + name: Literal[DeliveryRuleActionEnum.AFD_URL_SIGNING] + parameters: AfdUrlSigningActionParameters + + + class azure.mgmt.cdn.types.AfdUrlSigningActionParameters(TypedDict, total=False): + key "algorithm": Union[str, Algorithm] + key "keyGroupReference": Required[ResourceReference] + key "typeName": Required[Union[str, TypeName]] + algorithm: Union[str, Algorithm] + keyGroupReference: ResourceReference + parameterNameOverride: list[UrlSigningParamIdentifier] + typeName: Union[str, TypeName] class azure.mgmt.cdn.types.AzureFirstPartyManagedCertificateParameters(TypedDict, total=False): @@ -10677,12 +10959,11 @@ namespace azure.mgmt.cdn.types key "subject": str key "thumbprint": str key "type": Required[Literal[SecretType.AZURE_FIRST_PARTY_MANAGED_CERTIFICATE]] - certificate_authority: str - expiration_date: str - secret_source: ResourceReference + certificateAuthority: str + expirationDate: str + secretSource: ResourceReference subject: str subjectAlternativeNames: list[str] - subject_alternative_names: list[str] thumbprint: str type: Literal[SecretType.AZURE_FIRST_PARTY_MANAGED_CERTIFICATE] @@ -10694,10 +10975,10 @@ namespace azure.mgmt.cdn.types key "ruleSetName": str actions: list[DeliveryRuleAction] conditions: list[DeliveryRuleCondition] - match_processing_behavior: Union[str, MatchProcessingBehavior] + matchProcessingBehavior: Union[str, MatchProcessingBehavior] order: int - rule_name: str - rule_set_name: str + ruleName: str + ruleSetName: str class azure.mgmt.cdn.types.CacheConfiguration(TypedDict, total=False): @@ -10706,11 +10987,11 @@ namespace azure.mgmt.cdn.types key "isCompressionEnabled": Union[str, RuleIsCompressionEnabled] key "queryParameters": str key "queryStringCachingBehavior": Union[str, RuleQueryStringCachingBehavior] - cache_behavior: Union[str, RuleCacheBehavior] - cache_duration: str - is_compression_enabled: Union[str, RuleIsCompressionEnabled] - query_parameters: str - query_string_caching_behavior: Union[str, RuleQueryStringCachingBehavior] + cacheBehavior: Union[str, RuleCacheBehavior] + cacheDuration: str + isCompressionEnabled: Union[str, RuleIsCompressionEnabled] + queryParameters: str + queryStringCachingBehavior: Union[str, RuleQueryStringCachingBehavior] class azure.mgmt.cdn.types.CacheExpirationActionParameters(TypedDict, total=False): @@ -10718,31 +10999,31 @@ namespace azure.mgmt.cdn.types key "cacheDuration": Optional[str] key "cacheType": Required[Union[str, CacheType]] key "typeName": Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_CACHE_EXPIRATION_ACTION_PARAMETERS]] - cache_behavior: Union[str, CacheBehavior] - cache_duration: str - cache_type: Union[str, CacheType] - type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_CACHE_EXPIRATION_ACTION_PARAMETERS] + cacheBehavior: Union[str, CacheBehavior] + cacheDuration: str + cacheType: Union[str, CacheType] + typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_CACHE_EXPIRATION_ACTION_PARAMETERS] class azure.mgmt.cdn.types.CacheKeyQueryStringActionParameters(TypedDict, total=False): key "queryParameters": Optional[str] key "queryStringBehavior": Required[Union[str, QueryStringBehavior]] key "typeName": Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_CACHE_KEY_QUERY_STRING_BEHAVIOR_ACTION_PARAMETERS]] - query_parameters: str - query_string_behavior: Union[str, QueryStringBehavior] - type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_CACHE_KEY_QUERY_STRING_BEHAVIOR_ACTION_PARAMETERS] + queryParameters: str + queryStringBehavior: Union[str, QueryStringBehavior] + typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_CACHE_KEY_QUERY_STRING_BEHAVIOR_ACTION_PARAMETERS] class azure.mgmt.cdn.types.CanMigrateParameters(TypedDict, total=False): key "classicResourceReference": Required[ResourceReference] - classic_resource_reference: ResourceReference + classicResourceReference: ResourceReference class azure.mgmt.cdn.types.CdnCertificateSourceParameters(TypedDict, total=False): key "certificateType": Required[Union[str, CertificateType]] key "typeName": Required[Literal[CertificateSourceParametersType.CDN_CERTIFICATE_SOURCE_PARAMETERS]] - certificate_type: Union[str, CertificateType] - type_name: Literal[CertificateSourceParametersType.CDN_CERTIFICATE_SOURCE_PARAMETERS] + certificateType: Union[str, CertificateType] + typeName: Literal[CertificateSourceParametersType.CDN_CERTIFICATE_SOURCE_PARAMETERS] class azure.mgmt.cdn.types.CdnEndpoint(TypedDict, total=False): @@ -10755,16 +11036,15 @@ namespace azure.mgmt.cdn.types key "certificateSourceParameters": Required[CdnCertificateSourceParameters] key "minimumTlsVersion": Union[str, MinimumTlsVersion] key "protocolType": Required[Union[str, ProtocolType]] - certificate_source: Literal[CertificateSource.CDN] - certificate_source_parameters: CdnCertificateSourceParameters - minimum_tls_version: Union[str, MinimumTlsVersion] - protocol_type: Union[str, ProtocolType] + certificateSource: Literal[CertificateSource.CDN] + certificateSourceParameters: CdnCertificateSourceParameters + minimumTlsVersion: Union[str, MinimumTlsVersion] + protocolType: Union[str, ProtocolType] class azure.mgmt.cdn.types.CdnMigrationToAfdParameters(TypedDict, total=False): key "sku": Required[Sku] migrationEndpointMappings: list[MigrationEndpointMapping] - migration_endpoint_mappings: list[MigrationEndpointMapping] sku: Sku @@ -10783,7 +11063,7 @@ namespace azure.mgmt.cdn.types name: str properties: CdnWebApplicationFirewallPolicyProperties sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -10799,16 +11079,14 @@ namespace azure.mgmt.cdn.types key "provisioningState": Union[str, ProvisioningState] key "rateLimitRules": ForwardRef('RateLimitRuleList', module='types') key "resourceState": Union[str, PolicyResourceState] - custom_rules: CustomRuleList + customRules: CustomRuleList endpointLinks: list[CdnEndpoint] - endpoint_links: list[CdnEndpoint] extendedProperties: dict[str, str] - extended_properties: dict[str, str] - managed_rules: ManagedRuleSetList - policy_settings: PolicySettings - provisioning_state: Union[str, ProvisioningState] - rate_limit_rules: RateLimitRuleList - resource_state: Union[str, PolicyResourceState] + managedRules: ManagedRuleSetList + policySettings: PolicySettings + provisioningState: Union[str, ProvisioningState] + rateLimitRules: RateLimitRuleList + resourceState: Union[str, PolicyResourceState] class azure.mgmt.cdn.types.CertificateSource(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -10825,14 +11103,14 @@ namespace azure.mgmt.cdn.types key "autoGeneratedDomainNameLabelScope": Union[str, AutoGeneratedDomainNameLabelScope] key "name": Required[str] key "type": Required[Union[str, ResourceType]] - auto_generated_domain_name_label_scope: Union[str, AutoGeneratedDomainNameLabelScope] + autoGeneratedDomainNameLabelScope: Union[str, AutoGeneratedDomainNameLabelScope] name: str type: Union[str, ResourceType] class azure.mgmt.cdn.types.CheckHostNameAvailabilityInput(TypedDict, total=False): key "hostName": Required[str] - host_name: str + hostName: str class azure.mgmt.cdn.types.CheckNameAvailabilityInput(TypedDict, total=False): @@ -10842,23 +11120,51 @@ namespace azure.mgmt.cdn.types type: Union[str, ResourceType] + class azure.mgmt.cdn.types.ClientCertificateRequiredAndOriginValidatesAdvancedSettings(TypedDict, total=False): + key "scenario": Required[Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES]] + scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES] + + + class azure.mgmt.cdn.types.ClientCertificateRequiredAndValidatedAdvancedSettings(TypedDict, total=False): + key "certificateRevocationCheck": Union[str, CertificateRevocationCheckEnabledState] + key "scenario": Required[Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED]] + key "secrets": Required[list[ResourceReference]] + allowedFqdns: list[str] + certificateRevocationCheck: Union[str, CertificateRevocationCheckEnabledState] + scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED] + secrets: list[ResourceReference] + + + class azure.mgmt.cdn.types.ClientCertificateValidatedIfPresentedAdvancedSettings(TypedDict, total=False): + key "certificateRevocationCheck": Union[str, CertificateRevocationCheckEnabledState] + key "scenario": Required[Literal[MtlsScenarioType.CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED]] + key "secrets": Required[list[ResourceReference]] + allowedFqdns: list[str] + certificateRevocationCheck: Union[str, CertificateRevocationCheckEnabledState] + scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED] + secrets: list[ResourceReference] + + class azure.mgmt.cdn.types.ClientPortMatchConditionParameters(TypedDict, total=False): key "negateCondition": bool key "operator": Required[Union[str, ClientPortOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_CLIENT_PORT_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, ClientPortOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_CLIENT_PORT_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_CLIENT_PORT_CONDITION_PARAMETERS] + + + class azure.mgmt.cdn.types.CompleteMtlsPassthroughToOriginAdvancedSettings(TypedDict, total=False): + key "scenario": Required[Literal[MtlsScenarioType.COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN]] + scenario: Literal[MtlsScenarioType.COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN] class azure.mgmt.cdn.types.CompressionSettings(TypedDict, total=False): key "isCompressionEnabled": bool contentTypesToCompress: list[str] - content_types_to_compress: list[str] - is_compression_enabled: bool + isCompressionEnabled: bool class azure.mgmt.cdn.types.CookiesMatchConditionParameters(TypedDict, total=False): @@ -10867,12 +11173,11 @@ namespace azure.mgmt.cdn.types key "selector": str key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_COOKIES_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, CookiesOperator] selector: str transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_COOKIES_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_COOKIES_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.CustomDomainParameters(TypedDict, total=False): @@ -10882,7 +11187,7 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.CustomDomainPropertiesParameters(TypedDict, total=False): key "hostName": Required[str] - host_name: str + hostName: str class azure.mgmt.cdn.types.CustomRule(TypedDict, total=False): @@ -10892,8 +11197,8 @@ namespace azure.mgmt.cdn.types key "name": Required[str] key "priority": Required[int] action: Union[str, ActionType] - enabled_state: Union[str, CustomRuleEnabledState] - match_conditions: list[MatchCondition] + enabledState: Union[str, CustomRuleEnabledState] + matchConditions: list[MatchCondition] name: str priority: int @@ -10911,16 +11216,15 @@ namespace azure.mgmt.cdn.types key "thumbprint": str key "type": Required[Literal[SecretType.CUSTOMER_CERTIFICATE]] key "useLatestVersion": bool - certificate_authority: str - expiration_date: str - secret_source: ResourceReference - secret_version: str + certificateAuthority: str + expirationDate: str + secretSource: ResourceReference + secretVersion: str subject: str subjectAlternativeNames: list[str] - subject_alternative_names: list[str] thumbprint: str type: Literal[SecretType.CUSTOMER_CERTIFICATE] - use_latest_version: bool + useLatestVersion: bool class azure.mgmt.cdn.types.DeepCreatedCustomDomain(TypedDict, total=False): @@ -10933,8 +11237,8 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.DeepCreatedCustomDomainProperties(TypedDict, total=False): key "hostName": Required[str] key "validationData": str - host_name: str - validation_data: str + hostName: str + validationData: str class azure.mgmt.cdn.types.DeepCreatedOrigin(TypedDict, total=False): @@ -10956,10 +11260,10 @@ namespace azure.mgmt.cdn.types key "origins": Required[list[ResourceReference]] key "responseBasedOriginErrorDetectionSettings": ForwardRef('ResponseBasedOriginErrorDetectionParameters', module='types') key "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": int - health_probe_settings: HealthProbeParameters + healthProbeSettings: HealthProbeParameters origins: list[ResourceReference] - response_based_origin_error_detection_settings: ResponseBasedOriginErrorDetectionParameters - traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int + responseBasedOriginErrorDetectionSettings: ResponseBasedOriginErrorDetectionParameters + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int class azure.mgmt.cdn.types.DeepCreatedOriginProperties(TypedDict, total=False): @@ -10976,16 +11280,16 @@ namespace azure.mgmt.cdn.types key "privateLinkResourceId": str key "weight": int enabled: bool - host_name: str - http_port: int - https_port: int - origin_host_header: str + hostName: str + httpPort: int + httpsPort: int + originHostHeader: str priority: int - private_endpoint_status: Union[str, PrivateEndpointStatus] - private_link_alias: str - private_link_approval_message: str - private_link_location: str - private_link_resource_id: str + privateEndpointStatus: Union[str, PrivateEndpointStatus] + privateLinkAlias: str + privateLinkApprovalMessage: str + privateLinkLocation: str + privateLinkResourceId: str weight: int @@ -11000,8 +11304,10 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.DeliveryRuleActionEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): + AFD_URL_SIGNING = "AfdUrlSigning" CACHE_EXPIRATION = "CacheExpiration" CACHE_KEY_QUERY_STRING = "CacheKeyQueryString" + EDGE_ACTION = "EdgeAction" MODIFY_REQUEST_HEADER = "ModifyRequestHeader" MODIFY_RESPONSE_HEADER = "ModifyResponseHeader" ORIGIN_GROUP_OVERRIDE = "OriginGroupOverride" @@ -11014,6 +11320,7 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.DeliveryRuleActionParametersType(str, Enum, metaclass=CaseInsensitiveEnumMeta): DELIVERY_RULE_CACHE_EXPIRATION_ACTION_PARAMETERS = "DeliveryRuleCacheExpirationActionParameters" DELIVERY_RULE_CACHE_KEY_QUERY_STRING_BEHAVIOR_ACTION_PARAMETERS = "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters" + DELIVERY_RULE_EDGE_ACTION_PARAMETERS = "DeliveryRuleEdgeActionParameters" DELIVERY_RULE_HEADER_ACTION_PARAMETERS = "DeliveryRuleHeaderActionParameters" DELIVERY_RULE_ORIGIN_GROUP_OVERRIDE_ACTION_PARAMETERS = "DeliveryRuleOriginGroupOverrideActionParameters" DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS = "DeliveryRuleRouteConfigurationOverrideActionParameters" @@ -11072,6 +11379,15 @@ namespace azure.mgmt.cdn.types parameters: CookiesMatchConditionParameters + class azure.mgmt.cdn.types.DeliveryRuleEdgeActionParameters(TypedDict, total=False): + key "edgeActionReference": Required[ResourceReference] + key "invocationPoint": Required[Union[str, InvocationPoint]] + key "typeName": Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_EDGE_ACTION_PARAMETERS]] + edgeActionReference: ResourceReference + invocationPoint: Union[str, InvocationPoint] + typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_EDGE_ACTION_PARAMETERS] + + class azure.mgmt.cdn.types.DeliveryRuleHostNameCondition(TypedDict, total=False): key "name": Required[Literal[MatchVariable.HOST_NAME]] key "parameters": Required[HostNameMatchConditionParameters] @@ -11215,8 +11531,15 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.DomainValidationProperties(TypedDict, total=False): key "expirationDate": str key "validationToken": str - expiration_date: str - validation_token: str + expirationDate: str + validationToken: str + + + class azure.mgmt.cdn.types.EdgeAction(TypedDict, total=False): + key "name": Required[Literal[DeliveryRuleActionEnum.EDGE_ACTION]] + key "parameters": Required[DeliveryRuleEdgeActionParameters] + name: Literal[DeliveryRuleActionEnum.EDGE_ACTION] + parameters: DeliveryRuleEdgeActionParameters class azure.mgmt.cdn.types.Endpoint(TrackedResource): @@ -11230,7 +11553,7 @@ namespace azure.mgmt.cdn.types location: str name: str properties: EndpointProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -11252,30 +11575,25 @@ namespace azure.mgmt.cdn.types key "resourceState": Union[str, EndpointResourceState] key "webApplicationFirewallPolicyLink": ForwardRef('EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink', module='types') contentTypesToCompress: list[str] - content_types_to_compress: list[str] customDomains: list[DeepCreatedCustomDomain] - custom_domains: list[DeepCreatedCustomDomain] - default_origin_group: ResourceReference - delivery_policy: EndpointPropertiesUpdateParametersDeliveryPolicy + defaultOriginGroup: ResourceReference + deliveryPolicy: EndpointPropertiesUpdateParametersDeliveryPolicy geoFilters: list[GeoFilter] - geo_filters: list[GeoFilter] - host_name: str - is_compression_enabled: bool - is_http_allowed: bool - is_https_allowed: bool - optimization_type: Union[str, OptimizationType] + hostName: str + isCompressionEnabled: bool + isHttpAllowed: bool + isHttpsAllowed: bool + optimizationType: Union[str, OptimizationType] originGroups: list[DeepCreatedOriginGroup] - origin_groups: list[DeepCreatedOriginGroup] - origin_host_header: str - origin_path: str + originHostHeader: str + originPath: str origins: list[DeepCreatedOrigin] - probe_path: str - provisioning_state: Union[str, EndpointProvisioningState] - query_string_caching_behavior: Union[str, QueryStringCachingBehavior] - resource_state: Union[str, EndpointResourceState] + probePath: str + provisioningState: Union[str, EndpointProvisioningState] + queryStringCachingBehavior: Union[str, QueryStringCachingBehavior] + resourceState: Union[str, EndpointResourceState] urlSigningKeys: list[UrlSigningKey] - url_signing_keys: list[UrlSigningKey] - web_application_firewall_policy_link: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink + webApplicationFirewallPolicyLink: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink class azure.mgmt.cdn.types.EndpointPropertiesUpdateParameters(TypedDict, total=False): @@ -11291,22 +11609,19 @@ namespace azure.mgmt.cdn.types key "queryStringCachingBehavior": Union[str, QueryStringCachingBehavior] key "webApplicationFirewallPolicyLink": ForwardRef('EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink', module='types') contentTypesToCompress: list[str] - content_types_to_compress: list[str] - default_origin_group: ResourceReference - delivery_policy: EndpointPropertiesUpdateParametersDeliveryPolicy + defaultOriginGroup: ResourceReference + deliveryPolicy: EndpointPropertiesUpdateParametersDeliveryPolicy geoFilters: list[GeoFilter] - geo_filters: list[GeoFilter] - is_compression_enabled: bool - is_http_allowed: bool - is_https_allowed: bool - optimization_type: Union[str, OptimizationType] - origin_host_header: str - origin_path: str - probe_path: str - query_string_caching_behavior: Union[str, QueryStringCachingBehavior] + isCompressionEnabled: bool + isHttpAllowed: bool + isHttpsAllowed: bool + optimizationType: Union[str, OptimizationType] + originHostHeader: str + originPath: str + probePath: str + queryStringCachingBehavior: Union[str, QueryStringCachingBehavior] urlSigningKeys: list[UrlSigningKey] - url_signing_keys: list[UrlSigningKey] - web_application_firewall_policy_link: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink + webApplicationFirewallPolicyLink: EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink class azure.mgmt.cdn.types.EndpointPropertiesUpdateParametersDeliveryPolicy(TypedDict, total=False): @@ -11332,8 +11647,8 @@ namespace azure.mgmt.cdn.types key "countryCodes": Required[list[str]] key "relativePath": Required[str] action: Union[str, GeoFilterActions] - country_codes: list[str] - relative_path: str + countryCodes: list[str] + relativePath: str class azure.mgmt.cdn.types.HeaderActionParameters(TypedDict, total=False): @@ -11341,9 +11656,9 @@ namespace azure.mgmt.cdn.types key "headerName": Required[str] key "typeName": Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_HEADER_ACTION_PARAMETERS]] key "value": str - header_action: Union[str, HeaderAction] - header_name: str - type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_HEADER_ACTION_PARAMETERS] + headerAction: Union[str, HeaderAction] + headerName: str + typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_HEADER_ACTION_PARAMETERS] value: str @@ -11352,10 +11667,10 @@ namespace azure.mgmt.cdn.types key "probePath": str key "probeProtocol": Union[str, ProbeProtocol] key "probeRequestType": Union[str, HealthProbeRequestType] - probe_interval_in_seconds: int - probe_path: str - probe_protocol: Union[str, ProbeProtocol] - probe_request_type: Union[str, HealthProbeRequestType] + probeIntervalInSeconds: int + probePath: str + probeProtocol: Union[str, ProbeProtocol] + probeRequestType: Union[str, HealthProbeRequestType] class azure.mgmt.cdn.types.HostNameMatchConditionParameters(TypedDict, total=False): @@ -11363,11 +11678,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, HostNameOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_HOST_NAME_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, HostNameOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_HOST_NAME_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_HOST_NAME_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.HttpErrorRangeParameters(TypedDict, total=False): @@ -11382,11 +11696,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, HttpVersionOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_HTTP_VERSION_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, HttpVersionOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_HTTP_VERSION_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_HTTP_VERSION_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.IsDeviceMatchConditionParameters(TypedDict, total=False): @@ -11394,11 +11707,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, IsDeviceOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_IS_DEVICE_CONDITION_PARAMETERS]] matchValues: list[Union[str, IsDeviceMatchConditionParametersMatchValuesItem]] - match_values: list[Union[str, IsDeviceMatchConditionParametersMatchValuesItem]] - negate_condition: bool + negateCondition: bool operator: Union[str, IsDeviceOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_IS_DEVICE_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_IS_DEVICE_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.KeyVaultCertificateSourceParameters(TypedDict, total=False): @@ -11410,14 +11722,14 @@ namespace azure.mgmt.cdn.types key "typeName": Required[Literal[CertificateSourceParametersType.KEY_VAULT_CERTIFICATE_SOURCE_PARAMETERS]] key "updateRule": Required[Union[str, UpdateRule]] key "vaultName": Required[str] - delete_rule: Union[str, DeleteRule] - resource_group_name: str - secret_name: str - secret_version: str - subscription_id: str - type_name: Literal[CertificateSourceParametersType.KEY_VAULT_CERTIFICATE_SOURCE_PARAMETERS] - update_rule: Union[str, UpdateRule] - vault_name: str + deleteRule: Union[str, DeleteRule] + resourceGroupName: str + secretName: str + secretVersion: str + subscriptionId: str + typeName: Literal[CertificateSourceParametersType.KEY_VAULT_CERTIFICATE_SOURCE_PARAMETERS] + updateRule: Union[str, UpdateRule] + vaultName: str class azure.mgmt.cdn.types.KeyVaultSigningKeyParameters(TypedDict, total=False): @@ -11427,40 +11739,40 @@ namespace azure.mgmt.cdn.types key "subscriptionId": Required[str] key "typeName": Required[Union[str, KeyVaultSigningKeyParametersTypeName]] key "vaultName": Required[str] - resource_group_name: str - secret_name: str - secret_version: str - subscription_id: str - type_name: Union[str, KeyVaultSigningKeyParametersTypeName] - vault_name: str + resourceGroupName: str + secretName: str + secretVersion: str + subscriptionId: str + typeName: Union[str, KeyVaultSigningKeyParametersTypeName] + vaultName: str class azure.mgmt.cdn.types.LoadBalancingSettingsParameters(TypedDict, total=False): key "additionalLatencyInMilliseconds": int key "sampleSize": int key "successfulSamplesRequired": int - additional_latency_in_milliseconds: int - sample_size: int - successful_samples_required: int + additionalLatencyInMilliseconds: int + sampleSize: int + successfulSamplesRequired: int class azure.mgmt.cdn.types.LoadParameters(TypedDict, total=False): key "contentPaths": Required[list[str]] - content_paths: list[str] + contentPaths: list[str] class azure.mgmt.cdn.types.ManagedCertificateParameters(TypedDict, total=False): key "expirationDate": str key "subject": str key "type": Required[Literal[SecretType.MANAGED_CERTIFICATE]] - expiration_date: str + expirationDate: str subject: str type: Literal[SecretType.MANAGED_CERTIFICATE] class azure.mgmt.cdn.types.ManagedRuleGroupOverride(TypedDict, total=False): key "ruleGroupName": Required[str] - rule_group_name: str + ruleGroupName: str rules: list[ManagedRuleOverride] @@ -11469,35 +11781,32 @@ namespace azure.mgmt.cdn.types key "enabledState": Union[str, ManagedRuleEnabledState] key "ruleId": Required[str] action: Union[str, ActionType] - enabled_state: Union[str, ManagedRuleEnabledState] - rule_id: str + enabledState: Union[str, ManagedRuleEnabledState] + ruleId: str class azure.mgmt.cdn.types.ManagedRuleSet(TypedDict, total=False): key "anomalyScore": int key "ruleSetType": Required[str] key "ruleSetVersion": Required[str] - anomaly_score: int + anomalyScore: int ruleGroupOverrides: list[ManagedRuleGroupOverride] - rule_group_overrides: list[ManagedRuleGroupOverride] - rule_set_type: str - rule_set_version: str + ruleSetType: str + ruleSetVersion: str class azure.mgmt.cdn.types.ManagedRuleSetList(TypedDict, total=False): managedRuleSets: list[ManagedRuleSet] - managed_rule_sets: list[ManagedRuleSet] class azure.mgmt.cdn.types.ManagedServiceIdentity(TypedDict, total=False): key "principalId": str key "tenantId": str key "type": Required[Union[str, ManagedServiceIdentityType]] - principal_id: str - tenant_id: str + principalId: str + tenantId: str type: Union[str, ManagedServiceIdentityType] userAssignedIdentities: dict[str, UserAssignedIdentity] - user_assigned_identities: dict[str, UserAssignedIdentity] class azure.mgmt.cdn.types.MatchCondition(TypedDict, total=False): @@ -11506,9 +11815,9 @@ namespace azure.mgmt.cdn.types key "negateCondition": bool key "operator": Required[Union[str, Operator]] key "selector": str - match_value: list[str] - match_variable: Union[str, WafMatchVariable] - negate_condition: bool + matchValue: list[str] + matchVariable: Union[str, WafMatchVariable] + negateCondition: bool operator: Union[str, Operator] selector: str transforms: list[Union[str, TransformType]] @@ -11539,26 +11848,32 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.MigrationEndpointMapping(TypedDict, total=False): key "migratedFrom": str key "migratedTo": str - migrated_from: str - migrated_to: str + migratedFrom: str + migratedTo: str class azure.mgmt.cdn.types.MigrationParameters(TypedDict, total=False): key "classicResourceReference": Required[ResourceReference] key "profileName": Required[str] key "sku": Required[Sku] - classic_resource_reference: ResourceReference + classicResourceReference: ResourceReference migrationWebApplicationFirewallMappings: list[MigrationWebApplicationFirewallMapping] - migration_web_application_firewall_mappings: list[MigrationWebApplicationFirewallMapping] - profile_name: str + profileName: str sku: Sku class azure.mgmt.cdn.types.MigrationWebApplicationFirewallMapping(TypedDict, total=False): key "migratedFrom": ForwardRef('ResourceReference', module='types') key "migratedTo": ForwardRef('ResourceReference', module='types') - migrated_from: ResourceReference - migrated_to: ResourceReference + migratedFrom: ResourceReference + migratedTo: ResourceReference + + + class azure.mgmt.cdn.types.MtlsScenarioType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES = "ClientCertificateRequiredAndOriginValidates" + CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED = "ClientCertificateRequiredAndValidated" + CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED = "ClientCertificateValidatedIfPresented" + COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN = "CompleteMtlsPassthroughToOrigin" class azure.mgmt.cdn.types.Origin(ProxyResource): @@ -11570,17 +11885,19 @@ namespace azure.mgmt.cdn.types id: str name: str properties: OriginProperties - system_data: SystemData + systemData: SystemData type: str class azure.mgmt.cdn.types.OriginAuthenticationProperties(TypedDict, total=False): key "scope": str + key "tokenDestinationHeader": Union[str, OriginAuthenticationTokenDestinationHeader] key "type": Union[str, OriginAuthenticationType] key "userAssignedIdentity": ForwardRef('ResourceReference', module='types') scope: str + tokenDestinationHeader: Union[str, OriginAuthenticationTokenDestinationHeader] type: Union[str, OriginAuthenticationType] - user_assigned_identity: ResourceReference + userAssignedIdentity: ResourceReference class azure.mgmt.cdn.types.OriginGroup(ProxyResource): @@ -11592,15 +11909,15 @@ namespace azure.mgmt.cdn.types id: str name: str properties: OriginGroupProperties - system_data: SystemData + systemData: SystemData type: str class azure.mgmt.cdn.types.OriginGroupOverride(TypedDict, total=False): key "forwardingProtocol": Union[str, ForwardingProtocol] key "originGroup": ForwardRef('ResourceReference', module='types') - forwarding_protocol: Union[str, ForwardingProtocol] - origin_group: ResourceReference + forwardingProtocol: Union[str, ForwardingProtocol] + originGroup: ResourceReference class azure.mgmt.cdn.types.OriginGroupOverrideAction(TypedDict, total=False): @@ -11613,8 +11930,8 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.OriginGroupOverrideActionParameters(TypedDict, total=False): key "originGroup": Required[ResourceReference] key "typeName": Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_ORIGIN_GROUP_OVERRIDE_ACTION_PARAMETERS]] - origin_group: ResourceReference - type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_ORIGIN_GROUP_OVERRIDE_ACTION_PARAMETERS] + originGroup: ResourceReference + typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_ORIGIN_GROUP_OVERRIDE_ACTION_PARAMETERS] class azure.mgmt.cdn.types.OriginGroupProperties(OriginGroupUpdatePropertiesParameters): @@ -11623,12 +11940,12 @@ namespace azure.mgmt.cdn.types key "resourceState": Union[str, OriginGroupResourceState] key "responseBasedOriginErrorDetectionSettings": ForwardRef('ResponseBasedOriginErrorDetectionParameters', module='types') key "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": int - health_probe_settings: HealthProbeParameters + healthProbeSettings: HealthProbeParameters origins: list[ResourceReference] - provisioning_state: Union[str, OriginGroupProvisioningState] - resource_state: Union[str, OriginGroupResourceState] - response_based_origin_error_detection_settings: ResponseBasedOriginErrorDetectionParameters - traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int + provisioningState: Union[str, OriginGroupProvisioningState] + resourceState: Union[str, OriginGroupResourceState] + responseBasedOriginErrorDetectionSettings: ResponseBasedOriginErrorDetectionParameters + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int class azure.mgmt.cdn.types.OriginGroupUpdateParameters(TypedDict, total=False): @@ -11640,10 +11957,10 @@ namespace azure.mgmt.cdn.types key "healthProbeSettings": ForwardRef('HealthProbeParameters', module='types') key "responseBasedOriginErrorDetectionSettings": ForwardRef('ResponseBasedOriginErrorDetectionParameters', module='types') key "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": int - health_probe_settings: HealthProbeParameters + healthProbeSettings: HealthProbeParameters origins: list[ResourceReference] - response_based_origin_error_detection_settings: ResponseBasedOriginErrorDetectionParameters - traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int + responseBasedOriginErrorDetectionSettings: ResponseBasedOriginErrorDetectionParameters + trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int class azure.mgmt.cdn.types.OriginProperties(OriginUpdatePropertiesParameters): @@ -11662,18 +11979,18 @@ namespace azure.mgmt.cdn.types key "resourceState": Union[str, OriginResourceState] key "weight": int enabled: bool - host_name: str - http_port: int - https_port: int - origin_host_header: str + hostName: str + httpPort: int + httpsPort: int + originHostHeader: str priority: int - private_endpoint_status: Union[str, PrivateEndpointStatus] - private_link_alias: str - private_link_approval_message: str - private_link_location: str - private_link_resource_id: str - provisioning_state: Union[str, OriginProvisioningState] - resource_state: Union[str, OriginResourceState] + privateEndpointStatus: Union[str, PrivateEndpointStatus] + privateLinkAlias: str + privateLinkApprovalMessage: str + privateLinkLocation: str + privateLinkResourceId: str + provisioningState: Union[str, OriginProvisioningState] + resourceState: Union[str, OriginResourceState] weight: int @@ -11695,15 +12012,15 @@ namespace azure.mgmt.cdn.types key "privateLinkResourceId": str key "weight": int enabled: bool - host_name: str - http_port: int - https_port: int - origin_host_header: str + hostName: str + httpPort: int + httpsPort: int + originHostHeader: str priority: int - private_link_alias: str - private_link_approval_message: str - private_link_location: str - private_link_resource_id: str + privateLinkAlias: str + privateLinkApprovalMessage: str + privateLinkLocation: str + privateLinkResourceId: str weight: int @@ -11713,10 +12030,10 @@ namespace azure.mgmt.cdn.types key "defaultRedirectUrl": str key "enabledState": Union[str, PolicyEnabledState] key "mode": Union[str, PolicyMode] - default_custom_block_response_body: str - default_custom_block_response_status_code: Union[int, PolicySettingsDefaultCustomBlockResponseStatusCode] - default_redirect_url: str - enabled_state: Union[str, PolicyEnabledState] + defaultCustomBlockResponseBody: str + defaultCustomBlockResponseStatusCode: Union[int, PolicySettingsDefaultCustomBlockResponseStatusCode] + defaultRedirectUrl: str + enabledState: Union[str, PolicyEnabledState] mode: Union[str, PolicyMode] @@ -11726,12 +12043,11 @@ namespace azure.mgmt.cdn.types key "selector": str key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_POST_ARGS_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, PostArgsOperator] selector: str transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_POST_ARGS_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_POST_ARGS_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.Profile(TrackedResource): @@ -11751,7 +12067,7 @@ namespace azure.mgmt.cdn.types name: str properties: ProfileProperties sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -11759,14 +12075,13 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.ProfileChangeSkuWafMapping(TypedDict, total=False): key "changeToWafPolicy": Required[ResourceReference] key "securityPolicyName": Required[str] - change_to_waf_policy: ResourceReference - security_policy_name: str + changeToWafPolicy: ResourceReference + securityPolicyName: str class azure.mgmt.cdn.types.ProfileLogScrubbing(TypedDict, total=False): key "state": Union[str, ProfileScrubbingState] scrubbingRules: list[ProfileScrubbingRules] - scrubbing_rules: list[ProfileScrubbingRules] state: Union[str, ProfileScrubbingState] @@ -11777,19 +12092,18 @@ namespace azure.mgmt.cdn.types key "provisioningState": Union[str, ProfileProvisioningState] key "resourceState": Union[str, ProfileResourceState] extendedProperties: dict[str, str] - extended_properties: dict[str, str] - front_door_id: str - log_scrubbing: ProfileLogScrubbing - origin_response_timeout_seconds: int - provisioning_state: Union[str, ProfileProvisioningState] - resource_state: Union[str, ProfileResourceState] + frontDoorId: str + logScrubbing: ProfileLogScrubbing + originResponseTimeoutSeconds: int + provisioningState: Union[str, ProfileProvisioningState] + resourceState: Union[str, ProfileResourceState] class azure.mgmt.cdn.types.ProfilePropertiesUpdateParameters(TypedDict, total=False): key "logScrubbing": ForwardRef('ProfileLogScrubbing', module='types') key "originResponseTimeoutSeconds": int - log_scrubbing: ProfileLogScrubbing - origin_response_timeout_seconds: int + logScrubbing: ProfileLogScrubbing + originResponseTimeoutSeconds: int class azure.mgmt.cdn.types.ProfileScrubbingRules(TypedDict, total=False): @@ -11797,9 +12111,9 @@ namespace azure.mgmt.cdn.types key "selector": str key "selectorMatchOperator": Required[Union[str, ScrubbingRuleEntryMatchOperator]] key "state": Union[str, ScrubbingRuleEntryState] - match_variable: Union[str, ScrubbingRuleEntryMatchVariable] + matchVariable: Union[str, ScrubbingRuleEntryMatchVariable] selector: str - selector_match_operator: Union[str, ScrubbingRuleEntryMatchOperator] + selectorMatchOperator: Union[str, ScrubbingRuleEntryMatchOperator] state: Union[str, ScrubbingRuleEntryState] @@ -11813,7 +12127,7 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.ProfileUpgradeParameters(TypedDict, total=False): key "wafMappingList": Required[list[ProfileChangeSkuWafMapping]] - waf_mapping_list: list[ProfileChangeSkuWafMapping] + wafMappingList: list[ProfileChangeSkuWafMapping] class azure.mgmt.cdn.types.ProxyResource(Resource): @@ -11823,13 +12137,13 @@ namespace azure.mgmt.cdn.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str class azure.mgmt.cdn.types.PurgeParameters(TypedDict, total=False): key "contentPaths": Required[list[str]] - content_paths: list[str] + contentPaths: list[str] class azure.mgmt.cdn.types.QueryStringMatchConditionParameters(TypedDict, total=False): @@ -11837,11 +12151,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, QueryStringOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_QUERY_STRING_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, QueryStringOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_QUERY_STRING_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_QUERY_STRING_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.RateLimitRule(CustomRule): @@ -11853,12 +12166,12 @@ namespace azure.mgmt.cdn.types key "rateLimitDurationInMinutes": Required[int] key "rateLimitThreshold": Required[int] action: Union[str, ActionType] - enabled_state: Union[str, CustomRuleEnabledState] - match_conditions: list[MatchCondition] + enabledState: Union[str, CustomRuleEnabledState] + matchConditions: list[MatchCondition] name: str priority: int - rate_limit_duration_in_minutes: int - rate_limit_threshold: int + rateLimitDurationInMinutes: int + rateLimitThreshold: int class azure.mgmt.cdn.types.RateLimitRuleList(TypedDict, total=False): @@ -11870,11 +12183,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, RemoteAddressOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REMOTE_ADDRESS_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, RemoteAddressOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REMOTE_ADDRESS_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REMOTE_ADDRESS_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.RequestBodyMatchConditionParameters(TypedDict, total=False): @@ -11882,11 +12194,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, RequestBodyOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_BODY_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, RequestBodyOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_BODY_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_BODY_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.RequestHeaderMatchConditionParameters(TypedDict, total=False): @@ -11895,12 +12206,11 @@ namespace azure.mgmt.cdn.types key "selector": str key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_HEADER_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, RequestHeaderOperator] selector: str transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_HEADER_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_HEADER_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.RequestMethodMatchConditionParameters(TypedDict, total=False): @@ -11908,11 +12218,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, RequestMethodOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_METHOD_CONDITION_PARAMETERS]] matchValues: list[Union[str, RequestMethodMatchConditionParametersMatchValuesItem]] - match_values: list[Union[str, RequestMethodMatchConditionParametersMatchValuesItem]] - negate_condition: bool + negateCondition: bool operator: Union[str, RequestMethodOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_METHOD_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_METHOD_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.RequestSchemeMatchConditionParameters(TypedDict, total=False): @@ -11920,11 +12229,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, RequestSchemeMatchConditionParametersOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_SCHEME_CONDITION_PARAMETERS]] matchValues: list[Union[str, RequestSchemeMatchConditionParametersMatchValuesItem]] - match_values: list[Union[str, RequestSchemeMatchConditionParametersMatchValuesItem]] - negate_condition: bool + negateCondition: bool operator: Union[str, RequestSchemeMatchConditionParametersOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_SCHEME_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_SCHEME_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.RequestUriMatchConditionParameters(TypedDict, total=False): @@ -11932,11 +12240,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, RequestUriOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_URI_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, RequestUriOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_URI_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_URI_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.Resource(TypedDict, total=False): @@ -11946,7 +12253,7 @@ namespace azure.mgmt.cdn.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -11959,9 +12266,8 @@ namespace azure.mgmt.cdn.types key "responseBasedDetectedErrorTypes": Union[str, ResponseBasedDetectedErrorTypes] key "responseBasedFailoverThresholdPercentage": int httpErrorRanges: list[HttpErrorRangeParameters] - http_error_ranges: list[HttpErrorRangeParameters] - response_based_detected_error_types: Union[str, ResponseBasedDetectedErrorTypes] - response_based_failover_threshold_percentage: int + responseBasedDetectedErrorTypes: Union[str, ResponseBasedDetectedErrorTypes] + responseBasedFailoverThresholdPercentage: int class azure.mgmt.cdn.types.Route(ProxyResource): @@ -11973,7 +12279,7 @@ namespace azure.mgmt.cdn.types id: str name: str properties: RouteProperties - system_data: SystemData + systemData: SystemData type: str @@ -11981,9 +12287,9 @@ namespace azure.mgmt.cdn.types key "cacheConfiguration": ForwardRef('CacheConfiguration', module='types') key "originGroupOverride": ForwardRef('OriginGroupOverride', module='types') key "typeName": Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS]] - cache_configuration: CacheConfiguration - origin_group_override: OriginGroupOverride - type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS] + cacheConfiguration: CacheConfiguration + originGroupOverride: OriginGroupOverride + typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS] class azure.mgmt.cdn.types.RouteProperties(TypedDict, total=False): @@ -11997,24 +12303,20 @@ namespace azure.mgmt.cdn.types key "originGroup": ForwardRef('ResourceReference', module='types') key "originPath": str key "provisioningState": Union[str, AfdProvisioningState] - cache_configuration: AfdRouteCacheConfiguration + cacheConfiguration: AfdRouteCacheConfiguration customDomains: list[ActivatedResourceReference] - custom_domains: list[ActivatedResourceReference] - deployment_status: Union[str, DeploymentStatus] - enabled_state: Union[str, EnabledState] - endpoint_name: str - forwarding_protocol: Union[str, ForwardingProtocol] - https_redirect: Union[str, HttpsRedirect] - link_to_default_domain: Union[str, LinkToDefaultDomain] - origin_group: ResourceReference - origin_path: str + deploymentStatus: Union[str, DeploymentStatus] + enabledState: Union[str, EnabledState] + endpointName: str + forwardingProtocol: Union[str, ForwardingProtocol] + httpsRedirect: Union[str, HttpsRedirect] + linkToDefaultDomain: Union[str, LinkToDefaultDomain] + originGroup: ResourceReference + originPath: str patternsToMatch: list[str] - patterns_to_match: list[str] - provisioning_state: Union[str, AfdProvisioningState] + provisioningState: Union[str, AfdProvisioningState] ruleSets: list[ResourceReference] - rule_sets: list[ResourceReference] supportedProtocols: list[Union[str, AFDEndpointProtocols]] - supported_protocols: list[Union[str, AFDEndpointProtocols]] class azure.mgmt.cdn.types.RouteUpdateParameters(TypedDict, total=False): @@ -12031,22 +12333,18 @@ namespace azure.mgmt.cdn.types key "linkToDefaultDomain": Union[str, LinkToDefaultDomain] key "originGroup": ForwardRef('ResourceReference', module='types') key "originPath": str - cache_configuration: AfdRouteCacheConfiguration + cacheConfiguration: AfdRouteCacheConfiguration customDomains: list[ActivatedResourceReference] - custom_domains: list[ActivatedResourceReference] - enabled_state: Union[str, EnabledState] - endpoint_name: str - forwarding_protocol: Union[str, ForwardingProtocol] - https_redirect: Union[str, HttpsRedirect] - link_to_default_domain: Union[str, LinkToDefaultDomain] - origin_group: ResourceReference - origin_path: str + enabledState: Union[str, EnabledState] + endpointName: str + forwardingProtocol: Union[str, ForwardingProtocol] + httpsRedirect: Union[str, HttpsRedirect] + linkToDefaultDomain: Union[str, LinkToDefaultDomain] + originGroup: ResourceReference + originPath: str patternsToMatch: list[str] - patterns_to_match: list[str] ruleSets: list[ResourceReference] - rule_sets: list[ResourceReference] supportedProtocols: list[Union[str, AFDEndpointProtocols]] - supported_protocols: list[Union[str, AFDEndpointProtocols]] class azure.mgmt.cdn.types.Rule(ProxyResource): @@ -12058,7 +12356,7 @@ namespace azure.mgmt.cdn.types id: str name: str properties: RuleProperties - system_data: SystemData + systemData: SystemData type: str @@ -12070,11 +12368,11 @@ namespace azure.mgmt.cdn.types key "ruleSetName": str actions: list[DeliveryRuleAction] conditions: list[DeliveryRuleCondition] - deployment_status: Union[str, DeploymentStatus] - match_processing_behavior: Union[str, MatchProcessingBehavior] + deploymentStatus: Union[str, DeploymentStatus] + matchProcessingBehavior: Union[str, MatchProcessingBehavior] order: int - provisioning_state: Union[str, AfdProvisioningState] - rule_set_name: str + provisioningState: Union[str, AfdProvisioningState] + ruleSetName: str class azure.mgmt.cdn.types.RuleSet(ProxyResource): @@ -12086,7 +12384,7 @@ namespace azure.mgmt.cdn.types id: str name: str properties: RuleSetProperties - system_data: SystemData + systemData: SystemData type: str @@ -12095,10 +12393,10 @@ namespace azure.mgmt.cdn.types key "deploymentStatus": Union[str, DeploymentStatus] key "profileName": str key "provisioningState": Union[str, AfdProvisioningState] - batch_mode: bool - deployment_status: Union[str, DeploymentStatus] - profile_name: str - provisioning_state: Union[str, AfdProvisioningState] + batchMode: bool + deploymentStatus: Union[str, DeploymentStatus] + profileName: str + provisioningState: Union[str, AfdProvisioningState] rules: list[BatchRuleProperties] @@ -12113,9 +12411,9 @@ namespace azure.mgmt.cdn.types key "ruleSetName": str actions: list[DeliveryRuleAction] conditions: list[DeliveryRuleCondition] - match_processing_behavior: Union[str, MatchProcessingBehavior] + matchProcessingBehavior: Union[str, MatchProcessingBehavior] order: int - rule_set_name: str + ruleSetName: str class azure.mgmt.cdn.types.Secret(ProxyResource): @@ -12127,7 +12425,7 @@ namespace azure.mgmt.cdn.types id: str name: str properties: SecretProperties - system_data: SystemData + systemData: SystemData type: str @@ -12136,16 +12434,17 @@ namespace azure.mgmt.cdn.types key "parameters": ForwardRef('SecretParameters', module='types') key "profileName": str key "provisioningState": Union[str, AfdProvisioningState] - deployment_status: Union[str, DeploymentStatus] + deploymentStatus: Union[str, DeploymentStatus] parameters: SecretParameters - profile_name: str - provisioning_state: Union[str, AfdProvisioningState] + profileName: str + provisioningState: Union[str, AfdProvisioningState] class azure.mgmt.cdn.types.SecretType(str, Enum, metaclass=CaseInsensitiveEnumMeta): AZURE_FIRST_PARTY_MANAGED_CERTIFICATE = "AzureFirstPartyManagedCertificate" CUSTOMER_CERTIFICATE = "CustomerCertificate" MANAGED_CERTIFICATE = "ManagedCertificate" + MTLS_CERTIFICATE_CHAIN = "MtlsCertificateChain" URL_SIGNING_KEY = "UrlSigningKey" @@ -12158,7 +12457,7 @@ namespace azure.mgmt.cdn.types id: str name: str properties: SecurityPolicyProperties - system_data: SystemData + systemData: SystemData type: str @@ -12167,18 +12466,20 @@ namespace azure.mgmt.cdn.types key "parameters": ForwardRef('SecurityPolicyPropertiesParameters', module='types') key "profileName": str key "provisioningState": Union[str, AfdProvisioningState] - deployment_status: Union[str, DeploymentStatus] + deploymentStatus: Union[str, DeploymentStatus] parameters: SecurityPolicyPropertiesParameters - profile_name: str - provisioning_state: Union[str, AfdProvisioningState] + profileName: str + provisioningState: Union[str, AfdProvisioningState] class azure.mgmt.cdn.types.SecurityPolicyPropertiesParameters(TypedDict, total=False): + key "isProfileLevel": bool key "type": Required[Literal[SecurityPolicyType.WEB_APPLICATION_FIREWALL]] key "wafPolicy": ForwardRef('ResourceReference', module='types') associations: list[SecurityPolicyWebApplicationFirewallAssociation] + isProfileLevel: bool type: Literal[SecurityPolicyType.WEB_APPLICATION_FIREWALL] - waf_policy: ResourceReference + wafPolicy: ResourceReference class azure.mgmt.cdn.types.SecurityPolicyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -12198,15 +12499,17 @@ namespace azure.mgmt.cdn.types class azure.mgmt.cdn.types.SecurityPolicyWebApplicationFirewallAssociation(TypedDict, total=False): domains: list[ActivatedResourceReference] patternsToMatch: list[str] - patterns_to_match: list[str] + routes: list[ResourceReference] class azure.mgmt.cdn.types.SecurityPolicyWebApplicationFirewallParameters(TypedDict, total=False): + key "isProfileLevel": bool key "type": Required[Literal[SecurityPolicyType.WEB_APPLICATION_FIREWALL]] key "wafPolicy": ForwardRef('ResourceReference', module='types') associations: list[SecurityPolicyWebApplicationFirewallAssociation] + isProfileLevel: bool type: Literal[SecurityPolicyType.WEB_APPLICATION_FIREWALL] - waf_policy: ResourceReference + wafPolicy: ResourceReference class azure.mgmt.cdn.types.ServerPortMatchConditionParameters(TypedDict, total=False): @@ -12214,11 +12517,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, ServerPortOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SERVER_PORT_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, ServerPortOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SERVER_PORT_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SERVER_PORT_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.SharedPrivateLinkResourceProperties(TypedDict, total=False): @@ -12227,10 +12529,10 @@ namespace azure.mgmt.cdn.types key "privateLinkLocation": str key "requestMessage": str key "status": Union[str, SharedPrivateLinkResourceStatus] - group_id: str - private_link: ResourceReference - private_link_location: str - request_message: str + groupId: str + privateLink: ResourceReference + privateLinkLocation: str + requestMessage: str status: Union[str, SharedPrivateLinkResourceStatus] @@ -12244,11 +12546,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, SocketAddrOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SOCKET_ADDR_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, SocketAddrOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SOCKET_ADDR_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SOCKET_ADDR_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.SslProtocolMatchConditionParameters(TypedDict, total=False): @@ -12256,11 +12557,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, SslProtocolOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SSL_PROTOCOL_CONDITION_PARAMETERS]] matchValues: list[Union[str, SslProtocol]] - match_values: list[Union[str, SslProtocol]] - negate_condition: bool + negateCondition: bool operator: Union[str, SslProtocolOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SSL_PROTOCOL_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SSL_PROTOCOL_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.SystemData(TypedDict, total=False): @@ -12270,12 +12570,12 @@ namespace azure.mgmt.cdn.types key "lastModifiedAt": str key "lastModifiedBy": str key "lastModifiedByType": Union[str, CreatedByType] - created_at: str - created_by: str - created_by_type: Union[str, CreatedByType] - last_modified_at: str - last_modified_by: str - last_modified_by_type: Union[str, CreatedByType] + createdAt: str + createdBy: str + createdByType: Union[str, CreatedByType] + lastModifiedAt: str + lastModifiedBy: str + lastModifiedByType: Union[str, CreatedByType] class azure.mgmt.cdn.types.TrackedResource(Resource): @@ -12287,7 +12587,7 @@ namespace azure.mgmt.cdn.types id: str location: str name: str - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -12297,11 +12597,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, UrlFileExtensionOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_FILE_EXTENSION_MATCH_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, UrlFileExtensionOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_FILE_EXTENSION_MATCH_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_FILE_EXTENSION_MATCH_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.UrlFileNameMatchConditionParameters(TypedDict, total=False): @@ -12309,11 +12608,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, UrlFileNameOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_FILENAME_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, UrlFileNameOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_FILENAME_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_FILENAME_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.UrlPathMatchConditionParameters(TypedDict, total=False): @@ -12321,11 +12619,10 @@ namespace azure.mgmt.cdn.types key "operator": Required[Union[str, UrlPathOperator]] key "typeName": Required[Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_PATH_MATCH_CONDITION_PARAMETERS]] matchValues: list[str] - match_values: list[str] - negate_condition: bool + negateCondition: bool operator: Union[str, UrlPathOperator] transforms: list[Union[str, Transform]] - type_name: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_PATH_MATCH_CONDITION_PARAMETERS] + typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_PATH_MATCH_CONDITION_PARAMETERS] class azure.mgmt.cdn.types.UrlRedirectAction(TypedDict, total=False): @@ -12343,13 +12640,13 @@ namespace azure.mgmt.cdn.types key "destinationProtocol": Union[str, DestinationProtocol] key "redirectType": Required[Union[str, RedirectType]] key "typeName": Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS]] - custom_fragment: str - custom_hostname: str - custom_path: str - custom_query_string: str - destination_protocol: Union[str, DestinationProtocol] - redirect_type: Union[str, RedirectType] - type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS] + customFragment: str + customHostname: str + customPath: str + customQueryString: str + destinationProtocol: Union[str, DestinationProtocol] + redirectType: Union[str, RedirectType] + typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS] class azure.mgmt.cdn.types.UrlRewriteAction(TypedDict, total=False): @@ -12365,9 +12662,9 @@ namespace azure.mgmt.cdn.types key "sourcePattern": Required[str] key "typeName": Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REWRITE_ACTION_PARAMETERS]] destination: str - preserve_unmatched_path: bool - source_pattern: str - type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REWRITE_ACTION_PARAMETERS] + preserveUnmatchedPath: bool + sourcePattern: str + typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REWRITE_ACTION_PARAMETERS] class azure.mgmt.cdn.types.UrlSigningAction(TypedDict, total=False): @@ -12382,15 +12679,14 @@ namespace azure.mgmt.cdn.types key "typeName": Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_SIGNING_ACTION_PARAMETERS]] algorithm: Union[str, Algorithm] parameterNameOverride: list[UrlSigningParamIdentifier] - parameter_name_override: list[UrlSigningParamIdentifier] - type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_SIGNING_ACTION_PARAMETERS] + typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_SIGNING_ACTION_PARAMETERS] class azure.mgmt.cdn.types.UrlSigningKey(TypedDict, total=False): key "keyId": Required[str] key "keySourceParameters": Required[KeyVaultSigningKeyParameters] - key_id: str - key_source_parameters: KeyVaultSigningKeyParameters + keyId: str + keySourceParameters: KeyVaultSigningKeyParameters class azure.mgmt.cdn.types.UrlSigningKeyParameters(TypedDict, total=False): @@ -12398,24 +12694,24 @@ namespace azure.mgmt.cdn.types key "secretSource": Required[ResourceReference] key "secretVersion": Required[str] key "type": Required[Literal[SecretType.URL_SIGNING_KEY]] - key_id: str - secret_source: ResourceReference - secret_version: str + keyId: str + secretSource: ResourceReference + secretVersion: str type: Literal[SecretType.URL_SIGNING_KEY] class azure.mgmt.cdn.types.UrlSigningParamIdentifier(TypedDict, total=False): key "paramIndicator": Required[Union[str, ParamIndicator]] key "paramName": Required[str] - param_indicator: Union[str, ParamIndicator] - param_name: str + paramIndicator: Union[str, ParamIndicator] + paramName: str class azure.mgmt.cdn.types.UserAssignedIdentity(TypedDict, total=False): key "clientId": str key "principalId": str - client_id: str - principal_id: str + clientId: str + principalId: str class azure.mgmt.cdn.types.UserManagedHttpsParameters(TypedDict, total=False): @@ -12423,29 +12719,29 @@ namespace azure.mgmt.cdn.types key "certificateSourceParameters": Required[KeyVaultCertificateSourceParameters] key "minimumTlsVersion": Union[str, MinimumTlsVersion] key "protocolType": Required[Union[str, ProtocolType]] - certificate_source: Literal[CertificateSource.AZURE_KEY_VAULT] - certificate_source_parameters: KeyVaultCertificateSourceParameters - minimum_tls_version: Union[str, MinimumTlsVersion] - protocol_type: Union[str, ProtocolType] + certificateSource: Literal[CertificateSource.AZURE_KEY_VAULT] + certificateSourceParameters: KeyVaultCertificateSourceParameters + minimumTlsVersion: Union[str, MinimumTlsVersion] + protocolType: Union[str, ProtocolType] class azure.mgmt.cdn.types.ValidateCustomDomainInput(TypedDict, total=False): key "hostName": Required[str] - host_name: str + hostName: str class azure.mgmt.cdn.types.ValidateProbeInput(TypedDict, total=False): key "probeURL": Required[str] - probe_url: str + probeURL: str class azure.mgmt.cdn.types.ValidateSecretInput(TypedDict, total=False): key "secretSource": Required[ResourceReference] key "secretType": Required[Union[str, SecretType]] key "secretVersion": str - secret_source: ResourceReference - secret_type: Union[str, SecretType] - secret_version: str + secretSource: ResourceReference + secretType: Union[str, SecretType] + secretVersion: str ``` \ No newline at end of file diff --git a/sdk/cdn/azure-mgmt-cdn/api.metadata.yml b/sdk/cdn/azure-mgmt-cdn/api.metadata.yml index db33fd4a55cd..aea293baf751 100644 --- a/sdk/cdn/azure-mgmt-cdn/api.metadata.yml +++ b/sdk/cdn/azure-mgmt-cdn/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: 3fb82a103a8f4393e27671979e34b353a28ccdbdc9943d6df558772bfc0414ec -parserVersion: 0.3.28 -pythonVersion: 3.13.14 +apiMdSha256: 205691bbc323a4c8199f122f10bd1ffb2eeb78e626a73ab9db285a3a9b43fb19 +parserVersion: 0.3.31 +pythonVersion: 3.13.15 diff --git a/sdk/cdn/azure-mgmt-cdn/apiview-properties.json b/sdk/cdn/azure-mgmt-cdn/apiview-properties.json index 7c145b465879..3c1dbddccfaf 100644 --- a/sdk/cdn/azure-mgmt-cdn/apiview-properties.json +++ b/sdk/cdn/azure-mgmt-cdn/apiview-properties.json @@ -7,6 +7,7 @@ "azure.mgmt.cdn.models.AFDDomain": "Microsoft.Cdn.AFDDomain", "azure.mgmt.cdn.models.AFDDomainHttpsCustomizedCipherSuiteSet": "Microsoft.Cdn.AFDDomainHttpsCustomizedCipherSuiteSet", "azure.mgmt.cdn.models.AFDDomainHttpsParameters": "Microsoft.Cdn.AFDDomainHttpsParameters", + "azure.mgmt.cdn.models.AFDDomainMtlsParameters": "Microsoft.Cdn.AFDDomainMtlsParameters", "azure.mgmt.cdn.models.AFDDomainProperties": "Microsoft.Cdn.AFDDomainProperties", "azure.mgmt.cdn.models.AFDDomainUpdateParameters": "Microsoft.Cdn.AFDDomainUpdateParameters", "azure.mgmt.cdn.models.AFDDomainUpdatePropertiesParameters": "Microsoft.Cdn.AFDDomainUpdatePropertiesParameters", @@ -25,8 +26,12 @@ "azure.mgmt.cdn.models.AFDOriginUpdatePropertiesParameters": "Microsoft.Cdn.AFDOriginUpdatePropertiesParameters", "azure.mgmt.cdn.models.AfdPurgeParameters": "Microsoft.Cdn.AfdPurgeParameters", "azure.mgmt.cdn.models.AfdRouteCacheConfiguration": "Microsoft.Cdn.AfdRouteCacheConfiguration", - "azure.mgmt.cdn.models.AFDStateProperties": "Microsoft.Cdn.AFDStateProperties", "azure.mgmt.cdn.models.SecretParameters": "Microsoft.Cdn.SecretParameters", + "azure.mgmt.cdn.models.AfdSecretMtlsCertificateChain": "Microsoft.Cdn.AfdSecretMtlsCertificateChain", + "azure.mgmt.cdn.models.AFDStateProperties": "Microsoft.Cdn.AFDStateProperties", + "azure.mgmt.cdn.models.DeliveryRuleAction": "Microsoft.Cdn.DeliveryRuleAction", + "azure.mgmt.cdn.models.AfdUrlSigningAction": "Microsoft.Cdn.AfdUrlSigningAction", + "azure.mgmt.cdn.models.AfdUrlSigningActionParameters": "Microsoft.Cdn.AfdUrlSigningActionParameters", "azure.mgmt.cdn.models.AzureFirstPartyManagedCertificateParameters": "Microsoft.Cdn.AzureFirstPartyManagedCertificateParameters", "azure.mgmt.cdn.models.BatchRuleProperties": "Microsoft.Cdn.BatchRuleProperties", "azure.mgmt.cdn.models.CacheConfiguration": "Microsoft.Cdn.CacheConfiguration", @@ -51,8 +56,12 @@ "azure.mgmt.cdn.models.CheckNameAvailabilityInput": "Microsoft.Cdn.CheckNameAvailabilityInput", "azure.mgmt.cdn.models.CheckNameAvailabilityOutput": "Microsoft.Cdn.CheckNameAvailabilityOutput", "azure.mgmt.cdn.models.CidrIpAddress": "Microsoft.Cdn.CidrIpAddress", + "azure.mgmt.cdn.models.ClientCertificateRequiredAndOriginValidatesAdvancedSettings": "Microsoft.Cdn.ClientCertificateRequiredAndOriginValidatesAdvancedSettings", + "azure.mgmt.cdn.models.ClientCertificateRequiredAndValidatedAdvancedSettings": "Microsoft.Cdn.ClientCertificateRequiredAndValidatedAdvancedSettings", + "azure.mgmt.cdn.models.ClientCertificateValidatedIfPresentedAdvancedSettings": "Microsoft.Cdn.ClientCertificateValidatedIfPresentedAdvancedSettings", "azure.mgmt.cdn.models.DeliveryRuleConditionParameters": "Microsoft.Cdn.DeliveryRuleConditionParameters", "azure.mgmt.cdn.models.ClientPortMatchConditionParameters": "Microsoft.Cdn.ClientPortMatchConditionParameters", + "azure.mgmt.cdn.models.CompleteMtlsPassthroughToOriginAdvancedSettings": "Microsoft.Cdn.CompleteMtlsPassthroughToOriginAdvancedSettings", "azure.mgmt.cdn.models.Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems": "Microsoft.Cdn.Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems", "azure.mgmt.cdn.models.Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems": "Microsoft.Cdn.Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems", "azure.mgmt.cdn.models.ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems": "Microsoft.Cdn.ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems", @@ -75,12 +84,12 @@ "azure.mgmt.cdn.models.DeepCreatedOriginGroupProperties": "Microsoft.Cdn.DeepCreatedOriginGroupProperties", "azure.mgmt.cdn.models.DeepCreatedOriginProperties": "Microsoft.Cdn.DeepCreatedOriginProperties", "azure.mgmt.cdn.models.DeliveryRule": "Microsoft.Cdn.DeliveryRule", - "azure.mgmt.cdn.models.DeliveryRuleAction": "Microsoft.Cdn.DeliveryRuleAction", "azure.mgmt.cdn.models.DeliveryRuleCacheExpirationAction": "Microsoft.Cdn.DeliveryRuleCacheExpirationAction", "azure.mgmt.cdn.models.DeliveryRuleCacheKeyQueryStringAction": "Microsoft.Cdn.DeliveryRuleCacheKeyQueryStringAction", "azure.mgmt.cdn.models.DeliveryRuleCondition": "Microsoft.Cdn.DeliveryRuleCondition", "azure.mgmt.cdn.models.DeliveryRuleClientPortCondition": "Microsoft.Cdn.DeliveryRuleClientPortCondition", "azure.mgmt.cdn.models.DeliveryRuleCookiesCondition": "Microsoft.Cdn.DeliveryRuleCookiesCondition", + "azure.mgmt.cdn.models.DeliveryRuleEdgeActionParameters": "Microsoft.Cdn.DeliveryRuleEdgeActionParameters", "azure.mgmt.cdn.models.DeliveryRuleHostNameCondition": "Microsoft.Cdn.DeliveryRuleHostNameCondition", "azure.mgmt.cdn.models.DeliveryRuleHttpVersionCondition": "Microsoft.Cdn.DeliveryRuleHttpVersionCondition", "azure.mgmt.cdn.models.DeliveryRuleIsDeviceCondition": "Microsoft.Cdn.DeliveryRuleIsDeviceCondition", @@ -103,6 +112,7 @@ "azure.mgmt.cdn.models.DeliveryRuleUrlPathCondition": "Microsoft.Cdn.DeliveryRuleUrlPathCondition", "azure.mgmt.cdn.models.DimensionProperties": "Microsoft.Cdn.DimensionProperties", "azure.mgmt.cdn.models.DomainValidationProperties": "Microsoft.Cdn.DomainValidationProperties", + "azure.mgmt.cdn.models.EdgeAction": "Microsoft.Cdn.EdgeAction", "azure.mgmt.cdn.models.EdgeNode": "Microsoft.Cdn.EdgeNode", "azure.mgmt.cdn.models.EdgeNodeProperties": "Microsoft.Cdn.EdgeNodeProperties", "azure.mgmt.cdn.models.Endpoint": "Microsoft.Cdn.Endpoint", @@ -264,6 +274,7 @@ "azure.mgmt.cdn.models.ResourceUsageUnit": "Microsoft.Cdn.ResourceUsageUnit", "azure.mgmt.cdn.models.CanMigrateDefaultSku": "Microsoft.Cdn.CanMigrateDefaultSku", "azure.mgmt.cdn.models.EnabledState": "Microsoft.Cdn.EnabledState", + "azure.mgmt.cdn.models.EnforceMtlsEnabledState": "Microsoft.Cdn.EnforceMtlsEnabledState", "azure.mgmt.cdn.models.AfdProvisioningState": "Microsoft.Cdn.AfdProvisioningState", "azure.mgmt.cdn.models.DeploymentStatus": "Microsoft.Cdn.DeploymentStatus", "azure.mgmt.cdn.models.AutoGeneratedDomainNameLabelScope": "Microsoft.Cdn.AutoGeneratedDomainNameLabelScope", @@ -271,7 +282,9 @@ "azure.mgmt.cdn.models.HealthProbeRequestType": "Microsoft.Cdn.HealthProbeRequestType", "azure.mgmt.cdn.models.ProbeProtocol": "Microsoft.Cdn.ProbeProtocol", "azure.mgmt.cdn.models.OriginAuthenticationType": "Microsoft.Cdn.OriginAuthenticationType", + "azure.mgmt.cdn.models.OriginAuthenticationTokenDestinationHeader": "Microsoft.Cdn.OriginAuthenticationTokenDestinationHeader", "azure.mgmt.cdn.models.SharedPrivateLinkResourceStatus": "Microsoft.Cdn.SharedPrivateLinkResourceStatus", + "azure.mgmt.cdn.models.CertificateNameCheckValidationMode": "Microsoft.Cdn.CertificateNameCheckValidationMode", "azure.mgmt.cdn.models.AFDEndpointProtocols": "Microsoft.Cdn.AFDEndpointProtocols", "azure.mgmt.cdn.models.AfdQueryStringCachingBehavior": "Microsoft.Cdn.AfdQueryStringCachingBehavior", "azure.mgmt.cdn.models.ForwardingProtocol": "Microsoft.Cdn.ForwardingProtocol", @@ -304,16 +317,18 @@ "azure.mgmt.cdn.models.UrlPathOperator": "Microsoft.Cdn.UrlPathOperator", "azure.mgmt.cdn.models.ClientPortOperator": "Microsoft.Cdn.ClientPortOperator", "azure.mgmt.cdn.models.DeliveryRuleActionEnum": "Microsoft.Cdn.DeliveryRuleActionName", + "azure.mgmt.cdn.models.TypeName": "Microsoft.Cdn.TypeName", + "azure.mgmt.cdn.models.Algorithm": "Microsoft.Cdn.Algorithm", + "azure.mgmt.cdn.models.ParamIndicator": "Microsoft.Cdn.ParamIndicator", "azure.mgmt.cdn.models.DeliveryRuleActionParametersType": "Microsoft.Cdn.DeliveryRuleActionParametersType", "azure.mgmt.cdn.models.QueryStringBehavior": "Microsoft.Cdn.QueryStringBehavior", + "azure.mgmt.cdn.models.InvocationPoint": "Microsoft.Cdn.InvocationPoint", "azure.mgmt.cdn.models.HeaderAction": "Microsoft.Cdn.HeaderAction", "azure.mgmt.cdn.models.RuleQueryStringCachingBehavior": "Microsoft.Cdn.RuleQueryStringCachingBehavior", "azure.mgmt.cdn.models.RuleIsCompressionEnabled": "Microsoft.Cdn.RuleIsCompressionEnabled", "azure.mgmt.cdn.models.RuleCacheBehavior": "Microsoft.Cdn.RuleCacheBehavior", "azure.mgmt.cdn.models.RedirectType": "Microsoft.Cdn.RedirectType", "azure.mgmt.cdn.models.DestinationProtocol": "Microsoft.Cdn.DestinationProtocol", - "azure.mgmt.cdn.models.Algorithm": "Microsoft.Cdn.Algorithm", - "azure.mgmt.cdn.models.ParamIndicator": "Microsoft.Cdn.ParamIndicator", "azure.mgmt.cdn.models.CacheBehavior": "Microsoft.Cdn.CacheBehavior", "azure.mgmt.cdn.models.CacheType": "Microsoft.Cdn.CacheType", "azure.mgmt.cdn.models.MatchProcessingBehavior": "Microsoft.Cdn.MatchProcessingBehavior", @@ -345,6 +360,10 @@ "azure.mgmt.cdn.models.AfdMinimumTlsVersion": "Microsoft.Cdn.AfdMinimumTlsVersion", "azure.mgmt.cdn.models.AfdCustomizedCipherSuiteForTls12": "Microsoft.Cdn.AfdCustomizedCipherSuiteForTls12", "azure.mgmt.cdn.models.AfdCustomizedCipherSuiteForTls13": "Microsoft.Cdn.AfdCustomizedCipherSuiteForTls13", + "azure.mgmt.cdn.models.AfdServerTlsGroupPolicy": "Microsoft.Cdn.AfdServerTlsGroupPolicy", + "azure.mgmt.cdn.models.AfdServerTlsGroup": "Microsoft.Cdn.AfdServerTlsGroup", + "azure.mgmt.cdn.models.MtlsScenarioType": "Microsoft.Cdn.MtlsScenarioType", + "azure.mgmt.cdn.models.CertificateRevocationCheckEnabledState": "Microsoft.Cdn.CertificateRevocationCheckEnabledState", "azure.mgmt.cdn.models.DomainValidationState": "Microsoft.Cdn.DomainValidationState", "azure.mgmt.cdn.models.ResourceType": "Microsoft.Cdn.ResourceType", "azure.mgmt.cdn.models.Status": "Microsoft.Cdn.Status", @@ -605,5 +624,5 @@ "azure.mgmt.cdn.CdnManagementClient.validate_probe": "Microsoft.Cdn.validateProbe", "azure.mgmt.cdn.aio.CdnManagementClient.validate_probe": "Microsoft.Cdn.validateProbe" }, - "CrossLanguageVersion": "19cd7d035382" + "CrossLanguageVersion": "7defa0187edd" } \ No newline at end of file diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_client.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_client.py index f7748afac2d0..51edbc3f8d04 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_client.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_client.py @@ -54,7 +54,9 @@ from azure.core.credentials import TokenCredential -class CdnManagementClient(_CdnManagementClientOperationsMixin): # pylint: disable=too-many-instance-attributes +class CdnManagementClient( + _CdnManagementClientOperationsMixin +): # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Use these APIs to manage Azure Front Door and CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure. @@ -109,7 +111,7 @@ class CdnManagementClient(_CdnManagementClientOperationsMixin): # pylint: disab :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-12-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-07-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_configuration.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_configuration.py index ecd7fe11d060..cb00d9ff1adf 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_configuration.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials import TokenCredential -class CdnManagementClientConfiguration: # pylint: disable=too-many-instance-attributes +class CdnManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for CdnManagementClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class CdnManagementClientConfiguration: # pylint: disable=too-many-instance-att :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-12-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-07-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-12-01") + api_version: str = kwargs.pop("api_version", "2026-07-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_patch.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_patch.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_utils/model_base.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_utils/model_base.py index b93f5120d517..35d5fc024978 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_utils/model_base.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_utils/model_base.py @@ -158,7 +158,15 @@ def _is_readonly(p): class SdkJSONEncoder(JSONEncoder): - """A JSON encoder that's capable of serializing datetime objects and bytes.""" + """A JSON encoder that's capable of serializing datetime objects and bytes. + + :param args: Additional positional arguments passed to the base ``JSONEncoder``. + :type args: typing.Any + :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False. + :paramtype exclude_readonly: bool + :keyword format: The format to use for serialization. Defaults to None. + :paramtype format: typing.Optional[str] + """ def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): super().__init__(*args, **kwargs) @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr): return int(attr) +def _deserialize_bool_as_str(attr): + if isinstance(attr, bool): + return attr + return attr.lower() == "true" + + _DESERIALIZE_MAPPING = { datetime: _deserialize_datetime, date: _deserialize_date, @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr): def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): if annotation is int and rf and rf._format == "str": return _deserialize_int_as_str + if annotation is bool and rf and rf._format == "str": + return _deserialize_bool_as_str if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) if rf and rf._format: @@ -458,21 +474,21 @@ def __ne__(self, other: typing.Any) -> bool: def keys(self) -> typing.KeysView[str]: """ - :returns: a set-like object providing a view on D's keys + :returns: a set-like object providing a view on the mapping's keys :rtype: ~typing.KeysView """ return self._data.keys() def values(self) -> typing.ValuesView[typing.Any]: """ - :returns: an object providing a view on D's values + :returns: an object providing a view on the mapping's values :rtype: ~typing.ValuesView """ return self._data.values() def items(self) -> typing.ItemsView[str, typing.Any]: """ - :returns: set-like object providing a view on D's items + :returns: a set-like object providing a view on the mapping's items :rtype: ~typing.ItemsView """ return self._data.items() @@ -482,7 +498,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any: Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ try: @@ -517,19 +533,19 @@ def popitem(self) -> tuple[str, typing.Any]: Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple - :raises KeyError: if D is empty. + :raises KeyError: if the dictionary is empty. """ return self._data.popitem() def clear(self) -> None: """ - Remove all items from D. + Remove all items from the dictionary. """ self._data.clear() def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ """ - Updates D from mapping/iterable E and F. + Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. """ self._data.update(*args, **kwargs) @@ -542,10 +558,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: """ - Same as calling D.get(k, d), and setting D[k]=d if k not found + Return the value for key if key is in the dictionary; otherwise set the key to + default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ if default is _UNSET: diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_utils/serialization.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_utils/serialization.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_utils/serialization.py @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key): class Serializer: # pylint: disable=too-many-public-methods - """Request object model serializer.""" + """Request object model serializer. + + :param classes: Mapping of model names to model types, used to resolve models during serialization. + :type classes: typing.Optional[typing.Mapping[str, type]] + """ basic_types = {str: "str", int: "int", bool: "bool", float: "float"} diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_version.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_version.py index 2b8e66c6bc52..91020927c9cc 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_version.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "14.0.0" +VERSION = "14.1.0" diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_client.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_client.py index 2436d94984a6..a7cdf81ca4e3 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_client.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_client.py @@ -54,7 +54,9 @@ from azure.core.credentials_async import AsyncTokenCredential -class CdnManagementClient(_CdnManagementClientOperationsMixin): # pylint: disable=too-many-instance-attributes +class CdnManagementClient( + _CdnManagementClientOperationsMixin +): # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Use these APIs to manage Azure Front Door and CDN resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure. @@ -109,7 +111,7 @@ class CdnManagementClient(_CdnManagementClientOperationsMixin): # pylint: disab :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-12-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-07-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_configuration.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_configuration.py index dbe933abb159..e7b403d91718 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_configuration.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class CdnManagementClientConfiguration: # pylint: disable=too-many-instance-attributes +class CdnManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for CdnManagementClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class CdnManagementClientConfiguration: # pylint: disable=too-many-instance-att :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-12-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-07-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-12-01") + api_version: str = kwargs.pop("api_version", "2026-07-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_patch.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_patch.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_operations.py index 42cb4b473ece..4eb409dc6e51 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_operations.py @@ -163,7 +163,7 @@ List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -273,7 +273,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ProfilesOperations: # pylint: disable=too-many-public-methods +class ProfilesOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -2475,7 +2475,7 @@ def get_long_running_output(pipeline_response): ) -class AFDEndpointsOperations: +class AFDEndpointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3917,7 +3917,7 @@ async def validate_custom_domain( return deserialized # type: ignore -class AFDOriginGroupsOperations: +class AFDOriginGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4878,7 +4878,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AFDOriginsOperations: +class AFDOriginsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5764,7 +5764,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RoutesOperations: +class RoutesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6664,7 +6664,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RuleSetsOperations: +class RuleSetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6772,7 +6772,7 @@ async def get( "accept", ] }, - api_versions_list=["2025-12-01"], + api_versions_list=["2025-12-01", "2026-04-01-preview", "2026-07-01"], ) async def _create_initial( self, @@ -6974,7 +6974,7 @@ async def begin_create( "accept", ] }, - api_versions_list=["2025-12-01"], + api_versions_list=["2025-12-01", "2026-04-01-preview", "2026-07-01"], ) async def begin_create( self, @@ -7399,7 +7399,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RulesOperations: +class RulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8288,7 +8288,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SecurityPoliciesOperations: +class SecurityPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9132,7 +9132,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SecretsOperations: +class SecretsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9712,7 +9712,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class EndpointsOperations: +class EndpointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11649,7 +11649,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class OriginsOperations: +class OriginsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12529,7 +12529,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class OriginGroupsOperations: +class OriginGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -13425,7 +13425,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class CustomDomainsOperations: +class CustomDomainsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -14465,7 +14465,7 @@ def get_long_running_output(pipeline_response): ) -class AFDCustomDomainsOperations: +class AFDCustomDomainsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -15451,7 +15451,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class AFDProfilesOperations: +class AFDProfilesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -16358,7 +16358,7 @@ def get_long_running_output(pipeline_response): ) -class LogAnalyticsOperations: +class LogAnalyticsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -16946,7 +16946,7 @@ async def get_waf_log_analytics_rankings( return deserialized # type: ignore -class PoliciesOperations: +class PoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -17699,7 +17699,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ResourceUsageOperations: +class ResourceUsageOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -17810,7 +17810,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class EdgeNodesOperations: +class EdgeNodesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -17921,7 +17921,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ManagedRuleSetsOperations: +class ManagedRuleSetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_patch.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_patch.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py index 1dfef3761264..cf8c378fd8cb 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/__init__.py @@ -17,6 +17,7 @@ AFDDomain, AFDDomainHttpsCustomizedCipherSuiteSet, AFDDomainHttpsParameters, + AFDDomainMtlsParameters, AFDDomainProperties, AFDDomainUpdateParameters, AFDDomainUpdatePropertiesParameters, @@ -36,6 +37,9 @@ ActivatedResourceReference, AfdPurgeParameters, AfdRouteCacheConfiguration, + AfdSecretMtlsCertificateChain, + AfdUrlSigningAction, + AfdUrlSigningActionParameters, AzureFirstPartyManagedCertificateParameters, BatchRuleProperties, CacheConfiguration, @@ -58,7 +62,11 @@ CheckNameAvailabilityInput, CheckNameAvailabilityOutput, CidrIpAddress, + ClientCertificateRequiredAndOriginValidatesAdvancedSettings, + ClientCertificateRequiredAndValidatedAdvancedSettings, + ClientCertificateValidatedIfPresentedAdvancedSettings, ClientPortMatchConditionParameters, + CompleteMtlsPassthroughToOriginAdvancedSettings, Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems, Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems, ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems, @@ -90,6 +98,7 @@ DeliveryRuleCondition, DeliveryRuleConditionParameters, DeliveryRuleCookiesCondition, + DeliveryRuleEdgeActionParameters, DeliveryRuleHostNameCondition, DeliveryRuleHttpVersionCondition, DeliveryRuleIsDeviceCondition, @@ -112,6 +121,7 @@ DeliveryRuleUrlPathCondition, DimensionProperties, DomainValidationProperties, + EdgeAction, EdgeNode, EdgeNodeProperties, Endpoint, @@ -276,11 +286,15 @@ AfdMinimumTlsVersion, AfdProvisioningState, AfdQueryStringCachingBehavior, + AfdServerTlsGroup, + AfdServerTlsGroupPolicy, Algorithm, AutoGeneratedDomainNameLabelScope, CacheBehavior, CacheType, CanMigrateDefaultSku, + CertificateNameCheckValidationMode, + CertificateRevocationCheckEnabledState, CertificateSource, CertificateSourceParametersType, CertificateType, @@ -301,6 +315,7 @@ EnabledState, EndpointProvisioningState, EndpointResourceState, + EnforceMtlsEnabledState, ForwardingProtocol, GeoFilterActions, HeaderAction, @@ -308,6 +323,7 @@ HostNameOperator, HttpVersionOperator, HttpsRedirect, + InvocationPoint, IsDeviceMatchConditionParametersMatchValuesItem, IsDeviceOperator, KeyVaultSigningKeyParametersTypeName, @@ -324,8 +340,10 @@ MetricsGranularity, MetricsSeriesUnit, MinimumTlsVersion, + MtlsScenarioType, Operator, OptimizationType, + OriginAuthenticationTokenDestinationHeader, OriginAuthenticationType, OriginGroupProvisioningState, OriginGroupResourceState, @@ -376,6 +394,7 @@ Status, Transform, TransformType, + TypeName, UpdateRule, UrlFileExtensionOperator, UrlFileNameOperator, @@ -399,6 +418,7 @@ "AFDDomain", "AFDDomainHttpsCustomizedCipherSuiteSet", "AFDDomainHttpsParameters", + "AFDDomainMtlsParameters", "AFDDomainProperties", "AFDDomainUpdateParameters", "AFDDomainUpdatePropertiesParameters", @@ -418,6 +438,9 @@ "ActivatedResourceReference", "AfdPurgeParameters", "AfdRouteCacheConfiguration", + "AfdSecretMtlsCertificateChain", + "AfdUrlSigningAction", + "AfdUrlSigningActionParameters", "AzureFirstPartyManagedCertificateParameters", "BatchRuleProperties", "CacheConfiguration", @@ -440,7 +463,11 @@ "CheckNameAvailabilityInput", "CheckNameAvailabilityOutput", "CidrIpAddress", + "ClientCertificateRequiredAndOriginValidatesAdvancedSettings", + "ClientCertificateRequiredAndValidatedAdvancedSettings", + "ClientCertificateValidatedIfPresentedAdvancedSettings", "ClientPortMatchConditionParameters", + "CompleteMtlsPassthroughToOriginAdvancedSettings", "Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems", "Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems", "ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems", @@ -472,6 +499,7 @@ "DeliveryRuleCondition", "DeliveryRuleConditionParameters", "DeliveryRuleCookiesCondition", + "DeliveryRuleEdgeActionParameters", "DeliveryRuleHostNameCondition", "DeliveryRuleHttpVersionCondition", "DeliveryRuleIsDeviceCondition", @@ -494,6 +522,7 @@ "DeliveryRuleUrlPathCondition", "DimensionProperties", "DomainValidationProperties", + "EdgeAction", "EdgeNode", "EdgeNodeProperties", "Endpoint", @@ -655,11 +684,15 @@ "AfdMinimumTlsVersion", "AfdProvisioningState", "AfdQueryStringCachingBehavior", + "AfdServerTlsGroup", + "AfdServerTlsGroupPolicy", "Algorithm", "AutoGeneratedDomainNameLabelScope", "CacheBehavior", "CacheType", "CanMigrateDefaultSku", + "CertificateNameCheckValidationMode", + "CertificateRevocationCheckEnabledState", "CertificateSource", "CertificateSourceParametersType", "CertificateType", @@ -680,6 +713,7 @@ "EnabledState", "EndpointProvisioningState", "EndpointResourceState", + "EnforceMtlsEnabledState", "ForwardingProtocol", "GeoFilterActions", "HeaderAction", @@ -687,6 +721,7 @@ "HostNameOperator", "HttpVersionOperator", "HttpsRedirect", + "InvocationPoint", "IsDeviceMatchConditionParametersMatchValuesItem", "IsDeviceOperator", "KeyVaultSigningKeyParametersTypeName", @@ -703,8 +738,10 @@ "MetricsGranularity", "MetricsSeriesUnit", "MinimumTlsVersion", + "MtlsScenarioType", "Operator", "OptimizationType", + "OriginAuthenticationTokenDestinationHeader", "OriginAuthenticationType", "OriginGroupProvisioningState", "OriginGroupResourceState", @@ -755,6 +792,7 @@ "Status", "Transform", "TransformType", + "TypeName", "UpdateRule", "UrlFileExtensionOperator", "UrlFileNameOperator", diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_enums.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_enums.py index ff921ea34b2e..d81b78aae8c7 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_enums.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_enums.py @@ -125,6 +125,38 @@ class AfdQueryStringCachingBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta """INCLUDE_SPECIFIED_QUERY_STRINGS.""" +class AfdServerTlsGroup(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Supported key-exchange groups and curves. The ML-KEM groups are hybrid post-quantum groups.""" + + SEC_P256_R1_MLKEM768 = "SecP256r1MLKEM768" + """Hybrid post-quantum group combining secp256r1 with ML-KEM-768.""" + SEC_P384_R1_MLKEM1024 = "SecP384r1MLKEM1024" + """Hybrid post-quantum group combining secp384r1 with ML-KEM-1024.""" + X25519_MLKEM768 = "X25519MLKEM768" + """Hybrid post-quantum group combining X25519 with ML-KEM-768.""" + PRIME256_V1 = "prime256v1" + """The prime256v1 elliptic curve group.""" + X25519 = "X25519" + """The X25519 elliptic curve group.""" + SECP384_R1 = "secp384r1" + """The secp384r1 elliptic curve group.""" + SECP521_R1 = "secp521r1" + """The secp521r1 elliptic curve group.""" + + +class AfdServerTlsGroupPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Server TLS group policy that will be used for Https. Standard and Enhanced are service-managed + sets; Custom allows specifying serverTlsGroups explicitly. + """ + + STANDARD = "Standard" + """Uses the standard service-managed set of server TLS groups.""" + ENHANCED = "Enhanced" + """Uses the enhanced service-managed set of server TLS groups.""" + CUSTOM = "Custom" + """Uses the server TLS groups specified by serverTlsGroups.""" + + class Algorithm(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Algorithm to use for URL signing.""" @@ -172,6 +204,30 @@ class CanMigrateDefaultSku(str, Enum, metaclass=CaseInsensitiveEnumMeta): """PREMIUM_AZURE_FRONT_DOOR.""" +class CertificateNameCheckValidationMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The validation mode for certificate name check at origin level. Only applicable when + enforceCertificateNameCheck is true. + """ + + ORIGIN_HOSTNAME = "OriginHostname" + """Validate the certificate against the origin hostname.""" + CUSTOM_CERTIFICATE_SUBJECT = "CustomCertificateSubject" + """Validate the certificate against custom certificate subjects.""" + INCOMING_HOST_HEADER = "IncomingHostHeader" + """Validate the certificate against the incoming host header.""" + + +class CertificateRevocationCheckEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Set to Enabled by default. If set to Disabled, revocation status of client certificate chain + will be checked before establishing mutual TLS connection. + """ + + ENABLED = "Enabled" + """ENABLED.""" + DISABLED = "Disabled" + """DISABLED.""" + + class CertificateSource(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Defines the source of the SSL certificate.""" @@ -354,6 +410,10 @@ class DeliveryRuleActionEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ORIGIN_GROUP_OVERRIDE.""" ROUTE_CONFIGURATION_OVERRIDE = "RouteConfigurationOverride" """ROUTE_CONFIGURATION_OVERRIDE.""" + EDGE_ACTION = "EdgeAction" + """EDGE_ACTION.""" + AFD_URL_SIGNING = "AfdUrlSigning" + """AFD_URL_SIGNING.""" class DeliveryRuleActionParametersType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -379,6 +439,8 @@ class DeliveryRuleActionParametersType(str, Enum, metaclass=CaseInsensitiveEnumM "DeliveryRuleRouteConfigurationOverrideActionParameters" ) """DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS.""" + DELIVERY_RULE_EDGE_ACTION_PARAMETERS = "DeliveryRuleEdgeActionParameters" + """DELIVERY_RULE_EDGE_ACTION_PARAMETERS.""" class DeliveryRuleConditionParametersType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -514,6 +576,17 @@ class EndpointResourceState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """STOPPING.""" +class EnforceMtlsEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Set to Disabled by default. If set to Enabled, only custom domains with mTLS enabled can be + added to child Route resources. + """ + + ENABLED = "Enabled" + """ENABLED.""" + DISABLED = "Disabled" + """DISABLED.""" + + class ForwardingProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Protocol this rule will use when forwarding traffic to backends.""" @@ -599,6 +672,15 @@ class HttpVersionOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta): """EQUAL.""" +class InvocationPoint(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Defines at which point in the request processing pipeline the edge action will be invoked.""" + + CLIENT_REQUEST = "ClientRequest" + """CLIENT_REQUEST.""" + ORIGIN_REQUEST = "OriginRequest" + """ORIGIN_REQUEST.""" + + class IsDeviceMatchConditionParametersMatchValuesItem( # pylint: disable=name-too-long str, Enum, metaclass=CaseInsensitiveEnumMeta ): @@ -821,6 +903,19 @@ class MinimumTlsVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): """TLS12.""" +class MtlsScenarioType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Supported scenarios for establishing mTLS connection.""" + + CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED = "ClientCertificateRequiredAndValidated" + """CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED.""" + CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES = "ClientCertificateRequiredAndOriginValidates" + """CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES.""" + CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED = "ClientCertificateValidatedIfPresented" + """CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED.""" + COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN = "CompleteMtlsPassthroughToOrigin" + """COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN.""" + + class Operator(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Describes operator to be matched.""" @@ -867,6 +962,20 @@ class OptimizationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """DYNAMIC_SITE_ACCELERATION.""" +class OriginAuthenticationTokenDestinationHeader( # pylint: disable=name-too-long + str, Enum, metaclass=CaseInsensitiveEnumMeta +): + """The HTTP request header where the origin authentication token is placed when forwarding the + request to the origin. + """ + + AUTHORIZATION = "Authorization" + """Place the token in the standard ``Authorization`` request header (default behavior).""" + X_AZURE_AUTHORIZATION = "X-Azure-Authorization" + """Place the token in the ``X-Azure-Authorization`` request header to avoid conflicts with an + existing ``Authorization`` header set by the client.""" + + class OriginAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of the authentication for the origin.""" @@ -1418,6 +1527,8 @@ class SecretType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """MANAGED_CERTIFICATE.""" AZURE_FIRST_PARTY_MANAGED_CERTIFICATE = "AzureFirstPartyManagedCertificate" """AZURE_FIRST_PARTY_MANAGED_CERTIFICATE.""" + MTLS_CERTIFICATE_CHAIN = "MtlsCertificateChain" + """MTLS_CERTIFICATE_CHAIN.""" class SecurityPolicyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -1574,6 +1685,13 @@ class TransformType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """REMOVE_NULLS.""" +class TypeName(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of TypeName.""" + + DELIVERY_RULE_AFD_URL_SIGNING_ACTION_PARAMETERS = "DeliveryRuleAfdUrlSigningActionParameters" + """DELIVERY_RULE_AFD_URL_SIGNING_ACTION_PARAMETERS.""" + + class UpdateRule(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Describes the action that shall be taken when the certificate is updated in Key Vault.""" diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py index 6ca8ecc6e2c3..67caf4bcb4c1 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_models.py @@ -19,6 +19,7 @@ DeliveryRuleActionParametersType, DeliveryRuleConditionParametersType, MatchVariable, + MtlsScenarioType, SecretType, SecurityPolicyType, ) @@ -27,7 +28,7 @@ from .. import models as _models -class ActivatedResourceReference(_Model): +class ActivatedResourceReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Reference to another resource along with its state. :ivar id: Resource ID. @@ -104,7 +105,7 @@ class ProxyResource(Resource): """ -class AFDDomain(ProxyResource): +class AFDDomain(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. `www.contoso.com `_. @@ -131,6 +132,7 @@ class AFDDomain(ProxyResource): __flattened_items = [ "profile_name", "tls_settings", + "mtls_settings", "azure_dns_zone", "pre_validated_custom_domain_resource_id", "provisioning_state", @@ -177,7 +179,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AFDDomainHttpsCustomizedCipherSuiteSet(_Model): +class AFDDomainHttpsCustomizedCipherSuiteSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Customized cipher suite set object that will be used for Https when cipherSuiteSetType is Customized. @@ -219,7 +221,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AFDDomainHttpsParameters(_Model): +class AFDDomainHttpsParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties to secure a domain. :ivar certificate_type: Defines the source of the SSL certificate. Required. Known values are: @@ -235,6 +237,12 @@ class AFDDomainHttpsParameters(_Model): when cipherSuiteSetType is Customized. :vartype customized_cipher_suite_set: ~azure.mgmt.cdn.models.AFDDomainHttpsCustomizedCipherSuiteSet + :ivar server_tls_group_policy: Server TLS group policy that will be used for Https. Known + values are: "Standard", "Enhanced", and "Custom". + :vartype server_tls_group_policy: str or ~azure.mgmt.cdn.models.AfdServerTlsGroupPolicy + :ivar server_tls_groups: Server TLS groups that will be used for Https when + serverTlsGroupPolicy is Custom. + :vartype server_tls_groups: list[str or ~azure.mgmt.cdn.models.AfdServerTlsGroup] :ivar secret: Resource reference to the secret. ie. subs/rg/profile/secret. :vartype secret: ~azure.mgmt.cdn.models.ResourceReference """ @@ -259,6 +267,15 @@ class AFDDomainHttpsParameters(_Model): ) """Customized cipher suites object that will be used for Https when cipherSuiteSetType is Customized.""" + server_tls_group_policy: Optional[Union[str, "_models.AfdServerTlsGroupPolicy"]] = rest_field( + name="serverTlsGroupPolicy", visibility=["read", "create", "update", "delete", "query"] + ) + """Server TLS group policy that will be used for Https. Known values are: \"Standard\", + \"Enhanced\", and \"Custom\".""" + server_tls_groups: Optional[list[Union[str, "_models.AfdServerTlsGroup"]]] = rest_field( + name="serverTlsGroups", visibility=["read", "create", "update", "delete", "query"] + ) + """Server TLS groups that will be used for Https when serverTlsGroupPolicy is Custom.""" secret: Optional["_models.ResourceReference"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) @@ -272,6 +289,8 @@ def __init__( cipher_suite_set_type: Optional[Union[str, "_models.AfdCipherSuiteSetType"]] = None, minimum_tls_version: Optional[Union[str, "_models.AfdMinimumTlsVersion"]] = None, customized_cipher_suite_set: Optional["_models.AFDDomainHttpsCustomizedCipherSuiteSet"] = None, + server_tls_group_policy: Optional[Union[str, "_models.AfdServerTlsGroupPolicy"]] = None, + server_tls_groups: Optional[list[Union[str, "_models.AfdServerTlsGroup"]]] = None, secret: Optional["_models.ResourceReference"] = None, ) -> None: ... @@ -286,7 +305,47 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AFDDomainProperties(_Model): +class AFDDomainMtlsParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Contains the properties to configure mutual TLS for a custom domain with FQDN. Mutual TLS + cannot be configured for custom domains with wildcard host names. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + ClientCertificateRequiredAndOriginValidatesAdvancedSettings, + ClientCertificateRequiredAndValidatedAdvancedSettings, + ClientCertificateValidatedIfPresentedAdvancedSettings, + CompleteMtlsPassthroughToOriginAdvancedSettings + + :ivar scenario: Supported scenarios for establishing mTLS connection. Required. Known values + are: "ClientCertificateRequiredAndValidated", "ClientCertificateRequiredAndOriginValidates", + "ClientCertificateValidatedIfPresented", and "CompleteMtlsPassthroughToOrigin". + :vartype scenario: str or ~azure.mgmt.cdn.models.MtlsScenarioType + """ + + __mapping__: dict[str, _Model] = {} + scenario: str = rest_discriminator(name="scenario", visibility=["read", "create", "update", "delete", "query"]) + """Supported scenarios for establishing mTLS connection. Required. Known values are: + \"ClientCertificateRequiredAndValidated\", \"ClientCertificateRequiredAndOriginValidates\", + \"ClientCertificateValidatedIfPresented\", and \"CompleteMtlsPassthroughToOrigin\".""" + + @overload + def __init__( + self, + *, + scenario: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AFDDomainProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the domain to create. :ivar profile_name: The name of the profile which holds the domain. @@ -295,6 +354,9 @@ class AFDDomainProperties(_Model): AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. :vartype tls_settings: ~azure.mgmt.cdn.models.AFDDomainHttpsParameters + :ivar mtls_settings: The configuration specifying how to enable mutual TLS for the domain, + including specifying allowed FQDNs and which server certificate(s) to use. + :vartype mtls_settings: ~azure.mgmt.cdn.models.AFDDomainMtlsParameters :ivar azure_dns_zone: Resource reference to the Azure DNS zone. :vartype azure_dns_zone: ~azure.mgmt.cdn.models.ResourceReference :ivar pre_validated_custom_domain_resource_id: Resource reference to the Azure resource where @@ -327,6 +389,11 @@ class AFDDomainProperties(_Model): """The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.""" + mtls_settings: Optional["_models.AFDDomainMtlsParameters"] = rest_field( + name="mtlsSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration specifying how to enable mutual TLS for the domain, including specifying + allowed FQDNs and which server certificate(s) to use.""" azure_dns_zone: Optional["_models.ResourceReference"] = rest_field( name="azureDnsZone", visibility=["read", "create", "update", "delete", "query"] ) @@ -368,6 +435,7 @@ def __init__( *, host_name: str, tls_settings: Optional["_models.AFDDomainHttpsParameters"] = None, + mtls_settings: Optional["_models.AFDDomainMtlsParameters"] = None, azure_dns_zone: Optional["_models.ResourceReference"] = None, pre_validated_custom_domain_resource_id: Optional["_models.ResourceReference"] = None, extended_properties: Optional[dict[str, str]] = None, @@ -384,7 +452,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AFDDomainUpdateParameters(_Model): +class AFDDomainUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The domain JSON object required for domain creation or update. :ivar properties: The JSON object that contains the properties of the domain to create. @@ -396,7 +464,13 @@ class AFDDomainUpdateParameters(_Model): ) """The JSON object that contains the properties of the domain to create.""" - __flattened_items = ["profile_name", "tls_settings", "azure_dns_zone", "pre_validated_custom_domain_resource_id"] + __flattened_items = [ + "profile_name", + "tls_settings", + "mtls_settings", + "azure_dns_zone", + "pre_validated_custom_domain_resource_id", + ] @overload def __init__( @@ -434,7 +508,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AFDDomainUpdatePropertiesParameters(_Model): +class AFDDomainUpdatePropertiesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the domain to create. :ivar profile_name: The name of the profile which holds the domain. @@ -443,6 +517,9 @@ class AFDDomainUpdatePropertiesParameters(_Model): AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. :vartype tls_settings: ~azure.mgmt.cdn.models.AFDDomainHttpsParameters + :ivar mtls_settings: The configuration specifying how to enable mutual TLS for the domain, + including specifying allowed FQDNs and which server certificate(s) to use. + :vartype mtls_settings: ~azure.mgmt.cdn.models.AFDDomainMtlsParameters :ivar azure_dns_zone: Resource reference to the Azure DNS zone. :vartype azure_dns_zone: ~azure.mgmt.cdn.models.ResourceReference :ivar pre_validated_custom_domain_resource_id: Resource reference to the Azure resource where @@ -458,6 +535,11 @@ class AFDDomainUpdatePropertiesParameters(_Model): """The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.""" + mtls_settings: Optional["_models.AFDDomainMtlsParameters"] = rest_field( + name="mtlsSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """The configuration specifying how to enable mutual TLS for the domain, including specifying + allowed FQDNs and which server certificate(s) to use.""" azure_dns_zone: Optional["_models.ResourceReference"] = rest_field( name="azureDnsZone", visibility=["read", "create", "update", "delete", "query"] ) @@ -472,6 +554,7 @@ def __init__( self, *, tls_settings: Optional["_models.AFDDomainHttpsParameters"] = None, + mtls_settings: Optional["_models.AFDDomainMtlsParameters"] = None, azure_dns_zone: Optional["_models.ResourceReference"] = None, pre_validated_custom_domain_resource_id: Optional["_models.ResourceReference"] = None, ) -> None: ... @@ -487,7 +570,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrackedResource(Resource): +class TrackedResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -531,7 +614,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AFDEndpoint(TrackedResource): +class AFDEndpoint(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Front Door endpoint is the entity within a Azure Front Door profile containing configuration information such as origin, protocol, content caching and delivery behavior. The AzureFrontDoor endpoint uses the URL format .azureedge.net. @@ -563,6 +646,7 @@ class AFDEndpoint(TrackedResource): __flattened_items = [ "profile_name", "enabled_state", + "enforce_mtls", "provisioning_state", "deployment_status", "host_name", @@ -607,7 +691,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AFDEndpointProperties(_Model): +class AFDEndpointProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties required to create an endpoint. :ivar profile_name: The name of the profile which holds the endpoint. @@ -615,6 +699,9 @@ class AFDEndpointProperties(_Model): :ivar enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". :vartype enabled_state: str or ~azure.mgmt.cdn.models.EnabledState + :ivar enforce_mtls: Set to Disabled by default. If set to Enabled, only custom domains with + mTLS enabled can be added to child Route resources. Known values are: "Enabled" and "Disabled". + :vartype enforce_mtls: str or ~azure.mgmt.cdn.models.EnforceMtlsEnabledState :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". :vartype provisioning_state: str or ~azure.mgmt.cdn.models.AfdProvisioningState @@ -638,6 +725,11 @@ class AFDEndpointProperties(_Model): ) """Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: \"Enabled\" and \"Disabled\".""" + enforce_mtls: Optional[Union[str, "_models.EnforceMtlsEnabledState"]] = rest_field( + name="enforceMtls", visibility=["read", "create", "update", "delete", "query"] + ) + """Set to Disabled by default. If set to Enabled, only custom domains with mTLS enabled can be + added to child Route resources. Known values are: \"Enabled\" and \"Disabled\".""" provisioning_state: Optional[Union[str, "_models.AfdProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -661,6 +753,7 @@ def __init__( self, *, enabled_state: Optional[Union[str, "_models.EnabledState"]] = None, + enforce_mtls: Optional[Union[str, "_models.EnforceMtlsEnabledState"]] = None, auto_generated_domain_name_label_scope: Optional[ Union[str, "_models.AutoGeneratedDomainNameLabelScope"] ] = None, @@ -677,7 +770,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AFDEndpointPropertiesUpdateParameters(_Model): +class AFDEndpointPropertiesUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object containing endpoint update parameters. :ivar profile_name: The name of the profile which holds the endpoint. @@ -685,6 +778,9 @@ class AFDEndpointPropertiesUpdateParameters(_Model): :ivar enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". :vartype enabled_state: str or ~azure.mgmt.cdn.models.EnabledState + :ivar enforce_mtls: Set to Disabled by default. If set to Enabled, only custom domains with + mTLS enabled can be added to child Route resources. Known values are: "Enabled" and "Disabled". + :vartype enforce_mtls: str or ~azure.mgmt.cdn.models.EnforceMtlsEnabledState """ profile_name: Optional[str] = rest_field(name="profileName", visibility=["read"]) @@ -694,12 +790,18 @@ class AFDEndpointPropertiesUpdateParameters(_Model): ) """Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: \"Enabled\" and \"Disabled\".""" + enforce_mtls: Optional[Union[str, "_models.EnforceMtlsEnabledState"]] = rest_field( + name="enforceMtls", visibility=["read", "create", "update", "delete", "query"] + ) + """Set to Disabled by default. If set to Enabled, only custom domains with mTLS enabled can be + added to child Route resources. Known values are: \"Enabled\" and \"Disabled\".""" @overload def __init__( self, *, enabled_state: Optional[Union[str, "_models.EnabledState"]] = None, + enforce_mtls: Optional[Union[str, "_models.EnforceMtlsEnabledState"]] = None, ) -> None: ... @overload @@ -713,7 +815,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AFDEndpointUpdateParameters(_Model): +class AFDEndpointUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties required to create or update an endpoint. :ivar tags: Endpoint tags. @@ -729,7 +831,7 @@ class AFDEndpointUpdateParameters(_Model): ) """The JSON object containing endpoint update parameters.""" - __flattened_items = ["profile_name", "enabled_state"] + __flattened_items = ["profile_name", "enabled_state", "enforce_mtls"] @overload def __init__( @@ -768,7 +870,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AFDOrigin(ProxyResource): +class AFDOrigin(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Front Door origin is the source of the content being delivered via Azure Front Door. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. @@ -805,6 +907,8 @@ class AFDOrigin(ProxyResource): "shared_private_link_resource", "enabled_state", "enforce_certificate_name_check", + "certificate_name_check_validation_mode", + "custom_certificate_subjects", "provisioning_state", "deployment_status", ] @@ -845,7 +949,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AFDOriginGroup(ProxyResource): +class AFDOriginGroup(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from Azure Front Door. @@ -916,7 +1020,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AFDOriginGroupProperties(_Model): +class AFDOriginGroupProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the origin group. :ivar profile_name: The name of the profile which holds the origin group. @@ -1001,7 +1105,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AFDOriginGroupUpdateParameters(_Model): +class AFDOriginGroupUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """AFDOrigin group properties needed for origin group creation or update. :ivar properties: The JSON object that contains the properties of the origin group. @@ -1058,7 +1162,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AFDOriginGroupUpdatePropertiesParameters(_Model): +class AFDOriginGroupUpdatePropertiesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the origin group. :ivar profile_name: The name of the profile which holds the origin group. @@ -1128,7 +1232,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AFDOriginProperties(_Model): +class AFDOriginProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the origin. :ivar origin_group_name: The name of the origin group which contains this origin. @@ -1164,6 +1268,15 @@ class AFDOriginProperties(_Model): :vartype enabled_state: str or ~azure.mgmt.cdn.models.EnabledState :ivar enforce_certificate_name_check: Whether to enable certificate name check at origin level. :vartype enforce_certificate_name_check: bool + :ivar certificate_name_check_validation_mode: The validation mode for certificate name check. + Only applicable when enforceCertificateNameCheck is true. Known values are: "OriginHostname", + "CustomCertificateSubject", and "IncomingHostHeader". + :vartype certificate_name_check_validation_mode: str or + ~azure.mgmt.cdn.models.CertificateNameCheckValidationMode + :ivar custom_certificate_subjects: The list of custom certificate subjects to validate against. + Only applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must + contain 1 or 2 entries. + :vartype custom_certificate_subjects: list[str] :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". :vartype provisioning_state: str or ~azure.mgmt.cdn.models.AfdProvisioningState @@ -1211,6 +1324,19 @@ class AFDOriginProperties(_Model): name="enforceCertificateNameCheck", visibility=["read", "create", "update", "delete", "query"] ) """Whether to enable certificate name check at origin level.""" + certificate_name_check_validation_mode: Optional[Union[str, "_models.CertificateNameCheckValidationMode"]] = ( + rest_field( + name="certificateNameCheckValidationMode", visibility=["read", "create", "update", "delete", "query"] + ) + ) + """The validation mode for certificate name check. Only applicable when + enforceCertificateNameCheck is true. Known values are: \"OriginHostname\", + \"CustomCertificateSubject\", and \"IncomingHostHeader\".""" + custom_certificate_subjects: Optional[list[str]] = rest_field( + name="customCertificateSubjects", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of custom certificate subjects to validate against. Only applicable when + certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries.""" provisioning_state: Optional[Union[str, "_models.AfdProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -1235,6 +1361,10 @@ def __init__( shared_private_link_resource: Optional["_models.SharedPrivateLinkResourceProperties"] = None, enabled_state: Optional[Union[str, "_models.EnabledState"]] = None, enforce_certificate_name_check: Optional[bool] = None, + certificate_name_check_validation_mode: Optional[ + Union[str, "_models.CertificateNameCheckValidationMode"] + ] = None, + custom_certificate_subjects: Optional[list[str]] = None, ) -> None: ... @overload @@ -1248,7 +1378,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AFDOriginUpdateParameters(_Model): +class AFDOriginUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """AFDOrigin properties needed for origin update. :ivar properties: The JSON object that contains the properties of the origin. @@ -1272,6 +1402,8 @@ class AFDOriginUpdateParameters(_Model): "shared_private_link_resource", "enabled_state", "enforce_certificate_name_check", + "certificate_name_check_validation_mode", + "custom_certificate_subjects", ] @overload @@ -1310,7 +1442,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AFDOriginUpdatePropertiesParameters(_Model): +class AFDOriginUpdatePropertiesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the origin. :ivar origin_group_name: The name of the origin group which contains this origin. @@ -1346,6 +1478,15 @@ class AFDOriginUpdatePropertiesParameters(_Model): :vartype enabled_state: str or ~azure.mgmt.cdn.models.EnabledState :ivar enforce_certificate_name_check: Whether to enable certificate name check at origin level. :vartype enforce_certificate_name_check: bool + :ivar certificate_name_check_validation_mode: The validation mode for certificate name check. + Only applicable when enforceCertificateNameCheck is true. Known values are: "OriginHostname", + "CustomCertificateSubject", and "IncomingHostHeader". + :vartype certificate_name_check_validation_mode: str or + ~azure.mgmt.cdn.models.CertificateNameCheckValidationMode + :ivar custom_certificate_subjects: The list of custom certificate subjects to validate against. + Only applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must + contain 1 or 2 entries. + :vartype custom_certificate_subjects: list[str] """ origin_group_name: Optional[str] = rest_field(name="originGroupName", visibility=["read"]) @@ -1387,6 +1528,19 @@ class AFDOriginUpdatePropertiesParameters(_Model): name="enforceCertificateNameCheck", visibility=["read", "create", "update", "delete", "query"] ) """Whether to enable certificate name check at origin level.""" + certificate_name_check_validation_mode: Optional[Union[str, "_models.CertificateNameCheckValidationMode"]] = ( + rest_field( + name="certificateNameCheckValidationMode", visibility=["read", "create", "update", "delete", "query"] + ) + ) + """The validation mode for certificate name check. Only applicable when + enforceCertificateNameCheck is true. Known values are: \"OriginHostname\", + \"CustomCertificateSubject\", and \"IncomingHostHeader\".""" + custom_certificate_subjects: Optional[list[str]] = rest_field( + name="customCertificateSubjects", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of custom certificate subjects to validate against. Only applicable when + certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries.""" @overload def __init__( @@ -1402,6 +1556,10 @@ def __init__( shared_private_link_resource: Optional["_models.SharedPrivateLinkResourceProperties"] = None, enabled_state: Optional[Union[str, "_models.EnabledState"]] = None, enforce_certificate_name_check: Optional[bool] = None, + certificate_name_check_validation_mode: Optional[ + Union[str, "_models.CertificateNameCheckValidationMode"] + ] = None, + custom_certificate_subjects: Optional[list[str]] = None, ) -> None: ... @overload @@ -1415,7 +1573,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AfdPurgeParameters(_Model): +class AfdPurgeParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters required for content purge. :ivar content_paths: The path to the content to be purged. Can describe a file path or a wild @@ -1452,7 +1610,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AfdRouteCacheConfiguration(_Model): +class AfdRouteCacheConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. @@ -1505,6 +1663,98 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) +class SecretParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """The json object containing secret parameters. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + AzureFirstPartyManagedCertificateParameters, CustomerCertificateParameters, + ManagedCertificateParameters, AfdSecretMtlsCertificateChain, UrlSigningKeyParameters + + :ivar type: The type of the secret resource. Required. Known values are: "UrlSigningKey", + "CustomerCertificate", "ManagedCertificate", "AzureFirstPartyManagedCertificate", and + "MtlsCertificateChain". + :vartype type: str or ~azure.mgmt.cdn.models.SecretType + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """The type of the secret resource. Required. Known values are: \"UrlSigningKey\", + \"CustomerCertificate\", \"ManagedCertificate\", \"AzureFirstPartyManagedCertificate\", and + \"MtlsCertificateChain\".""" + + @overload + def __init__( + self, + *, + type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AfdSecretMtlsCertificateChain( + SecretParameters, discriminator="MtlsCertificateChain" +): # pylint: disable=docstring-keyword-should-match-keyword-only + """Server-side certificate used for mTLS validation. + + :ivar secret_source: Resource reference to the Azure Key Vault secret. Expected to be in format + of + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}. + Required. + :vartype secret_source: ~azure.mgmt.cdn.models.ResourceReference + :ivar secret_version: Version of the secret to be used. Required. + :vartype secret_version: str + :ivar expiration_date: Soonest expiration date among certificates in customer's certificate + chain in ISO 8601 compliant format yyyy-MM-ddTHH:mm:ss.fffffffK in UTC. + :vartype expiration_date: ~datetime.datetime + :ivar type: The type of the secret resource. Required. MTLS_CERTIFICATE_CHAIN. + :vartype type: str or ~azure.mgmt.cdn.models.MTLS_CERTIFICATE_CHAIN + """ + + secret_source: "_models.ResourceReference" = rest_field( + name="secretSource", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource reference to the Azure Key Vault secret. Expected to be in format of + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}. + Required.""" + secret_version: str = rest_field(name="secretVersion", visibility=["read", "create", "update", "delete", "query"]) + """Version of the secret to be used. Required.""" + expiration_date: Optional[datetime.datetime] = rest_field( + name="expirationDate", visibility=["read"], format="rfc3339" + ) + """Soonest expiration date among certificates in customer's certificate chain in ISO 8601 + compliant format yyyy-MM-ddTHH:mm:ss.fffffffK in UTC.""" + type: Literal[SecretType.MTLS_CERTIFICATE_CHAIN] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of the secret resource. Required. MTLS_CERTIFICATE_CHAIN.""" + + @overload + def __init__( + self, + *, + secret_source: "_models.ResourceReference", + secret_version: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = SecretType.MTLS_CERTIFICATE_CHAIN # type: ignore + + class AFDStateProperties(_Model): """The tracking states for afd resources. @@ -1527,28 +1777,128 @@ class AFDStateProperties(_Model): """Known values are: \"NotStarted\", \"InProgress\", \"Succeeded\", and \"Failed\".""" -class SecretParameters(_Model): - """The json object containing secret parameters. +class DeliveryRuleAction(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """An action for the delivery rule. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFirstPartyManagedCertificateParameters, CustomerCertificateParameters, - ManagedCertificateParameters, UrlSigningKeyParameters + AfdUrlSigningAction, DeliveryRuleCacheExpirationAction, DeliveryRuleCacheKeyQueryStringAction, + EdgeAction, DeliveryRuleRequestHeaderAction, DeliveryRuleResponseHeaderAction, + OriginGroupOverrideAction, DeliveryRuleRouteConfigurationOverrideAction, UrlRedirectAction, + UrlRewriteAction, UrlSigningAction - :ivar type: The type of the secret resource. Required. Known values are: "UrlSigningKey", - "CustomerCertificate", "ManagedCertificate", and "AzureFirstPartyManagedCertificate". - :vartype type: str or ~azure.mgmt.cdn.models.SecretType + :ivar name: The name of the action for the delivery rule. Required. Known values are: + "CacheExpiration", "CacheKeyQueryString", "ModifyRequestHeader", "ModifyResponseHeader", + "UrlRedirect", "UrlRewrite", "UrlSigning", "OriginGroupOverride", "RouteConfigurationOverride", + "EdgeAction", and "AfdUrlSigning". + :vartype name: str or ~azure.mgmt.cdn.models.DeliveryRuleActionEnum """ __mapping__: dict[str, _Model] = {} - type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) - """The type of the secret resource. Required. Known values are: \"UrlSigningKey\", - \"CustomerCertificate\", \"ManagedCertificate\", and \"AzureFirstPartyManagedCertificate\".""" + name: str = rest_discriminator(name="name", visibility=["read", "create", "update", "delete", "query"]) + """The name of the action for the delivery rule. Required. Known values are: \"CacheExpiration\", + \"CacheKeyQueryString\", \"ModifyRequestHeader\", \"ModifyResponseHeader\", \"UrlRedirect\", + \"UrlRewrite\", \"UrlSigning\", \"OriginGroupOverride\", \"RouteConfigurationOverride\", + \"EdgeAction\", and \"AfdUrlSigning\".""" @overload def __init__( self, *, - type: str, + name: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AfdUrlSigningAction( + DeliveryRuleAction, discriminator="AfdUrlSigning" +): # pylint: disable=docstring-keyword-should-match-keyword-only + """Defines the url signing action for the delivery rule. + + :ivar parameters: Defines the parameters for the action. Required. + :vartype parameters: ~azure.mgmt.cdn.models.AfdUrlSigningActionParameters + :ivar name: The name of the action for the delivery rule. Required. AFD_URL_SIGNING. + :vartype name: str or ~azure.mgmt.cdn.models.AFD_URL_SIGNING + """ + + parameters: "_models.AfdUrlSigningActionParameters" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Defines the parameters for the action. Required.""" + name: Literal[DeliveryRuleActionEnum.AFD_URL_SIGNING] = rest_discriminator(name="name", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The name of the action for the delivery rule. Required. AFD_URL_SIGNING.""" + + @overload + def __init__( + self, + *, + parameters: "_models.AfdUrlSigningActionParameters", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.name = DeliveryRuleActionEnum.AFD_URL_SIGNING # type: ignore + + +class AfdUrlSigningActionParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Defines the parameters for the Url Signing action. + + :ivar type_name: Required. "DeliveryRuleAfdUrlSigningActionParameters" + :vartype type_name: str or ~azure.mgmt.cdn.models.TypeName + :ivar key_group_reference: Resource reference to the Azure Key Vault secret. Expected to be in + format of + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}. + Required. + :vartype key_group_reference: ~azure.mgmt.cdn.models.ResourceReference + :ivar algorithm: Algorithm to use for URL signing. "SHA256" + :vartype algorithm: str or ~azure.mgmt.cdn.models.Algorithm + :ivar parameter_name_override: Defines which query string parameters in the url to be + considered for expires, key id etc. + :vartype parameter_name_override: list[~azure.mgmt.cdn.models.UrlSigningParamIdentifier] + """ + + type_name: Union[str, "_models.TypeName"] = rest_field( + name="typeName", visibility=["read", "create", "update", "delete", "query"] + ) + """Required. \"DeliveryRuleAfdUrlSigningActionParameters\"""" + key_group_reference: "_models.ResourceReference" = rest_field( + name="keyGroupReference", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource reference to the Azure Key Vault secret. Expected to be in format of + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}. + Required.""" + algorithm: Optional[Union[str, "_models.Algorithm"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Algorithm to use for URL signing. \"SHA256\"""" + parameter_name_override: Optional[list["_models.UrlSigningParamIdentifier"]] = rest_field( + name="parameterNameOverride", visibility=["read", "create", "update", "delete", "query"] + ) + """Defines which query string parameters in the url to be considered for expires, key id etc.""" + + @overload + def __init__( + self, + *, + type_name: Union[str, "_models.TypeName"], + key_group_reference: "_models.ResourceReference", + algorithm: Optional[Union[str, "_models.Algorithm"]] = None, + parameter_name_override: Optional[list["_models.UrlSigningParamIdentifier"]] = None, ) -> None: ... @overload @@ -1564,7 +1914,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class AzureFirstPartyManagedCertificateParameters( SecretParameters, discriminator="AzureFirstPartyManagedCertificate" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS. @@ -1623,7 +1973,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type = SecretType.AZURE_FIRST_PARTY_MANAGED_CERTIFICATE # type: ignore -class BatchRuleProperties(_Model): +class BatchRuleProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains a rule with its name for batch mode operations. :ivar rule_name: Name of the rule. Required. @@ -1691,7 +2041,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CacheConfiguration(_Model): +class CacheConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. @@ -1767,20 +2117,22 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeliveryRuleActionParameters(_Model): +class DeliveryRuleActionParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for delivery rule actions. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - CacheExpirationActionParameters, CacheKeyQueryStringActionParameters, HeaderActionParameters, - OriginGroupOverrideActionParameters, RouteConfigurationOverrideActionParameters, - UrlRedirectActionParameters, UrlRewriteActionParameters, UrlSigningActionParameters + CacheExpirationActionParameters, CacheKeyQueryStringActionParameters, + DeliveryRuleEdgeActionParameters, HeaderActionParameters, OriginGroupOverrideActionParameters, + RouteConfigurationOverrideActionParameters, UrlRedirectActionParameters, + UrlRewriteActionParameters, UrlSigningActionParameters :ivar type_name: Required. Known values are: "DeliveryRuleUrlRedirectActionParameters", "DeliveryRuleUrlSigningActionParameters", "DeliveryRuleOriginGroupOverrideActionParameters", "DeliveryRuleUrlRewriteActionParameters", "DeliveryRuleHeaderActionParameters", "DeliveryRuleCacheExpirationActionParameters", - "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", and - "DeliveryRuleRouteConfigurationOverrideActionParameters". + "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters", + "DeliveryRuleRouteConfigurationOverrideActionParameters", and + "DeliveryRuleEdgeActionParameters". :vartype type_name: str or ~azure.mgmt.cdn.models.DeliveryRuleActionParametersType """ @@ -1791,8 +2143,9 @@ class DeliveryRuleActionParameters(_Model): \"DeliveryRuleOriginGroupOverrideActionParameters\", \"DeliveryRuleUrlRewriteActionParameters\", \"DeliveryRuleHeaderActionParameters\", \"DeliveryRuleCacheExpirationActionParameters\", - \"DeliveryRuleCacheKeyQueryStringBehaviorActionParameters\", and - \"DeliveryRuleRouteConfigurationOverrideActionParameters\".""" + \"DeliveryRuleCacheKeyQueryStringBehaviorActionParameters\", + \"DeliveryRuleRouteConfigurationOverrideActionParameters\", and + \"DeliveryRuleEdgeActionParameters\".""" @overload def __init__( @@ -1814,7 +2167,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class CacheExpirationActionParameters( DeliveryRuleActionParameters, discriminator="DeliveryRuleCacheExpirationActionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for the cache expiration action. :ivar cache_behavior: Caching behavior for the requests. Required. Known values are: @@ -1869,7 +2222,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class CacheKeyQueryStringActionParameters( DeliveryRuleActionParameters, discriminator="DeliveryRuleCacheKeyQueryStringBehaviorActionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for the cache-key query string action. :ivar query_string_behavior: Caching behavior for the requests. Required. Known values are: @@ -1914,7 +2267,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleActionParametersType.DELIVERY_RULE_CACHE_KEY_QUERY_STRING_BEHAVIOR_ACTION_PARAMETERS # type: ignore -class CanMigrateParameters(_Model): +class CanMigrateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request body for CanMigrate operation. :ivar classic_resource_reference: Resource reference of the classic cdn profile or classic @@ -1946,7 +2299,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CanMigrateProperties(_Model): +class CanMigrateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CanMigrateProperties. :ivar can_migrate: Flag that says if the profile can be migrated. @@ -1987,7 +2340,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CanMigrateResult(_Model): +class CanMigrateResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Result for canMigrate operation. :ivar id: Resource ID. @@ -2044,7 +2397,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CertificateSourceParameters(_Model): +class CertificateSourceParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for certificate source. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -2078,7 +2431,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CdnCertificateSourceParameters(CertificateSourceParameters, discriminator="CdnCertificateSourceParameters"): +class CdnCertificateSourceParameters( + CertificateSourceParameters, discriminator="CdnCertificateSourceParameters" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for using CDN managed certificate for securing custom domain. :ivar certificate_type: Type of certificate used. Required. Known values are: "Shared" and @@ -2114,7 +2469,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = CertificateSourceParametersType.CDN_CERTIFICATE_SOURCE_PARAMETERS # type: ignore -class CdnEndpoint(_Model): +class CdnEndpoint(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the ARM Resource ID for the linked endpoints. :ivar id: ARM Resource ID string. @@ -2142,7 +2497,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CustomDomainHttpsParameters(_Model): +class CustomDomainHttpsParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties to secure a custom domain. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -2196,7 +2551,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CdnManagedHttpsParameters(CustomDomainHttpsParameters, discriminator="Cdn"): +class CdnManagedHttpsParameters( + CustomDomainHttpsParameters, discriminator="Cdn" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the certificate source parameters using CDN managed certificate for enabling SSL. :ivar protocol_type: Defines the TLS extension protocol that is used for secure delivery. @@ -2241,7 +2598,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.certificate_source = CertificateSource.CDN # type: ignore -class CdnMigrationToAfdParameters(_Model): +class CdnMigrationToAfdParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request body for Migrate operation. :ivar sku: Sku for the migration. Required. @@ -2277,7 +2634,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CdnWebApplicationFirewallPolicy(TrackedResource): +class CdnWebApplicationFirewallPolicy(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines web application firewall policy for Azure CDN. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2365,7 +2722,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CdnWebApplicationFirewallPolicyPatchParameters(_Model): # pylint: disable=name-too-long +class CdnWebApplicationFirewallPolicyPatchParameters( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties required to update a CdnWebApplicationFirewallPolicy. :ivar tags: CdnWebApplicationFirewallPolicy tags. @@ -2393,7 +2752,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CdnWebApplicationFirewallPolicyProperties(_Model): # pylint: disable=name-too-long +class CdnWebApplicationFirewallPolicyProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines CDN web application firewall policy properties. :ivar policy_settings: Describes policySettings for policy. @@ -2473,7 +2834,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CheckEndpointNameAvailabilityInput(_Model): +class CheckEndpointNameAvailabilityInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input of CheckNameAvailability API. :ivar name: The resource name to validate. Required. @@ -2547,7 +2908,7 @@ class CheckEndpointNameAvailabilityOutput(_Model): """The detailed error message describing why the name is not available.""" -class CheckHostNameAvailabilityInput(_Model): +class CheckHostNameAvailabilityInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input of CheckHostNameAvailability API. :ivar host_name: The host name to validate. Required. @@ -2575,7 +2936,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CheckNameAvailabilityInput(_Model): +class CheckNameAvailabilityInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input of CheckNameAvailability API. :ivar name: The resource name to validate. Required. @@ -2629,7 +2990,7 @@ class CheckNameAvailabilityOutput(_Model): """The detailed error message describing why the name is not available.""" -class CidrIpAddress(_Model): +class CidrIpAddress(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CIDR Ip address. :ivar base_ip_address: Ip address itself. @@ -2666,7 +3027,159 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeliveryRuleConditionParameters(_Model): +class ClientCertificateRequiredAndOriginValidatesAdvancedSettings( + AFDDomainMtlsParameters, discriminator="ClientCertificateRequiredAndOriginValidates" +): # pylint: disable=name-too-long + """Advanced settings for MtlsScenarioType enum value: ClientCertificateRequiredAndOriginValidates. + + :ivar scenario: Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES. + :vartype scenario: str or + ~azure.mgmt.cdn.models.CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES + """ + + scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES] = rest_discriminator(name="scenario", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES.""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.scenario = MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES # type: ignore + + +class ClientCertificateRequiredAndValidatedAdvancedSettings( + AFDDomainMtlsParameters, discriminator="ClientCertificateRequiredAndValidated" +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """Advanced settings for MtlsScenarioType enum value: ClientCertificateRequiredAndValidated. + + :ivar secrets: List of one or two of Resource References (ie. subs/rg/profile/secret) to + Secrets of type MtlsCertificateChain to use in mutual TLS handshake as the trusted issuer + certificate chain. Required. + :vartype secrets: list[~azure.mgmt.cdn.models.ResourceReference] + :ivar allowed_fqdns: List of FQDNs that will be accepted for mutual TLS validation. + :vartype allowed_fqdns: list[str] + :ivar certificate_revocation_check: Set to Enabled by default. If set to Disabled, revocation + status of client certificate chain will be checked before establishing mutual TLS connection. + Known values are: "Enabled" and "Disabled". + :vartype certificate_revocation_check: str or + ~azure.mgmt.cdn.models.CertificateRevocationCheckEnabledState + :ivar scenario: Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED. + :vartype scenario: str or ~azure.mgmt.cdn.models.CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED + """ + + secrets: list["_models.ResourceReference"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of one or two of Resource References (ie. subs/rg/profile/secret) to Secrets of type + MtlsCertificateChain to use in mutual TLS handshake as the trusted issuer certificate chain. + Required.""" + allowed_fqdns: Optional[list[str]] = rest_field( + name="allowedFqdns", visibility=["read", "create", "update", "delete", "query"] + ) + """List of FQDNs that will be accepted for mutual TLS validation.""" + certificate_revocation_check: Optional[Union[str, "_models.CertificateRevocationCheckEnabledState"]] = rest_field( + name="certificateRevocationCheck", visibility=["read", "create", "update", "delete", "query"] + ) + """Set to Enabled by default. If set to Disabled, revocation status of client certificate chain + will be checked before establishing mutual TLS connection. Known values are: \"Enabled\" and + \"Disabled\".""" + scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED] = rest_discriminator(name="scenario", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED.""" + + @overload + def __init__( + self, + *, + secrets: list["_models.ResourceReference"], + allowed_fqdns: Optional[list[str]] = None, + certificate_revocation_check: Optional[Union[str, "_models.CertificateRevocationCheckEnabledState"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.scenario = MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED # type: ignore + + +class ClientCertificateValidatedIfPresentedAdvancedSettings( + AFDDomainMtlsParameters, discriminator="ClientCertificateValidatedIfPresented" +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """Advanced settings for MtlsScenarioType enum value: ClientCertificateValidatedIfPresented. + + :ivar secrets: List of one or two of Resource References (ie. subs/rg/profile/secret) to + Secrets of type MtlsCertificateChain to use in mutual TLS handshake as the trusted issuer + certificate chain. Required. + :vartype secrets: list[~azure.mgmt.cdn.models.ResourceReference] + :ivar allowed_fqdns: List of FQDNs that will be accepted for mutual TLS validation. + :vartype allowed_fqdns: list[str] + :ivar certificate_revocation_check: Set to Enabled by default. If set to Disabled, revocation + status of client certificate chain will be checked before establishing mutual TLS connection. + Known values are: "Enabled" and "Disabled". + :vartype certificate_revocation_check: str or + ~azure.mgmt.cdn.models.CertificateRevocationCheckEnabledState + :ivar scenario: Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED. + :vartype scenario: str or ~azure.mgmt.cdn.models.CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED + """ + + secrets: list["_models.ResourceReference"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """List of one or two of Resource References (ie. subs/rg/profile/secret) to Secrets of type + MtlsCertificateChain to use in mutual TLS handshake as the trusted issuer certificate chain. + Required.""" + allowed_fqdns: Optional[list[str]] = rest_field( + name="allowedFqdns", visibility=["read", "create", "update", "delete", "query"] + ) + """List of FQDNs that will be accepted for mutual TLS validation.""" + certificate_revocation_check: Optional[Union[str, "_models.CertificateRevocationCheckEnabledState"]] = rest_field( + name="certificateRevocationCheck", visibility=["read", "create", "update", "delete", "query"] + ) + """Set to Enabled by default. If set to Disabled, revocation status of client certificate chain + will be checked before establishing mutual TLS connection. Known values are: \"Enabled\" and + \"Disabled\".""" + scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED] = rest_discriminator(name="scenario", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED.""" + + @overload + def __init__( + self, + *, + secrets: list["_models.ResourceReference"], + allowed_fqdns: Optional[list[str]] = None, + certificate_revocation_check: Optional[Union[str, "_models.CertificateRevocationCheckEnabledState"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.scenario = MtlsScenarioType.CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED # type: ignore + + +class DeliveryRuleConditionParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for delivery rule match conditions. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -2732,7 +3245,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ClientPortMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleClientPortConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for ClientPort match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "Equal", @@ -2793,9 +3306,40 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleConditionParametersType.DELIVERY_RULE_CLIENT_PORT_CONDITION_PARAMETERS # type: ignore +class CompleteMtlsPassthroughToOriginAdvancedSettings( + AFDDomainMtlsParameters, discriminator="CompleteMtlsPassthroughToOrigin" +): # pylint: disable=name-too-long + """Advanced settings for MtlsScenarioType enum value: CompleteMtlsPassthroughToOrigin. + + :ivar scenario: Supported scenarios for establishing mTLS connection. Required. + COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN. + :vartype scenario: str or ~azure.mgmt.cdn.models.COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN + """ + + scenario: Literal[MtlsScenarioType.COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN] = rest_discriminator(name="scenario", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Supported scenarios for establishing mTLS connection. Required. + COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN.""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.scenario = MtlsScenarioType.COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN # type: ignore + + class Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems( _Model -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Components18OrqelSchemasWafmetricsresponsePropertiesSeriesItemsPropertiesDataItems. :ivar date_time: @@ -2830,7 +3374,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems( _Model -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Components1Gs0LlpSchemasMetricsresponsePropertiesSeriesItemsPropertiesDataItems. :ivar date_time: @@ -2865,7 +3409,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems( _Model -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ComponentsKpo1PjSchemasWafrankingsresponsePropertiesDataItemsPropertiesMetricsItems. :ivar metric: @@ -2900,7 +3444,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CompressionSettings(_Model): +class CompressionSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """settings for compression. :ivar content_types_to_compress: List of content types on which compression applies. The value @@ -2944,7 +3488,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ContinentsResponse(_Model): +class ContinentsResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Continents Response. :ivar continents: @@ -2980,7 +3524,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ContinentsResponseContinentsItem(_Model): +class ContinentsResponseContinentsItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ContinentsResponseContinentsItem. :ivar id: @@ -3007,7 +3551,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ContinentsResponseCountryOrRegionsItem(_Model): +class ContinentsResponseCountryOrRegionsItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ContinentsResponseCountryOrRegionsItem. :ivar id: @@ -3042,7 +3586,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class CookiesMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleCookiesConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for Cookies match conditions. :ivar selector: Name of Cookies to be matched. @@ -3107,7 +3651,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleConditionParametersType.DELIVERY_RULE_COOKIES_CONDITION_PARAMETERS # type: ignore -class CustomDomain(ProxyResource): +class CustomDomain(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. `www.contoso.com `_. @@ -3177,7 +3721,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CustomDomainParameters(_Model): +class CustomDomainParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The customDomain JSON object required for custom domain creation or update. :ivar properties: The JSON object that contains the properties of the custom domain to create. @@ -3227,7 +3771,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CustomDomainProperties(_Model): +class CustomDomainProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the custom domain to create. :ivar host_name: The host name of the custom domain. Must be a domain name. Required. @@ -3315,7 +3859,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CustomDomainPropertiesParameters(_Model): +class CustomDomainPropertiesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the custom domain to create. :ivar host_name: The host name of the custom domain. Must be a domain name. Required. @@ -3343,7 +3887,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CustomerCertificateParameters(SecretParameters, discriminator="CustomerCertificate"): +class CustomerCertificateParameters( + SecretParameters, discriminator="CustomerCertificate" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Customer Certificate used for https. :ivar secret_source: Resource reference to the Azure Key Vault certificate. Expected to be in @@ -3417,7 +3963,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type = SecretType.CUSTOMER_CERTIFICATE # type: ignore -class CustomRule(_Model): +class CustomRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the common attributes for a custom rule that can be included in a waf policy. :ivar name: Defines the name of the custom rule. Required. @@ -3474,7 +4020,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CustomRuleList(_Model): +class CustomRuleList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines contents of custom rules. :ivar rules: List of rules. @@ -3502,7 +4048,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeepCreatedCustomDomain(_Model): +class DeepCreatedCustomDomain(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Custom domains created on the CDN endpoint. :ivar name: Custom domain name. Required. @@ -3557,7 +4103,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DeepCreatedCustomDomainProperties(_Model): +class DeepCreatedCustomDomainProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the custom domain created on the CDN endpoint. :ivar host_name: The host name of the custom domain. Must be a domain name. Required. @@ -3596,7 +4142,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeepCreatedOrigin(_Model): +class DeepCreatedOrigin(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The main origin of CDN content which is added when creating a CDN endpoint. :ivar name: Origin name which must be unique within the endpoint. Required. @@ -3664,7 +4210,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DeepCreatedOriginGroup(_Model): +class DeepCreatedOriginGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The origin group for CDN content which is added when creating a CDN endpoint. Traffic is sent to the origins within the origin group based on origin health. @@ -3725,7 +4271,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DeepCreatedOriginGroupProperties(_Model): +class DeepCreatedOriginGroupProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the origin group created on the CDN endpoint. :ivar health_probe_settings: Health probe settings to the origin that is used to determine the @@ -3789,7 +4335,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeepCreatedOriginProperties(_Model): +class DeepCreatedOriginProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the origin created on the CDN endpoint. :ivar host_name: The address of the origin. It can be a domain name, IPv4 address, or IPv6 @@ -3904,7 +4450,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeliveryRule(_Model): +class DeliveryRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A rule that specifies a set of actions and conditions. :ivar name: Name of the rule. @@ -3956,47 +4502,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeliveryRuleAction(_Model): - """An action for the delivery rule. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - DeliveryRuleCacheExpirationAction, DeliveryRuleCacheKeyQueryStringAction, - DeliveryRuleRequestHeaderAction, DeliveryRuleResponseHeaderAction, OriginGroupOverrideAction, - DeliveryRuleRouteConfigurationOverrideAction, UrlRedirectAction, UrlRewriteAction, - UrlSigningAction - - :ivar name: The name of the action for the delivery rule. Required. Known values are: - "CacheExpiration", "CacheKeyQueryString", "ModifyRequestHeader", "ModifyResponseHeader", - "UrlRedirect", "UrlRewrite", "UrlSigning", "OriginGroupOverride", and - "RouteConfigurationOverride". - :vartype name: str or ~azure.mgmt.cdn.models.DeliveryRuleActionEnum - """ - - __mapping__: dict[str, _Model] = {} - name: str = rest_discriminator(name="name", visibility=["read", "create", "update", "delete", "query"]) - """The name of the action for the delivery rule. Required. Known values are: \"CacheExpiration\", - \"CacheKeyQueryString\", \"ModifyRequestHeader\", \"ModifyResponseHeader\", \"UrlRedirect\", - \"UrlRewrite\", \"UrlSigning\", \"OriginGroupOverride\", and \"RouteConfigurationOverride\".""" - - @overload - def __init__( - self, - *, - name: str, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - - -class DeliveryRuleCacheExpirationAction(DeliveryRuleAction, discriminator="CacheExpiration"): +class DeliveryRuleCacheExpirationAction( + DeliveryRuleAction, discriminator="CacheExpiration" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the cache expiration action for the delivery rule. :ivar parameters: Defines the parameters for the action. Required. @@ -4031,7 +4539,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = DeliveryRuleActionEnum.CACHE_EXPIRATION # type: ignore -class DeliveryRuleCacheKeyQueryStringAction(DeliveryRuleAction, discriminator="CacheKeyQueryString"): +class DeliveryRuleCacheKeyQueryStringAction( + DeliveryRuleAction, discriminator="CacheKeyQueryString" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the cache-key query string action for the delivery rule. :ivar parameters: Defines the parameters for the action. Required. @@ -4066,7 +4576,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = DeliveryRuleActionEnum.CACHE_KEY_QUERY_STRING # type: ignore -class DeliveryRuleCondition(_Model): +class DeliveryRuleCondition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A condition for the delivery rule. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -4113,7 +4623,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeliveryRuleClientPortCondition(DeliveryRuleCondition, discriminator="ClientPort"): +class DeliveryRuleClientPortCondition( + DeliveryRuleCondition, discriminator="ClientPort" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the ClientPort condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4148,7 +4660,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.CLIENT_PORT # type: ignore -class DeliveryRuleCookiesCondition(DeliveryRuleCondition, discriminator="Cookies"): +class DeliveryRuleCookiesCondition( + DeliveryRuleCondition, discriminator="Cookies" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the Cookies condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4183,7 +4697,55 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.COOKIES # type: ignore -class DeliveryRuleHostNameCondition(DeliveryRuleCondition, discriminator="HostName"): +class DeliveryRuleEdgeActionParameters( + DeliveryRuleActionParameters, discriminator="DeliveryRuleEdgeActionParameters" +): # pylint: disable=docstring-keyword-should-match-keyword-only + """Defines the parameters for the edge action. + + :ivar edge_action_reference: defines the edge action that will be invoked. Required. + :vartype edge_action_reference: ~azure.mgmt.cdn.models.ResourceReference + :ivar invocation_point: Defines at which point in the request processing pipeline the edge + action will be invoked. Required. Known values are: "ClientRequest" and "OriginRequest". + :vartype invocation_point: str or ~azure.mgmt.cdn.models.InvocationPoint + :ivar type_name: Required. DELIVERY_RULE_EDGE_ACTION_PARAMETERS. + :vartype type_name: str or ~azure.mgmt.cdn.models.DELIVERY_RULE_EDGE_ACTION_PARAMETERS + """ + + edge_action_reference: "_models.ResourceReference" = rest_field( + name="edgeActionReference", visibility=["read", "create", "update", "delete", "query"] + ) + """defines the edge action that will be invoked. Required.""" + invocation_point: Union[str, "_models.InvocationPoint"] = rest_field( + name="invocationPoint", visibility=["read", "create", "update", "delete", "query"] + ) + """Defines at which point in the request processing pipeline the edge action will be invoked. + Required. Known values are: \"ClientRequest\" and \"OriginRequest\".""" + type_name: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_EDGE_ACTION_PARAMETERS] = rest_discriminator(name="typeName", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. DELIVERY_RULE_EDGE_ACTION_PARAMETERS.""" + + @overload + def __init__( + self, + *, + edge_action_reference: "_models.ResourceReference", + invocation_point: Union[str, "_models.InvocationPoint"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type_name = DeliveryRuleActionParametersType.DELIVERY_RULE_EDGE_ACTION_PARAMETERS # type: ignore + + +class DeliveryRuleHostNameCondition( + DeliveryRuleCondition, discriminator="HostName" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the HostName condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4218,7 +4780,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.HOST_NAME # type: ignore -class DeliveryRuleHttpVersionCondition(DeliveryRuleCondition, discriminator="HttpVersion"): +class DeliveryRuleHttpVersionCondition( + DeliveryRuleCondition, discriminator="HttpVersion" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the HttpVersion condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4253,7 +4817,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.HTTP_VERSION # type: ignore -class DeliveryRuleIsDeviceCondition(DeliveryRuleCondition, discriminator="IsDevice"): +class DeliveryRuleIsDeviceCondition( + DeliveryRuleCondition, discriminator="IsDevice" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the IsDevice condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4288,7 +4854,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.IS_DEVICE # type: ignore -class DeliveryRulePostArgsCondition(DeliveryRuleCondition, discriminator="PostArgs"): +class DeliveryRulePostArgsCondition( + DeliveryRuleCondition, discriminator="PostArgs" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the PostArgs condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4323,7 +4891,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.POST_ARGS # type: ignore -class DeliveryRuleQueryStringCondition(DeliveryRuleCondition, discriminator="QueryString"): +class DeliveryRuleQueryStringCondition( + DeliveryRuleCondition, discriminator="QueryString" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the QueryString condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4358,7 +4928,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.QUERY_STRING # type: ignore -class DeliveryRuleRemoteAddressCondition(DeliveryRuleCondition, discriminator="RemoteAddress"): +class DeliveryRuleRemoteAddressCondition( + DeliveryRuleCondition, discriminator="RemoteAddress" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the RemoteAddress condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4393,7 +4965,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.REMOTE_ADDRESS # type: ignore -class DeliveryRuleRequestBodyCondition(DeliveryRuleCondition, discriminator="RequestBody"): +class DeliveryRuleRequestBodyCondition( + DeliveryRuleCondition, discriminator="RequestBody" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the RequestBody condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4428,7 +5002,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.REQUEST_BODY # type: ignore -class DeliveryRuleRequestHeaderAction(DeliveryRuleAction, discriminator="ModifyRequestHeader"): +class DeliveryRuleRequestHeaderAction( + DeliveryRuleAction, discriminator="ModifyRequestHeader" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the request header action for the delivery rule. :ivar parameters: Defines the parameters for the action. Required. @@ -4463,7 +5039,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = DeliveryRuleActionEnum.MODIFY_REQUEST_HEADER # type: ignore -class DeliveryRuleRequestHeaderCondition(DeliveryRuleCondition, discriminator="RequestHeader"): +class DeliveryRuleRequestHeaderCondition( + DeliveryRuleCondition, discriminator="RequestHeader" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the RequestHeader condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4498,7 +5076,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.REQUEST_HEADER # type: ignore -class DeliveryRuleRequestMethodCondition(DeliveryRuleCondition, discriminator="RequestMethod"): +class DeliveryRuleRequestMethodCondition( + DeliveryRuleCondition, discriminator="RequestMethod" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the RequestMethod condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4533,7 +5113,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.REQUEST_METHOD # type: ignore -class DeliveryRuleRequestSchemeCondition(DeliveryRuleCondition, discriminator="RequestScheme"): +class DeliveryRuleRequestSchemeCondition( + DeliveryRuleCondition, discriminator="RequestScheme" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the RequestScheme condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4568,7 +5150,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.REQUEST_SCHEME # type: ignore -class DeliveryRuleRequestUriCondition(DeliveryRuleCondition, discriminator="RequestUri"): +class DeliveryRuleRequestUriCondition( + DeliveryRuleCondition, discriminator="RequestUri" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the RequestUri condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4603,7 +5187,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.REQUEST_URI # type: ignore -class DeliveryRuleResponseHeaderAction(DeliveryRuleAction, discriminator="ModifyResponseHeader"): +class DeliveryRuleResponseHeaderAction( + DeliveryRuleAction, discriminator="ModifyResponseHeader" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the response header action for the delivery rule. :ivar parameters: Defines the parameters for the action. Required. @@ -4640,7 +5226,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DeliveryRuleRouteConfigurationOverrideAction( DeliveryRuleAction, discriminator="RouteConfigurationOverride" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines the route configuration override action for the delivery rule. Only applicable to Frontdoor Standard/Premium Profiles. @@ -4677,7 +5263,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = DeliveryRuleActionEnum.ROUTE_CONFIGURATION_OVERRIDE # type: ignore -class DeliveryRuleServerPortCondition(DeliveryRuleCondition, discriminator="ServerPort"): +class DeliveryRuleServerPortCondition( + DeliveryRuleCondition, discriminator="ServerPort" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the ServerPort condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4712,7 +5300,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.SERVER_PORT # type: ignore -class DeliveryRuleSocketAddrCondition(DeliveryRuleCondition, discriminator="SocketAddr"): +class DeliveryRuleSocketAddrCondition( + DeliveryRuleCondition, discriminator="SocketAddr" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the SocketAddress condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4747,7 +5337,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.SOCKET_ADDR # type: ignore -class DeliveryRuleSslProtocolCondition(DeliveryRuleCondition, discriminator="SslProtocol"): +class DeliveryRuleSslProtocolCondition( + DeliveryRuleCondition, discriminator="SslProtocol" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the SslProtocol condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4782,7 +5374,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.SSL_PROTOCOL # type: ignore -class DeliveryRuleUrlFileExtensionCondition(DeliveryRuleCondition, discriminator="UrlFileExtension"): +class DeliveryRuleUrlFileExtensionCondition( + DeliveryRuleCondition, discriminator="UrlFileExtension" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the UrlFileExtension condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4817,7 +5411,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.URL_FILE_EXTENSION # type: ignore -class DeliveryRuleUrlFileNameCondition(DeliveryRuleCondition, discriminator="UrlFileName"): +class DeliveryRuleUrlFileNameCondition( + DeliveryRuleCondition, discriminator="UrlFileName" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the UrlFileName condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4852,7 +5448,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.URL_FILE_NAME # type: ignore -class DeliveryRuleUrlPathCondition(DeliveryRuleCondition, discriminator="UrlPath"): +class DeliveryRuleUrlPathCondition( + DeliveryRuleCondition, discriminator="UrlPath" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the UrlPath condition for the delivery rule. :ivar parameters: Defines the parameters for the condition. Required. @@ -4887,7 +5485,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = MatchVariable.URL_PATH # type: ignore -class DimensionProperties(_Model): +class DimensionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Type of operation: get, read, delete, etc. :ivar name: Name of dimension. @@ -4944,7 +5542,44 @@ class DomainValidationProperties(_Model): """The date time that the token expires.""" -class EdgeNode(ProxyResource): +class EdgeAction( + DeliveryRuleAction, discriminator="EdgeAction" +): # pylint: disable=docstring-keyword-should-match-keyword-only + """Defines the edge action for the delivery rule. + + :ivar parameters: Defines the parameters for the action. Required. + :vartype parameters: ~azure.mgmt.cdn.models.DeliveryRuleEdgeActionParameters + :ivar name: The name of the action for the delivery rule. Required. EDGE_ACTION. + :vartype name: str or ~azure.mgmt.cdn.models.EDGE_ACTION + """ + + parameters: "_models.DeliveryRuleEdgeActionParameters" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Defines the parameters for the action. Required.""" + name: Literal[DeliveryRuleActionEnum.EDGE_ACTION] = rest_discriminator(name="name", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The name of the action for the delivery rule. Required. EDGE_ACTION.""" + + @overload + def __init__( + self, + *, + parameters: "_models.DeliveryRuleEdgeActionParameters", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.name = DeliveryRuleActionEnum.EDGE_ACTION # type: ignore + + +class EdgeNode(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -5005,7 +5640,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class EdgeNodeProperties(_Model): +class EdgeNodeProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties required to create an edgenode. :ivar ip_address_groups: List of ip address groups. Required. @@ -5035,7 +5670,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Endpoint(TrackedResource): +class Endpoint(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The CDN endpoint uses the URL format .azureedge.net. @@ -5125,7 +5760,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class EndpointPropertiesUpdateParameters(_Model): +class EndpointPropertiesUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object containing endpoint update parameters. :ivar origin_path: A directory path on the origin that CDN can use to retrieve content from, @@ -5290,7 +5925,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EndpointProperties(EndpointPropertiesUpdateParameters): +class EndpointProperties( + EndpointPropertiesUpdateParameters +): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties required to create an endpoint. :ivar origin_path: A directory path on the origin that CDN can use to retrieve content from, @@ -5424,7 +6061,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EndpointPropertiesUpdateParametersDeliveryPolicy(_Model): # pylint: disable=name-too-long +class EndpointPropertiesUpdateParametersDeliveryPolicy( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """A policy that specifies the delivery rules to be used for an endpoint. :ivar description: User-friendly description of the policy. @@ -5457,7 +6096,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink(_Model): # pylint: disable=name-too-long +class EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines the Web Application Firewall policy for the endpoint (if applicable). :ivar id: Resource ID. @@ -5485,7 +6126,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EndpointUpdateParameters(_Model): +class EndpointUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties required to create or update an endpoint. :ivar tags: Endpoint tags. @@ -5599,7 +6240,7 @@ class ErrorDetail(_Model): """The error additional info.""" -class ErrorResponse(_Model): +class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response. :ivar error: The error object. @@ -5627,7 +6268,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GeoFilter(_Model): +class GeoFilter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Rules defining user's geo access within a CDN endpoint. :ivar relative_path: Relative path applicable to geo filter. (e.g. '/mypictures', @@ -5675,7 +6316,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HeaderActionParameters(DeliveryRuleActionParameters, discriminator="DeliveryRuleHeaderActionParameters"): +class HeaderActionParameters( + DeliveryRuleActionParameters, discriminator="DeliveryRuleHeaderActionParameters" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for the request header action. :ivar header_action: Action to perform. Required. Known values are: "Append", "Overwrite", and @@ -5721,7 +6364,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleActionParametersType.DELIVERY_RULE_HEADER_ACTION_PARAMETERS # type: ignore -class HealthProbeParameters(_Model): +class HealthProbeParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties to send health probes to origin. :ivar probe_path: The path relative to the origin that is used to determine the health of the @@ -5776,7 +6419,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class HostNameMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleHostNameConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for HostName match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "Equal", @@ -5836,7 +6479,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleConditionParametersType.DELIVERY_RULE_HOST_NAME_CONDITION_PARAMETERS # type: ignore -class HttpErrorRangeParameters(_Model): +class HttpErrorRangeParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that represents the range for http status codes. :ivar begin: The inclusive start of the http status code range. @@ -5871,7 +6514,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class HttpVersionMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleHttpVersionConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for HttpVersion match conditions. :ivar operator: Describes operator to be matched. Required. "Equal" @@ -5928,7 +6571,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleConditionParametersType.DELIVERY_RULE_HTTP_VERSION_CONDITION_PARAMETERS # type: ignore -class IpAddressGroup(_Model): +class IpAddressGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CDN Ip address group. :ivar delivery_region: The delivery region of the ip address group. @@ -5974,7 +6617,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IsDeviceMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleIsDeviceConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for IsDevice match conditions. :ivar operator: Describes operator to be matched. Required. "Equal" @@ -6033,7 +6676,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class KeyVaultCertificateSourceParameters( CertificateSourceParameters, discriminator="KeyVaultCertificateSourceParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the parameters for using a user's KeyVault certificate for securing custom domain. :ivar subscription_id: Subscription Id of the user's Key Vault containing the SSL certificate. @@ -6111,7 +6754,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = CertificateSourceParametersType.KEY_VAULT_CERTIFICATE_SOURCE_PARAMETERS # type: ignore -class KeyVaultSigningKeyParameters(_Model): +class KeyVaultSigningKeyParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the parameters for using a user's KeyVault for URL Signing Key. :ivar type_name: Required. "KeyVaultSigningKeyParameters" @@ -6169,7 +6812,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadBalancingSettingsParameters(_Model): +class LoadBalancingSettingsParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Round-Robin load balancing settings for a backend pool. :ivar sample_size: The number of samples to consider for load balancing decisions. @@ -6215,7 +6858,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadParameters(_Model): +class LoadParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters required for content load. :ivar content_paths: The path to the content to be loaded. Path should be a relative file URL @@ -6247,7 +6890,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LogSpecification(_Model): +class LogSpecification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Log specification of operation. :ivar name: Name of log specification. @@ -6365,7 +7008,7 @@ class ManagedRuleGroupDefinition(_Model): """List of rules within the managed rule group.""" -class ManagedRuleGroupOverride(_Model): +class ManagedRuleGroupOverride(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule group override setting. :ivar rule_group_name: Describes the managed rule group within the rule set to override. @@ -6402,7 +7045,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedRuleOverride(_Model): +class ManagedRuleOverride(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule group override setting. :ivar rule_id: Identifier for the managed rule. Required. @@ -6448,7 +7091,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedRuleSet(_Model): +class ManagedRuleSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule set. :ivar rule_set_type: Defines the rule set type to use. Required. @@ -6499,7 +7142,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedRuleSetDefinition(Resource): +class ManagedRuleSetDefinition(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a managed rule set definition. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -6592,7 +7235,7 @@ class ManagedRuleSetDefinitionProperties(_Model): """Rule groups of the managed rule set.""" -class ManagedRuleSetList(_Model): +class ManagedRuleSetList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the list of managed rule sets for the policy. :ivar managed_rule_sets: List of rule sets. @@ -6622,7 +7265,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedServiceIdentity(_Model): +class ManagedServiceIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Managed service identity (system assigned and/or user assigned identities). :ivar principal_id: The service principal ID of the system assigned identity. This property @@ -6673,7 +7316,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MatchCondition(_Model): +class MatchCondition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Define match conditions. :ivar match_variable: Match variable to compare against. Required. Known values are: @@ -6741,7 +7384,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MetricAvailability(_Model): +class MetricAvailability(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Retention policy of a resource metric. :ivar time_grain: @@ -6774,7 +7417,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MetricSpecification(_Model): +class MetricSpecification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metric specification of operation. :ivar name: Name of metric specification. @@ -6871,7 +7514,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MetricsResponse(_Model): +class MetricsResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metrics Response. :ivar date_time_begin: @@ -6919,7 +7562,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MetricsResponseSeriesItem(_Model): +class MetricsResponseSeriesItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """MetricsResponseSeriesItem. :ivar metric: @@ -6968,7 +7611,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MetricsResponseSeriesPropertiesItemsItem(_Model): +class MetricsResponseSeriesPropertiesItemsItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """MetricsResponseSeriesPropertiesItemsItem. :ivar name: @@ -6999,7 +7642,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MigrateResult(_Model): +class MigrateResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Result for migrate operation. :ivar id: Resource ID. @@ -7069,7 +7712,7 @@ class MigrateResultProperties(_Model): """Arm resource id of the migrated profile.""" -class MigrationEndpointMapping(_Model): +class MigrationEndpointMapping(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CDN Endpoint Mapping. :ivar migrated_from: Name of the classic CDN profile endpoint. @@ -7132,7 +7775,7 @@ class MigrationErrorType(_Model): """Describes what needs to be done to fix the problem.""" -class MigrationParameters(_Model): +class MigrationParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request body for Migrate operation. :ivar sku: Sku for the migration. Required. @@ -7186,7 +7829,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MigrationWebApplicationFirewallMapping(_Model): +class MigrationWebApplicationFirewallMapping(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Web Application Firewall Mapping. :ivar migrated_from: Migration From Waf policy. @@ -7223,7 +7866,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Operation(_Model): +class Operation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CDN REST API operation. :ivar name: Operation name: {provider}/{resource}/{operation}. @@ -7318,7 +7961,7 @@ class OperationDisplay(_Model): """Description of operation.""" -class OperationProperties(_Model): +class OperationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of operation, include metric specifications. :ivar service_specification: One property of operation, include metric specifications. @@ -7348,7 +7991,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Origin(ProxyResource): +class Origin(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. @@ -7426,7 +8069,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class OriginAuthenticationProperties(_Model): +class OriginAuthenticationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the origin authentication settings. :ivar type: The type of the authentication for the origin. Known values are: @@ -7439,6 +8082,12 @@ class OriginAuthenticationProperties(_Model): Blob Storage, scope could be "`https://storage.azure.com/.default `_". :vartype scope: str + :ivar token_destination_header: The HTTP request header where the origin authentication token + will be placed when forwarding the request to the origin. If not specified, the service will + use the ``Authorization`` header for backward compatibility. Known values are: "Authorization" + and "X-Azure-Authorization". + :vartype token_destination_header: str or + ~azure.mgmt.cdn.models.OriginAuthenticationTokenDestinationHeader """ type: Optional[Union[str, "_models.OriginAuthenticationType"]] = rest_field( @@ -7454,6 +8103,12 @@ class OriginAuthenticationProperties(_Model): scope: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The scope used when requesting token from Microsoft Entra. For example, for Azure Blob Storage, scope could be \"`https://storage.azure.com/.default `_\".""" + token_destination_header: Optional[Union[str, "_models.OriginAuthenticationTokenDestinationHeader"]] = rest_field( + name="tokenDestinationHeader", visibility=["read", "create", "update", "delete", "query"] + ) + """The HTTP request header where the origin authentication token will be placed when forwarding + the request to the origin. If not specified, the service will use the ``Authorization`` header + for backward compatibility. Known values are: \"Authorization\" and \"X-Azure-Authorization\".""" @overload def __init__( @@ -7462,6 +8117,7 @@ def __init__( type: Optional[Union[str, "_models.OriginAuthenticationType"]] = None, user_assigned_identity: Optional["_models.ResourceReference"] = None, scope: Optional[str] = None, + token_destination_header: Optional[Union[str, "_models.OriginAuthenticationTokenDestinationHeader"]] = None, ) -> None: ... @overload @@ -7475,7 +8131,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OriginGroup(ProxyResource): +class OriginGroup(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN. @@ -7544,7 +8200,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class OriginGroupOverride(_Model): +class OriginGroupOverride(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for the origin group override configuration. :ivar origin_group: defines the OriginGroup that would override the DefaultOriginGroup on @@ -7584,7 +8240,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OriginGroupOverrideAction(DeliveryRuleAction, discriminator="OriginGroupOverride"): +class OriginGroupOverrideAction( + DeliveryRuleAction, discriminator="OriginGroupOverride" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the origin group override action for the delivery rule. :ivar parameters: Defines the parameters for the action. Required. @@ -7621,7 +8279,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class OriginGroupOverrideActionParameters( DeliveryRuleActionParameters, discriminator="DeliveryRuleOriginGroupOverrideActionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for the origin group override action. :ivar origin_group: defines the OriginGroup that would override the DefaultOriginGroup. @@ -7658,7 +8316,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleActionParametersType.DELIVERY_RULE_ORIGIN_GROUP_OVERRIDE_ACTION_PARAMETERS # type: ignore -class OriginGroupUpdatePropertiesParameters(_Model): +class OriginGroupUpdatePropertiesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the origin group. :ivar health_probe_settings: Health probe settings to the origin that is used to determine the @@ -7723,7 +8381,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OriginGroupProperties(OriginGroupUpdatePropertiesParameters): +class OriginGroupProperties( + OriginGroupUpdatePropertiesParameters +): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the origin group. :ivar health_probe_settings: Health probe settings to the origin that is used to determine the @@ -7782,7 +8442,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OriginGroupUpdateParameters(_Model): +class OriginGroupUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Origin group properties needed for origin group creation or update. :ivar properties: The JSON object that contains the properties of the origin group. @@ -7837,7 +8497,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class OriginUpdatePropertiesParameters(_Model): +class OriginUpdatePropertiesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the origin. :ivar host_name: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses @@ -7944,7 +8604,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OriginProperties(OriginUpdatePropertiesParameters): +class OriginProperties(OriginUpdatePropertiesParameters): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the origin. :ivar http_port: The value of the HTTP port. Must be between 1 and 65535. @@ -8037,7 +8697,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OriginUpdateParameters(_Model): +class OriginUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Origin properties needed for origin update. :ivar properties: The JSON object that contains the properties of the origin. @@ -8099,7 +8759,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PolicySettings(_Model): +class PolicySettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines contents of a web application firewall global configuration. :ivar enabled_state: describes if the policy is in enabled state or disabled state. Known @@ -8174,7 +8834,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class PostArgsMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRulePostArgsConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for PostArgs match conditions. :ivar selector: Name of PostArg to be matched. @@ -8239,7 +8899,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleConditionParametersType.DELIVERY_RULE_POST_ARGS_CONDITION_PARAMETERS # type: ignore -class Profile(TrackedResource): +class Profile(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """A profile is a logical grouping of endpoints that share the same settings. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -8333,7 +8993,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ProfileChangeSkuWafMapping(_Model): +class ProfileChangeSkuWafMapping(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters required for profile upgrade. :ivar security_policy_name: The security policy name. Required. @@ -8370,7 +9030,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProfileLogScrubbing(_Model): +class ProfileLogScrubbing(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines rules that scrub sensitive fields in the Azure Front Door profile logs. :ivar state: State of the log scrubbing config. Default value is Enabled. Known values are: @@ -8410,7 +9070,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProfileProperties(_Model): +class ProfileProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties required to create a profile. :ivar resource_state: Resource status of the profile. Known values are: "Creating", "Active", @@ -8476,7 +9136,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProfilePropertiesUpdateParameters(_Model): +class ProfilePropertiesUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object containing profile update parameters. :ivar origin_response_timeout_seconds: Send and receive timeout on forwarding request to the @@ -8515,7 +9175,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProfileScrubbingRules(_Model): +class ProfileScrubbingRules(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the contents of the log scrubbing rules. :ivar match_variable: The variable to be scrubbed from the logs. Required. Known values are: @@ -8572,7 +9232,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProfileUpdateParameters(_Model): +class ProfileUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties required to update a profile. :ivar tags: Profile tags. @@ -8634,7 +9294,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ProfileUpgradeParameters(_Model): +class ProfileUpgradeParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters required for profile upgrade. :ivar waf_mapping_list: Web Application Firewall (WAF) and security policy mapping for the @@ -8665,7 +9325,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PurgeParameters(_Model): +class PurgeParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters required for content purge. :ivar content_paths: The path to the content to be purged. Can describe a file path or a wild @@ -8699,7 +9359,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class QueryStringMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleQueryStringConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for QueryString match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "Equal", @@ -8760,7 +9420,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleConditionParametersType.DELIVERY_RULE_QUERY_STRING_CONDITION_PARAMETERS # type: ignore -class RankingsResponse(_Model): +class RankingsResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Rankings Response. :ivar date_time_begin: @@ -8801,7 +9461,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RankingsResponseTablesItem(_Model): +class RankingsResponseTablesItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RankingsResponseTablesItem. :ivar ranking: @@ -8834,7 +9494,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RankingsResponseTablesPropertiesItemsItem(_Model): # pylint: disable=name-too-long +class RankingsResponseTablesPropertiesItemsItem( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """RankingsResponseTablesPropertiesItemsItem. :ivar name: @@ -8867,7 +9529,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RankingsResponseTablesPropertiesItemsMetricsItem(_Model): # pylint: disable=name-too-long +class RankingsResponseTablesPropertiesItemsMetricsItem( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """RankingsResponseTablesPropertiesItemsMetricsItem. :ivar metric: @@ -8902,7 +9566,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RateLimitRule(CustomRule): +class RateLimitRule(CustomRule): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a rate limiting rule that can be included in a waf policy. :ivar name: Defines the name of the custom rule. Required. @@ -8958,7 +9622,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RateLimitRuleList(_Model): +class RateLimitRuleList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines contents of rate limit rules. :ivar rules: List of rules. @@ -8990,7 +9654,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class RemoteAddressMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleRemoteAddressConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for RemoteAddress match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "IPMatch", @@ -9055,7 +9719,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class RequestBodyMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleRequestBodyConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for RequestBody match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "Equal", @@ -9118,7 +9782,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class RequestHeaderMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleRequestHeaderConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for RequestHeader match conditions. :ivar selector: Name of Header to be matched. @@ -9186,7 +9850,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class RequestMethodMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleRequestMethodConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for RequestMethod match conditions. :ivar operator: Describes operator to be matched. Required. "Equal" @@ -9246,7 +9910,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class RequestSchemeMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleRequestSchemeConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for RequestScheme match conditions. :ivar operator: Describes operator to be matched. Required. "Equal" @@ -9306,7 +9970,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class RequestUriMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleRequestUriConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for RequestUri match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "Equal", @@ -9367,7 +10031,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_URI_CONDITION_PARAMETERS # type: ignore -class ResourceReference(_Model): +class ResourceReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Reference to another resource. :ivar id: Resource ID. @@ -9395,7 +10059,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourcesResponse(_Model): +class ResourcesResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Resources Response. :ivar endpoints: @@ -9430,7 +10094,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourcesResponseCustomDomainsItem(_Model): +class ResourcesResponseCustomDomainsItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourcesResponseCustomDomainsItem. :ivar id: @@ -9471,7 +10135,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourcesResponseEndpointsItem(_Model): +class ResourcesResponseEndpointsItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourcesResponseEndpointsItem. :ivar id: @@ -9513,7 +10177,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourcesResponseEndpointsPropertiesItemsItem(_Model): # pylint: disable=name-too-long +class ResourcesResponseEndpointsPropertiesItemsItem( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ResourcesResponseEndpointsPropertiesItemsItem. :ivar id: @@ -9577,7 +10243,9 @@ class ResourceUsage(_Model): """Quota of the specified resource type.""" -class ResponseBasedOriginErrorDetectionParameters(_Model): # pylint: disable=name-too-long +class ResponseBasedOriginErrorDetectionParameters( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The JSON object that contains the properties to determine origin health using real requests/responses. @@ -9629,7 +10297,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Route(ProxyResource): +class Route(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Friendly Routes name mapping to the any Routes or secret related information. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -9707,7 +10375,7 @@ def __setattr__(self, key: str, value: Any) -> None: class RouteConfigurationOverrideActionParameters( DeliveryRuleActionParameters, discriminator="DeliveryRuleRouteConfigurationOverrideActionParameters" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines the parameters for the route configuration override action. :ivar origin_group_override: A reference to the origin group override configuration. Leave @@ -9754,7 +10422,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleActionParametersType.DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS # type: ignore -class RouteProperties(_Model): +class RouteProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the Routes to create. :ivar endpoint_name: The name of the endpoint which holds the route. @@ -9887,7 +10555,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RouteUpdateParameters(_Model): +class RouteUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The domain JSON object required for domain creation or update. :ivar properties: The JSON object that contains the properties of the domain to create. @@ -9950,7 +10618,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RouteUpdatePropertiesParameters(_Model): +class RouteUpdatePropertiesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the domain to create. :ivar endpoint_name: The name of the endpoint which holds the route. @@ -10068,7 +10736,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Rule(ProxyResource): +class Rule(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Friendly Rules name mapping to the any Rules or secret related information. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -10137,7 +10805,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RuleProperties(_Model): +class RuleProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the Rules to create. :ivar rule_set_name: The name of the rule set containing the rule. @@ -10215,7 +10883,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RuleSet(ProxyResource): +class RuleSet(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Friendly RuleSet name mapping to the any RuleSet or secret related information. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -10276,7 +10944,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RuleSetProperties(AFDStateProperties): +class RuleSetProperties(AFDStateProperties): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the Rule Set to create. :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", @@ -10331,7 +10999,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RuleUpdateParameters(_Model): +class RuleUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The domain JSON object required for domain creation or update. :ivar properties: The JSON object that contains the properties of the rule to update. @@ -10381,7 +11049,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RuleUpdatePropertiesParameters(_Model): +class RuleUpdatePropertiesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the rule to update. :ivar rule_set_name: The name of the rule set containing the rule. @@ -10444,7 +11112,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Secret(ProxyResource): +class Secret(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Friendly Secret name mapping to the any Secret or secret related information. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -10505,7 +11173,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecretProperties(AFDStateProperties): +class SecretProperties(AFDStateProperties): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object that contains the properties of the Secret to create. :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", @@ -10545,7 +11213,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityPolicy(ProxyResource): +class SecurityPolicy(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """SecurityPolicy association for AzureFrontDoor profile. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -10607,7 +11275,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecurityPolicyProperties(AFDStateProperties): +class SecurityPolicyProperties(AFDStateProperties): # pylint: disable=docstring-keyword-should-match-keyword-only """The json object that contains properties required to create a security policy. :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", @@ -10647,7 +11315,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityPolicyPropertiesParameters(_Model): +class SecurityPolicyPropertiesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The json object containing security policy parameters. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -10679,7 +11347,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityPolicyUpdateParameters(_Model): +class SecurityPolicyUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The JSON object containing security policy update parameters. :ivar properties: The json object that contains properties required to update a security @@ -10730,7 +11398,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecurityPolicyUpdateProperties(_Model): +class SecurityPolicyUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The json object that contains properties required to update a security policy. :ivar parameters: object which contains security policy parameters. @@ -10760,13 +11428,17 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityPolicyWebApplicationFirewallAssociation(_Model): # pylint: disable=name-too-long +class SecurityPolicyWebApplicationFirewallAssociation( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """settings for security policy patterns to match. :ivar domains: List of domains. :vartype domains: list[~azure.mgmt.cdn.models.ActivatedResourceReference] :ivar patterns_to_match: List of paths. :vartype patterns_to_match: list[str] + :ivar routes: List of routes. + :vartype routes: list[~azure.mgmt.cdn.models.ResourceReference] """ domains: Optional[list["_models.ActivatedResourceReference"]] = rest_field( @@ -10777,6 +11449,10 @@ class SecurityPolicyWebApplicationFirewallAssociation(_Model): # pylint: disabl name="patternsToMatch", visibility=["read", "create", "update", "delete", "query"] ) """List of paths.""" + routes: Optional[list["_models.ResourceReference"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of routes.""" @overload def __init__( @@ -10784,6 +11460,7 @@ def __init__( *, domains: Optional[list["_models.ActivatedResourceReference"]] = None, patterns_to_match: Optional[list[str]] = None, + routes: Optional[list["_models.ResourceReference"]] = None, ) -> None: ... @overload @@ -10799,7 +11476,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SecurityPolicyWebApplicationFirewallParameters( SecurityPolicyPropertiesParameters, discriminator="WebApplicationFirewall" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The json object containing security policy waf parameters. :ivar waf_policy: Resource ID. @@ -10807,6 +11484,8 @@ class SecurityPolicyWebApplicationFirewallParameters( :ivar associations: Waf associations. :vartype associations: list[~azure.mgmt.cdn.models.SecurityPolicyWebApplicationFirewallAssociation] + :ivar is_profile_level: Indicates if this is a profile-level WAF policy. + :vartype is_profile_level: bool :ivar type: The type of the Security policy to create. Required. WEB_APPLICATION_FIREWALL. :vartype type: str or ~azure.mgmt.cdn.models.WEB_APPLICATION_FIREWALL """ @@ -10819,6 +11498,10 @@ class SecurityPolicyWebApplicationFirewallParameters( visibility=["read", "create", "update", "delete", "query"] ) """Waf associations.""" + is_profile_level: Optional[bool] = rest_field( + name="isProfileLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates if this is a profile-level WAF policy.""" type: Literal[SecurityPolicyType.WEB_APPLICATION_FIREWALL] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """The type of the Security policy to create. Required. WEB_APPLICATION_FIREWALL.""" @@ -10828,6 +11511,7 @@ def __init__( *, waf_policy: Optional["_models.ResourceReference"] = None, associations: Optional[list["_models.SecurityPolicyWebApplicationFirewallAssociation"]] = None, + is_profile_level: Optional[bool] = None, ) -> None: ... @overload @@ -10844,7 +11528,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ServerPortMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleServerPortConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for ServerPort match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "Equal", @@ -10905,7 +11589,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleConditionParametersType.DELIVERY_RULE_SERVER_PORT_CONDITION_PARAMETERS # type: ignore -class ServiceSpecification(_Model): +class ServiceSpecification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """One property of operation, include log specifications. :ivar log_specifications: Log specifications of operation. @@ -10942,7 +11626,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedPrivateLinkResourceProperties(_Model): +class SharedPrivateLinkResourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of an existing Shared Private Link Resource to use when connecting to a private origin. @@ -11005,7 +11689,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Sku(_Model): +class Sku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Standard_Verizon = The SKU name for a Standard Verizon CDN profile. Premium_Verizon = The SKU name for a Premium Verizon CDN profile. Custom_Verizon = The SKU name for a Custom Verizon CDN profile. Standard_Akamai = The SKU name for an Akamai CDN profile. Standard_ChinaCdn = The SKU @@ -11058,7 +11742,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SocketAddrMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleSocketAddrConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for SocketAddress match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any" and @@ -11118,7 +11802,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SslProtocolMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleSslProtocolConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for SslProtocol match conditions. :ivar operator: Describes operator to be matched. Required. "Equal" @@ -11199,7 +11883,7 @@ class SupportedOptimizationTypesListResult(_Model): """Supported optimization types for a profile.""" -class SystemData(_Model): +class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata pertaining to creation and last modification of the resource. :ivar created_by: The identity that created the resource. @@ -11268,7 +11952,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class UrlFileExtensionMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleUrlFileExtensionMatchConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for UrlFileExtension match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "Equal", @@ -11331,7 +12015,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class UrlFileNameMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleUrlFilenameConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for UrlFilename match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "Equal", @@ -11394,7 +12078,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class UrlPathMatchConditionParameters( DeliveryRuleConditionParameters, discriminator="DeliveryRuleUrlPathMatchConditionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for UrlPath match conditions. :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "Equal", @@ -11455,7 +12139,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_PATH_MATCH_CONDITION_PARAMETERS # type: ignore -class UrlRedirectAction(DeliveryRuleAction, discriminator="UrlRedirect"): +class UrlRedirectAction( + DeliveryRuleAction, discriminator="UrlRedirect" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the url redirect action for the delivery rule. :ivar parameters: Defines the parameters for the action. Required. @@ -11492,7 +12178,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class UrlRedirectActionParameters( DeliveryRuleActionParameters, discriminator="DeliveryRuleUrlRedirectActionParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for the url redirect action. :ivar redirect_type: The redirect type the rule will use when redirecting traffic. Required. @@ -11576,7 +12262,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS # type: ignore -class UrlRewriteAction(DeliveryRuleAction, discriminator="UrlRewrite"): +class UrlRewriteAction( + DeliveryRuleAction, discriminator="UrlRewrite" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the url rewrite action for the delivery rule. :ivar parameters: Defines the parameters for the action. Required. @@ -11611,7 +12299,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = DeliveryRuleActionEnum.URL_REWRITE # type: ignore -class UrlRewriteActionParameters(DeliveryRuleActionParameters, discriminator="DeliveryRuleUrlRewriteActionParameters"): +class UrlRewriteActionParameters( + DeliveryRuleActionParameters, discriminator="DeliveryRuleUrlRewriteActionParameters" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for the url rewrite action. :ivar source_pattern: define a request URI pattern that identifies the type of requests that @@ -11659,7 +12349,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REWRITE_ACTION_PARAMETERS # type: ignore -class UrlSigningAction(DeliveryRuleAction, discriminator="UrlSigning"): +class UrlSigningAction( + DeliveryRuleAction, discriminator="UrlSigning" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the url signing action for the delivery rule. :ivar parameters: Defines the parameters for the action. Required. @@ -11694,7 +12386,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.name = DeliveryRuleActionEnum.URL_SIGNING # type: ignore -class UrlSigningActionParameters(DeliveryRuleActionParameters, discriminator="DeliveryRuleUrlSigningActionParameters"): +class UrlSigningActionParameters( + DeliveryRuleActionParameters, discriminator="DeliveryRuleUrlSigningActionParameters" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the parameters for the Url Signing action. :ivar algorithm: Algorithm to use for URL signing. "SHA256" @@ -11737,7 +12431,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type_name = DeliveryRuleActionParametersType.DELIVERY_RULE_URL_SIGNING_ACTION_PARAMETERS # type: ignore -class UrlSigningKey(_Model): +class UrlSigningKey(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Url signing key. :ivar key_id: Defines the customer defined key Id. This id will exist in the incoming request @@ -11775,7 +12469,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UrlSigningKeyParameters(SecretParameters, discriminator="UrlSigningKey"): +class UrlSigningKeyParameters( + SecretParameters, discriminator="UrlSigningKey" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Url signing key parameters. :ivar key_id: Defines the customer defined key Id. This id will exist in the incoming request @@ -11827,7 +12523,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.type = SecretType.URL_SIGNING_KEY # type: ignore -class UrlSigningParamIdentifier(_Model): +class UrlSigningParamIdentifier(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines how to identify a parameter for a specific purpose e.g. expires. :ivar param_indicator: Indicates the purpose of the parameter. Required. Known values are: @@ -11864,7 +12560,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Usage(_Model): +class Usage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes resource usage. :ivar id: Resource identifier. @@ -11911,7 +12607,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UsageName(_Model): +class UsageName(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The usage names. :ivar value: A string describing the resource name. @@ -11961,7 +12657,9 @@ class UserAssignedIdentity(_Model): """The client ID of the assigned identity.""" -class UserManagedHttpsParameters(CustomDomainHttpsParameters, discriminator="AzureKeyVault"): +class UserManagedHttpsParameters( + CustomDomainHttpsParameters, discriminator="AzureKeyVault" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the certificate source parameters using user's keyvault certificate for enabling SSL. :ivar protocol_type: Defines the TLS extension protocol that is used for secure delivery. @@ -12007,7 +12705,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.certificate_source = CertificateSource.AZURE_KEY_VAULT # type: ignore -class ValidateCustomDomainInput(_Model): +class ValidateCustomDomainInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input of the custom domain to be validated for DNS mapping. :ivar host_name: The host name of the custom domain. Must be a domain name. Required. @@ -12054,7 +12752,7 @@ class ValidateCustomDomainOutput(_Model): """Error message describing why the custom domain is not valid.""" -class ValidateProbeInput(_Model): +class ValidateProbeInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input of the validate probe API. :ivar probe_url: The probe URL to validate. Required. @@ -12101,11 +12799,12 @@ class ValidateProbeOutput(_Model): """The detailed error message describing why the probe URL is not accepted.""" -class ValidateSecretInput(_Model): +class ValidateSecretInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input of the secret to be validated. :ivar secret_type: The secret type. Required. Known values are: "UrlSigningKey", - "CustomerCertificate", "ManagedCertificate", and "AzureFirstPartyManagedCertificate". + "CustomerCertificate", "ManagedCertificate", "AzureFirstPartyManagedCertificate", and + "MtlsCertificateChain". :vartype secret_type: str or ~azure.mgmt.cdn.models.SecretType :ivar secret_source: Resource reference to the Azure Key Vault secret. Expected to be in format of @@ -12120,7 +12819,7 @@ class ValidateSecretInput(_Model): name="secretType", visibility=["read", "create", "update", "delete", "query"] ) """The secret type. Required. Known values are: \"UrlSigningKey\", \"CustomerCertificate\", - \"ManagedCertificate\", and \"AzureFirstPartyManagedCertificate\".""" + \"ManagedCertificate\", \"AzureFirstPartyManagedCertificate\", and \"MtlsCertificateChain\".""" secret_source: "_models.ResourceReference" = rest_field( name="secretSource", visibility=["read", "create", "update", "delete", "query"] ) @@ -12152,7 +12851,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ValidateSecretOutput(_Model): +class ValidateSecretOutput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Output of the validated secret. :ivar status: The validation status. Known values are: "Valid", "Invalid", "AccessDenied", and @@ -12189,7 +12888,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WafMetricsResponse(_Model): +class WafMetricsResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Waf Metrics Response. :ivar date_time_begin: @@ -12237,7 +12936,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WafMetricsResponseSeriesItem(_Model): +class WafMetricsResponseSeriesItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """WafMetricsResponseSeriesItem. :ivar metric: @@ -12286,7 +12985,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WafMetricsResponseSeriesPropertiesItemsItem(_Model): # pylint: disable=name-too-long +class WafMetricsResponseSeriesPropertiesItemsItem( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """WafMetricsResponseSeriesPropertiesItemsItem. :ivar name: @@ -12317,7 +13018,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WafRankingsResponse(_Model): +class WafRankingsResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Waf Rankings Response. :ivar date_time_begin: @@ -12362,7 +13063,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WafRankingsResponseDataItem(_Model): +class WafRankingsResponseDataItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """WafRankingsResponseDataItem. :ivar group_values: diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_patch.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_patch.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/models/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_operations.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_operations.py index 52c607ed82d9..e07ca1ec89f4 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_operations.py @@ -52,7 +52,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -73,7 +73,7 @@ def build_profiles_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -102,7 +102,7 @@ def build_profiles_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -133,7 +133,7 @@ def build_profiles_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -162,7 +162,7 @@ def build_profiles_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}" path_format_arguments = { @@ -185,7 +185,7 @@ def build_profiles_list_by_resource_group_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -210,7 +210,7 @@ def build_profiles_list_request(subscription_id: str, **kwargs: Any) -> HttpRequ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -235,7 +235,7 @@ def build_profiles_migration_commit_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/migrationCommit" path_format_arguments = { @@ -258,7 +258,7 @@ def build_profiles_generate_sso_uri_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -286,7 +286,7 @@ def build_profiles_list_supported_optimization_types_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -314,7 +314,7 @@ def build_profiles_list_resource_usage_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -342,7 +342,7 @@ def build_profiles_cdn_can_migrate_to_afd_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -371,7 +371,7 @@ def build_profiles_cdn_migrate_to_afd_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -400,7 +400,7 @@ def build_profiles_migration_abort_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/migrationAbort" path_format_arguments = { @@ -422,7 +422,7 @@ def build_profiles_can_migrate_request(resource_group_name: str, subscription_id _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -450,7 +450,7 @@ def build_profiles_migrate_request(resource_group_name: str, subscription_id: st _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -479,7 +479,7 @@ def build_afd_endpoints_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -509,7 +509,7 @@ def build_afd_endpoints_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -541,7 +541,7 @@ def build_afd_endpoints_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -571,7 +571,7 @@ def build_afd_endpoints_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}" path_format_arguments = { @@ -595,7 +595,7 @@ def build_afd_endpoints_list_by_profile_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -624,7 +624,7 @@ def build_afd_endpoints_purge_content_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/purge" path_format_arguments = { @@ -652,7 +652,7 @@ def build_afd_endpoints_list_resource_usage_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -682,7 +682,7 @@ def build_afd_endpoints_validate_custom_domain_request( # pylint: disable=name- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -713,7 +713,7 @@ def build_afd_origin_groups_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -743,7 +743,7 @@ def build_afd_origin_groups_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -775,7 +775,7 @@ def build_afd_origin_groups_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -805,7 +805,7 @@ def build_afd_origin_groups_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}" path_format_arguments = { @@ -829,7 +829,7 @@ def build_afd_origin_groups_list_by_profile_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -857,7 +857,7 @@ def build_afd_origin_groups_list_resource_usage_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -891,7 +891,7 @@ def build_afd_origins_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -927,7 +927,7 @@ def build_afd_origins_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -965,7 +965,7 @@ def build_afd_origins_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1001,7 +1001,7 @@ def build_afd_origins_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}" path_format_arguments = { @@ -1026,7 +1026,7 @@ def build_afd_origins_list_by_origin_group_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1060,7 +1060,7 @@ def build_routes_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1096,7 +1096,7 @@ def build_routes_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1134,7 +1134,7 @@ def build_routes_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1170,7 +1170,7 @@ def build_routes_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}" path_format_arguments = { @@ -1195,7 +1195,7 @@ def build_routes_list_by_endpoint_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1224,7 +1224,7 @@ def build_rule_sets_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1254,7 +1254,7 @@ def build_rule_sets_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1284,7 +1284,7 @@ def build_rule_sets_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}" path_format_arguments = { @@ -1308,7 +1308,7 @@ def build_rule_sets_list_by_profile_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1336,7 +1336,7 @@ def build_rule_sets_list_resource_usage_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1365,7 +1365,7 @@ def build_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1396,7 +1396,7 @@ def build_rules_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1429,7 +1429,7 @@ def build_rules_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1460,7 +1460,7 @@ def build_rules_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}" path_format_arguments = { @@ -1485,7 +1485,7 @@ def build_rules_list_by_rule_set_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1514,7 +1514,7 @@ def build_security_policies_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1544,7 +1544,7 @@ def build_security_policies_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1576,7 +1576,7 @@ def build_security_policies_patch_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1606,7 +1606,7 @@ def build_security_policies_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}" path_format_arguments = { @@ -1630,7 +1630,7 @@ def build_security_policies_list_by_profile_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1658,7 +1658,7 @@ def build_secrets_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1688,7 +1688,7 @@ def build_secrets_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1718,7 +1718,7 @@ def build_secrets_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}" path_format_arguments = { @@ -1742,7 +1742,7 @@ def build_secrets_list_by_profile_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1770,7 +1770,7 @@ def build_endpoints_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1800,7 +1800,7 @@ def build_endpoints_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1832,7 +1832,7 @@ def build_endpoints_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1862,7 +1862,7 @@ def build_endpoints_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}" path_format_arguments = { @@ -1886,7 +1886,7 @@ def build_endpoints_list_by_profile_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1914,7 +1914,7 @@ def build_endpoints_start_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1943,7 +1943,7 @@ def build_endpoints_stop_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1973,7 +1973,7 @@ def build_endpoints_purge_content_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/purge" path_format_arguments = { @@ -2002,7 +2002,7 @@ def build_endpoints_load_content_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/load" path_format_arguments = { @@ -2031,7 +2031,7 @@ def build_endpoints_validate_custom_domain_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2062,7 +2062,7 @@ def build_endpoints_list_resource_usage_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2096,7 +2096,7 @@ def build_origins_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2132,7 +2132,7 @@ def build_origins_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2170,7 +2170,7 @@ def build_origins_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2206,7 +2206,7 @@ def build_origins_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}" path_format_arguments = { @@ -2231,7 +2231,7 @@ def build_origins_list_by_endpoint_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2265,7 +2265,7 @@ def build_origin_groups_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2301,7 +2301,7 @@ def build_origin_groups_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2339,7 +2339,7 @@ def build_origin_groups_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2375,7 +2375,7 @@ def build_origin_groups_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups/{originGroupName}" path_format_arguments = { @@ -2400,7 +2400,7 @@ def build_origin_groups_list_by_endpoint_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2434,7 +2434,7 @@ def build_custom_domains_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2470,7 +2470,7 @@ def build_custom_domains_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2507,7 +2507,7 @@ def build_custom_domains_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2537,7 +2537,7 @@ def build_custom_domains_list_by_endpoint_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2571,7 +2571,7 @@ def build_custom_domains_disable_custom_https_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2607,7 +2607,7 @@ def build_custom_domains_enable_custom_https_request( # pylint: disable=name-to _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2639,7 +2639,7 @@ def build_afd_custom_domains_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2669,7 +2669,7 @@ def build_afd_custom_domains_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2701,7 +2701,7 @@ def build_afd_custom_domains_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2731,7 +2731,7 @@ def build_afd_custom_domains_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}" path_format_arguments = { @@ -2755,7 +2755,7 @@ def build_afd_custom_domains_list_by_profile_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2782,7 +2782,7 @@ def build_afd_custom_domains_refresh_validation_token_request( # pylint: disabl ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}/refreshValidationToken" path_format_arguments = { @@ -2807,7 +2807,7 @@ def build_afd_profiles_check_endpoint_name_availability_request( # pylint: disa _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2837,7 +2837,7 @@ def build_afd_profiles_list_resource_usage_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2866,7 +2866,7 @@ def build_afd_profiles_check_host_name_availability_request( # pylint: disable= _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2897,7 +2897,7 @@ def build_afd_profiles_validate_secret_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2928,7 +2928,7 @@ def build_afd_profiles_upgrade_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2971,7 +2971,7 @@ def build_log_analytics_get_log_analytics_metrics_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3025,7 +3025,7 @@ def build_log_analytics_get_log_analytics_rankings_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3062,7 +3062,7 @@ def build_log_analytics_get_log_analytics_locations_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3090,7 +3090,7 @@ def build_log_analytics_get_log_analytics_resources_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3129,7 +3129,7 @@ def build_log_analytics_get_waf_log_analytics_metrics_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3178,7 +3178,7 @@ def build_log_analytics_get_waf_log_analytics_rankings_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3215,7 +3215,7 @@ def build_policies_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3244,7 +3244,7 @@ def build_policies_create_or_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3275,7 +3275,7 @@ def build_policies_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3304,7 +3304,7 @@ def build_policies_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}" path_format_arguments = { @@ -3325,7 +3325,7 @@ def build_policies_list_request(resource_group_name: str, subscription_id: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3350,7 +3350,7 @@ def build_resource_usage_list_request(subscription_id: str, **kwargs: Any) -> Ht _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3374,7 +3374,7 @@ def build_edge_nodes_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3393,7 +3393,7 @@ def build_managed_rule_sets_list_request(subscription_id: str, **kwargs: Any) -> _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3420,7 +3420,7 @@ def build_cdn_management_check_endpoint_name_availability_request( # pylint: di _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3448,7 +3448,7 @@ def build_cdn_management_check_name_availability_request(**kwargs: Any) -> HttpR _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3472,7 +3472,7 @@ def build_cdn_management_check_name_availability_with_subscription_request( # p _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3501,7 +3501,7 @@ def build_cdn_management_validate_probe_request( # pylint: disable=name-too-lon _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3523,7 +3523,7 @@ def build_cdn_management_validate_probe_request( # pylint: disable=name-too-lon return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3633,7 +3633,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ProfilesOperations: # pylint: disable=too-many-public-methods +class ProfilesOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -5827,7 +5827,7 @@ def get_long_running_output(pipeline_response): ) -class AFDEndpointsOperations: +class AFDEndpointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7269,7 +7269,7 @@ def validate_custom_domain( return deserialized # type: ignore -class AFDOriginGroupsOperations: +class AFDOriginGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8230,7 +8230,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AFDOriginsOperations: +class AFDOriginsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9116,7 +9116,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RoutesOperations: +class RoutesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10016,7 +10016,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RuleSetsOperations: +class RuleSetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10122,7 +10122,7 @@ def get(self, resource_group_name: str, profile_name: str, rule_set_name: str, * "accept", ] }, - api_versions_list=["2025-12-01"], + api_versions_list=["2025-12-01", "2026-04-01-preview", "2026-07-01"], ) def _create_initial( self, @@ -10324,7 +10324,7 @@ def begin_create( "accept", ] }, - api_versions_list=["2025-12-01"], + api_versions_list=["2025-12-01", "2026-04-01-preview", "2026-07-01"], ) def begin_create( self, @@ -10749,7 +10749,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RulesOperations: +class RulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11630,7 +11630,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SecurityPoliciesOperations: +class SecurityPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12474,7 +12474,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SecretsOperations: +class SecretsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -13054,7 +13054,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class EndpointsOperations: +class EndpointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -14989,7 +14989,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class OriginsOperations: +class OriginsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -15869,7 +15869,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class OriginGroupsOperations: +class OriginGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -16765,7 +16765,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class CustomDomainsOperations: +class CustomDomainsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -17805,7 +17805,7 @@ def get_long_running_output(pipeline_response): ) -class AFDCustomDomainsOperations: +class AFDCustomDomainsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -18791,7 +18791,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class AFDProfilesOperations: +class AFDProfilesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -19698,7 +19698,7 @@ def get_long_running_output(pipeline_response): ) -class LogAnalyticsOperations: +class LogAnalyticsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -20286,7 +20286,7 @@ def get_waf_log_analytics_rankings( return deserialized # type: ignore -class PoliciesOperations: +class PoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -21028,7 +21028,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ResourceUsageOperations: +class ResourceUsageOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -21139,7 +21139,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class EdgeNodesOperations: +class EdgeNodesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -21250,7 +21250,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ManagedRuleSetsOperations: +class ManagedRuleSetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_patch.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_patch.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/types.py b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/types.py index dfae76b5194f..81eeaa1229b9 100644 --- a/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/types.py +++ b/sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/types.py @@ -17,6 +17,7 @@ DeliveryRuleActionParametersType, DeliveryRuleConditionParametersType, MatchVariable, + MtlsScenarioType, SecretType, SecurityPolicyType, ) @@ -32,10 +33,14 @@ AfdMinimumTlsVersion, AfdProvisioningState, AfdQueryStringCachingBehavior, + AfdServerTlsGroup, + AfdServerTlsGroupPolicy, Algorithm, AutoGeneratedDomainNameLabelScope, CacheBehavior, CacheType, + CertificateNameCheckValidationMode, + CertificateRevocationCheckEnabledState, CertificateType, ClientPortOperator, CookiesOperator, @@ -48,6 +53,7 @@ EnabledState, EndpointProvisioningState, EndpointResourceState, + EnforceMtlsEnabledState, ForwardingProtocol, GeoFilterActions, HeaderAction, @@ -55,6 +61,7 @@ HostNameOperator, HttpVersionOperator, HttpsRedirect, + InvocationPoint, IsDeviceMatchConditionParametersMatchValuesItem, IsDeviceOperator, KeyVaultSigningKeyParametersTypeName, @@ -65,6 +72,7 @@ MinimumTlsVersion, Operator, OptimizationType, + OriginAuthenticationTokenDestinationHeader, OriginAuthenticationType, OriginGroupProvisioningState, OriginGroupResourceState, @@ -112,6 +120,7 @@ SslProtocolOperator, Transform, TransformType, + TypeName, UpdateRule, UrlFileExtensionOperator, UrlFileNameOperator, @@ -125,8 +134,8 @@ class ActivatedResourceReference(TypedDict, total=False): :ivar id: Resource ID. :vartype id: str - :ivar is_active: Whether the resource is active or inactive. - :vartype is_active: bool + :ivar isActive: Whether the resource is active or inactive. + :vartype isActive: bool """ id: str @@ -146,9 +155,9 @@ class Resource(TypedDict, total=False): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ id: str @@ -174,9 +183,9 @@ class ProxyResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ @@ -192,9 +201,9 @@ class AFDDomain(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The JSON object that contains the properties of the domain to create. :vartype properties: "AFDDomainProperties" """ @@ -207,12 +216,12 @@ class AFDDomainHttpsCustomizedCipherSuiteSet(TypedDict, total=False): """Customized cipher suite set object that will be used for Https when cipherSuiteSetType is Customized. - :ivar cipher_suite_set_for_tls12: Cipher suites for TLS 1.2. Required at least one in + :ivar cipherSuiteSetForTls12: Cipher suites for TLS 1.2. Required at least one in minimumTlsVersion TLS 1.2. - :vartype cipher_suite_set_for_tls12: list[Union[str, "AfdCustomizedCipherSuiteForTls12"]] - :ivar cipher_suite_set_for_tls13: Cipher suites for TLS 1.3. Required at least one in + :vartype cipherSuiteSetForTls12: list[Union[str, "AfdCustomizedCipherSuiteForTls12"]] + :ivar cipherSuiteSetForTls13: Cipher suites for TLS 1.3. Required at least one in minimumTlsVersion TLS 1.2, TLS 1.3. - :vartype cipher_suite_set_for_tls13: list[Union[str, "AfdCustomizedCipherSuiteForTls13"]] + :vartype cipherSuiteSetForTls13: list[Union[str, "AfdCustomizedCipherSuiteForTls13"]] """ cipherSuiteSetForTls12: list[Union[str, "AfdCustomizedCipherSuiteForTls12"]] @@ -224,18 +233,24 @@ class AFDDomainHttpsCustomizedCipherSuiteSet(TypedDict, total=False): class AFDDomainHttpsParameters(TypedDict, total=False): """The JSON object that contains the properties to secure a domain. - :ivar certificate_type: Defines the source of the SSL certificate. Required. Known values are: + :ivar certificateType: Defines the source of the SSL certificate. Required. Known values are: "CustomerCertificate", "ManagedCertificate", and "AzureFirstPartyManagedCertificate". - :vartype certificate_type: Union[str, "AfdCertificateType"] - :ivar cipher_suite_set_type: cipher suite set type that will be used for Https. Known values - are: "Customized", "TLS10_2019", "TLS12_2022", and "TLS12_2023". - :vartype cipher_suite_set_type: Union[str, "AfdCipherSuiteSetType"] - :ivar minimum_tls_version: TLS protocol version that will be used for Https when + :vartype certificateType: Union[str, "AfdCertificateType"] + :ivar cipherSuiteSetType: cipher suite set type that will be used for Https. Known values are: + "Customized", "TLS10_2019", "TLS12_2022", and "TLS12_2023". + :vartype cipherSuiteSetType: Union[str, "AfdCipherSuiteSetType"] + :ivar minimumTlsVersion: TLS protocol version that will be used for Https when cipherSuiteSetType is Customized. Known values are: "TLS10", "TLS12", and "TLS13". - :vartype minimum_tls_version: Union[str, "AfdMinimumTlsVersion"] - :ivar customized_cipher_suite_set: Customized cipher suites object that will be used for Https + :vartype minimumTlsVersion: Union[str, "AfdMinimumTlsVersion"] + :ivar customizedCipherSuiteSet: Customized cipher suites object that will be used for Https when cipherSuiteSetType is Customized. - :vartype customized_cipher_suite_set: "AFDDomainHttpsCustomizedCipherSuiteSet" + :vartype customizedCipherSuiteSet: "AFDDomainHttpsCustomizedCipherSuiteSet" + :ivar serverTlsGroupPolicy: Server TLS group policy that will be used for Https. Known values + are: "Standard", "Enhanced", and "Custom". + :vartype serverTlsGroupPolicy: Union[str, "AfdServerTlsGroupPolicy"] + :ivar serverTlsGroups: Server TLS groups that will be used for Https when serverTlsGroupPolicy + is Custom. + :vartype serverTlsGroups: list[Union[str, "AfdServerTlsGroup"]] :ivar secret: Resource reference to the secret. ie. subs/rg/profile/secret. :vartype secret: "ResourceReference" """ @@ -252,6 +267,11 @@ class AFDDomainHttpsParameters(TypedDict, total=False): customizedCipherSuiteSet: "AFDDomainHttpsCustomizedCipherSuiteSet" """Customized cipher suites object that will be used for Https when cipherSuiteSetType is Customized.""" + serverTlsGroupPolicy: Union[str, "AfdServerTlsGroupPolicy"] + """Server TLS group policy that will be used for Https. Known values are: \"Standard\", + \"Enhanced\", and \"Custom\".""" + serverTlsGroups: list[Union[str, "AfdServerTlsGroup"]] + """Server TLS groups that will be used for Https when serverTlsGroupPolicy is Custom.""" secret: "ResourceReference" """Resource reference to the secret. ie. subs/rg/profile/secret.""" @@ -259,34 +279,37 @@ class AFDDomainHttpsParameters(TypedDict, total=False): class AFDDomainProperties(TypedDict, total=False): """The JSON object that contains the properties of the domain to create. - :ivar profile_name: The name of the profile which holds the domain. - :vartype profile_name: str - :ivar tls_settings: The configuration specifying how to enable HTTPS for the domain - using + :ivar profileName: The name of the profile which holds the domain. + :vartype profileName: str + :ivar tlsSettings: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. - :vartype tls_settings: "AFDDomainHttpsParameters" - :ivar azure_dns_zone: Resource reference to the Azure DNS zone. - :vartype azure_dns_zone: "ResourceReference" - :ivar pre_validated_custom_domain_resource_id: Resource reference to the Azure resource where - custom domain ownership was prevalidated. - :vartype pre_validated_custom_domain_resource_id: "ResourceReference" - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :vartype tlsSettings: "AFDDomainHttpsParameters" + :ivar mtlsSettings: The configuration specifying how to enable mutual TLS for the domain, + including specifying allowed FQDNs and which server certificate(s) to use. + :vartype mtlsSettings: "AFDDomainMtlsParameters" + :ivar azureDnsZone: Resource reference to the Azure DNS zone. + :vartype azureDnsZone: "ResourceReference" + :ivar preValidatedCustomDomainResourceId: Resource reference to the Azure resource where custom + domain ownership was prevalidated. + :vartype preValidatedCustomDomainResourceId: "ResourceReference" + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] - :ivar domain_validation_state: Provisioning substate shows the progress of custom HTTPS + :vartype deploymentStatus: Union[str, "DeploymentStatus"] + :ivar domainValidationState: Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. DCV stands for DomainControlValidation. Known values are: "Unknown", "Submitting", "Pending", "Rejected", "TimedOut", "PendingRevalidation", "Approved", "RefreshingValidationToken", and "InternalError". - :vartype domain_validation_state: Union[str, "DomainValidationState"] - :ivar host_name: The host name of the domain. Must be a domain name. Required. - :vartype host_name: str - :ivar extended_properties: Key-Value pair representing migration properties for domains. - :vartype extended_properties: dict[str, str] - :ivar validation_properties: Values the customer needs to validate domain ownership. - :vartype validation_properties: "DomainValidationProperties" + :vartype domainValidationState: Union[str, "DomainValidationState"] + :ivar hostName: The host name of the domain. Must be a domain name. Required. + :vartype hostName: str + :ivar extendedProperties: Key-Value pair representing migration properties for domains. + :vartype extendedProperties: dict[str, str] + :ivar validationProperties: Values the customer needs to validate domain ownership. + :vartype validationProperties: "DomainValidationProperties" """ profileName: str @@ -295,6 +318,9 @@ class AFDDomainProperties(TypedDict, total=False): """The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.""" + mtlsSettings: "AFDDomainMtlsParameters" + """The configuration specifying how to enable mutual TLS for the domain, including specifying + allowed FQDNs and which server certificate(s) to use.""" azureDnsZone: "ResourceReference" """Resource reference to the Azure DNS zone.""" preValidatedCustomDomainResourceId: "ResourceReference" @@ -331,17 +357,20 @@ class AFDDomainUpdateParameters(TypedDict, total=False): class AFDDomainUpdatePropertiesParameters(TypedDict, total=False): """The JSON object that contains the properties of the domain to create. - :ivar profile_name: The name of the profile which holds the domain. - :vartype profile_name: str - :ivar tls_settings: The configuration specifying how to enable HTTPS for the domain - using + :ivar profileName: The name of the profile which holds the domain. + :vartype profileName: str + :ivar tlsSettings: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default. - :vartype tls_settings: "AFDDomainHttpsParameters" - :ivar azure_dns_zone: Resource reference to the Azure DNS zone. - :vartype azure_dns_zone: "ResourceReference" - :ivar pre_validated_custom_domain_resource_id: Resource reference to the Azure resource where - custom domain ownership was prevalidated. - :vartype pre_validated_custom_domain_resource_id: "ResourceReference" + :vartype tlsSettings: "AFDDomainHttpsParameters" + :ivar mtlsSettings: The configuration specifying how to enable mutual TLS for the domain, + including specifying allowed FQDNs and which server certificate(s) to use. + :vartype mtlsSettings: "AFDDomainMtlsParameters" + :ivar azureDnsZone: Resource reference to the Azure DNS zone. + :vartype azureDnsZone: "ResourceReference" + :ivar preValidatedCustomDomainResourceId: Resource reference to the Azure resource where custom + domain ownership was prevalidated. + :vartype preValidatedCustomDomainResourceId: "ResourceReference" """ profileName: str @@ -350,6 +379,9 @@ class AFDDomainUpdatePropertiesParameters(TypedDict, total=False): """The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.""" + mtlsSettings: "AFDDomainMtlsParameters" + """The configuration specifying how to enable mutual TLS for the domain, including specifying + allowed FQDNs and which server certificate(s) to use.""" azureDnsZone: "ResourceReference" """Resource reference to the Azure DNS zone.""" preValidatedCustomDomainResourceId: "ResourceReference" @@ -367,9 +399,9 @@ class TrackedResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -395,9 +427,9 @@ class AFDEndpoint(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -413,25 +445,27 @@ class AFDEndpoint(TrackedResource): class AFDEndpointProperties(TypedDict, total=False): """The JSON object that contains the properties required to create an endpoint. - :ivar profile_name: The name of the profile which holds the endpoint. - :vartype profile_name: str - :ivar enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + :ivar profileName: The name of the profile which holds the endpoint. + :vartype profileName: str + :ivar enabledState: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". - :vartype enabled_state: Union[str, "EnabledState"] - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :vartype enabledState: Union[str, "EnabledState"] + :ivar enforceMtls: Set to Disabled by default. If set to Enabled, only custom domains with mTLS + enabled can be added to child Route resources. Known values are: "Enabled" and "Disabled". + :vartype enforceMtls: Union[str, "EnforceMtlsEnabledState"] + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] - :ivar host_name: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. + :vartype deploymentStatus: Union[str, "DeploymentStatus"] + :ivar hostName: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net. - :vartype host_name: str - :ivar auto_generated_domain_name_label_scope: Indicates the endpoint name reuse scope. The - default value is TenantReuse. Known values are: "TenantReuse", "SubscriptionReuse", + :vartype hostName: str + :ivar autoGeneratedDomainNameLabelScope: Indicates the endpoint name reuse scope. The default + value is TenantReuse. Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". - :vartype auto_generated_domain_name_label_scope: Union[str, - "AutoGeneratedDomainNameLabelScope"] + :vartype autoGeneratedDomainNameLabelScope: Union[str, "AutoGeneratedDomainNameLabelScope"] """ profileName: str @@ -439,6 +473,9 @@ class AFDEndpointProperties(TypedDict, total=False): enabledState: Union[str, "EnabledState"] """Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: \"Enabled\" and \"Disabled\".""" + enforceMtls: Union[str, "EnforceMtlsEnabledState"] + """Set to Disabled by default. If set to Enabled, only custom domains with mTLS enabled can be + added to child Route resources. Known values are: \"Enabled\" and \"Disabled\".""" provisioningState: Union[str, "AfdProvisioningState"] """Provisioning status. Known values are: \"Succeeded\", \"Failed\", \"Updating\", \"Deleting\", and \"Creating\".""" @@ -455,11 +492,14 @@ class AFDEndpointProperties(TypedDict, total=False): class AFDEndpointPropertiesUpdateParameters(TypedDict, total=False): """The JSON object containing endpoint update parameters. - :ivar profile_name: The name of the profile which holds the endpoint. - :vartype profile_name: str - :ivar enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + :ivar profileName: The name of the profile which holds the endpoint. + :vartype profileName: str + :ivar enabledState: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". - :vartype enabled_state: Union[str, "EnabledState"] + :vartype enabledState: Union[str, "EnabledState"] + :ivar enforceMtls: Set to Disabled by default. If set to Enabled, only custom domains with mTLS + enabled can be added to child Route resources. Known values are: "Enabled" and "Disabled". + :vartype enforceMtls: Union[str, "EnforceMtlsEnabledState"] """ profileName: str @@ -467,6 +507,9 @@ class AFDEndpointPropertiesUpdateParameters(TypedDict, total=False): enabledState: Union[str, "EnabledState"] """Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: \"Enabled\" and \"Disabled\".""" + enforceMtls: Union[str, "EnforceMtlsEnabledState"] + """Set to Disabled by default. If set to Enabled, only custom domains with mTLS enabled can be + added to child Route resources. Known values are: \"Enabled\" and \"Disabled\".""" class AFDEndpointUpdateParameters(TypedDict, total=False): @@ -497,9 +540,9 @@ class AFDOrigin(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The JSON object that contains the properties of the origin. :vartype properties: "AFDOriginProperties" """ @@ -520,9 +563,9 @@ class AFDOriginGroup(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The JSON object that contains the properties of the origin group. :vartype properties: "AFDOriginGroupProperties" """ @@ -534,28 +577,28 @@ class AFDOriginGroup(ProxyResource): class AFDOriginGroupProperties(TypedDict, total=False): """The JSON object that contains the properties of the origin group. - :ivar profile_name: The name of the profile which holds the origin group. - :vartype profile_name: str - :ivar load_balancing_settings: Load balancing settings for a backend pool. - :vartype load_balancing_settings: "LoadBalancingSettingsParameters" - :ivar health_probe_settings: Health probe settings to the origin that is used to determine the + :ivar profileName: The name of the profile which holds the origin group. + :vartype profileName: str + :ivar loadBalancingSettings: Load balancing settings for a backend pool. + :vartype loadBalancingSettings: "LoadBalancingSettingsParameters" + :ivar healthProbeSettings: Health probe settings to the origin that is used to determine the health of the origin. - :vartype health_probe_settings: "HealthProbeParameters" - :ivar traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: Time in minutes to shift - the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new - endpoint is added. Default is 10 mins. This property is currently not supported. - :vartype traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int - :ivar session_affinity_state: Whether to allow session affinity on this host. Valid options are + :vartype healthProbeSettings: "HealthProbeParameters" + :ivar trafficRestorationTimeToHealedOrNewEndpointsInMinutes: Time in minutes to shift the + traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is + added. Default is 10 mins. This property is currently not supported. + :vartype trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int + :ivar sessionAffinityState: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". - :vartype session_affinity_state: Union[str, "EnabledState"] + :vartype sessionAffinityState: Union[str, "EnabledState"] :ivar authentication: Authentication settings for origin in origin group. :vartype authentication: "OriginAuthenticationProperties" - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] + :vartype deploymentStatus: Union[str, "DeploymentStatus"] """ profileName: str @@ -594,20 +637,20 @@ class AFDOriginGroupUpdateParameters(TypedDict, total=False): class AFDOriginGroupUpdatePropertiesParameters(TypedDict, total=False): """The JSON object that contains the properties of the origin group. - :ivar profile_name: The name of the profile which holds the origin group. - :vartype profile_name: str - :ivar load_balancing_settings: Load balancing settings for a backend pool. - :vartype load_balancing_settings: "LoadBalancingSettingsParameters" - :ivar health_probe_settings: Health probe settings to the origin that is used to determine the + :ivar profileName: The name of the profile which holds the origin group. + :vartype profileName: str + :ivar loadBalancingSettings: Load balancing settings for a backend pool. + :vartype loadBalancingSettings: "LoadBalancingSettingsParameters" + :ivar healthProbeSettings: Health probe settings to the origin that is used to determine the health of the origin. - :vartype health_probe_settings: "HealthProbeParameters" - :ivar traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: Time in minutes to shift - the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new - endpoint is added. Default is 10 mins. This property is currently not supported. - :vartype traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int - :ivar session_affinity_state: Whether to allow session affinity on this host. Valid options are + :vartype healthProbeSettings: "HealthProbeParameters" + :ivar trafficRestorationTimeToHealedOrNewEndpointsInMinutes: Time in minutes to shift the + traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is + added. Default is 10 mins. This property is currently not supported. + :vartype trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int + :ivar sessionAffinityState: Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". - :vartype session_affinity_state: Union[str, "EnabledState"] + :vartype sessionAffinityState: Union[str, "EnabledState"] :ivar authentication: Authentication settings for origin in origin group. :vartype authentication: "OriginAuthenticationProperties" """ @@ -632,22 +675,22 @@ class AFDOriginGroupUpdatePropertiesParameters(TypedDict, total=False): class AFDOriginProperties(TypedDict, total=False): """The JSON object that contains the properties of the origin. - :ivar origin_group_name: The name of the origin group which contains this origin. - :vartype origin_group_name: str - :ivar azure_origin: Resource reference to the Azure origin resource. - :vartype azure_origin: "ResourceReference" - :ivar host_name: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses - are supported.This should be unique across all origins in an endpoint. - :vartype host_name: str - :ivar http_port: The value of the HTTP port. Must be between 1 and 65535. - :vartype http_port: int - :ivar https_port: The value of the HTTPS port. Must be between 1 and 65535. - :vartype https_port: int - :ivar origin_host_header: The host header value sent to the origin with each request. If you + :ivar originGroupName: The name of the origin group which contains this origin. + :vartype originGroupName: str + :ivar azureOrigin: Resource reference to the Azure origin resource. + :vartype azureOrigin: "ResourceReference" + :ivar hostName: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are + supported.This should be unique across all origins in an endpoint. + :vartype hostName: str + :ivar httpPort: The value of the HTTP port. Must be between 1 and 65535. + :vartype httpPort: int + :ivar httpsPort: The value of the HTTPS port. Must be between 1 and 65535. + :vartype httpsPort: int + :ivar originHostHeader: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint. - :vartype origin_host_header: str + :vartype originHostHeader: str :ivar priority: Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. @@ -655,21 +698,29 @@ class AFDOriginProperties(TypedDict, total=False): :ivar weight: Weight of the origin in given origin group for load balancing. Must be between 1 and 1000. :vartype weight: int - :ivar shared_private_link_resource: The properties of the private link resource for private + :ivar sharedPrivateLinkResource: The properties of the private link resource for private origin. - :vartype shared_private_link_resource: "SharedPrivateLinkResourceProperties" - :ivar enabled_state: Whether to enable health probes to be made against backends defined under + :vartype sharedPrivateLinkResource: "SharedPrivateLinkResourceProperties" + :ivar enabledState: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Known values are: "Enabled" and "Disabled". - :vartype enabled_state: Union[str, "EnabledState"] - :ivar enforce_certificate_name_check: Whether to enable certificate name check at origin level. - :vartype enforce_certificate_name_check: bool - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :vartype enabledState: Union[str, "EnabledState"] + :ivar enforceCertificateNameCheck: Whether to enable certificate name check at origin level. + :vartype enforceCertificateNameCheck: bool + :ivar certificateNameCheckValidationMode: The validation mode for certificate name check. Only + applicable when enforceCertificateNameCheck is true. Known values are: "OriginHostname", + "CustomCertificateSubject", and "IncomingHostHeader". + :vartype certificateNameCheckValidationMode: Union[str, "CertificateNameCheckValidationMode"] + :ivar customCertificateSubjects: The list of custom certificate subjects to validate against. + Only applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must + contain 1 or 2 entries. + :vartype customCertificateSubjects: list[str] + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] + :vartype deploymentStatus: Union[str, "DeploymentStatus"] """ originGroupName: str @@ -701,6 +752,13 @@ class AFDOriginProperties(TypedDict, total=False): pool. Known values are: \"Enabled\" and \"Disabled\".""" enforceCertificateNameCheck: bool """Whether to enable certificate name check at origin level.""" + certificateNameCheckValidationMode: Union[str, "CertificateNameCheckValidationMode"] + """The validation mode for certificate name check. Only applicable when + enforceCertificateNameCheck is true. Known values are: \"OriginHostname\", + \"CustomCertificateSubject\", and \"IncomingHostHeader\".""" + customCertificateSubjects: list[str] + """The list of custom certificate subjects to validate against. Only applicable when + certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries.""" provisioningState: Union[str, "AfdProvisioningState"] """Provisioning status. Known values are: \"Succeeded\", \"Failed\", \"Updating\", \"Deleting\", and \"Creating\".""" @@ -722,22 +780,22 @@ class AFDOriginUpdateParameters(TypedDict, total=False): class AFDOriginUpdatePropertiesParameters(TypedDict, total=False): """The JSON object that contains the properties of the origin. - :ivar origin_group_name: The name of the origin group which contains this origin. - :vartype origin_group_name: str - :ivar azure_origin: Resource reference to the Azure origin resource. - :vartype azure_origin: "ResourceReference" - :ivar host_name: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses - are supported.This should be unique across all origins in an endpoint. - :vartype host_name: str - :ivar http_port: The value of the HTTP port. Must be between 1 and 65535. - :vartype http_port: int - :ivar https_port: The value of the HTTPS port. Must be between 1 and 65535. - :vartype https_port: int - :ivar origin_host_header: The host header value sent to the origin with each request. If you + :ivar originGroupName: The name of the origin group which contains this origin. + :vartype originGroupName: str + :ivar azureOrigin: Resource reference to the Azure origin resource. + :vartype azureOrigin: "ResourceReference" + :ivar hostName: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are + supported.This should be unique across all origins in an endpoint. + :vartype hostName: str + :ivar httpPort: The value of the HTTP port. Must be between 1 and 65535. + :vartype httpPort: int + :ivar httpsPort: The value of the HTTPS port. Must be between 1 and 65535. + :vartype httpsPort: int + :ivar originHostHeader: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint. - :vartype origin_host_header: str + :vartype originHostHeader: str :ivar priority: Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. @@ -745,15 +803,23 @@ class AFDOriginUpdatePropertiesParameters(TypedDict, total=False): :ivar weight: Weight of the origin in given origin group for load balancing. Must be between 1 and 1000. :vartype weight: int - :ivar shared_private_link_resource: The properties of the private link resource for private + :ivar sharedPrivateLinkResource: The properties of the private link resource for private origin. - :vartype shared_private_link_resource: "SharedPrivateLinkResourceProperties" - :ivar enabled_state: Whether to enable health probes to be made against backends defined under + :vartype sharedPrivateLinkResource: "SharedPrivateLinkResourceProperties" + :ivar enabledState: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Known values are: "Enabled" and "Disabled". - :vartype enabled_state: Union[str, "EnabledState"] - :ivar enforce_certificate_name_check: Whether to enable certificate name check at origin level. - :vartype enforce_certificate_name_check: bool + :vartype enabledState: Union[str, "EnabledState"] + :ivar enforceCertificateNameCheck: Whether to enable certificate name check at origin level. + :vartype enforceCertificateNameCheck: bool + :ivar certificateNameCheckValidationMode: The validation mode for certificate name check. Only + applicable when enforceCertificateNameCheck is true. Known values are: "OriginHostname", + "CustomCertificateSubject", and "IncomingHostHeader". + :vartype certificateNameCheckValidationMode: Union[str, "CertificateNameCheckValidationMode"] + :ivar customCertificateSubjects: The list of custom certificate subjects to validate against. + Only applicable when certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must + contain 1 or 2 entries. + :vartype customCertificateSubjects: list[str] """ originGroupName: str @@ -785,14 +851,21 @@ class AFDOriginUpdatePropertiesParameters(TypedDict, total=False): pool. Known values are: \"Enabled\" and \"Disabled\".""" enforceCertificateNameCheck: bool """Whether to enable certificate name check at origin level.""" + certificateNameCheckValidationMode: Union[str, "CertificateNameCheckValidationMode"] + """The validation mode for certificate name check. Only applicable when + enforceCertificateNameCheck is true. Known values are: \"OriginHostname\", + \"CustomCertificateSubject\", and \"IncomingHostHeader\".""" + customCertificateSubjects: list[str] + """The list of custom certificate subjects to validate against. Only applicable when + certificateNameCheckValidationMode is 'CustomCertificateSubject'. Must contain 1 or 2 entries.""" class AfdPurgeParameters(TypedDict, total=False): """Parameters required for content purge. - :ivar content_paths: The path to the content to be purged. Can describe a file path or a wild + :ivar contentPaths: The path to the content to be purged. Can describe a file path or a wild card directory. Required. - :vartype content_paths: list[str] + :vartype contentPaths: list[str] :ivar domains: List of domains. :vartype domains: list[str] """ @@ -808,16 +881,16 @@ class AfdRouteCacheConfiguration(TypedDict, total=False): """Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. - :ivar query_string_caching_behavior: Defines how Frontdoor caches requests that include query + :ivar queryStringCachingBehavior: Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings. Known values are: "IgnoreQueryString", "UseQueryString", "IgnoreSpecifiedQueryStrings", and "IncludeSpecifiedQueryStrings". - :vartype query_string_caching_behavior: Union[str, "AfdQueryStringCachingBehavior"] - :ivar query_parameters: query parameters to include or exclude (comma separated). - :vartype query_parameters: str - :ivar compression_settings: compression settings. - :vartype compression_settings: "CompressionSettings" + :vartype queryStringCachingBehavior: Union[str, "AfdQueryStringCachingBehavior"] + :ivar queryParameters: query parameters to include or exclude (comma separated). + :vartype queryParameters: str + :ivar compressionSettings: compression settings. + :vartype compressionSettings: "CompressionSettings" """ queryStringCachingBehavior: Union[str, "AfdQueryStringCachingBehavior"] @@ -831,15 +904,45 @@ class AfdRouteCacheConfiguration(TypedDict, total=False): """compression settings.""" +class AfdSecretMtlsCertificateChain(TypedDict, total=False): + """Server-side certificate used for mTLS validation. + + :ivar secretSource: Resource reference to the Azure Key Vault secret. Expected to be in format + of + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}. + Required. + :vartype secretSource: "ResourceReference" + :ivar secretVersion: Version of the secret to be used. Required. + :vartype secretVersion: str + :ivar expirationDate: Soonest expiration date among certificates in customer's certificate + chain in ISO 8601 compliant format yyyy-MM-ddTHH:mm:ss.fffffffK in UTC. + :vartype expirationDate: str + :ivar type: The type of the secret resource. Required. MTLS_CERTIFICATE_CHAIN. + :vartype type: Literal[SecretType.MTLS_CERTIFICATE_CHAIN] + """ + + secretSource: Required["ResourceReference"] + """Resource reference to the Azure Key Vault secret. Expected to be in format of + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}. + Required.""" + secretVersion: Required[str] + """Version of the secret to be used. Required.""" + expirationDate: str + """Soonest expiration date among certificates in customer's certificate chain in ISO 8601 + compliant format yyyy-MM-ddTHH:mm:ss.fffffffK in UTC.""" + type: Required[Literal[SecretType.MTLS_CERTIFICATE_CHAIN]] + """The type of the secret resource. Required. MTLS_CERTIFICATE_CHAIN.""" + + class AFDStateProperties(TypedDict, total=False): """The tracking states for afd resources. - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] + :vartype deploymentStatus: Union[str, "DeploymentStatus"] """ provisioningState: Union[str, "AfdProvisioningState"] @@ -849,22 +952,66 @@ class AFDStateProperties(TypedDict, total=False): """Known values are: \"NotStarted\", \"InProgress\", \"Succeeded\", and \"Failed\".""" +class AfdUrlSigningAction(TypedDict, total=False): + """Defines the url signing action for the delivery rule. + + :ivar parameters: Defines the parameters for the action. Required. + :vartype parameters: "AfdUrlSigningActionParameters" + :ivar name: The name of the action for the delivery rule. Required. AFD_URL_SIGNING. + :vartype name: Literal[DeliveryRuleActionEnum.AFD_URL_SIGNING] + """ + + parameters: Required["AfdUrlSigningActionParameters"] + """Defines the parameters for the action. Required.""" + name: Required[Literal[DeliveryRuleActionEnum.AFD_URL_SIGNING]] + """The name of the action for the delivery rule. Required. AFD_URL_SIGNING.""" + + +class AfdUrlSigningActionParameters(TypedDict, total=False): + """Defines the parameters for the Url Signing action. + + :ivar typeName: Required. "DeliveryRuleAfdUrlSigningActionParameters" + :vartype typeName: Union[str, "TypeName"] + :ivar keyGroupReference: Resource reference to the Azure Key Vault secret. Expected to be in + format of + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}. + Required. + :vartype keyGroupReference: "ResourceReference" + :ivar algorithm: Algorithm to use for URL signing. "SHA256" + :vartype algorithm: Union[str, "Algorithm"] + :ivar parameterNameOverride: Defines which query string parameters in the url to be considered + for expires, key id etc. + :vartype parameterNameOverride: list["UrlSigningParamIdentifier"] + """ + + typeName: Required[Union[str, "TypeName"]] + """Required. \"DeliveryRuleAfdUrlSigningActionParameters\"""" + keyGroupReference: Required["ResourceReference"] + """Resource reference to the Azure Key Vault secret. Expected to be in format of + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/keyGroups/{keyGroupName}. + Required.""" + algorithm: Union[str, "Algorithm"] + """Algorithm to use for URL signing. \"SHA256\"""" + parameterNameOverride: list["UrlSigningParamIdentifier"] + """Defines which query string parameters in the url to be considered for expires, key id etc.""" + + class AzureFirstPartyManagedCertificateParameters(TypedDict, total=False): # pylint: disable=name-too-long """Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS. - :ivar secret_source: Resource reference to the Azure Key Vault certificate. Expected to be in + :ivar secretSource: Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{certificateName}. - :vartype secret_source: "ResourceReference" + :vartype secretSource: "ResourceReference" :ivar subject: Subject name in the certificate. :vartype subject: str - :ivar expiration_date: Certificate expiration date. - :vartype expiration_date: str - :ivar certificate_authority: Certificate issuing authority. - :vartype certificate_authority: str - :ivar subject_alternative_names: The list of SANs. - :vartype subject_alternative_names: list[str] + :ivar expirationDate: Certificate expiration date. + :vartype expirationDate: str + :ivar certificateAuthority: Certificate issuing authority. + :vartype certificateAuthority: str + :ivar subjectAlternativeNames: The list of SANs. + :vartype subjectAlternativeNames: list[str] :ivar thumbprint: Certificate thumbprint. :vartype thumbprint: str :ivar type: The type of the secret resource. Required. AZURE_FIRST_PARTY_MANAGED_CERTIFICATE. @@ -891,10 +1038,10 @@ class AzureFirstPartyManagedCertificateParameters(TypedDict, total=False): # py class BatchRuleProperties(TypedDict, total=False): """The JSON object that contains a rule with its name for batch mode operations. - :ivar rule_name: Name of the rule. Required. - :vartype rule_name: str - :ivar rule_set_name: The name of the rule set containing the rule. - :vartype rule_set_name: str + :ivar ruleName: Name of the rule. Required. + :vartype ruleName: str + :ivar ruleSetName: The name of the rule set containing the rule. + :vartype ruleSetName: str :ivar order: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it @@ -905,10 +1052,10 @@ class BatchRuleProperties(TypedDict, total=False): :ivar actions: A list of actions that are executed when all the conditions of a rule are satisfied. :vartype actions: list["DeliveryRuleAction"] - :ivar match_processing_behavior: If this rule is a match should the rules engine continue - running the remaining rules or stop. If not present, defaults to Continue. Known values are: - "Continue" and "Stop". - :vartype match_processing_behavior: Union[str, "MatchProcessingBehavior"] + :ivar matchProcessingBehavior: If this rule is a match should the rules engine continue running + the remaining rules or stop. If not present, defaults to Continue. Known values are: "Continue" + and "Stop". + :vartype matchProcessingBehavior: Union[str, "MatchProcessingBehavior"] """ ruleName: Required[str] @@ -933,25 +1080,25 @@ class CacheConfiguration(TypedDict, total=False): """Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. - :ivar query_string_caching_behavior: Defines how Frontdoor caches requests that include query + :ivar queryStringCachingBehavior: Defines how Frontdoor caches requests that include query strings. You can ignore any query strings when caching, ignore specific query strings, cache every request with a unique URL, or cache specific query strings. Known values are: "IgnoreQueryString", "UseQueryString", "IgnoreSpecifiedQueryStrings", and "IncludeSpecifiedQueryStrings". - :vartype query_string_caching_behavior: Union[str, "RuleQueryStringCachingBehavior"] - :ivar query_parameters: query parameters to include or exclude (comma separated). - :vartype query_parameters: str - :ivar is_compression_enabled: Indicates whether content compression is enabled. If compression - is enabled, content will be served as compressed if user requests for a compressed version. + :vartype queryStringCachingBehavior: Union[str, "RuleQueryStringCachingBehavior"] + :ivar queryParameters: query parameters to include or exclude (comma separated). + :vartype queryParameters: str + :ivar isCompressionEnabled: Indicates whether content compression is enabled. If compression is + enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. Known values are: "Enabled" and "Disabled". - :vartype is_compression_enabled: Union[str, "RuleIsCompressionEnabled"] - :ivar cache_behavior: Caching behavior for the requests. Known values are: "HonorOrigin", + :vartype isCompressionEnabled: Union[str, "RuleIsCompressionEnabled"] + :ivar cacheBehavior: Caching behavior for the requests. Known values are: "HonorOrigin", "OverrideAlways", and "OverrideIfOriginMissing". - :vartype cache_behavior: Union[str, "RuleCacheBehavior"] - :ivar cache_duration: The duration for which the content needs to be cached. Allowed format is + :vartype cacheBehavior: Union[str, "RuleCacheBehavior"] + :ivar cacheDuration: The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss. - :vartype cache_duration: str + :vartype cacheDuration: str """ queryStringCachingBehavior: Union[str, "RuleQueryStringCachingBehavior"] @@ -976,16 +1123,16 @@ class CacheConfiguration(TypedDict, total=False): class CacheExpirationActionParameters(TypedDict, total=False): """Defines the parameters for the cache expiration action. - :ivar cache_behavior: Caching behavior for the requests. Required. Known values are: + :ivar cacheBehavior: Caching behavior for the requests. Required. Known values are: "BypassCache", "Override", and "SetIfMissing". - :vartype cache_behavior: Union[str, "CacheBehavior"] - :ivar cache_type: The level at which the content needs to be cached. Required. "All" - :vartype cache_type: Union[str, "CacheType"] - :ivar cache_duration: The duration for which the content needs to be cached. Allowed format is + :vartype cacheBehavior: Union[str, "CacheBehavior"] + :ivar cacheType: The level at which the content needs to be cached. Required. "All" + :vartype cacheType: Union[str, "CacheType"] + :ivar cacheDuration: The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss. - :vartype cache_duration: str - :ivar type_name: Required. DELIVERY_RULE_CACHE_EXPIRATION_ACTION_PARAMETERS. - :vartype type_name: + :vartype cacheDuration: str + :ivar typeName: Required. DELIVERY_RULE_CACHE_EXPIRATION_ACTION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_CACHE_EXPIRATION_ACTION_PARAMETERS] """ @@ -1003,13 +1150,13 @@ class CacheExpirationActionParameters(TypedDict, total=False): class CacheKeyQueryStringActionParameters(TypedDict, total=False): """Defines the parameters for the cache-key query string action. - :ivar query_string_behavior: Caching behavior for the requests. Required. Known values are: + :ivar queryStringBehavior: Caching behavior for the requests. Required. Known values are: "Include", "IncludeAll", "Exclude", and "ExcludeAll". - :vartype query_string_behavior: Union[str, "QueryStringBehavior"] - :ivar query_parameters: query parameters to include or exclude (comma separated). - :vartype query_parameters: str - :ivar type_name: Required. DELIVERY_RULE_CACHE_KEY_QUERY_STRING_BEHAVIOR_ACTION_PARAMETERS. - :vartype type_name: + :vartype queryStringBehavior: Union[str, "QueryStringBehavior"] + :ivar queryParameters: query parameters to include or exclude (comma separated). + :vartype queryParameters: str + :ivar typeName: Required. DELIVERY_RULE_CACHE_KEY_QUERY_STRING_BEHAVIOR_ACTION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_CACHE_KEY_QUERY_STRING_BEHAVIOR_ACTION_PARAMETERS] """ @@ -1027,9 +1174,9 @@ class CacheKeyQueryStringActionParameters(TypedDict, total=False): class CanMigrateParameters(TypedDict, total=False): """Request body for CanMigrate operation. - :ivar classic_resource_reference: Resource reference of the classic cdn profile or classic + :ivar classicResourceReference: Resource reference of the classic cdn profile or classic frontdoor that need to be migrated. Required. - :vartype classic_resource_reference: "ResourceReference" + :vartype classicResourceReference: "ResourceReference" """ classicResourceReference: Required["ResourceReference"] @@ -1040,11 +1187,11 @@ class CanMigrateParameters(TypedDict, total=False): class CdnCertificateSourceParameters(TypedDict, total=False): """Defines the parameters for using CDN managed certificate for securing custom domain. - :ivar certificate_type: Type of certificate used. Required. Known values are: "Shared" and + :ivar certificateType: Type of certificate used. Required. Known values are: "Shared" and "Dedicated". - :vartype certificate_type: Union[str, "CertificateType"] - :ivar type_name: Required. CDN_CERTIFICATE_SOURCE_PARAMETERS. - :vartype type_name: Literal[CertificateSourceParametersType.CDN_CERTIFICATE_SOURCE_PARAMETERS] + :vartype certificateType: Union[str, "CertificateType"] + :ivar typeName: Required. CDN_CERTIFICATE_SOURCE_PARAMETERS. + :vartype typeName: Literal[CertificateSourceParametersType.CDN_CERTIFICATE_SOURCE_PARAMETERS] """ certificateType: Required[Union[str, "CertificateType"]] @@ -1067,17 +1214,17 @@ class CdnEndpoint(TypedDict, total=False): class CdnManagedHttpsParameters(TypedDict, total=False): """Defines the certificate source parameters using CDN managed certificate for enabling SSL. - :ivar protocol_type: Defines the TLS extension protocol that is used for secure delivery. + :ivar protocolType: Defines the TLS extension protocol that is used for secure delivery. Required. Known values are: "ServerNameIndication" and "IPBased". - :vartype protocol_type: Union[str, "ProtocolType"] - :ivar minimum_tls_version: TLS protocol version that will be used for Https. Known values are: + :vartype protocolType: Union[str, "ProtocolType"] + :ivar minimumTlsVersion: TLS protocol version that will be used for Https. Known values are: "None", "TLS10", and "TLS12". - :vartype minimum_tls_version: Union[str, "MinimumTlsVersion"] - :ivar certificate_source_parameters: Defines the certificate source parameters using CDN - managed certificate for enabling SSL. Required. - :vartype certificate_source_parameters: "CdnCertificateSourceParameters" - :ivar certificate_source: Defines the source of the SSL certificate. Required. CDN. - :vartype certificate_source: Literal[CertificateSource.CDN] + :vartype minimumTlsVersion: Union[str, "MinimumTlsVersion"] + :ivar certificateSourceParameters: Defines the certificate source parameters using CDN managed + certificate for enabling SSL. Required. + :vartype certificateSourceParameters: "CdnCertificateSourceParameters" + :ivar certificateSource: Defines the source of the SSL certificate. Required. CDN. + :vartype certificateSource: Literal[CertificateSource.CDN] """ protocolType: Required[Union[str, "ProtocolType"]] @@ -1098,9 +1245,9 @@ class CdnMigrationToAfdParameters(TypedDict, total=False): :ivar sku: Sku for the migration. Required. :vartype sku: "Sku" - :ivar migration_endpoint_mappings: A name map between classic CDN endpoints and AFD + :ivar migrationEndpointMappings: A name map between classic CDN endpoints and AFD Premium/Standard endpoints. - :vartype migration_endpoint_mappings: list["MigrationEndpointMapping"] + :vartype migrationEndpointMappings: list["MigrationEndpointMapping"] """ sku: Required["Sku"] @@ -1120,9 +1267,9 @@ class CdnWebApplicationFirewallPolicy(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -1159,26 +1306,26 @@ class CdnWebApplicationFirewallPolicyPatchParameters(TypedDict, total=False): # class CdnWebApplicationFirewallPolicyProperties(TypedDict, total=False): # pylint: disable=name-too-long """Defines CDN web application firewall policy properties. - :ivar policy_settings: Describes policySettings for policy. - :vartype policy_settings: "PolicySettings" - :ivar rate_limit_rules: Describes rate limit rules inside the policy. - :vartype rate_limit_rules: "RateLimitRuleList" - :ivar custom_rules: Describes custom rules inside the policy. - :vartype custom_rules: "CustomRuleList" - :ivar managed_rules: Describes managed rules inside the policy. - :vartype managed_rules: "ManagedRuleSetList" - :ivar endpoint_links: Describes Azure CDN endpoints associated with this Web Application + :ivar policySettings: Describes policySettings for policy. + :vartype policySettings: "PolicySettings" + :ivar rateLimitRules: Describes rate limit rules inside the policy. + :vartype rateLimitRules: "RateLimitRuleList" + :ivar customRules: Describes custom rules inside the policy. + :vartype customRules: "CustomRuleList" + :ivar managedRules: Describes managed rules inside the policy. + :vartype managedRules: "ManagedRuleSetList" + :ivar endpointLinks: Describes Azure CDN endpoints associated with this Web Application + Firewall policy. + :vartype endpointLinks: list["CdnEndpoint"] + :ivar extendedProperties: Key-Value pair representing additional properties for Web Application Firewall policy. - :vartype endpoint_links: list["CdnEndpoint"] - :ivar extended_properties: Key-Value pair representing additional properties for Web - Application Firewall policy. - :vartype extended_properties: dict[str, str] - :ivar provisioning_state: Provisioning state of the WebApplicationFirewallPolicy. Known values + :vartype extendedProperties: dict[str, str] + :ivar provisioningState: Provisioning state of the WebApplicationFirewallPolicy. Known values are: "Creating", "Succeeded", and "Failed". - :vartype provisioning_state: Union[str, "ProvisioningState"] - :ivar resource_state: Resource status of the policy. Known values are: "Creating", "Enabling", + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceState: Resource status of the policy. Known values are: "Creating", "Enabling", "Enabled", "Disabling", "Disabled", and "Deleting". - :vartype resource_state: Union[str, "PolicyResourceState"] + :vartype resourceState: Union[str, "PolicyResourceState"] """ policySettings: "PolicySettings" @@ -1209,11 +1356,10 @@ class CheckEndpointNameAvailabilityInput(TypedDict, total=False): :ivar type: The type of the resource whose name is to be validated. Required. Known values are: "Microsoft.Cdn/Profiles/Endpoints" and "Microsoft.Cdn/Profiles/AfdEndpoints". :vartype type: Union[str, "ResourceType"] - :ivar auto_generated_domain_name_label_scope: Indicates the endpoint name reuse scope. The - default value is TenantReuse. Known values are: "TenantReuse", "SubscriptionReuse", + :ivar autoGeneratedDomainNameLabelScope: Indicates the endpoint name reuse scope. The default + value is TenantReuse. Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". - :vartype auto_generated_domain_name_label_scope: Union[str, - "AutoGeneratedDomainNameLabelScope"] + :vartype autoGeneratedDomainNameLabelScope: Union[str, "AutoGeneratedDomainNameLabelScope"] """ name: Required[str] @@ -1229,8 +1375,8 @@ class CheckEndpointNameAvailabilityInput(TypedDict, total=False): class CheckHostNameAvailabilityInput(TypedDict, total=False): """Input of CheckHostNameAvailability API. - :ivar host_name: The host name to validate. Required. - :vartype host_name: str + :ivar hostName: The host name to validate. Required. + :vartype hostName: str """ hostName: Required[str] @@ -1254,6 +1400,87 @@ class CheckNameAvailabilityInput(TypedDict, total=False): \"Microsoft.Cdn/Profiles/Endpoints\" and \"Microsoft.Cdn/Profiles/AfdEndpoints\".""" +class ClientCertificateRequiredAndOriginValidatesAdvancedSettings( + TypedDict, total=False +): # pylint: disable=name-too-long + """Advanced settings for MtlsScenarioType enum value: ClientCertificateRequiredAndOriginValidates. + + :ivar scenario: Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES. + :vartype scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES] + """ + + scenario: Required[Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES]] + """Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_REQUIRED_AND_ORIGIN_VALIDATES.""" + + +class ClientCertificateRequiredAndValidatedAdvancedSettings(TypedDict, total=False): # pylint: disable=name-too-long + """Advanced settings for MtlsScenarioType enum value: ClientCertificateRequiredAndValidated. + + :ivar secrets: List of one or two of Resource References (ie. subs/rg/profile/secret) to + Secrets of type MtlsCertificateChain to use in mutual TLS handshake as the trusted issuer + certificate chain. Required. + :vartype secrets: list["ResourceReference"] + :ivar allowedFqdns: List of FQDNs that will be accepted for mutual TLS validation. + :vartype allowedFqdns: list[str] + :ivar certificateRevocationCheck: Set to Enabled by default. If set to Disabled, revocation + status of client certificate chain will be checked before establishing mutual TLS connection. + Known values are: "Enabled" and "Disabled". + :vartype certificateRevocationCheck: Union[str, "CertificateRevocationCheckEnabledState"] + :ivar scenario: Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED. + :vartype scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED] + """ + + secrets: Required[list["ResourceReference"]] + """List of one or two of Resource References (ie. subs/rg/profile/secret) to Secrets of type + MtlsCertificateChain to use in mutual TLS handshake as the trusted issuer certificate chain. + Required.""" + allowedFqdns: list[str] + """List of FQDNs that will be accepted for mutual TLS validation.""" + certificateRevocationCheck: Union[str, "CertificateRevocationCheckEnabledState"] + """Set to Enabled by default. If set to Disabled, revocation status of client certificate chain + will be checked before establishing mutual TLS connection. Known values are: \"Enabled\" and + \"Disabled\".""" + scenario: Required[Literal[MtlsScenarioType.CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED]] + """Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_REQUIRED_AND_VALIDATED.""" + + +class ClientCertificateValidatedIfPresentedAdvancedSettings(TypedDict, total=False): # pylint: disable=name-too-long + """Advanced settings for MtlsScenarioType enum value: ClientCertificateValidatedIfPresented. + + :ivar secrets: List of one or two of Resource References (ie. subs/rg/profile/secret) to + Secrets of type MtlsCertificateChain to use in mutual TLS handshake as the trusted issuer + certificate chain. Required. + :vartype secrets: list["ResourceReference"] + :ivar allowedFqdns: List of FQDNs that will be accepted for mutual TLS validation. + :vartype allowedFqdns: list[str] + :ivar certificateRevocationCheck: Set to Enabled by default. If set to Disabled, revocation + status of client certificate chain will be checked before establishing mutual TLS connection. + Known values are: "Enabled" and "Disabled". + :vartype certificateRevocationCheck: Union[str, "CertificateRevocationCheckEnabledState"] + :ivar scenario: Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED. + :vartype scenario: Literal[MtlsScenarioType.CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED] + """ + + secrets: Required[list["ResourceReference"]] + """List of one or two of Resource References (ie. subs/rg/profile/secret) to Secrets of type + MtlsCertificateChain to use in mutual TLS handshake as the trusted issuer certificate chain. + Required.""" + allowedFqdns: list[str] + """List of FQDNs that will be accepted for mutual TLS validation.""" + certificateRevocationCheck: Union[str, "CertificateRevocationCheckEnabledState"] + """Set to Enabled by default. If set to Disabled, revocation status of client certificate chain + will be checked before establishing mutual TLS connection. Known values are: \"Enabled\" and + \"Disabled\".""" + scenario: Required[Literal[MtlsScenarioType.CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED]] + """Supported scenarios for establishing mTLS connection. Required. + CLIENT_CERTIFICATE_VALIDATED_IF_PRESENTED.""" + + class ClientPortMatchConditionParameters(TypedDict, total=False): """Defines the parameters for ClientPort match conditions. @@ -1261,14 +1488,14 @@ class ClientPortMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "ClientPortOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_CLIENT_PORT_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_CLIENT_PORT_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_CLIENT_PORT_CONDITION_PARAMETERS] """ @@ -1286,17 +1513,30 @@ class ClientPortMatchConditionParameters(TypedDict, total=False): """Required. DELIVERY_RULE_CLIENT_PORT_CONDITION_PARAMETERS.""" +class CompleteMtlsPassthroughToOriginAdvancedSettings(TypedDict, total=False): # pylint: disable=name-too-long + """Advanced settings for MtlsScenarioType enum value: CompleteMtlsPassthroughToOrigin. + + :ivar scenario: Supported scenarios for establishing mTLS connection. Required. + COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN. + :vartype scenario: Literal[MtlsScenarioType.COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN] + """ + + scenario: Required[Literal[MtlsScenarioType.COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN]] + """Supported scenarios for establishing mTLS connection. Required. + COMPLETE_MTLS_PASSTHROUGH_TO_ORIGIN.""" + + class CompressionSettings(TypedDict, total=False): """settings for compression. - :ivar content_types_to_compress: List of content types on which compression applies. The value + :ivar contentTypesToCompress: List of content types on which compression applies. The value should be a valid MIME type. - :vartype content_types_to_compress: list[str] - :ivar is_compression_enabled: Indicates whether content compression is enabled on - AzureFrontDoor. Default value is false. If compression is enabled, content will be served as - compressed if user requests for a compressed version. Content won't be compressed on - AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB. - :vartype is_compression_enabled: bool + :vartype contentTypesToCompress: list[str] + :ivar isCompressionEnabled: Indicates whether content compression is enabled on AzureFrontDoor. + Default value is false. If compression is enabled, content will be served as compressed if user + requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested + content is smaller than 1 byte or larger than 1 MB. + :vartype isCompressionEnabled: bool """ contentTypesToCompress: list[str] @@ -1317,14 +1557,14 @@ class CookiesMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "CookiesOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_COOKIES_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_COOKIES_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_COOKIES_CONDITION_PARAMETERS] """ @@ -1358,8 +1598,8 @@ class CustomDomainParameters(TypedDict, total=False): class CustomDomainPropertiesParameters(TypedDict, total=False): """The JSON object that contains the properties of the custom domain to create. - :ivar host_name: The host name of the custom domain. Must be a domain name. Required. - :vartype host_name: str + :ivar hostName: The host name of the custom domain. Must be a domain name. Required. + :vartype hostName: str """ hostName: Required[str] @@ -1369,23 +1609,23 @@ class CustomDomainPropertiesParameters(TypedDict, total=False): class CustomerCertificateParameters(TypedDict, total=False): """Customer Certificate used for https. - :ivar secret_source: Resource reference to the Azure Key Vault certificate. Expected to be in + :ivar secretSource: Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​. Required. - :vartype secret_source: "ResourceReference" - :ivar secret_version: Version of the secret to be used. - :vartype secret_version: str - :ivar use_latest_version: Whether to use the latest version for the certificate. - :vartype use_latest_version: bool + :vartype secretSource: "ResourceReference" + :ivar secretVersion: Version of the secret to be used. + :vartype secretVersion: str + :ivar useLatestVersion: Whether to use the latest version for the certificate. + :vartype useLatestVersion: bool :ivar subject: Subject name in the certificate. :vartype subject: str - :ivar expiration_date: Certificate expiration date. - :vartype expiration_date: str - :ivar certificate_authority: Certificate issuing authority. - :vartype certificate_authority: str - :ivar subject_alternative_names: The list of SANs. - :vartype subject_alternative_names: list[str] + :ivar expirationDate: Certificate expiration date. + :vartype expirationDate: str + :ivar certificateAuthority: Certificate issuing authority. + :vartype certificateAuthority: str + :ivar subjectAlternativeNames: The list of SANs. + :vartype subjectAlternativeNames: list[str] :ivar thumbprint: Certificate thumbprint. :vartype thumbprint: str :ivar type: The type of the secret resource. Required. CUSTOMER_CERTIFICATE. @@ -1419,14 +1659,14 @@ class CustomRule(TypedDict, total=False): :ivar name: Defines the name of the custom rule. Required. :vartype name: str - :ivar enabled_state: Describes if the custom rule is in enabled or disabled state. Defaults to + :ivar enabledState: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Known values are: "Disabled" and "Enabled". - :vartype enabled_state: Union[str, "CustomRuleEnabledState"] + :vartype enabledState: Union[str, "CustomRuleEnabledState"] :ivar priority: Defines in what order this rule be evaluated in the overall list of custom rules. Required. :vartype priority: int - :ivar match_conditions: List of match conditions. Required. - :vartype match_conditions: list["MatchCondition"] + :ivar matchConditions: List of match conditions. Required. + :vartype matchConditions: list["MatchCondition"] :ivar action: Describes what action to be applied when rule matches. Required. Known values are: "Allow", "Block", "Log", and "Redirect". :vartype action: Union[str, "ActionType"] @@ -1475,12 +1715,12 @@ class DeepCreatedCustomDomain(TypedDict, total=False): class DeepCreatedCustomDomainProperties(TypedDict, total=False): """Properties of the custom domain created on the CDN endpoint. - :ivar host_name: The host name of the custom domain. Must be a domain name. Required. - :vartype host_name: str - :ivar validation_data: Special validation or data may be required when delivering CDN to some + :ivar hostName: The host name of the custom domain. Must be a domain name. Required. + :vartype hostName: str + :ivar validationData: Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China. - :vartype validation_data: str + :vartype validationData: str """ hostName: Required[str] @@ -1525,20 +1765,20 @@ class DeepCreatedOriginGroup(TypedDict, total=False): class DeepCreatedOriginGroupProperties(TypedDict, total=False): """Properties of the origin group created on the CDN endpoint. - :ivar health_probe_settings: Health probe settings to the origin that is used to determine the + :ivar healthProbeSettings: Health probe settings to the origin that is used to determine the health of the origin. - :vartype health_probe_settings: "HealthProbeParameters" + :vartype healthProbeSettings: "HealthProbeParameters" :ivar origins: The source of the content being delivered via CDN within given origin group. Required. :vartype origins: list["ResourceReference"] - :ivar traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: Time in minutes to shift - the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new - endpoint is added. Default is 10 mins. This property is currently not supported. - :vartype traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int - :ivar response_based_origin_error_detection_settings: The JSON object that contains the - properties to determine origin health using real requests/responses.This property is currently - not supported. - :vartype response_based_origin_error_detection_settings: + :ivar trafficRestorationTimeToHealedOrNewEndpointsInMinutes: Time in minutes to shift the + traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is + added. Default is 10 mins. This property is currently not supported. + :vartype trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int + :ivar responseBasedOriginErrorDetectionSettings: The JSON object that contains the properties + to determine origin health using real requests/responses.This property is currently not + supported. + :vartype responseBasedOriginErrorDetectionSettings: "ResponseBasedOriginErrorDetectionParameters" """ @@ -1558,18 +1798,18 @@ class DeepCreatedOriginGroupProperties(TypedDict, total=False): class DeepCreatedOriginProperties(TypedDict, total=False): """Properties of the origin created on the CDN endpoint. - :ivar host_name: The address of the origin. It can be a domain name, IPv4 address, or IPv6 + :ivar hostName: The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint. Required. - :vartype host_name: str - :ivar http_port: The value of the HTTP port. Must be between 1 and 65535. - :vartype http_port: int - :ivar https_port: The value of the HTTPS port. Must be between 1 and 65535. - :vartype https_port: int - :ivar origin_host_header: The host header value sent to the origin with each request. If you + :vartype hostName: str + :ivar httpPort: The value of the HTTP port. Must be between 1 and 65535. + :vartype httpPort: int + :ivar httpsPort: The value of the HTTPS port. Must be between 1 and 65535. + :vartype httpsPort: int + :ivar originHostHeader: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. - :vartype origin_host_header: str + :vartype originHostHeader: str :ivar priority: Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. @@ -1580,21 +1820,21 @@ class DeepCreatedOriginProperties(TypedDict, total=False): :ivar enabled: Origin is enabled for load balancing or not. By default, origin is always enabled. :vartype enabled: bool - :ivar private_link_alias: The Alias of the Private Link resource. Populating this optional - field indicates that this origin is 'Private'. - :vartype private_link_alias: str - :ivar private_link_resource_id: The Resource Id of the Private Link resource. Populating this + :ivar privateLinkAlias: The Alias of the Private Link resource. Populating this optional field + indicates that this origin is 'Private'. + :vartype privateLinkAlias: str + :ivar privateLinkResourceId: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'. - :vartype private_link_resource_id: str - :ivar private_link_location: The location of the Private Link resource. Required only if + :vartype privateLinkResourceId: str + :ivar privateLinkLocation: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated. - :vartype private_link_location: str - :ivar private_link_approval_message: A custom message to be included in the approval request to + :vartype privateLinkLocation: str + :ivar privateLinkApprovalMessage: A custom message to be included in the approval request to connect to the Private Link. - :vartype private_link_approval_message: str - :ivar private_endpoint_status: The approval status for the connection to the Private Link. - Known values are: "Pending", "Approved", "Rejected", "Disconnected", and "Timeout". - :vartype private_endpoint_status: Union[str, "PrivateEndpointStatus"] + :vartype privateLinkApprovalMessage: str + :ivar privateEndpointStatus: The approval status for the connection to the Private Link. Known + values are: "Pending", "Approved", "Rejected", "Disconnected", and "Timeout". + :vartype privateEndpointStatus: Union[str, "PrivateEndpointStatus"] """ hostName: Required[str] @@ -1721,6 +1961,28 @@ class DeliveryRuleCookiesCondition(TypedDict, total=False): """The name of the condition for the delivery rule. Required. COOKIES.""" +class DeliveryRuleEdgeActionParameters(TypedDict, total=False): + """Defines the parameters for the edge action. + + :ivar edgeActionReference: defines the edge action that will be invoked. Required. + :vartype edgeActionReference: "ResourceReference" + :ivar invocationPoint: Defines at which point in the request processing pipeline the edge + action will be invoked. Required. Known values are: "ClientRequest" and "OriginRequest". + :vartype invocationPoint: Union[str, "InvocationPoint"] + :ivar typeName: Required. DELIVERY_RULE_EDGE_ACTION_PARAMETERS. + :vartype typeName: + Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_EDGE_ACTION_PARAMETERS] + """ + + edgeActionReference: Required["ResourceReference"] + """defines the edge action that will be invoked. Required.""" + invocationPoint: Required[Union[str, "InvocationPoint"]] + """Defines at which point in the request processing pipeline the edge action will be invoked. + Required. Known values are: \"ClientRequest\" and \"OriginRequest\".""" + typeName: Required[Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_EDGE_ACTION_PARAMETERS]] + """Required. DELIVERY_RULE_EDGE_ACTION_PARAMETERS.""" + + class DeliveryRuleHostNameCondition(TypedDict, total=False): """Defines the HostName condition for the delivery rule. @@ -2026,10 +2288,10 @@ class DeliveryRuleUrlPathCondition(TypedDict, total=False): class DomainValidationProperties(TypedDict, total=False): """The JSON object that contains the properties to validate a domain. - :ivar validation_token: Challenge used for DNS TXT record or file based validation. - :vartype validation_token: str - :ivar expiration_date: The date time that the token expires. - :vartype expiration_date: str + :ivar validationToken: Challenge used for DNS TXT record or file based validation. + :vartype validationToken: str + :ivar expirationDate: The date time that the token expires. + :vartype expirationDate: str """ validationToken: str @@ -2038,6 +2300,21 @@ class DomainValidationProperties(TypedDict, total=False): """The date time that the token expires.""" +class EdgeAction(TypedDict, total=False): + """Defines the edge action for the delivery rule. + + :ivar parameters: Defines the parameters for the action. Required. + :vartype parameters: "DeliveryRuleEdgeActionParameters" + :ivar name: The name of the action for the delivery rule. Required. EDGE_ACTION. + :vartype name: Literal[DeliveryRuleActionEnum.EDGE_ACTION] + """ + + parameters: Required["DeliveryRuleEdgeActionParameters"] + """Defines the parameters for the action. Required.""" + name: Required[Literal[DeliveryRuleActionEnum.EDGE_ACTION]] + """The name of the action for the delivery rule. Required. EDGE_ACTION.""" + + class Endpoint(TrackedResource): """CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The CDN endpoint uses the URL format @@ -2051,9 +2328,9 @@ class Endpoint(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -2069,56 +2346,56 @@ class Endpoint(TrackedResource): class EndpointPropertiesUpdateParameters(TypedDict, total=False): """The JSON object containing endpoint update parameters. - :ivar origin_path: A directory path on the origin that CDN can use to retrieve content from, + :ivar originPath: A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. - :vartype origin_path: str - :ivar content_types_to_compress: List of content types on which compression applies. The value + :vartype originPath: str + :ivar contentTypesToCompress: List of content types on which compression applies. The value should be a valid MIME type. - :vartype content_types_to_compress: list[str] - :ivar origin_host_header: The host header value sent to the origin with each request. This + :vartype contentTypesToCompress: list[str] + :ivar originHostHeader: The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. - :vartype origin_host_header: str - :ivar is_compression_enabled: Indicates whether content compression is enabled on CDN. Default + :vartype originHostHeader: str + :ivar isCompressionEnabled: Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. - :vartype is_compression_enabled: bool - :ivar is_http_allowed: Indicates whether HTTP traffic is allowed on the endpoint. Default value + :vartype isCompressionEnabled: bool + :ivar isHttpAllowed: Indicates whether HTTP traffic is allowed on the endpoint. Default value + is true. At least one protocol (HTTP or HTTPS) must be allowed. + :vartype isHttpAllowed: bool + :ivar isHttpsAllowed: Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. - :vartype is_http_allowed: bool - :ivar is_https_allowed: Indicates whether HTTPS traffic is allowed on the endpoint. Default - value is true. At least one protocol (HTTP or HTTPS) must be allowed. - :vartype is_https_allowed: bool - :ivar query_string_caching_behavior: Defines how CDN caches requests that include query - strings. You can ignore any query strings when caching, bypass caching to prevent requests that - contain query strings from being cached, or cache every request with a unique URL. Known values - are: "IgnoreQueryString", "BypassCaching", "UseQueryString", and "NotSet". - :vartype query_string_caching_behavior: Union[str, "QueryStringCachingBehavior"] - :ivar optimization_type: Specifies what scenario the customer wants this CDN endpoint to + :vartype isHttpsAllowed: bool + :ivar queryStringCachingBehavior: Defines how CDN caches requests that include query strings. + You can ignore any query strings when caching, bypass caching to prevent requests that contain + query strings from being cached, or cache every request with a unique URL. Known values are: + "IgnoreQueryString", "BypassCaching", "UseQueryString", and "NotSet". + :vartype queryStringCachingBehavior: Union[str, "QueryStringCachingBehavior"] + :ivar optimizationType: Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. Known values are: "GeneralWebDelivery", "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", and "DynamicSiteAcceleration". - :vartype optimization_type: Union[str, "OptimizationType"] - :ivar probe_path: Path to a file hosted on the origin which helps accelerate delivery of the + :vartype optimizationType: Union[str, "OptimizationType"] + :ivar probePath: Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. - :vartype probe_path: str - :ivar geo_filters: List of rules defining the user's geo access within a CDN endpoint. Each geo + :vartype probePath: str + :ivar geoFilters: List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/. - :vartype geo_filters: list["GeoFilter"] - :ivar default_origin_group: A reference to the origin group. - :vartype default_origin_group: "ResourceReference" - :ivar url_signing_keys: List of keys used to validate the signed URL hashes. - :vartype url_signing_keys: list["UrlSigningKey"] - :ivar delivery_policy: A policy that specifies the delivery rules to be used for an endpoint. - :vartype delivery_policy: "EndpointPropertiesUpdateParametersDeliveryPolicy" - :ivar web_application_firewall_policy_link: Defines the Web Application Firewall policy for the + :vartype geoFilters: list["GeoFilter"] + :ivar defaultOriginGroup: A reference to the origin group. + :vartype defaultOriginGroup: "ResourceReference" + :ivar urlSigningKeys: List of keys used to validate the signed URL hashes. + :vartype urlSigningKeys: list["UrlSigningKey"] + :ivar deliveryPolicy: A policy that specifies the delivery rules to be used for an endpoint. + :vartype deliveryPolicy: "EndpointPropertiesUpdateParametersDeliveryPolicy" + :ivar webApplicationFirewallPolicyLink: Defines the Web Application Firewall policy for the endpoint (if applicable). - :vartype web_application_firewall_policy_link: + :vartype webApplicationFirewallPolicyLink: "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" """ @@ -2174,73 +2451,73 @@ class EndpointPropertiesUpdateParameters(TypedDict, total=False): class EndpointProperties(EndpointPropertiesUpdateParameters): """The JSON object that contains the properties required to create an endpoint. - :ivar origin_path: A directory path on the origin that CDN can use to retrieve content from, + :ivar originPath: A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. - :vartype origin_path: str - :ivar content_types_to_compress: List of content types on which compression applies. The value + :vartype originPath: str + :ivar contentTypesToCompress: List of content types on which compression applies. The value should be a valid MIME type. - :vartype content_types_to_compress: list[str] - :ivar origin_host_header: The host header value sent to the origin with each request. This + :vartype contentTypesToCompress: list[str] + :ivar originHostHeader: The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. - :vartype origin_host_header: str - :ivar is_compression_enabled: Indicates whether content compression is enabled on CDN. Default + :vartype originHostHeader: str + :ivar isCompressionEnabled: Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. - :vartype is_compression_enabled: bool - :ivar is_http_allowed: Indicates whether HTTP traffic is allowed on the endpoint. Default value + :vartype isCompressionEnabled: bool + :ivar isHttpAllowed: Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. - :vartype is_http_allowed: bool - :ivar is_https_allowed: Indicates whether HTTPS traffic is allowed on the endpoint. Default - value is true. At least one protocol (HTTP or HTTPS) must be allowed. - :vartype is_https_allowed: bool - :ivar query_string_caching_behavior: Defines how CDN caches requests that include query - strings. You can ignore any query strings when caching, bypass caching to prevent requests that - contain query strings from being cached, or cache every request with a unique URL. Known values - are: "IgnoreQueryString", "BypassCaching", "UseQueryString", and "NotSet". - :vartype query_string_caching_behavior: Union[str, "QueryStringCachingBehavior"] - :ivar optimization_type: Specifies what scenario the customer wants this CDN endpoint to + :vartype isHttpAllowed: bool + :ivar isHttpsAllowed: Indicates whether HTTPS traffic is allowed on the endpoint. Default value + is true. At least one protocol (HTTP or HTTPS) must be allowed. + :vartype isHttpsAllowed: bool + :ivar queryStringCachingBehavior: Defines how CDN caches requests that include query strings. + You can ignore any query strings when caching, bypass caching to prevent requests that contain + query strings from being cached, or cache every request with a unique URL. Known values are: + "IgnoreQueryString", "BypassCaching", "UseQueryString", and "NotSet". + :vartype queryStringCachingBehavior: Union[str, "QueryStringCachingBehavior"] + :ivar optimizationType: Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. Known values are: "GeneralWebDelivery", "GeneralMediaStreaming", "VideoOnDemandMediaStreaming", "LargeFileDownload", and "DynamicSiteAcceleration". - :vartype optimization_type: Union[str, "OptimizationType"] - :ivar probe_path: Path to a file hosted on the origin which helps accelerate delivery of the + :vartype optimizationType: Union[str, "OptimizationType"] + :ivar probePath: Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin. - :vartype probe_path: str - :ivar geo_filters: List of rules defining the user's geo access within a CDN endpoint. Each geo + :vartype probePath: str + :ivar geoFilters: List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/. - :vartype geo_filters: list["GeoFilter"] - :ivar default_origin_group: A reference to the origin group. - :vartype default_origin_group: "ResourceReference" - :ivar url_signing_keys: List of keys used to validate the signed URL hashes. - :vartype url_signing_keys: list["UrlSigningKey"] - :ivar delivery_policy: A policy that specifies the delivery rules to be used for an endpoint. - :vartype delivery_policy: "EndpointPropertiesUpdateParametersDeliveryPolicy" - :ivar web_application_firewall_policy_link: Defines the Web Application Firewall policy for the + :vartype geoFilters: list["GeoFilter"] + :ivar defaultOriginGroup: A reference to the origin group. + :vartype defaultOriginGroup: "ResourceReference" + :ivar urlSigningKeys: List of keys used to validate the signed URL hashes. + :vartype urlSigningKeys: list["UrlSigningKey"] + :ivar deliveryPolicy: A policy that specifies the delivery rules to be used for an endpoint. + :vartype deliveryPolicy: "EndpointPropertiesUpdateParametersDeliveryPolicy" + :ivar webApplicationFirewallPolicyLink: Defines the Web Application Firewall policy for the endpoint (if applicable). - :vartype web_application_firewall_policy_link: + :vartype webApplicationFirewallPolicyLink: "EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink" - :ivar host_name: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. + :ivar hostName: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net. - :vartype host_name: str + :vartype hostName: str :ivar origins: The source of the content being delivered via CDN. Required. :vartype origins: list["DeepCreatedOrigin"] - :ivar origin_groups: The origin groups comprising of origins that are used for load balancing + :ivar originGroups: The origin groups comprising of origins that are used for load balancing the traffic based on availability. - :vartype origin_groups: list["DeepCreatedOriginGroup"] - :ivar custom_domains: The custom domains under the endpoint. - :vartype custom_domains: list["DeepCreatedCustomDomain"] - :ivar resource_state: Resource status of the endpoint. Known values are: "Creating", - "Deleting", "Running", "Starting", "Stopped", and "Stopping". - :vartype resource_state: Union[str, "EndpointResourceState"] - :ivar provisioning_state: Provisioning status of the endpoint. Known values are: "Succeeded", + :vartype originGroups: list["DeepCreatedOriginGroup"] + :ivar customDomains: The custom domains under the endpoint. + :vartype customDomains: list["DeepCreatedCustomDomain"] + :ivar resourceState: Resource status of the endpoint. Known values are: "Creating", "Deleting", + "Running", "Starting", "Stopped", and "Stopping". + :vartype resourceState: Union[str, "EndpointResourceState"] + :ivar provisioningState: Provisioning status of the endpoint. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "EndpointProvisioningState"] + :vartype provisioningState: Union[str, "EndpointProvisioningState"] """ hostName: str @@ -2307,15 +2584,15 @@ class EndpointUpdateParameters(TypedDict, total=False): class GeoFilter(TypedDict, total=False): """Rules defining user's geo access within a CDN endpoint. - :ivar relative_path: Relative path applicable to geo filter. (e.g. '/mypictures', + :ivar relativePath: Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.). Required. - :vartype relative_path: str + :vartype relativePath: str :ivar action: Action of the geo filter, i.e. allow or block access. Required. Known values are: "Block" and "Allow". :vartype action: Union[str, "GeoFilterActions"] - :ivar country_codes: Two letter country or region codes defining user country or region access + :ivar countryCodes: Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US. Required. - :vartype country_codes: list[str] + :vartype countryCodes: list[str] """ relativePath: Required[str] @@ -2332,15 +2609,15 @@ class GeoFilter(TypedDict, total=False): class HeaderActionParameters(TypedDict, total=False): """Defines the parameters for the request header action. - :ivar header_action: Action to perform. Required. Known values are: "Append", "Overwrite", and + :ivar headerAction: Action to perform. Required. Known values are: "Append", "Overwrite", and "Delete". - :vartype header_action: Union[str, "HeaderAction"] - :ivar header_name: Name of the header to modify. Required. - :vartype header_name: str + :vartype headerAction: Union[str, "HeaderAction"] + :ivar headerName: Name of the header to modify. Required. + :vartype headerName: str :ivar value: Value for the specified action. :vartype value: str - :ivar type_name: Required. DELIVERY_RULE_HEADER_ACTION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_HEADER_ACTION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_HEADER_ACTION_PARAMETERS] """ @@ -2357,17 +2634,17 @@ class HeaderActionParameters(TypedDict, total=False): class HealthProbeParameters(TypedDict, total=False): """The JSON object that contains the properties to send health probes to origin. - :ivar probe_path: The path relative to the origin that is used to determine the health of the + :ivar probePath: The path relative to the origin that is used to determine the health of the origin. - :vartype probe_path: str - :ivar probe_request_type: The type of health probe request that is made. Known values are: + :vartype probePath: str + :ivar probeRequestType: The type of health probe request that is made. Known values are: "NotSet", "GET", and "HEAD". - :vartype probe_request_type: Union[str, "HealthProbeRequestType"] - :ivar probe_protocol: Protocol to use for health probe. Known values are: "NotSet", "Http", and + :vartype probeRequestType: Union[str, "HealthProbeRequestType"] + :ivar probeProtocol: Protocol to use for health probe. Known values are: "NotSet", "Http", and "Https". - :vartype probe_protocol: Union[str, "ProbeProtocol"] - :ivar probe_interval_in_seconds: The number of seconds between health probes.Default is 240sec. - :vartype probe_interval_in_seconds: int + :vartype probeProtocol: Union[str, "ProbeProtocol"] + :ivar probeIntervalInSeconds: The number of seconds between health probes.Default is 240sec. + :vartype probeIntervalInSeconds: int """ probePath: str @@ -2388,14 +2665,14 @@ class HostNameMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "HostNameOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_HOST_NAME_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_HOST_NAME_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_HOST_NAME_CONDITION_PARAMETERS] """ @@ -2433,14 +2710,14 @@ class HttpVersionMatchConditionParameters(TypedDict, total=False): :ivar operator: Describes operator to be matched. Required. "Equal" :vartype operator: Union[str, "HttpVersionOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_HTTP_VERSION_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_HTTP_VERSION_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_HTTP_VERSION_CONDITION_PARAMETERS] """ @@ -2461,14 +2738,14 @@ class IsDeviceMatchConditionParameters(TypedDict, total=False): :ivar operator: Describes operator to be matched. Required. "Equal" :vartype operator: Union[str, "IsDeviceOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[Union[str, "IsDeviceMatchConditionParametersMatchValuesItem"]] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[Union[str, "IsDeviceMatchConditionParametersMatchValuesItem"]] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_IS_DEVICE_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_IS_DEVICE_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_IS_DEVICE_CONDITION_PARAMETERS] """ @@ -2487,27 +2764,27 @@ class IsDeviceMatchConditionParameters(TypedDict, total=False): class KeyVaultCertificateSourceParameters(TypedDict, total=False): """Describes the parameters for using a user's KeyVault certificate for securing custom domain. - :ivar subscription_id: Subscription Id of the user's Key Vault containing the SSL certificate. + :ivar subscriptionId: Subscription Id of the user's Key Vault containing the SSL certificate. + Required. + :vartype subscriptionId: str + :ivar resourceGroupName: Resource group of the user's Key Vault containing the SSL certificate. Required. - :vartype subscription_id: str - :ivar resource_group_name: Resource group of the user's Key Vault containing the SSL - certificate. Required. - :vartype resource_group_name: str - :ivar vault_name: The name of the user's Key Vault containing the SSL certificate. Required. - :vartype vault_name: str - :ivar secret_name: The name of Key Vault Secret (representing the full certificate PFX) in Key + :vartype resourceGroupName: str + :ivar vaultName: The name of the user's Key Vault containing the SSL certificate. Required. + :vartype vaultName: str + :ivar secretName: The name of Key Vault Secret (representing the full certificate PFX) in Key Vault. Required. - :vartype secret_name: str - :ivar secret_version: The version(GUID) of Key Vault Secret in Key Vault. - :vartype secret_version: str - :ivar update_rule: Describes the action that shall be taken when the certificate is updated in + :vartype secretName: str + :ivar secretVersion: The version(GUID) of Key Vault Secret in Key Vault. + :vartype secretVersion: str + :ivar updateRule: Describes the action that shall be taken when the certificate is updated in Key Vault. Required. "NoAction" - :vartype update_rule: Union[str, "UpdateRule"] - :ivar delete_rule: Describes the action that shall be taken when the certificate is removed - from Key Vault. Required. "NoAction" - :vartype delete_rule: Union[str, "DeleteRule"] - :ivar type_name: Required. KEY_VAULT_CERTIFICATE_SOURCE_PARAMETERS. - :vartype type_name: + :vartype updateRule: Union[str, "UpdateRule"] + :ivar deleteRule: Describes the action that shall be taken when the certificate is removed from + Key Vault. Required. "NoAction" + :vartype deleteRule: Union[str, "DeleteRule"] + :ivar typeName: Required. KEY_VAULT_CERTIFICATE_SOURCE_PARAMETERS. + :vartype typeName: Literal[CertificateSourceParametersType.KEY_VAULT_CERTIFICATE_SOURCE_PARAMETERS] """ @@ -2534,19 +2811,19 @@ class KeyVaultCertificateSourceParameters(TypedDict, total=False): class KeyVaultSigningKeyParameters(TypedDict, total=False): """Describes the parameters for using a user's KeyVault for URL Signing Key. - :ivar type_name: Required. "KeyVaultSigningKeyParameters" - :vartype type_name: Union[str, "KeyVaultSigningKeyParametersTypeName"] - :ivar subscription_id: Subscription Id of the user's Key Vault containing the secret. Required. - :vartype subscription_id: str - :ivar resource_group_name: Resource group of the user's Key Vault containing the secret. + :ivar typeName: Required. "KeyVaultSigningKeyParameters" + :vartype typeName: Union[str, "KeyVaultSigningKeyParametersTypeName"] + :ivar subscriptionId: Subscription Id of the user's Key Vault containing the secret. Required. + :vartype subscriptionId: str + :ivar resourceGroupName: Resource group of the user's Key Vault containing the secret. Required. - :vartype resource_group_name: str - :ivar vault_name: The name of the user's Key Vault containing the secret. Required. - :vartype vault_name: str - :ivar secret_name: The name of secret in Key Vault. Required. - :vartype secret_name: str - :ivar secret_version: The version(GUID) of secret in Key Vault. Required. - :vartype secret_version: str + :vartype resourceGroupName: str + :ivar vaultName: The name of the user's Key Vault containing the secret. Required. + :vartype vaultName: str + :ivar secretName: The name of secret in Key Vault. Required. + :vartype secretName: str + :ivar secretVersion: The version(GUID) of secret in Key Vault. Required. + :vartype secretVersion: str """ typeName: Required[Union[str, "KeyVaultSigningKeyParametersTypeName"]] @@ -2566,14 +2843,14 @@ class KeyVaultSigningKeyParameters(TypedDict, total=False): class LoadBalancingSettingsParameters(TypedDict, total=False): """Round-Robin load balancing settings for a backend pool. - :ivar sample_size: The number of samples to consider for load balancing decisions. - :vartype sample_size: int - :ivar successful_samples_required: The number of samples within the sample period that must + :ivar sampleSize: The number of samples to consider for load balancing decisions. + :vartype sampleSize: int + :ivar successfulSamplesRequired: The number of samples within the sample period that must succeed. - :vartype successful_samples_required: int - :ivar additional_latency_in_milliseconds: The additional latency in milliseconds for probes to + :vartype successfulSamplesRequired: int + :ivar additionalLatencyInMilliseconds: The additional latency in milliseconds for probes to fall into the lowest latency bucket. - :vartype additional_latency_in_milliseconds: int + :vartype additionalLatencyInMilliseconds: int """ sampleSize: int @@ -2587,9 +2864,9 @@ class LoadBalancingSettingsParameters(TypedDict, total=False): class LoadParameters(TypedDict, total=False): """Parameters required for content load. - :ivar content_paths: The path to the content to be loaded. Path should be a relative file URL - of the origin. Required. - :vartype content_paths: list[str] + :ivar contentPaths: The path to the content to be loaded. Path should be a relative file URL of + the origin. Required. + :vartype contentPaths: list[str] """ contentPaths: Required[list[str]] @@ -2602,8 +2879,8 @@ class ManagedCertificateParameters(TypedDict, total=False): :ivar subject: Subject name in the certificate. :vartype subject: str - :ivar expiration_date: Certificate expiration date. - :vartype expiration_date: str + :ivar expirationDate: Certificate expiration date. + :vartype expirationDate: str :ivar type: The type of the secret resource. Required. MANAGED_CERTIFICATE. :vartype type: Literal[SecretType.MANAGED_CERTIFICATE] """ @@ -2619,9 +2896,9 @@ class ManagedCertificateParameters(TypedDict, total=False): class ManagedRuleGroupOverride(TypedDict, total=False): """Defines a managed rule group override setting. - :ivar rule_group_name: Describes the managed rule group within the rule set to override. + :ivar ruleGroupName: Describes the managed rule group within the rule set to override. Required. - :vartype rule_group_name: str + :vartype ruleGroupName: str :ivar rules: List of rules that will be enabled. If none specified, all rules in the group will be disabled. :vartype rules: list["ManagedRuleOverride"] @@ -2636,11 +2913,11 @@ class ManagedRuleGroupOverride(TypedDict, total=False): class ManagedRuleOverride(TypedDict, total=False): """Defines a managed rule group override setting. - :ivar rule_id: Identifier for the managed rule. Required. - :vartype rule_id: str - :ivar enabled_state: Describes if the managed rule is in enabled or disabled state. Defaults to + :ivar ruleId: Identifier for the managed rule. Required. + :vartype ruleId: str + :ivar enabledState: Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified. Known values are: "Disabled" and "Enabled". - :vartype enabled_state: Union[str, "ManagedRuleEnabledState"] + :vartype enabledState: Union[str, "ManagedRuleEnabledState"] :ivar action: Describes the override action to be applied when rule matches. Known values are: "Allow", "Block", "Log", and "Redirect". :vartype action: Union[str, "ActionType"] @@ -2659,15 +2936,15 @@ class ManagedRuleOverride(TypedDict, total=False): class ManagedRuleSet(TypedDict, total=False): """Defines a managed rule set. - :ivar rule_set_type: Defines the rule set type to use. Required. - :vartype rule_set_type: str - :ivar rule_set_version: Defines the version of the rule set to use. Required. - :vartype rule_set_version: str - :ivar anomaly_score: Verizon only : If the rule set supports anomaly detection mode, this + :ivar ruleSetType: Defines the rule set type to use. Required. + :vartype ruleSetType: str + :ivar ruleSetVersion: Defines the version of the rule set to use. Required. + :vartype ruleSetVersion: str + :ivar anomalyScore: Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests. - :vartype anomaly_score: int - :ivar rule_group_overrides: Defines the rule overrides to apply to the rule set. - :vartype rule_group_overrides: list["ManagedRuleGroupOverride"] + :vartype anomalyScore: int + :ivar ruleGroupOverrides: Defines the rule overrides to apply to the rule set. + :vartype ruleGroupOverrides: list["ManagedRuleGroupOverride"] """ ruleSetType: Required[str] @@ -2684,8 +2961,8 @@ class ManagedRuleSet(TypedDict, total=False): class ManagedRuleSetList(TypedDict, total=False): """Defines the list of managed rule sets for the policy. - :ivar managed_rule_sets: List of rule sets. - :vartype managed_rule_sets: list["ManagedRuleSet"] + :ivar managedRuleSets: List of rule sets. + :vartype managedRuleSets: list["ManagedRuleSet"] """ managedRuleSets: list["ManagedRuleSet"] @@ -2695,17 +2972,17 @@ class ManagedRuleSetList(TypedDict, total=False): class ManagedServiceIdentity(TypedDict, total=False): """Managed service identity (system assigned and/or user assigned identities). - :ivar principal_id: The service principal ID of the system assigned identity. This property - will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be + :ivar principalId: The service principal ID of the system assigned identity. This property will + only be provided for a system assigned identity. + :vartype principalId: str + :ivar tenantId: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - :vartype tenant_id: str + :vartype tenantId: str :ivar type: The type of managed identity assigned to this resource. Required. Known values are: "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". :vartype type: Union[str, "ManagedServiceIdentityType"] - :ivar user_assigned_identities: The identities assigned to this resource by the user. - :vartype user_assigned_identities: dict[str, "UserAssignedIdentity"] + :ivar userAssignedIdentities: The identities assigned to this resource by the user. + :vartype userAssignedIdentities: dict[str, "UserAssignedIdentity"] """ principalId: str @@ -2724,10 +3001,10 @@ class ManagedServiceIdentity(TypedDict, total=False): class MatchCondition(TypedDict, total=False): """Define match conditions. - :ivar match_variable: Match variable to compare against. Required. Known values are: + :ivar matchVariable: Match variable to compare against. Required. Known values are: "RemoteAddr", "SocketAddr", "RequestMethod", "RequestHeader", "RequestUri", "QueryString", "RequestBody", "Cookies", and "PostArgs". - :vartype match_variable: Union[str, "WafMatchVariable"] + :vartype matchVariable: Union[str, "WafMatchVariable"] :ivar selector: Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs. :vartype selector: str @@ -2735,10 +3012,10 @@ class MatchCondition(TypedDict, total=False): "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", and "RegEx". :vartype operator: Union[str, "Operator"] - :ivar negate_condition: Describes if the result of this condition should be negated. - :vartype negate_condition: bool - :ivar match_value: List of possible match values. Required. - :vartype match_value: list[str] + :ivar negateCondition: Describes if the result of this condition should be negated. + :vartype negateCondition: bool + :ivar matchValue: List of possible match values. Required. + :vartype matchValue: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "TransformType"]] """ @@ -2764,11 +3041,11 @@ class MatchCondition(TypedDict, total=False): class MigrationEndpointMapping(TypedDict, total=False): """CDN Endpoint Mapping. - :ivar migrated_from: Name of the classic CDN profile endpoint. - :vartype migrated_from: str - :ivar migrated_to: Name of the newly created migrated Azure Frontdoor Standard/Premium profile + :ivar migratedFrom: Name of the classic CDN profile endpoint. + :vartype migratedFrom: str + :ivar migratedTo: Name of the newly created migrated Azure Frontdoor Standard/Premium profile endpoint. This name will replace the name of the classic CDN endpoint resource. - :vartype migrated_to: str + :vartype migratedTo: str """ migratedFrom: str @@ -2783,13 +3060,13 @@ class MigrationParameters(TypedDict, total=False): :ivar sku: Sku for the migration. Required. :vartype sku: "Sku" - :ivar classic_resource_reference: Resource reference of the classic cdn profile or classic + :ivar classicResourceReference: Resource reference of the classic cdn profile or classic frontdoor that need to be migrated. Required. - :vartype classic_resource_reference: "ResourceReference" - :ivar profile_name: Name of the new profile that need to be created. Required. - :vartype profile_name: str - :ivar migration_web_application_firewall_mappings: Waf mapping for the migrated profile. - :vartype migration_web_application_firewall_mappings: + :vartype classicResourceReference: "ResourceReference" + :ivar profileName: Name of the new profile that need to be created. Required. + :vartype profileName: str + :ivar migrationWebApplicationFirewallMappings: Waf mapping for the migrated profile. + :vartype migrationWebApplicationFirewallMappings: list["MigrationWebApplicationFirewallMapping"] """ @@ -2807,10 +3084,10 @@ class MigrationParameters(TypedDict, total=False): class MigrationWebApplicationFirewallMapping(TypedDict, total=False): """Web Application Firewall Mapping. - :ivar migrated_from: Migration From Waf policy. - :vartype migrated_from: "ResourceReference" - :ivar migrated_to: Migration to Waf policy. - :vartype migrated_to: "ResourceReference" + :ivar migratedFrom: Migration From Waf policy. + :vartype migratedFrom: "ResourceReference" + :ivar migratedTo: Migration to Waf policy. + :vartype migratedTo: "ResourceReference" """ migratedFrom: "ResourceReference" @@ -2832,9 +3109,9 @@ class Origin(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The JSON object that contains the properties of the origin. :vartype properties: "OriginProperties" """ @@ -2849,13 +3126,18 @@ class OriginAuthenticationProperties(TypedDict, total=False): :ivar type: The type of the authentication for the origin. Known values are: "SystemAssignedIdentity" and "UserAssignedIdentity". :vartype type: Union[str, "OriginAuthenticationType"] - :ivar user_assigned_identity: The user assigned managed identity to use for the origin + :ivar userAssignedIdentity: The user assigned managed identity to use for the origin authentication if type is UserAssignedIdentity. - :vartype user_assigned_identity: "ResourceReference" + :vartype userAssignedIdentity: "ResourceReference" :ivar scope: The scope used when requesting token from Microsoft Entra. For example, for Azure Blob Storage, scope could be "`https://storage.azure.com/.default `_". :vartype scope: str + :ivar tokenDestinationHeader: The HTTP request header where the origin authentication token + will be placed when forwarding the request to the origin. If not specified, the service will + use the ``Authorization`` header for backward compatibility. Known values are: "Authorization" + and "X-Azure-Authorization". + :vartype tokenDestinationHeader: Union[str, "OriginAuthenticationTokenDestinationHeader"] """ type: Union[str, "OriginAuthenticationType"] @@ -2867,6 +3149,10 @@ class OriginAuthenticationProperties(TypedDict, total=False): scope: str """The scope used when requesting token from Microsoft Entra. For example, for Azure Blob Storage, scope could be \"`https://storage.azure.com/.default `_\".""" + tokenDestinationHeader: Union[str, "OriginAuthenticationTokenDestinationHeader"] + """The HTTP request header where the origin authentication token will be placed when forwarding + the request to the origin. If not specified, the service will use the ``Authorization`` header + for backward compatibility. Known values are: \"Authorization\" and \"X-Azure-Authorization\".""" class OriginGroup(ProxyResource): @@ -2881,9 +3167,9 @@ class OriginGroup(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The JSON object that contains the properties of the origin group. :vartype properties: "OriginGroupProperties" """ @@ -2895,12 +3181,11 @@ class OriginGroup(ProxyResource): class OriginGroupOverride(TypedDict, total=False): """Defines the parameters for the origin group override configuration. - :ivar origin_group: defines the OriginGroup that would override the DefaultOriginGroup on - route. - :vartype origin_group: "ResourceReference" - :ivar forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. + :ivar originGroup: defines the OriginGroup that would override the DefaultOriginGroup on route. + :vartype originGroup: "ResourceReference" + :ivar forwardingProtocol: Protocol this rule will use when forwarding traffic to backends. Known values are: "HttpOnly", "HttpsOnly", and "MatchRequest". - :vartype forwarding_protocol: Union[str, "ForwardingProtocol"] + :vartype forwardingProtocol: Union[str, "ForwardingProtocol"] """ originGroup: "ResourceReference" @@ -2928,11 +3213,11 @@ class OriginGroupOverrideAction(TypedDict, total=False): class OriginGroupOverrideActionParameters(TypedDict, total=False): """Defines the parameters for the origin group override action. - :ivar origin_group: defines the OriginGroup that would override the DefaultOriginGroup. + :ivar originGroup: defines the OriginGroup that would override the DefaultOriginGroup. Required. - :vartype origin_group: "ResourceReference" - :ivar type_name: Required. DELIVERY_RULE_ORIGIN_GROUP_OVERRIDE_ACTION_PARAMETERS. - :vartype type_name: + :vartype originGroup: "ResourceReference" + :ivar typeName: Required. DELIVERY_RULE_ORIGIN_GROUP_OVERRIDE_ACTION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_ORIGIN_GROUP_OVERRIDE_ACTION_PARAMETERS] """ @@ -2945,19 +3230,19 @@ class OriginGroupOverrideActionParameters(TypedDict, total=False): class OriginGroupUpdatePropertiesParameters(TypedDict, total=False): """The JSON object that contains the properties of the origin group. - :ivar health_probe_settings: Health probe settings to the origin that is used to determine the + :ivar healthProbeSettings: Health probe settings to the origin that is used to determine the health of the origin. - :vartype health_probe_settings: "HealthProbeParameters" + :vartype healthProbeSettings: "HealthProbeParameters" :ivar origins: The source of the content being delivered via CDN within given origin group. :vartype origins: list["ResourceReference"] - :ivar traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: Time in minutes to shift - the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new - endpoint is added. Default is 10 mins. This property is currently not supported. - :vartype traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int - :ivar response_based_origin_error_detection_settings: The JSON object that contains the - properties to determine origin health using real requests/responses. This property is currently - not supported. - :vartype response_based_origin_error_detection_settings: + :ivar trafficRestorationTimeToHealedOrNewEndpointsInMinutes: Time in minutes to shift the + traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is + added. Default is 10 mins. This property is currently not supported. + :vartype trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int + :ivar responseBasedOriginErrorDetectionSettings: The JSON object that contains the properties + to determine origin health using real requests/responses. This property is currently not + supported. + :vartype responseBasedOriginErrorDetectionSettings: "ResponseBasedOriginErrorDetectionParameters" """ @@ -2977,26 +3262,26 @@ class OriginGroupUpdatePropertiesParameters(TypedDict, total=False): class OriginGroupProperties(OriginGroupUpdatePropertiesParameters): """The JSON object that contains the properties of the origin group. - :ivar health_probe_settings: Health probe settings to the origin that is used to determine the + :ivar healthProbeSettings: Health probe settings to the origin that is used to determine the health of the origin. - :vartype health_probe_settings: "HealthProbeParameters" + :vartype healthProbeSettings: "HealthProbeParameters" :ivar origins: The source of the content being delivered via CDN within given origin group. :vartype origins: list["ResourceReference"] - :ivar traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: Time in minutes to shift - the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new - endpoint is added. Default is 10 mins. This property is currently not supported. - :vartype traffic_restoration_time_to_healed_or_new_endpoints_in_minutes: int - :ivar response_based_origin_error_detection_settings: The JSON object that contains the - properties to determine origin health using real requests/responses. This property is currently - not supported. - :vartype response_based_origin_error_detection_settings: + :ivar trafficRestorationTimeToHealedOrNewEndpointsInMinutes: Time in minutes to shift the + traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is + added. Default is 10 mins. This property is currently not supported. + :vartype trafficRestorationTimeToHealedOrNewEndpointsInMinutes: int + :ivar responseBasedOriginErrorDetectionSettings: The JSON object that contains the properties + to determine origin health using real requests/responses. This property is currently not + supported. + :vartype responseBasedOriginErrorDetectionSettings: "ResponseBasedOriginErrorDetectionParameters" - :ivar resource_state: Resource status of the origin group. Known values are: "Creating", + :ivar resourceState: Resource status of the origin group. Known values are: "Creating", "Active", and "Deleting". - :vartype resource_state: Union[str, "OriginGroupResourceState"] - :ivar provisioning_state: Provisioning status of the origin group. Known values are: + :vartype resourceState: Union[str, "OriginGroupResourceState"] + :ivar provisioningState: Provisioning status of the origin group. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "OriginGroupProvisioningState"] + :vartype provisioningState: Union[str, "OriginGroupProvisioningState"] """ resourceState: Union[str, "OriginGroupResourceState"] @@ -3021,18 +3306,18 @@ class OriginGroupUpdateParameters(TypedDict, total=False): class OriginUpdatePropertiesParameters(TypedDict, total=False): """The JSON object that contains the properties of the origin. - :ivar host_name: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses - are supported.This should be unique across all origins in an endpoint. - :vartype host_name: str - :ivar http_port: The value of the HTTP port. Must be between 1 and 65535. - :vartype http_port: int - :ivar https_port: The value of the HTTPS port. Must be between 1 and 65535. - :vartype https_port: int - :ivar origin_host_header: The host header value sent to the origin with each request. If you + :ivar hostName: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are + supported.This should be unique across all origins in an endpoint. + :vartype hostName: str + :ivar httpPort: The value of the HTTP port. Must be between 1 and 65535. + :vartype httpPort: int + :ivar httpsPort: The value of the HTTPS port. Must be between 1 and 65535. + :vartype httpsPort: int + :ivar originHostHeader: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint. - :vartype origin_host_header: str + :vartype originHostHeader: str :ivar priority: Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. @@ -3042,18 +3327,18 @@ class OriginUpdatePropertiesParameters(TypedDict, total=False): :vartype weight: int :ivar enabled: Origin is enabled for load balancing or not. :vartype enabled: bool - :ivar private_link_alias: The Alias of the Private Link resource. Populating this optional - field indicates that this origin is 'Private'. - :vartype private_link_alias: str - :ivar private_link_resource_id: The Resource Id of the Private Link resource. Populating this + :ivar privateLinkAlias: The Alias of the Private Link resource. Populating this optional field + indicates that this origin is 'Private'. + :vartype privateLinkAlias: str + :ivar privateLinkResourceId: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'. - :vartype private_link_resource_id: str - :ivar private_link_location: The location of the Private Link resource. Required only if + :vartype privateLinkResourceId: str + :ivar privateLinkLocation: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated. - :vartype private_link_location: str - :ivar private_link_approval_message: A custom message to be included in the approval request to + :vartype privateLinkLocation: str + :ivar privateLinkApprovalMessage: A custom message to be included in the approval request to connect to the Private Link. - :vartype private_link_approval_message: str + :vartype privateLinkApprovalMessage: str """ hostName: str @@ -3091,15 +3376,15 @@ class OriginUpdatePropertiesParameters(TypedDict, total=False): class OriginProperties(OriginUpdatePropertiesParameters): """The JSON object that contains the properties of the origin. - :ivar http_port: The value of the HTTP port. Must be between 1 and 65535. - :vartype http_port: int - :ivar https_port: The value of the HTTPS port. Must be between 1 and 65535. - :vartype https_port: int - :ivar origin_host_header: The host header value sent to the origin with each request. If you + :ivar httpPort: The value of the HTTP port. Must be between 1 and 65535. + :vartype httpPort: int + :ivar httpsPort: The value of the HTTPS port. Must be between 1 and 65535. + :vartype httpsPort: int + :ivar originHostHeader: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint. - :vartype origin_host_header: str + :vartype originHostHeader: str :ivar priority: Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. @@ -3109,30 +3394,30 @@ class OriginProperties(OriginUpdatePropertiesParameters): :vartype weight: int :ivar enabled: Origin is enabled for load balancing or not. :vartype enabled: bool - :ivar private_link_alias: The Alias of the Private Link resource. Populating this optional - field indicates that this origin is 'Private'. - :vartype private_link_alias: str - :ivar private_link_resource_id: The Resource Id of the Private Link resource. Populating this + :ivar privateLinkAlias: The Alias of the Private Link resource. Populating this optional field + indicates that this origin is 'Private'. + :vartype privateLinkAlias: str + :ivar privateLinkResourceId: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'. - :vartype private_link_resource_id: str - :ivar private_link_location: The location of the Private Link resource. Required only if + :vartype privateLinkResourceId: str + :ivar privateLinkLocation: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated. - :vartype private_link_location: str - :ivar private_link_approval_message: A custom message to be included in the approval request to + :vartype privateLinkLocation: str + :ivar privateLinkApprovalMessage: A custom message to be included in the approval request to connect to the Private Link. - :vartype private_link_approval_message: str - :ivar resource_state: Resource status of the origin. Known values are: "Creating", "Active", - and "Deleting". - :vartype resource_state: Union[str, "OriginResourceState"] - :ivar provisioning_state: Provisioning status of the origin. Known values are: "Succeeded", + :vartype privateLinkApprovalMessage: str + :ivar resourceState: Resource status of the origin. Known values are: "Creating", "Active", and + "Deleting". + :vartype resourceState: Union[str, "OriginResourceState"] + :ivar provisioningState: Provisioning status of the origin. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "OriginProvisioningState"] - :ivar private_endpoint_status: The approval status for the connection to the Private Link. - Known values are: "Pending", "Approved", "Rejected", "Disconnected", and "Timeout". - :vartype private_endpoint_status: Union[str, "PrivateEndpointStatus"] - :ivar host_name: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses - are supported.This should be unique across all origins in an endpoint. Required. - :vartype host_name: str + :vartype provisioningState: Union[str, "OriginProvisioningState"] + :ivar privateEndpointStatus: The approval status for the connection to the Private Link. Known + values are: "Pending", "Approved", "Rejected", "Disconnected", and "Timeout". + :vartype privateEndpointStatus: Union[str, "PrivateEndpointStatus"] + :ivar hostName: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are + supported.This should be unique across all origins in an endpoint. Required. + :vartype hostName: str """ resourceState: Union[str, "OriginResourceState"] @@ -3162,23 +3447,23 @@ class OriginUpdateParameters(TypedDict, total=False): class PolicySettings(TypedDict, total=False): """Defines contents of a web application firewall global configuration. - :ivar enabled_state: describes if the policy is in enabled state or disabled state. Known - values are: "Disabled" and "Enabled". - :vartype enabled_state: Union[str, "PolicyEnabledState"] + :ivar enabledState: describes if the policy is in enabled state or disabled state. Known values + are: "Disabled" and "Enabled". + :vartype enabledState: Union[str, "PolicyEnabledState"] :ivar mode: Describes if it is in detection mode or prevention mode at policy level. Known values are: "Prevention" and "Detection". :vartype mode: Union[str, "PolicyMode"] - :ivar default_redirect_url: If action type is redirect, this field represents the default + :ivar defaultRedirectUrl: If action type is redirect, this field represents the default redirect URL for the client. - :vartype default_redirect_url: str - :ivar default_custom_block_response_status_code: If the action type is block, this field - defines the default customer overridable http response status code. Known values are: 200, 403, - 405, 406, and 429. - :vartype default_custom_block_response_status_code: Union[int, + :vartype defaultRedirectUrl: str + :ivar defaultCustomBlockResponseStatusCode: If the action type is block, this field defines the + default customer overridable http response status code. Known values are: 200, 403, 405, 406, + and 429. + :vartype defaultCustomBlockResponseStatusCode: Union[int, "PolicySettingsDefaultCustomBlockResponseStatusCode"] - :ivar default_custom_block_response_body: If the action type is block, customer can override - the response body. The body must be specified in base64 encoding. - :vartype default_custom_block_response_body: str + :ivar defaultCustomBlockResponseBody: If the action type is block, customer can override the + response body. The body must be specified in base64 encoding. + :vartype defaultCustomBlockResponseBody: str """ enabledState: Union[str, "PolicyEnabledState"] @@ -3206,14 +3491,14 @@ class PostArgsMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "PostArgsOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_POST_ARGS_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_POST_ARGS_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_POST_ARGS_CONDITION_PARAMETERS] """ @@ -3244,9 +3529,9 @@ class Profile(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -3278,10 +3563,10 @@ class Profile(TrackedResource): class ProfileChangeSkuWafMapping(TypedDict, total=False): """Parameters required for profile upgrade. - :ivar security_policy_name: The security policy name. Required. - :vartype security_policy_name: str - :ivar change_to_waf_policy: The new waf resource for the security policy to use. Required. - :vartype change_to_waf_policy: "ResourceReference" + :ivar securityPolicyName: The security policy name. Required. + :vartype securityPolicyName: str + :ivar changeToWafPolicy: The new waf resource for the security policy to use. Required. + :vartype changeToWafPolicy: "ResourceReference" """ securityPolicyName: Required[str] @@ -3296,9 +3581,8 @@ class ProfileLogScrubbing(TypedDict, total=False): :ivar state: State of the log scrubbing config. Default value is Enabled. Known values are: "Enabled" and "Disabled". :vartype state: Union[str, "ProfileScrubbingState"] - :ivar scrubbing_rules: List of log scrubbing rules applied to the Azure Front Door profile - logs. - :vartype scrubbing_rules: list["ProfileScrubbingRules"] + :ivar scrubbingRules: List of log scrubbing rules applied to the Azure Front Door profile logs. + :vartype scrubbingRules: list["ProfileScrubbingRules"] """ state: Union[str, "ProfileScrubbingState"] @@ -3311,23 +3595,23 @@ class ProfileLogScrubbing(TypedDict, total=False): class ProfileProperties(TypedDict, total=False): """The JSON object that contains the properties required to create a profile. - :ivar resource_state: Resource status of the profile. Known values are: "Creating", "Active", + :ivar resourceState: Resource status of the profile. Known values are: "Creating", "Active", "Deleting", "Disabled", "Migrating", "Migrated", "PendingMigrationCommit", "CommittingMigration", and "AbortingMigration". - :vartype resource_state: Union[str, "ProfileResourceState"] - :ivar provisioning_state: Provisioning status of the profile. Known values are: "Succeeded", + :vartype resourceState: Union[str, "ProfileResourceState"] + :ivar provisioningState: Provisioning status of the profile. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "ProfileProvisioningState"] - :ivar extended_properties: Key-Value pair representing additional properties for profiles. - :vartype extended_properties: dict[str, str] - :ivar front_door_id: The Id of the frontdoor. - :vartype front_door_id: str - :ivar origin_response_timeout_seconds: Send and receive timeout on forwarding request to the + :vartype provisioningState: Union[str, "ProfileProvisioningState"] + :ivar extendedProperties: Key-Value pair representing additional properties for profiles. + :vartype extendedProperties: dict[str, str] + :ivar frontDoorId: The Id of the frontdoor. + :vartype frontDoorId: str + :ivar originResponseTimeoutSeconds: Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. - :vartype origin_response_timeout_seconds: int - :ivar log_scrubbing: Defines rules that scrub sensitive fields in the Azure Front Door profile + :vartype originResponseTimeoutSeconds: int + :ivar logScrubbing: Defines rules that scrub sensitive fields in the Azure Front Door profile logs. - :vartype log_scrubbing: "ProfileLogScrubbing" + :vartype logScrubbing: "ProfileLogScrubbing" """ resourceState: Union[str, "ProfileResourceState"] @@ -3351,11 +3635,11 @@ class ProfileProperties(TypedDict, total=False): class ProfilePropertiesUpdateParameters(TypedDict, total=False): """The JSON object containing profile update parameters. - :ivar origin_response_timeout_seconds: Send and receive timeout on forwarding request to the + :ivar originResponseTimeoutSeconds: Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. - :vartype origin_response_timeout_seconds: int - :ivar log_scrubbing: Defines rules to scrub sensitive fields in logs. - :vartype log_scrubbing: "ProfileLogScrubbing" + :vartype originResponseTimeoutSeconds: int + :ivar logScrubbing: Defines rules to scrub sensitive fields in logs. + :vartype logScrubbing: "ProfileLogScrubbing" """ originResponseTimeoutSeconds: int @@ -3368,12 +3652,12 @@ class ProfilePropertiesUpdateParameters(TypedDict, total=False): class ProfileScrubbingRules(TypedDict, total=False): """Defines the contents of the log scrubbing rules. - :ivar match_variable: The variable to be scrubbed from the logs. Required. Known values are: + :ivar matchVariable: The variable to be scrubbed from the logs. Required. Known values are: "RequestIPAddress", "RequestUri", and "QueryStringArgNames". - :vartype match_variable: Union[str, "ScrubbingRuleEntryMatchVariable"] - :ivar selector_match_operator: When matchVariable is a collection, operate on the selector to + :vartype matchVariable: Union[str, "ScrubbingRuleEntryMatchVariable"] + :ivar selectorMatchOperator: When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. Required. "EqualsAny" - :vartype selector_match_operator: Union[str, "ScrubbingRuleEntryMatchOperator"] + :vartype selectorMatchOperator: Union[str, "ScrubbingRuleEntryMatchOperator"] :ivar selector: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. :vartype selector: str @@ -3418,9 +3702,9 @@ class ProfileUpdateParameters(TypedDict, total=False): class ProfileUpgradeParameters(TypedDict, total=False): """Parameters required for profile upgrade. - :ivar waf_mapping_list: Web Application Firewall (WAF) and security policy mapping for the + :ivar wafMappingList: Web Application Firewall (WAF) and security policy mapping for the profile upgrade. Required. - :vartype waf_mapping_list: list["ProfileChangeSkuWafMapping"] + :vartype wafMappingList: list["ProfileChangeSkuWafMapping"] """ wafMappingList: Required[list["ProfileChangeSkuWafMapping"]] @@ -3430,9 +3714,9 @@ class ProfileUpgradeParameters(TypedDict, total=False): class PurgeParameters(TypedDict, total=False): """Parameters required for content purge. - :ivar content_paths: The path to the content to be purged. Can describe a file path or a wild + :ivar contentPaths: The path to the content to be purged. Can describe a file path or a wild card directory. Required. - :vartype content_paths: list[str] + :vartype contentPaths: list[str] """ contentPaths: Required[list[str]] @@ -3447,14 +3731,14 @@ class QueryStringMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "QueryStringOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_QUERY_STRING_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_QUERY_STRING_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_QUERY_STRING_CONDITION_PARAMETERS] """ @@ -3477,22 +3761,21 @@ class RateLimitRule(CustomRule): :ivar name: Defines the name of the custom rule. Required. :vartype name: str - :ivar enabled_state: Describes if the custom rule is in enabled or disabled state. Defaults to + :ivar enabledState: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Known values are: "Disabled" and "Enabled". - :vartype enabled_state: Union[str, "CustomRuleEnabledState"] + :vartype enabledState: Union[str, "CustomRuleEnabledState"] :ivar priority: Defines in what order this rule be evaluated in the overall list of custom rules. Required. :vartype priority: int - :ivar match_conditions: List of match conditions. Required. - :vartype match_conditions: list["MatchCondition"] + :ivar matchConditions: List of match conditions. Required. + :vartype matchConditions: list["MatchCondition"] :ivar action: Describes what action to be applied when rule matches. Required. Known values are: "Allow", "Block", "Log", and "Redirect". :vartype action: Union[str, "ActionType"] - :ivar rate_limit_threshold: Defines rate limit threshold. Required. - :vartype rate_limit_threshold: int - :ivar rate_limit_duration_in_minutes: Defines rate limit duration. Default is 1 minute. - Required. - :vartype rate_limit_duration_in_minutes: int + :ivar rateLimitThreshold: Defines rate limit threshold. Required. + :vartype rateLimitThreshold: int + :ivar rateLimitDurationInMinutes: Defines rate limit duration. Default is 1 minute. Required. + :vartype rateLimitDurationInMinutes: int """ rateLimitThreshold: Required[int] @@ -3518,16 +3801,16 @@ class RemoteAddressMatchConditionParameters(TypedDict, total=False): :ivar operator: Describes operator to be matched. Required. Known values are: "Any", "IPMatch", and "GeoMatch". :vartype operator: Union[str, "RemoteAddressOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: Match values to match against. The operator will apply to each value in - here with OR semantics. If any of them match the variable with the given operator this match + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: Match values to match against. The operator will apply to each value in here + with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. - :vartype match_values: list[str] + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_REMOTE_ADDRESS_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_REMOTE_ADDRESS_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REMOTE_ADDRESS_CONDITION_PARAMETERS] """ @@ -3553,14 +3836,14 @@ class RequestBodyMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "RequestBodyOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_REQUEST_BODY_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_REQUEST_BODY_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_BODY_CONDITION_PARAMETERS] """ @@ -3587,14 +3870,14 @@ class RequestHeaderMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "RequestHeaderOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_REQUEST_HEADER_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_REQUEST_HEADER_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_HEADER_CONDITION_PARAMETERS] """ @@ -3619,14 +3902,14 @@ class RequestMethodMatchConditionParameters(TypedDict, total=False): :ivar operator: Describes operator to be matched. Required. "Equal" :vartype operator: Union[str, "RequestMethodOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[Union[str, "RequestMethodMatchConditionParametersMatchValuesItem"]] - :ivar type_name: Required. DELIVERY_RULE_REQUEST_METHOD_CONDITION_PARAMETERS. - :vartype type_name: + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[Union[str, "RequestMethodMatchConditionParametersMatchValuesItem"]] + :ivar typeName: Required. DELIVERY_RULE_REQUEST_METHOD_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_METHOD_CONDITION_PARAMETERS] """ @@ -3647,14 +3930,14 @@ class RequestSchemeMatchConditionParameters(TypedDict, total=False): :ivar operator: Describes operator to be matched. Required. "Equal" :vartype operator: Union[str, "RequestSchemeMatchConditionParametersOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[Union[str, "RequestSchemeMatchConditionParametersMatchValuesItem"]] - :ivar type_name: Required. DELIVERY_RULE_REQUEST_SCHEME_CONDITION_PARAMETERS. - :vartype type_name: + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[Union[str, "RequestSchemeMatchConditionParametersMatchValuesItem"]] + :ivar typeName: Required. DELIVERY_RULE_REQUEST_SCHEME_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_SCHEME_CONDITION_PARAMETERS] """ @@ -3677,14 +3960,14 @@ class RequestUriMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "RequestUriOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_REQUEST_URI_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_REQUEST_URI_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_REQUEST_URI_CONDITION_PARAMETERS] """ @@ -3717,16 +4000,16 @@ class ResponseBasedOriginErrorDetectionParameters(TypedDict, total=False): # py """The JSON object that contains the properties to determine origin health using real requests/responses. - :ivar response_based_detected_error_types: Type of response errors for real user requests for - which origin will be deemed unhealthy. Known values are: "None", "TcpErrorsOnly", and + :ivar responseBasedDetectedErrorTypes: Type of response errors for real user requests for which + origin will be deemed unhealthy. Known values are: "None", "TcpErrorsOnly", and "TcpAndHttpErrors". - :vartype response_based_detected_error_types: Union[str, "ResponseBasedDetectedErrorTypes"] - :ivar response_based_failover_threshold_percentage: The percentage of failed requests in the - sample where failover should trigger. - :vartype response_based_failover_threshold_percentage: int - :ivar http_error_ranges: The list of Http status code ranges that are considered as server - errors for origin and it is marked as unhealthy. - :vartype http_error_ranges: list["HttpErrorRangeParameters"] + :vartype responseBasedDetectedErrorTypes: Union[str, "ResponseBasedDetectedErrorTypes"] + :ivar responseBasedFailoverThresholdPercentage: The percentage of failed requests in the sample + where failover should trigger. + :vartype responseBasedFailoverThresholdPercentage: int + :ivar httpErrorRanges: The list of Http status code ranges that are considered as server errors + for origin and it is marked as unhealthy. + :vartype httpErrorRanges: list["HttpErrorRangeParameters"] """ responseBasedDetectedErrorTypes: Union[str, "ResponseBasedDetectedErrorTypes"] @@ -3750,9 +4033,9 @@ class Route(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The JSON object that contains the properties of the Routes to create. :vartype properties: "RouteProperties" """ @@ -3764,14 +4047,14 @@ class Route(ProxyResource): class RouteConfigurationOverrideActionParameters(TypedDict, total=False): # pylint: disable=name-too-long """Defines the parameters for the route configuration override action. - :ivar origin_group_override: A reference to the origin group override configuration. Leave - empty to use the default origin group on route. - :vartype origin_group_override: "OriginGroupOverride" - :ivar cache_configuration: The caching configuration associated with this rule. To disable + :ivar originGroupOverride: A reference to the origin group override configuration. Leave empty + to use the default origin group on route. + :vartype originGroupOverride: "OriginGroupOverride" + :ivar cacheConfiguration: The caching configuration associated with this rule. To disable caching, do not provide a cacheConfiguration object. - :vartype cache_configuration: "CacheConfiguration" - :ivar type_name: Required. DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS. - :vartype type_name: + :vartype cacheConfiguration: "CacheConfiguration" + :ivar typeName: Required. DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_ROUTE_CONFIGURATION_OVERRIDE_ACTION_PARAMETERS] """ @@ -3790,43 +4073,43 @@ class RouteConfigurationOverrideActionParameters(TypedDict, total=False): # pyl class RouteProperties(TypedDict, total=False): """The JSON object that contains the properties of the Routes to create. - :ivar endpoint_name: The name of the endpoint which holds the route. - :vartype endpoint_name: str - :ivar custom_domains: Domains referenced by this endpoint. - :vartype custom_domains: list["ActivatedResourceReference"] - :ivar origin_group: A reference to the origin group. - :vartype origin_group: "ResourceReference" - :ivar origin_path: A directory path on the origin that AzureFrontDoor can use to retrieve + :ivar endpointName: The name of the endpoint which holds the route. + :vartype endpointName: str + :ivar customDomains: Domains referenced by this endpoint. + :vartype customDomains: list["ActivatedResourceReference"] + :ivar originGroup: A reference to the origin group. + :vartype originGroup: "ResourceReference" + :ivar originPath: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. - :vartype origin_path: str - :ivar rule_sets: rule sets referenced by this endpoint. - :vartype rule_sets: list["ResourceReference"] - :ivar supported_protocols: List of supported protocols for this route. - :vartype supported_protocols: list[Union[str, "AFDEndpointProtocols"]] - :ivar patterns_to_match: The route patterns of the rule. - :vartype patterns_to_match: list[str] - :ivar cache_configuration: The caching configuration for this route. To disable caching, do not + :vartype originPath: str + :ivar ruleSets: rule sets referenced by this endpoint. + :vartype ruleSets: list["ResourceReference"] + :ivar supportedProtocols: List of supported protocols for this route. + :vartype supportedProtocols: list[Union[str, "AFDEndpointProtocols"]] + :ivar patternsToMatch: The route patterns of the rule. + :vartype patternsToMatch: list[str] + :ivar cacheConfiguration: The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object. - :vartype cache_configuration: "AfdRouteCacheConfiguration" - :ivar forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. + :vartype cacheConfiguration: "AfdRouteCacheConfiguration" + :ivar forwardingProtocol: Protocol this rule will use when forwarding traffic to backends. Known values are: "HttpOnly", "HttpsOnly", and "MatchRequest". - :vartype forwarding_protocol: Union[str, "ForwardingProtocol"] - :ivar link_to_default_domain: whether this route will be linked to the default endpoint domain. + :vartype forwardingProtocol: Union[str, "ForwardingProtocol"] + :ivar linkToDefaultDomain: whether this route will be linked to the default endpoint domain. Known values are: "Enabled" and "Disabled". - :vartype link_to_default_domain: Union[str, "LinkToDefaultDomain"] - :ivar https_redirect: Whether to automatically redirect HTTP traffic to HTTPS traffic. Note - that this is a easy way to set up this rule and it will be the first rule that gets executed. - Known values are: "Enabled" and "Disabled". - :vartype https_redirect: Union[str, "HttpsRedirect"] - :ivar enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + :vartype linkToDefaultDomain: Union[str, "LinkToDefaultDomain"] + :ivar httpsRedirect: Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that + this is a easy way to set up this rule and it will be the first rule that gets executed. Known + values are: "Enabled" and "Disabled". + :vartype httpsRedirect: Union[str, "HttpsRedirect"] + :ivar enabledState: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". - :vartype enabled_state: Union[str, "EnabledState"] - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :vartype enabledState: Union[str, "EnabledState"] + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] + :vartype deploymentStatus: Union[str, "DeploymentStatus"] """ endpointName: str @@ -3881,37 +4164,37 @@ class RouteUpdateParameters(TypedDict, total=False): class RouteUpdatePropertiesParameters(TypedDict, total=False): """The JSON object that contains the properties of the domain to create. - :ivar endpoint_name: The name of the endpoint which holds the route. - :vartype endpoint_name: str - :ivar custom_domains: Domains referenced by this endpoint. - :vartype custom_domains: list["ActivatedResourceReference"] - :ivar origin_group: A reference to the origin group. - :vartype origin_group: "ResourceReference" - :ivar origin_path: A directory path on the origin that AzureFrontDoor can use to retrieve + :ivar endpointName: The name of the endpoint which holds the route. + :vartype endpointName: str + :ivar customDomains: Domains referenced by this endpoint. + :vartype customDomains: list["ActivatedResourceReference"] + :ivar originGroup: A reference to the origin group. + :vartype originGroup: "ResourceReference" + :ivar originPath: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. - :vartype origin_path: str - :ivar rule_sets: rule sets referenced by this endpoint. - :vartype rule_sets: list["ResourceReference"] - :ivar supported_protocols: List of supported protocols for this route. - :vartype supported_protocols: list[Union[str, "AFDEndpointProtocols"]] - :ivar patterns_to_match: The route patterns of the rule. - :vartype patterns_to_match: list[str] - :ivar cache_configuration: The caching configuration for this route. To disable caching, do not + :vartype originPath: str + :ivar ruleSets: rule sets referenced by this endpoint. + :vartype ruleSets: list["ResourceReference"] + :ivar supportedProtocols: List of supported protocols for this route. + :vartype supportedProtocols: list[Union[str, "AFDEndpointProtocols"]] + :ivar patternsToMatch: The route patterns of the rule. + :vartype patternsToMatch: list[str] + :ivar cacheConfiguration: The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object. - :vartype cache_configuration: "AfdRouteCacheConfiguration" - :ivar forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. + :vartype cacheConfiguration: "AfdRouteCacheConfiguration" + :ivar forwardingProtocol: Protocol this rule will use when forwarding traffic to backends. Known values are: "HttpOnly", "HttpsOnly", and "MatchRequest". - :vartype forwarding_protocol: Union[str, "ForwardingProtocol"] - :ivar link_to_default_domain: whether this route will be linked to the default endpoint domain. - Known values are: "Enabled" and "Disabled". - :vartype link_to_default_domain: Union[str, "LinkToDefaultDomain"] - :ivar https_redirect: Whether to automatically redirect HTTP traffic to HTTPS traffic. Note - that this is a easy way to set up this rule and it will be the first rule that gets executed. + :vartype forwardingProtocol: Union[str, "ForwardingProtocol"] + :ivar linkToDefaultDomain: whether this route will be linked to the default endpoint domain. Known values are: "Enabled" and "Disabled". - :vartype https_redirect: Union[str, "HttpsRedirect"] - :ivar enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + :vartype linkToDefaultDomain: Union[str, "LinkToDefaultDomain"] + :ivar httpsRedirect: Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that + this is a easy way to set up this rule and it will be the first rule that gets executed. Known + values are: "Enabled" and "Disabled". + :vartype httpsRedirect: Union[str, "HttpsRedirect"] + :ivar enabledState: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". - :vartype enabled_state: Union[str, "EnabledState"] + :vartype enabledState: Union[str, "EnabledState"] """ endpointName: str @@ -3958,9 +4241,9 @@ class Rule(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The JSON object that contains the properties of the Rules to create. :vartype properties: "RuleProperties" """ @@ -3972,8 +4255,8 @@ class Rule(ProxyResource): class RuleProperties(TypedDict, total=False): """The JSON object that contains the properties of the Rules to create. - :ivar rule_set_name: The name of the rule set containing the rule. - :vartype rule_set_name: str + :ivar ruleSetName: The name of the rule set containing the rule. + :vartype ruleSetName: str :ivar order: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it @@ -3984,16 +4267,16 @@ class RuleProperties(TypedDict, total=False): :ivar actions: A list of actions that are executed when all the conditions of a rule are satisfied. :vartype actions: list["DeliveryRuleAction"] - :ivar match_processing_behavior: If this rule is a match should the rules engine continue - running the remaining rules or stop. If not present, defaults to Continue. Known values are: - "Continue" and "Stop". - :vartype match_processing_behavior: Union[str, "MatchProcessingBehavior"] - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :ivar matchProcessingBehavior: If this rule is a match should the rules engine continue running + the remaining rules or stop. If not present, defaults to Continue. Known values are: "Continue" + and "Stop". + :vartype matchProcessingBehavior: Union[str, "MatchProcessingBehavior"] + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] + :vartype deploymentStatus: Union[str, "DeploymentStatus"] """ ruleSetName: str @@ -4028,9 +4311,9 @@ class RuleSet(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The JSON object that contains the properties of the Rule Set to create. :vartype properties: "RuleSetProperties" """ @@ -4042,20 +4325,20 @@ class RuleSet(ProxyResource): class RuleSetProperties(AFDStateProperties): """The JSON object that contains the properties of the Rule Set to create. - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] - :ivar profile_name: The name of the profile which holds the rule set. - :vartype profile_name: str - :ivar batch_mode: Indicates whether rule set is in batch mode. When batch mode is enabled, - rules will be processed in a batch along with the rule set. When batch mode is disabled, rules - would need to be processed independently. This property can only be set during rule set - creation and cannot be updated later. For switching modes, a new rule set needs to be created - with the desired mode and rules need to be migrated to the new rule set. - :vartype batch_mode: bool + :vartype deploymentStatus: Union[str, "DeploymentStatus"] + :ivar profileName: The name of the profile which holds the rule set. + :vartype profileName: str + :ivar batchMode: Indicates whether rule set is in batch mode. When batch mode is enabled, rules + will be processed in a batch along with the rule set. When batch mode is disabled, rules would + need to be processed independently. This property can only be set during rule set creation and + cannot be updated later. For switching modes, a new rule set needs to be created with the + desired mode and rules need to be migrated to the new rule set. + :vartype batchMode: bool :ivar rules: A list of rules that are part of this rule set provided the rule set is in batch mode. This property will be ignored if the rule set is not in batch mode. :vartype rules: list["BatchRuleProperties"] @@ -4088,8 +4371,8 @@ class RuleUpdateParameters(TypedDict, total=False): class RuleUpdatePropertiesParameters(TypedDict, total=False): """The JSON object that contains the properties of the rule to update. - :ivar rule_set_name: The name of the rule set containing the rule. - :vartype rule_set_name: str + :ivar ruleSetName: The name of the rule set containing the rule. + :vartype ruleSetName: str :ivar order: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it @@ -4100,10 +4383,10 @@ class RuleUpdatePropertiesParameters(TypedDict, total=False): :ivar actions: A list of actions that are executed when all the conditions of a rule are satisfied. :vartype actions: list["DeliveryRuleAction"] - :ivar match_processing_behavior: If this rule is a match should the rules engine continue - running the remaining rules or stop. If not present, defaults to Continue. Known values are: - "Continue" and "Stop". - :vartype match_processing_behavior: Union[str, "MatchProcessingBehavior"] + :ivar matchProcessingBehavior: If this rule is a match should the rules engine continue running + the remaining rules or stop. If not present, defaults to Continue. Known values are: "Continue" + and "Stop". + :vartype matchProcessingBehavior: Union[str, "MatchProcessingBehavior"] """ ruleSetName: str @@ -4133,9 +4416,9 @@ class Secret(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The JSON object that contains the properties of the Secret to create. :vartype properties: "SecretProperties" """ @@ -4147,14 +4430,14 @@ class Secret(ProxyResource): class SecretProperties(AFDStateProperties): """The JSON object that contains the properties of the Secret to create. - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] - :ivar profile_name: The name of the profile which holds the secret. - :vartype profile_name: str + :vartype deploymentStatus: Union[str, "DeploymentStatus"] + :ivar profileName: The name of the profile which holds the secret. + :vartype profileName: str :ivar parameters: object which contains secret parameters. :vartype parameters: "SecretParameters" """ @@ -4176,9 +4459,9 @@ class SecurityPolicy(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The json object that contains properties required to create a security policy. :vartype properties: "SecurityPolicyProperties" @@ -4191,14 +4474,14 @@ class SecurityPolicy(ProxyResource): class SecurityPolicyProperties(AFDStateProperties): """The json object that contains properties required to create a security policy. - :ivar provisioning_state: Provisioning status. Known values are: "Succeeded", "Failed", + :ivar provisioningState: Provisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". - :vartype provisioning_state: Union[str, "AfdProvisioningState"] - :ivar deployment_status: Known values are: "NotStarted", "InProgress", "Succeeded", and + :vartype provisioningState: Union[str, "AfdProvisioningState"] + :ivar deploymentStatus: Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". - :vartype deployment_status: Union[str, "DeploymentStatus"] - :ivar profile_name: The name of the profile which holds the security policy. - :vartype profile_name: str + :vartype deploymentStatus: Union[str, "DeploymentStatus"] + :ivar profileName: The name of the profile which holds the security policy. + :vartype profileName: str :ivar parameters: object which contains security policy parameters. :vartype parameters: "SecurityPolicyPropertiesParameters" """ @@ -4237,23 +4520,29 @@ class SecurityPolicyWebApplicationFirewallAssociation(TypedDict, total=False): :ivar domains: List of domains. :vartype domains: list["ActivatedResourceReference"] - :ivar patterns_to_match: List of paths. - :vartype patterns_to_match: list[str] + :ivar patternsToMatch: List of paths. + :vartype patternsToMatch: list[str] + :ivar routes: List of routes. + :vartype routes: list["ResourceReference"] """ domains: list["ActivatedResourceReference"] """List of domains.""" patternsToMatch: list[str] """List of paths.""" + routes: list["ResourceReference"] + """List of routes.""" class SecurityPolicyWebApplicationFirewallParameters(TypedDict, total=False): # pylint: disable=name-too-long """The json object containing security policy waf parameters. - :ivar waf_policy: Resource ID. - :vartype waf_policy: "ResourceReference" + :ivar wafPolicy: Resource ID. + :vartype wafPolicy: "ResourceReference" :ivar associations: Waf associations. :vartype associations: list["SecurityPolicyWebApplicationFirewallAssociation"] + :ivar isProfileLevel: Indicates if this is a profile-level WAF policy. + :vartype isProfileLevel: bool :ivar type: The type of the Security policy to create. Required. WEB_APPLICATION_FIREWALL. :vartype type: Literal[SecurityPolicyType.WEB_APPLICATION_FIREWALL] """ @@ -4262,6 +4551,8 @@ class SecurityPolicyWebApplicationFirewallParameters(TypedDict, total=False): # """Resource ID.""" associations: list["SecurityPolicyWebApplicationFirewallAssociation"] """Waf associations.""" + isProfileLevel: bool + """Indicates if this is a profile-level WAF policy.""" type: Required[Literal[SecurityPolicyType.WEB_APPLICATION_FIREWALL]] """The type of the Security policy to create. Required. WEB_APPLICATION_FIREWALL.""" @@ -4273,14 +4564,14 @@ class ServerPortMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "ServerPortOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_SERVER_PORT_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_SERVER_PORT_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SERVER_PORT_CONDITION_PARAMETERS] """ @@ -4302,16 +4593,16 @@ class SharedPrivateLinkResourceProperties(TypedDict, total=False): """Describes the properties of an existing Shared Private Link Resource to use when connecting to a private origin. - :ivar private_link: The resource id of the resource the shared private link resource is for. - :vartype private_link: "ResourceReference" - :ivar private_link_location: The location of the shared private link resource. - :vartype private_link_location: str - :ivar group_id: The group id from the provider of resource the shared private link resource is + :ivar privateLink: The resource id of the resource the shared private link resource is for. + :vartype privateLink: "ResourceReference" + :ivar privateLinkLocation: The location of the shared private link resource. + :vartype privateLinkLocation: str + :ivar groupId: The group id from the provider of resource the shared private link resource is for. - :vartype group_id: str - :ivar request_message: The request message for requesting approval of the shared private link + :vartype groupId: str + :ivar requestMessage: The request message for requesting approval of the shared private link resource. - :vartype request_message: str + :vartype requestMessage: str :ivar status: Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout. Known values are: "Pending", "Approved", "Rejected", "Disconnected", and "Timeout". @@ -4370,14 +4661,14 @@ class SocketAddrMatchConditionParameters(TypedDict, total=False): :ivar operator: Describes operator to be matched. Required. Known values are: "Any" and "IPMatch". :vartype operator: Union[str, "SocketAddrOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_SOCKET_ADDR_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_SOCKET_ADDR_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SOCKET_ADDR_CONDITION_PARAMETERS] """ @@ -4398,14 +4689,14 @@ class SslProtocolMatchConditionParameters(TypedDict, total=False): :ivar operator: Describes operator to be matched. Required. "Equal" :vartype operator: Union[str, "SslProtocolOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[Union[str, "SslProtocol"]] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[Union[str, "SslProtocol"]] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_SSL_PROTOCOL_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_SSL_PROTOCOL_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_SSL_PROTOCOL_CONDITION_PARAMETERS] """ @@ -4424,20 +4715,20 @@ class SslProtocolMatchConditionParameters(TypedDict, total=False): class SystemData(TypedDict, total=False): """Metadata pertaining to creation and last modification of the resource. - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: Union[str, "CreatedByType"] - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: str - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + :ivar createdBy: The identity that created the resource. + :vartype createdBy: str + :ivar createdByType: The type of identity that created the resource. Known values are: "User", + "Application", "ManagedIdentity", and "Key". + :vartype createdByType: Union[str, "CreatedByType"] + :ivar createdAt: The timestamp of resource creation (UTC). + :vartype createdAt: str + :ivar lastModifiedBy: The identity that last modified the resource. + :vartype lastModifiedBy: str + :ivar lastModifiedByType: The type of identity that last modified the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: Union[str, "CreatedByType"] - :ivar last_modified_at: The timestamp of resource last modification (UTC). - :vartype last_modified_at: str + :vartype lastModifiedByType: Union[str, "CreatedByType"] + :ivar lastModifiedAt: The timestamp of resource last modification (UTC). + :vartype lastModifiedAt: str """ createdBy: str @@ -4463,14 +4754,14 @@ class UrlFileExtensionMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "UrlFileExtensionOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_URL_FILE_EXTENSION_MATCH_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_URL_FILE_EXTENSION_MATCH_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_FILE_EXTENSION_MATCH_CONDITION_PARAMETERS] """ @@ -4497,14 +4788,14 @@ class UrlFileNameMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", and "RegEx". :vartype operator: Union[str, "UrlFileNameOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_URL_FILENAME_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_URL_FILENAME_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_FILENAME_CONDITION_PARAMETERS] """ @@ -4529,14 +4820,14 @@ class UrlPathMatchConditionParameters(TypedDict, total=False): "Contains", "BeginsWith", "EndsWith", "LessThan", "LessThanOrEqual", "GreaterThan", "GreaterThanOrEqual", "Wildcard", and "RegEx". :vartype operator: Union[str, "UrlPathOperator"] - :ivar negate_condition: Describes if this is negate condition or not. - :vartype negate_condition: bool - :ivar match_values: The match value for the condition of the delivery rule. - :vartype match_values: list[str] + :ivar negateCondition: Describes if this is negate condition or not. + :vartype negateCondition: bool + :ivar matchValues: The match value for the condition of the delivery rule. + :vartype matchValues: list[str] :ivar transforms: List of transforms. :vartype transforms: list[Union[str, "Transform"]] - :ivar type_name: Required. DELIVERY_RULE_URL_PATH_MATCH_CONDITION_PARAMETERS. - :vartype type_name: + :ivar typeName: Required. DELIVERY_RULE_URL_PATH_MATCH_CONDITION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleConditionParametersType.DELIVERY_RULE_URL_PATH_MATCH_CONDITION_PARAMETERS] """ @@ -4572,28 +4863,28 @@ class UrlRedirectAction(TypedDict, total=False): class UrlRedirectActionParameters(TypedDict, total=False): """Defines the parameters for the url redirect action. - :ivar redirect_type: The redirect type the rule will use when redirecting traffic. Required. + :ivar redirectType: The redirect type the rule will use when redirecting traffic. Required. Known values are: "Moved", "Found", "TemporaryRedirect", and "PermanentRedirect". - :vartype redirect_type: Union[str, "RedirectType"] - :ivar destination_protocol: Protocol to use for the redirect. The default value is - MatchRequest. Known values are: "MatchRequest", "Http", and "Https". - :vartype destination_protocol: Union[str, "DestinationProtocol"] - :ivar custom_path: The full path to redirect. Path cannot be empty and must start with /. Leave + :vartype redirectType: Union[str, "RedirectType"] + :ivar destinationProtocol: Protocol to use for the redirect. The default value is MatchRequest. + Known values are: "MatchRequest", "Http", and "Https". + :vartype destinationProtocol: Union[str, "DestinationProtocol"] + :ivar customPath: The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. - :vartype custom_path: str - :ivar custom_hostname: Host to redirect. Leave empty to use the incoming host as the - destination host. - :vartype custom_hostname: str - :ivar custom_query_string: The set of query strings to be placed in the redirect URL. Setting + :vartype customPath: str + :ivar customHostname: Host to redirect. Leave empty to use the incoming host as the destination + host. + :vartype customHostname: str + :ivar customQueryString: The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. ? and & will be added automatically so do not include them. - :vartype custom_query_string: str - :ivar custom_fragment: Fragment to add to the redirect URL. Fragment is the part of the URL - that comes after #. Do not include the #. - :vartype custom_fragment: str - :ivar type_name: Required. DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS. - :vartype type_name: + :vartype customQueryString: str + :ivar customFragment: Fragment to add to the redirect URL. Fragment is the part of the URL that + comes after #. Do not include the #. + :vartype customFragment: str + :ivar typeName: Required. DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REDIRECT_ACTION_PARAMETERS] """ @@ -4637,16 +4928,16 @@ class UrlRewriteAction(TypedDict, total=False): class UrlRewriteActionParameters(TypedDict, total=False): """Defines the parameters for the url rewrite action. - :ivar source_pattern: define a request URI pattern that identifies the type of requests that - may be rewritten. If value is blank, all strings are matched. Required. - :vartype source_pattern: str + :ivar sourcePattern: define a request URI pattern that identifies the type of requests that may + be rewritten. If value is blank, all strings are matched. Required. + :vartype sourcePattern: str :ivar destination: Define the relative URL to which the above requests will be rewritten by. Required. :vartype destination: str - :ivar preserve_unmatched_path: Whether to preserve unmatched path. Default value is true. - :vartype preserve_unmatched_path: bool - :ivar type_name: Required. DELIVERY_RULE_URL_REWRITE_ACTION_PARAMETERS. - :vartype type_name: + :ivar preserveUnmatchedPath: Whether to preserve unmatched path. Default value is true. + :vartype preserveUnmatchedPath: bool + :ivar typeName: Required. DELIVERY_RULE_URL_REWRITE_ACTION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_REWRITE_ACTION_PARAMETERS] """ @@ -4681,11 +4972,11 @@ class UrlSigningActionParameters(TypedDict, total=False): :ivar algorithm: Algorithm to use for URL signing. "SHA256" :vartype algorithm: Union[str, "Algorithm"] - :ivar parameter_name_override: Defines which query string parameters in the url to be - considered for expires, key id etc. - :vartype parameter_name_override: list["UrlSigningParamIdentifier"] - :ivar type_name: Required. DELIVERY_RULE_URL_SIGNING_ACTION_PARAMETERS. - :vartype type_name: + :ivar parameterNameOverride: Defines which query string parameters in the url to be considered + for expires, key id etc. + :vartype parameterNameOverride: list["UrlSigningParamIdentifier"] + :ivar typeName: Required. DELIVERY_RULE_URL_SIGNING_ACTION_PARAMETERS. + :vartype typeName: Literal[DeliveryRuleActionParametersType.DELIVERY_RULE_URL_SIGNING_ACTION_PARAMETERS] """ @@ -4700,12 +4991,12 @@ class UrlSigningActionParameters(TypedDict, total=False): class UrlSigningKey(TypedDict, total=False): """Url signing key. - :ivar key_id: Defines the customer defined key Id. This id will exist in the incoming request - to indicate the key used to form the hash. Required. - :vartype key_id: str - :ivar key_source_parameters: Defines the parameters for using customer key vault for Url - Signing Key. Required. - :vartype key_source_parameters: "KeyVaultSigningKeyParameters" + :ivar keyId: Defines the customer defined key Id. This id will exist in the incoming request to + indicate the key used to form the hash. Required. + :vartype keyId: str + :ivar keySourceParameters: Defines the parameters for using customer key vault for Url Signing + Key. Required. + :vartype keySourceParameters: "KeyVaultSigningKeyParameters" """ keyId: Required[str] @@ -4718,16 +5009,16 @@ class UrlSigningKey(TypedDict, total=False): class UrlSigningKeyParameters(TypedDict, total=False): """Url signing key parameters. - :ivar key_id: Defines the customer defined key Id. This id will exist in the incoming request - to indicate the key used to form the hash. Required. - :vartype key_id: str - :ivar secret_source: Resource reference to the Azure Key Vault secret. Expected to be in format + :ivar keyId: Defines the customer defined key Id. This id will exist in the incoming request to + indicate the key used to form the hash. Required. + :vartype keyId: str + :ivar secretSource: Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{secretName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​. Required. - :vartype secret_source: "ResourceReference" - :ivar secret_version: Version of the secret to be used. Required. - :vartype secret_version: str + :vartype secretSource: "ResourceReference" + :ivar secretVersion: Version of the secret to be used. Required. + :vartype secretVersion: str :ivar type: The type of the secret resource. Required. URL_SIGNING_KEY. :vartype type: Literal[SecretType.URL_SIGNING_KEY] """ @@ -4748,11 +5039,11 @@ class UrlSigningKeyParameters(TypedDict, total=False): class UrlSigningParamIdentifier(TypedDict, total=False): """Defines how to identify a parameter for a specific purpose e.g. expires. - :ivar param_indicator: Indicates the purpose of the parameter. Required. Known values are: + :ivar paramIndicator: Indicates the purpose of the parameter. Required. Known values are: "Expires", "KeyId", and "Signature". - :vartype param_indicator: Union[str, "ParamIndicator"] - :ivar param_name: Parameter name. Required. - :vartype param_name: str + :vartype paramIndicator: Union[str, "ParamIndicator"] + :ivar paramName: Parameter name. Required. + :vartype paramName: str """ paramIndicator: Required[Union[str, "ParamIndicator"]] @@ -4765,10 +5056,10 @@ class UrlSigningParamIdentifier(TypedDict, total=False): class UserAssignedIdentity(TypedDict, total=False): """User assigned identity properties. - :ivar principal_id: The principal ID of the assigned identity. - :vartype principal_id: str - :ivar client_id: The client ID of the assigned identity. - :vartype client_id: str + :ivar principalId: The principal ID of the assigned identity. + :vartype principalId: str + :ivar clientId: The client ID of the assigned identity. + :vartype clientId: str """ principalId: str @@ -4780,17 +5071,17 @@ class UserAssignedIdentity(TypedDict, total=False): class UserManagedHttpsParameters(TypedDict, total=False): """Defines the certificate source parameters using user's keyvault certificate for enabling SSL. - :ivar protocol_type: Defines the TLS extension protocol that is used for secure delivery. + :ivar protocolType: Defines the TLS extension protocol that is used for secure delivery. Required. Known values are: "ServerNameIndication" and "IPBased". - :vartype protocol_type: Union[str, "ProtocolType"] - :ivar minimum_tls_version: TLS protocol version that will be used for Https. Known values are: + :vartype protocolType: Union[str, "ProtocolType"] + :ivar minimumTlsVersion: TLS protocol version that will be used for Https. Known values are: "None", "TLS10", and "TLS12". - :vartype minimum_tls_version: Union[str, "MinimumTlsVersion"] - :ivar certificate_source_parameters: Defines the certificate source parameters using user's + :vartype minimumTlsVersion: Union[str, "MinimumTlsVersion"] + :ivar certificateSourceParameters: Defines the certificate source parameters using user's keyvault certificate for enabling SSL. Required. - :vartype certificate_source_parameters: "KeyVaultCertificateSourceParameters" - :ivar certificate_source: Defines the source of the SSL certificate. Required. AZURE_KEY_VAULT. - :vartype certificate_source: Literal[CertificateSource.AZURE_KEY_VAULT] + :vartype certificateSourceParameters: "KeyVaultCertificateSourceParameters" + :ivar certificateSource: Defines the source of the SSL certificate. Required. AZURE_KEY_VAULT. + :vartype certificateSource: Literal[CertificateSource.AZURE_KEY_VAULT] """ protocolType: Required[Union[str, "ProtocolType"]] @@ -4809,8 +5100,8 @@ class UserManagedHttpsParameters(TypedDict, total=False): class ValidateCustomDomainInput(TypedDict, total=False): """Input of the custom domain to be validated for DNS mapping. - :ivar host_name: The host name of the custom domain. Must be a domain name. Required. - :vartype host_name: str + :ivar hostName: The host name of the custom domain. Must be a domain name. Required. + :vartype hostName: str """ hostName: Required[str] @@ -4820,8 +5111,8 @@ class ValidateCustomDomainInput(TypedDict, total=False): class ValidateProbeInput(TypedDict, total=False): """Input of the validate probe API. - :ivar probe_url: The probe URL to validate. Required. - :vartype probe_url: str + :ivar probeURL: The probe URL to validate. Required. + :vartype probeURL: str """ probeURL: Required[str] @@ -4831,21 +5122,22 @@ class ValidateProbeInput(TypedDict, total=False): class ValidateSecretInput(TypedDict, total=False): """Input of the secret to be validated. - :ivar secret_type: The secret type. Required. Known values are: "UrlSigningKey", - "CustomerCertificate", "ManagedCertificate", and "AzureFirstPartyManagedCertificate". - :vartype secret_type: Union[str, "SecretType"] - :ivar secret_source: Resource reference to the Azure Key Vault secret. Expected to be in format + :ivar secretType: The secret type. Required. Known values are: "UrlSigningKey", + "CustomerCertificate", "ManagedCertificate", "AzureFirstPartyManagedCertificate", and + "MtlsCertificateChain". + :vartype secretType: Union[str, "SecretType"] + :ivar secretSource: Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}. Required. - :vartype secret_source: "ResourceReference" - :ivar secret_version: Secret version, if customer is using a specific version. - :vartype secret_version: str + :vartype secretSource: "ResourceReference" + :ivar secretVersion: Secret version, if customer is using a specific version. + :vartype secretVersion: str """ secretType: Required[Union[str, "SecretType"]] """The secret type. Required. Known values are: \"UrlSigningKey\", \"CustomerCertificate\", - \"ManagedCertificate\", and \"AzureFirstPartyManagedCertificate\".""" + \"ManagedCertificate\", \"AzureFirstPartyManagedCertificate\", and \"MtlsCertificateChain\".""" secretSource: Required["ResourceReference"] """Resource reference to the Azure Key Vault secret. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}. @@ -4854,15 +5146,36 @@ class ValidateSecretInput(TypedDict, total=False): """Secret version, if customer is using a specific version.""" +AFDDomainMtlsParameters = Union[ + ClientCertificateRequiredAndOriginValidatesAdvancedSettings, + ClientCertificateRequiredAndValidatedAdvancedSettings, + ClientCertificateValidatedIfPresentedAdvancedSettings, + CompleteMtlsPassthroughToOriginAdvancedSettings, +] SecretParameters = Union[ AzureFirstPartyManagedCertificateParameters, CustomerCertificateParameters, ManagedCertificateParameters, + AfdSecretMtlsCertificateChain, UrlSigningKeyParameters, ] +DeliveryRuleAction = Union[ + AfdUrlSigningAction, + DeliveryRuleCacheExpirationAction, + DeliveryRuleCacheKeyQueryStringAction, + EdgeAction, + DeliveryRuleRequestHeaderAction, + DeliveryRuleResponseHeaderAction, + OriginGroupOverrideAction, + DeliveryRuleRouteConfigurationOverrideAction, + UrlRedirectAction, + UrlRewriteAction, + UrlSigningAction, +] DeliveryRuleActionParameters = Union[ CacheExpirationActionParameters, CacheKeyQueryStringActionParameters, + DeliveryRuleEdgeActionParameters, HeaderActionParameters, OriginGroupOverrideActionParameters, RouteConfigurationOverrideActionParameters, @@ -4893,17 +5206,6 @@ class ValidateSecretInput(TypedDict, total=False): UrlFileNameMatchConditionParameters, UrlPathMatchConditionParameters, ] -DeliveryRuleAction = Union[ - DeliveryRuleCacheExpirationAction, - DeliveryRuleCacheKeyQueryStringAction, - DeliveryRuleRequestHeaderAction, - DeliveryRuleResponseHeaderAction, - OriginGroupOverrideAction, - DeliveryRuleRouteConfigurationOverrideAction, - UrlRedirectAction, - UrlRewriteAction, - UrlSigningAction, -] DeliveryRuleCondition = Union[ DeliveryRuleClientPortCondition, DeliveryRuleCookiesCondition, diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_create.py index f60b460b29ac..b15bd58afbdd 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_create.py @@ -46,6 +46,8 @@ def main(): "cipherSuiteSetForTls13": ["TLS_AES_128_GCM_SHA256", "TLS_AES_256_GCM_SHA384"], }, "minimumTlsVersion": "TLS12", + "serverTlsGroupPolicy": "Custom", + "serverTlsGroups": ["X25519MLKEM768", "SecP256r1MLKEM768", "X25519", "prime256v1"], }, } }, @@ -53,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDCustomDomains_Create.json +# x-ms-original-file: 2026-07-01/AFDCustomDomains_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_delete.py index 2c14e4872438..4f0d81a16a26 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/AFDCustomDomains_Delete.json +# x-ms-original-file: 2026-07-01/AFDCustomDomains_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_get.py index ed9b471152c5..14009bc9f589 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDCustomDomains_Get.json +# x-ms-original-file: 2026-07-01/AFDCustomDomains_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_list_by_profile.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_list_by_profile.py index b28e352a505f..ab6db14ea4fb 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_list_by_profile.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_list_by_profile.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/AFDCustomDomains_ListByProfile.json +# x-ms-original-file: 2026-07-01/AFDCustomDomains_ListByProfile.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_refresh_validation_token.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_refresh_validation_token.py index 64cf0375de34..9d3de999da04 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_refresh_validation_token.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_refresh_validation_token.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/AFDCustomDomains_RefreshValidationToken.json +# x-ms-original-file: 2026-07-01/AFDCustomDomains_RefreshValidationToken.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_update.py index 4d2de0dd417f..309d3a25b99d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_custom_domains_update.py @@ -45,6 +45,8 @@ def main(): "cipherSuiteSetForTls13": ["TLS_AES_128_GCM_SHA256", "TLS_AES_256_GCM_SHA384"], }, "minimumTlsVersion": "TLS12", + "serverTlsGroupPolicy": "Custom", + "serverTlsGroups": ["X25519MLKEM768", "SecP256r1MLKEM768", "X25519", "prime256v1"], }, } }, @@ -52,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDCustomDomains_Update.json +# x-ms-original-file: 2026-07-01/AFDCustomDomains_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_create.py index 2eee76b158db..bcbc52571294 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_create.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDEndpoints_Create.json +# x-ms-original-file: 2026-07-01/AFDEndpoints_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_delete.py index 13e0faec5088..caab64d78dcd 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/AFDEndpoints_Delete.json +# x-ms-original-file: 2026-07-01/AFDEndpoints_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_get.py index 9e1e49ff8c73..f92d955a641f 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDEndpoints_Get.json +# x-ms-original-file: 2026-07-01/AFDEndpoints_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_list_by_profile.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_list_by_profile.py index a8a168b1f987..02159f95a540 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_list_by_profile.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_list_by_profile.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/AFDEndpoints_ListByProfile.json +# x-ms-original-file: 2026-07-01/AFDEndpoints_ListByProfile.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_list_resource_usage.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_list_resource_usage.py index 9300ec6a3fec..f8213932df6a 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_list_resource_usage.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_list_resource_usage.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/AFDEndpoints_ListResourceUsage.json +# x-ms-original-file: 2026-07-01/AFDEndpoints_ListResourceUsage.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_purge_content.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_purge_content.py index daeeddc96a59..1e6757247976 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_purge_content.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_purge_content.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/AFDEndpoints_PurgeContent.json +# x-ms-original-file: 2026-07-01/AFDEndpoints_PurgeContent.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_update.py index 7641c0401e08..a27be88bda67 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_update.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDEndpoints_Update.json +# x-ms-original-file: 2026-07-01/AFDEndpoints_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_validate_custom_domain.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_validate_custom_domain.py index 882bcd10d733..a5158a11ab9d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_validate_custom_domain.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_endpoints_validate_custom_domain.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDEndpoints_ValidateCustomDomain.json +# x-ms-original-file: 2026-07-01/AFDEndpoints_ValidateCustomDomain.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_create.py index 44bbf7cd26a3..6b6b9b40d233 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_create.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDOriginGroups_Create.json +# x-ms-original-file: 2026-07-01/AFDOriginGroups_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_delete.py index f7342bbcb569..c865847b1742 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/AFDOriginGroups_Delete.json +# x-ms-original-file: 2026-07-01/AFDOriginGroups_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_get.py index 77c0f50a5e09..92d329efc2ac 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDOriginGroups_Get.json +# x-ms-original-file: 2026-07-01/AFDOriginGroups_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_list_by_profile.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_list_by_profile.py index 6874504fa95b..cd3fc69531e3 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_list_by_profile.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_list_by_profile.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/AFDOriginGroups_ListByProfile.json +# x-ms-original-file: 2026-07-01/AFDOriginGroups_ListByProfile.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_list_resource_usage.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_list_resource_usage.py index 59852eb1acc2..d61ae1b37a9b 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_list_resource_usage.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_list_resource_usage.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/AFDOriginGroups_ListResourceUsage.json +# x-ms-original-file: 2026-07-01/AFDOriginGroups_ListResourceUsage.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_update.py index e1d329a354dd..77fcb5c24288 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origin_groups_update.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDOriginGroups_Update.json +# x-ms-original-file: 2026-07-01/AFDOriginGroups_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create.py index 1f734cc2cd71..30b816d3a46d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDOrigins_Create.json +# x-ms-original-file: 2026-07-01/AFDOrigins_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_custom_certificate_subject.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_custom_certificate_subject.py new file mode 100644 index 000000000000..26da9e84a5dc --- /dev/null +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_custom_certificate_subject.py @@ -0,0 +1,56 @@ +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.cdn import CdnManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cdn +# USAGE + python afd_origins_create_custom_certificate_subject.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CdnManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.afd_origins.begin_create( + resource_group_name="RG", + profile_name="profile1", + origin_group_name="origingroup1", + origin_name="origin1", + origin={ + "properties": { + "certificateNameCheckValidationMode": "CustomCertificateSubject", + "customCertificateSubjects": ["host1.foo.com", "*.foo.com"], + "enabledState": "Enabled", + "enforceCertificateNameCheck": True, + "hostName": "host1.blob.core.windows.net", + "httpPort": 80, + "httpsPort": 443, + "originHostHeader": "host1.foo.com", + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-01/AFDOrigins_Create_CustomCertificateSubject.json +if __name__ == "__main__": + main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_origin_hostname.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_origin_hostname.py new file mode 100644 index 000000000000..50bc5f97eaac --- /dev/null +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_origin_hostname.py @@ -0,0 +1,55 @@ +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.cdn import CdnManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cdn +# USAGE + python afd_origins_create_origin_hostname.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CdnManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.afd_origins.begin_create( + resource_group_name="RG", + profile_name="profile1", + origin_group_name="origingroup1", + origin_name="origin1", + origin={ + "properties": { + "certificateNameCheckValidationMode": "OriginHostname", + "enabledState": "Enabled", + "enforceCertificateNameCheck": True, + "hostName": "host1.blob.core.windows.net", + "httpPort": 80, + "httpsPort": 443, + "originHostHeader": "host1.foo.com", + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-01/AFDOrigins_Create_OriginHostname.json +if __name__ == "__main__": + main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_with_incoming_host_header_validation.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_with_incoming_host_header_validation.py new file mode 100644 index 000000000000..8e3e440ae7c1 --- /dev/null +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_create_with_incoming_host_header_validation.py @@ -0,0 +1,55 @@ +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.cdn import CdnManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cdn +# USAGE + python afd_origins_create_with_incoming_host_header_validation.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CdnManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.afd_origins.begin_create( + resource_group_name="RG", + profile_name="profile1", + origin_group_name="origingroup1", + origin_name="origin1", + origin={ + "properties": { + "certificateNameCheckValidationMode": "IncomingHostHeader", + "enabledState": "Enabled", + "enforceCertificateNameCheck": True, + "hostName": "host1.blob.core.windows.net", + "httpPort": 80, + "httpsPort": 443, + "originHostHeader": "www.contoso.com", + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-01/AFDOrigins_CreateWithIncomingHostHeaderValidation.json +if __name__ == "__main__": + main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_delete.py index 65db4470d60c..354daae32b38 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/AFDOrigins_Delete.json +# x-ms-original-file: 2026-07-01/AFDOrigins_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_get.py index 9620317e29a5..f3994a68aed0 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDOrigins_Get.json +# x-ms-original-file: 2026-07-01/AFDOrigins_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_list_by_origin_group.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_list_by_origin_group.py index c25a2d0ff930..702de2d64755 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_list_by_origin_group.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_list_by_origin_group.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/AFDOrigins_ListByOriginGroup.json +# x-ms-original-file: 2026-07-01/AFDOrigins_ListByOriginGroup.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update.py index 497e44f1a138..a6bc2abb7852 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDOrigins_Update.json +# x-ms-original-file: 2026-07-01/AFDOrigins_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update_custom_certificate_subject.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update_custom_certificate_subject.py new file mode 100644 index 000000000000..3c18174492fe --- /dev/null +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update_custom_certificate_subject.py @@ -0,0 +1,56 @@ +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.cdn import CdnManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cdn +# USAGE + python afd_origins_update_custom_certificate_subject.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CdnManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.afd_origins.begin_update( + resource_group_name="RG", + profile_name="profile1", + origin_group_name="origingroup1", + origin_name="origin1", + origin_update_properties={ + "properties": { + "certificateNameCheckValidationMode": "CustomCertificateSubject", + "customCertificateSubjects": ["host1.foo.com", "*.foo.com"], + "enabledState": "Enabled", + "enforceCertificateNameCheck": True, + "hostName": "host1.blob.core.windows.net", + "httpPort": 80, + "httpsPort": 443, + "originHostHeader": "host1.foo.com", + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-01/AFDOrigins_Update_CustomCertificateSubject.json +if __name__ == "__main__": + main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update_origin_hostname.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update_origin_hostname.py new file mode 100644 index 000000000000..8fffb20aec25 --- /dev/null +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_origins_update_origin_hostname.py @@ -0,0 +1,55 @@ +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.cdn import CdnManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cdn +# USAGE + python afd_origins_update_origin_hostname.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CdnManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.afd_origins.begin_update( + resource_group_name="RG", + profile_name="profile1", + origin_group_name="origingroup1", + origin_name="origin1", + origin_update_properties={ + "properties": { + "certificateNameCheckValidationMode": "OriginHostname", + "enabledState": "Enabled", + "enforceCertificateNameCheck": True, + "hostName": "host1.blob.core.windows.net", + "httpPort": 80, + "httpsPort": 443, + "originHostHeader": "host1.foo.com", + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-01/AFDOrigins_Update_OriginHostname.json +if __name__ == "__main__": + main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_check_endpoint_name_availability.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_check_endpoint_name_availability.py index 54ccc0d28375..4027a2138839 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_check_endpoint_name_availability.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_check_endpoint_name_availability.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDProfiles_CheckEndpointNameAvailability.json +# x-ms-original-file: 2026-07-01/AFDProfiles_CheckEndpointNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_check_host_name_availability.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_check_host_name_availability.py index 62141b9a7fc9..86358d268a38 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_check_host_name_availability.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_check_host_name_availability.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDProfiles_CheckHostNameAvailability.json +# x-ms-original-file: 2026-07-01/AFDProfiles_CheckHostNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_list_resource_usage.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_list_resource_usage.py index 90534c6442ee..601866e0780e 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_list_resource_usage.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_list_resource_usage.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/AFDProfiles_ListResourceUsage.json +# x-ms-original-file: 2026-07-01/AFDProfiles_ListResourceUsage.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_upgrade.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_upgrade.py index e777491e2549..8025fd8050b7 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_upgrade.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_upgrade.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDProfiles_Upgrade.json +# x-ms-original-file: 2026-07-01/AFDProfiles_Upgrade.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_validate_secret.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_validate_secret.py index 0991ac58003c..1d413b6e7996 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_validate_secret.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/afd_profiles_validate_secret.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/AFDProfiles_ValidateSecret.json +# x-ms-original-file: 2026-07-01/AFDProfiles_ValidateSecret.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/cdn_profiles_can_migrate.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/cdn_profiles_can_migrate.py index 7b528e262254..8da29887dae9 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/cdn_profiles_can_migrate.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/cdn_profiles_can_migrate.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CdnProfiles_CanMigrate.json +# x-ms-original-file: 2026-07-01/CdnProfiles_CanMigrate.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/cdn_profiles_migrate.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/cdn_profiles_migrate.py index 0b8872655e63..556b56f00660 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/cdn_profiles_migrate.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/cdn_profiles_migrate.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CdnProfiles_Migrate.json +# x-ms-original-file: 2026-07-01/CdnProfiles_Migrate.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/check_endpoint_name_availability.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/check_endpoint_name_availability.py index 897480cddd9d..71faa4d58304 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/check_endpoint_name_availability.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/check_endpoint_name_availability.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CheckEndpointNameAvailability.json +# x-ms-original-file: 2026-07-01/CheckEndpointNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/check_name_availability.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/check_name_availability.py index 92e062c55681..b14c74e654c9 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/check_name_availability.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/check_name_availability.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CheckNameAvailability.json +# x-ms-original-file: 2026-07-01/CheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/check_name_availability_with_subscription.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/check_name_availability_with_subscription.py index 27c774a5850d..a8e2a58c75ce 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/check_name_availability_with_subscription.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/check_name_availability_with_subscription.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CheckNameAvailabilityWithSubscription.json +# x-ms-original-file: 2026-07-01/CheckNameAvailabilityWithSubscription.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_create.py index 505579cf3ee5..b3ce508390f6 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_create.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CustomDomains_Create.json +# x-ms-original-file: 2026-07-01/CustomDomains_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_delete.py index 474d061ec19f..1a31d2c1fe9d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_delete.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CustomDomains_Delete.json +# x-ms-original-file: 2026-07-01/CustomDomains_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_disable_custom_https.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_disable_custom_https.py index 5d5698ccc2af..7f558ed85377 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_disable_custom_https.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_disable_custom_https.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CustomDomains_DisableCustomHttps.json +# x-ms-original-file: 2026-07-01/CustomDomains_DisableCustomHttps.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_enable_custom_https_using_byoc.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_enable_custom_https_using_byoc.py index 50e9fc466aec..2f1d92c9c05f 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_enable_custom_https_using_byoc.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_enable_custom_https_using_byoc.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CustomDomains_EnableCustomHttpsUsingBYOC.json +# x-ms-original-file: 2026-07-01/CustomDomains_EnableCustomHttpsUsingBYOC.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_enable_custom_https_using_cdn_managed_certificate.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_enable_custom_https_using_cdn_managed_certificate.py index 13fdb5648c67..b6b6fb592c2d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_enable_custom_https_using_cdn_managed_certificate.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_enable_custom_https_using_cdn_managed_certificate.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate.json +# x-ms-original-file: 2026-07-01/CustomDomains_EnableCustomHttpsUsingCDNManagedCertificate.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_get.py index 1d86d4f62f5e..229d2432e2a7 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/CustomDomains_Get.json +# x-ms-original-file: 2026-07-01/CustomDomains_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_list_by_endpoint.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_list_by_endpoint.py index 417367cc77a6..b78e052b2a0b 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_list_by_endpoint.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_list_by_endpoint.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/CustomDomains_ListByEndpoint.json +# x-ms-original-file: 2026-07-01/CustomDomains_ListByEndpoint.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/edge_nodes_list.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/edge_nodes_list.py index 19e490a716bc..3bd21926c78d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/edge_nodes_list.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/edge_nodes_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/EdgeNodes_List.json +# x-ms-original-file: 2026-07-01/EdgeNodes_List.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_create.py index e9e49b1a8ad7..961b85021346 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_create.py @@ -155,6 +155,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Endpoints_Create.json +# x-ms-original-file: 2026-07-01/Endpoints_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_delete.py index 16e3ae1fedbe..32fbf6988ea6 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Endpoints_Delete.json +# x-ms-original-file: 2026-07-01/Endpoints_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_get.py index cf2b5ba66a2a..3a679ff169e8 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Endpoints_Get.json +# x-ms-original-file: 2026-07-01/Endpoints_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_list_by_profile.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_list_by_profile.py index 95222235933b..fd14775ac65a 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_list_by_profile.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_list_by_profile.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Endpoints_ListByProfile.json +# x-ms-original-file: 2026-07-01/Endpoints_ListByProfile.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_list_resource_usage.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_list_resource_usage.py index 52370a2c0f65..8dc92fa11b77 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_list_resource_usage.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_list_resource_usage.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Endpoints_ListResourceUsage.json +# x-ms-original-file: 2026-07-01/Endpoints_ListResourceUsage.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_load_content.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_load_content.py index 5ceb73144a9b..ee163946ecaf 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_load_content.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_load_content.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Endpoints_LoadContent.json +# x-ms-original-file: 2026-07-01/Endpoints_LoadContent.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_purge_content.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_purge_content.py index 5372638ce5e6..15d9271ebdc4 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_purge_content.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_purge_content.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Endpoints_PurgeContent.json +# x-ms-original-file: 2026-07-01/Endpoints_PurgeContent.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_start.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_start.py index 8c47e89e1c18..a6ac56dc5520 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_start.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_start.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Endpoints_Start.json +# x-ms-original-file: 2026-07-01/Endpoints_Start.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_stop.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_stop.py index be89597a8fc7..6122e7546e46 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_stop.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_stop.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Endpoints_Stop.json +# x-ms-original-file: 2026-07-01/Endpoints_Stop.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_update.py index d88a733e2364..9239d90c5b8d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_update.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Endpoints_Update.json +# x-ms-original-file: 2026-07-01/Endpoints_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_validate_custom_domain.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_validate_custom_domain.py index 2dbac611d63f..2797f9a078a0 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_validate_custom_domain.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/endpoints_validate_custom_domain.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Endpoints_ValidateCustomDomain.json +# x-ms-original-file: 2026-07-01/Endpoints_ValidateCustomDomain.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_locations.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_locations.py index 683125e6b161..6f96fe4265de 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_locations.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_locations.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/LogAnalytics_GetLogAnalyticsLocations.json +# x-ms-original-file: 2026-07-01/LogAnalytics_GetLogAnalyticsLocations.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_metrics.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_metrics.py index 7cf06860abd1..7af7173b951a 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_metrics.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_metrics.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/LogAnalytics_GetLogAnalyticsMetrics.json +# x-ms-original-file: 2026-07-01/LogAnalytics_GetLogAnalyticsMetrics.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_rankings.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_rankings.py index 410d37f9991e..2625fae591ab 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_rankings.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_rankings.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/LogAnalytics_GetLogAnalyticsRankings.json +# x-ms-original-file: 2026-07-01/LogAnalytics_GetLogAnalyticsRankings.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_resources.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_resources.py index 2dacf9125e76..b690ea5730eb 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_resources.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_log_analytics_resources.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/LogAnalytics_GetLogAnalyticsResources.json +# x-ms-original-file: 2026-07-01/LogAnalytics_GetLogAnalyticsResources.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_waf_log_analytics_metrics.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_waf_log_analytics_metrics.py index 7e90063c9e7d..a884d93043dc 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_waf_log_analytics_metrics.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_waf_log_analytics_metrics.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/LogAnalytics_GetWafLogAnalyticsMetrics.json +# x-ms-original-file: 2026-07-01/LogAnalytics_GetWafLogAnalyticsMetrics.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_waf_log_analytics_rankings.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_waf_log_analytics_rankings.py index 559e1655f4b5..422bc6c4808d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_waf_log_analytics_rankings.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/log_analytics_get_waf_log_analytics_rankings.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/LogAnalytics_GetWafLogAnalyticsRankings.json +# x-ms-original-file: 2026-07-01/LogAnalytics_GetWafLogAnalyticsRankings.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/operations_list.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/operations_list.py index 3d0144f41e48..46a1c2bc6f23 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/operations_list.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/operations_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Operations_List.json +# x-ms-original-file: 2026-07-01/Operations_List.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_create.py index 05439e30a45c..5afc6bb489db 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_create.py @@ -59,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/OriginGroups_Create.json +# x-ms-original-file: 2026-07-01/OriginGroups_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_delete.py index 52decf0a392e..15c8ffd0cb42 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/OriginGroups_Delete.json +# x-ms-original-file: 2026-07-01/OriginGroups_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_get.py index 6c3218c31545..e9d06e255726 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/OriginGroups_Get.json +# x-ms-original-file: 2026-07-01/OriginGroups_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_list_by_endpoint.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_list_by_endpoint.py index 1786f6a01382..19997c3bf34e 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_list_by_endpoint.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_list_by_endpoint.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/OriginGroups_ListByEndpoint.json +# x-ms-original-file: 2026-07-01/OriginGroups_ListByEndpoint.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_update.py index 69a9e03d1021..1de117819835 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origin_groups_update.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/OriginGroups_Update.json +# x-ms-original-file: 2026-07-01/OriginGroups_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_create.py index 15d2b78751a8..05a9e8fdcff1 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_create.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Origins_Create.json +# x-ms-original-file: 2026-07-01/Origins_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_delete.py index 5efaa1f006e5..d0b11fc607f2 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Origins_Delete.json +# x-ms-original-file: 2026-07-01/Origins_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_get.py index 41b6b57f72fa..9b86a7099b67 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Origins_Get.json +# x-ms-original-file: 2026-07-01/Origins_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_list_by_endpoint.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_list_by_endpoint.py index 92973d3c0256..3abd978a1322 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_list_by_endpoint.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_list_by_endpoint.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Origins_ListByEndpoint.json +# x-ms-original-file: 2026-07-01/Origins_ListByEndpoint.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_update.py index 29b9024163af..f21f99519f7a 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/origins_update.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Origins_Update.json +# x-ms-original-file: 2026-07-01/Origins_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_can_migrate.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_can_migrate.py index be7fbf74dd20..722c89656303 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_can_migrate.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_can_migrate.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Profiles_CanMigrate.json +# x-ms-original-file: 2026-07-01/Profiles_CanMigrate.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_create.py index 9ac355d58064..eefad5be2c19 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Profiles_Create.json +# x-ms-original-file: 2026-07-01/Profiles_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_delete.py index e68b9cd37860..3472d8d54234 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Profiles_Delete.json +# x-ms-original-file: 2026-07-01/Profiles_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_generate_sso_uri.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_generate_sso_uri.py index 8d1bbbb6b75e..8251734143ad 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_generate_sso_uri.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_generate_sso_uri.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Profiles_GenerateSsoUri.json +# x-ms-original-file: 2026-07-01/Profiles_GenerateSsoUri.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_get.py index a788cb239e02..ed54722096ec 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Profiles_Get.json +# x-ms-original-file: 2026-07-01/Profiles_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list.py index ca984dd723c9..92bdb4e48f96 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Profiles_List.json +# x-ms-original-file: 2026-07-01/Profiles_List.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_by_resource_group.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_by_resource_group.py index 1b333c0a767d..484a8624335f 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_by_resource_group.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Profiles_ListByResourceGroup.json +# x-ms-original-file: 2026-07-01/Profiles_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_resource_usage.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_resource_usage.py index 165ecad8e605..6199e4a47a62 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_resource_usage.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_resource_usage.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Profiles_ListResourceUsage.json +# x-ms-original-file: 2026-07-01/Profiles_ListResourceUsage.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_supported_optimization_types.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_supported_optimization_types.py index 5780f1978092..406e8938d63f 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_supported_optimization_types.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_list_supported_optimization_types.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Profiles_ListSupportedOptimizationTypes.json +# x-ms-original-file: 2026-07-01/Profiles_ListSupportedOptimizationTypes.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migrate.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migrate.py index 528dbebc8a82..c6c8e1c43950 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migrate.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migrate.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Profiles_Migrate.json +# x-ms-original-file: 2026-07-01/Profiles_Migrate.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migration_abort.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migration_abort.py index a2e7472cb632..ecb59e9010b6 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migration_abort.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migration_abort.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Profiles_MigrationAbort.json +# x-ms-original-file: 2026-07-01/Profiles_MigrationAbort.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migration_commit.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migration_commit.py index 4fd152ae373f..c6659d1cf007 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migration_commit.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_migration_commit.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Profiles_MigrationCommit.json +# x-ms-original-file: 2026-07-01/Profiles_MigrationCommit.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_update.py index 2029d3dce6be..beea752c6095 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/profiles_update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Profiles_Update.json +# x-ms-original-file: 2026-07-01/Profiles_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/resource_usage_list.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/resource_usage_list.py index 5220eb28e044..39147418fe0a 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/resource_usage_list.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/resource_usage_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/ResourceUsage_List.json +# x-ms-original-file: 2026-07-01/ResourceUsage_List.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_create.py index 989808c170b2..2b1946b2e4d5 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_create.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Routes_Create.json +# x-ms-original-file: 2026-07-01/Routes_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_delete.py index e5e7b8bfc56a..4fe31922a0c2 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Routes_Delete.json +# x-ms-original-file: 2026-07-01/Routes_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_get.py index b904f9da244a..1e6fb97688f6 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Routes_Get.json +# x-ms-original-file: 2026-07-01/Routes_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_list_by_endpoint.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_list_by_endpoint.py index f643d84568ff..d56abd7d5c58 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_list_by_endpoint.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_list_by_endpoint.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Routes_ListByEndpoint.json +# x-ms-original-file: 2026-07-01/Routes_ListByEndpoint.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_update.py index 8545a7c52c5b..9b4ec8eea315 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/routes_update.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Routes_Update.json +# x-ms-original-file: 2026-07-01/Routes_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_create.py index 7e112e4871c1..75e056c1840f 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/RuleSets_Create.json +# x-ms-original-file: 2026-07-01/RuleSets_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_delete.py index dda301f56cff..8937fe89ee68 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/RuleSets_Delete.json +# x-ms-original-file: 2026-07-01/RuleSets_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_get.py index efa2c12a9a08..c696543606c3 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/RuleSets_Get.json +# x-ms-original-file: 2026-07-01/RuleSets_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_list_by_profile.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_list_by_profile.py index a2e3e548cbb0..cfc749ebd6fb 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_list_by_profile.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_list_by_profile.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/RuleSets_ListByProfile.json +# x-ms-original-file: 2026-07-01/RuleSets_ListByProfile.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_list_resource_usage.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_list_resource_usage.py index 2ad38594faec..f87ce0f17617 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_list_resource_usage.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rule_sets_list_resource_usage.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/RuleSets_ListResourceUsage.json +# x-ms-original-file: 2026-07-01/RuleSets_ListResourceUsage.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_create.py index e60dddb75e24..ed1b2e321349 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_create.py @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Rules_Create.json +# x-ms-original-file: 2026-07-01/Rules_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_delete.py index 3fa3281c6d7e..e47ee244ae75 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Rules_Delete.json +# x-ms-original-file: 2026-07-01/Rules_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_get.py index 2d1fd2db3254..83d0b1281ab5 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Rules_Get.json +# x-ms-original-file: 2026-07-01/Rules_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_list_by_rule_set.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_list_by_rule_set.py index e84bf585dbf0..adcd400dfbdd 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_list_by_rule_set.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_list_by_rule_set.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Rules_ListByRuleSet.json +# x-ms-original-file: 2026-07-01/Rules_ListByRuleSet.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_update.py index 932c991196f6..0f3fc82793f7 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/rules_update.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Rules_Update.json +# x-ms-original-file: 2026-07-01/Rules_Update.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create.py index 9a32b3602897..a021e335a073 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Secrets_Create.json +# x-ms-original-file: 2026-07-01/Secrets_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create_customer_certificate_type.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create_customer_certificate_type.py new file mode 100644 index 000000000000..d7cf774276de --- /dev/null +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create_customer_certificate_type.py @@ -0,0 +1,56 @@ +# pylint: disable=line-too-long,useless-suppression +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.cdn import CdnManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cdn +# USAGE + python secrets_create_customer_certificate_type.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CdnManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.secrets.begin_create( + resource_group_name="RG", + profile_name="profile1", + secret_name="secret1", + secret={ + "properties": { + "parameters": { + "secretSource": { + "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/secrets/certificatename" + }, + "secretVersion": "abcdef1234578900abcdef1234567890", + "type": "CustomerCertificate", + "useLatestVersion": False, + } + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-01/Secrets_CreateCustomerCertificateType.json +if __name__ == "__main__": + main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create_url_signing_key_type.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create_url_signing_key_type.py new file mode 100644 index 000000000000..0979426452e1 --- /dev/null +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_create_url_signing_key_type.py @@ -0,0 +1,56 @@ +# pylint: disable=line-too-long,useless-suppression +# 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) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.cdn import CdnManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-cdn +# USAGE + python secrets_create_url_signing_key_type.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = CdnManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.secrets.begin_create( + resource_group_name="RG", + profile_name="profile1", + secret_name="secret1", + secret={ + "properties": { + "parameters": { + "keyId": "customKeyId", + "secretSource": { + "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/secrets/urlsigningkeyname" + }, + "secretVersion": "abcdef1234578900abcdef1234567890", + "type": "UrlSigningKey", + } + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-01/Secrets_CreateUrlSigningKeyType.json +if __name__ == "__main__": + main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_delete.py index edf3855ea446..14effa31eed9 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/Secrets_Delete.json +# x-ms-original-file: 2026-07-01/Secrets_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_get.py index 5831e64be087..a6fb363d1883 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/Secrets_Get.json +# x-ms-original-file: 2026-07-01/Secrets_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_list_by_profile.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_list_by_profile.py index efd1c3376da0..454b65c06daf 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_list_by_profile.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/secrets_list_by_profile.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/Secrets_ListByProfile.json +# x-ms-original-file: 2026-07-01/Secrets_ListByProfile.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_create.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_create.py index aa0d84a71dfd..b7c2a90d57cc 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_create.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_create.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/SecurityPolicies_Create.json +# x-ms-original-file: 2026-07-01/SecurityPolicies_Create.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_delete.py index 9f8953f48b08..46781962ae6a 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-12-01/SecurityPolicies_Delete.json +# x-ms-original-file: 2026-07-01/SecurityPolicies_Delete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_get.py index 09a7b8b8c45a..93a108c2b4d3 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/SecurityPolicies_Get.json +# x-ms-original-file: 2026-07-01/SecurityPolicies_Get.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_list_by_profile.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_list_by_profile.py index 9ff982108c3e..a23adbb574e3 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_list_by_profile.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_list_by_profile.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/SecurityPolicies_ListByProfile.json +# x-ms-original-file: 2026-07-01/SecurityPolicies_ListByProfile.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_patch.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_patch.py index d9e5ae1f7b25..40e24cdea0df 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_patch.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/security_policies_patch.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/SecurityPolicies_Patch.json +# x-ms-original-file: 2026-07-01/SecurityPolicies_Patch.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/validate_probe.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/validate_probe.py index baebcfadb53e..8a4946f25790 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/validate_probe.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/validate_probe.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/ValidateProbe.json +# x-ms-original-file: 2026-07-01/ValidateProbe.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_list_managed_rule_sets.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_list_managed_rule_sets.py index 4c320ad1676b..f79189cbff13 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_list_managed_rule_sets.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_list_managed_rule_sets.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/WafListManagedRuleSets.json +# x-ms-original-file: 2026-07-01/WafListManagedRuleSets.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_list_policies.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_list_policies.py index a0e13b627fc8..f00b9e8e2d2a 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_list_policies.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_list_policies.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-12-01/WafListPolicies.json +# x-ms-original-file: 2026-07-01/WafListPolicies.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_patch_policy.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_patch_policy.py index 55d072a1f1cf..1c953def070f 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_patch_policy.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_patch_policy.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/WafPatchPolicy.json +# x-ms-original-file: 2026-07-01/WafPatchPolicy.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_create_or_update.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_create_or_update.py index 01398316e7c5..09ad0454473c 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_create_or_update.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_create_or_update.py @@ -124,6 +124,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/WafPolicyCreateOrUpdate.json +# x-ms-original-file: 2026-07-01/WafPolicyCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_delete.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_delete.py index 0af172f9983f..2ca3130d410d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_delete.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2025-12-01/WafPolicyDelete.json +# x-ms-original-file: 2026-07-01/WafPolicyDelete.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_get.py b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_get.py index 169f918543ce..ca83abdb5e72 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_get.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_samples/waf_policy_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-12-01/WafPolicyGet.json +# x-ms-original-file: 2026-07-01/WafPolicyGet.json if __name__ == "__main__": main() diff --git a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_custom_domains_operations.py b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_custom_domains_operations.py index f6bc7cb1af8b..02655d724e2e 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_custom_domains_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_custom_domains_operations.py @@ -46,6 +46,7 @@ def test_afd_custom_domains_begin_create(self, resource_group): "deploymentStatus": "str", "domainValidationState": "str", "extendedProperties": {"str": "str"}, + "mtlsSettings": "afd_domain_mtls_parameters", "preValidatedCustomDomainResourceId": {"id": "str"}, "profileName": "str", "provisioningState": "str", @@ -58,6 +59,8 @@ def test_afd_custom_domains_begin_create(self, resource_group): }, "minimumTlsVersion": "str", "secret": {"id": "str"}, + "serverTlsGroupPolicy": "str", + "serverTlsGroups": ["str"], }, "validationProperties": {"expirationDate": "str", "validationToken": "str"}, }, @@ -86,6 +89,7 @@ def test_afd_custom_domains_begin_update(self, resource_group): custom_domain_update_properties={ "properties": { "azureDnsZone": {"id": "str"}, + "mtlsSettings": "afd_domain_mtls_parameters", "preValidatedCustomDomainResourceId": {"id": "str"}, "profileName": "str", "tlsSettings": { @@ -97,6 +101,8 @@ def test_afd_custom_domains_begin_update(self, resource_group): }, "minimumTlsVersion": "str", "secret": {"id": "str"}, + "serverTlsGroupPolicy": "str", + "serverTlsGroups": ["str"], }, } }, diff --git a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_custom_domains_operations_async.py b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_custom_domains_operations_async.py index 1d93a0be1074..fc012989f0f6 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_custom_domains_operations_async.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_custom_domains_operations_async.py @@ -48,6 +48,7 @@ async def test_afd_custom_domains_begin_create(self, resource_group): "deploymentStatus": "str", "domainValidationState": "str", "extendedProperties": {"str": "str"}, + "mtlsSettings": "afd_domain_mtls_parameters", "preValidatedCustomDomainResourceId": {"id": "str"}, "profileName": "str", "provisioningState": "str", @@ -60,6 +61,8 @@ async def test_afd_custom_domains_begin_create(self, resource_group): }, "minimumTlsVersion": "str", "secret": {"id": "str"}, + "serverTlsGroupPolicy": "str", + "serverTlsGroups": ["str"], }, "validationProperties": {"expirationDate": "str", "validationToken": "str"}, }, @@ -90,6 +93,7 @@ async def test_afd_custom_domains_begin_update(self, resource_group): custom_domain_update_properties={ "properties": { "azureDnsZone": {"id": "str"}, + "mtlsSettings": "afd_domain_mtls_parameters", "preValidatedCustomDomainResourceId": {"id": "str"}, "profileName": "str", "tlsSettings": { @@ -101,6 +105,8 @@ async def test_afd_custom_domains_begin_update(self, resource_group): }, "minimumTlsVersion": "str", "secret": {"id": "str"}, + "serverTlsGroupPolicy": "str", + "serverTlsGroups": ["str"], }, } }, diff --git a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_endpoints_operations.py b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_endpoints_operations.py index bb17d8377fe1..d8f16aa07ebc 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_endpoints_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_endpoints_operations.py @@ -45,6 +45,7 @@ def test_afd_endpoints_begin_create(self, resource_group): "autoGeneratedDomainNameLabelScope": "str", "deploymentStatus": "str", "enabledState": "str", + "enforceMtls": "str", "hostName": "str", "profileName": "str", "provisioningState": "str", @@ -73,7 +74,7 @@ def test_afd_endpoints_begin_update(self, resource_group): profile_name="str", endpoint_name="str", endpoint_update_properties={ - "properties": {"enabledState": "str", "profileName": "str"}, + "properties": {"enabledState": "str", "enforceMtls": "str", "profileName": "str"}, "tags": {"str": "str"}, }, ).result() # call '.result()' to poll until service return final result diff --git a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_endpoints_operations_async.py b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_endpoints_operations_async.py index 22e1f03e3e49..82655771f93b 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_endpoints_operations_async.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_endpoints_operations_async.py @@ -47,6 +47,7 @@ async def test_afd_endpoints_begin_create(self, resource_group): "autoGeneratedDomainNameLabelScope": "str", "deploymentStatus": "str", "enabledState": "str", + "enforceMtls": "str", "hostName": "str", "profileName": "str", "provisioningState": "str", @@ -77,7 +78,7 @@ async def test_afd_endpoints_begin_update(self, resource_group): profile_name="str", endpoint_name="str", endpoint_update_properties={ - "properties": {"enabledState": "str", "profileName": "str"}, + "properties": {"enabledState": "str", "enforceMtls": "str", "profileName": "str"}, "tags": {"str": "str"}, }, ) diff --git a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origin_groups_operations.py b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origin_groups_operations.py index ccfbcf8a3500..55d4e60eea05 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origin_groups_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origin_groups_operations.py @@ -41,7 +41,12 @@ def test_afd_origin_groups_begin_create(self, resource_group): "id": "str", "name": "str", "properties": { - "authentication": {"scope": "str", "type": "str", "userAssignedIdentity": {"id": "str"}}, + "authentication": { + "scope": "str", + "tokenDestinationHeader": "str", + "type": "str", + "userAssignedIdentity": {"id": "str"}, + }, "deploymentStatus": "str", "healthProbeSettings": { "probeIntervalInSeconds": 0, @@ -83,7 +88,12 @@ def test_afd_origin_groups_begin_update(self, resource_group): origin_group_name="str", origin_group_update_properties={ "properties": { - "authentication": {"scope": "str", "type": "str", "userAssignedIdentity": {"id": "str"}}, + "authentication": { + "scope": "str", + "tokenDestinationHeader": "str", + "type": "str", + "userAssignedIdentity": {"id": "str"}, + }, "healthProbeSettings": { "probeIntervalInSeconds": 0, "probePath": "str", diff --git a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origin_groups_operations_async.py b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origin_groups_operations_async.py index 5abc00b75a42..ec16e09f3b56 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origin_groups_operations_async.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origin_groups_operations_async.py @@ -43,7 +43,12 @@ async def test_afd_origin_groups_begin_create(self, resource_group): "id": "str", "name": "str", "properties": { - "authentication": {"scope": "str", "type": "str", "userAssignedIdentity": {"id": "str"}}, + "authentication": { + "scope": "str", + "tokenDestinationHeader": "str", + "type": "str", + "userAssignedIdentity": {"id": "str"}, + }, "deploymentStatus": "str", "healthProbeSettings": { "probeIntervalInSeconds": 0, @@ -87,7 +92,12 @@ async def test_afd_origin_groups_begin_update(self, resource_group): origin_group_name="str", origin_group_update_properties={ "properties": { - "authentication": {"scope": "str", "type": "str", "userAssignedIdentity": {"id": "str"}}, + "authentication": { + "scope": "str", + "tokenDestinationHeader": "str", + "type": "str", + "userAssignedIdentity": {"id": "str"}, + }, "healthProbeSettings": { "probeIntervalInSeconds": 0, "probePath": "str", diff --git a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origins_operations.py b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origins_operations.py index 441fba637a90..48a261c0831d 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origins_operations.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origins_operations.py @@ -44,6 +44,8 @@ def test_afd_origins_begin_create(self, resource_group): "name": "str", "properties": { "azureOrigin": {"id": "str"}, + "certificateNameCheckValidationMode": "str", + "customCertificateSubjects": ["str"], "deploymentStatus": "str", "enabledState": "str", "enforceCertificateNameCheck": bool, @@ -89,6 +91,8 @@ def test_afd_origins_begin_update(self, resource_group): origin_update_properties={ "properties": { "azureOrigin": {"id": "str"}, + "certificateNameCheckValidationMode": "str", + "customCertificateSubjects": ["str"], "enabledState": "str", "enforceCertificateNameCheck": bool, "hostName": "str", diff --git a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origins_operations_async.py b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origins_operations_async.py index ae8ef626ec8d..bef55e78ced6 100644 --- a/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origins_operations_async.py +++ b/sdk/cdn/azure-mgmt-cdn/generated_tests/test_cdn_management_afd_origins_operations_async.py @@ -46,6 +46,8 @@ async def test_afd_origins_begin_create(self, resource_group): "name": "str", "properties": { "azureOrigin": {"id": "str"}, + "certificateNameCheckValidationMode": "str", + "customCertificateSubjects": ["str"], "deploymentStatus": "str", "enabledState": "str", "enforceCertificateNameCheck": bool, @@ -93,6 +95,8 @@ async def test_afd_origins_begin_update(self, resource_group): origin_update_properties={ "properties": { "azureOrigin": {"id": "str"}, + "certificateNameCheckValidationMode": "str", + "customCertificateSubjects": ["str"], "enabledState": "str", "enforceCertificateNameCheck": bool, "hostName": "str", diff --git a/sdk/cdn/azure-mgmt-cdn/tsp-location.yaml b/sdk/cdn/azure-mgmt-cdn/tsp-location.yaml index d6e5ee4210b7..c5502744914b 100644 --- a/sdk/cdn/azure-mgmt-cdn/tsp-location.yaml +++ b/sdk/cdn/azure-mgmt-cdn/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/cdn/resource-manager/Microsoft.Cdn/Cdn -commit: 965041b72edd6a89003243f98e36c74ffbfc33c9 +commit: 3341e9a7c51cfeb60ebd1cf2c4c77dfc960352b9 repo: Azure/azure-rest-api-specs additionalDirectories: