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
2 changes: 1 addition & 1 deletion services/resourcemanager/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7a688091c603097448c818da2fd8386f3b02a6d8
7c9ee6e47bfd11f1578a4636f428b3deaaca318e
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public CreateFolderPayload containerParentId(
}

/**
* Identifier of the parent resource container - containerId as well as UUID identifier is
* supported.
* Identifier of the parent resource container
*
* @return containerParentId
*/
Expand Down Expand Up @@ -104,8 +103,8 @@ public CreateFolderPayload putLabelsItem(String key, String labelsItem) {
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
* be empty (\"\"). If non-empty, must start and end with an alphanumeric character
* `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots
* (.). > Note: Additional naming restrictions may apply depending on your specific
* organization.*
* (.). Can be set to null to delete the label. > Note: Additional naming restrictions may
* apply depending on your specific organization.*
*
* @return labels
*/
Expand All @@ -131,8 +130,7 @@ public CreateFolderPayload addMembersItem(Member membersItem) {
}

/**
* The initial members assigned to the project. At least one subject needs to be a user, and not
* a client or service account.
* The initial members assigned to the folder.
*
* @return members
*/
Expand All @@ -150,8 +148,8 @@ public CreateFolderPayload name(@javax.annotation.Nonnull String name) {
}

/**
* The name of the folder matching the regex `^[a-zA-ZäüöÄÜÖ0-9](
* ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`.
* Folder name matching the regex `^[a-zA-ZäüöÄÜÖ0-9](
* ?[a-zA-ZäüöÄÜÖß0-9_+&-]){1,40}$`.
*
* @return name
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ public class CreateProjectPayload {
public static final String SERIALIZED_NAME_MEMBERS = "members";

@SerializedName(SERIALIZED_NAME_MEMBERS)
@javax.annotation.Nonnull
private Set<Member> members = new LinkedHashSet<>();
@javax.annotation.Nullable private Set<Member> members = new LinkedHashSet<>();

public static final String SERIALIZED_NAME_NAME = "name";

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

public CreateProjectPayload members(@javax.annotation.Nonnull Set<Member> members) {
public CreateProjectPayload members(@javax.annotation.Nullable Set<Member> members) {
this.members = members;
return this;
}
Expand All @@ -140,12 +139,11 @@ public CreateProjectPayload addMembersItem(Member membersItem) {
*
* @return members
*/
@javax.annotation.Nonnull
public Set<Member> getMembers() {
@javax.annotation.Nullable public Set<Member> getMembers() {
return members;
}

public void setMembers(@javax.annotation.Nonnull Set<Member> members) {
public void setMembers(@javax.annotation.Nullable Set<Member> members) {
this.members = members;
}

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

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

// a set of required properties/fields (JSON key names)
openapiRequiredFields =
new HashSet<String>(Arrays.asList("containerParentId", "members", "name"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("containerParentId", "name"));
}

/**
Expand Down Expand Up @@ -314,21 +311,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
"Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("containerParentId").toString()));
}
// ensure the json data is an array
if (!jsonObj.get("members").isJsonArray()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `members` to be an array in the JSON string but got `%s`",
jsonObj.get("members").toString()));
}

JsonArray jsonArraymembers = jsonObj.getAsJsonArray("members");
// validate the required field `members` (array)
for (int i = 0; i < jsonArraymembers.size(); i++) {
Member.validateJsonElement(jsonArraymembers.get(i));
if (jsonObj.get("members") != null && !jsonObj.get("members").isJsonNull()) {
JsonArray jsonArraymembers = jsonObj.getAsJsonArray("members");
if (jsonArraymembers != null) {
// ensure the json data is an array
if (!jsonObj.get("members").isJsonArray()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `members` to be an array in the JSON string but got `%s`",
jsonObj.get("members").toString()));
}

// validate the optional field `members` (array)
for (int i = 0; i < jsonArraymembers.size(); i++) {
Member.validateJsonElement(jsonArraymembers.get(i));
}
;
}
}
;
if (!jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ public FolderResponse putLabelsItem(String key, String labelsItem) {
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
* organization.*
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
* apply depending on your specific organization.*
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ public GetFolderDetailsResponse putLabelsItem(String key, String labelsItem) {
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
* organization.*
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
* apply depending on your specific organization.*
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public GetProjectResponse putLabelsItem(String key, String labelsItem) {
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
* organization.*
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
* apply depending on your specific organization.*
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ public ListFoldersResponseItemsInner putLabelsItem(String key, String labelsItem
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
* organization.*
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
* apply depending on your specific organization.*
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public ListOrganizationsResponseItemsInner putLabelsItem(String key, String labe
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
* organization.*
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
* apply depending on your specific organization.*
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ public OrganizationResponse putLabelsItem(String key, String labelsItem) {
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
* organization.*
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
* apply depending on your specific organization.*
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public PartialUpdateFolderPayload putLabelsItem(String key, String labelsItem) {
* followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63
* characters or less. May be empty (\&quot;\&quot;). If non-empty, must start and end with an
* alphanumeric character &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-),
* underscores (_), and dots (.). &gt; Note: Additional naming restrictions may apply depending
* on your specific organization.*
* underscores (_), and dots (.). Can be set to null to delete the label. &gt; Note: Additional
* naming restrictions may apply depending on your specific organization.*
*
* @return labels
*/
Expand All @@ -115,7 +115,7 @@ public PartialUpdateFolderPayload name(@javax.annotation.Nullable String name) {

/**
* New name for the resource container matching the regex &#x60;^[a-zA-ZäüöÄÜÖ0-9](
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){0,39}$&#x60;.
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){1,40}$&#x60;.
*
* @return name
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public PartialUpdateOrganizationPayload putLabelsItem(String key, String labelsI
* followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63
* characters or less. May be empty (\&quot;\&quot;). If non-empty, must start and end with an
* alphanumeric character &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-),
* underscores (_), and dots (.). &gt; Note: Additional naming restrictions may apply depending
* on your specific organization.*
* underscores (_), and dots (.). Can be set to null to delete the label. &gt; Note: Additional
* naming restrictions may apply depending on your specific organization.*
*
* @return labels
*/
Expand All @@ -90,7 +90,7 @@ public PartialUpdateOrganizationPayload name(@javax.annotation.Nullable String n

/**
* The new name of the organization matching the regex &#x60;^[a-zA-ZäüöÄÜÖ0-9](
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){0,39}$&#x60;.
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){1,40}$&#x60;.
*
* @return name
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public PartialUpdateProjectPayload putLabelsItem(String key, String labelsItem)
* followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63
* characters or less. May be empty (\&quot;\&quot;). If non-empty, must start and end with an
* alphanumeric character &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-),
* underscores (_), and dots (.). &gt; Note: Additional naming restrictions may apply depending
* on your specific organization.*
* underscores (_), and dots (.). Can be set to null to delete the label. &gt; Note: Additional
* naming restrictions may apply depending on your specific organization.*
*
* @return labels
*/
Expand All @@ -115,7 +115,7 @@ public PartialUpdateProjectPayload name(@javax.annotation.Nullable String name)

/**
* New name for the resource container matching the regex &#x60;^[a-zA-ZäüöÄÜÖ0-9](
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){0,39}$&#x60;.
* ?[a-zA-ZäüöÄÜÖß0-9_+&amp;-]){1,40}$&#x60;.
*
* @return name
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public Project putLabelsItem(String key, String labelsItem) {
* Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May
* be empty (\&quot;\&quot;). If non-empty, must start and end with an alphanumeric character
* &#x60;[a-zA-Z0-9]&#x60; and can contain alphanumerics, dashes (-), underscores (_), and dots
* (.). &gt; Note: Additional naming restrictions may apply depending on your specific
* organization.*
* (.). Can be set to null to delete the label. &gt; Note: Additional naming restrictions may
* apply depending on your specific organization.*
*
* @return labels
*/
Expand Down
Loading