Skip to content

Commit f1d4b2a

Browse files
Generator: Update SDK /services/iaasalpha (#997)
* Generate iaasalpha * fix linter issues on example --------- Co-authored-by: Gökçe Gök Klingel <[email protected]>
1 parent 29ef32f commit f1d4b2a

26 files changed

+9340
-1715
lines changed

examples/iaasalpha/attach_nic/attach_nic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func main() {
3030
// Attach an existing network interface to an existing server
3131
var httpResp *http.Response
3232
ctxWithHTTPResp := runtime.WithCaptureHTTPResponse(context.Background(), &httpResp)
33-
err = iaasalphaClient.AddNICToServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
33+
err = iaasalphaClient.AddNicToServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
3434
if err != nil {
3535
fmt.Fprintf(os.Stderr, "[iaasalpha API] Error when calling `AddNICToServer`: %v\n", err)
3636
} else {
@@ -47,7 +47,7 @@ func main() {
4747

4848
fmt.Printf("[iaasalpha API] Nic %q has been successfully attached to the server %s.\n", nicId, serverId)
4949

50-
err = iaasalphaClient.RemoveNICFromServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
50+
err = iaasalphaClient.RemoveNicFromServer(ctxWithHTTPResp, projectId, serverId, nicId).Execute()
5151
if err != nil {
5252
fmt.Fprintf(os.Stderr, "[iaasalpha API] Error when calling `RemoveNICFromServer`: %v\n", err)
5353
} else {

0 commit comments

Comments
 (0)