Skip to content

Commit

Permalink
feat: update generated APIs (#2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Sep 17, 2024
1 parent eceac6f commit c7f382d
Show file tree
Hide file tree
Showing 25 changed files with 60 additions and 59 deletions.
1 change: 0 additions & 1 deletion api/applesilicon/v1alpha1/applesilicon_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Zones() []scw.Zone {
return []scw.Zone{scw.ZoneFrPar3}
}
Expand Down
1 change: 0 additions & 1 deletion api/block/v1alpha1/block_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Zones() []scw.Zone {
return []scw.Zone{scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZoneNlAms3, scw.ZonePlWaw3}
}
Expand Down
1 change: 0 additions & 1 deletion api/cockpit/v1/cockpit_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,6 @@ func NewRegionalAPI(client *scw.Client) *RegionalAPI {
client: client,
}
}

func (s *RegionalAPI) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down
3 changes: 2 additions & 1 deletion api/cockpit/v1beta1/cockpit_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,8 @@ type SelectPlanRequest struct {
}

// SelectPlanResponse: Response returned when selecting a pricing plan.
type SelectPlanResponse struct{}
type SelectPlanResponse struct {
}

// TriggerTestAlertRequest: trigger test alert request.
type TriggerTestAlertRequest struct {
Expand Down
1 change: 0 additions & 1 deletion api/container/v1beta1/container_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down
1 change: 0 additions & 1 deletion api/dedibox/v1/dedibox_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -5905,7 +5905,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Zones() []scw.Zone {
return []scw.Zone{scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1}
}
Expand Down
19 changes: 12 additions & 7 deletions api/documentdb/v1beta1/documentdb_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -892,10 +892,12 @@ func (enum *VolumeType) UnmarshalJSON(data []byte) error {
}

// EndpointDirectAccessDetails: endpoint direct access details.
type EndpointDirectAccessDetails struct{}
type EndpointDirectAccessDetails struct {
}

// EndpointLoadBalancerDetails: endpoint load balancer details.
type EndpointLoadBalancerDetails struct{}
type EndpointLoadBalancerDetails struct {
}

// EndpointPrivateNetworkDetails: endpoint private network details.
type EndpointPrivateNetworkDetails struct {
Expand All @@ -910,10 +912,12 @@ type EndpointPrivateNetworkDetails struct {
}

// EndpointSpecPrivateNetworkIpamConfig: endpoint spec private network ipam config.
type EndpointSpecPrivateNetworkIpamConfig struct{}
type EndpointSpecPrivateNetworkIpamConfig struct {
}

// ReadReplicaEndpointSpecPrivateNetworkIpamConfig: read replica endpoint spec private network ipam config.
type ReadReplicaEndpointSpecPrivateNetworkIpamConfig struct{}
type ReadReplicaEndpointSpecPrivateNetworkIpamConfig struct {
}

// EngineSetting: engine setting.
type EngineSetting struct {
Expand Down Expand Up @@ -985,7 +989,8 @@ type Endpoint struct {
}

// EndpointSpecLoadBalancer: endpoint spec load balancer.
type EndpointSpecLoadBalancer struct{}
type EndpointSpecLoadBalancer struct {
}

// EndpointSpecPrivateNetwork: endpoint spec private network.
type EndpointSpecPrivateNetwork struct {
Expand All @@ -1002,7 +1007,8 @@ type EndpointSpecPrivateNetwork struct {
}

// ReadReplicaEndpointSpecDirectAccess: read replica endpoint spec direct access.
type ReadReplicaEndpointSpecDirectAccess struct{}
type ReadReplicaEndpointSpecDirectAccess struct {
}

// ReadReplicaEndpointSpecPrivateNetwork: read replica endpoint spec private network.
type ReadReplicaEndpointSpecPrivateNetwork struct {
Expand Down Expand Up @@ -2512,7 +2518,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down
20 changes: 13 additions & 7 deletions api/domain/v2beta1/domain_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
"strings"
"time"

"github.com/scaleway/scaleway-sdk-go/api/std"
"github.com/scaleway/scaleway-sdk-go/errors"
"github.com/scaleway/scaleway-sdk-go/marshaler"
"github.com/scaleway/scaleway-sdk-go/namegenerator"
"github.com/scaleway/scaleway-sdk-go/parameter"
"github.com/scaleway/scaleway-sdk-go/scw"
std "github.com/scaleway/scaleway-sdk-go/api/std"
)

// always import dependencies
Expand Down Expand Up @@ -1701,7 +1701,8 @@ type RecordChangeAdd struct {
}

// RecordChangeClear: record change clear.
type RecordChangeClear struct{}
type RecordChangeClear struct {
}

// RecordChangeDelete: record change delete.
type RecordChangeDelete struct {
Expand Down Expand Up @@ -2145,7 +2146,8 @@ type ClearDNSZoneRecordsRequest struct {
}

// ClearDNSZoneRecordsResponse: clear dns zone records response.
type ClearDNSZoneRecordsResponse struct{}
type ClearDNSZoneRecordsResponse struct {
}

// CloneDNSZoneRequest: clone dns zone request.
type CloneDNSZoneRequest struct {
Expand Down Expand Up @@ -2191,23 +2193,26 @@ type DeleteDNSZoneRequest struct {
}

// DeleteDNSZoneResponse: delete dns zone response.
type DeleteDNSZoneResponse struct{}
type DeleteDNSZoneResponse struct {
}

// DeleteDNSZoneTsigKeyRequest: delete dns zone tsig key request.
type DeleteDNSZoneTsigKeyRequest struct {
DNSZone string `json:"-"`
}

// DeleteExternalDomainResponse: delete external domain response.
type DeleteExternalDomainResponse struct{}
type DeleteExternalDomainResponse struct {
}

// DeleteSSLCertificateRequest: delete ssl certificate request.
type DeleteSSLCertificateRequest struct {
DNSZone string `json:"-"`
}

// DeleteSSLCertificateResponse: delete ssl certificate response.
type DeleteSSLCertificateResponse struct{}
type DeleteSSLCertificateResponse struct {
}

// Domain: domain.
type Domain struct {
Expand Down Expand Up @@ -3183,7 +3188,8 @@ type RestoreDNSZoneVersionRequest struct {
}

// RestoreDNSZoneVersionResponse: restore dns zone version response.
type RestoreDNSZoneVersionResponse struct{}
type RestoreDNSZoneVersionResponse struct {
}

// SearchAvailableDomainsResponse: search available domains response.
type SearchAvailableDomainsResponse struct {
Expand Down
1 change: 0 additions & 1 deletion api/flexibleip/v1alpha1/flexibleip_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Zones() []scw.Zone {
return []scw.Zone{scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1}
}
Expand Down
1 change: 0 additions & 1 deletion api/function/v1beta1/function_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down
7 changes: 4 additions & 3 deletions api/inference/v1beta1/inference_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ type EndpointPrivateNetworkDetails struct {
}

// EndpointPublicAccessDetails: endpoint public access details.
type EndpointPublicAccessDetails struct{}
type EndpointPublicAccessDetails struct {
}

// EndpointSpecPrivateNetwork: endpoint spec private network.
type EndpointSpecPrivateNetwork struct {
Expand All @@ -227,7 +228,8 @@ type EndpointSpecPrivateNetwork struct {
}

// EndpointSpecPublic: endpoint spec public.
type EndpointSpecPublic struct{}
type EndpointSpecPublic struct {
}

// Endpoint: endpoint.
type Endpoint struct {
Expand Down Expand Up @@ -825,7 +827,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar}
}
Expand Down
1 change: 0 additions & 1 deletion api/iot/v1/iot_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar}
}
Expand Down
1 change: 0 additions & 1 deletion api/ipam/v1alpha1/ipam_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down
2 changes: 0 additions & 2 deletions api/ipfs/v1alpha1/ipfs_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down Expand Up @@ -1202,7 +1201,6 @@ func NewIpnsAPI(client *scw.Client) *IpnsAPI {
client: client,
}
}

func (s *IpnsAPI) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down
1 change: 0 additions & 1 deletion api/key_manager/v1alpha1/key_manager_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down
14 changes: 8 additions & 6 deletions api/lb/v1/lb_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,8 @@ type HealthCheckHTTPSConfig struct {
}

// HealthCheckLdapConfig: health check ldap config.
type HealthCheckLdapConfig struct{}
type HealthCheckLdapConfig struct {
}

// HealthCheckMysqlConfig: health check mysql config.
type HealthCheckMysqlConfig struct {
Expand All @@ -1160,10 +1161,12 @@ type HealthCheckPgsqlConfig struct {
}

// HealthCheckRedisConfig: health check redis config.
type HealthCheckRedisConfig struct{}
type HealthCheckRedisConfig struct {
}

// HealthCheckTCPConfig: health check tcp config.
type HealthCheckTCPConfig struct{}
type HealthCheckTCPConfig struct {
}

// IP: ip.
type IP struct {
Expand Down Expand Up @@ -1659,7 +1662,8 @@ type PrivateNetworkDHCPConfig struct {
}

// PrivateNetworkIpamConfig: private network ipam config.
type PrivateNetworkIpamConfig struct{}
type PrivateNetworkIpamConfig struct {
}

// PrivateNetworkStaticConfig: private network static config.
type PrivateNetworkStaticConfig struct {
Expand Down Expand Up @@ -4577,7 +4581,6 @@ func NewZonedAPI(client *scw.Client) *ZonedAPI {
client: client,
}
}

func (s *ZonedAPI) Zones() []scw.Zone {
return []scw.Zone{scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZoneNlAms3, scw.ZonePlWaw1, scw.ZonePlWaw2, scw.ZonePlWaw3}
}
Expand Down Expand Up @@ -6540,7 +6543,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down
3 changes: 0 additions & 3 deletions api/mnq/v1beta1/mnq_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,6 @@ func NewNatsAPI(client *scw.Client) *NatsAPI {
client: client,
}
}

func (s *NatsAPI) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms}
}
Expand Down Expand Up @@ -1266,7 +1265,6 @@ func NewSnsAPI(client *scw.Client) *SnsAPI {
client: client,
}
}

func (s *SnsAPI) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms}
}
Expand Down Expand Up @@ -1568,7 +1566,6 @@ func NewSqsAPI(client *scw.Client) *SqsAPI {
client: client,
}
}

