Skip to content

Commit 6d883ec

Browse files
author
SDKAuto
committed
CodeGen from PR 33771 in Azure/azure-rest-api-specs
Merge 9a9c7333b2f477bfcf6505d1fb334720c425655e into b65cbab6abfdad4135f411bb1aaaeb76d27e4e70
1 parent a458671 commit 6d883ec

File tree

8 files changed

+702
-8
lines changed

8 files changed

+702
-8
lines changed

sdk/keyvault/azure-security-keyvault-certificates/CHANGELOG.md

Lines changed: 524 additions & 4 deletions
Large diffs are not rendered by default.

sdk/keyvault/azure-security-keyvault-certificates/src/main/java/com/azure/security/keyvault/certificates/implementation/CertificateClientImpl.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ public PagedIterable<BinaryData> getCertificates(RequestOptions requestOptions)
11091109
* tags (Optional): {
11101110
* String: String (Required)
11111111
* }
1112+
* preserveCertOrder: Boolean (Optional)
11121113
* recoveryId: String (Optional)
11131114
* scheduledPurgeDate: Long (Optional)
11141115
* deletedDate: Long (Optional)
@@ -1213,6 +1214,7 @@ public Mono<Response<BinaryData>> deleteCertificateWithResponseAsync(String cert
12131214
* tags (Optional): {
12141215
* String: String (Required)
12151216
* }
1217+
* preserveCertOrder: Boolean (Optional)
12161218
* recoveryId: String (Optional)
12171219
* scheduledPurgeDate: Long (Optional)
12181220
* deletedDate: Long (Optional)
@@ -2279,6 +2281,7 @@ public Response<BinaryData> deleteCertificateIssuerWithResponse(String issuerNam
22792281
* tags (Optional): {
22802282
* String: String (Required)
22812283
* }
2284+
* preserveCertOrder: Boolean (Optional)
22822285
* }
22832286
* }
22842287
* </pre>
@@ -2304,6 +2307,7 @@ public Response<BinaryData> deleteCertificateIssuerWithResponse(String issuerNam
23042307
* innererror (Optional): (recursive schema, see innererror above)
23052308
* }
23062309
* target: String (Optional)
2310+
* preserveCertOrder: Boolean (Optional)
23072311
* request_id: String (Optional)
23082312
* }
23092313
* }
@@ -2403,6 +2407,7 @@ public Mono<Response<BinaryData>> createCertificateWithResponseAsync(String cert
24032407
* tags (Optional): {
24042408
* String: String (Required)
24052409
* }
2410+
* preserveCertOrder: Boolean (Optional)
24062411
* }
24072412
* }
24082413
* </pre>
@@ -2428,6 +2433,7 @@ public Mono<Response<BinaryData>> createCertificateWithResponseAsync(String cert
24282433
* innererror (Optional): (recursive schema, see innererror above)
24292434
* }
24302435
* target: String (Optional)
2436+
* preserveCertOrder: Boolean (Optional)
24312437
* request_id: String (Optional)
24322438
* }
24332439
* }
@@ -2529,6 +2535,7 @@ public Response<BinaryData> createCertificateWithResponse(String certificateName
25292535
* tags (Optional): {
25302536
* String: String (Required)
25312537
* }
2538+
* preserveCertOrder: Boolean (Optional)
25322539
* }
25332540
* }
25342541
* </pre>
@@ -2607,6 +2614,7 @@ public Response<BinaryData> createCertificateWithResponse(String certificateName
26072614
* tags (Optional): {
26082615
* String: String (Required)
26092616
* }
2617+
* preserveCertOrder: Boolean (Optional)
26102618
* }
26112619
* }
26122620
* </pre>
@@ -2709,6 +2717,7 @@ public Mono<Response<BinaryData>> importCertificateWithResponseAsync(String cert
27092717
* tags (Optional): {
27102718
* String: String (Required)
27112719
* }
2720+
* preserveCertOrder: Boolean (Optional)
27122721
* }
27132722
* }
27142723
* </pre>
@@ -2787,6 +2796,7 @@ public Mono<Response<BinaryData>> importCertificateWithResponseAsync(String cert
27872796
* tags (Optional): {
27882797
* String: String (Required)
27892798
* }
2799+
* preserveCertOrder: Boolean (Optional)
27902800
* }
27912801
* }
27922802
* </pre>
@@ -3661,6 +3671,7 @@ public Response<BinaryData> updateCertificatePolicyWithResponse(String certifica
36613671
* tags (Optional): {
36623672
* String: String (Required)
36633673
* }
3674+
* preserveCertOrder: Boolean (Optional)
36643675
* }
36653676
* }
36663677
* </pre>
@@ -3837,6 +3848,7 @@ public Mono<Response<BinaryData>> updateCertificateWithResponseAsync(String cert
38373848
* tags (Optional): {
38383849
* String: String (Required)
38393850
* }
3851+
* preserveCertOrder: Boolean (Optional)
38403852
* }
38413853
* }
38423854
* </pre>
@@ -3938,6 +3950,7 @@ public Response<BinaryData> updateCertificateWithResponse(String certificateName
39383950
* tags (Optional): {
39393951
* String: String (Required)
39403952
* }
3953+
* preserveCertOrder: Boolean (Optional)
39413954
* }
39423955
* }
39433956
* </pre>
@@ -4042,6 +4055,7 @@ public Mono<Response<BinaryData>> getCertificateWithResponseAsync(String certifi
40424055
* tags (Optional): {
40434056
* String: String (Required)
40444057
* }
4058+
* preserveCertOrder: Boolean (Optional)
40454059
* }
40464060
* }
40474061
* </pre>
@@ -4102,6 +4116,7 @@ public Response<BinaryData> getCertificateWithResponse(String certificateName, S
41024116
* innererror (Optional): (recursive schema, see innererror above)
41034117
* }
41044118
* target: String (Optional)
4119+
* preserveCertOrder: Boolean (Optional)
41054120
* request_id: String (Optional)
41064121
* }
41074122
* }
@@ -4163,6 +4178,7 @@ public Mono<Response<BinaryData>> updateCertificateOperationWithResponseAsync(St
41634178
* innererror (Optional): (recursive schema, see innererror above)
41644179
* }
41654180
* target: String (Optional)
4181+
* preserveCertOrder: Boolean (Optional)
41664182
* request_id: String (Optional)
41674183
* }
41684184
* }
@@ -4212,6 +4228,7 @@ public Response<BinaryData> updateCertificateOperationWithResponse(String certif
42124228
* innererror (Optional): (recursive schema, see innererror above)
42134229
* }
42144230
* target: String (Optional)
4231+
* preserveCertOrder: Boolean (Optional)
42154232
* request_id: String (Optional)
42164233
* }
42174234
* }
@@ -4262,6 +4279,7 @@ public Mono<Response<BinaryData>> getCertificateOperationWithResponseAsync(Strin
42624279
* innererror (Optional): (recursive schema, see innererror above)
42634280
* }
42644281
* target: String (Optional)
4282+
* preserveCertOrder: Boolean (Optional)
42654283
* request_id: String (Optional)
42664284
* }
42674285
* }
@@ -4311,6 +4329,7 @@ public Response<BinaryData> getCertificateOperationWithResponse(String certifica
43114329
* innererror (Optional): (recursive schema, see innererror above)
43124330
* }
43134331
* target: String (Optional)
4332+
* preserveCertOrder: Boolean (Optional)
43144333
* request_id: String (Optional)
43154334
* }
43164335
* }
@@ -4359,6 +4378,7 @@ public Mono<Response<BinaryData>> deleteCertificateOperationWithResponseAsync(St
43594378
* innererror (Optional): (recursive schema, see innererror above)
43604379
* }
43614380
* target: String (Optional)
4381+
* preserveCertOrder: Boolean (Optional)
43624382
* request_id: String (Optional)
43634383
* }
43644384
* }
@@ -4483,6 +4503,7 @@ public Response<BinaryData> deleteCertificateOperationWithResponse(String certif
44834503
* tags (Optional): {
44844504
* String: String (Required)
44854505
* }
4506+
* preserveCertOrder: Boolean (Optional)
44864507
* }
44874508
* }
44884509
* </pre>
@@ -4610,6 +4631,7 @@ public Mono<Response<BinaryData>> mergeCertificateWithResponseAsync(String certi
46104631
* tags (Optional): {
46114632
* String: String (Required)
46124633
* }
4634+
* preserveCertOrder: Boolean (Optional)
46134635
* }
46144636
* }
46154637
* </pre>
@@ -4783,6 +4805,7 @@ public Response<BinaryData> backupCertificateWithResponse(String certificateName
47834805
* tags (Optional): {
47844806
* String: String (Required)
47854807
* }
4808+
* preserveCertOrder: Boolean (Optional)
47864809
* }
47874810
* }
47884811
* </pre>
@@ -4894,6 +4917,7 @@ public Mono<Response<BinaryData>> restoreCertificateWithResponseAsync(BinaryData
48944917
* tags (Optional): {
48954918
* String: String (Required)
48964919
* }
4920+
* preserveCertOrder: Boolean (Optional)
48974921
* }
48984922
* }
48994923
* </pre>
@@ -5229,6 +5253,7 @@ public PagedIterable<BinaryData> getDeletedCertificates(RequestOptions requestOp
52295253
* tags (Optional): {
52305254
* String: String (Required)
52315255
* }
5256+
* preserveCertOrder: Boolean (Optional)
52325257
* recoveryId: String (Optional)
52335258
* scheduledPurgeDate: Long (Optional)
52345259
* deletedDate: Long (Optional)
@@ -5333,6 +5358,7 @@ public Mono<Response<BinaryData>> getDeletedCertificateWithResponseAsync(String
53335358
* tags (Optional): {
53345359
* String: String (Required)
53355360
* }
5361+
* preserveCertOrder: Boolean (Optional)
53365362
* recoveryId: String (Optional)
53375363
* scheduledPurgeDate: Long (Optional)
53385364
* deletedDate: Long (Optional)
@@ -5482,6 +5508,7 @@ public Response<Void> purgeDeletedCertificateWithResponse(String certificateName
54825508
* tags (Optional): {
54835509
* String: String (Required)
54845510
* }
5511+
* preserveCertOrder: Boolean (Optional)
54855512
* }
54865513
* }
54875514
* </pre>
@@ -5583,6 +5610,7 @@ public Mono<Response<BinaryData>> recoverDeletedCertificateWithResponseAsync(Str
55835610
* tags (Optional): {
55845611
* String: String (Required)
55855612
* }
5613+
* preserveCertOrder: Boolean (Optional)
55865614
* }
55875615
* }
55885616
* </pre>

