Skip to content

Commit a6c7ca1

Browse files
committed
docs: Shield Lists documentation (box/box-openapi#528)
1 parent a88c4bc commit a6c7ca1

30 files changed

+2499
-1
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "20cb559", "specHash": "a54170e", "version": "0.7.0" }
1+
{ "engineHash": "20cb559", "specHash": "630fc85", "version": "0.7.0" }

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ the SDK are available by topic:
5858
* [Shieldinformationbarriersegmentmembers](shieldinformationbarriersegmentmembers.md)
5959
* [Shieldinformationbarriersegmentrestrictions](shieldinformationbarriersegmentrestrictions.md)
6060
* [Shieldinformationbarriersegments](shieldinformationbarriersegments.md)
61+
* [Shieldlists](shieldlists.md)
6162
* [Signrequests](signrequests.md)
6263
* [Signtemplates](signtemplates.md)
6364
* [Skills](skills.md)

docs/shieldlists.md

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# ShieldListsManager
2+
3+
4+
- [Get all shield lists in enterprise](#get-all-shield-lists-in-enterprise)
5+
- [Create shield list](#create-shield-list)
6+
- [Get single shield list by shield list id](#get-single-shield-list-by-shield-list-id)
7+
- [Delete single shield list by shield list id](#delete-single-shield-list-by-shield-list-id)
8+
- [Update shield list](#update-shield-list)
9+
10+
## Get all shield lists in enterprise
11+
12+
Retrieves all shield lists in the enterprise.
13+
14+
This operation is performed by calling function `getShieldListsV2025R0`.
15+
16+
See the endpoint docs at
17+
[API Reference](https://developer.box.com/reference/v2025.0/get-shield-lists/).
18+
19+
*Currently we don't have an example for calling `getShieldListsV2025R0` in integration tests*
20+
21+
### Arguments
22+
23+
- headers `GetShieldListsV2025R0Headers`
24+
- Headers of getShieldListsV2025R0 method
25+
26+
27+
### Returns
28+
29+
This function returns a value of type `ShieldListsV2025R0`.
30+
31+
Returns the list of shield list objects.
32+
33+
34+
## Create shield list
35+
36+
Creates a shield list.
37+
38+
This operation is performed by calling function `createShieldListV2025R0`.
39+
40+
See the endpoint docs at
41+
[API Reference](https://developer.box.com/reference/v2025.0/post-shield-lists/).
42+
43+
*Currently we don't have an example for calling `createShieldListV2025R0` in integration tests*
44+
45+
### Arguments
46+
47+
- requestBody `ShieldListsCreateV2025R0`
48+
- Request body of createShieldListV2025R0 method
49+
- headers `CreateShieldListV2025R0Headers`
50+
- Headers of createShieldListV2025R0 method
51+
52+
53+
### Returns
54+
55+
This function returns a value of type `ShieldListV2025R0`.
56+
57+
Returns the shield list object.
58+
59+
60+
## Get single shield list by shield list id
61+
62+
Retrieves a single shield list by its ID.
63+
64+
This operation is performed by calling function `getShieldListByIdV2025R0`.
65+
66+
See the endpoint docs at
67+
[API Reference](https://developer.box.com/reference/v2025.0/get-shield-lists-id/).
68+
69+
*Currently we don't have an example for calling `getShieldListByIdV2025R0` in integration tests*
70+
71+
### Arguments
72+
73+
- shieldListId `String`
74+
- The unique identifier that represents a shield list. The ID for any Shield List can be determined by the response from the endpoint fetching all shield lists for the enterprise. Example: "90fb0e17-c332-40ed-b4f9-fa8908fbbb24 "
75+
- headers `GetShieldListByIdV2025R0Headers`
76+
- Headers of getShieldListByIdV2025R0 method
77+
78+
79+
### Returns
80+
81+
This function returns a value of type `ShieldListV2025R0`.
82+
83+
Returns the shield list object.
84+
85+
86+
## Delete single shield list by shield list id
87+
88+
Delete a single shield list by its ID.
89+
90+
This operation is performed by calling function `deleteShieldListByIdV2025R0`.
91+
92+
See the endpoint docs at
93+
[API Reference](https://developer.box.com/reference/v2025.0/delete-shield-lists-id/).
94+
95+
*Currently we don't have an example for calling `deleteShieldListByIdV2025R0` in integration tests*
96+
97+
### Arguments
98+
99+
- shieldListId `String`
100+
- The unique identifier that represents a shield list. The ID for any Shield List can be determined by the response from the endpoint fetching all shield lists for the enterprise. Example: "90fb0e17-c332-40ed-b4f9-fa8908fbbb24 "
101+
- headers `DeleteShieldListByIdV2025R0Headers`
102+
- Headers of deleteShieldListByIdV2025R0 method
103+
104+
105+
### Returns
106+
107+
This function returns a value of type `void`.
108+
109+
Shield List correctly removed. No content in response.
110+
111+
112+
## Update shield list
113+
114+
Updates a shield list.
115+
116+
This operation is performed by calling function `updateShieldListByIdV2025R0`.
117+
118+
See the endpoint docs at
119+
[API Reference](https://developer.box.com/reference/v2025.0/put-shield-lists-id/).
120+
121+
*Currently we don't have an example for calling `updateShieldListByIdV2025R0` in integration tests*
122+
123+
### Arguments
124+
125+
- shieldListId `String`
126+
- The unique identifier that represents a shield list. The ID for any Shield List can be determined by the response from the endpoint fetching all shield lists for the enterprise. Example: "90fb0e17-c332-40ed-b4f9-fa8908fbbb24 "
127+
- requestBody `ShieldListsUpdateV2025R0`
128+
- Request body of updateShieldListByIdV2025R0 method
129+
- headers `UpdateShieldListByIdV2025R0Headers`
130+
- Headers of updateShieldListByIdV2025R0 method
131+
132+
133+
### Returns
134+
135+
This function returns a value of type `ShieldListV2025R0`.
136+
137+
Returns the shield list object.
138+
139+

src/main/java/com/box/sdkgen/client/BoxClient.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import com.box.sdkgen.managers.shieldinformationbarriersegmentmembers.ShieldInformationBarrierSegmentMembersManager;
5757
import com.box.sdkgen.managers.shieldinformationbarriersegmentrestrictions.ShieldInformationBarrierSegmentRestrictionsManager;
5858
import com.box.sdkgen.managers.shieldinformationbarriersegments.ShieldInformationBarrierSegmentsManager;
59+
import com.box.sdkgen.managers.shieldlists.ShieldListsManager;
5960
import com.box.sdkgen.managers.signrequests.SignRequestsManager;
6061
import com.box.sdkgen.managers.signtemplates.SignTemplatesManager;
6162
import com.box.sdkgen.managers.skills.SkillsManager;
@@ -241,6 +242,8 @@ public class BoxClient {
241242

242243
public final DocgenManager docgen;
243244

245+
public final ShieldListsManager shieldLists;
246+
244247
public BoxClient(Authentication auth) {
245248
this.auth = auth;
246249
this.networkSession =
@@ -618,6 +621,11 @@ public BoxClient(Authentication auth) {
618621
.auth(this.auth)
619622
.networkSession(this.networkSession)
620623
.build();
624+
this.shieldLists =
625+
new ShieldListsManager.ShieldListsManagerBuilder()
626+
.auth(this.auth)
627+
.networkSession(this.networkSession)
628+
.build();
621629
}
622630

623631
protected BoxClient(BoxClientBuilder builder) {
@@ -996,6 +1004,11 @@ protected BoxClient(BoxClientBuilder builder) {
9961004
.auth(this.auth)
9971005
.networkSession(this.networkSession)
9981006
.build();
1007+
this.shieldLists =
1008+
new ShieldListsManager.ShieldListsManagerBuilder()
1009+
.auth(this.auth)
1010+
.networkSession(this.networkSession)
1011+
.build();
9991012
}
10001013

10011014
public FetchResponse makeRequest(FetchOptions fetchOptions) {
@@ -1361,6 +1374,10 @@ public DocgenManager getDocgen() {
13611374
return docgen;
13621375
}
13631376

1377+
public ShieldListsManager getShieldLists() {
1378+
return shieldLists;
1379+
}
1380+
13641381
public static class BoxClientBuilder {
13651382

13661383
protected final Authentication auth;
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
package com.box.sdkgen.managers.shieldlists;
2+
3+
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
4+
5+
import com.box.sdkgen.parameters.v2025r0.boxversionheaderv2025r0.BoxVersionHeaderV2025R0;
6+
import com.box.sdkgen.serialization.json.EnumWrapper;
7+
import java.util.Map;
8+
9+
public class CreateShieldListV2025R0Headers {
10+
11+
public EnumWrapper<BoxVersionHeaderV2025R0> boxVersion;
12+
13+
public Map<String, String> extraHeaders;
14+
15+
public CreateShieldListV2025R0Headers() {
16+
this.boxVersion = new EnumWrapper<BoxVersionHeaderV2025R0>(BoxVersionHeaderV2025R0._2025_0);
17+
this.extraHeaders = mapOf();
18+
}
19+
20+
protected CreateShieldListV2025R0Headers(CreateShieldListV2025R0HeadersBuilder builder) {
21+
this.boxVersion = builder.boxVersion;
22+
this.extraHeaders = builder.extraHeaders;
23+
}
24+
25+
public EnumWrapper<BoxVersionHeaderV2025R0> getBoxVersion() {
26+
return boxVersion;
27+
}
28+
29+
public Map<String, String> getExtraHeaders() {
30+
return extraHeaders;
31+
}
32+
33+
public static class CreateShieldListV2025R0HeadersBuilder {
34+
35+
protected EnumWrapper<BoxVersionHeaderV2025R0> boxVersion;
36+
37+
protected Map<String, String> extraHeaders;
38+
39+
public CreateShieldListV2025R0HeadersBuilder boxVersion(BoxVersionHeaderV2025R0 boxVersion) {
40+
this.boxVersion = new EnumWrapper<BoxVersionHeaderV2025R0>(boxVersion);
41+
return this;
42+
}
43+
44+
public CreateShieldListV2025R0HeadersBuilder boxVersion(
45+
EnumWrapper<BoxVersionHeaderV2025R0> boxVersion) {
46+
this.boxVersion = boxVersion;
47+
return this;
48+
}
49+
50+
public CreateShieldListV2025R0HeadersBuilder extraHeaders(Map<String, String> extraHeaders) {
51+
this.extraHeaders = extraHeaders;
52+
return this;
53+
}
54+
55+
public CreateShieldListV2025R0Headers build() {
56+
return new CreateShieldListV2025R0Headers(this);
57+
}
58+
}
59+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
package com.box.sdkgen.managers.shieldlists;
2+
3+
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
4+
5+
import com.box.sdkgen.parameters.v2025r0.boxversionheaderv2025r0.BoxVersionHeaderV2025R0;
6+
import com.box.sdkgen.serialization.json.EnumWrapper;
7+
import java.util.Map;
8+
9+
public class DeleteShieldListByIdV2025R0Headers {
10+
11+
public EnumWrapper<BoxVersionHeaderV2025R0> boxVersion;
12+
13+
public Map<String, String> extraHeaders;
14+
15+
public DeleteShieldListByIdV2025R0Headers() {
16+
this.boxVersion = new EnumWrapper<BoxVersionHeaderV2025R0>(BoxVersionHeaderV2025R0._2025_0);
17+
this.extraHeaders = mapOf();
18+
}
19+
20+
protected DeleteShieldListByIdV2025R0Headers(DeleteShieldListByIdV2025R0HeadersBuilder builder) {
21+
this.boxVersion = builder.boxVersion;
22+
this.extraHeaders = builder.extraHeaders;
23+
}
24+
25+
public EnumWrapper<BoxVersionHeaderV2025R0> getBoxVersion() {
26+
return boxVersion;
27+
}
28+
29+
public Map<String, String> getExtraHeaders() {
30+
return extraHeaders;
31+
}
32+
33+
public static class DeleteShieldListByIdV2025R0HeadersBuilder {
34+
35+
protected EnumWrapper<BoxVersionHeaderV2025R0> boxVersion;
36+
37+
protected Map<String, String> extraHeaders;
38+
39+
public DeleteShieldListByIdV2025R0HeadersBuilder boxVersion(
40+
BoxVersionHeaderV2025R0 boxVersion) {
41+
this.boxVersion = new EnumWrapper<BoxVersionHeaderV2025R0>(boxVersion);
42+
return this;
43+
}
44+
45+
public DeleteShieldListByIdV2025R0HeadersBuilder boxVersion(
46+
EnumWrapper<BoxVersionHeaderV2025R0> boxVersion) {
47+
this.boxVersion = boxVersion;
48+
return this;
49+
}
50+
51+
public DeleteShieldListByIdV2025R0HeadersBuilder extraHeaders(
52+
Map<String, String> extraHeaders) {
53+
this.extraHeaders = extraHeaders;
54+
return this;
55+
}
56+
57+
public DeleteShieldListByIdV2025R0Headers build() {
58+
return new DeleteShieldListByIdV2025R0Headers(this);
59+
}
60+
}
61+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
package com.box.sdkgen.managers.shieldlists;
2+
3+
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
4+
5+
import com.box.sdkgen.parameters.v2025r0.boxversionheaderv2025r0.BoxVersionHeaderV2025R0;
6+
import com.box.sdkgen.serialization.json.EnumWrapper;
7+
import java.util.Map;
8+
9+
public class GetShieldListByIdV2025R0Headers {
10+
11+
public EnumWrapper<BoxVersionHeaderV2025R0> boxVersion;
12+
13+
public Map<String, String> extraHeaders;
14+
15+
public GetShieldListByIdV2025R0Headers() {
16+
this.boxVersion = new EnumWrapper<BoxVersionHeaderV2025R0>(BoxVersionHeaderV2025R0._2025_0);
17+
this.extraHeaders = mapOf();
18+
}
19+
20+
protected GetShieldListByIdV2025R0Headers(GetShieldListByIdV2025R0HeadersBuilder builder) {
21+
this.boxVersion = builder.boxVersion;
22+
this.extraHeaders = builder.extraHeaders;
23+
}
24+
25+
public EnumWrapper<BoxVersionHeaderV2025R0> getBoxVersion() {
26+
return boxVersion;
27+
}
28+
29+
public Map<String, String> getExtraHeaders() {
30+
return extraHeaders;
31+
}
32+
33+
public static class GetShieldListByIdV2025R0HeadersBuilder {
34+
35+
protected EnumWrapper<BoxVersionHeaderV2025R0> boxVersion;
36+
37+
protected Map<String, String> extraHeaders;
38+
39+
public GetShieldListByIdV2025R0HeadersBuilder boxVersion(BoxVersionHeaderV2025R0 boxVersion) {
40+
this.boxVersion = new EnumWrapper<BoxVersionHeaderV2025R0>(boxVersion);
41+
return this;
42+
}
43+
44+
public GetShieldListByIdV2025R0HeadersBuilder boxVersion(
45+
EnumWrapper<BoxVersionHeaderV2025R0> boxVersion) {
46+
this.boxVersion = boxVersion;
47+
return this;
48+
}
49+
50+
public GetShieldListByIdV2025R0HeadersBuilder extraHeaders(Map<String, String> extraHeaders) {
51+
this.extraHeaders = extraHeaders;
52+
return this;
53+
}
54+
55+
public GetShieldListByIdV2025R0Headers build() {
56+
return new GetShieldListByIdV2025R0Headers(this);
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)