diff --git a/specification/servicenetworking/ServiceNetworking.Management/main.tsp b/specification/servicenetworking/ServiceNetworking.Management/main.tsp index 9c420b15e4a1..1d358a7928cb 100644 --- a/specification/servicenetworking/ServiceNetworking.Management/main.tsp +++ b/specification/servicenetworking/ServiceNetworking.Management/main.tsp @@ -69,6 +69,32 @@ model Association is TrackedResource { name: string; } +/** The type used for update operations of the Association. */ +model AssociationUpdate { + /** Resource tags. */ + tags?: TrackedResource.tags; + + /** The resource-specific properties for this resource. */ + #suppress "@azure-tools/typespec-azure-core/no-private-usage" + @Azure.ResourceManager.Private.conditionalClientFlatten + properties?: AssociationUpdateProperties; +} + +/** The updatable properties of the Association. */ +model AssociationUpdateProperties { + /** Association Type */ + associationType?: AssociationType; + + /** Association Subnet */ + subnet?: AssociationSubnetUpdate; +} + +/** Association Subnet. */ +model AssociationSubnetUpdate { + /** Association ID. */ + id: string; +} + /** Association Properties. */ model AssociationProperties { /** Association Type */ @@ -232,13 +258,7 @@ interface AssociationsInterface { Association, LroHeaders = Azure.Core.Foundations.RetryAfterHeader >; - update is ArmCustomPatchSync< - Association, - Azure.ResourceManager.Foundations.ResourceUpdateModel< - Association, - AssociationProperties - > - >; + update is ArmCustomPatchSync; delete is ArmResourceDeleteWithoutOkAsync; listByTrafficController is ArmResourceListByParent; }