Skip to content

Commit baa7ef8

Browse files
Generator: Update SDK /services/loadbalancer (#606)
* Generate loadbalancer * Remove deprecated method from example --------- Co-authored-by: João Palet <joao.palet@freiheit.com>
1 parent 066276b commit baa7ef8

File tree

2 files changed

+33
-32
lines changed

2 files changed

+33
-32
lines changed

examples/loadbalancer/loadbalancer.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ func main() {
2323
os.Exit(1)
2424
}
2525

26-
// Enable load balancer functionality for project
27-
_, err = loadbalancerClient.EnableService(context.Background(), projectId).XRequestID("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Execute()
28-
if err != nil {
29-
fmt.Fprintf(os.Stderr, "Error when calling `EnableLoadBalancing`: %v\n", err)
30-
os.Exit(1)
31-
}
32-
fmt.Printf("Enabled load balancer functionality for project %s.\n", projectId)
33-
3426
// List the load balancer instances for your project
3527
listInstancesResp, err := loadbalancerClient.ListLoadBalancers(context.Background(), projectId).Execute()
3628
if err != nil {

services/loadbalancer/api_default.go

Lines changed: 33 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)