Skip to content

Commit be014fd

Browse files
Update API Client
#### What's Changed --- ##### `GET` /crypto/certificatekeypairs/{kp_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New required properties: - `key_type` New optional properties: - `private_key_type` * Added property `key_type` (object) Enum values: * `rsa` * `ec` * `dsa` * `ed25519` * `ed448` * Deleted property `private_key_type` (string) > Get the private key's type, if set ##### `PUT` /crypto/certificatekeypairs/{kp_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New required properties: - `key_type` New optional properties: - `private_key_type` * Added property `key_type` (object) * Deleted property `private_key_type` (string) > Get the private key's type, if set ##### `PATCH` /crypto/certificatekeypairs/{kp_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New required properties: - `key_type` New optional properties: - `private_key_type` * Added property `key_type` (object) * Deleted property `private_key_type` (string) > Get the private key's type, if set ##### `POST` /crypto/certificatekeypairs/generate/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New required properties: - `key_type` New optional properties: - `private_key_type` * Added property `key_type` (object) * Deleted property `private_key_type` (string) > Get the private key's type, if set ##### `POST` /crypto/certificatekeypairs/ ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` New required properties: - `key_type` New optional properties: - `private_key_type` * Added property `key_type` (object) * Deleted property `private_key_type` (string) > Get the private key's type, if set ##### `GET` /crypto/certificatekeypairs/ ###### Parameters: Added: `key_type` in `query` > Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec') ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > CertificateKeyPair Serializer New required properties: - `key_type` New optional properties: - `private_key_type` * Added property `key_type` (object) * Deleted property `private_key_type` (string) > Get the private key's type, if set ##### `GET` /policies/geoip/{policy_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `PUT` /policies/geoip/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `PATCH` /policies/geoip/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `POST` /policies/geoip/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `countries` (array) ##### `GET` /policies/geoip/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > GeoIP Policy Serializer * Changed property `countries` (array)
1 parent e47102d commit be014fd

File tree

10 files changed

+254
-48
lines changed

10 files changed

+254
-48
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ docs/KerberosSource.md
251251
docs/KerberosSourcePropertyMapping.md
252252
docs/KerberosSourcePropertyMappingRequest.md
253253
docs/KerberosSourceRequest.md
254+
docs/KeyTypeEnum.md
254255
docs/KubernetesServiceConnection.md
255256
docs/KubernetesServiceConnectionRequest.md
256257
docs/LDAPAPIAccessMode.md
@@ -1041,6 +1042,7 @@ model_kerberos_source.go
10411042
model_kerberos_source_property_mapping.go
10421043
model_kerberos_source_property_mapping_request.go
10431044
model_kerberos_source_request.go
1045+
model_key_type_enum.go
10441046
model_kubernetes_service_connection.go
10451047
model_kubernetes_service_connection_request.go
10461048
model_last_task_status_enum.go

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,7 @@ Class | Method | HTTP request | Description
12951295
- [KerberosSourcePropertyMapping](docs/KerberosSourcePropertyMapping.md)
12961296
- [KerberosSourcePropertyMappingRequest](docs/KerberosSourcePropertyMappingRequest.md)
12971297
- [KerberosSourceRequest](docs/KerberosSourceRequest.md)
1298+
- [KeyTypeEnum](docs/KeyTypeEnum.md)
12981299
- [KubernetesServiceConnection](docs/KubernetesServiceConnection.md)
12991300
- [KubernetesServiceConnectionRequest](docs/KubernetesServiceConnectionRequest.md)
13001301
- [LDAPAPIAccessMode](docs/LDAPAPIAccessMode.md)

