Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

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

##### `GET` /stages/deny/{stage_uuid}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `deny_message` (string)

##### `PUT` /stages/deny/{stage_uuid}/

###### Request:

Changed content type : `application/json`

* Added property `deny_message` (string)

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `deny_message` (string)

##### `PATCH` /stages/deny/{stage_uuid}/

###### Request:

Changed content type : `application/json`

* Added property `deny_message` (string)

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `deny_message` (string)

##### `POST` /stages/deny/

###### Request:

Changed content type : `application/json`

* Added property `deny_message` (string)

###### Return Type:

Changed response : **201 Created**

* Changed content type : `application/json`

    * Added property `deny_message` (string)

##### `GET` /stages/deny/

###### Parameters:

Added: `deny_message` in `query`

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Changed property `results` (array)

        Changed items (object):
            > DenyStage Serializer

        * Added property `deny_message` (string)
  • Loading branch information
authentik-automation[bot] committed Oct 18, 2023
1 parent 75ee0d6 commit bfb43c3
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 10 deletions.
1 change: 1 addition & 0 deletions docs/DenyStage.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**verboseNamePlural** | **kotlin.String** | Return object's plural verbose_name | [readonly]
**metaModelName** | **kotlin.String** | Return internal model name | [readonly]
**flowSet** | [**kotlin.collections.List<FlowSet>**](FlowSet.md) | | [optional]
**denyMessage** | **kotlin.String** | | [optional]



1 change: 1 addition & 0 deletions docs/DenyStageRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **kotlin.String** | |
**flowSet** | [**kotlin.collections.List<FlowSetRequest>**](FlowSetRequest.md) | | [optional]
**denyMessage** | **kotlin.String** | | [optional]



1 change: 1 addition & 0 deletions docs/PatchedDenyStageRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **kotlin.String** | | [optional]
**flowSet** | [**kotlin.collections.List<FlowSetRequest>**](FlowSetRequest.md) | | [optional]
**denyMessage** | **kotlin.String** | | [optional]



6 changes: 4 additions & 2 deletions docs/StagesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -3673,7 +3673,7 @@ Configure authentik:

<a name="stagesDenyList"></a>
# **stagesDenyList**
> PaginatedDenyStageList stagesDenyList(name, ordering, page, pageSize, search, stageUuid)
> PaginatedDenyStageList stagesDenyList(denyMessage, name, ordering, page, pageSize, search, stageUuid)


Expand All @@ -3686,14 +3686,15 @@ DenyStage Viewset
//import io.goauthentik.api.models.*

