From 8b1fdc71073456ae4d5b4b0869105254a88cae81 Mon Sep 17 00:00:00 2001 From: apecloud-bot Date: Thu, 20 Feb 2025 11:14:09 +0000 Subject: [PATCH] chore: auto update client api https://github.com/apecloud/apecloud/commit/d6bb3afea6926716993ddf85ef24d36ad1b70e5e --- .generator/schemas/adminapi.yaml | 15 ------- .generator/schemas/openapi.yaml | 15 ------- apecloud | 2 +- api/kbcloud/admin/api_account.go | 72 ++------------------------------ api/kbcloud/api_account.go | 72 ++------------------------------ 5 files changed, 7 insertions(+), 169 deletions(-) diff --git a/.generator/schemas/adminapi.yaml b/.generator/schemas/adminapi.yaml index c1be6830..44795c8e 100644 --- a/.generator/schemas/adminapi.yaml +++ b/.generator/schemas/adminapi.yaml @@ -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 @@ -14171,11 +14166,6 @@ paths: required: true schema: type: string - - description: include root account - in: query - name: includeRoot - schema: - type: boolean responses: '200': content: @@ -14496,11 +14486,6 @@ paths: required: true schema: type: string - - description: include root account - in: query - name: includeRoot - schema: - type: boolean responses: '200': content: diff --git a/.generator/schemas/openapi.yaml b/.generator/schemas/openapi.yaml index 13769ce9..88426d37 100644 --- a/.generator/schemas/openapi.yaml +++ b/.generator/schemas/openapi.yaml @@ -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 @@ -10862,11 +10857,6 @@ paths: required: true schema: type: string - - description: include root account - in: query - name: includeRoot - schema: - type: boolean responses: '200': content: @@ -11187,11 +11177,6 @@ paths: required: true schema: type: string - - description: include root account - in: query - name: includeRoot - schema: - type: boolean responses: '200': content: diff --git a/apecloud b/apecloud index cc034618..d6bb3afe 160000 --- a/apecloud +++ b/apecloud @@ -1 +1 @@ -Subproject commit cc0346182ea91eecd67e4f6856b3fc328a373161 +Subproject commit d6bb3afea6926716993ddf85ef24d36ad1b70e5e diff --git a/api/kbcloud/admin/api_account.go b/api/kbcloud/admin/api_account.go index 90a58c19..b342a7f6 100644 --- a/api/kbcloud/admin/api_account.go +++ b/api/kbcloud/admin/api_account.go @@ -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", @@ -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( @@ -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. @@ -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 @@ -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, "")) } @@ -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", @@ -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( diff --git a/api/kbcloud/api_account.go b/api/kbcloud/api_account.go index 97ec77d9..5427c760 100644 --- a/api/kbcloud/api_account.go +++ b/api/kbcloud/api_account.go @@ -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", @@ -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( @@ -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. @@ -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 @@ -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, "")) } @@ -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", @@ -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(