Skip to content

Commit fbc5af5

Browse files
committed
Update SDK to version 0.1.8
1 parent fdf4932 commit fbc5af5

File tree

8 files changed

+337
-69
lines changed

8 files changed

+337
-69
lines changed

api/openapi.yaml

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,9 +2109,7 @@ paths:
21092109
content:
21102110
application/json:
21112111
schema:
2112-
items:
2113-
$ref: '#/components/schemas/dto.MeterResponse'
2114-
type: array
2112+
$ref: '#/components/schemas/dto.ListMetersResponse'
21152113
description: OK
21162114
"500":
21172115
content:
@@ -6557,8 +6555,6 @@ components:
65576555
start_time:
65586556
example: 2024-11-09T00:00:00Z
65596557
type: string
6560-
required:
6561-
- event_name
65626558
type: object
65636559
dto.GetEventsResponse:
65646560
example:
@@ -8766,6 +8762,61 @@ components:
87668762
pagination:
87678763
$ref: '#/components/schemas/types.PaginationResponse'
87688764
type: object
8765+
dto.ListMetersResponse:
8766+
example:
8767+
pagination:
8768+
total: 1
8769+
offset: 6
8770+
limit: 0
8771+
items:
8772+
- tenant_id: tenant123
8773+
updated_at: 2024-03-20T15:04:05Z
8774+
name: API Usage Meter
8775+
created_at: 2024-03-20T15:04:05Z
8776+
event_name: api_request
8777+
aggregation:
8778+
field: field
8779+
type: COUNT
8780+
reset_usage: BILLING_PERIOD
8781+
filters:
8782+
- values:
8783+
- values
8784+
- values
8785+
key: key
8786+
- values:
8787+
- values
8788+
- values
8789+
key: key
8790+
id: 550e8400-e29b-41d4-a716-446655440000
8791+
status: published
8792+
- tenant_id: tenant123
8793+
updated_at: 2024-03-20T15:04:05Z
8794+
name: API Usage Meter
8795+
created_at: 2024-03-20T15:04:05Z
8796+
event_name: api_request
8797+
aggregation:
8798+
field: field
8799+
type: COUNT
8800+
reset_usage: BILLING_PERIOD
8801+
filters:
8802+
- values:
8803+
- values
8804+
- values
8805+
key: key
8806+
- values:
8807+
- values
8808+
- values
8809+
key: key
8810+
id: 550e8400-e29b-41d4-a716-446655440000
8811+
status: published
8812+
properties:
8813+
items:
8814+
items:
8815+
$ref: '#/components/schemas/dto.MeterResponse'
8816+
type: array
8817+
pagination:
8818+
$ref: '#/components/schemas/types.PaginationResponse'
8819+
type: object
87698820
dto.ListPaymentsResponse:
87708821
example:
87718822
pagination:

api_meters.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/DtoGetEventsRequest.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**CountTotal** | Pointer to **bool** | | [optional]
88
**EndTime** | Pointer to **string** | | [optional]
99
**EventId** | Pointer to **string** | | [optional]
10-
**EventName** | **string** | |
10+
**EventName** | Pointer to **string** | | [optional]
1111
**ExternalCustomerId** | Pointer to **string** | | [optional]
1212
**IterFirstKey** | Pointer to **string** | | [optional]
1313
**IterLastKey** | Pointer to **string** | | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020

2121
### NewDtoGetEventsRequest
2222

23-
`func NewDtoGetEventsRequest(eventName string, ) *DtoGetEventsRequest`
23+
`func NewDtoGetEventsRequest() *DtoGetEventsRequest`
2424

2525
NewDtoGetEventsRequest instantiates a new DtoGetEventsRequest object
2626
This constructor will assign default values to properties that have it defined,
@@ -129,6 +129,11 @@ and a boolean to check if the value has been set.
129129

130130
SetEventName sets EventName field to given value.
131131

132+
### HasEventName
133+
134+
`func (o *DtoGetEventsRequest) HasEventName() bool`
135+
136+
HasEventName returns a boolean if a field has been set.
132137

133138
### GetExternalCustomerId
134139

