From 84a242023032808a65264b465fe4be1a8c3c27b6 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Thu, 17 Oct 2024 09:36:57 +0000 Subject: [PATCH] v1.10.4 --- .openapi-generator/VERSION | 2 +- README.md | 2 +- api/openapi.yaml | 17 +++++++++++++++++ api_rollup.go | 20 ++++++++++++++++++++ docs/ResponsesEnums.md | 26 ++++++++++++++++++++++++++ docs/RollupAPI.md | 12 ++++++++---- model_responses_enums.go | 36 ++++++++++++++++++++++++++++++++++++ 7 files changed, 109 insertions(+), 6 deletions(-) diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 17f2442..6935482 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.9.0-SNAPSHOT +7.10.0-SNAPSHOT diff --git a/README.md b/README.md index 92793ab..d0b4670 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: 1.0 - Package version: 1.0.0 -- Generator version: 7.9.0-SNAPSHOT +- Generator version: 7.10.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://discord.gg/3k83Przqk8](https://discord.gg/3k83Przqk8) diff --git a/api/openapi.yaml b/api/openapi.yaml index 51cd6d2..fd7234d 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -2185,6 +2185,11 @@ paths: - size - fee type: string + - description: Comma-separated rollup category list + in: query + name: category + schema: + type: string responses: "200": content: @@ -2267,6 +2272,11 @@ paths: - pfb_count - mb_price type: string + - description: Comma-separated rollup category list + in: query + name: category + schema: + type: string responses: "200": content: @@ -4870,10 +4880,17 @@ components: message_type: - message_type - message_type + categories: + - categories + - categories status: - status - status properties: + categories: + items: + type: string + type: array event_type: items: type: string diff --git a/api_rollup.go b/api_rollup.go index 50e5326..3b45341 100644 --- a/api_rollup.go +++ b/api_rollup.go @@ -1110,6 +1110,7 @@ type ApiListRollupRequest struct { offset *int32 sort *string sortBy *string + category *string } // Count of requested entities @@ -1136,6 +1137,12 @@ func (r ApiListRollupRequest) SortBy(sortBy string) ApiListRollupRequest { return r } +// Comma-separated rollup category list +func (r ApiListRollupRequest) Category(category string) ApiListRollupRequest { + r.category = &category + return r +} + func (r ApiListRollupRequest) Execute() ([]ResponsesRollupWithStats, *http.Response, error) { return r.ApiService.ListRollupExecute(r) } @@ -1188,6 +1195,9 @@ func (a *RollupAPIService) ListRollupExecute(r ApiListRollupRequest) ([]Response if r.sortBy != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "", "") } + if r.category != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "category", r.category, "", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1270,6 +1280,7 @@ type ApiListRollup24hRequest struct { offset *int32 sort *string sortBy *string + category *string } // Count of requested entities @@ -1296,6 +1307,12 @@ func (r ApiListRollup24hRequest) SortBy(sortBy string) ApiListRollup24hRequest { return r } +// Comma-separated rollup category list +func (r ApiListRollup24hRequest) Category(category string) ApiListRollup24hRequest { + r.category = &category + return r +} + func (r ApiListRollup24hRequest) Execute() ([]ResponsesRollupWithDayStats, *http.Response, error) { return r.ApiService.ListRollup24hExecute(r) } @@ -1348,6 +1365,9 @@ func (a *RollupAPIService) ListRollup24hExecute(r ApiListRollup24hRequest) ([]Re if r.sortBy != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "", "") } + if r.category != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "category", r.category, "", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/docs/ResponsesEnums.md b/docs/ResponsesEnums.md index 92e59e8..b8a9874 100644 --- a/docs/ResponsesEnums.md +++ b/docs/ResponsesEnums.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Categories** | Pointer to **[]string** | | [optional] **EventType** | Pointer to **[]string** | | [optional] **MessageType** | Pointer to **[]string** | | [optional] **Status** | Pointer to **[]string** | | [optional] @@ -27,6 +28,31 @@ NewResponsesEnumsWithDefaults instantiates a new ResponsesEnums object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCategories + +`func (o *ResponsesEnums) GetCategories() []string` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *ResponsesEnums) GetCategoriesOk() (*[]string, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *ResponsesEnums) SetCategories(v []string)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *ResponsesEnums) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + ### GetEventType `func (o *ResponsesEnums) GetEventType() []string` diff --git a/docs/RollupAPI.md b/docs/RollupAPI.md index 5a6796e..5601834 100644 --- a/docs/RollupAPI.md +++ b/docs/RollupAPI.md @@ -592,7 +592,7 @@ No authorization required ## ListRollup -> []ResponsesRollupWithStats ListRollup(ctx).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Execute() +> []ResponsesRollupWithStats ListRollup(ctx).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Category(category).Execute() List rollups info @@ -615,10 +615,11 @@ func main() { offset := int32(56) // int32 | Offset (optional) sort := "sort_example" // string | Sort order. Default: desc (optional) sortBy := "sortBy_example" // string | Sort field. Default: size (optional) + category := "category_example" // string | Comma-separated rollup category list (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RollupAPI.ListRollup(context.Background()).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Execute() + resp, r, err := apiClient.RollupAPI.ListRollup(context.Background()).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Category(category).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.ListRollup``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -643,6 +644,7 @@ Name | Type | Description | Notes **offset** | **int32** | Offset | **sort** | **string** | Sort order. Default: desc | **sortBy** | **string** | Sort field. Default: size | + **category** | **string** | Comma-separated rollup category list | ### Return type @@ -664,7 +666,7 @@ No authorization required ## ListRollup24h -> []ResponsesRollupWithDayStats ListRollup24h(ctx).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Execute() +> []ResponsesRollupWithDayStats ListRollup24h(ctx).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Category(category).Execute() List rollups info with stats by previous 24 hours @@ -687,10 +689,11 @@ func main() { offset := int32(56) // int32 | Offset (optional) sort := "sort_example" // string | Sort order. Default: desc (optional) sortBy := "sortBy_example" // string | Sort field. Default: mb_price (optional) + category := "category_example" // string | Comma-separated rollup category list (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RollupAPI.ListRollup24h(context.Background()).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Execute() + resp, r, err := apiClient.RollupAPI.ListRollup24h(context.Background()).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Category(category).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RollupAPI.ListRollup24h``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -715,6 +718,7 @@ Name | Type | Description | Notes **offset** | **int32** | Offset | **sort** | **string** | Sort order. Default: desc | **sortBy** | **string** | Sort field. Default: mb_price | + **category** | **string** | Comma-separated rollup category list | ### Return type diff --git a/model_responses_enums.go b/model_responses_enums.go index 4973f36..6b85312 100644 --- a/model_responses_enums.go +++ b/model_responses_enums.go @@ -20,6 +20,7 @@ var _ MappedNullable = &ResponsesEnums{} // ResponsesEnums struct for ResponsesEnums type ResponsesEnums struct { + Categories []string `json:"categories,omitempty"` EventType []string `json:"event_type,omitempty"` MessageType []string `json:"message_type,omitempty"` Status []string `json:"status,omitempty"` @@ -42,6 +43,38 @@ func NewResponsesEnumsWithDefaults() *ResponsesEnums { return &this } +// GetCategories returns the Categories field value if set, zero value otherwise. +func (o *ResponsesEnums) GetCategories() []string { + if o == nil || IsNil(o.Categories) { + var ret []string + return ret + } + return o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResponsesEnums) GetCategoriesOk() ([]string, bool) { + if o == nil || IsNil(o.Categories) { + return nil, false + } + return o.Categories, true +} + +// HasCategories returns a boolean if a field has been set. +func (o *ResponsesEnums) HasCategories() bool { + if o != nil && !IsNil(o.Categories) { + return true + } + + return false +} + +// SetCategories gets a reference to the given []string and assigns it to the Categories field. +func (o *ResponsesEnums) SetCategories(v []string) { + o.Categories = v +} + // GetEventType returns the EventType field value if set, zero value otherwise. func (o *ResponsesEnums) GetEventType() []string { if o == nil || IsNil(o.EventType) { @@ -148,6 +181,9 @@ func (o ResponsesEnums) MarshalJSON() ([]byte, error) { func (o ResponsesEnums) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Categories) { + toSerialize["categories"] = o.Categories + } if !IsNil(o.EventType) { toSerialize["event_type"] = o.EventType }