Skip to content

Commit 2c969c4

Browse files
GFriedrichtwoseat
authored andcommitted
Add application ports when updating applications
[resolves #975]
1 parent 8152bcd commit 2c969c4

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/applications/_CreateApplicationRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ abstract class _CreateApplicationRequest {
155155
abstract String getName();
156156

157157
/**
158-
* The ports on which application may listen
158+
* The ports on which the application may listen
159159
*/
160160
@JsonProperty("ports")
161161
@Nullable

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/applications/_UpdateApplicationRequest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.cloudfoundry.Nullable;
2424
import org.immutables.value.Value;
2525

26+
import java.util.List;
2627
import java.util.Map;
2728

2829
/**
@@ -154,6 +155,13 @@ abstract class _UpdateApplicationRequest {
154155
@Nullable
155156
abstract String getName();
156157

158+
/**
159+
* The ports on which the application may listen
160+
*/
161+
@JsonProperty("ports")
162+
@Nullable
163+
abstract List<Integer> getPorts();
164+
157165
/**
158166
* Whether the application is production
159167
*/

0 commit comments

Comments
 (0)