Skip to content

Commit

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

##### `GET` /enterprise/license/{license_uuid}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    New required properties:
    - `internal_users`

    New optional properties:
    - `users`

    * Added property `internal_users` (integer)

    * Deleted property `users` (integer)

##### `PUT` /enterprise/license/{license_uuid}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    New required properties:
    - `internal_users`

    New optional properties:
    - `users`

    * Added property `internal_users` (integer)

    * Deleted property `users` (integer)

##### `PATCH` /enterprise/license/{license_uuid}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    New required properties:
    - `internal_users`

    New optional properties:
    - `users`

    * Added property `internal_users` (integer)

    * Deleted property `users` (integer)

##### `GET` /enterprise/license/forecast/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    New required properties:
    - `forecasted_internal_users`
    - `internal_users`

    New optional properties:
    - `forecasted_users`
    - `users`

    * Added property `internal_users` (integer)

    * Added property `forecasted_internal_users` (integer)

    * Deleted property `users` (integer)

    * Deleted property `forecasted_users` (integer)

##### `GET` /enterprise/license/summary/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    New required properties:
    - `internal_users`

    New optional properties:
    - `users`

    * Added property `internal_users` (integer)

    * Deleted property `users` (integer)

##### `POST` /enterprise/license/

###### Return Type:

Changed response : **201 Created**

* Changed content type : `application/json`

    New required properties:
    - `internal_users`

    New optional properties:
    - `users`

    * Added property `internal_users` (integer)

    * Deleted property `users` (integer)

##### `GET` /enterprise/license/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Changed property `results` (array)

        Changed items (object):
            > License Serializer

        New required properties:
        - `internal_users`

        New optional properties:
        - `users`

        * Added property `internal_users` (integer)

        * Deleted property `users` (integer)
  • Loading branch information
authentik-automation[bot] committed Aug 23, 2023
1 parent be2b2d7 commit e5ec71e
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 116 deletions.
28 changes: 14 additions & 14 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36200,9 +36200,9 @@ components:
external_users: 6
license_uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
name: name
internal_users: 0
expiry: 2000-01-23T04:56:07.000+00:00
key: key
users: 0
properties:
license_uuid:
format: uuid
Expand All @@ -36217,7 +36217,7 @@ components:
format: date-time
readOnly: true
type: string
users:
internal_users:
readOnly: true
type: integer
external_users:
Expand All @@ -36226,32 +36226,32 @@ components:
required:
- expiry
- external_users
- internal_users
- key
- license_uuid
- name
- users
type: object
LicenseForecast:
description: Serializer for license forecast
example:
external_users: 6
forecasted_users: 1
forecasted_internal_users: 1
internal_users: 0
forecasted_external_users: 5
users: 0
properties:
users:
internal_users:
type: integer
external_users:
type: integer
forecasted_users:
forecasted_internal_users:
type: integer
forecasted_external_users:
type: integer
required:
- external_users
- forecasted_external_users
- forecasted_users
- users
- forecasted_internal_users
- internal_users
type: object
LicenseRequest:
description: License Serializer
Expand All @@ -36273,10 +36273,10 @@ components:
show_admin_warning: true
has_license: true
latest_valid: 2000-01-23T04:56:07.000+00:00
internal_users: 0
show_user_warning: true
users: 0
properties:
users:
internal_users:
type: integer
external_users:
type: integer
Expand All @@ -36296,11 +36296,11 @@ components:
required:
- external_users
- has_license
- internal_users
- latest_valid
- read_only
- show_admin_warning
- show_user_warning
- users
- valid
type: object
Link:
Expand Down Expand Up @@ -40236,15 +40236,15 @@ components:
- external_users: 6
license_uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
name: name
internal_users: 0
expiry: 2000-01-23T04:56:07.000+00:00
key: key
users: 0
- external_users: 6
license_uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
name: name
internal_users: 0
expiry: 2000-01-23T04:56:07.000+00:00
key: key
users: 0
properties:
pagination:
$ref: '#/components/schemas/Pagination'
Expand Down
22 changes: 11 additions & 11 deletions docs/License.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ Name | Type | Description | Notes
**Name** | **string** | | [readonly]
**Key** | **string** | |
**Expiry** | **time.Time** | | [readonly]
**Users** | **int32** | | [readonly]
**InternalUsers** | **int32** | | [readonly]
**ExternalUsers** | **int32** | | [readonly]

## Methods

### NewLicense

`func NewLicense(licenseUuid string, name string, key string, expiry time.Time, users int32, externalUsers int32, ) *License`
`func NewLicense(licenseUuid string, name string, key string, expiry time.Time, internalUsers int32, externalUsers int32, ) *License`

NewLicense instantiates a new License object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -110,24 +110,24 @@ and a boolean to check if the value has been set.
SetExpiry sets Expiry field to given value.


### GetUsers
### GetInternalUsers

`func (o *License) GetUsers() int32`
`func (o *License) GetInternalUsers() int32`

GetUsers returns the Users field if non-nil, zero value otherwise.
GetInternalUsers returns the InternalUsers field if non-nil, zero value otherwise.

### GetUsersOk
### GetInternalUsersOk

`func (o *License) GetUsersOk() (*int32, bool)`
`func (o *License) GetInternalUsersOk() (*int32, bool)`

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

