Skip to content

Commit a9e4caf

Browse files
committed
api regeneration
1 parent 3386101 commit a9e4caf

File tree

95 files changed

+1283
-1138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1283
-1138
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ Class | Method | HTTP request | Description
151151
- [SdkKeysModel](docs/SdkKeysModel.md)
152152
- [SegmentComparator](docs/SegmentComparator.md)
153153
- [SegmentListModel](docs/SegmentListModel.md)
154+
- [SegmentListModelHaljson](docs/SegmentListModelHaljson.md)
154155
- [SegmentModel](docs/SegmentModel.md)
155156
- [SegmentModelHaljson](docs/SegmentModelHaljson.md)
156157
- [SettingDataModel](docs/SettingDataModel.md)

api/swagger.yaml

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,7 +3074,7 @@ paths:
30743074
schema:
30753075
type: array
30763076
items:
3077-
$ref: '#/components/schemas/SegmentListModel'
3077+
$ref: '#/components/schemas/SegmentListModel-haljson'
30783078
"400":
30793079
description: Bad request.
30803080
"404":
@@ -4748,6 +4748,8 @@ components:
47484748
usage:
47494749
type: integer
47504750
format: int32
4751+
product:
4752+
$ref: '#/components/schemas/ProductModel'
47514753
segmentId:
47524754
type: string
47534755
format: uuid
@@ -4778,6 +4780,13 @@ components:
47784780
additionalProperties: false
47794781
example:
47804782
createdAt: 2000-01-23T04:56:07.000+00:00
4783+
product:
4784+
productId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
4785+
organization:
4786+
organizationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
4787+
name: name
4788+
name: name
4789+
description: description
47814790
lastUpdaterEmail: lastUpdaterEmail
47824791
creatorEmail: creatorEmail
47834792
usage: 0
@@ -4787,6 +4796,43 @@ components:
47874796
creatorFullName: creatorFullName
47884797
lastUpdaterFullName: lastUpdaterFullName
47894798
updatedAt: 2000-01-23T04:56:07.000+00:00
4799+
SegmentListModel-haljson:
4800+
type: object
4801+
properties:
4802+
usage:
4803+
type: integer
4804+
format: int32
4805+
_embedded:
4806+
$ref: '#/components/schemas/ConfigModelhaljson__embedded'
4807+
segmentId:
4808+
type: string
4809+
format: uuid
4810+
name:
4811+
type: string
4812+
nullable: true
4813+
description:
4814+
type: string
4815+
nullable: true
4816+
creatorEmail:
4817+
type: string
4818+
nullable: true
4819+
creatorFullName:
4820+
type: string
4821+
nullable: true
4822+
createdAt:
4823+
type: string
4824+
format: date-time
4825+
lastUpdaterEmail:
4826+
type: string
4827+
nullable: true
4828+
lastUpdaterFullName:
4829+
type: string
4830+
nullable: true
4831+
updatedAt:
4832+
type: string
4833+
format: date-time
4834+
_links:
4835+
$ref: '#/components/schemas/EnvironmentModelhaljson__links'
47904836
SegmentModel:
47914837
type: object
47924838
properties:
@@ -4798,6 +4844,8 @@ components:
47984844
comparisonValue:
47994845
type: string
48004846
nullable: true
4847+
product:
4848+
$ref: '#/components/schemas/ProductModel'
48014849
segmentId:
48024850
type: string
48034851
format: uuid
@@ -4827,14 +4875,21 @@ components:
48274875
format: date-time
48284876
additionalProperties: false
48294877
example:
4878+
product:
4879+
productId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
4880+
organization:
4881+
organizationId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
4882+
name: name
4883+
name: name
4884+
description: description
4885+
comparisonValue: comparisonValue
4886+
creatorEmail: creatorEmail
4887+
description: description
48304888
comparator: isOneOf
48314889
createdAt: 2000-01-23T04:56:07.000+00:00
48324890
lastUpdaterEmail: lastUpdaterEmail
4833-
comparisonValue: comparisonValue
4834-
creatorEmail: creatorEmail
48354891
segmentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
48364892
name: name
4837-
description: description
48384893
creatorFullName: creatorFullName
48394894
lastUpdaterFullName: lastUpdaterFullName
48404895
comparisonAttribute: comparisonAttribute
@@ -4850,6 +4905,8 @@ components:
48504905
comparisonValue:
48514906
type: string
48524907
nullable: true
4908+
_embedded:
4909+
$ref: '#/components/schemas/ConfigModelhaljson__embedded'
48534910
segmentId:
48544911
type: string
48554912
format: uuid

