Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Association,
AssociationProperties,
AssociationSubnet,
AssociationSubnetUpdate,
AssociationUpdate,
AssociationUpdateProperties,
ErrorAdditionalInfo,
Expand Down Expand Up @@ -60,6 +61,7 @@
"Association",
"AssociationProperties",
"AssociationSubnet",
"AssociationSubnetUpdate",
"AssociationUpdate",
"AssociationUpdateProperties",
"ErrorAdditionalInfo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -258,20 +288,20 @@ 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
def __init__(
self,
*,
association_type: Optional[Union[str, "_models.AssociationType"]] = None,
subnet: Optional["_models.AssociationSubnet"] = None,
subnet: Optional["_models.AssociationSubnetUpdate"] = None,
) -> None: ...

@overload
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
directory: specification/servicenetworking/ServiceNetworking.Management
commit: ae6e92d62421bfafa2b695d742f3820d5de204eb
commit: 58fd65ff72a9a41f4f4349a57db3bd88ab6b8301
repo: Azure/azure-rest-api-specs
additionalDirectories:
Loading