Skip to content

Commit 057b6b3

Browse files
azure-sdkChenxiJiang333
authored and
Rena Chen
committed
[AutoRelease] t2-servicenetworking-2025-01-22-78104(can only be merged by SDK owner) (#39342)
* code and test * Update release date in CHANGELOG.md * Update release date in CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent aedbfa5 commit 057b6b3

File tree

5 files changed

+39
-8
lines changed

5 files changed

+39
-8
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 2.0.0 (2025-01-20)
3+
## 2.0.0 (2025-02-05)
44

55
### Features Added
66

@@ -24,7 +24,7 @@
2424
- Added model `WafPolicy`
2525
- Added model `WafSecurityPolicy`
2626
- Added operation group `SecurityPoliciesInterfaceOperations`
27-
27+
2828
### Breaking Changes
2929

3030
- Model `Association` deleted or renamed its instance variable `association_type`
@@ -38,7 +38,6 @@
3838
- Model `TrafficController` deleted or renamed its instance variable `frontends`
3939
- Model `TrafficController` deleted or renamed its instance variable `associations`
4040
- Model `TrafficController` deleted or renamed its instance variable `provisioning_state`
41-
- Deleted or renamed model `AssociationSubnetUpdate`
4241

4342
## 1.1.0b1 (2024-09-29)
4443

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "ae6e92d62421bfafa2b695d742f3820d5de204eb",
2+
"commit": "16eba0e39fedb21b9a7a3df5bec5524c78c72ba3",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/servicenetworking/ServiceNetworking.Management",
55
"@azure-tools/typespec-python": "0.38.1"

sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
Association,
1818
AssociationProperties,
1919
AssociationSubnet,
20+
AssociationSubnetUpdate,
2021
AssociationUpdate,
2122
AssociationUpdateProperties,
2223
ErrorAdditionalInfo,
@@ -60,6 +61,7 @@
6061
"Association",
6162
"AssociationProperties",
6263
"AssociationSubnet",
64+
"AssociationSubnetUpdate",
6365
"AssociationUpdate",
6466
"AssociationUpdateProperties",
6567
"ErrorAdditionalInfo",

sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/_models.py

+33-3
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,36 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
219219
super().__init__(*args, **kwargs)
220220

221221

222+
class AssociationSubnetUpdate(_model_base.Model):
223+
"""Association Subnet.
224+
225+
All required parameters must be populated in order to send to server.
226+
227+
:ivar id: Association ID. Required.
228+
:vartype id: str
229+
"""
230+
231+
id: str = rest_field()
232+
"""Association ID. Required."""
233+
234+
@overload
235+
def __init__(
236+
self,
237+
*,
238+
id: str, # pylint: disable=redefined-builtin
239+
) -> None: ...
240+
241+
@overload
242+
def __init__(self, mapping: Mapping[str, Any]) -> None:
243+
"""
244+
:param mapping: raw JSON to initialize the model.
245+
:type mapping: Mapping[str, Any]
246+
"""
247+
248+
def __init__(self, *args: Any, **kwargs: Any) -> None:
249+
super().__init__(*args, **kwargs)
250+
251+
222252
class AssociationUpdate(_model_base.Model):
223253
"""The type used for update operations of the Association.
224254
@@ -258,20 +288,20 @@ class AssociationUpdateProperties(_model_base.Model):
258288
:ivar association_type: Association Type. "subnets"
259289
:vartype association_type: str or ~azure.mgmt.servicenetworking.models.AssociationType
260290
:ivar subnet: Association Subnet.
261-
:vartype subnet: ~azure.mgmt.servicenetworking.models.AssociationSubnet
291+
:vartype subnet: ~azure.mgmt.servicenetworking.models.AssociationSubnetUpdate
262292
"""
263293

264294
association_type: Optional[Union[str, "_models.AssociationType"]] = rest_field(name="associationType")
265295
"""Association Type. \"subnets\""""
266-
subnet: Optional["_models.AssociationSubnet"] = rest_field()
296+
subnet: Optional["_models.AssociationSubnetUpdate"] = rest_field()
267297
"""Association Subnet."""
268298

269299
@overload
270300
def __init__(
271301
self,
272302
*,
273303
association_type: Optional[Union[str, "_models.AssociationType"]] = None,
274-
subnet: Optional["_models.AssociationSubnet"] = None,
304+
subnet: Optional["_models.AssociationSubnetUpdate"] = None,
275305
) -> None: ...
276306

277307
@overload
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
directory: specification/servicenetworking/ServiceNetworking.Management
2-
commit: ae6e92d62421bfafa2b695d742f3820d5de204eb
2+
commit: 16eba0e39fedb21b9a7a3df5bec5524c78c72ba3
33
repo: Azure/azure-rest-api-specs
44
additionalDirectories:

0 commit comments

Comments
 (0)