api_audit_logs.go

Lines changed: 56 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
21
/*
32
* ConfigCat Public Management API
43
*
5-
* **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). <!-- ReDoc-Inject: <security-definitions> --> # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header.
4+
* **Base API URL**: https://api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available here: [swagger.json](v1/swagger.json). You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). <!-- ReDoc-Inject: <security-definitions> --> # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header.
65
*
76
* API version: v1
87
* Contact: support@configcat.com
@@ -12,11 +11,12 @@ package configcatpublicapi
1211

1312
import (
1413
"context"
14+
"fmt"
1515
"io/ioutil"
1616
"net/http"
1717
"net/url"
1818
"strings"
19-
"fmt"
19+
2020
"github.com/antihax/optional"
2121
)
2222

@@ -26,6 +26,7 @@ var (
2626
)
2727

2828
type AuditLogsApiService service
29+
2930
/*
3031
AuditLogsApiService List Audit log items for Product
3132
This endpoint returns the list of Audit log items for a given Product and the result can be optionally filtered by Config and/or Environment.
@@ -41,19 +42,19 @@ This endpoint returns the list of Audit log items for a given Product and the r
4142
*/
4243

4344
type AuditLogsApiGetAuditlogsOpts struct {
44-
ConfigId optional.Interface
45-
EnvironmentId optional.Interface
46-
AuditLogType optional.Interface
47-
FromUtcDateTime optional.Time
48-
ToUtcDateTime optional.Time
45+
ConfigId optional.Interface
46+
EnvironmentId optional.Interface
47+
AuditLogType optional.Interface
48+
FromUtcDateTime optional.Time
49+
ToUtcDateTime optional.Time
4950
}
5051

