Skip to content

Commit

Permalink
chore: auto update client api apecloud/apecloud@d6bb3af
Browse files Browse the repository at this point in the history
  • Loading branch information
apecloud-bot committed Feb 20, 2025
1 parent bd3a57a commit 8b1fdc7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 169 deletions.
15 changes: 0 additions & 15 deletions .generator/schemas/adminapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1424,11 +1424,6 @@ paths:
required: true
schema:
type: string
- description: include root account
in: query
name: includeRoot
schema:
type: boolean
- description: component type
in: query
name: component
Expand Down Expand Up @@ -14171,11 +14166,6 @@ paths:
required: true
schema:
type: string
- description: include root account
in: query
name: includeRoot
schema:
type: boolean
responses:
'200':
content:
Expand Down Expand Up @@ -14496,11 +14486,6 @@ paths:
required: true
schema:
type: string
- description: include root account
in: query
name: includeRoot
schema:
type: boolean
responses:
'200':
content:
Expand Down
15 changes: 0 additions & 15 deletions .generator/schemas/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2384,11 +2384,6 @@ paths:
required: true
schema:
type: string
- description: include root account
in: query
name: includeRoot
schema:
type: boolean
- description: component type
in: query
name: component
Expand Down Expand Up @@ -10862,11 +10857,6 @@ paths:
required: true
schema:
type: string
- description: include root account
in: query
name: includeRoot
schema:
type: boolean
responses:
'200':
content:
Expand Down Expand Up @@ -11187,11 +11177,6 @@ paths:
required: true
schema:
type: string
- description: include root account
in: query
name: includeRoot
schema:
type: boolean
responses:
'200':
content:
Expand Down
2 changes: 1 addition & 1 deletion apecloud
Submodule apecloud updated from cc0346 to d6bb3a
72 changes: 3 additions & 69 deletions api/kbcloud/admin/api_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,40 +473,15 @@ func (a *AccountApi) DeleteMongoDBAccount(ctx _context.Context, orgName string,
return localVarHTTPResponse, nil
}

// ListAccountsOptionalParameters holds optional parameters for ListAccounts.
type ListAccountsOptionalParameters struct {
IncludeRoot *bool
}

// NewListAccountsOptionalParameters creates an empty struct for parameters.
func NewListAccountsOptionalParameters() *ListAccountsOptionalParameters {
this := ListAccountsOptionalParameters{}
return &this
}

// WithIncludeRoot sets the corresponding parameter name and returns the struct.
func (r *ListAccountsOptionalParameters) WithIncludeRoot(includeRoot bool) *ListAccountsOptionalParameters {
r.IncludeRoot = &includeRoot
return r
}

