Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 25, 2021
1 parent 04386ef commit 7c3ec7c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions internal/httpclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,11 @@ paths:
minimum: 0
type: integer
style: form
- description: ActiveOnly is a boolean flag that filters out sessions based
on the state. If no value is provided, all sessions are returned.
- description: Active is a boolean flag that filters out sessions based on the
state. If no value is provided, all sessions are returned.
explode: true
in: query
name: active_only
name: active
required: false
schema:
type: boolean
Expand Down
10 changes: 5 additions & 5 deletions internal/httpclient/api_v0alpha2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions internal/httpclient/docs/V0alpha2Api.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Name | Type | Description | Notes

## AdminListIdentitySessions

> []Session AdminListIdentitySessions(ctx, id).PerPage(perPage).Page(page).ActiveOnly(activeOnly).Execute()
> []Session AdminListIdentitySessions(ctx, id).PerPage(perPage).Page(page).Active(active).Execute()
This endpoint returns all sessions that belong to the given Identity.

Expand All @@ -478,11 +478,11 @@ func main() {
id := "id_example" // string | ID is the identity's ID.
perPage := int64(789) // int64 | Items per Page This is the number of items per page. (optional) (default to 250)
page := int64(789) // int64 | Pagination Page (optional) (default to 0)
activeOnly := true // bool | ActiveOnly is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional)
active := true // bool | Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.V0alpha2Api.AdminListIdentitySessions(context.Background(), id).PerPage(perPage).Page(page).ActiveOnly(activeOnly).Execute()
resp, r, err := apiClient.V0alpha2Api.AdminListIdentitySessions(context.Background(), id).PerPage(perPage).Page(page).Active(active).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `V0alpha2Api.AdminListIdentitySessions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand Down Expand Up @@ -510,7 +510,7 @@ Name | Type | Description | Notes

**perPage** | **int64** | Items per Page This is the number of items per page. | [default to 250]
**page** | **int64** | Pagination Page | [default to 0]
**activeOnly** | **bool** | ActiveOnly is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. |
**active** | **bool** | Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. |

### Return type

Expand Down
4 changes: 2 additions & 2 deletions spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2522,9 +2522,9 @@
}
},
{
"description": "ActiveOnly is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.",
"description": "Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.",
"in": "query",
"name": "active_only",
"name": "active",
"schema": {
"type": "boolean"
}
Expand Down
4 changes: 2 additions & 2 deletions spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@
},
{
"type": "boolean",
"description": "ActiveOnly is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.",
"name": "active_only",
"description": "Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.",
"name": "active",
"in": "query"
}
],
Expand Down

0 comments on commit 7c3ec7c

Please sign in to comment.