func (s *SqsAPI) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms}
}
Expand Down
19 changes: 12 additions & 7 deletions api/rdb/v1/rdb_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,12 @@ func (enum *VolumeType) UnmarshalJSON(data []byte) error {
}

// EndpointDirectAccessDetails: endpoint direct access details.
type EndpointDirectAccessDetails struct{}
type EndpointDirectAccessDetails struct {
}

// EndpointLoadBalancerDetails: endpoint load balancer details.
type EndpointLoadBalancerDetails struct{}
type EndpointLoadBalancerDetails struct {
}

// EndpointPrivateNetworkDetails: endpoint private network details.
type EndpointPrivateNetworkDetails struct {
Expand All @@ -1045,10 +1047,12 @@ type EndpointPrivateNetworkDetails struct {
}

// EndpointSpecPrivateNetworkIpamConfig: endpoint spec private network ipam config.
type EndpointSpecPrivateNetworkIpamConfig struct{}
type EndpointSpecPrivateNetworkIpamConfig struct {
}

// ReadReplicaEndpointSpecPrivateNetworkIpamConfig: read replica endpoint spec private network ipam config.
type ReadReplicaEndpointSpecPrivateNetworkIpamConfig struct{}
type ReadReplicaEndpointSpecPrivateNetworkIpamConfig struct {
}

// EngineSetting: engine setting.
type EngineSetting struct {
Expand Down Expand Up @@ -1120,7 +1124,8 @@ type Endpoint struct {
}

// EndpointSpecLoadBalancer: endpoint spec load balancer.
type EndpointSpecLoadBalancer struct{}
type EndpointSpecLoadBalancer struct {
}

// EndpointSpecPrivateNetwork: endpoint spec private network.
type EndpointSpecPrivateNetwork struct {
Expand All @@ -1137,7 +1142,8 @@ type EndpointSpecPrivateNetwork struct {
}

// ReadReplicaEndpointSpecDirectAccess: read replica endpoint spec direct access.
type ReadReplicaEndpointSpecDirectAccess struct{}
type ReadReplicaEndpointSpecDirectAccess struct {
}

// ReadReplicaEndpointSpecPrivateNetwork: read replica endpoint spec private network.
type ReadReplicaEndpointSpecPrivateNetwork struct {
Expand Down Expand Up @@ -2857,7 +2863,6 @@ func NewAPI(client *scw.Client) *API {
client: client,
}
}

func (s *API) Regions() []scw.Region {
return []scw.Region{scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw}
}
Expand Down
Loading

0 comments on commit c7f382d

Please sign in to comment.