api/openapi.yaml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6939,6 +6939,23 @@ paths:
69396939
default: true
69406940
type: boolean
69416941
style: form
6942+
- description: "Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified\
6943+
\ multiple times (e.g. '?key_type=rsa&key_type=ec')"
6944+
explode: true
6945+
in: query
6946+
name: key_type
6947+
required: false
6948+
schema:
6949+
items:
6950+
enum:
6951+
- dsa
6952+
- ec
6953+
- ed25519
6954+
- ed448
6955+
- rsa
6956+
type: string
6957+
type: array
6958+
style: form
69426959
- explode: true
69436960
in: query
69446961
name: managed
@@ -50294,9 +50311,9 @@ components:
5029450311
description: CertificateKeyPair Serializer
5029550312
example:
5029650313
certificate_download_url: certificate_download_url
50314+
key_type: ""
5029750315
fingerprint_sha1: fingerprint_sha1
5029850316
managed: managed
50299-
private_key_type: private_key_type
5030050317
name: name
5030150318
pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
5030250319
cert_expiry: 2000-01-23T04:56:07.000+00:00
@@ -50337,11 +50354,11 @@ components:
5033750354
description: Show if this keypair has a private key configured or not
5033850355
readOnly: true
5033950356
type: boolean
50340-
private_key_type:
50341-
description: "Get the private key's type, if set"
50357+
key_type:
50358+
allOf:
50359+
- $ref: '#/components/schemas/KeyTypeEnum'
5034250360
nullable: true
5034350361
readOnly: true
50344-
type: string
5034550362
certificate_download_url:
5034650363
description: Get URL to download certificate
5034750364
readOnly: true
@@ -50365,12 +50382,12 @@ components:
5036550382
- certificate_download_url
5036650383
- fingerprint_sha1
5036750384
- fingerprint_sha256
50385+
- key_type
5036850386
- managed
5036950387
- name
5037050388
- pk
5037150389
- private_key_available
5037250390
- private_key_download_url
50373-
- private_key_type
5037450391
type: object
5037550392
CertificateKeyPairRequest:
5037650393
description: CertificateKeyPair Serializer
@@ -55952,6 +55969,14 @@ components:
5595255969
- realm
5595355970
- slug
5595455971
type: object
55972+
KeyTypeEnum:
55973+
enum:
55974+
- rsa
55975+
- ec
55976+
- dsa
55977+
- ed25519
55978+
- ed448
55979+
type: string
5595555980
KubernetesServiceConnection:
5595655981
description: KubernetesServiceConnection Serializer
5595755982
example:
@@ -60608,9 +60633,9 @@ components:
6060860633
key: ""
6060960634
results:
6061060635
- certificate_download_url: certificate_download_url
60636+
key_type: ""
6061160637
fingerprint_sha1: fingerprint_sha1
6061260638
managed: managed
60613-
private_key_type: private_key_type
6061460639
name: name
6061560640
pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
6061660641
cert_expiry: 2000-01-23T04:56:07.000+00:00
@@ -60619,9 +60644,9 @@ components:
6061960644
fingerprint_sha256: fingerprint_sha256
6062060645
cert_subject: cert_subject
6062160646
- certificate_download_url: certificate_download_url
60647+
key_type: ""
6062260648
fingerprint_sha1: fingerprint_sha1
6062360649
managed: managed
60624-
private_key_type: private_key_type
6062560650
name: name
6062660651
pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
6062760652
cert_expiry: 2000-01-23T04:56:07.000+00:00

api_crypto.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/CertificateKeyPair.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**CertExpiry** | **NullableTime** | Get certificate expiry | [readonly]
1212
**CertSubject** | **NullableString** | Get certificate subject as full rfc4514 | [readonly]
1313
**PrivateKeyAvailable** | **bool** | Show if this keypair has a private key configured or not | [readonly]
14-
**PrivateKeyType** | **NullableString** | Get the private key's type, if set | [readonly]
14+
**KeyType** | [**NullableKeyTypeEnum**](KeyTypeEnum.md) | | [readonly]
1515
**CertificateDownloadUrl** | **string** | Get URL to download certificate | [readonly]
1616
**PrivateKeyDownloadUrl** | **string** | Get URL to download private key | [readonly]
1717
**Managed** | **NullableString** | Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. | [readonly]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020

2121
### NewCertificateKeyPair
2222

23-
`func NewCertificateKeyPair(pk string, name string, fingerprintSha256 NullableString, fingerprintSha1 NullableString, certExpiry NullableTime, certSubject NullableString, privateKeyAvailable bool, privateKeyType NullableString, certificateDownloadUrl string, privateKeyDownloadUrl string, managed NullableString, ) *CertificateKeyPair`
23+
`func NewCertificateKeyPair(pk string, name string, fingerprintSha256 NullableString, fingerprintSha1 NullableString, certExpiry NullableTime, certSubject NullableString, privateKeyAvailable bool, keyType NullableKeyTypeEnum, certificateDownloadUrl string, privateKeyDownloadUrl string, managed NullableString, ) *CertificateKeyPair`
2424

2525
NewCertificateKeyPair instantiates a new CertificateKeyPair object
2626
This constructor will assign default values to properties that have it defined,
@@ -215,36 +215,36 @@ and a boolean to check if the value has been set.
215215
SetPrivateKeyAvailable sets PrivateKeyAvailable field to given value.
216216

217217

218-
### GetPrivateKeyType
218+
### GetKeyType
219219

220-
`func (o *CertificateKeyPair) GetPrivateKeyType() string`
220+
`func (o *CertificateKeyPair) GetKeyType() KeyTypeEnum`
221221

222-
GetPrivateKeyType returns the PrivateKeyType field if non-nil, zero value otherwise.
222+
GetKeyType returns the KeyType field if non-nil, zero value otherwise.
223223

224-
### GetPrivateKeyTypeOk
224+
### GetKeyTypeOk
225225

