Skip to content

Commit 5e76734

Browse files
SDK regeneration
1 parent 6047f6f commit 5e76734

21 files changed

Lines changed: 476 additions & 197 deletions

reference.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3266,7 +3266,7 @@ client.connections().list(
32663266
OptionalNullable.of(true)
32673267
)
32683268
.strategy(
3269-
Arrays.asList(Optional.of(ConnectionStrategyEnum.AD))
3269+
Arrays.asList(ConnectionStrategyEnum.AD)
32703270
)
32713271
.build()
32723272
);
@@ -5566,9 +5566,7 @@ client.events().subscribe(
55665566
OptionalNullable.of("from_timestamp")
55675567
)
55685568
.eventType(
5569-
OptionalNullable.of(
5570-
EventStreamSubscribeEventsEventTypeParam.of(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED)
5571-
)
5569+
Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED)
55725570
)
55735571
.build()
55745572
);
@@ -5602,7 +5600,7 @@ client.events().subscribe(
56025600
<dl>
56035601
<dd>
56045602

5605-
**eventType:** `Optional<EventStreamSubscribeEventsEventTypeParam>` — Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed.
5603+
**eventType:** `Optional<EventStreamSubscribeEventsEventTypeEnum>` — Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed.
56065604

56075605
</dd>
56085606
</dl>
@@ -5644,7 +5642,7 @@ client.flows().list(
56445642
OptionalNullable.of(true)
56455643
)
56465644
.hydrate(
5647-
Arrays.asList(Optional.of(ListFlowsRequestParametersHydrateEnum.FORM_COUNT))
5645+
Arrays.asList(ListFlowsRequestParametersHydrateEnum.FORM_COUNT)
56485646
)
56495647
.build()
56505648
);
@@ -5777,7 +5775,7 @@ client.flows().get(
57775775
GetFlowRequestParameters
57785776
.builder()
57795777
.hydrate(
5780-
Arrays.asList(Optional.of(GetFlowRequestParametersHydrateEnum.FORM_COUNT))
5778+
Arrays.asList(GetFlowRequestParametersHydrateEnum.FORM_COUNT)
57815779
)
57825780
.build()
57835781
);
@@ -5943,7 +5941,7 @@ client.forms().list(
59435941
OptionalNullable.of(true)
59445942
)
59455943
.hydrate(
5946-
Arrays.asList(Optional.of(FormsRequestParametersHydrateEnum.FLOW_COUNT))
5944+
Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT)
59475945
)
59485946
.build()
59495947
);
@@ -6116,7 +6114,7 @@ client.forms().get(
61166114
GetFormRequestParameters
61176115
.builder()
61186116
.hydrate(
6119-
Arrays.asList(Optional.of(FormsRequestParametersHydrateEnum.FLOW_COUNT))
6117+
Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT)
61206118
)
61216119
.build()
61226120
);
@@ -9754,7 +9752,7 @@ client.resourceServers().list(
97549752
OptionalNullable.of(true)
97559753
)
97569754
.identifiers(
9757-
Arrays.asList(Optional.of("identifiers"))
9755+
Arrays.asList("identifiers")
97589756
)
97599757
.build()
97609758
);
@@ -18365,7 +18363,7 @@ client.clients().connections().get(
1836518363
OptionalNullable.of(true)
1836618364
)
1836718365
.strategy(
18368-
Arrays.asList(Optional.of(ConnectionStrategyEnum.AD))
18366+
Arrays.asList(ConnectionStrategyEnum.AD)
1836918367
)
1837018368
.build()
1837118369
);
@@ -20735,7 +20733,7 @@ client.flows().executions().get(
2073520733
GetFlowExecutionRequestParameters
2073620734
.builder()
2073720735
.hydrate(
20738-
Arrays.asList(Optional.of(GetFlowExecutionRequestParametersHydrateEnum.DEBUG))
20736+
Arrays.asList(GetFlowExecutionRequestParametersHydrateEnum.DEBUG)
2073920737
)
2074020738
.build()
2074120739
);
@@ -24597,7 +24595,7 @@ client.organizations().clientGrants().list(
2459724595
OptionalNullable.of(true)
2459824596
)
2459924597
.grantIds(
24600-
Arrays.asList(Optional.of("grant_ids"))
24598+
Arrays.asList("grant_ids")
2460124599
)
2460224600
.build()
2460324601
);

