Skip to content

Commit 6269f60

Browse files
prometherionGopher Bot
authored andcommitted
BUG/MINOR: read only fields for SSL certificate resource
Signed-off-by: Dario Tranchitella <dtranchitella@haproxy.com>
1 parent d535b8b commit 6269f60

3 files changed

Lines changed: 195 additions & 3 deletions

File tree

models/ssl_certificate.go

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

specification/build/haproxy_spec.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10225,22 +10225,28 @@ definitions:
1022510225
description: A file containing one or more SSL/TLS certificates and keys
1022610226
properties:
1022710227
algorithm:
10228+
readOnly: true
1022810229
type: string
1022910230
authority_key_id:
10231+
readOnly: true
1023010232
type: string
1023110233
chain_issuer:
10234+
readOnly: true
1023210235
type: string
1023310236
x-omitempty: true
1023410237
chain_subject:
10238+
readOnly: true
1023510239
type: string
1023610240
x-omitempty: true
1023710241
description:
10242+
readOnly: true
1023810243
type: string
1023910244
domains:
1024010245
readOnly: true
1024110246
type: string
1024210247
x-omitempty: true
1024310248
file:
10249+
readOnly: true
1024410250
type: string
1024510251
ip_addresses:
1024610252
readOnly: true
@@ -10265,8 +10271,10 @@ definitions:
1026510271
serial:
1026610272
type: string
1026710273
sha1_finger_print:
10274+
readOnly: true
1026810275
type: string
1026910276
sha256_finger_print:
10277+
readOnly: true
1027010278
type: string
1027110279
size:
1027210280
description: File size in bytes.
@@ -10279,12 +10287,16 @@ definitions:
1027910287
type: string
1028010288
x-omitempty: true
1028110289
storage_name:
10290+
readOnly: true
1028210291
type: string
1028310292
subject:
10293+
readOnly: true
1028410294
type: string
1028510295
subject_alternative_names:
10296+
readOnly: true
1028610297
type: string
1028710298
subject_key_id:
10299+
readOnly: true
1028810300
type: string
1028910301
title: SSL File
1029010302
type: object

specification/models/storage/ssl_certificate.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ ssl_certificate:
55
type: object
66
properties:
77
file:
8+
readOnly: true
89
type: string
910
storage_name:
11+
readOnly: true
1012
type: string
1113
description:
14+
readOnly: true
1215
type: string
1316
size:
14-
type: integer
1517
readOnly: true
18+
type: integer
1619
x-nullable: true
1720
description: File size in bytes.
1821
status:
@@ -35,34 +38,43 @@ ssl_certificate:
3538
x-nullable: true
3639
x-go-custom-tag: gorm:"type:timestamp with time zone"
3740
algorithm:
41+
readOnly: true
3842
type: string
3943
sha1_finger_print:
44+
readOnly: true
4045
type: string
4146
sha256_finger_print:
47+
readOnly: true
4248
type: string
4349
domains:
44-
type: string
4550
readOnly: true
51+
type: string
4652
x-omitempty: true
4753
issuers:
4854
type: string
4955
readOnly: true
5056
x-omitempty: true
5157
ip_addresses:
52-
type: string
5358
readOnly: true
59+
type: string
5460
x-omitempty: true
5561
authority_key_id:
62+
readOnly: true
5663
type: string
5764
subject:
65+
readOnly: true
5866
type: string
5967
subject_alternative_names:
68+
readOnly: true
6069
type: string
6170
subject_key_id:
71+
readOnly: true
6272
type: string
6373
chain_subject:
74+
readOnly: true
6475
type: string
6576
x-omitempty: true
6677
chain_issuer:
78+
readOnly: true
6779
type: string
6880
x-omitempty: true

0 commit comments

Comments
 (0)