Skip to content

Commit ba048af

Browse files
committed
Merge branch '2.x'
2 parents 0ba9de6 + 2365e6b commit ba048af

File tree

10 files changed

+176
-3
lines changed

10 files changed

+176
-3
lines changed

cloudfoundry-client-reactor/src/test/java/org/cloudfoundry/reactor/client/v2/applications/ReactorApplicationsV2Test.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ public void statistics() {
800800
.expectNext(ApplicationStatisticsResponse.builder()
801801
.instance("0", InstanceStatistics.builder()
802802
.state("RUNNING")
803+
.isolationSegment("iso-seg-name")
803804
.statistics(org.cloudfoundry.client.v2.applications.Statistics.builder()
804805
.usage(Usage.builder()
805806
.disk(66392064L)

cloudfoundry-client-reactor/src/test/resources/fixtures/client/v2/apps/GET_{id}_stats_response.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"0": {
33
"state": "RUNNING",
4+
"isolation_segment": "iso-seg-name",
45
"stats": {
56
"usage": {
67
"disk": 66392064,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public interface CloudFoundryClient {
6767
/**
6868
* The currently supported Cloud Controller API version
6969
*/
70-
String SUPPORTED_API_VERSION = "2.82.0";
70+
String SUPPORTED_API_VERSION = "2.94.0";
7171

7272
/**
7373
* Main entry point to the Cloud Foundry Application Usage Events Client API

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
@Value.Immutable
2626
abstract class _InstanceStatistics {
2727

28+
/**
29+
* The isolation segment
30+
*/
31+
@JsonProperty("isolation_segment")
32+
@Nullable
33+
abstract String getIsolationSegment();
34+
2835
/**
2936
* The instance state
3037
*/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright 2013-2017 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.serviceplans;
18+
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
21+
import org.immutables.value.Value;
22+
23+
import java.util.Map;
24+
25+
/**
26+
* The entity representing a service plan schema
27+
*/
28+
@JsonDeserialize
29+
@Value.Immutable
30+
abstract class _Schema {
31+
32+
@JsonProperty("parameters")
33+
abstract Map<String, String> getParameters();
34+
35+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright 2013-2017 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.serviceplans;
18+
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
21+
import org.immutables.value.Value;
22+
23+
/**
24+
* The entity representing service plan schemas
25+
*/
26+
@JsonDeserialize
27+
@Value.Immutable
28+
abstract class _Schemas {
29+
30+
/**
31+
* The service binding schema
32+
*/
33+
@JsonProperty("service_binding")
34+
abstract ServiceBindingSchema getServiceBinding();
35+
36+
/**
37+
* The service instance schema
38+
*/
39+
@JsonProperty("service_instance")
40+
abstract ServiceInstanceSchema getServiceInstance();
41+
42+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright 2013-2017 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.serviceplans;
18+
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
21+
import org.immutables.value.Value;
22+
23+
/**
24+
* The entity representing a service binding schema
25+
*/
26+
@JsonDeserialize
27+
@Value.Immutable
28+
abstract class _ServiceBindingSchema {
29+
30+
/**
31+
* The create schema
32+
*/
33+
@JsonProperty("create")
34+
abstract Schema getCreate();
35+
36+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright 2013-2017 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.serviceplans;
18+
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
21+
import org.immutables.value.Value;
22+
23+
/**
24+
* The entity representing a service instance schema
25+
*/
26+
@JsonDeserialize
27+
@Value.Immutable
28+
abstract class _ServiceInstanceSchema {
29+
30+
/**
31+
* The create schema
32+
*/
33+
@JsonProperty("create")
34+
abstract Schema getCreate();
35+
36+
/**
37+
* The update schema
38+
*/
39+
@JsonProperty("update")
40+
abstract Schema getUpdate();
41+
42+
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ abstract class _ServicePlanEntity {
7878
@Nullable
7979
abstract Boolean getPubliclyVisible();
8080

81+
/**
82+
* The schemas
83+
*/
84+
@JsonProperty("schemas")
85+
@Nullable
86+
abstract Schemas getSchemas();
87+
8188
/**
8289
* The service id
8390
*/

integration-test/src/test/java/org/cloudfoundry/IfCloudFoundryVersion.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@
4545

4646
enum CloudFoundryVersion {
4747

48-
PCF_1_8(Version.forIntegers(2, 58, 0)),
49-
5048
PCF_1_9(Version.forIntegers(2, 65, 0)),
5149

5250
PCF_1_10(Version.forIntegers(2, 75, 0)),
5351

52+
PCF_1_11(Version.forIntegers(2, 82, 0)),
53+
54+
PCF_1_12(Version.forIntegers(2, 94, 0)),
55+
5456
UNSPECIFIED(Version.forIntegers(0));
5557

5658
private final Version version;

0 commit comments

Comments
 (0)