Skip to content

Commit dddad22

Browse files
Generate resourcemanager
1 parent 3f45b11 commit dddad22

13 files changed

Lines changed: 54 additions & 55 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7a688091c603097448c818da2fd8386f3b02a6d8
1+
2d2d7b46e39cd236134d3b1963a68de0fe3b24fc

‎services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/v0api/model/CreateFolderPayload.java‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public CreateFolderPayload containerParentId(
6767
}
6868

6969
/**
70-
* Identifier of the parent resource container - containerId as well as UUID identifier is
71-
* supported.
70+
* Identifier of the parent resource container
7271
*
7372
* @return containerParentId
7473
*/
@@ -104,8 +103,8 @@ public CreateFolderPayload putLabelsItem(String key, String labelsItem) {
104103
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
105104
* be empty (\"\"). If non-empty, must start and end with an alphanumeric character
106105
* `[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.*
106+
* (.). Can be set to null to delete the label. > Note: Additional naming restrictions may
107+
* apply depending on your specific organization.*
109108
*
110109
* @return labels
111110
*/
@@ -131,8 +130,7 @@ public CreateFolderPayload addMembersItem(Member membersItem) {
131130
}
132131

133132
/**
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.
133+
* The initial members assigned to the folder.
136134
*
137135
* @return members
138136
*/
@@ -150,8 +148,8 @@ public CreateFolderPayload name(@javax.annotation.Nonnull String name) {
150148
}
151149

152150
/**
153-
* The name of the folder matching the regex `^[a-zA-ZäüöÄÜÖ0-9](
154-
* ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
151+
* Folder name matching the regex `^[a-zA-ZäüöÄÜÖ0-9](
152+
* ?[a-zA-ZäüöÄÜÖß0-9_+&-]){1,40}$`.
155153
*
156154
* @return name
157155
*/

‎services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/v0api/model/CreateProjectPayload.java‎

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ public class CreateProjectPayload {
5050
public static final String SERIALIZED_NAME_MEMBERS = "members";
5151

5252
@SerializedName(SERIALIZED_NAME_MEMBERS)
53-
@javax.annotation.Nonnull
54-
private Set<Member> members = new LinkedHashSet<>();
53+
@javax.annotation.Nullable private Set<Member> members = new LinkedHashSet<>();
5554

5655
public static final String SERIALIZED_NAME_NAME = "name";
5756

@@ -121,7 +120,7 @@ public void setLabels(@javax.annotation.Nullable Map<String, String> labels) {
121120
this.labels = labels;
122121
}
123122

124-
public CreateProjectPayload members(@javax.annotation.Nonnull Set<Member> members) {
123+
public CreateProjectPayload members(@javax.annotation.Nullable Set<Member> members) {
125124
this.members = members;
126125
return this;
127126
}
@@ -140,12 +139,11 @@ public CreateProjectPayload addMembersItem(Member membersItem) {
140139
*
141140
* @return members
142141
*/
143-
@javax.annotation.Nonnull
144-
public Set<Member> getMembers() {
142+
@javax.annotation.Nullable public Set<Member> getMembers() {
145143
return members;
146144
}
147145

148-
public void setMembers(@javax.annotation.Nonnull Set<Member> members) {
146+
public void setMembers(@javax.annotation.Nullable Set<Member> members) {
149147
this.members = members;
150148
}
151149

@@ -156,7 +154,7 @@ public CreateProjectPayload name(@javax.annotation.Nonnull String name) {
156154

157155
/**
158156
* Project name matching the regex &#x60;^[a-zA-ZäüöÄÜÖ0-9](
159-
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){0,39}$&#x60;.
157+
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){1,40}$&#x60;.
160158
*
161159
* @return name
162160
*/
@@ -273,8 +271,7 @@ private String toIndentedString(Object o) {
273271
Arrays.asList("containerParentId", "labels", "members", "name"));
274272

275273
// a set of required properties/fields (JSON key names)
276-
openapiRequiredFields =
277-
new HashSet<String>(Arrays.asList("containerParentId", "members", "name"));
274+
openapiRequiredFields = new HashSet<String>(Arrays.asList("containerParentId", "name"));
278275
}
279276

280277
/**
@@ -314,21 +311,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
314311
"Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`",
315312
jsonObj.get("containerParentId").toString()));
316313
}
317-
// ensure the json data is an array
318-
if (!jsonObj.get("members").isJsonArray()) {
319-
throw new IllegalArgumentException(
320-
String.format(
321-
java.util.Locale.ROOT,
322-
"Expected the field `members` to be an array in the JSON string but got `%s`",
323-
jsonObj.get("members").toString()));
324-
}
325-
326-
JsonArray jsonArraymembers = jsonObj.getAsJsonArray("members");
327-
// validate the required field `members` (array)
328-
for (int i = 0; i < jsonArraymembers.size(); i++) {
329-
Member.validateJsonElement(jsonArraymembers.get(i));
314+
if (jsonObj.get("members") != null && !jsonObj.get("members").isJsonNull()) {
315+
JsonArray jsonArraymembers = jsonObj.getAsJsonArray("members");
316+
if (jsonArraymembers != null) {
317+
// ensure the json data is an array
318+
if (!jsonObj.get("members").isJsonArray()) {
319+
throw new IllegalArgumentException(
320+
String.format(
321+
java.util.Locale.ROOT,
322+
"Expected the field `members` to be an array in the JSON string but got `%s`",
323+
jsonObj.get("members").toString()));
324+
}
325+
326+
// validate the optional field `members` (array)
327+
for (int i = 0; i < jsonArraymembers.size(); i++) {
328+
Member.validateJsonElement(jsonArraymembers.get(i));
329+
}
330+
;
331+
}
330332
}
331-
;
332333
if (!jsonObj.get("name").isJsonPrimitive()) {
333334
throw new IllegalArgumentException(
334335
String.format(

‎services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/v0api/model/FolderResponse.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ public FolderResponse putLabelsItem(String key, String labelsItem) {
158158
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
159159
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
160160
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
161-
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
162-
* organization.*
161+
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
162+
* apply depending on your specific organization.*
163163
*
164164
* @return labels
165165
*/

‎services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/v0api/model/GetFolderDetailsResponse.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ public GetFolderDetailsResponse putLabelsItem(String key, String labelsItem) {
166166
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
167167
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
168168
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
169-
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
170-
* organization.*
169+
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
170+
* apply depending on your specific organization.*
171171
*
172172
* @return labels
173173
*/

‎services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/v0api/model/GetProjectResponse.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ public GetProjectResponse putLabelsItem(String key, String labelsItem) {
152152
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
153153
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
154154
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
155-
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
156-
* organization.*
155+
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
156+
* apply depending on your specific organization.*
157157
*
158158
* @return labels
159159
*/

‎services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/v0api/model/ListFoldersResponseItemsInner.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ public ListFoldersResponseItemsInner putLabelsItem(String key, String labelsItem
160160
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
161161
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
162162
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
163-
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
164-
* organization.*
163+
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
164+
* apply depending on your specific organization.*
165165
*
166166
* @return labels
167167
*/

‎services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/v0api/model/ListOrganizationsResponseItemsInner.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ public ListOrganizationsResponseItemsInner putLabelsItem(String key, String labe
142142
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
143143
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
144144
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
145-
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
146-
* organization.*
145+
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
146+
* apply depending on your specific organization.*
147147
*
148148
* @return labels
149149
*/

‎services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/v0api/model/OrganizationResponse.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ public OrganizationResponse putLabelsItem(String key, String labelsItem) {
140140
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
141141
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
142142
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
143-
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
144-
* organization.*
143+
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
144+
* apply depending on your specific organization.*
145145
*
146146
* @return labels
147147
*/

‎services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/v0api/model/PartialUpdateFolderPayload.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public PartialUpdateFolderPayload putLabelsItem(String key, String labelsItem) {
9595
* followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63
9696
* characters or less. May be empty (\&quot;\&quot;). If non-empty, must start and end with an
9797
* alphanumeric character &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-),
98-
* underscores (_), and dots (.). &gt; Note: Additional naming restrictions may apply depending
99-
* on your specific organization.*
98+
* underscores (_), and dots (.). Can be set to null to delete the label. &gt; Note: Additional
99+
* naming restrictions may apply depending on your specific organization.*
100100
*
101101
* @return labels
102102
*/
@@ -115,7 +115,7 @@ public PartialUpdateFolderPayload name(@javax.annotation.Nullable String name) {
115115

116116
/**
117117
* New name for the resource container matching the regex &#x60;^[a-zA-ZäüöÄÜÖ0-9](
118-
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){0,39}$&#x60;.
118+
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){1,40}$&#x60;.
119119
*
120120
* @return name
121121
*/

0 commit comments

Comments
 (0)