Skip to content

Commit c5f6674

Browse files
authored
doc(openapi): added Javadoc comments to all generated models
Signed-off-by: Marc Nuri <marc@marcnuri.com>
1 parent 34023ab commit c5f6674

File tree

4,397 files changed

+114553
-11632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,397 files changed

+114553
-11632
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* Fix #6802: Java generator support for required spec and status
1717
* Fix #5993: Support for Kubernetes v1.31 (elli)
1818
* Fix #6767: Support for Kubernetes v1.32 (penelope)
19+
* Fix #6777: Added Javadoc comments to all generated models
1920

2021
#### _**Note**_: Breaking changes
2122

extensions/certmanager/model/src/generated/java/io/fabric8/certmanager/api/model/acme/v1/ACMEAuthorization.java

+33
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
import lombok.ToString;
3535
import lombok.experimental.Accessors;
3636

37+
/**
38+
* ACMEAuthorization contains data returned from the ACME server on an authorization that must be completed in order validate a DNS name on an ACME Order resource.
39+
*/
3740
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
3841
@JsonInclude(JsonInclude.Include.NON_NULL)
3942
@JsonPropertyOrder({
@@ -97,52 +100,82 @@ public ACMEAuthorization(List<ACMEChallenge> challenges, String identifier, Stri
97100
this.wildcard = wildcard;
98101
}
99102

103+
/**
104+
* Challenges specifies the challenge types offered by the ACME server. One of these challenge types will be selected when validating the DNS name and an appropriate Challenge resource will be created to perform the ACME challenge process.
105+
*/
100106
@JsonProperty("challenges")
101107
@JsonInclude(JsonInclude.Include.NON_EMPTY)
102108
public List<ACMEChallenge> getChallenges() {
103109
return challenges;
104110
}
105111

112+
/**
113+
* Challenges specifies the challenge types offered by the ACME server. One of these challenge types will be selected when validating the DNS name and an appropriate Challenge resource will be created to perform the ACME challenge process.
114+
*/
106115
@JsonProperty("challenges")
107116
public void setChallenges(List<ACMEChallenge> challenges) {
108117
this.challenges = challenges;
109118
}
110119

120+
/**
121+
* Identifier is the DNS name to be validated as part of this authorization
122+
*/
111123
@JsonProperty("identifier")
112124
public String getIdentifier() {
113125
return identifier;
114126
}
115127

128+
/**
129+
* Identifier is the DNS name to be validated as part of this authorization
130+
*/
116131
@JsonProperty("identifier")
117132
public void setIdentifier(String identifier) {
118133
this.identifier = identifier;
119134
}
120135

136+
/**
137+
* InitialState is the initial state of the ACME authorization when first fetched from the ACME server. If an Authorization is already 'valid', the Order controller will not create a Challenge resource for the authorization. This will occur when working with an ACME server that enables 'authz reuse' (such as Let's Encrypt's production endpoint). If not set and 'identifier' is set, the state is assumed to be pending and a Challenge will be created.
138+
*/
121139
@JsonProperty("initialState")
122140
public String getInitialState() {
123141
return initialState;
124142
}
125143

144+
/**
145+
* InitialState is the initial state of the ACME authorization when first fetched from the ACME server. If an Authorization is already 'valid', the Order controller will not create a Challenge resource for the authorization. This will occur when working with an ACME server that enables 'authz reuse' (such as Let's Encrypt's production endpoint). If not set and 'identifier' is set, the state is assumed to be pending and a Challenge will be created.
146+
*/
126147
@JsonProperty("initialState")
127148
public void setInitialState(String initialState) {
128149
this.initialState = initialState;
129150
}
130151

152+
/**
153+
* URL is the URL of the Authorization that must be completed
154+
*/
131155
@JsonProperty("url")
132156
public String getUrl() {
133157
return url;
134158
}
135159

160+
/**
161+
* URL is the URL of the Authorization that must be completed
162+
*/
136163
@JsonProperty("url")
137164
public void setUrl(String url) {
138165
this.url = url;
139166
}
140167

168+
/**
169+
* Wildcard will be true if this authorization is for a wildcard DNS name. If this is true, the identifier will be the &#42;non-wildcard&#42; version of the DNS name. For example, if '&#42;.example.com' is the DNS name being validated, this field will be 'true' and the 'identifier' field will be 'example.com'.
170+
*/
141171
@JsonProperty("wildcard")
142172
public Boolean getWildcard() {
143173
return wildcard;
144174
}
145175

176+
/**
177+
* Wildcard will be true if this authorization is for a wildcard DNS name. If this is true, the identifier will be the &#42;non-wildcard&#42; version of the DNS name. For example, if '&#42;.example.com' is the DNS name being validated, this field will be 'true' and the 'identifier' field will be 'example.com'.
178+
*/
146179
@JsonProperty("wildcard")
147180
public void setWildcard(Boolean wildcard) {
148181
this.wildcard = wildcard;

extensions/certmanager/model/src/generated/java/io/fabric8/certmanager/api/model/acme/v1/ACMEChallenge.java

+21
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
import lombok.ToString;
3333
import lombok.experimental.Accessors;
3434

35+
/**
36+
* Challenge specifies a challenge offered by the ACME server for an Order. An appropriate Challenge resource can be created to perform the ACME challenge process.
37+
*/
3538
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
3639
@JsonInclude(JsonInclude.Include.NON_NULL)
3740
@JsonPropertyOrder({
@@ -86,31 +89,49 @@ public ACMEChallenge(String token, String type, String url) {
8689
this.url = url;
8790
}
8891

92+
/**
93+
* Token is the token that must be presented for this challenge. This is used to compute the 'key' that must also be presented.
94+
*/
8995
@JsonProperty("token")
9096
public String getToken() {
9197
return token;
9298
}
9399

100+
/**
101+
* Token is the token that must be presented for this challenge. This is used to compute the 'key' that must also be presented.
102+
*/
94103
@JsonProperty("token")
95104
public void setToken(String token) {
96105
this.token = token;
97106
}
98107

108+
/**
109+
* Type is the type of challenge being offered, e.g. 'http-01', 'dns-01', 'tls-sni-01', etc. This is the raw value retrieved from the ACME server. Only 'http-01' and 'dns-01' are supported by cert-manager, other values will be ignored.
110+
*/
99111
@JsonProperty("type")
100112
public String getType() {
101113
return type;
102114
}
103115

116+
/**
117+
* Type is the type of challenge being offered, e.g. 'http-01', 'dns-01', 'tls-sni-01', etc. This is the raw value retrieved from the ACME server. Only 'http-01' and 'dns-01' are supported by cert-manager, other values will be ignored.
118+
*/
104119
@JsonProperty("type")
105120
public void setType(String type) {
106121
this.type = type;
107122
}
108123

124+
/**
125+
* URL is the URL of this challenge. It can be used to retrieve additional metadata about the Challenge from the ACME server.
126+
*/
109127
@JsonProperty("url")
110128
public String getUrl() {
111129
return url;
112130
}
113131

132+
/**
133+
* URL is the URL of this challenge. It can be used to retrieve additional metadata about the Challenge from the ACME server.
134+
*/
114135
@JsonProperty("url")
115136
public void setUrl(String url) {
116137
this.url = url;

extensions/certmanager/model/src/generated/java/io/fabric8/certmanager/api/model/acme/v1/ACMEChallengeSolver.java

+21
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
import lombok.ToString;
3333
import lombok.experimental.Accessors;
3434

35+
/**
36+
* An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided.
37+
*/
3538
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
3639
@JsonInclude(JsonInclude.Include.NON_NULL)
3740
@JsonPropertyOrder({
@@ -86,31 +89,49 @@ public ACMEChallengeSolver(ACMEChallengeSolverDNS01 dns01, ACMEChallengeSolverHT
8689
this.selector = selector;
8790
}
8891

92+
/**
93+
* An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided.
94+
*/
8995
@JsonProperty("dns01")
9096
public ACMEChallengeSolverDNS01 getDns01() {
9197
return dns01;
9298
}
9399

100+
/**
101+
* An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided.
102+
*/
94103
@JsonProperty("dns01")
95104
public void setDns01(ACMEChallengeSolverDNS01 dns01) {
96105
this.dns01 = dns01;
97106
}
98107

108+
/**
109+
* An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided.
110+
*/
99111
@JsonProperty("http01")
100112
public ACMEChallengeSolverHTTP01 getHttp01() {
101113
return http01;
102114
}
103115

116+
/**
117+
* An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided.
118+
*/
104119
@JsonProperty("http01")
105120
public void setHttp01(ACMEChallengeSolverHTTP01 http01) {
106121
this.http01 = http01;
107122
}
108123

124+
/**
125+
* An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided.
126+
*/
109127
@JsonProperty("selector")
110128
public CertificateDNSNameSelector getSelector() {
111129
return selector;
112130
}
113131

132+
/**
133+
* An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of. A selector may be provided to use different solving strategies for different DNS names. Only one of HTTP01 or DNS01 must be provided.
134+
*/
114135
@JsonProperty("selector")
115136
public void setSelector(CertificateDNSNameSelector selector) {
116137
this.selector = selector;

extensions/certmanager/model/src/generated/java/io/fabric8/certmanager/api/model/acme/v1/ACMEChallengeSolverDNS01.java

+63
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
import lombok.ToString;
3333
import lombok.experimental.Accessors;
3434

35+
/**
36+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
37+
*/
3538
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
3639
@JsonInclude(JsonInclude.Include.NON_NULL)
3740
@JsonPropertyOrder({
@@ -114,101 +117,161 @@ public ACMEChallengeSolverDNS01(ACMEIssuerDNS01ProviderAcmeDNS acmeDNS, ACMEIssu
114117
this.webhook = webhook;
115118
}
116119

120+
/**
121+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
122+
*/
117123
@JsonProperty("acmeDNS")
118124
public ACMEIssuerDNS01ProviderAcmeDNS getAcmeDNS() {
119125
return acmeDNS;
120126
}
121127

128+
/**
129+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
130+
*/
122131
@JsonProperty("acmeDNS")
123132
public void setAcmeDNS(ACMEIssuerDNS01ProviderAcmeDNS acmeDNS) {
124133
this.acmeDNS = acmeDNS;
125134
}
126135

136+
/**
137+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
138+
*/
127139
@JsonProperty("akamai")
128140
public ACMEIssuerDNS01ProviderAkamai getAkamai() {
129141
return akamai;
130142
}
131143

144+
/**
145+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
146+
*/
132147
@JsonProperty("akamai")
133148
public void setAkamai(ACMEIssuerDNS01ProviderAkamai akamai) {
134149
this.akamai = akamai;
135150
}
136151

152+
/**
153+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
154+
*/
137155
@JsonProperty("azureDNS")
138156
public ACMEIssuerDNS01ProviderAzureDNS getAzureDNS() {
139157
return azureDNS;
140158
}
141159

160+
/**
161+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
162+
*/
142163
@JsonProperty("azureDNS")
143164
public void setAzureDNS(ACMEIssuerDNS01ProviderAzureDNS azureDNS) {
144165
this.azureDNS = azureDNS;
145166
}
146167

168+
/**
169+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
170+
*/
147171
@JsonProperty("cloudDNS")
148172
public ACMEIssuerDNS01ProviderCloudDNS getCloudDNS() {
149173
return cloudDNS;
150174
}
151175

176+
/**
177+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
178+
*/
152179
@JsonProperty("cloudDNS")
153180
public void setCloudDNS(ACMEIssuerDNS01ProviderCloudDNS cloudDNS) {
154181
this.cloudDNS = cloudDNS;
155182
}
156183

184+
/**
185+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
186+
*/
157187
@JsonProperty("cloudflare")
158188
public ACMEIssuerDNS01ProviderCloudflare getCloudflare() {
159189
return cloudflare;
160190
}
161191

192+
/**
193+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
194+
*/
162195
@JsonProperty("cloudflare")
163196
public void setCloudflare(ACMEIssuerDNS01ProviderCloudflare cloudflare) {
164197
this.cloudflare = cloudflare;
165198
}
166199

200+
/**
201+
* CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones.
202+
*/
167203
@JsonProperty("cnameStrategy")
168204
public String getCnameStrategy() {
169205
return cnameStrategy;
170206
}
171207

208+
/**
209+
* CNAMEStrategy configures how the DNS01 provider should handle CNAME records when found in DNS zones.
210+
*/
172211
@JsonProperty("cnameStrategy")
173212
public void setCnameStrategy(String cnameStrategy) {
174213
this.cnameStrategy = cnameStrategy;
175214
}
176215

216+
/**
217+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
218+
*/
177219
@JsonProperty("digitalocean")
178220
public ACMEIssuerDNS01ProviderDigitalOcean getDigitalocean() {
179221
return digitalocean;
180222
}
181223

224+
/**
225+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
226+
*/
182227
@JsonProperty("digitalocean")
183228
public void setDigitalocean(ACMEIssuerDNS01ProviderDigitalOcean digitalocean) {
184229
this.digitalocean = digitalocean;
185230
}
186231

232+
/**
233+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
234+
*/
187235
@JsonProperty("rfc2136")
188236
public ACMEIssuerDNS01ProviderRFC2136 getRfc2136() {
189237
return rfc2136;
190238
}
191239

240+
/**
241+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
242+
*/
192243
@JsonProperty("rfc2136")
193244
public void setRfc2136(ACMEIssuerDNS01ProviderRFC2136 rfc2136) {
194245
this.rfc2136 = rfc2136;
195246
}
196247

248+
/**
249+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
250+
*/
197251
@JsonProperty("route53")
198252
public ACMEIssuerDNS01ProviderRoute53 getRoute53() {
199253
return route53;
200254
}
201255

256+
/**
257+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
258+
*/
202259
@JsonProperty("route53")
203260
public void setRoute53(ACMEIssuerDNS01ProviderRoute53 route53) {
204261
this.route53 = route53;
205262
}
206263

264+
/**
265+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
266+
*/
207267
@JsonProperty("webhook")
208268
public ACMEIssuerDNS01ProviderWebhook getWebhook() {
209269
return webhook;
210270
}
211271

272+
/**
273+
* Used to configure a DNS01 challenge provider to be used when solving DNS01 challenges. Only one DNS provider may be configured per solver.
274+
*/
212275
@JsonProperty("webhook")
213276
public void setWebhook(ACMEIssuerDNS01ProviderWebhook webhook) {
214277
this.webhook = webhook;

0 commit comments

Comments
 (0)