docs/DtoListMetersResponse.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# DtoListMetersResponse
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Items** | Pointer to [**[]DtoMeterResponse**](DtoMeterResponse.md) | | [optional]
8+
**Pagination** | Pointer to [**TypesPaginationResponse**](TypesPaginationResponse.md) | | [optional]
9+
10+
## Methods
11+
12+
### NewDtoListMetersResponse
13+
14+
`func NewDtoListMetersResponse() *DtoListMetersResponse`
15+
16+
NewDtoListMetersResponse instantiates a new DtoListMetersResponse object
17+
This constructor will assign default values to properties that have it defined,
18+
and makes sure properties required by API are set, but the set of arguments
19+
will change when the set of required properties is changed
20+
21+
### NewDtoListMetersResponseWithDefaults
22+
23+
`func NewDtoListMetersResponseWithDefaults() *DtoListMetersResponse`
24+
25+
NewDtoListMetersResponseWithDefaults instantiates a new DtoListMetersResponse object
26+
This constructor will only assign default values to properties that have it defined,
27+
but it doesn't guarantee that properties required by API are set
28+
29+
### GetItems
30+
31+
`func (o *DtoListMetersResponse) GetItems() []DtoMeterResponse`
32+
33+
GetItems returns the Items field if non-nil, zero value otherwise.
34+
35+
### GetItemsOk
36+
37+
`func (o *DtoListMetersResponse) GetItemsOk() (*[]DtoMeterResponse, bool)`
38+
39+
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise
40+
and a boolean to check if the value has been set.
41+
42+
### SetItems
43+
44+
`func (o *DtoListMetersResponse) SetItems(v []DtoMeterResponse)`
45+
46+
SetItems sets Items field to given value.
47+
48+
### HasItems
49+
50+
`func (o *DtoListMetersResponse) HasItems() bool`
51+
52+
HasItems returns a boolean if a field has been set.
53+
54+
### GetPagination
55+
56+
`func (o *DtoListMetersResponse) GetPagination() TypesPaginationResponse`
57+
58+
GetPagination returns the Pagination field if non-nil, zero value otherwise.
59+
60+
### GetPaginationOk
61+
62+
`func (o *DtoListMetersResponse) GetPaginationOk() (*TypesPaginationResponse, bool)`
63+
64+
GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise
65+
and a boolean to check if the value has been set.
66+
67+
### SetPagination
68+
69+
`func (o *DtoListMetersResponse) SetPagination(v TypesPaginationResponse)`
70+
71+
SetPagination sets Pagination field to given value.
72+
73+
### HasPagination
74+
75+
`func (o *DtoListMetersResponse) HasPagination() bool`
76+
77+
HasPagination returns a boolean if a field has been set.
78+
79+
80+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
81+
82+

docs/EventsAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ import (
165165
)
166166

167167
func main() {
168-
request := *openapiclient.NewDtoGetEventsRequest("EventName_example") // DtoGetEventsRequest | Request body
168+
request := *openapiclient.NewDtoGetEventsRequest() // DtoGetEventsRequest | Request body
169169

170170
configuration := openapiclient.NewConfiguration()
171171
apiClient := openapiclient.NewAPIClient(configuration)

docs/MetersAPI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Method | HTTP request | Description
1515

1616
## MetersGet
1717

18-
> []DtoMeterResponse MetersGet(ctx).EndTime(endTime).EventName(eventName).Expand(expand).Limit(limit).MeterIds(meterIds).Offset(offset).Order(order).Sort(sort).StartTime(startTime).Status(status).Execute()
18+
> DtoListMetersResponse MetersGet(ctx).EndTime(endTime).EventName(eventName).Expand(expand).Limit(limit).MeterIds(meterIds).Offset(offset).Order(order).Sort(sort).StartTime(startTime).Status(status).Execute()
1919
2020
List meters
2121

@@ -52,7 +52,7 @@ func main() {
5252
fmt.Fprintf(os.Stderr, "Error when calling `MetersAPI.MetersGet``: %v\n", err)
5353
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
5454
}
55-
// response from `MetersGet`: []DtoMeterResponse
55+
// response from `MetersGet`: DtoListMetersResponse
5656
fmt.Fprintf(os.Stdout, "Response from `MetersAPI.MetersGet`: %v\n", resp)
5757
}
5858
```
@@ -81,7 +81,7 @@ Name | Type | Description | Notes
8181

8282
### Return type
8383

84-
[**[]DtoMeterResponse**](DtoMeterResponse.md)
84+
[**DtoListMetersResponse**](DtoListMetersResponse.md)
8585

8686
### Authorization
8787

model_dto_get_events_request.go

Lines changed: 22 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)