Skip to content

Commit

Permalink
Backward compatibility for service networking (#32247)
Browse files Browse the repository at this point in the history
* Backward compatibility for service networking

* fix lint

* fix flatten

* flatten workaround

* add suppression

* fix doc

* format
  • Loading branch information
tadelesh authored Jan 22, 2025
1 parent 6368536 commit 16eba0e
Showing 1 changed file with 27 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,32 @@ model Association is TrackedResource<AssociationProperties> {
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 */
Expand Down Expand Up @@ -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<Association, AssociationUpdate>;
delete is ArmResourceDeleteWithoutOkAsync<Association>;
listByTrafficController is ArmResourceListByParent<Association>;
}
Expand Down

0 comments on commit 16eba0e

Please sign in to comment.