sdk/keyvault/azure-security-keyvault-certificates/src/main/java/com/azure/security/keyvault/certificates/implementation/models/CertificateBundle.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
186186
jsonWriter.writeStringField("contentType", this.contentType);
187187
jsonWriter.writeJsonField("attributes", this.attributes);
188188
jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
189+
jsonWriter.writeBooleanField("preserveCertOrder", this.preserveCertOrder);
189190
return jsonWriter.writeEndObject();
190191
}
191192

@@ -224,11 +225,31 @@ public static CertificateBundle fromJson(JsonReader jsonReader) throws IOExcepti
224225
} else if ("tags".equals(fieldName)) {
225226
Map<String, String> tags = reader.readMap(reader1 -> reader1.getString());
226227
deserializedCertificateBundle.tags = tags;
228+
} else if ("preserveCertOrder".equals(fieldName)) {
229+
deserializedCertificateBundle.preserveCertOrder = reader.getNullable(JsonReader::getBoolean);
227230
} else {
228231
reader.skipChildren();
229232
}
230233
}
231234
return deserializedCertificateBundle;
232235
});
233236
}
237+
238+
/*
239+
* Specifies whether the certificate chain preserves its original order. The default value is false, which sets the
240+
* leaf certificate at index 0.
241+
*/
242+
@Generated
243+
private Boolean preserveCertOrder;
244+
245+
/**
246+
* Get the preserveCertOrder property: Specifies whether the certificate chain preserves its original order. The
247+
* default value is false, which sets the leaf certificate at index 0.
248+
*
249+
* @return the preserveCertOrder value.
250+
*/
251+
@Generated
252+
public Boolean isPreserveCertOrder() {
253+
return this.preserveCertOrder;
254+
}
234255
}

