diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES
index 039892eb014..aa899ef9fe6 100644
--- a/samples/client/petstore/java/.openapi-generator/FILES
+++ b/samples/client/petstore/java/.openapi-generator/FILES
@@ -228,6 +228,7 @@ docs/paths/fake/delete/parameters/parameter3/Schema3.md
docs/paths/fake/delete/parameters/parameter4/Schema4.md
docs/paths/fake/delete/parameters/parameter5/Schema5.md
docs/paths/fake/delete/responses/Code200Response.md
+docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md
docs/paths/fake/get/HeaderParameters.md
docs/paths/fake/get/QueryParameters.md
docs/paths/fake/get/RequestBody.md
@@ -252,6 +253,7 @@ docs/paths/fake/post/Responses.md
docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md
docs/paths/fake/post/responses/Code200Response.md
docs/paths/fake/post/responses/Code404Response.md
+docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md
docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md
docs/paths/fakeadditionalpropertieswitharrayofenums/get/RequestBody.md
docs/paths/fakeadditionalpropertieswitharrayofenums/get/Responses.md
@@ -283,6 +285,7 @@ docs/paths/fakeclassnametest/patch/RequestBody.md
docs/paths/fakeclassnametest/patch/Responses.md
docs/paths/fakeclassnametest/patch/responses/Code200Response.md
docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md
+docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md
docs/paths/fakedeletecoffeeid/Delete.md
docs/paths/fakedeletecoffeeid/delete/PathParameters.md
docs/paths/fakedeletecoffeeid/delete/Responses.md
@@ -343,6 +346,9 @@ docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md
docs/paths/fakemultiplesecurities/get/Responses.md
docs/paths/fakemultiplesecurities/get/responses/Code200Response.md
docs/paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md
+docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md
+docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md
+docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md
docs/paths/fakeobjinquery/Get.md
docs/paths/fakeobjinquery/get/QueryParameters.md
docs/paths/fakeobjinquery/get/Responses.md
@@ -392,6 +398,7 @@ docs/paths/fakepetiduploadimagewithrequiredfile/post/parameters/parameter0/Schem
docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md
docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md
docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md
+docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md
docs/paths/fakequeryparamwithjsoncontenttype/Get.md
docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md
docs/paths/fakequeryparamwithjsoncontenttype/get/Responses.md
@@ -518,12 +525,17 @@ docs/paths/pet/post/RequestBody.md
docs/paths/pet/post/Responses.md
docs/paths/pet/post/responses/Code200Response.md
docs/paths/pet/post/responses/Code405Response.md
+docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md
+docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md
+docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md
docs/paths/pet/put/PetPutSecurityInfo.md
docs/paths/pet/put/RequestBody.md
docs/paths/pet/put/Responses.md
docs/paths/pet/put/responses/Code400Response.md
docs/paths/pet/put/responses/Code404Response.md
docs/paths/pet/put/responses/Code405Response.md
+docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md
+docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md
docs/paths/petfindbystatus/Get.md
docs/paths/petfindbystatus/PetfindbystatusServerInfo.md
docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md
@@ -532,6 +544,9 @@ docs/paths/petfindbystatus/get/Responses.md
docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md
docs/paths/petfindbystatus/get/responses/Code200Response.md
docs/paths/petfindbystatus/get/responses/Code400Response.md
+docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md
+docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md
+docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md
docs/paths/petfindbytags/Get.md
docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md
docs/paths/petfindbytags/get/QueryParameters.md
@@ -539,6 +554,8 @@ docs/paths/petfindbytags/get/Responses.md
docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md
docs/paths/petfindbytags/get/responses/Code200Response.md
docs/paths/petfindbytags/get/responses/Code400Response.md
+docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md
+docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md
docs/paths/petpetid/Delete.md
docs/paths/petpetid/Get.md
docs/paths/petpetid/Post.md
@@ -549,6 +566,8 @@ docs/paths/petpetid/delete/Responses.md
docs/paths/petpetid/delete/parameters/parameter0/Schema0.md
docs/paths/petpetid/delete/parameters/parameter1/Schema1.md
docs/paths/petpetid/delete/responses/Code400Response.md
+docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md
+docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md
docs/paths/petpetid/get/PathParameters.md
docs/paths/petpetid/get/PetpetidGetSecurityInfo.md
docs/paths/petpetid/get/Responses.md
@@ -558,6 +577,7 @@ docs/paths/petpetid/get/responses/Code400Response.md
docs/paths/petpetid/get/responses/Code404Response.md
docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md
docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md
+docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md
docs/paths/petpetid/post/PathParameters.md
docs/paths/petpetid/post/PetpetidPostSecurityInfo.md
docs/paths/petpetid/post/RequestBody.md
@@ -565,6 +585,8 @@ docs/paths/petpetid/post/Responses.md
docs/paths/petpetid/post/parameters/parameter0/Schema0.md
docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md
docs/paths/petpetid/post/responses/Code405Response.md
+docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md
+docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md
docs/paths/petpetiduploadimage/Post.md
docs/paths/petpetiduploadimage/post/PathParameters.md
docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md
@@ -573,6 +595,7 @@ docs/paths/petpetiduploadimage/post/Responses.md
docs/paths/petpetiduploadimage/post/parameters/parameter0/Schema0.md
docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md
docs/paths/petpetiduploadimage/post/responses/Code200Response.md
+docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md
docs/paths/solidus/Get.md
docs/paths/solidus/get/Responses.md
docs/paths/solidus/get/responses/Code200Response.md
@@ -580,6 +603,7 @@ docs/paths/storeinventory/Get.md
docs/paths/storeinventory/get/Responses.md
docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md
docs/paths/storeinventory/get/responses/Code200Response.md
+docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md
docs/paths/storeorder/Post.md
docs/paths/storeorder/post/RequestBody.md
docs/paths/storeorder/post/Responses.md
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md
index 97429e69cd3..6480bf870bd 100644
--- a/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/fake/delete/FakeDeleteSecurityInfo.md
@@ -4,13 +4,33 @@ FakeDeleteSecurityInfo.java
public class FakeDeleteSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [FakeDeleteSecurityInfo.FakeDeleteSecurityInfo1](#fakedeletesecurityinfo1)
SecurityRequirementObjectProvider
| enum | [FakeDeleteSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## FakeDeleteSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakeDeleteSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [FakeDeleteSecurityRequirementObject0()](../../../paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md
new file mode 100644
index 00000000000..af486306c7b
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# FakeDeleteSecurityRequirementObject0
+FakeDeleteSecurityRequirementObject0.java
+
+public class FakeDeleteSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakeDeleteSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [BearerTest.class](../../../../components/securityschemes/BearerTest.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md b/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md
index 5e668ecac51..95b409d5023 100644
--- a/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/fake/post/FakePostSecurityInfo.md
@@ -4,13 +4,33 @@ FakePostSecurityInfo.java
public class FakePostSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [FakePostSecurityInfo.FakePostSecurityInfo1](#fakepostsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [FakePostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## FakePostSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakePostSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [FakePostSecurityRequirementObject0()](../../../paths/fake/post/security/FakePostSecurityRequirementObject0.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md
new file mode 100644
index 00000000000..ffe185f4a8a
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/fake/post/security/FakePostSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# FakePostSecurityRequirementObject0
+FakePostSecurityRequirementObject0.java
+
+public class FakePostSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakePostSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [HttpBasicTest.class](../../../../components/securityschemes/HttpBasicTest.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md
index cae0e4d7607..2137564e12f 100644
--- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.md
@@ -4,13 +4,33 @@ FakeclassnametestPatchSecurityInfo.java
public class FakeclassnametestPatchSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [FakeclassnametestPatchSecurityInfo.FakeclassnametestPatchSecurityInfo1](#fakeclassnametestpatchsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [FakeclassnametestPatchSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## FakeclassnametestPatchSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakeclassnametestPatchSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [FakeclassnametestPatchSecurityRequirementObject0()](../../../paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md
new file mode 100644
index 00000000000..74c9bd15fba
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# FakeclassnametestPatchSecurityRequirementObject0
+FakeclassnametestPatchSecurityRequirementObject0.java
+
+public class FakeclassnametestPatchSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakeclassnametestPatchSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [ApiKeyQuery.class](../../../../components/securityschemes/ApiKeyQuery.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md
index a930307b3a2..202b98244be 100644
--- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.md
@@ -4,13 +4,33 @@ FakemultiplesecuritiesGetSecurityInfo.java
public class FakemultiplesecuritiesGetSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [FakemultiplesecuritiesGetSecurityInfo.FakemultiplesecuritiesGetSecurityInfo1](#fakemultiplesecuritiesgetsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [FakemultiplesecuritiesGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## FakemultiplesecuritiesGetSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakemultiplesecuritiesGetSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [FakemultiplesecuritiesGetSecurityRequirementObject0()](../../../paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_1, new [FakemultiplesecuritiesGetSecurityRequirementObject1()](../../../paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_2, new [FakemultiplesecuritiesGetSecurityRequirementObject2()](../../../paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md
new file mode 100644
index 00000000000..e762a030213
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# FakemultiplesecuritiesGetSecurityRequirementObject0
+FakemultiplesecuritiesGetSecurityRequirementObject0.java
+
+public class FakemultiplesecuritiesGetSecurityRequirementObject0
+extends EmptySecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakemultiplesecuritiesGetSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries() |
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md
new file mode 100644
index 00000000000..b642d36e8d5
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.md
@@ -0,0 +1,15 @@
+# FakemultiplesecuritiesGetSecurityRequirementObject1
+FakemultiplesecuritiesGetSecurityRequirementObject1.java
+
+public class FakemultiplesecuritiesGetSecurityRequirementObject1
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakemultiplesecuritiesGetSecurityRequirementObject1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [HttpBasicTest.class](../../../../components/securityschemes/HttpBasicTest.md), List.of() ), new AbstractMap.SimpleEntry, List>( [ApiKey.class](../../../../components/securityschemes/ApiKey.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md
new file mode 100644
index 00000000000..a59e0627a45
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.md
@@ -0,0 +1,15 @@
+# FakemultiplesecuritiesGetSecurityRequirementObject2
+FakemultiplesecuritiesGetSecurityRequirementObject2.java
+
+public class FakemultiplesecuritiesGetSecurityRequirementObject2
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakemultiplesecuritiesGetSecurityRequirementObject2()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md), List.of("write:pets", "read:pets") )) |
diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md
index 70ee8165b1b..47cbe85d783 100644
--- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.md
@@ -4,13 +4,33 @@ FakepetiduploadimagewithrequiredfilePostSecurityInfo.java
public class FakepetiduploadimagewithrequiredfilePostSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.FakepetiduploadimagewithrequiredfilePostSecurityInfo1](#fakepetiduploadimagewithrequiredfilepostsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## FakepetiduploadimagewithrequiredfilePostSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakepetiduploadimagewithrequiredfilePostSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0()](../../../paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md
new file mode 100644
index 00000000000..e2e1adb6ae8
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0
+FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java
+
+public class FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md), List.of("write:pets", "read:pets") )) |
diff --git a/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md b/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md
index 53ce732bda6..bfcbdaed682 100644
--- a/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/pet/post/PetPostSecurityInfo.md
@@ -4,13 +4,33 @@ PetPostSecurityInfo.java
public class PetPostSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [PetPostSecurityInfo.PetPostSecurityInfo1](#petpostsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [PetPostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## PetPostSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetPostSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [PetPostSecurityRequirementObject0()](../../../paths/pet/post/security/PetPostSecurityRequirementObject0.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_1, new [PetPostSecurityRequirementObject1()](../../../paths/pet/post/security/PetPostSecurityRequirementObject1.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_2, new [PetPostSecurityRequirementObject2()](../../../paths/pet/post/security/PetPostSecurityRequirementObject2.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md
new file mode 100644
index 00000000000..34870b66eb6
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# PetPostSecurityRequirementObject0
+PetPostSecurityRequirementObject0.java
+
+public class PetPostSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetPostSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [ApiKey.class](../../../../components/securityschemes/ApiKey.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md
new file mode 100644
index 00000000000..1cb682b7915
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject1.md
@@ -0,0 +1,15 @@
+# PetPostSecurityRequirementObject1
+PetPostSecurityRequirementObject1.java
+
+public class PetPostSecurityRequirementObject1
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetPostSecurityRequirementObject1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md
new file mode 100644
index 00000000000..ccb5edf9c7a
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/pet/post/security/PetPostSecurityRequirementObject2.md
@@ -0,0 +1,15 @@
+# PetPostSecurityRequirementObject2
+PetPostSecurityRequirementObject2.java
+
+public class PetPostSecurityRequirementObject2
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetPostSecurityRequirementObject2()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md), List.of("write:pets", "read:pets") )) |
diff --git a/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md b/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md
index f205847659a..1f13f8174c2 100644
--- a/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/pet/put/PetPutSecurityInfo.md
@@ -4,13 +4,33 @@ PetPutSecurityInfo.java
public class PetPutSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [PetPutSecurityInfo.PetPutSecurityInfo1](#petputsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [PetPutSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## PetPutSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetPutSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [PetPutSecurityRequirementObject0()](../../../paths/pet/put/security/PetPutSecurityRequirementObject0.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_1, new [PetPutSecurityRequirementObject1()](../../../paths/pet/put/security/PetPutSecurityRequirementObject1.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md
new file mode 100644
index 00000000000..23269a709b1
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# PetPutSecurityRequirementObject0
+PetPutSecurityRequirementObject0.java
+
+public class PetPutSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetPutSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md
new file mode 100644
index 00000000000..d57a44d83e2
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/pet/put/security/PetPutSecurityRequirementObject1.md
@@ -0,0 +1,15 @@
+# PetPutSecurityRequirementObject1
+PetPutSecurityRequirementObject1.java
+
+public class PetPutSecurityRequirementObject1
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetPutSecurityRequirementObject1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md), List.of("write:pets", "read:pets") )) |
diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md
index 5643ff88dcd..c3cc586c35b 100644
--- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.md
@@ -4,13 +4,33 @@ PetfindbystatusGetSecurityInfo.java
public class PetfindbystatusGetSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [PetfindbystatusGetSecurityInfo.PetfindbystatusGetSecurityInfo1](#petfindbystatusgetsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [PetfindbystatusGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## PetfindbystatusGetSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetfindbystatusGetSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [PetfindbystatusGetSecurityRequirementObject0()](../../../paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_1, new [PetfindbystatusGetSecurityRequirementObject1()](../../../paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_2, new [PetfindbystatusGetSecurityRequirementObject2()](../../../paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md
new file mode 100644
index 00000000000..a656f810b95
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# PetfindbystatusGetSecurityRequirementObject0
+PetfindbystatusGetSecurityRequirementObject0.java
+
+public class PetfindbystatusGetSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetfindbystatusGetSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [ApiKey.class](../../../../components/securityschemes/ApiKey.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md
new file mode 100644
index 00000000000..d505ac57b5b
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject1.md
@@ -0,0 +1,15 @@
+# PetfindbystatusGetSecurityRequirementObject1
+PetfindbystatusGetSecurityRequirementObject1.java
+
+public class PetfindbystatusGetSecurityRequirementObject1
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetfindbystatusGetSecurityRequirementObject1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md
new file mode 100644
index 00000000000..38f9d7030cc
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/security/PetfindbystatusGetSecurityRequirementObject2.md
@@ -0,0 +1,15 @@
+# PetfindbystatusGetSecurityRequirementObject2
+PetfindbystatusGetSecurityRequirementObject2.java
+
+public class PetfindbystatusGetSecurityRequirementObject2
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetfindbystatusGetSecurityRequirementObject2()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md), List.of("write:pets", "read:pets") )) |
diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md
index d6a06267ead..9d0ab412696 100644
--- a/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/PetfindbytagsGetSecurityInfo.md
@@ -4,13 +4,33 @@ PetfindbytagsGetSecurityInfo.java
public class PetfindbytagsGetSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [PetfindbytagsGetSecurityInfo.PetfindbytagsGetSecurityInfo1](#petfindbytagsgetsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [PetfindbytagsGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## PetfindbytagsGetSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetfindbytagsGetSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [PetfindbytagsGetSecurityRequirementObject0()](../../../paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_1, new [PetfindbytagsGetSecurityRequirementObject1()](../../../paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md
new file mode 100644
index 00000000000..8cec8cbafe3
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# PetfindbytagsGetSecurityRequirementObject0
+PetfindbytagsGetSecurityRequirementObject0.java
+
+public class PetfindbytagsGetSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetfindbytagsGetSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [HttpSignatureTest.class](../../../../components/securityschemes/HttpSignatureTest.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md
new file mode 100644
index 00000000000..003dc335aa8
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/security/PetfindbytagsGetSecurityRequirementObject1.md
@@ -0,0 +1,15 @@
+# PetfindbytagsGetSecurityRequirementObject1
+PetfindbytagsGetSecurityRequirementObject1.java
+
+public class PetfindbytagsGetSecurityRequirementObject1
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetfindbytagsGetSecurityRequirementObject1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md), List.of("write:pets", "read:pets") )) |
diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md
index 5e3d99eae49..78dca588af1 100644
--- a/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PetpetidDeleteSecurityInfo.md
@@ -4,13 +4,33 @@ PetpetidDeleteSecurityInfo.java
public class PetpetidDeleteSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [PetpetidDeleteSecurityInfo.PetpetidDeleteSecurityInfo1](#petpetiddeletesecurityinfo1)
SecurityRequirementObjectProvider
| enum | [PetpetidDeleteSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## PetpetidDeleteSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetidDeleteSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [PetpetidDeleteSecurityRequirementObject0()](../../../paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_1, new [PetpetidDeleteSecurityRequirementObject1()](../../../paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md
new file mode 100644
index 00000000000..1bfbaa536d1
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# PetpetidDeleteSecurityRequirementObject0
+PetpetidDeleteSecurityRequirementObject0.java
+
+public class PetpetidDeleteSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetidDeleteSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [ApiKey.class](../../../../components/securityschemes/ApiKey.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md
new file mode 100644
index 00000000000..70dcf48c967
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petpetid/delete/security/PetpetidDeleteSecurityRequirementObject1.md
@@ -0,0 +1,15 @@
+# PetpetidDeleteSecurityRequirementObject1
+PetpetidDeleteSecurityRequirementObject1.java
+
+public class PetpetidDeleteSecurityRequirementObject1
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetidDeleteSecurityRequirementObject1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md), List.of("write:pets", "read:pets") )) |
diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md
index 3e4b5e29773..f6403d11468 100644
--- a/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/petpetid/get/PetpetidGetSecurityInfo.md
@@ -4,13 +4,33 @@ PetpetidGetSecurityInfo.java
public class PetpetidGetSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [PetpetidGetSecurityInfo.PetpetidGetSecurityInfo1](#petpetidgetsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [PetpetidGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## PetpetidGetSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetidGetSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [PetpetidGetSecurityRequirementObject0()](../../../paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md
new file mode 100644
index 00000000000..6a56d6d61e7
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petpetid/get/security/PetpetidGetSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# PetpetidGetSecurityRequirementObject0
+PetpetidGetSecurityRequirementObject0.java
+
+public class PetpetidGetSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetidGetSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [ApiKey.class](../../../../components/securityschemes/ApiKey.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md
index 1f318aa5452..18f25e685bf 100644
--- a/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/petpetid/post/PetpetidPostSecurityInfo.md
@@ -4,13 +4,33 @@ PetpetidPostSecurityInfo.java
public class PetpetidPostSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [PetpetidPostSecurityInfo.PetpetidPostSecurityInfo1](#petpetidpostsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [PetpetidPostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## PetpetidPostSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetidPostSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [PetpetidPostSecurityRequirementObject0()](../../../paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md),
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_1, new [PetpetidPostSecurityRequirementObject1()](../../../paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md
new file mode 100644
index 00000000000..cd3e742dcd2
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# PetpetidPostSecurityRequirementObject0
+PetpetidPostSecurityRequirementObject0.java
+
+public class PetpetidPostSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetidPostSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [ApiKey.class](../../../../components/securityschemes/ApiKey.md), List.of() )) |
diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md
new file mode 100644
index 00000000000..ad6ba36e84e
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petpetid/post/security/PetpetidPostSecurityRequirementObject1.md
@@ -0,0 +1,15 @@
+# PetpetidPostSecurityRequirementObject1
+PetpetidPostSecurityRequirementObject1.java
+
+public class PetpetidPostSecurityRequirementObject1
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetidPostSecurityRequirementObject1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md), List.of("write:pets", "read:pets") )) |
diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md
index 8f276b7e043..5c45e3b65b1 100644
--- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PetpetiduploadimagePostSecurityInfo.md
@@ -4,13 +4,33 @@ PetpetiduploadimagePostSecurityInfo.java
public class PetpetiduploadimagePostSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [PetpetiduploadimagePostSecurityInfo.PetpetiduploadimagePostSecurityInfo1](#petpetiduploadimagepostsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [PetpetiduploadimagePostSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## PetpetiduploadimagePostSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetiduploadimagePostSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [PetpetiduploadimagePostSecurityRequirementObject0()](../../../paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md
new file mode 100644
index 00000000000..e31f5956998
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/security/PetpetiduploadimagePostSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# PetpetiduploadimagePostSecurityRequirementObject0
+PetpetiduploadimagePostSecurityRequirementObject0.java
+
+public class PetpetiduploadimagePostSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| PetpetiduploadimagePostSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [PetstoreAuth.class](../../../../components/securityschemes/PetstoreAuth.md), List.of("write:pets", "read:pets") )) |
diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md
index 94c41d63d49..eca03625ce0 100644
--- a/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md
+++ b/samples/client/petstore/java/docs/paths/storeinventory/get/StoreinventoryGetSecurityInfo.md
@@ -4,13 +4,33 @@ StoreinventoryGetSecurityInfo.java
public class StoreinventoryGetSecurityInfo
A class that provides a security requirement object, and any needed security info classes
-- an enum class that stores security index values
+- a class that stores a securityIndex and provides a SecurityRequirementsObject
+- an enum class that describes security index values
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | --------------------- |
+| static class | [StoreinventoryGetSecurityInfo.StoreinventoryGetSecurityInfo1](#storeinventorygetsecurityinfo1)
SecurityRequirementObjectProvider
| enum | [StoreinventoryGetSecurityInfo.SecurityIndex](#securityindex)
class that stores a security index |
+## StoreinventoryGetSecurityInfo1
+implements SecurityRequirementObjectProvider<[SecurityIndex](#securityindex)>
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| StoreinventoryGetSecurityInfo1()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| EnumMap | securities = new EnumMap<>(Map.ofEntries(
new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new [StoreinventoryGetSecurityRequirementObject0()](../../../paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md)
)); |
+
+### Method Summary
+| Modifier and Type | Method and Description |
+| ----------------- | ---------------------- |
+| SecurityRequirementObject | getSecurityRequirementObject(@Nullable [SecurityIndex](#securityindex) securityIndex)
If null is input, then the instance's securityIndex will be used |
+
## SecurityIndex
enum SecurityIndex
diff --git a/samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md b/samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md
new file mode 100644
index 00000000000..ae36a11c931
--- /dev/null
+++ b/samples/client/petstore/java/docs/paths/storeinventory/get/security/StoreinventoryGetSecurityRequirementObject0.md
@@ -0,0 +1,15 @@
+# StoreinventoryGetSecurityRequirementObject0
+StoreinventoryGetSecurityRequirementObject0.java
+
+public class StoreinventoryGetSecurityRequirementObject0
+extends SecurityRequirementObject
+
+### Constructor Summary
+| Constructor and Description |
+| --------------------------- |
+| StoreinventoryGetSecurityRequirementObject0()
Creates an instance |
+
+### Field Summary
+| Modifier and Type | Field and Description |
+| ----------------- | --------------------- |
+| Map, List> | securitySchemeToScopes = Map.ofEntries( new AbstractMap.SimpleEntry, List>( [ApiKey.class](../../../../components/securityschemes/ApiKey.md), List.of() )) |
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java
index 368ce8af2f2..9b64de10f0c 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java
@@ -20,6 +20,7 @@
import org.openapijsonschematools.client.paths.petpetid.post.PetpetidPostSecurityInfo;
import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo;
import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo;
+import org.openapijsonschematools.client.securityschemes.SecurityScheme;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.time.Duration;
@@ -31,32 +32,26 @@
public class ApiConfiguration {
private final ServerInfo serverInfo;
private final SecurityInfo securityInfo;
+ private final SecurityIndexInfo securityIndexInfo;
private final @Nullable Duration timeout;
+ private final Map, SecurityScheme> securitySchemeInfo;
public ApiConfiguration() {
serverInfo = new ServerInfo();
- securityInfo = new SecurityInfo(
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null
- );
+ securityInfo = new SecurityInfo();
+ securityIndexInfo = new SecurityIndexInfo();
+ securitySchemeInfo = new HashMap<>();
timeout = null;
}
- public ApiConfiguration(ServerInfo serverInfo, SecurityInfo securityInfo, Duration timeout) {
+ public ApiConfiguration(ServerInfo serverInfo, SecurityIndexInfo securityIndexInfo, List securitySchemes, Duration timeout) {
this.serverInfo = serverInfo;
- this.securityInfo = securityInfo;
+ this.securityInfo = new SecurityInfo();
+ this.securityIndexInfo = securityIndexInfo;
+ securitySchemeInfo = new HashMap<>();
+ for (SecurityScheme securityScheme: securitySchemes) {
+ securitySchemeInfo.put(securityScheme.getClass(), securityScheme);
+ }
this.timeout = timeout;
}
@@ -93,153 +88,291 @@ public Server getServer(PetfindbystatusServerInfo. @Nullable ServerIndex serverI
}
public static class SecurityInfo {
- protected final @Nullable FakeDeleteSecurityInfo fakeDeleteSecurityInfo;
- protected final @Nullable FakePostSecurityInfo fakePostSecurityInfo;
- protected final @Nullable FakemultiplesecuritiesGetSecurityInfo fakemultiplesecuritiesGetSecurityInfo;
- protected final @Nullable FakepetiduploadimagewithrequiredfilePostSecurityInfo fakepetiduploadimagewithrequiredfilePostSecurityInfo;
- protected final @Nullable FakeclassnametestPatchSecurityInfo fakeclassnametestPatchSecurityInfo;
- protected final @Nullable PetPostSecurityInfo petPostSecurityInfo;
- protected final @Nullable PetPutSecurityInfo petPutSecurityInfo;
- protected final @Nullable PetfindbystatusGetSecurityInfo petfindbystatusGetSecurityInfo;
- protected final @Nullable PetfindbytagsGetSecurityInfo petfindbytagsGetSecurityInfo;
- protected final @Nullable PetpetidDeleteSecurityInfo petpetidDeleteSecurityInfo;
- protected final @Nullable PetpetidGetSecurityInfo petpetidGetSecurityInfo;
- protected final @Nullable PetpetidPostSecurityInfo petpetidPostSecurityInfo;
- protected final @Nullable PetpetiduploadimagePostSecurityInfo petpetiduploadimagePostSecurityInfo;
- protected final @Nullable StoreinventoryGetSecurityInfo storeinventoryGetSecurityInfo;
-
- public SecurityInfo(
- @Nullable FakeDeleteSecurityInfo fakeDeleteSecurityInfo,
- @Nullable FakePostSecurityInfo fakePostSecurityInfo,
- @Nullable FakemultiplesecuritiesGetSecurityInfo fakemultiplesecuritiesGetSecurityInfo,
- @Nullable FakepetiduploadimagewithrequiredfilePostSecurityInfo fakepetiduploadimagewithrequiredfilePostSecurityInfo,
- @Nullable FakeclassnametestPatchSecurityInfo fakeclassnametestPatchSecurityInfo,
- @Nullable PetPostSecurityInfo petPostSecurityInfo,
- @Nullable PetPutSecurityInfo petPutSecurityInfo,
- @Nullable PetfindbystatusGetSecurityInfo petfindbystatusGetSecurityInfo,
- @Nullable PetfindbytagsGetSecurityInfo petfindbytagsGetSecurityInfo,
- @Nullable PetpetidDeleteSecurityInfo petpetidDeleteSecurityInfo,
- @Nullable PetpetidGetSecurityInfo petpetidGetSecurityInfo,
- @Nullable PetpetidPostSecurityInfo petpetidPostSecurityInfo,
- @Nullable PetpetiduploadimagePostSecurityInfo petpetiduploadimagePostSecurityInfo,
- @Nullable StoreinventoryGetSecurityInfo storeinventoryGetSecurityInfo
- ) {
- this.fakeDeleteSecurityInfo = fakeDeleteSecurityInfo;
- this.fakePostSecurityInfo = fakePostSecurityInfo;
- this.fakemultiplesecuritiesGetSecurityInfo = fakemultiplesecuritiesGetSecurityInfo;
- this.fakepetiduploadimagewithrequiredfilePostSecurityInfo = fakepetiduploadimagewithrequiredfilePostSecurityInfo;
- this.fakeclassnametestPatchSecurityInfo = fakeclassnametestPatchSecurityInfo;
- this.petPostSecurityInfo = petPostSecurityInfo;
- this.petPutSecurityInfo = petPutSecurityInfo;
- this.petfindbystatusGetSecurityInfo = petfindbystatusGetSecurityInfo;
- this.petfindbytagsGetSecurityInfo = petfindbytagsGetSecurityInfo;
- this.petpetidDeleteSecurityInfo = petpetidDeleteSecurityInfo;
- this.petpetidGetSecurityInfo = petpetidGetSecurityInfo;
- this.petpetidPostSecurityInfo = petpetidPostSecurityInfo;
- this.petpetiduploadimagePostSecurityInfo = petpetiduploadimagePostSecurityInfo;
- this.storeinventoryGetSecurityInfo = storeinventoryGetSecurityInfo;
+ protected final FakeDeleteSecurityInfo.FakeDeleteSecurityInfo1 fakeDeleteSecurityInfo;
+ protected final FakePostSecurityInfo.FakePostSecurityInfo1 fakePostSecurityInfo;
+ protected final FakemultiplesecuritiesGetSecurityInfo.FakemultiplesecuritiesGetSecurityInfo1 fakemultiplesecuritiesGetSecurityInfo;
+ protected final FakepetiduploadimagewithrequiredfilePostSecurityInfo.FakepetiduploadimagewithrequiredfilePostSecurityInfo1 fakepetiduploadimagewithrequiredfilePostSecurityInfo;
+ protected final FakeclassnametestPatchSecurityInfo.FakeclassnametestPatchSecurityInfo1 fakeclassnametestPatchSecurityInfo;
+ protected final PetPostSecurityInfo.PetPostSecurityInfo1 petPostSecurityInfo;
+ protected final PetPutSecurityInfo.PetPutSecurityInfo1 petPutSecurityInfo;
+ protected final PetfindbystatusGetSecurityInfo.PetfindbystatusGetSecurityInfo1 petfindbystatusGetSecurityInfo;
+ protected final PetfindbytagsGetSecurityInfo.PetfindbytagsGetSecurityInfo1 petfindbytagsGetSecurityInfo;
+ protected final PetpetidDeleteSecurityInfo.PetpetidDeleteSecurityInfo1 petpetidDeleteSecurityInfo;
+ protected final PetpetidGetSecurityInfo.PetpetidGetSecurityInfo1 petpetidGetSecurityInfo;
+ protected final PetpetidPostSecurityInfo.PetpetidPostSecurityInfo1 petpetidPostSecurityInfo;
+ protected final PetpetiduploadimagePostSecurityInfo.PetpetiduploadimagePostSecurityInfo1 petpetiduploadimagePostSecurityInfo;
+ protected final StoreinventoryGetSecurityInfo.StoreinventoryGetSecurityInfo1 storeinventoryGetSecurityInfo;
+
+ public SecurityInfo() {
+ this.fakeDeleteSecurityInfo = new FakeDeleteSecurityInfo.FakeDeleteSecurityInfo1();
+ this.fakePostSecurityInfo = new FakePostSecurityInfo.FakePostSecurityInfo1();
+ this.fakemultiplesecuritiesGetSecurityInfo = new FakemultiplesecuritiesGetSecurityInfo.FakemultiplesecuritiesGetSecurityInfo1();
+ this.fakepetiduploadimagewithrequiredfilePostSecurityInfo = new FakepetiduploadimagewithrequiredfilePostSecurityInfo.FakepetiduploadimagewithrequiredfilePostSecurityInfo1();
+ this.fakeclassnametestPatchSecurityInfo = new FakeclassnametestPatchSecurityInfo.FakeclassnametestPatchSecurityInfo1();
+ this.petPostSecurityInfo = new PetPostSecurityInfo.PetPostSecurityInfo1();
+ this.petPutSecurityInfo = new PetPutSecurityInfo.PetPutSecurityInfo1();
+ this.petfindbystatusGetSecurityInfo = new PetfindbystatusGetSecurityInfo.PetfindbystatusGetSecurityInfo1();
+ this.petfindbytagsGetSecurityInfo = new PetfindbytagsGetSecurityInfo.PetfindbytagsGetSecurityInfo1();
+ this.petpetidDeleteSecurityInfo = new PetpetidDeleteSecurityInfo.PetpetidDeleteSecurityInfo1();
+ this.petpetidGetSecurityInfo = new PetpetidGetSecurityInfo.PetpetidGetSecurityInfo1();
+ this.petpetidPostSecurityInfo = new PetpetidPostSecurityInfo.PetpetidPostSecurityInfo1();
+ this.petpetiduploadimagePostSecurityInfo = new PetpetiduploadimagePostSecurityInfo.PetpetiduploadimagePostSecurityInfo1();
+ this.storeinventoryGetSecurityInfo = new StoreinventoryGetSecurityInfo.StoreinventoryGetSecurityInfo1();
+ }
+ }
+
+ public static class SecurityIndexInfo {
+ protected FakeDeleteSecurityInfo. @Nullable SecurityIndex fakeDeleteSecurityInfoSecurityIndex;
+ protected FakePostSecurityInfo. @Nullable SecurityIndex fakePostSecurityInfoSecurityIndex;
+ protected FakemultiplesecuritiesGetSecurityInfo. @Nullable SecurityIndex fakemultiplesecuritiesGetSecurityInfoSecurityIndex;
+ protected FakepetiduploadimagewithrequiredfilePostSecurityInfo. @Nullable SecurityIndex fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex;
+ protected FakeclassnametestPatchSecurityInfo. @Nullable SecurityIndex fakeclassnametestPatchSecurityInfoSecurityIndex;
+ protected PetPostSecurityInfo. @Nullable SecurityIndex petPostSecurityInfoSecurityIndex;
+ protected PetPutSecurityInfo. @Nullable SecurityIndex petPutSecurityInfoSecurityIndex;
+ protected PetfindbystatusGetSecurityInfo. @Nullable SecurityIndex petfindbystatusGetSecurityInfoSecurityIndex;
+ protected PetfindbytagsGetSecurityInfo. @Nullable SecurityIndex petfindbytagsGetSecurityInfoSecurityIndex;
+ protected PetpetidDeleteSecurityInfo. @Nullable SecurityIndex petpetidDeleteSecurityInfoSecurityIndex;
+ protected PetpetidGetSecurityInfo. @Nullable SecurityIndex petpetidGetSecurityInfoSecurityIndex;
+ protected PetpetidPostSecurityInfo. @Nullable SecurityIndex petpetidPostSecurityInfoSecurityIndex;
+ protected PetpetiduploadimagePostSecurityInfo. @Nullable SecurityIndex petpetiduploadimagePostSecurityInfoSecurityIndex;
+ protected StoreinventoryGetSecurityInfo. @Nullable SecurityIndex storeinventoryGetSecurityInfoSecurityIndex;
+
+ public SecurityIndexInfo() {}
+
+ public SecurityIndexInfo fakeDeleteSecurityInfoSecurityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) {
+ this.fakeDeleteSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo fakePostSecurityInfoSecurityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) {
+ this.fakePostSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo fakemultiplesecuritiesGetSecurityInfoSecurityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex securityIndex) {
+ this.fakemultiplesecuritiesGetSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex securityIndex) {
+ this.fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo fakeclassnametestPatchSecurityInfoSecurityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securityIndex) {
+ this.fakeclassnametestPatchSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo petPostSecurityInfoSecurityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) {
+ this.petPostSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo petPutSecurityInfoSecurityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) {
+ this.petPutSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo petfindbystatusGetSecurityInfoSecurityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityIndex) {
+ this.petfindbystatusGetSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo petfindbytagsGetSecurityInfoSecurityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex) {
+ this.petfindbytagsGetSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo petpetidDeleteSecurityInfoSecurityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) {
+ this.petpetidDeleteSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo petpetidGetSecurityInfoSecurityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) {
+ this.petpetidGetSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo petpetidPostSecurityInfoSecurityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) {
+ this.petpetidPostSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo petpetiduploadimagePostSecurityInfoSecurityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securityIndex) {
+ this.petpetiduploadimagePostSecurityInfoSecurityIndex = securityIndex;
+ return this;
+ }
+
+ public SecurityIndexInfo storeinventoryGetSecurityInfoSecurityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityIndex) {
+ this.storeinventoryGetSecurityInfoSecurityIndex = securityIndex;
+ return this;
}
}
public SecurityRequirementObject getSecurityRequirementObject(FakeDeleteSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.fakeDeleteSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the FakeDeleteSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ FakeDeleteSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakeDeleteSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("fakeDeleteSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(FakePostSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.fakePostSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the FakePostSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ FakePostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakePostSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("fakePostSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(FakemultiplesecuritiesGetSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.fakemultiplesecuritiesGetSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the FakemultiplesecuritiesGetSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ FakemultiplesecuritiesGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakemultiplesecuritiesGetSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("fakemultiplesecuritiesGetSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(FakepetiduploadimagewithrequiredfilePostSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.fakepetiduploadimagewithrequiredfilePostSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the FakepetiduploadimagewithrequiredfilePostSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ FakepetiduploadimagewithrequiredfilePostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(FakeclassnametestPatchSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.fakeclassnametestPatchSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the FakeclassnametestPatchSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ FakeclassnametestPatchSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakeclassnametestPatchSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("fakeclassnametestPatchSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(PetPostSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.petPostSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the PetPostSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ PetPostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petPostSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("petPostSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(PetPutSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.petPutSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the PetPutSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ PetPutSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petPutSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("petPutSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(PetfindbystatusGetSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.petfindbystatusGetSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the PetfindbystatusGetSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ PetfindbystatusGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petfindbystatusGetSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("petfindbystatusGetSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(PetfindbytagsGetSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.petfindbytagsGetSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the PetfindbytagsGetSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ PetfindbytagsGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petfindbytagsGetSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("petfindbytagsGetSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(PetpetidDeleteSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.petpetidDeleteSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the PetpetidDeleteSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ PetpetidDeleteSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petpetidDeleteSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("petpetidDeleteSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(PetpetidGetSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.petpetidGetSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the PetpetidGetSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ PetpetidGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petpetidGetSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("petpetidGetSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(PetpetidPostSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.petpetidPostSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the PetpetidPostSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ PetpetidPostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petpetidPostSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("petpetidPostSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(PetpetiduploadimagePostSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.petpetiduploadimagePostSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the PetpetiduploadimagePostSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ PetpetiduploadimagePostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petpetiduploadimagePostSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("petpetiduploadimagePostSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
public SecurityRequirementObject getSecurityRequirementObject(StoreinventoryGetSecurityInfo. @Nullable SecurityIndex securityIndex) throws UnsetPropertyException {
var securityInfoInstance = securityInfo.storeinventoryGetSecurityInfo;
- if (securityInfoInstance == null) {
- throw new UnsetPropertyException("SecurityRequirementObject cannot be returned because the StoreinventoryGetSecurityInfo is unset in the SecurityInfo class. Pass it in when instantiating SecurityInfo to fix this.");
+ if (securityIndex == null) {
+ StoreinventoryGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.storeinventoryGetSecurityInfoSecurityIndex;
+ if (configSecurityIndex == null) {
+ throw new UnsetPropertyException("storeinventoryGetSecurityInfoSecurityIndex is unset");
+ }
+ return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex);
}
return securityInfoInstance.getSecurityRequirementObject(securityIndex);
}
+ public SecurityScheme getSecurityScheme(Class extends SecurityScheme> securitySchemeClass) {
+ @Nullable SecurityScheme securityScheme = securitySchemeInfo.get(securitySchemeClass);
+ if (securityScheme == null) {
+ throw new RuntimeException("SecurityScheme of class " + securitySchemeClass + "cannot be returned because it is unset. Pass in an instance of it in securitySchemes when instantiating ApiConfiguration.");
+ }
+ return securityScheme;
+ }
+
public Map> getDefaultHeaders() {
return new HashMap<>();
}
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java
index f78302365aa..06270fdd0cc 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Delete.java
@@ -49,7 +49,8 @@ public static Responses.EndpointResponse delete(
Fake.path,
method,
bodyPublisher,
- queryMap
+ queryMap,
+ apiConfiguration
);
String url = host + Fake.path;
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java
index 752dbde41af..5a370e1d851 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/Post.java
@@ -54,7 +54,8 @@ public static Responses.EndpointResponse post(
Fake.path,
method,
bodyPublisher,
- queryMap
+ queryMap,
+ apiConfiguration
);
String url = host + Fake.path;
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java
index 4af8214fd64..143eff49895 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/FakeDeleteSecurityInfo.java
@@ -1,81 +1,29 @@
package org.openapijsonschematools.client.paths.fake.delete;
-import org.openapijsonschematools.client.exceptions.UnsetPropertyException;
import org.openapijsonschematools.client.paths.fake.delete.security.FakeDeleteSecurityRequirementObject0;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider;
-import org.openapijsonschematools.client.schemas.GenericBuilder;
-import org.checkerframework.checker.nullness.qual.Nullable;
-import java.util.HashMap;
+import java.util.AbstractMap;
import java.util.Map;
import java.util.EnumMap;
-public class FakeDeleteSecurityInfo implements SecurityRequirementObjectProvider {
- final private Securities securities;
- final private SecurityIndex securityIndex;
+public class FakeDeleteSecurityInfo {
+ public static class FakeDeleteSecurityInfo1 implements SecurityRequirementObjectProvider {
+ final public EnumMap securities;
- public FakeDeleteSecurityInfo(Securities securities, SecurityIndex securityIndex) {
- this.securities = securities;
- this.securityIndex = securityIndex;
- }
-
- public interface SetterForFakeDeleteSecurityRequirementObject0 {
- Map getInstance();
- T getBuilderAfterFakeDeleteSecurityRequirementObject0(Map instance);
- default T fakeDeleteSecurityRequirementObject0(FakeDeleteSecurityRequirementObject0 security0) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_0, security0);
- return getBuilderAfterFakeDeleteSecurityRequirementObject0(instance);
- }
- }
-
- public static class Securities0Builder implements GenericBuilder {
- private final Map instance;
- public Securities0Builder(Map instance) {
- this.instance = instance;
- }
- public Securities build() {
- return new Securities(instance);
- }
- }
-
- public static class SecuritiesBuilder implements SetterForFakeDeleteSecurityRequirementObject0 {
- private final Map instance;
- public SecuritiesBuilder() {
- this.instance = new HashMap<>();
+ public FakeDeleteSecurityInfo1() {
+ this.securities = new EnumMap<>(Map.ofEntries(
+ new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new FakeDeleteSecurityRequirementObject0())
+ ));
}
- public Map getInstance() {
- return instance;
- }
- public Securities0Builder getBuilderAfterFakeDeleteSecurityRequirementObject0(Map instance) {
- return new Securities0Builder(instance);
- }
- }
- public static class Securities {
- private final EnumMap securities;
-
- Securities(Map securityMap) {
- securities = new EnumMap<>(securityMap);
- }
-
- public SecurityRequirementObject get(SecurityIndex securityIndex) {
- if (securities.containsKey(securityIndex)) {
- return get(securityIndex);
- }
- throw new UnsetPropertyException(securityIndex+" is unset");
+ public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) {
+ return securities.get(securityIndex);
}
}
public enum SecurityIndex {
SECURITY_0
}
-
- public SecurityRequirementObject getSecurityRequirementObject(@Nullable SecurityIndex securityIndex) {
- if (securityIndex == null) {
- return securities.get(this.securityIndex);
- }
- return securities.get(securityIndex);
- }
}
\ No newline at end of file
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java
index 65df1713556..a615af7f968 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/security/FakeDeleteSecurityRequirementObject0.java
@@ -11,13 +11,11 @@
public class FakeDeleteSecurityRequirementObject0 extends SecurityRequirementObject {
- public FakeDeleteSecurityRequirementObject0(
- BearerTest securityScheme0
- ) {
+ public FakeDeleteSecurityRequirementObject0() {
super(
Map.ofEntries(
- new AbstractMap.SimpleEntry>(
- securityScheme0,
+ new AbstractMap.SimpleEntry, List>(
+ BearerTest.class,
List.of()
)
)
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java
index d24bb81c122..feaf2d3706d 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/FakePostSecurityInfo.java
@@ -1,81 +1,29 @@
package org.openapijsonschematools.client.paths.fake.post;
-import org.openapijsonschematools.client.exceptions.UnsetPropertyException;
import org.openapijsonschematools.client.paths.fake.post.security.FakePostSecurityRequirementObject0;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider;
-import org.openapijsonschematools.client.schemas.GenericBuilder;
-import org.checkerframework.checker.nullness.qual.Nullable;
-import java.util.HashMap;
+import java.util.AbstractMap;
import java.util.Map;
import java.util.EnumMap;
-public class FakePostSecurityInfo implements SecurityRequirementObjectProvider {
- final private Securities securities;
- final private SecurityIndex securityIndex;
+public class FakePostSecurityInfo {
+ public static class FakePostSecurityInfo1 implements SecurityRequirementObjectProvider {
+ final public EnumMap securities;
- public FakePostSecurityInfo(Securities securities, SecurityIndex securityIndex) {
- this.securities = securities;
- this.securityIndex = securityIndex;
- }
-
- public interface SetterForFakePostSecurityRequirementObject0 {
- Map getInstance();
- T getBuilderAfterFakePostSecurityRequirementObject0(Map instance);
- default T fakePostSecurityRequirementObject0(FakePostSecurityRequirementObject0 security0) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_0, security0);
- return getBuilderAfterFakePostSecurityRequirementObject0(instance);
- }
- }
-
- public static class Securities0Builder implements GenericBuilder {
- private final Map instance;
- public Securities0Builder(Map instance) {
- this.instance = instance;
- }
- public Securities build() {
- return new Securities(instance);
- }
- }
-
- public static class SecuritiesBuilder implements SetterForFakePostSecurityRequirementObject0 {
- private final Map instance;
- public SecuritiesBuilder() {
- this.instance = new HashMap<>();
+ public FakePostSecurityInfo1() {
+ this.securities = new EnumMap<>(Map.ofEntries(
+ new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new FakePostSecurityRequirementObject0())
+ ));
}
- public Map getInstance() {
- return instance;
- }
- public Securities0Builder getBuilderAfterFakePostSecurityRequirementObject0(Map instance) {
- return new Securities0Builder(instance);
- }
- }
- public static class Securities {
- private final EnumMap securities;
-
- Securities(Map securityMap) {
- securities = new EnumMap<>(securityMap);
- }
-
- public SecurityRequirementObject get(SecurityIndex securityIndex) {
- if (securities.containsKey(securityIndex)) {
- return get(securityIndex);
- }
- throw new UnsetPropertyException(securityIndex+" is unset");
+ public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) {
+ return securities.get(securityIndex);
}
}
public enum SecurityIndex {
SECURITY_0
}
-
- public SecurityRequirementObject getSecurityRequirementObject(@Nullable SecurityIndex securityIndex) {
- if (securityIndex == null) {
- return securities.get(this.securityIndex);
- }
- return securities.get(securityIndex);
- }
}
\ No newline at end of file
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java
index e23352dfc38..b1305742ad4 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/security/FakePostSecurityRequirementObject0.java
@@ -11,13 +11,11 @@
public class FakePostSecurityRequirementObject0 extends SecurityRequirementObject {
- public FakePostSecurityRequirementObject0(
- HttpBasicTest securityScheme0
- ) {
+ public FakePostSecurityRequirementObject0() {
super(
Map.ofEntries(
- new AbstractMap.SimpleEntry>(
- securityScheme0,
+ new AbstractMap.SimpleEntry, List>(
+ HttpBasicTest.class,
List.of()
)
)
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java
index 3662a57b64e..f718be09069 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/Patch.java
@@ -50,7 +50,8 @@ public static Responses.EndpointResponse patch(
Fakeclassnametest.path,
method,
bodyPublisher,
- queryMap
+ queryMap,
+ apiConfiguration
);
String url = host + Fakeclassnametest.path;
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java
index d3dbb03abd3..3d2274ab9ac 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/FakeclassnametestPatchSecurityInfo.java
@@ -1,81 +1,29 @@
package org.openapijsonschematools.client.paths.fakeclassnametest.patch;
-import org.openapijsonschematools.client.exceptions.UnsetPropertyException;
import org.openapijsonschematools.client.paths.fakeclassnametest.patch.security.FakeclassnametestPatchSecurityRequirementObject0;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider;
-import org.openapijsonschematools.client.schemas.GenericBuilder;
-import org.checkerframework.checker.nullness.qual.Nullable;
-import java.util.HashMap;
+import java.util.AbstractMap;
import java.util.Map;
import java.util.EnumMap;
-public class FakeclassnametestPatchSecurityInfo implements SecurityRequirementObjectProvider {
- final private Securities securities;
- final private SecurityIndex securityIndex;
+public class FakeclassnametestPatchSecurityInfo {
+ public static class FakeclassnametestPatchSecurityInfo1 implements SecurityRequirementObjectProvider {
+ final public EnumMap securities;
- public FakeclassnametestPatchSecurityInfo(Securities securities, SecurityIndex securityIndex) {
- this.securities = securities;
- this.securityIndex = securityIndex;
- }
-
- public interface SetterForFakeclassnametestPatchSecurityRequirementObject0 {
- Map getInstance();
- T getBuilderAfterFakeclassnametestPatchSecurityRequirementObject0(Map instance);
- default T fakeclassnametestPatchSecurityRequirementObject0(FakeclassnametestPatchSecurityRequirementObject0 security0) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_0, security0);
- return getBuilderAfterFakeclassnametestPatchSecurityRequirementObject0(instance);
- }
- }
-
- public static class Securities0Builder implements GenericBuilder {
- private final Map instance;
- public Securities0Builder(Map instance) {
- this.instance = instance;
- }
- public Securities build() {
- return new Securities(instance);
- }
- }
-
- public static class SecuritiesBuilder implements SetterForFakeclassnametestPatchSecurityRequirementObject0 {
- private final Map instance;
- public SecuritiesBuilder() {
- this.instance = new HashMap<>();
+ public FakeclassnametestPatchSecurityInfo1() {
+ this.securities = new EnumMap<>(Map.ofEntries(
+ new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new FakeclassnametestPatchSecurityRequirementObject0())
+ ));
}
- public Map getInstance() {
- return instance;
- }
- public Securities0Builder getBuilderAfterFakeclassnametestPatchSecurityRequirementObject0(Map instance) {
- return new Securities0Builder(instance);
- }
- }
- public static class Securities {
- private final EnumMap securities;
-
- Securities(Map securityMap) {
- securities = new EnumMap<>(securityMap);
- }
-
- public SecurityRequirementObject get(SecurityIndex securityIndex) {
- if (securities.containsKey(securityIndex)) {
- return get(securityIndex);
- }
- throw new UnsetPropertyException(securityIndex+" is unset");
+ public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) {
+ return securities.get(securityIndex);
}
}
public enum SecurityIndex {
SECURITY_0
}
-
- public SecurityRequirementObject getSecurityRequirementObject(@Nullable SecurityIndex securityIndex) {
- if (securityIndex == null) {
- return securities.get(this.securityIndex);
- }
- return securities.get(securityIndex);
- }
}
\ No newline at end of file
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java
index 7ea4338462f..6b61b1b9a00 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeclassnametest/patch/security/FakeclassnametestPatchSecurityRequirementObject0.java
@@ -11,13 +11,11 @@
public class FakeclassnametestPatchSecurityRequirementObject0 extends SecurityRequirementObject {
- public FakeclassnametestPatchSecurityRequirementObject0(
- ApiKeyQuery securityScheme0
- ) {
+ public FakeclassnametestPatchSecurityRequirementObject0() {
super(
Map.ofEntries(
- new AbstractMap.SimpleEntry>(
- securityScheme0,
+ new AbstractMap.SimpleEntry, List>(
+ ApiKeyQuery.class,
List.of()
)
)
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java
index 163069e7d8b..b8228e447f7 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/Get.java
@@ -41,7 +41,8 @@ public static Responses.EndpointResponse get(
Fakemultiplesecurities.path,
method,
bodyPublisher,
- queryMap
+ queryMap,
+ apiConfiguration
);
String url = host + Fakemultiplesecurities.path;
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java
index 477a06e5f7b..0a641952eca 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java
@@ -1,145 +1,29 @@
package org.openapijsonschematools.client.paths.fakemultiplesecurities.get;
-import org.openapijsonschematools.client.exceptions.UnsetPropertyException;
import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security.FakemultiplesecuritiesGetSecurityRequirementObject0;
import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security.FakemultiplesecuritiesGetSecurityRequirementObject1;
import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.security.FakemultiplesecuritiesGetSecurityRequirementObject2;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider;
-import org.openapijsonschematools.client.schemas.GenericBuilder;
-import org.checkerframework.checker.nullness.qual.Nullable;
-import java.util.HashMap;
+import java.util.AbstractMap;
import java.util.Map;
import java.util.EnumMap;
-public class FakemultiplesecuritiesGetSecurityInfo implements SecurityRequirementObjectProvider {
- final private Securities securities;
- final private SecurityIndex securityIndex;
+public class FakemultiplesecuritiesGetSecurityInfo {
+ public static class FakemultiplesecuritiesGetSecurityInfo1 implements SecurityRequirementObjectProvider {
+ final public EnumMap securities;
- public FakemultiplesecuritiesGetSecurityInfo(Securities securities, SecurityIndex securityIndex) {
- this.securities = securities;
- this.securityIndex = securityIndex;
- }
-
- public interface SetterForFakemultiplesecuritiesGetSecurityRequirementObject0 {
- Map getInstance();
- T getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject0(Map instance);
- default T fakemultiplesecuritiesGetSecurityRequirementObject0(FakemultiplesecuritiesGetSecurityRequirementObject0 security0) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_0, security0);
- return getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject0(instance);
- }
- }
-
- public interface SetterForFakemultiplesecuritiesGetSecurityRequirementObject1 {
- Map getInstance();
- T getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject1(Map instance);
- default T fakemultiplesecuritiesGetSecurityRequirementObject1(FakemultiplesecuritiesGetSecurityRequirementObject1 security1) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_1, security1);
- return getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject1(instance);
- }
- }
-
- public interface SetterForFakemultiplesecuritiesGetSecurityRequirementObject2 {
- Map getInstance();
- T getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject2(Map instance);
- default T fakemultiplesecuritiesGetSecurityRequirementObject2(FakemultiplesecuritiesGetSecurityRequirementObject2 security2) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_2, security2);
- return getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject2(instance);
- }
- }
-
- public static class Securities011Builder implements GenericBuilder, SetterForFakemultiplesecuritiesGetSecurityRequirementObject1, SetterForFakemultiplesecuritiesGetSecurityRequirementObject2 {
- private final Map instance;
- public Securities011Builder(Map instance) {
- this.instance = instance;
+ public FakemultiplesecuritiesGetSecurityInfo1() {
+ this.securities = new EnumMap<>(Map.ofEntries(
+ new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new FakemultiplesecuritiesGetSecurityRequirementObject0()),
+ new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_1, new FakemultiplesecuritiesGetSecurityRequirementObject1()),
+ new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_2, new FakemultiplesecuritiesGetSecurityRequirementObject2())
+ ));
}
- public Securities build() {
- return new Securities(instance);
- }
- public Map getInstance() {
- return instance;
- }
- public Securities011Builder getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject1(Map instance) {
- return this;
- }
- public Securities011Builder getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject2(Map instance) {
- return this;
- }
- }
- public static class Securities101Builder implements GenericBuilder, SetterForFakemultiplesecuritiesGetSecurityRequirementObject0, SetterForFakemultiplesecuritiesGetSecurityRequirementObject2 {
- private final Map instance;
- public Securities101Builder(Map instance) {
- this.instance = instance;
- }
- public Securities build() {
- return new Securities(instance);
- }
- public Map getInstance() {
- return instance;
- }
- public Securities101Builder getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject0(Map instance) {
- return this;
- }
- public Securities101Builder getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject2(Map instance) {
- return this;
- }
- }
-
- public static class Securities110Builder implements GenericBuilder, SetterForFakemultiplesecuritiesGetSecurityRequirementObject0, SetterForFakemultiplesecuritiesGetSecurityRequirementObject1 {
- private final Map instance;
- public Securities110Builder(Map instance) {
- this.instance = instance;
- }
- public Securities build() {
- return new Securities(instance);
- }
- public Map getInstance() {
- return instance;
- }
- public Securities110Builder getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject0(Map instance) {
- return this;
- }
- public Securities110Builder getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject1(Map instance) {
- return this;
- }
- }
-
- public static class SecuritiesBuilder implements SetterForFakemultiplesecuritiesGetSecurityRequirementObject0, SetterForFakemultiplesecuritiesGetSecurityRequirementObject1, SetterForFakemultiplesecuritiesGetSecurityRequirementObject2 {
- private final Map instance;
- public SecuritiesBuilder() {
- this.instance = new HashMap<>();
- }
- public Map getInstance() {
- return instance;
- }
- public Securities011Builder getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject0(Map instance) {
- return new Securities011Builder(instance);
- }
- public Securities101Builder getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject1(Map instance) {
- return new Securities101Builder(instance);
- }
- public Securities110Builder getBuilderAfterFakemultiplesecuritiesGetSecurityRequirementObject2(Map instance) {
- return new Securities110Builder(instance);
- }
- }
-
- public static class Securities {
- private final EnumMap securities;
-
- Securities(Map securityMap) {
- securities = new EnumMap<>(securityMap);
- }
-
- public SecurityRequirementObject get(SecurityIndex securityIndex) {
- if (securities.containsKey(securityIndex)) {
- return get(securityIndex);
- }
- throw new UnsetPropertyException(securityIndex+" is unset");
+ public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) {
+ return securities.get(securityIndex);
}
}
@@ -148,11 +32,4 @@ public enum SecurityIndex {
SECURITY_1,
SECURITY_2
}
-
- public SecurityRequirementObject getSecurityRequirementObject(@Nullable SecurityIndex securityIndex) {
- if (securityIndex == null) {
- return securities.get(this.securityIndex);
- }
- return securities.get(securityIndex);
- }
}
\ No newline at end of file
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java
index 2b33f55bb18..4b2a7c9737a 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject1.java
@@ -12,18 +12,15 @@
public class FakemultiplesecuritiesGetSecurityRequirementObject1 extends SecurityRequirementObject {
- public FakemultiplesecuritiesGetSecurityRequirementObject1(
- HttpBasicTest securityScheme0,
- ApiKey securityScheme1
- ) {
+ public FakemultiplesecuritiesGetSecurityRequirementObject1() {
super(
Map.ofEntries(
- new AbstractMap.SimpleEntry>(
- securityScheme0,
+ new AbstractMap.SimpleEntry, List>(
+ HttpBasicTest.class,
List.of()
),
- new AbstractMap.SimpleEntry>(
- securityScheme1,
+ new AbstractMap.SimpleEntry, List>(
+ ApiKey.class,
List.of()
)
)
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java
index 7089b54db06..b59a0f9bb32 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/security/FakemultiplesecuritiesGetSecurityRequirementObject2.java
@@ -11,13 +11,11 @@
public class FakemultiplesecuritiesGetSecurityRequirementObject2 extends SecurityRequirementObject {
- public FakemultiplesecuritiesGetSecurityRequirementObject2(
- PetstoreAuth securityScheme0
- ) {
+ public FakemultiplesecuritiesGetSecurityRequirementObject2() {
super(
Map.ofEntries(
- new AbstractMap.SimpleEntry>(
- securityScheme0,
+ new AbstractMap.SimpleEntry, List>(
+ PetstoreAuth.class,
List.of("write:pets", "read:pets")
)
)
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java
index 84a6ac4eca7..9b74bbfdf80 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/Post.java
@@ -59,7 +59,8 @@ public static Responses.EndpointResponse post(
updatedPath,
method,
bodyPublisher,
- queryMap
+ queryMap,
+ apiConfiguration
);
String url = host + updatedPath;
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java
index b21e776ae12..c06bb045cf8 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/FakepetiduploadimagewithrequiredfilePostSecurityInfo.java
@@ -1,81 +1,29 @@
package org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post;
-import org.openapijsonschematools.client.exceptions.UnsetPropertyException;
import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.security.FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider;
-import org.openapijsonschematools.client.schemas.GenericBuilder;
-import org.checkerframework.checker.nullness.qual.Nullable;
-import java.util.HashMap;
+import java.util.AbstractMap;
import java.util.Map;
import java.util.EnumMap;
-public class FakepetiduploadimagewithrequiredfilePostSecurityInfo implements SecurityRequirementObjectProvider {
- final private Securities securities;
- final private SecurityIndex securityIndex;
+public class FakepetiduploadimagewithrequiredfilePostSecurityInfo {
+ public static class FakepetiduploadimagewithrequiredfilePostSecurityInfo1 implements SecurityRequirementObjectProvider {
+ final public EnumMap securities;
- public FakepetiduploadimagewithrequiredfilePostSecurityInfo(Securities securities, SecurityIndex securityIndex) {
- this.securities = securities;
- this.securityIndex = securityIndex;
- }
-
- public interface SetterForFakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 {
- Map getInstance();
- T getBuilderAfterFakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0(Map instance);
- default T fakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0(FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 security0) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_0, security0);
- return getBuilderAfterFakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0(instance);
- }
- }
-
- public static class Securities0Builder implements GenericBuilder {
- private final Map instance;
- public Securities0Builder(Map instance) {
- this.instance = instance;
- }
- public Securities build() {
- return new Securities(instance);
- }
- }
-
- public static class SecuritiesBuilder implements SetterForFakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 {
- private final Map instance;
- public SecuritiesBuilder() {
- this.instance = new HashMap<>();
+ public FakepetiduploadimagewithrequiredfilePostSecurityInfo1() {
+ this.securities = new EnumMap<>(Map.ofEntries(
+ new AbstractMap.SimpleEntry<>(SecurityIndex.SECURITY_0, new FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0())
+ ));
}
- public Map getInstance() {
- return instance;
- }
- public Securities0Builder getBuilderAfterFakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0(Map instance) {
- return new Securities0Builder(instance);
- }
- }
- public static class Securities {
- private final EnumMap securities;
-
- Securities(Map securityMap) {
- securities = new EnumMap<>(securityMap);
- }
-
- public SecurityRequirementObject get(SecurityIndex securityIndex) {
- if (securities.containsKey(securityIndex)) {
- return get(securityIndex);
- }
- throw new UnsetPropertyException(securityIndex+" is unset");
+ public SecurityRequirementObject getSecurityRequirementObject(SecurityIndex securityIndex) {
+ return securities.get(securityIndex);
}
}
public enum SecurityIndex {
SECURITY_0
}
-
- public SecurityRequirementObject getSecurityRequirementObject(@Nullable SecurityIndex securityIndex) {
- if (securityIndex == null) {
- return securities.get(this.securityIndex);
- }
- return securities.get(securityIndex);
- }
}
\ No newline at end of file
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java
index fcb32e6dfca..d1c684c5779 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/security/FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.java
@@ -11,13 +11,11 @@
public class FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0 extends SecurityRequirementObject {
- public FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0(
- PetstoreAuth securityScheme0
- ) {
+ public FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0() {
super(
Map.ofEntries(
- new AbstractMap.SimpleEntry>(
- securityScheme0,
+ new AbstractMap.SimpleEntry, List>(
+ PetstoreAuth.class,
List.of("write:pets", "read:pets")
)
)
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java
index 52f97d67235..4f3edb0706a 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Post.java
@@ -50,7 +50,8 @@ public static Responses.EndpointResponse post(
Pet.path,
method,
bodyPublisher,
- queryMap
+ queryMap,
+ apiConfiguration
);
String url = host + Pet.path;
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java
index b40eb7d0625..60f2021f717 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/Put.java
@@ -50,7 +50,8 @@ public static Void put(
Pet.path,
method,
bodyPublisher,
- queryMap
+ queryMap,
+ apiConfiguration
);
String url = host + Pet.path;
diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java
index 7f5e8981eff..33c0fb012db 100644
--- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java
+++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java
@@ -1,145 +1,29 @@
package org.openapijsonschematools.client.paths.pet.post;
-import org.openapijsonschematools.client.exceptions.UnsetPropertyException;
import org.openapijsonschematools.client.paths.pet.post.security.PetPostSecurityRequirementObject0;
import org.openapijsonschematools.client.paths.pet.post.security.PetPostSecurityRequirementObject1;
import org.openapijsonschematools.client.paths.pet.post.security.PetPostSecurityRequirementObject2;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject;
import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObjectProvider;
-import org.openapijsonschematools.client.schemas.GenericBuilder;
-import org.checkerframework.checker.nullness.qual.Nullable;
-import java.util.HashMap;
+import java.util.AbstractMap;
import java.util.Map;
import java.util.EnumMap;
-public class PetPostSecurityInfo implements SecurityRequirementObjectProvider {
- final private Securities securities;
- final private SecurityIndex securityIndex;
+public class PetPostSecurityInfo {
+ public static class PetPostSecurityInfo1 implements SecurityRequirementObjectProvider {
+ final public EnumMap securities;
- public PetPostSecurityInfo(Securities securities, SecurityIndex securityIndex) {
- this.securities = securities;
- this.securityIndex = securityIndex;
- }
-
- public interface SetterForPetPostSecurityRequirementObject0 {
- Map getInstance();
- T getBuilderAfterPetPostSecurityRequirementObject0(Map instance);
- default T petPostSecurityRequirementObject0(PetPostSecurityRequirementObject0 security0) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_0, security0);
- return getBuilderAfterPetPostSecurityRequirementObject0(instance);
- }
- }
-
- public interface SetterForPetPostSecurityRequirementObject1 {
- Map getInstance();
- T getBuilderAfterPetPostSecurityRequirementObject1(Map instance);
- default T petPostSecurityRequirementObject1(PetPostSecurityRequirementObject1 security1) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_1, security1);
- return getBuilderAfterPetPostSecurityRequirementObject1(instance);
- }
- }
-
- public interface SetterForPetPostSecurityRequirementObject2 {
- Map getInstance();
- T getBuilderAfterPetPostSecurityRequirementObject2(Map instance);
- default T petPostSecurityRequirementObject2(PetPostSecurityRequirementObject2 security2) {
- var instance = getInstance();
- instance.put(SecurityIndex.SECURITY_2, security2);
- return getBuilderAfterPetPostSecurityRequirementObject2(instance);
- }
- }
-
- public static class Securities011Builder implements GenericBuilder, SetterForPetPostSecurityRequirementObject1, SetterForPetPostSecurityRequirementObject2