diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/_meta.json b/sdk/servicenetworking/azure-mgmt-servicenetworking/_meta.json index 9edd48b5d392..7586b32c21ed 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/_meta.json +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/_meta.json @@ -1,5 +1,5 @@ { - "commit": "ae6e92d62421bfafa2b695d742f3820d5de204eb", + "commit": "58fd65ff72a9a41f4f4349a57db3bd88ab6b8301", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/servicenetworking/ServiceNetworking.Management", "@azure-tools/typespec-python": "0.38.1" diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/_version.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/_version.py index 8f2350dd3b0c..be71c81bd282 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/_version.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "2.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/__init__.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/__init__.py index c33a93ce923e..511884b818e4 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/__init__.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/__init__.py @@ -17,6 +17,7 @@ Association, AssociationProperties, AssociationSubnet, + AssociationSubnetUpdate, AssociationUpdate, AssociationUpdateProperties, ErrorAdditionalInfo, @@ -60,6 +61,7 @@ "Association", "AssociationProperties", "AssociationSubnet", + "AssociationSubnetUpdate", "AssociationUpdate", "AssociationUpdateProperties", "ErrorAdditionalInfo", diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/_models.py b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/_models.py index 2940c27a0fad..a5657035ac34 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/_models.py +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/models/_models.py @@ -219,6 +219,36 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) +class AssociationSubnetUpdate(_model_base.Model): + """Association Subnet. + + All required parameters must be populated in order to send to server. + + :ivar id: Association ID. Required. + :vartype id: str + """ + + id: str = rest_field() + """Association ID. Required.""" + + @overload + def __init__( + self, + *, + id: str, # pylint: disable=redefined-builtin + ) -> 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 AssociationUpdate(_model_base.Model): """The type used for update operations of the Association. @@ -258,12 +288,12 @@ class AssociationUpdateProperties(_model_base.Model): :ivar association_type: Association Type. "subnets" :vartype association_type: str or ~azure.mgmt.servicenetworking.models.AssociationType :ivar subnet: Association Subnet. - :vartype subnet: ~azure.mgmt.servicenetworking.models.AssociationSubnet + :vartype subnet: ~azure.mgmt.servicenetworking.models.AssociationSubnetUpdate """ association_type: Optional[Union[str, "_models.AssociationType"]] = rest_field(name="associationType") """Association Type. \"subnets\"""" - subnet: Optional["_models.AssociationSubnet"] = rest_field() + subnet: Optional["_models.AssociationSubnetUpdate"] = rest_field() """Association Subnet.""" @overload @@ -271,7 +301,7 @@ def __init__( self, *, association_type: Optional[Union[str, "_models.AssociationType"]] = None, - subnet: Optional["_models.AssociationSubnet"] = None, + subnet: Optional["_models.AssociationSubnetUpdate"] = None, ) -> None: ... @overload diff --git a/sdk/servicenetworking/azure-mgmt-servicenetworking/tsp-location.yaml b/sdk/servicenetworking/azure-mgmt-servicenetworking/tsp-location.yaml index 62ee3451498f..a3e98e9a9973 100644 --- a/sdk/servicenetworking/azure-mgmt-servicenetworking/tsp-location.yaml +++ b/sdk/servicenetworking/azure-mgmt-servicenetworking/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/servicenetworking/ServiceNetworking.Management -commit: ae6e92d62421bfafa2b695d742f3820d5de204eb +commit: 58fd65ff72a9a41f4f4349a57db3bd88ab6b8301 repo: Azure/azure-rest-api-specs additionalDirectories: