From 9861c1341307defdf9fb6843617c45c353cd409a Mon Sep 17 00:00:00 2001 From: Arash Date: Sun, 12 Nov 2023 13:47:19 +0000 Subject: [PATCH] SDK v0.7.17 - API v4.114.0 --- api/openapi.yaml | 131 ++++++++++++++++++++++++++---------- docs/LoadBalancerPool.md | 8 +-- model_load_balancer_pool.go | 12 ++-- 3 files changed, 107 insertions(+), 44 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 618eb9d..d4ffc40 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -13223,8 +13223,12 @@ components: description: description pools: - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -13282,8 +13286,12 @@ components: id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 status: true - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -13394,8 +13402,12 @@ components: description: description pools: - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -13453,8 +13465,12 @@ components: id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 status: true - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -13529,8 +13545,12 @@ components: description: description pools: - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -13588,8 +13608,12 @@ components: id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 status: true - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -13655,8 +13679,12 @@ components: LoadBalancerPool: example: regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -13749,8 +13777,7 @@ components: $ref: '#/components/schemas/NextUpstreamTcpCodes' regions: items: - pattern: "^[A-Z]{3}$" - type: string + $ref: '#/components/schemas/LoadBalancerRegion' type: array origins: items: @@ -13774,8 +13801,12 @@ components: example: data: regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -13841,8 +13872,12 @@ components: example: data: - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -13900,8 +13935,12 @@ components: id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 status: true - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -19610,8 +19649,12 @@ components: description: description pools: - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -19669,8 +19712,12 @@ components: id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 status: true - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -19737,8 +19784,12 @@ components: description: description pools: - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -19796,8 +19847,12 @@ components: id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 status: true - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -19868,8 +19923,12 @@ components: example: data: - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" @@ -19927,8 +19986,12 @@ components: id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 status: true - regions: - - regions - - regions + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH + - name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + region: LAH method: cluster_rr monitoring_status: null keepalive: "off" diff --git a/docs/LoadBalancerPool.md b/docs/LoadBalancerPool.md index d923de1..cda45d1 100644 --- a/docs/LoadBalancerPool.md +++ b/docs/LoadBalancerPool.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **Keepalive** | Pointer to **string** | | [optional] [default to "off"] **NextUpstreamTcp** | Pointer to **string** | Try another server when the first one failed if on | [optional] [default to "off"] **NextUpstreamTcpCodes** | Pointer to [**NextUpstreamTcpCodes**](NextUpstreamTcpCodes.md) | | [optional] -**Regions** | Pointer to **[]string** | | [optional] +**Regions** | Pointer to [**[]LoadBalancerRegion**](LoadBalancerRegion.md) | | [optional] **Origins** | Pointer to [**[]LoadBalancerOrigin**](LoadBalancerOrigin.md) | | [optional] [readonly] **MonitoringStatus** | Pointer to [**NullableMonitoringStatus**](MonitoringStatus.md) | | [optional] **CreatedAt** | Pointer to **time.Time** | | [optional] [readonly] @@ -265,20 +265,20 @@ HasNextUpstreamTcpCodes returns a boolean if a field has been set. ### GetRegions -`func (o *LoadBalancerPool) GetRegions() []string` +`func (o *LoadBalancerPool) GetRegions() []LoadBalancerRegion` GetRegions returns the Regions field if non-nil, zero value otherwise. ### GetRegionsOk -`func (o *LoadBalancerPool) GetRegionsOk() (*[]string, bool)` +`func (o *LoadBalancerPool) GetRegionsOk() (*[]LoadBalancerRegion, bool)` GetRegionsOk returns a tuple with the Regions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegions -`func (o *LoadBalancerPool) SetRegions(v []string)` +`func (o *LoadBalancerPool) SetRegions(v []LoadBalancerRegion)` SetRegions sets Regions field to given value. diff --git a/model_load_balancer_pool.go b/model_load_balancer_pool.go index d0b837a..ce9b1cc 100644 --- a/model_load_balancer_pool.go +++ b/model_load_balancer_pool.go @@ -31,7 +31,7 @@ type LoadBalancerPool struct { // Try another server when the first one failed if on NextUpstreamTcp *string `json:"next_upstream_tcp,omitempty"` NextUpstreamTcpCodes *NextUpstreamTcpCodes `json:"next_upstream_tcp_codes,omitempty"` - Regions []string `json:"regions,omitempty"` + Regions []LoadBalancerRegion `json:"regions,omitempty"` Origins []LoadBalancerOrigin `json:"origins,omitempty"` MonitoringStatus NullableMonitoringStatus `json:"monitoring_status,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` @@ -352,9 +352,9 @@ func (o *LoadBalancerPool) SetNextUpstreamTcpCodes(v NextUpstreamTcpCodes) { } // GetRegions returns the Regions field value if set, zero value otherwise. -func (o *LoadBalancerPool) GetRegions() []string { +func (o *LoadBalancerPool) GetRegions() []LoadBalancerRegion { if o == nil || IsNil(o.Regions) { - var ret []string + var ret []LoadBalancerRegion return ret } return o.Regions @@ -362,7 +362,7 @@ func (o *LoadBalancerPool) GetRegions() []string { // GetRegionsOk returns a tuple with the Regions field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoadBalancerPool) GetRegionsOk() ([]string, bool) { +func (o *LoadBalancerPool) GetRegionsOk() ([]LoadBalancerRegion, bool) { if o == nil || IsNil(o.Regions) { return nil, false } @@ -378,8 +378,8 @@ func (o *LoadBalancerPool) HasRegions() bool { return false } -// SetRegions gets a reference to the given []string and assigns it to the Regions field. -func (o *LoadBalancerPool) SetRegions(v []string) { +// SetRegions gets a reference to the given []LoadBalancerRegion and assigns it to the Regions field. +func (o *LoadBalancerPool) SetRegions(v []LoadBalancerRegion) { o.Regions = v }