Skip to content

Commit 4666213

Browse files
committed
chore: auto update client api apecloud/apecloud@85affb9
1 parent 66bd994 commit 4666213

File tree

7 files changed

+14
-2
lines changed

7 files changed

+14
-2
lines changed

.generator/schemas/adminapi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17508,6 +17508,7 @@ components:
1750817508
enum:
1750917509
- public
1751017510
- private
17511+
default: public
1751117512
clusterLicense:
1751217513
type: object
1751317514
properties:
@@ -21547,7 +21548,7 @@ components:
2154721548
nullable: true
2154821549
type:
2154921550
$ref: '#/components/schemas/environmentType'
21550-
nullable: true
21551+
x-nullable: true
2155121552
organizations:
2155221553
items:
2155321554
type: string

.generator/schemas/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14044,6 +14044,7 @@ components:
1404414044
enum:
1404514045
- public
1404614046
- private
14047+
default: public
1404714048
clusterValidationPolicy:
1404814049
type: string
1404914050
description: Cluster operation validation policy, such as create, hscale, vscale, etc.

apecloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 13cace3527d153a0bd864d54c1dbb9ca9ac04b4a
1+
Subproject commit 85affb9f4d38e67ba24c82c189f2eb331c01959a

api/kbcloud/admin/model_environment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ func NewEnvironment(provider string, region string, availabilityZones []string,
9595
// but it doesn't guarantee that properties required by API are set.
9696
func NewEnvironmentWithDefaults() *Environment {
9797
this := Environment{}
98+
var typeVar EnvironmentType = EnvironmentTypePublic
99+
this.Type = typeVar
98100
var deletePolicy EnvironmentDeletePolicy = EnvironmentDeletePolicyDoNotDelete
99101
this.DeletePolicy = &deletePolicy
100102
var clusterValidationPolicy ClusterValidationPolicy = ClusterValidationPolicyValidateOnly

api/kbcloud/admin/model_environment_create.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ func NewEnvironmentCreate(name string, typeVar EnvironmentType, provisionConfig
7575
// but it doesn't guarantee that properties required by API are set.
7676
func NewEnvironmentCreateWithDefaults() *EnvironmentCreate {
7777
this := EnvironmentCreate{}
78+
var typeVar EnvironmentType = EnvironmentTypePublic
79+
this.Type = typeVar
7880
var deletePolicy EnvironmentDeletePolicy = EnvironmentDeletePolicyDoNotDelete
7981
this.DeletePolicy = &deletePolicy
8082
var overwrite bool = false

api/kbcloud/admin/model_environment_update.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ type EnvironmentUpdate struct {
5959
// will change when the set of required properties is changed.
6060
func NewEnvironmentUpdate() *EnvironmentUpdate {
6161
this := EnvironmentUpdate{}
62+
var typeVar EnvironmentType = EnvironmentTypePublic
63+
this.Type = &typeVar
6264
var podAntiAffinityEnabled bool = true
6365
this.PodAntiAffinityEnabled = &podAntiAffinityEnabled
6466
var nodePortEnabled bool = true
@@ -81,6 +83,8 @@ func NewEnvironmentUpdate() *EnvironmentUpdate {
8183
// but it doesn't guarantee that properties required by API are set.
8284
func NewEnvironmentUpdateWithDefaults() *EnvironmentUpdate {
8385
this := EnvironmentUpdate{}
86+
var typeVar EnvironmentType = EnvironmentTypePublic
87+
this.Type = &typeVar
8488
var podAntiAffinityEnabled bool = true
8589
this.PodAntiAffinityEnabled = &podAntiAffinityEnabled
8690
var nodePortEnabled bool = true

api/kbcloud/model_environment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ func NewEnvironment(provider string, region string, availabilityZones []string,
9090
// but it doesn't guarantee that properties required by API are set.
9191
func NewEnvironmentWithDefaults() *Environment {
9292
this := Environment{}
93+
var typeVar EnvironmentType = EnvironmentTypePublic
94+
this.Type = typeVar
9395
var podAntiAffinityEnabled bool = true
9496
this.PodAntiAffinityEnabled = &podAntiAffinityEnabled
9597
var clusterValidationPolicy ClusterValidationPolicy = ClusterValidationPolicyValidateOnly

0 commit comments

Comments
 (0)