Skip to content

Commit

Permalink
fix: update loadBalancerList schema to reflect reality
Browse files Browse the repository at this point in the history
  • Loading branch information
Leaseweb CI committed Nov 8, 2024
1 parent 62ec0a6 commit 6108c3d
Show file tree
Hide file tree
Showing 16 changed files with 1,330 additions and 138 deletions.
2 changes: 1 addition & 1 deletion abuse/configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion aggregationPack/configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dedicatedServer/configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion invoice/configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions publicCloud/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ docs/LoadBalancer.md
docs/LoadBalancerConfiguration.md
docs/LoadBalancerDetails.md
docs/LoadBalancerGranularity.md
docs/LoadBalancerListItem.md
docs/LoadBalancerListener.md
docs/LoadBalancerListenerDetails.md
docs/LoadBalancerListenerOpts.md
Expand Down Expand Up @@ -235,6 +236,7 @@ model_load_balancer.go
model_load_balancer_configuration.go
model_load_balancer_details.go
model_load_balancer_granularity.go
model_load_balancer_list_item.go
model_load_balancer_listener.go
model_load_balancer_listener_details.go
model_load_balancer_listener_opts.go
Expand Down
1 change: 1 addition & 0 deletions publicCloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ Class | Method | HTTP request | Description
- [LoadBalancerConfiguration](docs/LoadBalancerConfiguration.md)
- [LoadBalancerDetails](docs/LoadBalancerDetails.md)
- [LoadBalancerGranularity](docs/LoadBalancerGranularity.md)
- [LoadBalancerListItem](docs/LoadBalancerListItem.md)
- [LoadBalancerListener](docs/LoadBalancerListener.md)
- [LoadBalancerListenerDetails](docs/LoadBalancerListenerDetails.md)
- [LoadBalancerListenerOpts](docs/LoadBalancerListenerOpts.md)
Expand Down
208 changes: 139 additions & 69 deletions publicCloud/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4427,7 +4427,6 @@ paths:
reverseLookup: null
networkType: PUBLIC
mainIp: false
ddos: null
startedAt: 2024-04-09T15:11:37+00:00
contract:
billingFrequency: 1
Expand Down Expand Up @@ -12396,38 +12395,6 @@ components:
required:
- imageId
type: object
loadBalancer:
nullable: true
properties:
id:
description: The load balancer unique identifier
format: uuid
type: string
type:
$ref: '#/components/schemas/typeName'
resources:
$ref: '#/components/schemas/resources'
reference:
description: The identifying name set to the load balancer
nullable: true
type: string
state:
$ref: '#/components/schemas/state'
startedAt:
description: "Date and time when the load balancer was started for the first\
\ time, right after launching it"
format: date-time
nullable: true
type: string
required:
- id
- reference
- resources
- startedAt
- state
- type
title: loadBalancer
type: object
stickySession:
example:
maxLifeTime: 0
Expand Down Expand Up @@ -12481,32 +12448,64 @@ components:
- xForwardedFor
title: loadBalancerConfiguration
type: object
loadBalancerDetails:
loadBalancer:
nullable: true
properties:
id:
description: The load balancer unique identifier
format: uuid
type: string
type:
$ref: '#/components/schemas/typeName'
resources:
$ref: '#/components/schemas/resources'
reference:
description: The identifying name set to the load balancer
nullable: true
type: string
state:
$ref: '#/components/schemas/state'
startedAt:
description: "Date and time when the load balancer was started for the first\
\ time, right after launching it"
format: date-time
nullable: true
type: string
region:
$ref: '#/components/schemas/regionName'
configuration:
$ref: '#/components/schemas/loadBalancerConfiguration'
autoScalingGroup:
$ref: '#/components/schemas/autoScalingGroup'
privateNetwork:
$ref: '#/components/schemas/privateNetwork'
contract:
$ref: '#/components/schemas/contract'
required:
- autoScalingGroup
- configuration
- contract
- id
- privateNetwork
- reference
- region
- resources
- startedAt
- state
- type
title: loadBalancer
type: object
loadBalancerListItem:
allOf:
- $ref: '#/components/schemas/loadBalancer'
- nullable: true
properties:
ips:
items:
$ref: '#/components/schemas/ipDetails'
$ref: '#/components/schemas/ip'
type: array
region:
$ref: '#/components/schemas/regionName'
configuration:
$ref: '#/components/schemas/loadBalancerConfiguration'
autoScalingGroup:
$ref: '#/components/schemas/autoScalingGroup'
privateNetwork:
$ref: '#/components/schemas/privateNetwork'
contract:
$ref: '#/components/schemas/contract'
required:
- autoScalingGroup
- configuration
- contract
- ips
- privateNetwork
- region
title: loadBalancerDetails
type: object
example:
Expand Down Expand Up @@ -12570,19 +12569,13 @@ components:
ip: 127.0.0.1
nullRouted: true
mainIp: true
ddos:
detectionProfile: STANDARD_DEFAULT
protectionType: STANDARD
networkType: internal
version: null
- prefixLength: "28"
reverseLookup: reverseLookup
ip: 127.0.0.1
nullRouted: true
mainIp: true
ddos:
detectionProfile: STANDARD_DEFAULT
protectionType: STANDARD
networkType: internal
version: null
getLoadBalancerListResult:
Expand Down Expand Up @@ -12648,19 +12641,13 @@ components:
ip: 127.0.0.1
nullRouted: true
mainIp: true
ddos:
detectionProfile: STANDARD_DEFAULT
protectionType: STANDARD
networkType: internal
version: null
- prefixLength: "28"
reverseLookup: reverseLookup
ip: 127.0.0.1
nullRouted: true
mainIp: true
ddos:
detectionProfile: STANDARD_DEFAULT
protectionType: STANDARD
networkType: internal
version: null
- reference: reference
Expand Down Expand Up @@ -12723,19 +12710,13 @@ components:
ip: 127.0.0.1
nullRouted: true
mainIp: true
ddos:
detectionProfile: STANDARD_DEFAULT
protectionType: STANDARD
networkType: internal
version: null
- prefixLength: "28"
reverseLookup: reverseLookup
ip: 127.0.0.1
nullRouted: true
mainIp: true
ddos:
detectionProfile: STANDARD_DEFAULT
protectionType: STANDARD
networkType: internal
version: null
_metadata:
Expand All @@ -12745,7 +12726,7 @@ components:
properties:
loadBalancers:
items:
$ref: '#/components/schemas/loadBalancerDetails'
$ref: '#/components/schemas/loadBalancerListItem'
type: array
_metadata:
$ref: '#/components/schemas/_metadata'
Expand All @@ -12772,6 +12753,95 @@ components:
- region
- type
type: object
loadBalancerDetails:
allOf:
- $ref: '#/components/schemas/loadBalancer'
- nullable: true
properties:
ips:
items:
$ref: '#/components/schemas/ipDetails'
type: array
required:
- ips
title: loadBalancerDetails
type: object
example:
reference: reference
privateNetwork:
subnet: 10.0.0.0/16
privateNetworkId: privateNetworkId
status: CONFIGURED
configuration:
balance: null
idleTimeOut: 6
xForwardedFor: true
stickySession:
maxLifeTime: 0
enabled: true
autoScalingGroup:
cpuThreshold: 5
maximumAmount: 5
type: null
desiredAmount: 6
reference: reference
createdAt: 2000-01-23T04:56:07.000+00:00
minimumAmount: 1
startsAt: 2000-01-23T04:56:07.000+00:00
warmupTime: 2
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
state: null
cooldownTime: 7
region: null
endsAt: 2000-01-23T04:56:07.000+00:00
updatedAt: 2000-01-23T04:56:07.000+00:00
contract:
billingFrequency: 1
createdAt: 2023-11-30T16:31:28Z
term: null
renewalsAt: 2023-11-30T16:31:28Z
state: null
type: null
endsAt: 2023-11-30T16:31:28Z
resources:
memory:
unit: GiB
value: 3.75
publicNetworkSpeed:
unit: Gbps
value: 10
cpu:
unit: vCPU
value: 2
privateNetworkSpeed:
unit: Gbps
value: 10
startedAt: 2000-01-23T04:56:07.000+00:00
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
state: null
type: null
region: null
ips:
- prefixLength: "28"
reverseLookup: reverseLookup
ip: 127.0.0.1
nullRouted: true
mainIp: true
ddos:
detectionProfile: STANDARD_DEFAULT
protectionType: STANDARD
networkType: internal
version: null
- prefixLength: "28"
reverseLookup: reverseLookup
ip: 127.0.0.1
nullRouted: true
mainIp: true
ddos:
detectionProfile: STANDARD_DEFAULT
protectionType: STANDARD
networkType: internal
version: null
updateLoadBalancerOpts:
properties:
type:
Expand Down
2 changes: 1 addition & 1 deletion publicCloud/configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions publicCloud/docs/GetLoadBalancerListResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**LoadBalancers** | Pointer to [**[]LoadBalancerDetails**](LoadBalancerDetails.md) | | [optional]
**LoadBalancers** | Pointer to [**[]LoadBalancerListItem**](LoadBalancerListItem.md) | | [optional]
**Metadata** | Pointer to [**Metadata**](Metadata.md) | | [optional]

## Methods
Expand All @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set

### GetLoadBalancers

`func (o *GetLoadBalancerListResult) GetLoadBalancers() []LoadBalancerDetails`
`func (o *GetLoadBalancerListResult) GetLoadBalancers() []LoadBalancerListItem`

GetLoadBalancers returns the LoadBalancers field if non-nil, zero value otherwise.

### GetLoadBalancersOk

`func (o *GetLoadBalancerListResult) GetLoadBalancersOk() (*[]LoadBalancerDetails, bool)`
`func (o *GetLoadBalancerListResult) GetLoadBalancersOk() (*[]LoadBalancerListItem, bool)`

GetLoadBalancersOk returns a tuple with the LoadBalancers field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetLoadBalancers

`func (o *GetLoadBalancerListResult) SetLoadBalancers(v []LoadBalancerDetails)`
`func (o *GetLoadBalancerListResult) SetLoadBalancers(v []LoadBalancerListItem)`

SetLoadBalancers sets LoadBalancers field to given value.

Expand Down
Loading

0 comments on commit 6108c3d

Please sign in to comment.