1616import com .google .gson .Gson ;
1717import com .google .gson .JsonArray ;
1818import com .google .gson .JsonElement ;
19+ import com .google .gson .JsonNull ;
1920import com .google .gson .JsonObject ;
2021import com .google .gson .TypeAdapter ;
2122import com .google .gson .TypeAdapterFactory ;
3435import java .util .Set ;
3536
3637/** CreateFolderPayload */
37- @ javax .annotation .Generated (value = "JavaGenerator" , comments = "Generator version: 7.19 .0" )
38+ @ javax .annotation .Generated (value = "JavaGenerator" , comments = "Generator version: 7.26 .0" )
3839public class CreateFolderPayload {
3940 public static final String SERIALIZED_NAME_CONTAINER_PARENT_ID = "containerParentId" ;
4041
@@ -67,8 +68,7 @@ public CreateFolderPayload containerParentId(
6768 }
6869
6970 /**
70- * Identifier of the parent resource container - containerId as well as UUID identifier is
71- * supported.
71+ * Identifier of the parent resource container
7272 *
7373 * @return containerParentId
7474 */
@@ -95,17 +95,20 @@ public CreateFolderPayload putLabelsItem(String key, String labelsItem) {
9595 }
9696
9797 /**
98- * Key-value string pairs attached to an existing resource container. Certain labels may be
99- * enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long
98+ * Key-value string pairs attached to a resource container during creation . Certain labels may
99+ * be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long
100100 * (excluding an optional domain prefix). Must start and end with an alphanumeric character
101101 * `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots
102102 * (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain
103103 * containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/).
104104 * Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
105105 * be empty (\"\"). If non-empty, must start and end with an alphanumeric character
106106 * `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots
107- * (.). > Note: Additional naming restrictions may apply depending on your specific
108- * organization.*
107+ * (.). * Either a `\"scope\": \"PUBLIC\"` label or a valid
108+ * `networkArea` label must be provided for project creation. * To create a project
109+ * within a STACKIT Network Area, you must set the label `\"networkArea\":
110+ * \"<networkAreaID>\"`. > **Important:** The `networkArea`
111+ * label is immutable and **cannot be changed** after project creation.
109112 *
110113 * @return labels
111114 */
@@ -131,8 +134,7 @@ public CreateFolderPayload addMembersItem(Member membersItem) {
131134 }
132135
133136 /**
134- * The initial members assigned to the project. At least one subject needs to be a user, and not
135- * a client or service account.
137+ * The initial members assigned to the folder.
136138 *
137139 * @return members
138140 */
@@ -150,8 +152,8 @@ public CreateFolderPayload name(@javax.annotation.Nonnull String name) {
150152 }
151153
152154 /**
153- * The name of the folder matching the regex `^[a-zA-ZäüöÄÜÖ0-9](
154- * ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39 }$`.
155+ * Folder name matching the regex `^[a-zA-ZäüöÄÜÖ0-9](
156+ * ?[a-zA-ZäüöÄÜÖß0-9_+&-]){1,40 }$`.
155157 *
156158 * @return name
157159 */
@@ -252,10 +254,7 @@ public String toString() {
252254 * line).
253255 */
254256 private String toIndentedString (Object o ) {
255- if (o == null ) {
256- return "null" ;
257- }
258- return o .toString ().replace ("\n " , "\n " );
257+ return o == null ? "null" : o .toString ().replace ("\n " , "\n " );
259258 }
260259
261260 public static HashSet <String > openapiFields ;
@@ -369,7 +368,9 @@ else if (entry.getValue() instanceof Character)
369368 entry .getKey (), (Character ) entry .getValue ());
370369 else {
371370 JsonElement jsonElement = gson .toJsonTree (entry .getValue ());
372- if (jsonElement .isJsonArray ()) {
371+ if (jsonElement .isJsonNull ()) {
372+ obj .add (entry .getKey (), JsonNull .INSTANCE );
373+ } else if (jsonElement .isJsonArray ()) {
373374 obj .add (entry .getKey (), jsonElement .getAsJsonArray ());
374375 } else {
375376 obj .add (entry .getKey (), jsonElement .getAsJsonObject ());
0 commit comments