Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,23 @@ public interface ServerCreateBuilder extends Buildable.Builder<ServerCreateBuild
*/

ServerCreateBuilder configDrive(boolean configDrive);

/**
* Sets the maximum count of servers to boot.
*
* @param maxCount the maxCount value
* @return this builder
*/

ServerCreateBuilder max(int maxCount);

/**
* Sets the minimum count of servers to boot.
*
* @param minCount the minCount value
* @return this builder
*/

ServerCreateBuilder min(int minCount);

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public class NovaServerCreate implements ServerCreate {
private String flavorRef;
private String accessIPv4;
private String accessIPv6;
@JsonProperty("min_count")
private Integer min;
@JsonProperty("max_count")
private Integer max;
private DiskConfig diskConfig;
@JsonProperty("metadata")
Expand Down Expand Up @@ -370,12 +372,24 @@ public ServerCreateBuilder addAdminPass(String adminPass) {
m.adminPass = adminPass;
return this;
}

@Override
public ServerCreateBuilder configDrive(boolean configDrive) {
m.configDrive = configDrive;
return this;
}

@Override
public ServerCreateBuilder max(int maxCount) {
m.max = maxCount;
return this;
}

@Override
public ServerCreateBuilder min(int minCount) {
m.min = minCount;
return this;
}

}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.