diff --git a/specification/resources/reserved_ips/examples/go/create_reserved_ip.yml b/specification/resources/reserved_ips/examples/go/create_reserved_ip.yml index 99756de4d..8984a5362 100644 --- a/specification/resources/reserved_ips/examples/go/create_reserved_ip.yml +++ b/specification/resources/reserved_ips/examples/go/create_reserved_ip.yml @@ -8,13 +8,16 @@ source: |- ) func main() { - token := os.Getenv("DIGITALOCEAN_TOKEN") + token := os.Getenv("DIGITALOCEAN_TOKEN") - client := godo.NewFromToken(token) - ctx := context.TODO() + client := godo.NewFromToken(token) + ctx := context.TODO() - createRequest := &godo.ReservedIPCreateRequest{ - DropletID: 123456, + createRequest := &godo.ReservedIPCreateRequest{ + DropletID: 123456, + Region: "nyc3", + ProjectID: "1234a77a-12cd-11ed-909f-43c99lbf6030", + } - } + reservedIP, _, err := client.ReservedIPs.Create(ctx, createRequest) } diff --git a/specification/resources/reserved_ips/examples/go/post_reserved_ip_action.yml b/specification/resources/reserved_ips/examples/go/post_reserved_ip_action.yml index 88c2d4f14..ce0d37990 100644 --- a/specification/resources/reserved_ips/examples/go/post_reserved_ip_action.yml +++ b/specification/resources/reserved_ips/examples/go/post_reserved_ip_action.yml @@ -17,5 +17,5 @@ source: |- action, _, err := client.ReservedIPActions.Assign(ctx, "45.55.96.47", 8219222) // Unassign a Reserved IP - // action, _, err := client.ReservedIPActions.Unassign(ctx, "45.55.96.47") + action, _, err := client.ReservedIPActions.Unassign(ctx, "45.55.96.47") }