5152
func (a *AuditLogsApiService) GetAuditlogs(ctx context.Context, productId string, localVarOptionals *AuditLogsApiGetAuditlogsOpts) ([]AuditLogItemModel, *http.Response, error) {
5253
var (
53-
localVarHttpMethod = strings.ToUpper("Get")
54-
localVarPostBody interface{}
55-
localVarFileName string
56-
localVarFileBytes []byte
54+
localVarHttpMethod = strings.ToUpper("Get")
55+
localVarPostBody interface{}
56+
localVarFileName string
57+
localVarFileBytes []byte
5758
localVarReturnValue []AuditLogItemModel
5859
)
5960

@@ -115,32 +116,33 @@ func (a *AuditLogsApiService) GetAuditlogs(ctx context.Context, productId string
115116

116117
if localVarHttpResponse.StatusCode < 300 {
117118
// If we succeed, return the data, otherwise pass on to decode error.
118-
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
119-
if err == nil {
119+
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
120+
if err == nil {
120121
return localVarReturnValue, localVarHttpResponse, err
121122
}
122123
}
123124

124125
if localVarHttpResponse.StatusCode >= 300 {
125126
newErr := GenericSwaggerError{
126-
body: localVarBody,
127+
body: localVarBody,
127128
error: localVarHttpResponse.Status,
128129
}
129130
if localVarHttpResponse.StatusCode == 200 {
130131
var v []AuditLogItemModel
131-
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
132-
if err != nil {
133-
newErr.error = err.Error()
134-
return localVarReturnValue, localVarHttpResponse, newErr
135-
}
136-
newErr.model = v
132+
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
133+
if err != nil {
134+
newErr.error = err.Error()
137135
return localVarReturnValue, localVarHttpResponse, newErr
136+
}
137+
newErr.model = v
138+
return localVarReturnValue, localVarHttpResponse, newErr
138139
}
139140
return localVarReturnValue, localVarHttpResponse, newErr
140141
}
141142

142143
return localVarReturnValue, localVarHttpResponse, nil
143144
}
145+
144146
/*
145147
AuditLogsApiService List Deleted Settings
146148
This endpoint returns the list of Feature Flags and Settings that were deleted from the given Config.
@@ -150,10 +152,10 @@ This endpoint returns the list of Feature Flags and Settings that were deleted f
150152
*/
151153
func (a *AuditLogsApiService) GetDeletedSettings(ctx context.Context, configId string) ([]SettingModel, *http.Response, error) {
152154
var (
153-
localVarHttpMethod = strings.ToUpper("Get")
154-
localVarPostBody interface{}
155-
localVarFileName string
156-
localVarFileBytes []byte
155+
localVarHttpMethod = strings.ToUpper("Get")
156+
localVarPostBody interface{}
157+
localVarFileName string
158+
localVarFileBytes []byte
157159
localVarReturnValue []SettingModel
158160
)
159161

@@ -200,32 +202,33 @@ func (a *AuditLogsApiService) GetDeletedSettings(ctx context.Context, configId s
200202

201203
if localVarHttpResponse.StatusCode < 300 {
202204
// If we succeed, return the data, otherwise pass on to decode error.
203-
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
204-
if err == nil {
205+
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
206+
if err == nil {
205207
return localVarReturnValue, localVarHttpResponse, err
206208
}
207209
}
208210

209211
if localVarHttpResponse.StatusCode >= 300 {
210212
newErr := GenericSwaggerError{
211-
body: localVarBody,
213+
body: localVarBody,
212214
error: localVarHttpResponse.Status,
213215
}
214216
if localVarHttpResponse.StatusCode == 200 {
215217
var v []SettingModel
216-
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
217-
if err != nil {
218-
newErr.error = err.Error()
219-
return localVarReturnValue, localVarHttpResponse, newErr
220-
}
221-
newErr.model = v
218+
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
219+
if err != nil {
220+
newErr.error = err.Error()
222221
return localVarReturnValue, localVarHttpResponse, newErr
222+
}
223+
newErr.model = v
224+
return localVarReturnValue, localVarHttpResponse, newErr
223225
}
224226
return localVarReturnValue, localVarHttpResponse, newErr
225227
}
226228

227229
return localVarReturnValue, localVarHttpResponse, nil
228230
}
231+
229232
/*
230233
AuditLogsApiService List Audit log items for Organization
231234
This endpoint returns the list of Audit log items for a given Organization and the result can be optionally filtered by Product and/or Config and/or Environment.
@@ -242,20 +245,20 @@ This endpoint returns the list of Audit log items for a given Organization and
242245
*/
243246

244247
type AuditLogsApiGetOrganizationAuditlogsOpts struct {
245-
ProductId optional.Interface
246-
ConfigId optional.Interface
247-
EnvironmentId optional.Interface
248-
AuditLogType optional.Interface
249-
FromUtcDateTime optional.Time
250-
ToUtcDateTime optional.Time
248+
ProductId optional.Interface
249+
ConfigId optional.Interface
250+
EnvironmentId optional.Interface
251+
AuditLogType optional.Interface
252+
FromUtcDateTime optional.Time
253+
ToUtcDateTime optional.Time
251254
}
252255

253256
func (a *AuditLogsApiService) GetOrganizationAuditlogs(ctx context.Context, organizationId string, localVarOptionals *AuditLogsApiGetOrganizationAuditlogsOpts) ([]AuditLogItemModel, *http.Response, error) {
254257
var (
255-
localVarHttpMethod = strings.ToUpper("Get")
256-
localVarPostBody interface{}
257-
localVarFileName string
258-
localVarFileBytes []byte
258+
localVarHttpMethod = strings.ToUpper("Get")
259+
localVarPostBody interface{}
260+
localVarFileName string
261+
localVarFileBytes []byte
259262
localVarReturnValue []AuditLogItemModel
260263
)
261264

@@ -320,26 +323,26 @@ func (a *AuditLogsApiService) GetOrganizationAuditlogs(ctx context.Context, orga
320323

321324
if localVarHttpResponse.StatusCode < 300 {
322325
// If we succeed, return the data, otherwise pass on to decode error.
323-
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
324-
if err == nil {
326+
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
327+
if err == nil {
325328
return localVarReturnValue, localVarHttpResponse, err
326329
}
327330
}
328331

329332
if localVarHttpResponse.StatusCode >= 300 {
330333
newErr := GenericSwaggerError{
331-
body: localVarBody,
334+
body: localVarBody,
332335
error: localVarHttpResponse.Status,
333336
}
334337
if localVarHttpResponse.StatusCode == 200 {
335338
var v []AuditLogItemModel
336-
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
337-
if err != nil {
338-
newErr.error = err.Error()
339-
return localVarReturnValue, localVarHttpResponse, newErr
340-
}
341-
newErr.model = v
339+
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
340+
if err != nil {
341+
newErr.error = err.Error()
342342
return localVarReturnValue, localVarHttpResponse, newErr
343+
}
344+
newErr.model = v
345+
return localVarReturnValue, localVarHttpResponse, newErr
343346
}
344347
return localVarReturnValue, localVarHttpResponse, newErr
345348
}

0 commit comments

Comments
 (0)