From 0a16aca1d4111febbd848e7be181309cfe6d6431 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 21 Jul 2020 10:54:48 +0000 Subject: [PATCH] feat: update generated apis --- api/lb/v1/lb_sdk.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/api/lb/v1/lb_sdk.go b/api/lb/v1/lb_sdk.go index df8c35d8c..0270a88cd 100644 --- a/api/lb/v1/lb_sdk.go +++ b/api/lb/v1/lb_sdk.go @@ -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:"-"` } @@ -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 { @@ -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 {