sdk/keyvault/azure-security-keyvault-certificates/src/main/java/com/azure/security/keyvault/certificates/implementation/models/CertificateCreateParameters.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
119119
jsonWriter.writeJsonField("policy", this.certificatePolicy);
120120
jsonWriter.writeJsonField("attributes", this.certificateAttributes);
121121
jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
122+
jsonWriter.writeBooleanField("preserveCertOrder", this.preserveCertOrder);
122123
return jsonWriter.writeEndObject();
123124
}
124125

@@ -145,11 +146,45 @@ public static CertificateCreateParameters fromJson(JsonReader jsonReader) throws
145146
} else if ("tags".equals(fieldName)) {
146147
Map<String, String> tags = reader.readMap(reader1 -> reader1.getString());
147148
deserializedCertificateCreateParameters.tags = tags;
149+
} else if ("preserveCertOrder".equals(fieldName)) {
150+
deserializedCertificateCreateParameters.preserveCertOrder
151+
= reader.getNullable(JsonReader::getBoolean);
148152
} else {
149153
reader.skipChildren();
150154
}
151155
}
152156
return deserializedCertificateCreateParameters;
153157
});
154158
}
159+
160+
/*
161+
* Specifies whether the certificate chain preserves its original order. The default value is false, which sets the
162+
* leaf certificate at index 0.
163+
*/
164+
@Generated
165+
private Boolean preserveCertOrder;
166+
167+
/**
168+
* Get the preserveCertOrder property: Specifies whether the certificate chain preserves its original order. The
169+
* default value is false, which sets the leaf certificate at index 0.
170+
*
171+
* @return the preserveCertOrder value.
172+
*/
173+
@Generated
174+
public Boolean isPreserveCertOrder() {
175+
return this.preserveCertOrder;
176+
}
177+
178+
/**
179+
* Set the preserveCertOrder property: Specifies whether the certificate chain preserves its original order. The
180+
* default value is false, which sets the leaf certificate at index 0.
181+
*
182+
* @param preserveCertOrder the preserveCertOrder value to set.
183+
* @return the CertificateCreateParameters object itself.
184+
*/
185+
@Generated
186+
public CertificateCreateParameters setPreserveCertOrder(Boolean preserveCertOrder) {
187+
this.preserveCertOrder = preserveCertOrder;
188+
return this;
189+
}
155190
}

