Skip to content

Commit

Permalink
fix: fix opts for creating & updating target groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Leaseweb CI committed Nov 20, 2024
1 parent 1623838 commit 2fcb9e9
Show file tree
Hide file tree
Showing 20 changed files with 1,519 additions and 83 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.

8 changes: 8 additions & 0 deletions publicCloud/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ docs/CpuMetricsMetadataSummaryCpuMetrics.md
docs/CpuMetricsMetadataSummaryPeak.md
docs/CreateAutoScalingGroupOpts.md
docs/CreateImageOpts.md
docs/CreateTargetGroupOpts.md
docs/Credential.md
docs/CredentialType.md
docs/DataTrafficMetrics.md
Expand Down Expand Up @@ -66,8 +67,10 @@ docs/GetSnapshotListResult.md
docs/GetTargetGroupListResult.md
docs/GetTargetListResult.md
docs/HealthCheck.md
docs/HealthCheckOpts.md
docs/HealthCheckStatus.md
docs/HttpMethod.md
docs/HttpMethodOpt.md
docs/Image.md
docs/ImageDetails.md
docs/ImageState.md
Expand Down Expand Up @@ -145,6 +148,7 @@ docs/UpdateImageOpts.md
docs/UpdateInstanceOpts.md
docs/UpdateIpOpts.md
docs/UpdateLoadBalancerOpts.md
docs/UpdateTargetGroupOpts.md
docs/Values.md
git_push.sh
go.mod
Expand Down Expand Up @@ -173,6 +177,7 @@ model_cpu_metrics_metadata_summary_cpu_metrics.go
model_cpu_metrics_metadata_summary_peak.go
model_create_auto_scaling_group_opts.go
model_create_image_opts.go
model_create_target_group_opts.go
model_credential.go
model_credential_type.go
model_data_traffic_metrics.go
Expand Down Expand Up @@ -211,8 +216,10 @@ model_get_snapshot_list_result.go
model_get_target_group_list_result.go
model_get_target_list_result.go
model_health_check.go
model_health_check_opts.go
model_health_check_status.go
model_http_method.go
model_http_method_opt.go
model_image.go
model_image_details.go
model_image_state.go
Expand Down Expand Up @@ -287,6 +294,7 @@ model_update_image_opts.go
model_update_instance_opts.go
model_update_ip_opts.go
model_update_load_balancer_opts.go
model_update_target_group_opts.go
model_values.go
response.go
test/api_public_cloud_test.go
Expand Down
159 changes: 111 additions & 48 deletions publicCloud/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9810,7 +9810,6 @@ paths:
content:
application/json:
example:
id: 7e59b33d-05f3-4078-b251-c7831ae8fe14
name: Target group name
protocol: HTTP
port: 80
Expand All @@ -9819,10 +9818,10 @@ paths:
protocol: HTTP
method: GET
uri: /
host: my-host
host: example.com
port: 80
schema:
$ref: '#/components/schemas/targetGroup'
$ref: '#/components/schemas/createTargetGroupOpts'
required: true
responses:
"201":
Expand All @@ -9838,7 +9837,7 @@ paths:
protocol: HTTP
method: GET
uri: /
host: my-host
host: example.com
port: 80
schema:
$ref: '#/components/schemas/targetGroup'
Expand Down Expand Up @@ -9997,7 +9996,7 @@ paths:
protocol: HTTP
method: GET
uri: /
host: my-host
host: example.com
port: 80
schema:
$ref: '#/components/schemas/targetGroup'
Expand Down Expand Up @@ -10074,19 +10073,16 @@ paths:
content:
application/json:
example:
id: 7e59b33d-05f3-4078-b251-c7831ae8fe14
name: Target group name
protocol: HTTP
port: 80
region: eu-west-2
healthCheck:
protocol: HTTP
method: GET
uri: /
host: my-host
host: example.com
port: 80
schema:
$ref: '#/components/schemas/targetGroup'
$ref: '#/components/schemas/updateTargetGroupOpts'
required: true
responses:
"200":
Expand All @@ -10102,7 +10098,7 @@ paths:
protocol: HTTP
method: GET
uri: /
host: my-host
host: example.com
port: 80
schema:
$ref: '#/components/schemas/targetGroup'
Expand Down Expand Up @@ -13844,51 +13840,22 @@ components:
- type
type: object
httpMethod:
description: HTTP method to be used for health check - Required if `protocol`
is HTTP or HTTPS. Not allowed if `protocol` is TCP
enum:
- GET
- HEAD
- POST
- OPTIONS
type: string
healthCheck:
example:
protocol: HTTP
method: method
port: 9
host: host
uri: /
nullable: true
properties:
protocol:
$ref: '#/components/schemas/protocol'
method:
$ref: '#/components/schemas/httpMethod'
uri:
description: URI to check in the target instances
example: /
type: string
host:
description: Host for the health check if any
nullable: true
type: string
port:
description: Port number
type: integer
required:
- host
- method
- port
- protocol
- uri
title: healthCheck
type: object
type: string
targetGroup:
example:
protocol: protocol
port: 7
healthCheck:
protocol: HTTP
method: method
method: null
port: 9
host: host
uri: /
Expand Down Expand Up @@ -13934,7 +13901,7 @@ components:
port: 7
healthCheck:
protocol: HTTP
method: method
method: null
port: 9
host: host
uri: /
Expand All @@ -13945,7 +13912,7 @@ components:
port: 7
healthCheck:
protocol: HTTP
method: method
method: null
port: 9
host: host
uri: /
Expand Down Expand Up @@ -14284,7 +14251,7 @@ components:
port: 7
healthCheck:
protocol: HTTP
method: method
method: null
port: 9
host: host
uri: /
Expand All @@ -14295,7 +14262,7 @@ components:
port: 7
healthCheck:
protocol: HTTP
method: method
method: null
port: 9
host: host
uri: /
Expand All @@ -14315,6 +14282,70 @@ components:
$ref: '#/components/schemas/_metadata'
title: targetGroups
type: object
httpMethodOpt:
description: HTTP method to be used for health check - Required if `protocol`
is HTTP or HTTPS. Not allowed if `protocol` is TCP
enum:
- GET
- HEAD
- POST
- OPTIONS
type: string
healthCheckOpts:
properties:
protocol:
$ref: '#/components/schemas/protocol'
method:
$ref: '#/components/schemas/httpMethodOpt'
uri:
description: URI to check in the target instances
example: /
type: string
host:
description: Host for the health check if any
type: string
port:
description: Port number
type: integer
required:
- port
- protocol
- uri
title: healthCheckOpts
type: object
createTargetGroupOpts:
properties:
name:
description: The name of the target group
type: string
protocol:
$ref: '#/components/schemas/protocol'
port:
description: The port of the target group
type: integer
region:
$ref: '#/components/schemas/regionName'
healthCheck:
$ref: '#/components/schemas/healthCheckOpts'
required:
- name
- port
- protocol
- region
title: targetGroup
type: object
updateTargetGroupOpts:
properties:
name:
description: The name of the target group
type: string
port:
description: The port of the target group
type: integer
healthCheck:
$ref: '#/components/schemas/healthCheckOpts'
title: targetGroup
type: object
healthCheckStatus:
description: Health check status
enum:
Expand Down Expand Up @@ -15118,6 +15149,38 @@ components:
$ref: '#/components/schemas/metricsProperties'
title: responseCodesMetrics
type: object
healthCheck:
example:
protocol: HTTP
method: null
port: 9
host: host
uri: /
nullable: true
properties:
protocol:
$ref: '#/components/schemas/protocol'
method:
$ref: '#/components/schemas/httpMethod'
uri:
description: URI to check in the target instances
example: /
type: string
host:
description: Host for the health check if any
nullable: true
type: string
port:
description: Port number
type: integer
required:
- host
- method
- port
- protocol
- uri
title: healthCheck
type: object
securitySchemes:
BearerAuth:
scheme: bearer
Expand Down
Loading

0 comments on commit 2fcb9e9

Please sign in to comment.