Skip to content

Commit e36330d

Browse files
committed
Merge branch '3.x'
Signed-off-by: Ben Hale <[email protected]>
2 parents e6bc018 + 572d975 commit e36330d

File tree

33 files changed

+659
-32
lines changed

33 files changed

+659
-32
lines changed

cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/util/RequestLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class RequestLogger {
3535
private long requestSentTime;
3636

3737
public void request(HttpClientRequest request) {
38-
request(String.format("%-5s {}", request.method()), request.uri());
38+
request(String.format("%-6s {}", request.method()), request.uri());
3939
}
4040

4141
public void response(HttpClientResponse response) {

cloudfoundry-client-reactor/src/test/java/org/cloudfoundry/reactor/client/v3/deployments/ReactorDeploymentsV3Test.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public void cancel() {
7171
.verify(Duration.ofSeconds(5));
7272
}
7373

74+
@SuppressWarnings("deprecation")
7475
@Test
7576
public void create() {
7677
mockRequest(InteractionContext.builder()
@@ -134,6 +135,7 @@ public void create() {
134135
.verify(Duration.ofSeconds(5));
135136
}
136137

138+
@SuppressWarnings("deprecation")
137139
@Test
138140
public void get() {
139141
mockRequest(InteractionContext.builder()
@@ -189,6 +191,7 @@ public void get() {
189191
.verify(Duration.ofSeconds(5));
190192
}
191193

194+
@SuppressWarnings("deprecation")
192195
@Test
193196
public void list() {
194197
mockRequest(InteractionContext.builder()

cloudfoundry-client-reactor/src/test/resources/logback-test.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
<logger name="cloudfoundry-client.request" level="${CLIENT_LOGGING_LEVEL:-INFO}"/>
2727
<logger name="cloudfoundry-client.response" level="${CLIENT_LOGGING_LEVEL:-INFO}"/>
28+
<logger name="cloudfoundry-client.wire" level="${CLIENT_LOGGING_LEVEL:-INFO}"/>
2829
<logger name="okhttp3" level="WARN"/>
2930
<logger name="reactor.netty" level="INFO"/>
3031
<logger name="stream" level="INFO"/>

cloudfoundry-client/src/main/java/org/cloudfoundry/client/CloudFoundryClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public interface CloudFoundryClient {
6969
/**
7070
* The currently supported Cloud Controller API version
7171
*/
72-
String SUPPORTED_API_VERSION = "2.125.0";
72+
String SUPPORTED_API_VERSION = "2.142.0";
7373

7474
/**
7575
* Main entry point to the Cloud Foundry Application Usage Events Client API
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright 2013-2019 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.cloudfoundry.client.v2;
18+
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
21+
import org.cloudfoundry.Nullable;
22+
import org.immutables.value.Value;
23+
24+
/**
25+
* The entity representing service plan maintenance info
26+
*/
27+
@JsonDeserialize
28+
@Value.Immutable
29+
abstract class _MaintenanceInfo {
30+
31+
/**
32+
* The description
33+
*/
34+
@JsonProperty("description")
35+
@Nullable
36+
abstract String getDescription();
37+
38+
/**
39+
* The version
40+
*/
41+
@JsonProperty("version")
42+
@Nullable
43+
abstract String getVersion();
44+
45+
}

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/serviceinstances/_Plan.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import com.fasterxml.jackson.annotation.JsonProperty;
2020
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2121
import org.cloudfoundry.Nullable;
22+
import org.cloudfoundry.client.v2.MaintenanceInfo;
2223
import org.immutables.value.Value;
2324

2425
/**
@@ -35,6 +36,13 @@ abstract class _Plan {
3536
@Nullable
3637
abstract String getId();
3738

39+
/**
40+
* The maintenance info
41+
*/
42+
@JsonProperty("maintenance_info")
43+
@Nullable
44+
abstract MaintenanceInfo getMaintenanceInfo();
45+
3846
/**
3947
* The name
4048
*/

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/serviceinstances/_ServiceInstance.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2121
import org.cloudfoundry.AllowNulls;
2222
import org.cloudfoundry.Nullable;
23+
import org.cloudfoundry.client.v2.MaintenanceInfo;
2324
import org.immutables.value.Value;
2425

2526
import java.util.List;
@@ -59,13 +60,27 @@ abstract class _ServiceInstance {
5960
@Nullable
6061
abstract LastOperation getLastOperation();
6162

63+
/**
64+
* The maintenance info
65+
*/
66+
@JsonProperty("maintenance_info")
67+
@Nullable
68+
abstract MaintenanceInfo getMaintenanceInfo();
69+
6270
/**
6371
* The name
6472
*/
6573
@JsonProperty("name")
6674
@Nullable
6775
abstract String getName();
6876

77+
/**
78+
* The service broker name
79+
*/
80+
@JsonProperty("service_broker_name")
81+
@Nullable
82+
abstract String getServiceBrokerName();
83+
6984
/**
7085
* The service plan
7186
*/
@@ -88,4 +103,11 @@ abstract class _ServiceInstance {
88103
@Nullable
89104
abstract List<Share> getSharedTo();
90105

106+
/**
107+
* The type
108+
*/
109+
@JsonProperty("type")
110+
@Nullable
111+
abstract String getType();
112+
91113
}

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/serviceinstances/_ServiceInstanceEntity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.fasterxml.jackson.annotation.JsonProperty;
2121
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2222
import org.cloudfoundry.Nullable;
23+
import org.cloudfoundry.client.v2.MaintenanceInfo;
2324
import org.immutables.value.Value;
2425

2526
/**
@@ -51,6 +52,13 @@ abstract class _ServiceInstanceEntity extends BaseServiceInstanceEntity {
5152
@Nullable
5253
abstract LastOperation getLastOperation();
5354

55+
/**
56+
* The instance maintenance info
57+
*/
58+
@JsonProperty("maintenance_info")
59+
@Nullable
60+
abstract MaintenanceInfo getMaintenanceInfo();
61+
5462
/**
5563
* The service id
5664
*/

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/serviceinstances/_UnionServiceInstanceEntity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.fasterxml.jackson.annotation.JsonProperty;
2121
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2222
import org.cloudfoundry.Nullable;
23+
import org.cloudfoundry.client.v2.MaintenanceInfo;
2324
import org.immutables.value.Value;
2425

2526
/**
@@ -51,6 +52,13 @@ abstract class _UnionServiceInstanceEntity extends BaseServiceInstanceEntity {
5152
@Nullable
5253
abstract LastOperation getLastOperation();
5354

55+
/**
56+
* The maintenance info
57+
*/
58+
@JsonProperty("maintenance_info")
59+
@Nullable
60+
abstract MaintenanceInfo getMaintenanceInfo();
61+
5462
/**
5563
* URL to which requests for bound routes will be forwarded
5664
*/

cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/serviceplans/_ServicePlanEntity.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.fasterxml.jackson.annotation.JsonProperty;
2121
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2222
import org.cloudfoundry.Nullable;
23+
import org.cloudfoundry.client.v2.MaintenanceInfo;
2324
import org.immutables.value.Value;
2425

2526
/**
@@ -64,13 +65,34 @@ abstract class _ServicePlanEntity {
6465
@Nullable
6566
abstract Boolean getFree();
6667

68+
/**
69+
* The plan maintenance info
70+
*/
71+
@JsonProperty("maintenance_info")
72+
@Nullable
73+
abstract MaintenanceInfo getMaintenanceInfo();
74+
75+
/**
76+
* The maximum polling duration
77+
*/
78+
@JsonProperty("maximum_polling_duration")
79+
@Nullable
80+
abstract Long getMaximumPollingDuration();
81+
6782
/**
6883
* The name
6984
*/
7085
@JsonProperty("name")
7186
@Nullable
7287
abstract String getName();
7388

89+
/**
90+
* Whether the plan is updatable
91+
*/
92+
@JsonProperty("plan_updateable")
93+
@Nullable
94+
abstract Boolean getPlanUpdatable();
95+
7496
/**
7597
* The public flag
7698
*/

0 commit comments

Comments
 (0)