val apiInstance = StagesApi()
val denyMessage : kotlin.String = denyMessage_example // kotlin.String |
val name : kotlin.String = name_example // kotlin.String |
val ordering : kotlin.String = ordering_example // kotlin.String | Which field to use when ordering the results.
val page : kotlin.Int = 56 // kotlin.Int | A page number within the paginated result set.
val pageSize : kotlin.Int = 56 // kotlin.Int | Number of results to return per page.
val search : kotlin.String = search_example // kotlin.String | A search term.
val stageUuid : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
val result : PaginatedDenyStageList = apiInstance.stagesDenyList(name, ordering, page, pageSize, search, stageUuid)
val result : PaginatedDenyStageList = apiInstance.stagesDenyList(denyMessage, name, ordering, page, pageSize, search, stageUuid)
println(result)
} catch (e: ClientException) {
println("4xx response calling StagesApi#stagesDenyList")
Expand All @@ -3708,6 +3709,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**denyMessage** | **kotlin.String**| | [optional]
**name** | **kotlin.String**| | [optional]
**ordering** | **kotlin.String**| Which field to use when ordering the results. | [optional]
**page** | **kotlin.Int**| A page number within the paginated result set. | [optional]
Expand Down
10 changes: 10 additions & 0 deletions schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23909,6 +23909,10 @@ paths:
operationId: stages_deny_list
description: DenyStage Viewset
parameters:
- in: query
name: deny_message
schema:
type: string
- in: query
name: name
schema:
Expand Down Expand Up @@ -29786,6 +29790,8 @@ components:
type: array
items:
$ref: '#/components/schemas/FlowSet'
deny_message:
type: string
required:
- component
- meta_model_name
Expand All @@ -29804,6 +29810,8 @@ components:
type: array
items:
$ref: '#/components/schemas/FlowSetRequest'
deny_message:
type: string
required:
- name
Device:
Expand Down Expand Up @@ -35997,6 +36005,8 @@ components:
type: array
items:
$ref: '#/components/schemas/FlowSetRequest'
deny_message:
type: string
PatchedDockerServiceConnectionRequest:
type: object
description: DockerServiceConnection Serializer
Expand Down
16 changes: 11 additions & 5 deletions src/main/kotlin/io/goauthentik/api/apis/StagesApi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5425,6 +5425,7 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
/**
*
* DenyStage Viewset
* @param denyMessage (optional)
* @param name (optional)
* @param ordering Which field to use when ordering the results. (optional)
* @param page A page number within the paginated result set. (optional)
Expand All @@ -5440,8 +5441,8 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
*/
@Suppress("UNCHECKED_CAST")
@Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class)
fun stagesDenyList(name: kotlin.String? = null, ordering: kotlin.String? = null, page: kotlin.Int? = null, pageSize: kotlin.Int? = null, search: kotlin.String? = null, stageUuid: java.util.UUID? = null) : PaginatedDenyStageList {
val localVarResponse = stagesDenyListWithHttpInfo(name = name, ordering = ordering, page = page, pageSize = pageSize, search = search, stageUuid = stageUuid)
fun stagesDenyList(denyMessage: kotlin.String? = null, name: kotlin.String? = null, ordering: kotlin.String? = null, page: kotlin.Int? = null, pageSize: kotlin.Int? = null, search: kotlin.String? = null, stageUuid: java.util.UUID? = null) : PaginatedDenyStageList {
val localVarResponse = stagesDenyListWithHttpInfo(denyMessage = denyMessage, name = name, ordering = ordering, page = page, pageSize = pageSize, search = search, stageUuid = stageUuid)

return when (localVarResponse.responseType) {
ResponseType.Success -> (localVarResponse as Success<*>).data as PaginatedDenyStageList
Expand All @@ -5461,6 +5462,7 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
/**
*
* DenyStage Viewset
* @param denyMessage (optional)
* @param name (optional)
* @param ordering Which field to use when ordering the results. (optional)
* @param page A page number within the paginated result set. (optional)
Expand All @@ -5473,8 +5475,8 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
*/
@Suppress("UNCHECKED_CAST")
@Throws(IllegalStateException::class, IOException::class)
fun stagesDenyListWithHttpInfo(name: kotlin.String?, ordering: kotlin.String?, page: kotlin.Int?, pageSize: kotlin.Int?, search: kotlin.String?, stageUuid: java.util.UUID?) : ApiResponse<PaginatedDenyStageList?> {
val localVariableConfig = stagesDenyListRequestConfig(name = name, ordering = ordering, page = page, pageSize = pageSize, search = search, stageUuid = stageUuid)
fun stagesDenyListWithHttpInfo(denyMessage: kotlin.String?, name: kotlin.String?, ordering: kotlin.String?, page: kotlin.Int?, pageSize: kotlin.Int?, search: kotlin.String?, stageUuid: java.util.UUID?) : ApiResponse<PaginatedDenyStageList?> {
val localVariableConfig = stagesDenyListRequestConfig(denyMessage = denyMessage, name = name, ordering = ordering, page = page, pageSize = pageSize, search = search, stageUuid = stageUuid)

return request<Unit, PaginatedDenyStageList>(
localVariableConfig
Expand All @@ -5484,6 +5486,7 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
/**
* To obtain the request config of the operation stagesDenyList
*
* @param denyMessage (optional)
* @param name (optional)
* @param ordering Which field to use when ordering the results. (optional)
* @param page A page number within the paginated result set. (optional)
Expand All @@ -5492,10 +5495,13 @@ class StagesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
* @param stageUuid (optional)
* @return RequestConfig
*/
fun stagesDenyListRequestConfig(name: kotlin.String?, ordering: kotlin.String?, page: kotlin.Int?, pageSize: kotlin.Int?, search: kotlin.String?, stageUuid: java.util.UUID?) : RequestConfig<Unit> {
fun stagesDenyListRequestConfig(denyMessage: kotlin.String?, name: kotlin.String?, ordering: kotlin.String?, page: kotlin.Int?, pageSize: kotlin.Int?, search: kotlin.String?, stageUuid: java.util.UUID?) : RequestConfig<Unit> {
val localVariableBody = null
val localVariableQuery: MultiValueMap = mutableMapOf<kotlin.String, kotlin.collections.List<kotlin.String>>()
.apply {
if (denyMessage != null) {
put("deny_message", listOf(denyMessage.toString()))
}
if (name != null) {
put("name", listOf(name.toString()))
}
Expand Down
6 changes: 5 additions & 1 deletion src/main/kotlin/io/goauthentik/api/models/DenyStage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import com.squareup.moshi.Json
* @param verboseNamePlural Return object's plural verbose_name
* @param metaModelName Return internal model name
* @param flowSet
* @param denyMessage
*/

data class DenyStage (
Expand Down Expand Up @@ -61,7 +62,10 @@ data class DenyStage (
val metaModelName: kotlin.String,

@Json(name = "flow_set")
val flowSet: kotlin.collections.List<FlowSet>? = null
val flowSet: kotlin.collections.List<FlowSet>? = null,

@Json(name = "deny_message")
val denyMessage: kotlin.String? = null

)

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import com.squareup.moshi.Json
*
* @param name
* @param flowSet
* @param denyMessage
*/

data class DenyStageRequest (
Expand All @@ -37,7 +38,10 @@ data class DenyStageRequest (
val name: kotlin.String,

@Json(name = "flow_set")
val flowSet: kotlin.collections.List<FlowSetRequest>? = null
val flowSet: kotlin.collections.List<FlowSetRequest>? = null,

@Json(name = "deny_message")
val denyMessage: kotlin.String? = null

)

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import com.squareup.moshi.Json
*
* @param name
* @param flowSet
* @param denyMessage
*/

data class PatchedDenyStageRequest (
Expand All @@ -37,7 +38,10 @@ data class PatchedDenyStageRequest (
val name: kotlin.String? = null,

@Json(name = "flow_set")
val flowSet: kotlin.collections.List<FlowSetRequest>? = null
val flowSet: kotlin.collections.List<FlowSetRequest>? = null,

@Json(name = "deny_message")
val denyMessage: kotlin.String? = null

)

0 comments on commit bfb43c3

Please sign in to comment.