Skip to content

Commit 01cd58f

Browse files
author
SDKAuto
committed
CodeGen from PR 34655 in Azure/azure-rest-api-specs
Merge bbccf4ebcc56132b2e5ef75527badc8d69b95082 into 7fc6689d84858b1c71b786526b04c014c4589968
1 parent 95b6c31 commit 01cd58f

File tree

110 files changed

+2621
-595
lines changed

Some content is hidden

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

110 files changed

+2621
-595
lines changed

sdk/containerservice/azure-mgmt-containerservicefleet/CHANGELOG.md

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

3+
## 3.2.0b1 (2025-05-13)
4+
5+
### Features Added
6+
7+
- Client `ContainerServiceFleetMgmtClient` added operation group `gates`
8+
- Model `FleetMember` added property `labels`
9+
- Model `FleetMemberUpdate` added property `labels`
10+
- Model `UpdateGroup` added property `before_gates`
11+
- Model `UpdateGroup` added property `after_gates`
12+
- Model `UpdateGroupStatus` added property `before_gates`
13+
- Model `UpdateGroupStatus` added property `after_gates`
14+
- Model `UpdateStage` added property `before_gates`
15+
- Model `UpdateStage` added property `after_gates`
16+
- Model `UpdateStageStatus` added property `before_gates`
17+
- Model `UpdateStageStatus` added property `after_gates`
18+
- Enum `UpdateState` added member `PENDING`
19+
- Added model `Gate`
20+
- Added model `GateConfiguration`
21+
- Added model `GateListResult`
22+
- Added model `GatePatch`
23+
- Added model `GatePatchProperties`
24+
- Added enum `GateProvisioningState`
25+
- Added enum `GateState`
26+
- Added model `GateTarget`
27+
- Added enum `GateType`
28+
- Added enum `Timing`
29+
- Added model `UpdateRunGateStatus`
30+
- Added model `UpdateRunGateTargetProperties`
31+
- Added model `GatesOperations`
32+
- Method `GatesOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, fleet_name: str, gate_name: str, properties: GatePatch, if_match: Optional[str], if_none_match: Optional[str], content_type: str)`
33+
- Method `GatesOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, fleet_name: str, gate_name: str, properties: IO[bytes], if_match: Optional[str], if_none_match: Optional[str], content_type: str)`
34+
335
## 3.1.0 (2025-05-08)
436

537
### Features Added

sdk/containerservice/azure-mgmt-containerservicefleet/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 Containerservicefleet Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
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.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "b228f178ed852d198497e797789da6ac05af09c0",
2+
"commit": "632b84224a6fbde8fe582c5e3bf96f5a8fe002bc",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.27.4",
6+
"@autorest/python@6.34.1",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md"
1111
}

sdk/containerservice/azure-mgmt-containerservicefleet/azure/mgmt/containerservicefleet/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class ContainerServiceFleetMgmtClientConfiguration: # pylint: disable=too-many-
2727
:type credential: ~azure.core.credentials.TokenCredential
2828
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2025-03-01". Note that overriding this
31-
default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2025-04-01-preview". Note that overriding
31+
this default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2025-03-01")
36+
api_version: str = kwargs.pop("api_version", "2025-04-01-preview")
3737

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

sdk/containerservice/azure-mgmt-containerservicefleet/azure/mgmt/containerservicefleet/_container_service_fleet_mgmt_client.py

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,26 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING, cast
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from . import models as _models
1921
from ._configuration import ContainerServiceFleetMgmtClientConfiguration
20-
from ._serialization import Deserializer, Serializer
22+
from ._utils.serialization import Deserializer, Serializer
2123
from .operations import (
2224
AutoUpgradeProfileOperationsOperations,
2325
AutoUpgradeProfilesOperations,
2426
FleetMembersOperations,
2527
FleetUpdateStrategiesOperations,
2628
FleetsOperations,
29+
GatesOperations,
2730
Operations,
2831
UpdateRunsOperations,
2932
)
@@ -45,6 +48,8 @@ class ContainerServiceFleetMgmtClient: # pylint: disable=too-many-instance-attr
4548
:ivar auto_upgrade_profile_operations: AutoUpgradeProfileOperationsOperations operations
4649
:vartype auto_upgrade_profile_operations:
4750
azure.mgmt.containerservicefleet.operations.AutoUpgradeProfileOperationsOperations
51+
:ivar gates: GatesOperations operations
52+
:vartype gates: azure.mgmt.containerservicefleet.operations.GatesOperations
4853
:ivar fleet_members: FleetMembersOperations operations
4954
:vartype fleet_members: azure.mgmt.containerservicefleet.operations.FleetMembersOperations
5055
:ivar update_runs: UpdateRunsOperations operations
@@ -56,25 +61,27 @@ class ContainerServiceFleetMgmtClient: # pylint: disable=too-many-instance-attr
5661
:type credential: ~azure.core.credentials.TokenCredential
5762
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
5863
:type subscription_id: str
59-
:param base_url: Service URL. Default value is "https://management.azure.com".
64+
:param base_url: Service URL. Default value is None.
6065
:type base_url: str
61-
:keyword api_version: Api Version. Default value is "2025-03-01". Note that overriding this
62-
default value may result in unsupported behavior.
66+
:keyword api_version: Api Version. Default value is "2025-04-01-preview". Note that overriding
67+
this default value may result in unsupported behavior.
6368
:paramtype api_version: str
6469
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6570
Retry-After header is present.
6671
"""
6772

6873
def __init__(
69-
self,
70-
credential: "TokenCredential",
71-
subscription_id: str,
72-
base_url: str = "https://management.azure.com",
73-
**kwargs: Any
74+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
7475
) -> None:
76+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
77+
_endpoints = get_arm_endpoints(_cloud)
78+
if not base_url:
79+
base_url = _endpoints["resource_manager"]
80+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
7581
self._config = ContainerServiceFleetMgmtClientConfiguration(
76-
credential=credential, subscription_id=subscription_id, **kwargs
82+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
7783
)
84+
7885
_policies = kwargs.pop("policies", None)
7986
if _policies is None:
8087
_policies = [
@@ -93,7 +100,7 @@ def __init__(
93100
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
94101
self._config.http_logging_policy,
95102
]
96-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
103+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
97104

98105
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
99106
self._serialize = Serializer(client_models)
@@ -107,6 +114,7 @@ def __init__(
107114
self.auto_upgrade_profile_operations = AutoUpgradeProfileOperationsOperations(
108115
self._client, self._config, self._serialize, self._deserialize
109116
)
117+
self.gates = GatesOperations(self._client, self._config, self._serialize, self._deserialize)
110118
self.fleet_members = FleetMembersOperations(self._client, self._config, self._serialize, self._deserialize)
111119
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
112120
self.fleet_update_strategies = FleetUpdateStrategiesOperations(
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)