Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(LB): multi-certificacte in frontend #492

Merged
merged 1 commit into from
Jul 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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