// ListAccounts List cluster accounts.
// list accounts in cluster
func (a *AccountApi) ListAccounts(ctx _context.Context, engineName string, orgName string, clusterName string, o ...ListAccountsOptionalParameters) ([]AccountListItem, *_nethttp.Response, error) {
func (a *AccountApi) ListAccounts(ctx _context.Context, engineName string, orgName string, clusterName string) ([]AccountListItem, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue []AccountListItem
optionalParams ListAccountsOptionalParameters
)

if len(o) > 1 {
return localVarReturnValue, nil, common.ReportError("only one argument of type ListAccountsOptionalParameters is allowed")
}
if len(o) == 1 {
optionalParams = o[0]
}

// Add api info to context
apiInfo := common.APIInfo{
Tag: "account",
Expand All @@ -529,9 +504,6 @@ func (a *AccountApi) ListAccounts(ctx _context.Context, engineName string, orgNa
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
if optionalParams.IncludeRoot != nil {
localVarQueryParams.Add("includeRoot", common.ParameterToString(*optionalParams.IncludeRoot, ""))
}
localVarHeaderParams["Accept"] = "application/json"

common.SetAuthKeys(
Expand Down Expand Up @@ -584,8 +556,7 @@ func (a *AccountApi) ListAccounts(ctx _context.Context, engineName string, orgNa

// ListAccountsOldOptionalParameters holds optional parameters for ListAccountsOld.
type ListAccountsOldOptionalParameters struct {
IncludeRoot *bool
Component *string
Component *string
}

// NewListAccountsOldOptionalParameters creates an empty struct for parameters.
Expand All @@ -594,12 +565,6 @@ func NewListAccountsOldOptionalParameters() *ListAccountsOldOptionalParameters {
return &this
}

// WithIncludeRoot sets the corresponding parameter name and returns the struct.
func (r *ListAccountsOldOptionalParameters) WithIncludeRoot(includeRoot bool) *ListAccountsOldOptionalParameters {
r.IncludeRoot = &includeRoot
return r
}

// WithComponent sets the corresponding parameter name and returns the struct.
func (r *ListAccountsOldOptionalParameters) WithComponent(component string) *ListAccountsOldOptionalParameters {
r.Component = &component
Expand Down Expand Up @@ -645,9 +610,6 @@ func (a *AccountApi) ListAccountsOld(ctx _context.Context, orgName string, clust
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
if optionalParams.IncludeRoot != nil {
localVarQueryParams.Add("includeRoot", common.ParameterToString(*optionalParams.IncludeRoot, ""))
}
if optionalParams.Component != nil {
localVarQueryParams.Add("component", common.ParameterToString(*optionalParams.Component, ""))
}
Expand Down Expand Up @@ -701,40 +663,15 @@ func (a *AccountApi) ListAccountsOld(ctx _context.Context, orgName string, clust
return localVarReturnValue, localVarHTTPResponse, nil
}

// ListMongoDBAccountsOptionalParameters holds optional parameters for ListMongoDBAccounts.
type ListMongoDBAccountsOptionalParameters struct {
IncludeRoot *bool
}

// NewListMongoDBAccountsOptionalParameters creates an empty struct for parameters.
func NewListMongoDBAccountsOptionalParameters() *ListMongoDBAccountsOptionalParameters {
this := ListMongoDBAccountsOptionalParameters{}
return &this
}

// WithIncludeRoot sets the corresponding parameter name and returns the struct.
func (r *ListMongoDBAccountsOptionalParameters) WithIncludeRoot(includeRoot bool) *ListMongoDBAccountsOptionalParameters {
r.IncludeRoot = &includeRoot
return r
}

// ListMongoDBAccounts List mongodb accounts.
// list accounts in mongodb
func (a *AccountApi) ListMongoDBAccounts(ctx _context.Context, orgName string, clusterName string, o ...ListMongoDBAccountsOptionalParameters) ([]AccountListItem, *_nethttp.Response, error) {
func (a *AccountApi) ListMongoDBAccounts(ctx _context.Context, orgName string, clusterName string) ([]AccountListItem, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue []AccountListItem
optionalParams ListMongoDBAccountsOptionalParameters
)

if len(o) > 1 {
return localVarReturnValue, nil, common.ReportError("only one argument of type ListMongoDBAccountsOptionalParameters is allowed")
}
if len(o) == 1 {
optionalParams = o[0]
}

// Add api info to context
apiInfo := common.APIInfo{
Tag: "account",
Expand All @@ -756,9 +693,6 @@ func (a *AccountApi) ListMongoDBAccounts(ctx _context.Context, orgName string, c
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
if optionalParams.IncludeRoot != nil {
localVarQueryParams.Add("includeRoot", common.ParameterToString(*optionalParams.IncludeRoot, ""))
}
localVarHeaderParams["Accept"] = "application/json"

common.SetAuthKeys(
Expand Down
72 changes: 3 additions & 69 deletions api/kbcloud/api_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,40 +473,15 @@ func (a *AccountApi) DeleteMongoDBAccount(ctx _context.Context, orgName string,
return localVarHTTPResponse, nil
}

// ListAccountsOptionalParameters holds optional parameters for ListAccounts.
type ListAccountsOptionalParameters struct {
IncludeRoot *bool
}

// NewListAccountsOptionalParameters creates an empty struct for parameters.
func NewListAccountsOptionalParameters() *ListAccountsOptionalParameters {
this := ListAccountsOptionalParameters{}
return &this
}

// WithIncludeRoot sets the corresponding parameter name and returns the struct.
func (r *ListAccountsOptionalParameters) WithIncludeRoot(includeRoot bool) *ListAccountsOptionalParameters {
r.IncludeRoot = &includeRoot
return r
}

// ListAccounts List cluster accounts.
// list accounts in cluster
func (a *AccountApi) ListAccounts(ctx _context.Context, engineName string, orgName string, clusterName string, o ...ListAccountsOptionalParameters) ([]AccountListItem, *_nethttp.Response, error) {
func (a *AccountApi) ListAccounts(ctx _context.Context, engineName string, orgName string, clusterName string) ([]AccountListItem, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue []AccountListItem
optionalParams ListAccountsOptionalParameters
)

if len(o) > 1 {
return localVarReturnValue, nil, common.ReportError("only one argument of type ListAccountsOptionalParameters is allowed")
}
if len(o) == 1 {
optionalParams = o[0]
}

// Add api info to context
apiInfo := common.APIInfo{
Tag: "account",
Expand All @@ -529,9 +504,6 @@ func (a *AccountApi) ListAccounts(ctx _context.Context, engineName string, orgNa
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
if optionalParams.IncludeRoot != nil {
localVarQueryParams.Add("includeRoot", common.ParameterToString(*optionalParams.IncludeRoot, ""))
}
localVarHeaderParams["Accept"] = "application/json"

common.SetAuthKeys(
Expand Down Expand Up @@ -584,8 +556,7 @@ func (a *AccountApi) ListAccounts(ctx _context.Context, engineName string, orgNa

// ListAccountsOldOptionalParameters holds optional parameters for ListAccountsOld.
type ListAccountsOldOptionalParameters struct {
IncludeRoot *bool
Component *string
Component *string
}

// NewListAccountsOldOptionalParameters creates an empty struct for parameters.
Expand All @@ -594,12 +565,6 @@ func NewListAccountsOldOptionalParameters() *ListAccountsOldOptionalParameters {
return &this
}

// WithIncludeRoot sets the corresponding parameter name and returns the struct.
func (r *ListAccountsOldOptionalParameters) WithIncludeRoot(includeRoot bool) *ListAccountsOldOptionalParameters {
r.IncludeRoot = &includeRoot
return r
}

// WithComponent sets the corresponding parameter name and returns the struct.
func (r *ListAccountsOldOptionalParameters) WithComponent(component string) *ListAccountsOldOptionalParameters {
r.Component = &component
Expand Down Expand Up @@ -645,9 +610,6 @@ func (a *AccountApi) ListAccountsOld(ctx _context.Context, orgName string, clust
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
if optionalParams.IncludeRoot != nil {
localVarQueryParams.Add("includeRoot", common.ParameterToString(*optionalParams.IncludeRoot, ""))
}
if optionalParams.Component != nil {
localVarQueryParams.Add("component", common.ParameterToString(*optionalParams.Component, ""))
}
Expand Down Expand Up @@ -701,40 +663,15 @@ func (a *AccountApi) ListAccountsOld(ctx _context.Context, orgName string, clust
return localVarReturnValue, localVarHTTPResponse, nil
}

// ListMongoDBAccountsOptionalParameters holds optional parameters for ListMongoDBAccounts.
type ListMongoDBAccountsOptionalParameters struct {
IncludeRoot *bool
}

// NewListMongoDBAccountsOptionalParameters creates an empty struct for parameters.
func NewListMongoDBAccountsOptionalParameters() *ListMongoDBAccountsOptionalParameters {
this := ListMongoDBAccountsOptionalParameters{}
return &this
}

// WithIncludeRoot sets the corresponding parameter name and returns the struct.
func (r *ListMongoDBAccountsOptionalParameters) WithIncludeRoot(includeRoot bool) *ListMongoDBAccountsOptionalParameters {
r.IncludeRoot = &includeRoot
return r
}

// ListMongoDBAccounts List mongodb accounts.
// list accounts in mongodb
func (a *AccountApi) ListMongoDBAccounts(ctx _context.Context, orgName string, clusterName string, o ...ListMongoDBAccountsOptionalParameters) ([]AccountListItem, *_nethttp.Response, error) {
func (a *AccountApi) ListMongoDBAccounts(ctx _context.Context, orgName string, clusterName string) ([]AccountListItem, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
localVarPostBody interface{}
localVarReturnValue []AccountListItem
optionalParams ListMongoDBAccountsOptionalParameters
)

if len(o) > 1 {
return localVarReturnValue, nil, common.ReportError("only one argument of type ListMongoDBAccountsOptionalParameters is allowed")
}
if len(o) == 1 {
optionalParams = o[0]
}

// Add api info to context
apiInfo := common.APIInfo{
Tag: "account",
Expand All @@ -756,9 +693,6 @@ func (a *AccountApi) ListMongoDBAccounts(ctx _context.Context, orgName string, c
localVarHeaderParams := make(map[string]string)
localVarQueryParams := _neturl.Values{}
localVarFormParams := _neturl.Values{}
if optionalParams.IncludeRoot != nil {
localVarQueryParams.Add("includeRoot", common.ParameterToString(*optionalParams.IncludeRoot, ""))
}
localVarHeaderParams["Accept"] = "application/json"

common.SetAuthKeys(
Expand Down

0 comments on commit 8b1fdc7

Please sign in to comment.