Skip to content

Commit

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

##### `PUT` /core/transactional/applications/

###### Request:

Changed content type : `application/json`

* Added property `policy_bindings` (array)

    Items (object):
        > PolicyBindingSerializer which does not require target as target is set implicitly

    * Property `policy` (string)

    * Property `group` (string)

    * Property `user` (integer)

    * Property `negate` (boolean)
        > Negates the outcome of the policy. Messages are unaffected.

    * Property `enabled` (boolean)

    * Property `order` (integer)

    * Property `timeout` (integer)
        > Timeout after which Policy execution is terminated.

    * Property `failure_result` (boolean)
        > Result if the Policy execution fails.
  • Loading branch information
authentik-automation[bot] committed Nov 18, 2024
1 parent 5ab8ac9 commit bad21e5
Show file tree
Hide file tree
Showing 8 changed files with 830 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ docs/TokenSetKeyRequest.md
docs/TokenView.md
docs/TransactionApplicationRequest.md
docs/TransactionApplicationResponse.md
docs/TransactionPolicyBindingRequest.md
docs/TypeCreate.md
docs/UiThemeEnum.md
docs/UsedBy.md
Expand Down Expand Up @@ -1342,6 +1343,7 @@ model_totp_device.go
model_totp_device_request.go
model_transaction_application_request.go
model_transaction_application_response.go
model_transaction_policy_binding_request.go
model_type_create.go
model_ui_theme_enum.go
model_used_by.go
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1583,6 +1583,7 @@ Class | Method | HTTP request | Description
- [TokenView](docs/TokenView.md)
- [TransactionApplicationRequest](docs/TransactionApplicationRequest.md)
- [TransactionApplicationResponse](docs/TransactionApplicationResponse.md)
- [TransactionPolicyBindingRequest](docs/TransactionPolicyBindingRequest.md)
- [TypeCreate](docs/TypeCreate.md)
- [UiThemeEnum](docs/UiThemeEnum.md)
- [UsedBy](docs/UsedBy.md)
Expand Down
65 changes: 65 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70175,13 +70175,34 @@ components:
group: group
provider_model: null
provider: null
policy_bindings:
- negate: true
failure_result: true
user: 0
enabled: true
timeout: 314780940
policy: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
group: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
order: 441289069
- negate: true
failure_result: true
user: 0
enabled: true
timeout: 314780940
policy: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
group: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
order: 441289069
properties:
app:
$ref: '#/components/schemas/ApplicationRequest'
provider_model:
$ref: '#/components/schemas/ProviderModelEnum'
provider:
$ref: '#/components/schemas/modelRequest'
policy_bindings:
items:
$ref: '#/components/schemas/TransactionPolicyBindingRequest'
type: array
required:
- app
- provider
Expand All @@ -70205,6 +70226,50 @@ components:
- applied
- logs
type: object
TransactionPolicyBindingRequest:
description: PolicyBindingSerializer which does not require target as target
is set implicitly
example:
negate: true
failure_result: true
user: 0
enabled: true
timeout: 314780940
policy: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
group: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
order: 441289069
properties:
policy:
format: uuid
nullable: true
type: string
group:
format: uuid
nullable: true
type: string
user:
nullable: true
type: integer
negate:
description: Negates the outcome of the policy. Messages are unaffected.
type: boolean
enabled:
type: boolean
order:
maximum: 2147483647
minimum: -2147483648
type: integer
timeout:
description: Timeout after which Policy execution is terminated.
maximum: 2147483647
minimum: 0
type: integer
failure_result:
description: Result if the Policy execution fails.
type: boolean
required:
- order
type: object
TypeCreate:
description: Types of an object that can be created
example:
Expand Down
26 changes: 26 additions & 0 deletions docs/TransactionApplicationRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**App** | [**ApplicationRequest**](ApplicationRequest.md) | |
**ProviderModel** | [**ProviderModelEnum**](ProviderModelEnum.md) | |
**Provider** | [**ModelRequest**](ModelRequest.md) | |
**PolicyBindings** | Pointer to [**[]TransactionPolicyBindingRequest**](TransactionPolicyBindingRequest.md) | | [optional]

## Methods

Expand Down Expand Up @@ -87,6 +88,31 @@ and a boolean to check if the value has been set.
SetProvider sets Provider field to given value.


### GetPolicyBindings

`func (o *TransactionApplicationRequest) GetPolicyBindings() []TransactionPolicyBindingRequest`

GetPolicyBindings returns the PolicyBindings field if non-nil, zero value otherwise.

### GetPolicyBindingsOk

`func (o *TransactionApplicationRequest) GetPolicyBindingsOk() (*[]TransactionPolicyBindingRequest, bool)`

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

### SetPolicyBindings

`func (o *TransactionApplicationRequest) SetPolicyBindings(v []TransactionPolicyBindingRequest)`

SetPolicyBindings sets PolicyBindings field to given value.

### HasPolicyBindings

`func (o *TransactionApplicationRequest) HasPolicyBindings() bool`

HasPolicyBindings returns a boolean if a field has been set.


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

Expand Down
Loading

0 comments on commit bad21e5

Please sign in to comment.