Skip to content

Commit

Permalink
Update API Client
Browse files Browse the repository at this point in the history
#### What's Changed
---

##### `GET` /admin/workers/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`
authentik-automation[bot] committed Dec 23, 2024
1 parent cfd4614 commit a4252b0
Showing 10 changed files with 313 additions and 195 deletions.
4 changes: 2 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -743,7 +743,7 @@ docs/WebAuthnDeviceDeviceType.md
docs/WebAuthnDeviceRequest.md
docs/WebAuthnDeviceType.md
docs/WebAuthnDeviceTypeRequest.md
docs/Workers.md
docs/Worker.md
git_push.sh
go.mod
go.sum
@@ -1446,6 +1446,6 @@ model_web_authn_device_device_type.go
model_web_authn_device_request.go
model_web_authn_device_type.go
model_web_authn_device_type_request.go
model_workers.go
model_worker.go
response.go
utils.go
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ Class | Method | HTTP request | Description
*AdminApi* | [**AdminVersionHistoryList**](docs/AdminApi.md#adminversionhistorylist) | **Get** /admin/version/history/ |
*AdminApi* | [**AdminVersionHistoryRetrieve**](docs/AdminApi.md#adminversionhistoryretrieve) | **Get** /admin/version/history/{id}/ |
*AdminApi* | [**AdminVersionRetrieve**](docs/AdminApi.md#adminversionretrieve) | **Get** /admin/version/ |
*AdminApi* | [**AdminWorkersRetrieve**](docs/AdminApi.md#adminworkersretrieve) | **Get** /admin/workers/ |
*AdminApi* | [**AdminWorkersList**](docs/AdminApi.md#adminworkerslist) | **Get** /admin/workers/ |
*AuthenticatorsApi* | [**AuthenticatorsAdminAllList**](docs/AuthenticatorsApi.md#authenticatorsadminalllist) | **Get** /authenticators/admin/all/ |
*AuthenticatorsApi* | [**AuthenticatorsAdminDuoCreate**](docs/AuthenticatorsApi.md#authenticatorsadminduocreate) | **Post** /authenticators/admin/duo/ |
*AuthenticatorsApi* | [**AuthenticatorsAdminDuoDestroy**](docs/AuthenticatorsApi.md#authenticatorsadminduodestroy) | **Delete** /authenticators/admin/duo/{id}/ |
@@ -1675,7 +1675,7 @@ Class | Method | HTTP request | Description
- [WebAuthnDeviceRequest](docs/WebAuthnDeviceRequest.md)
- [WebAuthnDeviceType](docs/WebAuthnDeviceType.md)
- [WebAuthnDeviceTypeRequest](docs/WebAuthnDeviceTypeRequest.md)
- [Workers](docs/Workers.md)
- [Worker](docs/Worker.md)


## Documentation For Authorization
24 changes: 17 additions & 7 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -364,13 +364,15 @@ paths:
/admin/workers/:
get:
description: Get currently connected worker count.
operationId: admin_workers_retrieve
operationId: admin_workers_list
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/Workers'
items:
$ref: '#/components/schemas/Worker'
type: array
description: ""
"400":
content:
@@ -73490,14 +73492,22 @@ components:
- aaguid
- description
type: object
Workers:
Worker:
example:
count: 0
version: version
version_matching: true
worker_id: worker_id
properties:
count:
type: integer
worker_id:
type: string
version:
type: string
version_matching:
type: boolean
required:
- count
- version
- version_matching
- worker_id
type: object
modelRequest:
discriminator:
22 changes: 11 additions & 11 deletions api_admin.go

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

18 changes: 9 additions & 9 deletions docs/AdminApi.md
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ Method | HTTP request | Description
[**AdminVersionHistoryList**](AdminApi.md#AdminVersionHistoryList) | **Get** /admin/version/history/ |
[**AdminVersionHistoryRetrieve**](AdminApi.md#AdminVersionHistoryRetrieve) | **Get** /admin/version/history/{id}/ |
[**AdminVersionRetrieve**](AdminApi.md#AdminVersionRetrieve) | **Get** /admin/version/ |
[**AdminWorkersRetrieve**](AdminApi.md#AdminWorkersRetrieve) | **Get** /admin/workers/ |
[**AdminWorkersList**](AdminApi.md#AdminWorkersList) | **Get** /admin/workers/ |



@@ -720,9 +720,9 @@ Other parameters are passed through a pointer to a apiAdminVersionRetrieveReques
[[Back to README]](../README.md)


## AdminWorkersRetrieve
## AdminWorkersList

> Workers AdminWorkersRetrieve(ctx).Execute()
> []Worker AdminWorkersList(ctx).Execute()


@@ -744,13 +744,13 @@ func main() {

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AdminApi.AdminWorkersRetrieve(context.Background()).Execute()
resp, r, err := apiClient.AdminApi.AdminWorkersList(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AdminWorkersRetrieve``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AdminWorkersList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AdminWorkersRetrieve`: Workers
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AdminWorkersRetrieve`: %v\n", resp)
// response from `AdminWorkersList`: []Worker
fmt.Fprintf(os.Stdout, "Response from `AdminApi.AdminWorkersList`: %v\n", resp)
}
```

@@ -760,12 +760,12 @@ This endpoint does not need any parameter.

### Other Parameters

Other parameters are passed through a pointer to a apiAdminWorkersRetrieveRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiAdminWorkersListRequest struct via the builder pattern


### Return type

[**Workers**](Workers.md)
[**[]Worker**](Worker.md)

### Authorization

93 changes: 93 additions & 0 deletions docs/Worker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Worker

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**WorkerId** | **string** | |
**Version** | **string** | |
**VersionMatching** | **bool** | |

## Methods

### NewWorker

`func NewWorker(workerId string, version string, versionMatching bool, ) *Worker`

NewWorker instantiates a new Worker object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewWorkerWithDefaults

`func NewWorkerWithDefaults() *Worker`

NewWorkerWithDefaults instantiates a new Worker 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

### GetWorkerId

`func (o *Worker) GetWorkerId() string`

GetWorkerId returns the WorkerId field if non-nil, zero value otherwise.

### GetWorkerIdOk

`func (o *Worker) GetWorkerIdOk() (*string, bool)`

GetWorkerIdOk returns a tuple with the WorkerId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetWorkerId

`func (o *Worker) SetWorkerId(v string)`

SetWorkerId sets WorkerId field to given value.


### GetVersion

`func (o *Worker) GetVersion() string`

GetVersion returns the Version field if non-nil, zero value otherwise.

### GetVersionOk

`func (o *Worker) GetVersionOk() (*string, bool)`

GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetVersion

`func (o *Worker) SetVersion(v string)`

SetVersion sets Version field to given value.


### GetVersionMatching

`func (o *Worker) GetVersionMatching() bool`

GetVersionMatching returns the VersionMatching field if non-nil, zero value otherwise.

### GetVersionMatchingOk

`func (o *Worker) GetVersionMatchingOk() (*bool, bool)`

GetVersionMatchingOk returns a tuple with the VersionMatching field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetVersionMatching

`func (o *Worker) SetVersionMatching(v bool)`

SetVersionMatching sets VersionMatching field to given value.



[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


51 changes: 0 additions & 51 deletions docs/Workers.md

This file was deleted.

Loading

0 comments on commit a4252b0

Please sign in to comment.