Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ private static Class getClassByDiscriminator(
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.model.Server.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.model.ServerAgent.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.model.ServerConsoleUrl.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ public Backup labels(@javax.annotation.Nullable Object labels) {

/**
* Object that represents the labels of an object. Regex for keys:
* `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values:
* `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove
* that key.
* `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values:
* `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a
* `null` value for a key will remove that key.
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
Expand All @@ -35,6 +36,11 @@
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.15.0")
public class BaseSecurityGroupRule {
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";

@SerializedName(SERIALIZED_NAME_CREATED_AT)
@javax.annotation.Nullable private OffsetDateTime createdAt;

public static final String SERIALIZED_NAME_DESCRIPTION = "description";

@SerializedName(SERIALIZED_NAME_DESCRIPTION)
Expand Down Expand Up @@ -81,12 +87,29 @@ public class BaseSecurityGroupRule {
@SerializedName(SERIALIZED_NAME_SECURITY_GROUP_ID)
@javax.annotation.Nullable private UUID securityGroupId;

public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt";

@SerializedName(SERIALIZED_NAME_UPDATED_AT)
@javax.annotation.Nullable private OffsetDateTime updatedAt;

public BaseSecurityGroupRule() {}

public BaseSecurityGroupRule(UUID id, UUID securityGroupId) {
public BaseSecurityGroupRule(
OffsetDateTime createdAt, UUID id, UUID securityGroupId, OffsetDateTime updatedAt) {
this();
this.createdAt = createdAt;
this.id = id;
this.securityGroupId = securityGroupId;
this.updatedAt = updatedAt;
}

/**
* Date-time when resource was created.
*
* @return createdAt
*/
@javax.annotation.Nullable public OffsetDateTime getCreatedAt() {
return createdAt;
}

public BaseSecurityGroupRule description(@javax.annotation.Nullable String description) {
Expand Down Expand Up @@ -238,6 +261,15 @@ public void setRemoteSecurityGroupId(@javax.annotation.Nullable UUID remoteSecur
return securityGroupId;
}

/**
* Date-time when resource was last updated.
*
* @return updatedAt
*/
@javax.annotation.Nullable public OffsetDateTime getUpdatedAt() {
return updatedAt;
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -247,7 +279,8 @@ public boolean equals(Object o) {
return false;
}
BaseSecurityGroupRule baseSecurityGroupRule = (BaseSecurityGroupRule) o;
return Objects.equals(this.description, baseSecurityGroupRule.description)
return Objects.equals(this.createdAt, baseSecurityGroupRule.createdAt)
&& Objects.equals(this.description, baseSecurityGroupRule.description)
&& Objects.equals(this.direction, baseSecurityGroupRule.direction)
&& Objects.equals(this.ethertype, baseSecurityGroupRule.ethertype)
&& Objects.equals(this.icmpParameters, baseSecurityGroupRule.icmpParameters)
Expand All @@ -256,12 +289,14 @@ public boolean equals(Object o) {
&& Objects.equals(this.portRange, baseSecurityGroupRule.portRange)
&& Objects.equals(
this.remoteSecurityGroupId, baseSecurityGroupRule.remoteSecurityGroupId)
&& Objects.equals(this.securityGroupId, baseSecurityGroupRule.securityGroupId);
&& Objects.equals(this.securityGroupId, baseSecurityGroupRule.securityGroupId)
&& Objects.equals(this.updatedAt, baseSecurityGroupRule.updatedAt);
}

@Override
public int hashCode() {
return Objects.hash(
createdAt,
description,
direction,
ethertype,
Expand All @@ -270,13 +305,15 @@ public int hashCode() {
ipRange,
portRange,
remoteSecurityGroupId,
securityGroupId);
securityGroupId,
updatedAt);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BaseSecurityGroupRule {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" direction: ").append(toIndentedString(direction)).append("\n");
sb.append(" ethertype: ").append(toIndentedString(ethertype)).append("\n");
Expand All @@ -288,6 +325,7 @@ public String toString() {
.append(toIndentedString(remoteSecurityGroupId))
.append("\n");
sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append("}");
return sb.toString();
}
Expand All @@ -311,6 +349,7 @@ private String toIndentedString(Object o) {
openapiFields =
new HashSet<String>(
Arrays.asList(
"createdAt",
"description",
"direction",
"ethertype",
Expand All @@ -319,7 +358,8 @@ private String toIndentedString(Object o) {
"ipRange",
"portRange",
"remoteSecurityGroupId",
"securityGroupId"));
"securityGroupId",
"updatedAt"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("direction"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public CreateBackupPayload labels(@javax.annotation.Nullable Object labels) {

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^[a-z]((-|_|[a-z0-9])){0,62}$&#x60;. Regex for values:
* &#x60;^(-|_|[a-z0-9]){0,63}$&#x60;. Providing a &#x60;null&#x60; value for a key will remove
* that key.
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ public CreateImagePayload labels(@javax.annotation.Nullable Object labels) {

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^[a-z]((-|_|[a-z0-9])){0,62}$&#x60;. Regex for values:
* &#x60;^(-|_|[a-z0-9]){0,63}$&#x60;. Providing a &#x60;null&#x60; value for a key will remove
* that key.
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ public CreateKeyPairPayload labels(@javax.annotation.Nullable Object labels) {

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^[a-z]((-|_|[a-z0-9])){0,62}$&#x60;. Regex for values:
* &#x60;^(-|_|[a-z0-9]){0,63}$&#x60;. Providing a &#x60;null&#x60; value for a key will remove
* that key.
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public CreateNetworkAreaPayload labels(@javax.annotation.Nullable Object labels)

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^[a-z]((-|_|[a-z0-9])){0,62}$&#x60;. Regex for values:
* &#x60;^(-|_|[a-z0-9]){0,63}$&#x60;. Providing a &#x60;null&#x60; value for a key will remove
* that key.
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ public CreateNetworkPayload labels(@javax.annotation.Nullable Object labels) {

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^[a-z]((-|_|[a-z0-9])){0,62}$&#x60;. Regex for values:
* &#x60;^(-|_|[a-z0-9]){0,63}$&#x60;. Providing a &#x60;null&#x60; value for a key will remove
* that key.
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public class CreateNicPayload {
@SerializedName(SERIALIZED_NAME_ALLOWED_ADDRESSES)
@javax.annotation.Nullable private List<AllowedAddressesInner> allowedAddresses = new ArrayList<>();

public static final String SERIALIZED_NAME_DESCRIPTION = "description";

@SerializedName(SERIALIZED_NAME_DESCRIPTION)
@javax.annotation.Nullable private String description;

public static final String SERIALIZED_NAME_DEVICE = "device";

@SerializedName(SERIALIZED_NAME_DEVICE)
Expand Down Expand Up @@ -144,6 +149,24 @@ public void setAllowedAddresses(
this.allowedAddresses = allowedAddresses;
}

public CreateNicPayload description(@javax.annotation.Nullable String description) {
this.description = description;
return this;
}

/**
* Description Object. Allows string up to 255 Characters.
*
* @return description
*/
@javax.annotation.Nullable public String getDescription() {
return description;
}

public void setDescription(@javax.annotation.Nullable String description) {
this.description = description;
}

/**
* Universally Unique Identifier (UUID).
*
Expand Down Expand Up @@ -205,9 +228,9 @@ public CreateNicPayload labels(@javax.annotation.Nullable Object labels) {

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^[a-z]((-|_|[a-z0-9])){0,62}$&#x60;. Regex for values:
* &#x60;^(-|_|[a-z0-9]){0,63}$&#x60;. Providing a &#x60;null&#x60; value for a key will remove
* that key.
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down Expand Up @@ -328,6 +351,7 @@ public boolean equals(Object o) {
}
CreateNicPayload createNicPayload = (CreateNicPayload) o;
return Objects.equals(this.allowedAddresses, createNicPayload.allowedAddresses)
&& Objects.equals(this.description, createNicPayload.description)
&& Objects.equals(this.device, createNicPayload.device)
&& Objects.equals(this.id, createNicPayload.id)
&& Objects.equals(this.ipv4, createNicPayload.ipv4)
Expand All @@ -346,6 +370,7 @@ public boolean equals(Object o) {
public int hashCode() {
return Objects.hash(
allowedAddresses,
description,
device,
id,
ipv4,
Expand All @@ -365,6 +390,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateNicPayload {\n");
sb.append(" allowedAddresses: ").append(toIndentedString(allowedAddresses)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" device: ").append(toIndentedString(device)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" ipv4: ").append(toIndentedString(ipv4)).append("\n");
Expand Down Expand Up @@ -401,6 +427,7 @@ private String toIndentedString(Object o) {
new HashSet<String>(
Arrays.asList(
"allowedAddresses",
"description",
"device",
"id",
"ipv4",
Expand Down Expand Up @@ -465,6 +492,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
;
}
}
if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull())
&& !jsonObj.get("description").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
"Expected the field `description` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("description").toString()));
}
if ((jsonObj.get("device") != null && !jsonObj.get("device").isJsonNull())
&& !jsonObj.get("device").isJsonPrimitive()) {
throw new IllegalArgumentException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public CreatePublicIPPayload labels(@javax.annotation.Nullable Object labels) {

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^[a-z]((-|_|[a-z0-9])){0,62}$&#x60;. Regex for values:
* &#x60;^(-|_|[a-z0-9]){0,63}$&#x60;. Providing a &#x60;null&#x60; value for a key will remove
* that key.
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ public CreateSecurityGroupPayload labels(@javax.annotation.Nullable Object label

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^[a-z]((-|_|[a-z0-9])){0,62}$&#x60;. Regex for values:
* &#x60;^(-|_|[a-z0-9]){0,63}$&#x60;. Providing a &#x60;null&#x60; value for a key will remove
* that key.
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down
Loading