diff --git a/internal/httpclient/api/openapi.yaml b/internal/httpclient/api/openapi.yaml index 2b2f02787315..722ada237025 100644 --- a/internal/httpclient/api/openapi.yaml +++ b/internal/httpclient/api/openapi.yaml @@ -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 diff --git a/internal/httpclient/api_v0alpha2.go b/internal/httpclient/api_v0alpha2.go index 22f4731bb902..d5dd69f3c8f1 100644 --- a/internal/httpclient/api_v0alpha2.go +++ b/internal/httpclient/api_v0alpha2.go @@ -1962,7 +1962,7 @@ type V0alpha2ApiApiAdminListIdentitySessionsRequest struct { id string perPage *int64 page *int64 - activeOnly *bool + active *bool } func (r V0alpha2ApiApiAdminListIdentitySessionsRequest) PerPage(perPage int64) V0alpha2ApiApiAdminListIdentitySessionsRequest { @@ -1973,8 +1973,8 @@ func (r V0alpha2ApiApiAdminListIdentitySessionsRequest) Page(page int64) V0alpha r.page = &page return r } -func (r V0alpha2ApiApiAdminListIdentitySessionsRequest) ActiveOnly(activeOnly bool) V0alpha2ApiApiAdminListIdentitySessionsRequest { - r.activeOnly = &activeOnly +func (r V0alpha2ApiApiAdminListIdentitySessionsRequest) Active(active bool) V0alpha2ApiApiAdminListIdentitySessionsRequest { + r.active = &active return r } @@ -2031,8 +2031,8 @@ func (a *V0alpha2ApiService) AdminListIdentitySessionsExecute(r V0alpha2ApiApiAd if r.page != nil { localVarQueryParams.Add("page", parameterToString(*r.page, "")) } - if r.activeOnly != nil { - localVarQueryParams.Add("active_only", parameterToString(*r.activeOnly, "")) + if r.active != nil { + localVarQueryParams.Add("active", parameterToString(*r.active, "")) } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/internal/httpclient/docs/V0alpha2Api.md b/internal/httpclient/docs/V0alpha2Api.md index 5aef3b78d750..c258bbb47e56 100644 --- a/internal/httpclient/docs/V0alpha2Api.md +++ b/internal/httpclient/docs/V0alpha2Api.md @@ -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. @@ -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) @@ -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 diff --git a/spec/api.json b/spec/api.json index e69699141089..844675ba5d47 100755 --- a/spec/api.json +++ b/spec/api.json @@ -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" } diff --git a/spec/swagger.json b/spec/swagger.json index eb0a5200a6f1..57f11094d185 100755 --- a/spec/swagger.json +++ b/spec/swagger.json @@ -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" } ],