226-
`func (o *CertificateKeyPair) GetPrivateKeyTypeOk() (*string, bool)`
226+
`func (o *CertificateKeyPair) GetKeyTypeOk() (*KeyTypeEnum, bool)`
227227

228-
GetPrivateKeyTypeOk returns a tuple with the PrivateKeyType field if it's non-nil, zero value otherwise
228+
GetKeyTypeOk returns a tuple with the KeyType field if it's non-nil, zero value otherwise
229229
and a boolean to check if the value has been set.
230230

231-
### SetPrivateKeyType
231+
### SetKeyType
232232

233-
`func (o *CertificateKeyPair) SetPrivateKeyType(v string)`
233+
`func (o *CertificateKeyPair) SetKeyType(v KeyTypeEnum)`
234234

235-
SetPrivateKeyType sets PrivateKeyType field to given value.
235+
SetKeyType sets KeyType field to given value.
236236

237237

238-
### SetPrivateKeyTypeNil
238+
### SetKeyTypeNil
239239

240-
`func (o *CertificateKeyPair) SetPrivateKeyTypeNil(b bool)`
240+
`func (o *CertificateKeyPair) SetKeyTypeNil(b bool)`
241241

242-
SetPrivateKeyTypeNil sets the value for PrivateKeyType to be an explicit nil
242+
SetKeyTypeNil sets the value for KeyType to be an explicit nil
243243

244-
### UnsetPrivateKeyType
245-
`func (o *CertificateKeyPair) UnsetPrivateKeyType()`
244+
### UnsetKeyType
245+
`func (o *CertificateKeyPair) UnsetKeyType()`
246246

247-
UnsetPrivateKeyType ensures that no value is present for PrivateKeyType, not even an explicit nil
247+
UnsetKeyType ensures that no value is present for KeyType, not even an explicit nil
248248
### GetCertificateDownloadUrl
249249

250250
`func (o *CertificateKeyPair) GetCertificateDownloadUrl() string`

docs/CryptoApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Name | Type | Description | Notes
219219

220220
## CryptoCertificatekeypairsList
221221

222-
> PaginatedCertificateKeyPairList CryptoCertificatekeypairsList(ctx).HasKey(hasKey).IncludeDetails(includeDetails).Managed(managed).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute()
222+
> PaginatedCertificateKeyPairList CryptoCertificatekeypairsList(ctx).HasKey(hasKey).IncludeDetails(includeDetails).KeyType(keyType).Managed(managed).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute()
223223
224224

225225

@@ -240,6 +240,7 @@ import (
240240
func main() {
241241
hasKey := true // bool | Only return certificate-key pairs with keys (optional)
242242
includeDetails := true // bool | (optional) (default to true)
243+
keyType := []string{"KeyType_example"} // []string | Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec') (optional)
243244
managed := "managed_example" // string | (optional)
244245
name := "name_example" // string | (optional)
245246
ordering := "ordering_example" // string | Which field to use when ordering the results. (optional)
@@ -249,7 +250,7 @@ func main() {
249250

250251
configuration := openapiclient.NewConfiguration()
251252
apiClient := openapiclient.NewAPIClient(configuration)
252-
resp, r, err := apiClient.CryptoApi.CryptoCertificatekeypairsList(context.Background()).HasKey(hasKey).IncludeDetails(includeDetails).Managed(managed).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute()
253+
resp, r, err := apiClient.CryptoApi.CryptoCertificatekeypairsList(context.Background()).HasKey(hasKey).IncludeDetails(includeDetails).KeyType(keyType).Managed(managed).Name(name).Ordering(ordering).Page(page).PageSize(pageSize).Search(search).Execute()
253254
if err != nil {
254255
fmt.Fprintf(os.Stderr, "Error when calling `CryptoApi.CryptoCertificatekeypairsList``: %v\n", err)
255256
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -272,6 +273,7 @@ Name | Type | Description | Notes
272273
------------- | ------------- | ------------- | -------------
273274
**hasKey** | **bool** | Only return certificate-key pairs with keys |
274275
**includeDetails** | **bool** | | [default to true]
276+
**keyType** | **[]string** | Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec') |
275277
**managed** | **string** | |
276278
**name** | **string** | |
277279
**ordering** | **string** | Which field to use when ordering the results. |

docs/KeyTypeEnum.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# KeyTypeEnum
2+
3+
## Enum
4+
5+
6+
* `RSA` (value: `"rsa"`)
7+
8+
* `EC` (value: `"ec"`)
9+
10+
* `DSA` (value: `"dsa"`)
11+
12+
* `ED25519` (value: `"ed25519"`)
13+
14+
* `ED448` (value: `"ed448"`)
15+
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+

model_certificate_key_pair.go

Lines changed: 17 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)