Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/objectstorage/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0c4c4c22a2db77c6bcc0e27e513531d1c25d4fe1
bbadf27611358e3e0d7cfc75620cc49bcd53dbee
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.objectstorage.v1api.model.ProjectStatus
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.objectstorage.v1api.model.RateLimitError
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.objectstorage.v1api.model.SetDefaultRetentionPayload
.CustomTypeAdapterFactory());
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public class AccessKey {
public static final String SERIALIZED_NAME_EXPIRES = "expires";

@SerializedName(SERIALIZED_NAME_EXPIRES)
@javax.annotation.Nonnull
private String expires;
@javax.annotation.Nullable private String expires;

public static final String SERIALIZED_NAME_KEY_ID = "keyId";

Expand Down Expand Up @@ -72,7 +71,7 @@ public void setDisplayName(@javax.annotation.Nonnull String displayName) {
this.displayName = displayName;
}

public AccessKey expires(@javax.annotation.Nonnull String expires) {
public AccessKey expires(@javax.annotation.Nullable String expires) {
this.expires = expires;
return this;
}
Expand All @@ -82,12 +81,11 @@ public AccessKey expires(@javax.annotation.Nonnull String expires) {
*
* @return expires
*/
@javax.annotation.Nonnull
public String getExpires() {
@javax.annotation.Nullable public String getExpires() {
return expires;
}

public void setExpires(@javax.annotation.Nonnull String expires) {
public void setExpires(@javax.annotation.Nullable String expires) {
this.expires = expires;
}

Expand Down Expand Up @@ -248,7 +246,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
"Expected the field `displayName` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("displayName").toString()));
}
if (!jsonObj.get("expires").isJsonPrimitive()) {
if ((jsonObj.get("expires") != null && !jsonObj.get("expires").isJsonNull())
&& !jsonObj.get("expires").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.openapitools.jackson.nullable.JsonNullable;

/** CreateAccessKeyPayload */
@javax.annotation.Generated(value = "JavaGenerator", comments = "Generator version: 7.19.0")
Expand Down Expand Up @@ -117,11 +118,27 @@ public boolean equals(Object o) {
this.additionalProperties, createAccessKeyPayload.additionalProperties);
}

private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
return a == b
|| (a != null
&& b != null
&& a.isPresent()
&& b.isPresent()
&& Objects.deepEquals(a.get(), b.get()));
}

@Override
public int hashCode() {
return Objects.hash(expires, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31;
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public class CreateAccessKeyResponse {
public static final String SERIALIZED_NAME_EXPIRES = "expires";

@SerializedName(SERIALIZED_NAME_EXPIRES)
@javax.annotation.Nonnull
private String expires;
@javax.annotation.Nullable private String expires;

public static final String SERIALIZED_NAME_KEY_ID = "keyId";

Expand Down Expand Up @@ -109,7 +108,7 @@ public void setDisplayName(@javax.annotation.Nonnull String displayName) {
this.displayName = displayName;
}

public CreateAccessKeyResponse expires(@javax.annotation.Nonnull String expires) {
public CreateAccessKeyResponse expires(@javax.annotation.Nullable String expires) {
this.expires = expires;
return this;
}
Expand All @@ -119,12 +118,11 @@ public CreateAccessKeyResponse expires(@javax.annotation.Nonnull String expires)
*
* @return expires
*/
@javax.annotation.Nonnull
public String getExpires() {
@javax.annotation.Nullable public String getExpires() {
return expires;
}

public void setExpires(@javax.annotation.Nonnull String expires) {
public void setExpires(@javax.annotation.Nullable String expires) {
this.expires = expires;
}

Expand Down Expand Up @@ -360,7 +358,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
"Expected the field `displayName` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("displayName").toString()));
}
if (!jsonObj.get("expires").isJsonPrimitive()) {
if ((jsonObj.get("expires") != null && !jsonObj.get("expires").isJsonNull())
&& !jsonObj.get("expires").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
Expand Down
Loading
Loading