Skip to content

Commit b78266b

Browse files
prometherionmjuraga
authored andcommitted
BUG/MINOR: read only fields for SSL certificate resource
Signed-off-by: Dario Tranchitella <dtranchitella@haproxy.com>
1 parent a7ef219 commit b78266b

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
@@ -10249,22 +10249,28 @@ definitions:
1024910249
description: A file containing one or more SSL/TLS certificates and keys
1025010250
properties:
1025110251
algorithm:
10252+
readOnly: true
1025210253
type: string
1025310254
authority_key_id:
10255+
readOnly: true
1025410256
type: string
1025510257
chain_issuer:
10258+
readOnly: true
1025610259
type: string
1025710260
x-omitempty: true
1025810261
chain_subject:
10262+
readOnly: true
1025910263
type: string
1026010264
x-omitempty: true
1026110265
description:
10266+
readOnly: true
1026210267
type: string
1026310268
domains:
1026410269
readOnly: true
1026510270
type: string
1026610271
x-omitempty: true
1026710272
file:
10273+
readOnly: true
1026810274
type: string
1026910275
ip_addresses:
1027010276
readOnly: true
@@ -10289,8 +10295,10 @@ definitions:
1028910295
serial:
1029010296
type: string
1029110297
sha1_finger_print:
10298+
readOnly: true
1029210299
type: string
1029310300
sha256_finger_print:
10301+
readOnly: true
1029410302
type: string
1029510303
size:
1029610304
description: File size in bytes.
@@ -10303,12 +10311,16 @@ definitions:
1030310311
type: string
1030410312
x-omitempty: true
1030510313
storage_name:
10314+
readOnly: true
1030610315
type: string
1030710316
subject:
10317+
readOnly: true
1030810318
type: string
1030910319
subject_alternative_names:
10320+
readOnly: true
1031010321
type: string
1031110322
subject_key_id:
10323+
readOnly: true
1031210324
type: string
1031310325
title: SSL File
1031410326
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)