Skip to content

Commit eb75e08

Browse files
tadeleshtadelesh
andauthored
Fix Go SDK breaking changes for Nginx (#36328)
Co-authored-by: tadelesh <[email protected]>
1 parent 2a6e9b6 commit eb75e08

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

specification/nginx/Nginx.Management/client.tsp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ using NGINX.NGINXPLUS;
5555
"NginxDeploymentPropertiesNginxAppProtect",
5656
"!csharp"
5757
);
58-
// @@clientName(AutoScaleSettings,
59-
// "NginxDeploymentScalingPropertiesAutoScaleSettings",
60-
// "!csharp"
61-
// );
58+
@@clientName(AutoScaleSettings,
59+
"NginxDeploymentScalingPropertiesAutoScaleSettings",
60+
"!csharp"
61+
);
6262

6363
// Client location overrides for NginxDeployments operations
6464
@@clientLocation(NginxDeployments.get, "Deployments", "!csharp");
@@ -75,6 +75,12 @@ using NGINX.NGINXPLUS;
7575
"!csharp"
7676
);
7777

78+
// Client name for list operations
79+
@@clientName(NginxDeployments.listBySubscription, "list", "!csharp");
80+
@@clientName(ApiKeys.listByDeployment, "list", "!csharp");
81+
@@clientName(Certificates.listByDeployment, "list", "!csharp");
82+
@@clientName(Configurations.listByDeployment, "list", "!csharp");
83+
7884
// Java client name overrides to maintain consistent casing
7985
@@clientName(NginxPublicIPAddress, "NginxPublicIpAddress", "java");
8086
@@clientName(NginxPrivateIPAddress, "NginxPrivateIpAddress", "java");

specification/nginx/Nginx.Management/tspconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ options:
3737
service-dir: "sdk/resourcemanager/nginx"
3838
package-dir: "armnginx"
3939
module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}"
40-
fix-const-stuttering: true
40+
fix-const-stuttering: false
4141
generate-samples: true
4242
generate-fakes: true
4343
head-as-boolean: true

0 commit comments

Comments
 (0)