Skip to content

Commit 51280f2

Browse files
[AutoRelease] t2-servicefabricmanagedclusters-2024-01-31-31185(can only be merged by SDK owner) (#34073)
* code and test * Update assets.json * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 2db6c1a commit 51280f2

File tree

89 files changed

+161
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+161
-127
lines changed

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release History
22

3+
## 2.0.0b6 (2024-02-22)
4+
5+
### Features Added
6+
7+
- Model ManagedCluster has a new parameter enable_http_gateway_exclusive_auth_mode
8+
- Model ManagedCluster has a new parameter http_gateway_token_auth_connection_port
9+
310
## 2.0.0b5 (2024-01-18)
411

512
### Features Added

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Service Fabric Managed Clusters Management Client Library.
4-
This package has been tested with Python 3.7+.
4+
This package has been tested with Python 3.8+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.7+ is required to use this package.
15+
- Python 3.8+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "164375e67a1bffb207bcf603772c289dbe42d7b5",
2+
"commit": "f3cd6922dbe117d78b4f719bbf8b03db46b30808",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters",
5-
"Tag": "python/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters_ea173c9b71"
5+
"Tag": "python/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters_fbd83d5704"
66
}

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ class ServiceFabricManagedClustersManagementClientConfiguration(
3131
:type credential: ~azure.core.credentials.TokenCredential
3232
:param subscription_id: The customer subscription identifier. Required.
3333
:type subscription_id: str
34-
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
34+
:keyword api_version: Api Version. Default value is "2023-12-01-preview". Note that overriding
3535
this default value may result in unsupported behavior.
3636
:paramtype api_version: str
3737
"""
3838

3939
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4040
super(ServiceFabricManagedClustersManagementClientConfiguration, self).__init__(**kwargs)
41-
api_version: str = kwargs.pop("api_version", "2023-11-01-preview")
41+
api_version: str = kwargs.pop("api_version", "2023-12-01-preview")
4242

4343
if credential is None:
4444
raise ValueError("Parameter 'credential' must not be None.")

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/_service_fabric_managed_clusters_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ServiceFabricManagedClustersManagementClient: # pylint: disable=client-ac
8989
:type subscription_id: str
9090
:param base_url: Service URL. Default value is "https://management.azure.com".
9191
:type base_url: str
92-
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
92+
:keyword api_version: Api Version. Default value is "2023-12-01-preview". Note that overriding
9393
this default value may result in unsupported behavior.
9494
:paramtype api_version: str
9595
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.0.0b5"
9+
VERSION = "2.0.0b6"

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ class ServiceFabricManagedClustersManagementClientConfiguration(
3131
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3232
:param subscription_id: The customer subscription identifier. Required.
3333
:type subscription_id: str
34-
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
34+
:keyword api_version: Api Version. Default value is "2023-12-01-preview". Note that overriding
3535
this default value may result in unsupported behavior.
3636
:paramtype api_version: str
3737
"""
3838

3939
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
4040
super(ServiceFabricManagedClustersManagementClientConfiguration, self).__init__(**kwargs)
41-
api_version: str = kwargs.pop("api_version", "2023-11-01-preview")
41+
api_version: str = kwargs.pop("api_version", "2023-12-01-preview")
4242

4343
if credential is None:
4444
raise ValueError("Parameter 'credential' must not be None.")

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/aio/_service_fabric_managed_clusters_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ServiceFabricManagedClustersManagementClient: # pylint: disable=client-ac
8989
:type subscription_id: str
9090
:param base_url: Service URL. Default value is "https://management.azure.com".
9191
:type base_url: str
92-
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
92+
:keyword api_version: Api Version. Default value is "2023-12-01-preview". Note that overriding
9393
this default value may result in unsupported behavior.
9494
:paramtype api_version: str
9595
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/models/_models_py3.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,6 +2233,13 @@ class ManagedCluster(Resource): # pylint: disable=too-many-instance-attributes
22332233
:ivar upgrade_description: The policy to use when upgrading the cluster.
22342234
:vartype upgrade_description:
22352235
~azure.mgmt.servicefabricmanagedclusters.models.ClusterUpgradePolicy
2236+
:ivar http_gateway_token_auth_connection_port: The port used for token-auth based HTTPS
2237+
connections to the cluster. Cannot be set to the same port as HttpGatewayEndpoint.
2238+
:vartype http_gateway_token_auth_connection_port: int
2239+
:ivar enable_http_gateway_exclusive_auth_mode: If true, token-based authentication is not
2240+
allowed on the HttpGatewayEndpoint. This is required to support TLS versions 1.3 and above. If
2241+
token-based authentication is used, HttpGatewayTokenAuthConnectionPort must be defined.
2242+
:vartype enable_http_gateway_exclusive_auth_mode: bool
22362243
"""
22372244

22382245
_validation = {
@@ -2301,6 +2308,14 @@ class ManagedCluster(Resource): # pylint: disable=too-many-instance-attributes
23012308
"public_i_pv6_prefix_id": {"key": "properties.publicIPv6PrefixId", "type": "str"},
23022309
"ddos_protection_plan_id": {"key": "properties.ddosProtectionPlanId", "type": "str"},
23032310
"upgrade_description": {"key": "properties.upgradeDescription", "type": "ClusterUpgradePolicy"},
2311+
"http_gateway_token_auth_connection_port": {
2312+
"key": "properties.httpGatewayTokenAuthConnectionPort",
2313+
"type": "int",
2314+
},
2315+
"enable_http_gateway_exclusive_auth_mode": {
2316+
"key": "properties.enableHttpGatewayExclusiveAuthMode",
2317+
"type": "bool",
2318+
},
23042319
}
23052320

23062321
def __init__( # pylint: disable=too-many-locals
@@ -2339,6 +2354,8 @@ def __init__( # pylint: disable=too-many-locals
23392354
public_i_pv6_prefix_id: Optional[str] = None,
23402355
ddos_protection_plan_id: Optional[str] = None,
23412356
upgrade_description: Optional["_models.ClusterUpgradePolicy"] = None,
2357+
http_gateway_token_auth_connection_port: Optional[int] = None,
2358+
enable_http_gateway_exclusive_auth_mode: Optional[bool] = None,
23422359
**kwargs: Any
23432360
) -> None:
23442361
"""
@@ -2446,6 +2463,13 @@ def __init__( # pylint: disable=too-many-locals
24462463
:keyword upgrade_description: The policy to use when upgrading the cluster.
24472464
:paramtype upgrade_description:
24482465
~azure.mgmt.servicefabricmanagedclusters.models.ClusterUpgradePolicy
2466+
:keyword http_gateway_token_auth_connection_port: The port used for token-auth based HTTPS
2467+
connections to the cluster. Cannot be set to the same port as HttpGatewayEndpoint.
2468+
:paramtype http_gateway_token_auth_connection_port: int
2469+
:keyword enable_http_gateway_exclusive_auth_mode: If true, token-based authentication is not
2470+
allowed on the HttpGatewayEndpoint. This is required to support TLS versions 1.3 and above. If
2471+
token-based authentication is used, HttpGatewayTokenAuthConnectionPort must be defined.
2472+
:paramtype enable_http_gateway_exclusive_auth_mode: bool
24492473
"""
24502474
super().__init__(location=location, tags=tags, **kwargs)
24512475
self.sku = sku
@@ -2486,6 +2510,8 @@ def __init__( # pylint: disable=too-many-locals
24862510
self.public_i_pv6_prefix_id = public_i_pv6_prefix_id
24872511
self.ddos_protection_plan_id = ddos_protection_plan_id
24882512
self.upgrade_description = upgrade_description
2513+
self.http_gateway_token_auth_connection_port = http_gateway_token_auth_connection_port
2514+
self.enable_http_gateway_exclusive_auth_mode = enable_http_gateway_exclusive_auth_mode
24892515

24902516

24912517
class ManagedClusterCodeVersionResult(_serialization.Model):

0 commit comments

Comments
 (0)