### SetUsers
### SetInternalUsers

`func (o *License) SetUsers(v int32)`
`func (o *License) SetInternalUsers(v int32)`

SetUsers sets Users field to given value.
SetInternalUsers sets InternalUsers field to given value.


### GetExternalUsers
Expand Down
42 changes: 21 additions & 21 deletions docs/LicenseForecast.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Users** | **int32** | |
**InternalUsers** | **int32** | |
**ExternalUsers** | **int32** | |
**ForecastedUsers** | **int32** | |
**ForecastedInternalUsers** | **int32** | |
**ForecastedExternalUsers** | **int32** | |

## Methods

### NewLicenseForecast

`func NewLicenseForecast(users int32, externalUsers int32, forecastedUsers int32, forecastedExternalUsers int32, ) *LicenseForecast`
`func NewLicenseForecast(internalUsers int32, externalUsers int32, forecastedInternalUsers int32, forecastedExternalUsers int32, ) *LicenseForecast`

NewLicenseForecast instantiates a new LicenseForecast object
This constructor will assign default values to properties that have it defined,
Expand All @@ -28,24 +28,24 @@ NewLicenseForecastWithDefaults instantiates a new LicenseForecast 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

### GetUsers
### GetInternalUsers

`func (o *LicenseForecast) GetUsers() int32`
`func (o *LicenseForecast) GetInternalUsers() int32`

GetUsers returns the Users field if non-nil, zero value otherwise.
GetInternalUsers returns the InternalUsers field if non-nil, zero value otherwise.

### GetUsersOk
### GetInternalUsersOk

`func (o *LicenseForecast) GetUsersOk() (*int32, bool)`
`func (o *LicenseForecast) GetInternalUsersOk() (*int32, bool)`

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

### SetUsers
### SetInternalUsers

`func (o *LicenseForecast) SetUsers(v int32)`
`func (o *LicenseForecast) SetInternalUsers(v int32)`

SetUsers sets Users field to given value.
SetInternalUsers sets InternalUsers field to given value.


### GetExternalUsers
Expand All @@ -68,24 +68,24 @@ and a boolean to check if the value has been set.
SetExternalUsers sets ExternalUsers field to given value.


### GetForecastedUsers
### GetForecastedInternalUsers

`func (o *LicenseForecast) GetForecastedUsers() int32`
`func (o *LicenseForecast) GetForecastedInternalUsers() int32`

GetForecastedUsers returns the ForecastedUsers field if non-nil, zero value otherwise.
GetForecastedInternalUsers returns the ForecastedInternalUsers field if non-nil, zero value otherwise.

### GetForecastedUsersOk
### GetForecastedInternalUsersOk

`func (o *LicenseForecast) GetForecastedUsersOk() (*int32, bool)`
`func (o *LicenseForecast) GetForecastedInternalUsersOk() (*int32, bool)`

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

### SetForecastedUsers
### SetForecastedInternalUsers

`func (o *LicenseForecast) SetForecastedUsers(v int32)`
`func (o *LicenseForecast) SetForecastedInternalUsers(v int32)`

SetForecastedUsers sets ForecastedUsers field to given value.
SetForecastedInternalUsers sets ForecastedInternalUsers field to given value.


### GetForecastedExternalUsers
Expand Down
22 changes: 11 additions & 11 deletions docs/LicenseSummary.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Users** | **int32** | |
**InternalUsers** | **int32** | |
**ExternalUsers** | **int32** | |
**Valid** | **bool** | |
**ShowAdminWarning** | **bool** | |
Expand All @@ -17,7 +17,7 @@ Name | Type | Description | Notes

### NewLicenseSummary

`func NewLicenseSummary(users int32, externalUsers int32, valid bool, showAdminWarning bool, showUserWarning bool, readOnly bool, latestValid time.Time, hasLicense bool, ) *LicenseSummary`
`func NewLicenseSummary(internalUsers int32, externalUsers int32, valid bool, showAdminWarning bool, showUserWarning bool, readOnly bool, latestValid time.Time, hasLicense bool, ) *LicenseSummary`

NewLicenseSummary instantiates a new LicenseSummary object
This constructor will assign default values to properties that have it defined,
Expand All @@ -32,24 +32,24 @@ NewLicenseSummaryWithDefaults instantiates a new LicenseSummary 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

### GetUsers
### GetInternalUsers

`func (o *LicenseSummary) GetUsers() int32`
`func (o *LicenseSummary) GetInternalUsers() int32`

GetUsers returns the Users field if non-nil, zero value otherwise.
GetInternalUsers returns the InternalUsers field if non-nil, zero value otherwise.

### GetUsersOk
### GetInternalUsersOk

`func (o *LicenseSummary) GetUsersOk() (*int32, bool)`
`func (o *LicenseSummary) GetInternalUsersOk() (*int32, bool)`

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

### SetUsers
### SetInternalUsers

`func (o *LicenseSummary) SetUsers(v int32)`
`func (o *LicenseSummary) SetInternalUsers(v int32)`

SetUsers sets Users field to given value.
SetInternalUsers sets InternalUsers field to given value.


### GetExternalUsers
Expand Down
26 changes: 13 additions & 13 deletions model_license.go

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

Loading

0 comments on commit e5ec71e

Please sign in to comment.