Skip to content

Commit 96f0e74

Browse files
committed
chore: auto update client api apecloud/apecloud@eb5163d
1 parent bcefc7e commit 96f0e74

File tree

6 files changed

+48
-3
lines changed

6 files changed

+48
-3
lines changed

.generator/schemas/adminapi.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7993,9 +7993,14 @@ paths:
79937993
description: defined whether to search for rebuilding instance.
79947994
schema:
79957995
type: boolean
7996+
- name: withHScale
7997+
in: query
7998+
description: defined whether to search for rebuilding instance.
7999+
schema:
8000+
type: boolean
79968001
- name: component
79978002
in: query
7998-
description: The component type is required when withRebuildInstance is true.
8003+
description: The component type is required when withRebuildInstance/withHScale is true.
79998004
schema:
80008005
type: string
80018006
responses:

.generator/schemas/openapi.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3807,9 +3807,14 @@ paths:
38073807
description: defined whether to search for rebuilding instance.
38083808
schema:
38093809
type: boolean
3810+
- name: withHScale
3811+
in: query
3812+
description: defined whether to search for rebuilding instance.
3813+
schema:
3814+
type: boolean
38103815
- name: component
38113816
in: query
3812-
description: The component type is required when withRebuildInstance is true.
3817+
description: The component type is required when withRebuildInstance/withHScale is true.
38133818
schema:
38143819
type: string
38153820
responses:
@@ -3993,6 +3998,11 @@ paths:
39933998
description: defined whether to search for rebuilding instance.
39943999
schema:
39954000
type: boolean
4001+
- name: withHScale
4002+
in: query
4003+
description: defined whether to search for hScale instance.
4004+
schema:
4005+
type: boolean
39964006
- name: componentName
39974007
in: query
39984008
description: get the backups belong to the component

apecloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 72824545fb1062e7870b0093a3b64be91cfb69cc
1+
Subproject commit eb5163d728b5261e20a99f0e590c510f90fabee2

api/kbcloud/admin/api_backup_method.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type GetBackupMethodOptionalParameters struct {
2222
ClusterId *string
2323
EnablePitr *bool
2424
WithRebuildInstance *bool
25+
WithHScale *bool
2526
Component *string
2627
}
2728

@@ -49,6 +50,12 @@ func (r *GetBackupMethodOptionalParameters) WithWithRebuildInstance(withRebuildI
4950
return r
5051
}
5152

53+
// WithWithHScale sets the corresponding parameter name and returns the struct.
54+
func (r *GetBackupMethodOptionalParameters) WithWithHScale(withHScale bool) *GetBackupMethodOptionalParameters {
55+
r.WithHScale = &withHScale
56+
return r
57+
}
58+
5259
// WithComponent sets the corresponding parameter name and returns the struct.
5360
func (r *GetBackupMethodOptionalParameters) WithComponent(component string) *GetBackupMethodOptionalParameters {
5461
r.Component = &component
@@ -101,6 +108,9 @@ func (a *BackupMethodApi) GetBackupMethod(ctx _context.Context, orgName string,
101108
if optionalParams.WithRebuildInstance != nil {
102109
localVarQueryParams.Add("withRebuildInstance", common.ParameterToString(*optionalParams.WithRebuildInstance, ""))
103110
}
111+
if optionalParams.WithHScale != nil {
112+
localVarQueryParams.Add("withHScale", common.ParameterToString(*optionalParams.WithHScale, ""))
113+
}
104114
if optionalParams.Component != nil {
105115
localVarQueryParams.Add("component", common.ParameterToString(*optionalParams.Component, ""))
106116
}

api/kbcloud/api_backup.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ type ListBackupsOptionalParameters struct {
624624
WithDeletedBackups *bool
625625
BackupType *string
626626
WithRebuildInstance *bool
627+
WithHScale *bool
627628
ComponentName *string
628629
Page *int32
629630
PageSize *int32
@@ -677,6 +678,12 @@ func (r *ListBackupsOptionalParameters) WithWithRebuildInstance(withRebuildInsta
677678
return r
678679
}
679680

681+
// WithWithHScale sets the corresponding parameter name and returns the struct.
682+
func (r *ListBackupsOptionalParameters) WithWithHScale(withHScale bool) *ListBackupsOptionalParameters {
683+
r.WithHScale = &withHScale
684+
return r
685+
}
686+
680687
// WithComponentName sets the corresponding parameter name and returns the struct.
681688
func (r *ListBackupsOptionalParameters) WithComponentName(componentName string) *ListBackupsOptionalParameters {
682689
r.ComponentName = &componentName
@@ -752,6 +759,9 @@ func (a *BackupApi) ListBackups(ctx _context.Context, orgName string, o ...ListB
752759
if optionalParams.WithRebuildInstance != nil {
753760
localVarQueryParams.Add("withRebuildInstance", common.ParameterToString(*optionalParams.WithRebuildInstance, ""))
754761
}
762+
if optionalParams.WithHScale != nil {
763+
localVarQueryParams.Add("withHScale", common.ParameterToString(*optionalParams.WithHScale, ""))
764+
}
755765
if optionalParams.ComponentName != nil {
756766
localVarQueryParams.Add("componentName", common.ParameterToString(*optionalParams.ComponentName, ""))
757767
}

api/kbcloud/api_backup_method.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type GetBackupMethodOptionalParameters struct {
2222
ClusterId *string
2323
EnablePitr *bool
2424
WithRebuildInstance *bool
25+
WithHScale *bool
2526
Component *string
2627
}
2728

@@ -49,6 +50,12 @@ func (r *GetBackupMethodOptionalParameters) WithWithRebuildInstance(withRebuildI
4950
return r
5051
}
5152

53+
// WithWithHScale sets the corresponding parameter name and returns the struct.
54+
func (r *GetBackupMethodOptionalParameters) WithWithHScale(withHScale bool) *GetBackupMethodOptionalParameters {
55+
r.WithHScale = &withHScale
56+
return r
57+
}
58+
5259
// WithComponent sets the corresponding parameter name and returns the struct.
5360
func (r *GetBackupMethodOptionalParameters) WithComponent(component string) *GetBackupMethodOptionalParameters {
5461
r.Component = &component
@@ -101,6 +108,9 @@ func (a *BackupMethodApi) GetBackupMethod(ctx _context.Context, orgName string,
101108
if optionalParams.WithRebuildInstance != nil {
102109
localVarQueryParams.Add("withRebuildInstance", common.ParameterToString(*optionalParams.WithRebuildInstance, ""))
103110
}
111+
if optionalParams.WithHScale != nil {
112+
localVarQueryParams.Add("withHScale", common.ParameterToString(*optionalParams.WithHScale, ""))
113+
}
104114
if optionalParams.Component != nil {
105115
localVarQueryParams.Add("component", common.ParameterToString(*optionalParams.Component, ""))
106116
}

0 commit comments

Comments
 (0)