Skip to content

Commit e6f074c

Browse files
mitigate JS breakings for network (#44345)
Co-authored-by: JialinHuang803 <139532647+JialinHuang803@users.noreply.github.com>
1 parent 0ef1d30 commit e6f074c

1 file changed

Lines changed: 85 additions & 13 deletions

File tree

specification/network/resource-manager/Microsoft.Network/Network/Network/back-compatible.tsp

Lines changed: 85 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -763,15 +763,48 @@ using TypeSpec.Versioning;
763763
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
764764
@@Legacy.flattenProperty(DdosProtectionPlan.properties);
765765

766-
@@clientLocation(DscpConfigurations.get, "DscpConfiguration");
767-
@@clientLocation(DscpConfigurations.createOrUpdate, "DscpConfiguration");
766+
@@clientLocation(DscpConfigurations.get, "DscpConfiguration", "!javascript");
767+
@@clientLocation(
768+
DscpConfigurations.get,
769+
"DscpConfigurationOperations",
770+
"javascript"
771+
);
772+
@@clientLocation(
773+
DscpConfigurations.createOrUpdate,
774+
"DscpConfiguration",
775+
"!javascript"
776+
);
777+
@@clientLocation(
778+
DscpConfigurations.createOrUpdate,
779+
"DscpConfigurationOperations",
780+
"javascript"
781+
);
768782
@@clientName(
769783
DscpConfigurations.createOrUpdate::parameters.resource,
770784
"parameters"
771785
);
772-
@@clientLocation(DscpConfigurations.delete, "DscpConfiguration");
773-
@@clientLocation(DscpConfigurations.list, "DscpConfiguration");
774-
@@clientLocation(DscpConfigurations.listAll, "DscpConfiguration");
786+
@@clientLocation(DscpConfigurations.delete, "DscpConfiguration", "!javascript");
787+
@@clientLocation(
788+
DscpConfigurations.delete,
789+
"DscpConfigurationOperations",
790+
"javascript"
791+
);
792+
@@clientLocation(DscpConfigurations.list, "DscpConfiguration", "!javascript");
793+
@@clientLocation(
794+
DscpConfigurations.list,
795+
"DscpConfigurationOperations",
796+
"javascript"
797+
);
798+
@@clientLocation(
799+
DscpConfigurations.listAll,
800+
"DscpConfiguration",
801+
"!javascript"
802+
);
803+
@@clientLocation(
804+
DscpConfigurations.listAll,
805+
"DscpConfigurationOperations",
806+
"javascript"
807+
);
775808
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
776809
@@Legacy.flattenProperty(DscpConfiguration.properties);
777810

@@ -1030,7 +1063,13 @@ using TypeSpec.Versioning;
10301063
@@clientName(NetworkManagers.post::parameters.body, "parameters");
10311064
@@clientLocation(
10321065
NetworkManagers.networkManagerDeploymentStatusList,
1033-
"NetworkManagerDeploymentStatus"
1066+
"NetworkManagerDeploymentStatus",
1067+
"!javascript"
1068+
);
1069+
@@clientLocation(
1070+
NetworkManagers.networkManagerDeploymentStatusList,
1071+
"NetworkManagerDeploymentStatusOperations",
1072+
"javascript"
10341073
);
10351074
@@clientName(NetworkManagers.networkManagerDeploymentStatusList, "List");
10361075
@@clientName(
@@ -1334,10 +1373,25 @@ using TypeSpec.Versioning;
13341373
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
13351374
@@Legacy.flattenProperty(NetworkVirtualApplianceSku.properties);
13361375

1337-
@@clientLocation(InboundSecurityRuleOperationGroup.get, "InboundSecurityRule");
1376+
@@clientLocation(
1377+
InboundSecurityRuleOperationGroup.get,
1378+
"InboundSecurityRule",
1379+
"!javascript"
1380+
);
1381+
@@clientLocation(
1382+
InboundSecurityRuleOperationGroup.get,
1383+
"InboundSecurityRuleOperations",
1384+
"javascript"
1385+
);
1386+
@@clientLocation(
1387+
InboundSecurityRuleOperationGroup.createOrUpdate,
1388+
"InboundSecurityRule",
1389+
"!javascript"
1390+
);
13381391
@@clientLocation(
13391392
InboundSecurityRuleOperationGroup.createOrUpdate,
1340-
"InboundSecurityRule"
1393+
"InboundSecurityRuleOperations",
1394+
"javascript"
13411395
);
13421396
@@clientName(
13431397
InboundSecurityRuleOperationGroup.createOrUpdate::parameters.resource,
@@ -1939,14 +1993,26 @@ using TypeSpec.Versioning;
19391993
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
19401994
@@Legacy.flattenProperty(HubRouteTable.properties);
19411995

1942-
@@clientLocation(RoutingIntents.get, "RoutingIntent");
1943-
@@clientLocation(RoutingIntents.createOrUpdate, "RoutingIntent");
1996+
@@clientLocation(RoutingIntents.get, "RoutingIntent", "!javascript");
1997+
@@clientLocation(RoutingIntents.get, "RoutingIntentOperations", "javascript");
1998+
@@clientLocation(RoutingIntents.createOrUpdate, "RoutingIntent", "!javascript");
1999+
@@clientLocation(
2000+
RoutingIntents.createOrUpdate,
2001+
"RoutingIntentOperations",
2002+
"javascript"
2003+
);
19442004
@@clientName(
19452005
RoutingIntents.createOrUpdate::parameters.resource,
19462006
"routingIntentParameters"
19472007
);
1948-
@@clientLocation(RoutingIntents.delete, "RoutingIntent");
1949-
@@clientLocation(RoutingIntents.list, "RoutingIntent");
2008+
@@clientLocation(RoutingIntents.delete, "RoutingIntent", "!javascript");
2009+
@@clientLocation(
2010+
RoutingIntents.delete,
2011+
"RoutingIntentOperations",
2012+
"javascript"
2013+
);
2014+
@@clientLocation(RoutingIntents.list, "RoutingIntent", "!javascript");
2015+
@@clientLocation(RoutingIntents.list, "RoutingIntentOperations", "javascript");
19502016
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
19512017
@@Legacy.flattenProperty(RoutingIntent.properties);
19522018

@@ -2073,7 +2139,13 @@ using TypeSpec.Versioning;
20732139

20742140
@@clientLocation(
20752141
ServiceTagInformationOperationGroup.list,
2076-
"ServiceTagInformation"
2142+
"ServiceTagInformation",
2143+
"!javascript"
2144+
);
2145+
@@clientLocation(
2146+
ServiceTagInformationOperationGroup.list,
2147+
"ServiceTagInformationOperations",
2148+
"javascript"
20772149
);
20782150

20792151
@@clientLocation(UsagesOperationGroup.list, "Usages");

0 commit comments

Comments
 (0)