sdk/keyvault/azure-security-keyvault-certificates/src/main/java/com/azure/security/keyvault/certificates/implementation/models/CertificateImportParameters.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
172172
jsonWriter.writeJsonField("policy", this.certificatePolicy);
173173
jsonWriter.writeJsonField("attributes", this.certificateAttributes);
174174
jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
175+
jsonWriter.writeBooleanField("preserveCertOrder", this.preserveCertOrder);
175176
return jsonWriter.writeEndObject();
176177
}
177178

@@ -192,6 +193,7 @@ public static CertificateImportParameters fromJson(JsonReader jsonReader) throws
192193
CertificatePolicy certificatePolicy = null;
193194
CertificateAttributes certificateAttributes = null;
194195
Map<String, String> tags = null;
196+
Boolean preserveCertOrder = null;
195197
while (reader.nextToken() != JsonToken.END_OBJECT) {
196198
String fieldName = reader.getFieldName();
197199
reader.nextToken();
@@ -205,6 +207,8 @@ public static CertificateImportParameters fromJson(JsonReader jsonReader) throws
205207
certificateAttributes = CertificateAttributes.fromJson(reader);
206208
} else if ("tags".equals(fieldName)) {
207209
tags = reader.readMap(reader1 -> reader1.getString());
210+
} else if ("preserveCertOrder".equals(fieldName)) {
211+
preserveCertOrder = reader.getNullable(JsonReader::getBoolean);
208212
} else {
209213
reader.skipChildren();
210214
}
@@ -215,7 +219,39 @@ public static CertificateImportParameters fromJson(JsonReader jsonReader) throws
215219
deserializedCertificateImportParameters.certificatePolicy = certificatePolicy;
216220
deserializedCertificateImportParameters.certificateAttributes = certificateAttributes;
217221
deserializedCertificateImportParameters.tags = tags;
222+
deserializedCertificateImportParameters.preserveCertOrder = preserveCertOrder;
218223
return deserializedCertificateImportParameters;
219224
});
220225
}
226+
227+
/*
228+
* Specifies whether the certificate chain preserves its original order. The default value is false, which sets the
229+
* leaf certificate at index 0.
230+
*/
231+
@Generated
232+
private Boolean preserveCertOrder;
233+
234+
/**
235+
* Get the preserveCertOrder property: Specifies whether the certificate chain preserves its original order. The
236+
* default value is false, which sets the leaf certificate at index 0.
237+
*
238+
* @return the preserveCertOrder value.
239+
*/
240+
@Generated
241+
public Boolean isPreserveCertOrder() {
242+
return this.preserveCertOrder;
243+
}
244+
245+
/**
246+
* Set the preserveCertOrder property: Specifies whether the certificate chain preserves its original order. The
247+
* default value is false, which sets the leaf certificate at index 0.
248+
*
249+
* @param preserveCertOrder the preserveCertOrder value to set.
250+
* @return the CertificateImportParameters object itself.
251+
*/
252+
@Generated
253+
public CertificateImportParameters setPreserveCertOrder(Boolean preserveCertOrder) {
254+
this.preserveCertOrder = preserveCertOrder;
255+
return this;
256+
}
221257
}

0 commit comments

Comments
 (0)