Skip to content

Commit

Permalink
feat(LB): multi-certificacte in frontend (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Jul 24, 2020
1 parent 1542ce0 commit 9f543fb
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions api/lb/v1/lb_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ func (s *API) CreateLB(req *CreateLBRequest, opts ...scw.RequestOption) (*LB, er

type GetLBRequest struct {
Region scw.Region `json:"-"`

// LBID: load balancer ID
LBID string `json:"-"`
}

Expand Down Expand Up @@ -2738,11 +2738,9 @@ type CreateFrontendRequest struct {
// TimeoutClient: set the maximum inactivity time on the client side
TimeoutClient *time.Duration `json:"timeout_client"`
// CertificateID: certificate ID, deprecated in favor of certificate_ids array !
// Precisely one of CertificateID, CertificateIDs must be set.
CertificateID *string `json:"certificate_id,omitempty"`
CertificateID *string `json:"certificate_id"`
// CertificateIDs: list of certificate IDs to bind on the frontend
// Precisely one of CertificateID, CertificateIDs must be set.
CertificateIDs *[]string `json:"certificate_ids,omitempty"`
CertificateIDs *[]string `json:"certificate_ids"`
}

func (m *CreateFrontendRequest) UnmarshalJSON(b []byte) error {
Expand Down Expand Up @@ -2865,11 +2863,9 @@ type UpdateFrontendRequest struct {
// TimeoutClient: client session maximum inactivity time
TimeoutClient *time.Duration `json:"timeout_client"`
// CertificateID: certificate ID, deprecated in favor of `certificate_ids` array!
// Precisely one of CertificateID, CertificateIDs must be set.
CertificateID *string `json:"certificate_id,omitempty"`
CertificateID *string `json:"certificate_id"`
// CertificateIDs: list of certificate IDs to bind on the frontend
// Precisely one of CertificateID, CertificateIDs must be set.
CertificateIDs *[]string `json:"certificate_ids,omitempty"`
CertificateIDs *[]string `json:"certificate_ids"`
}

func (m *UpdateFrontendRequest) UnmarshalJSON(b []byte) error {
Expand Down

0 comments on commit 9f543fb

Please sign in to comment.