src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ public CompletableFuture<ManagementApiHttpResponse<Iterable<EventStreamSubscribe
8181
QueryStringMapper.addQueryParameter(
8282
httpUrl, "from_timestamp", request.getFromTimestamp().orElse(null), false);
8383
}
84-
if (!request.getEventType().isAbsent()) {
84+
if (request.getEventType().isPresent()) {
8585
QueryStringMapper.addQueryParameter(
86-
httpUrl, "event_type", request.getEventType().orElse(null), false);
86+
httpUrl, "event_type", request.getEventType().get(), true);
8787
}
8888
if (requestOptions != null) {
8989
requestOptions.getQueryParameters().forEach((_key, _value) -> {

src/main/java/com/auth0/client/mgmt/RawEventsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public ManagementApiHttpResponse<Iterable<EventStreamSubscribeEventsResponseCont
7676
QueryStringMapper.addQueryParameter(
7777
httpUrl, "from_timestamp", request.getFromTimestamp().orElse(null), false);
7878
}
79-
if (!request.getEventType().isAbsent()) {
79+
if (request.getEventType().isPresent()) {
8080
QueryStringMapper.addQueryParameter(
81-
httpUrl, "event_type", request.getEventType().orElse(null), false);
81+
httpUrl, "event_type", request.getEventType().get(), true);
8282
}
8383
if (requestOptions != null) {
8484
requestOptions.getQueryParameters().forEach((_key, _value) -> {
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
package com.auth0.client.mgmt.types;
5+
6+
import com.fasterxml.jackson.annotation.JsonCreator;
7+
import com.fasterxml.jackson.annotation.JsonValue;
8+
9+
public final class ConnectionAssertionDecryptionAlgorithmProfileEnum {
10+
public static final ConnectionAssertionDecryptionAlgorithmProfileEnum V20261 =
11+
new ConnectionAssertionDecryptionAlgorithmProfileEnum(Value.V20261, "v2026-1");
12+
13+
private final Value value;
14+
15+
private final String string;
16+
17+
ConnectionAssertionDecryptionAlgorithmProfileEnum(Value value, String string) {
18+
this.value = value;
19+
this.string = string;
20+
}
21+
22+
public Value getEnumValue() {
23+
return value;
24+
}
25+
26+
@java.lang.Override
27+
@JsonValue
28+
public String toString() {
29+
return this.string;
30+
}
31+
32+
@java.lang.Override
33+
public boolean equals(Object other) {
34+
return (this == other)
35+
|| (other instanceof ConnectionAssertionDecryptionAlgorithmProfileEnum
36+
&& this.string.equals(((ConnectionAssertionDecryptionAlgorithmProfileEnum) other).string));
37+
}
38+
39+
@java.lang.Override
40+
public int hashCode() {
41+
return this.string.hashCode();
42+
}
43+
44+
public <T> T visit(Visitor<T> visitor) {
45+
switch (value) {
46+
case V20261:
47+
return visitor.visitV20261();
48+
case UNKNOWN:
49+
default:
50+
return visitor.visitUnknown(string);
51+
}
52+
}
53+
54+
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
55+
public static ConnectionAssertionDecryptionAlgorithmProfileEnum valueOf(String value) {
56+
switch (value) {
57+
case "v2026-1":
58+
return V20261;
59+
default:
60+
return new ConnectionAssertionDecryptionAlgorithmProfileEnum(Value.UNKNOWN, value);
61+
}
62+
}
63+
64+
public enum Value {
65+
V20261,
66+
67+
UNKNOWN
68+
}
69+
70+
public interface Visitor<T> {
71+
T visitV20261();
72+
73+
T visitUnknown(String unknownType);
74+
}
75+
}
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
package com.auth0.client.mgmt.types;
5+
6+
import com.auth0.client.mgmt.core.ObjectMappers;
7+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
8+
import com.fasterxml.jackson.annotation.JsonAnySetter;
9+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
10+
import com.fasterxml.jackson.annotation.JsonInclude;
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.fasterxml.jackson.annotation.JsonSetter;
13+
import com.fasterxml.jackson.annotation.Nulls;
14+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
15+
import java.util.HashMap;
16+
import java.util.List;
17+
import java.util.Map;
18+
import java.util.Objects;
19+
import java.util.Optional;
20+
import org.jetbrains.annotations.NotNull;
21+
22+
@JsonInclude(JsonInclude.Include.NON_ABSENT)
23+
@JsonDeserialize(builder = ConnectionAssertionDecryptionSettings.Builder.class)
24+
public final class ConnectionAssertionDecryptionSettings {
25+
private final ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile;
26+
27+
private final Optional<List<String>> algorithmExceptions;
28+
29+
private final Map<String, Object> additionalProperties;
30+
31+
private ConnectionAssertionDecryptionSettings(
32+
ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile,
33+
Optional<List<String>> algorithmExceptions,
34+
Map<String, Object> additionalProperties) {
35+
this.algorithmProfile = algorithmProfile;
36+
this.algorithmExceptions = algorithmExceptions;
37+
this.additionalProperties = additionalProperties;
38+
}
39+
40+
@JsonProperty("algorithm_profile")
41+
public ConnectionAssertionDecryptionAlgorithmProfileEnum getAlgorithmProfile() {
42+
return algorithmProfile;
43+
}
44+
45+
/**
46+
* @return A list of insecure algorithms to allow for SAML assertion decryption.
47+
*/
48+
@JsonProperty("algorithm_exceptions")
49+
public Optional<List<String>> getAlgorithmExceptions() {
50+
return algorithmExceptions;
51+
}
52+
53+
@java.lang.Override
54+
public boolean equals(Object other) {
55+
if (this == other) return true;
56+
return other instanceof ConnectionAssertionDecryptionSettings
57+
&& equalTo((ConnectionAssertionDecryptionSettings) other);
58+
}
59+
60+
@JsonAnyGetter
61+
public Map<String, Object> getAdditionalProperties() {
62+
return this.additionalProperties;
63+
}
64+
65+
private boolean equalTo(ConnectionAssertionDecryptionSettings other) {
66+
return algorithmProfile.equals(other.algorithmProfile) && algorithmExceptions.equals(other.algorithmExceptions);
67+
}
68+
69+
@java.lang.Override
70+
public int hashCode() {
71+
return Objects.hash(this.algorithmProfile, this.algorithmExceptions);
72+
}
73+
74+
@java.lang.Override
75+
public String toString() {
76+
return ObjectMappers.stringify(this);
77+
}
78+
79+
public static AlgorithmProfileStage builder() {
80+
return new Builder();
81+
}
82+
83+
public interface AlgorithmProfileStage {
84+
_FinalStage algorithmProfile(@NotNull ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile);
85+
86+
Builder from(ConnectionAssertionDecryptionSettings other);
87+
}
88+
89+
public interface _FinalStage {
90+
ConnectionAssertionDecryptionSettings build();
91+
92+
_FinalStage additionalProperty(String key, Object value);
93+
94+
_FinalStage additionalProperties(Map<String, Object> additionalProperties);
95+
96+
/**
97+
* <p>A list of insecure algorithms to allow for SAML assertion decryption.</p>
98+
*/
99+
_FinalStage algorithmExceptions(Optional<List<String>> algorithmExceptions);
100+
101+
_FinalStage algorithmExceptions(List<String> algorithmExceptions);
102+
}
103+
104+
@JsonIgnoreProperties(ignoreUnknown = true)
105+
public static final class Builder implements AlgorithmProfileStage, _FinalStage {
106+
private ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile;
107+
108+
private Optional<List<String>> algorithmExceptions = Optional.empty();
109+
110+
@JsonAnySetter
111+
private Map<String, Object> additionalProperties = new HashMap<>();
112+
113+
private Builder() {}
114+
115+
@java.lang.Override
116+
public Builder from(ConnectionAssertionDecryptionSettings other) {
117+
algorithmProfile(other.getAlgorithmProfile());
118+
algorithmExceptions(other.getAlgorithmExceptions());
119+
return this;
120+
}
121+
122+
@java.lang.Override
123+
@JsonSetter("algorithm_profile")
124+
public _FinalStage algorithmProfile(
125+
@NotNull ConnectionAssertionDecryptionAlgorithmProfileEnum algorithmProfile) {
126+
this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null");
127+
return this;
128+
}
129+
130+
/**
131+
* <p>A list of insecure algorithms to allow for SAML assertion decryption.</p>
132+
* @return Reference to {@code this} so that method calls can be chained together.
133+
*/
134+
@java.lang.Override
135+
public _FinalStage algorithmExceptions(List<String> algorithmExceptions) {
136+
this.algorithmExceptions = Optional.ofNullable(algorithmExceptions);
137+
return this;
138+
}
139+
140+
/**
141+
* <p>A list of insecure algorithms to allow for SAML assertion decryption.</p>
142+
*/
143+
@java.lang.Override
144+
@JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP)
145+
public _FinalStage algorithmExceptions(Optional<List<String>> algorithmExceptions) {
146+
this.algorithmExceptions = algorithmExceptions;
147+
return this;
148+
}
149+
150+
@java.lang.Override
151+
public ConnectionAssertionDecryptionSettings build() {
152+
return new ConnectionAssertionDecryptionSettings(
153+
algorithmProfile, algorithmExceptions, additionalProperties);
154+
}
155+
156+
@java.lang.Override
157+
public Builder additionalProperty(String key, Object value) {
158+
this.additionalProperties.put(key, value);
159+
return this;
160+
}
161+
162+
@java.lang.Override
163+
public Builder additionalProperties(Map<String, Object> additionalProperties) {
164+
this.additionalProperties.putAll(additionalProperties);
165+
return this;
166+
}
167+
}
168+
}

0 commit comments

Comments
 (0)