scaleway / scaleway-sdk-go

Integrate Scaleway with your Go application

Home Page:https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uniform lb sdk to upstream api

alekc opened this issue · comments

Current implementation of sdk

type CreateLbRequest struct {
	Region scw.Region `json:"-"`
	// OrganizationID owner of resources
	OrganizationID string `json:"organization_id"`
	// Name resource names
	Name string `json:"name"`
	// Description resource description
	Description string `json:"description"`
	// IPID just like for compute instances, when you destroy a Load Balancer, you can keep its highly available IP address and reuse it for another Load Balancer later
	IPID *string `json:"ip_id"`
	// Tags list of keyword
	Tags []string `json:"tags"`
	// Type load Balancer offer type
	Type string `json:"type"`
}

misses ssl_compatibility_level property which is available on upstream api

{
  "organization_id": "string",
  "name": "string",
  "description": "string",
  "ip_id": "string",
  "tags": [
    "string"
  ],
  "type": "string",
  "ssl_compatibility_level": "ssl_compatibility_level_unknown"
}

we should probably add it.