Skip to content

Commit ff2057a

Browse files
feat(api): Updated java-sdk to adopt Code Engine API specification changes
1 parent a75a977 commit ff2057a

File tree

173 files changed

+6669
-1262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+6669
-1262
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Build Status](https://travis-ci.com/IBM/code-engine-java-sdk.svg?branch=main)](https://travis-ci.com/IBM/code-engine-java-sdk)
22
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
33

4-
# IBM Cloud Code Engine Java SDK Version 4.2.0
4+
# IBM Cloud Code Engine Java SDK Version 4.7.0
55

66
Java client library to interact with the [Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
77

@@ -39,7 +39,7 @@ The IBM Cloud Code Engine Java SDK allows developers to programmatically interac
3939

4040
Service Name | Artifact Coordinates
4141
--- | ---
42-
[Code Engine](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.0) | com.ibm.cloud.code-engine:4.2.0
42+
[Code Engine](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.0) | com.ibm.cloud.code-engine:4.7.0
4343

4444
## Prerequisites
4545

@@ -51,7 +51,7 @@ Service Name | Artifact Coordinates
5151

5252
## Installation
5353

54-
The current version of this SDK is: 4.2.0
54+
The current version of this SDK is: 4.7.0
5555

5656
Each service's artifact coordinates are listed in the table above.
5757

@@ -70,14 +70,14 @@ Here are examples for maven and gradle:
7070
<dependency>
7171
<groupId>com.ibm.cloud</groupId>
7272
<artifactId>code-engine</artifactId>
73-
<version>4.2.0</version>
73+
<version>4.7.0</version>
7474
</dependency>
7575
```
7676

7777
### Gradle
7878

7979
```gradle
80-
compile 'com.ibm.cloud:code-engine:4.2.0'
80+
compile 'com.ibm.cloud:code-engine:4.7.0'
8181
```
8282

8383
## Using the SDK

modules/code-engine/src/main/java/com/ibm/cloud/code_engine/code_engine/v2/CodeEngine.java

Lines changed: 455 additions & 135 deletions
Large diffs are not rendered by default.

modules/code-engine/src/main/java/com/ibm/cloud/code_engine/code_engine/v2/model/App.java

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13+
1314
package com.ibm.cloud.code_engine.code_engine.v2.model;
1415

1516
import java.util.List;
@@ -78,6 +79,8 @@ public interface Status {
7879
protected String build;
7980
@SerializedName("build_run")
8081
protected String buildRun;
82+
@SerializedName("computed_env_variables")
83+
protected List<EnvVar> computedEnvVariables;
8184
@SerializedName("created_at")
8285
protected String createdAt;
8386
protected String endpoint;
@@ -157,14 +160,26 @@ public String getBuild() {
157160
/**
158161
* Gets the buildRun.
159162
*
160-
* Reference to a buildrun that is associated with the application.
163+
* Reference to a build run that is associated with the application.
161164
*
162165
* @return the buildRun
163166
*/
164167
public String getBuildRun() {
165168
return buildRun;
166169
}
167170

171+
/**
172+
* Gets the computedEnvVariables.
173+
*
174+
* References to config maps, secrets or literal values, which are defined and set by Code Engine and are exposed as
175+
* environment variables in the application.
176+
*
177+
* @return the computedEnvVariables
178+
*/
179+
public List<EnvVar> getComputedEnvVariables() {
180+
return computedEnvVariables;
181+
}
182+
168183
/**
169184
* Gets the createdAt.
170185
*
@@ -179,8 +194,8 @@ public String getCreatedAt() {
179194
/**
180195
* Gets the endpoint.
181196
*
182-
* Optional URL to invoke app. Depending on visibility this is accessible publicly or in the private network only.
183-
* Empty in case 'managed_domain_mappings' is set to 'local'.
197+
* Optional URL to invoke the app. Depending on visibility, this is accessible publicly or in the private network
198+
* only. Empty in case 'managed_domain_mappings' is set to 'local'.
184199
*
185200
* @return the endpoint
186201
*/
@@ -191,7 +206,7 @@ public String getEndpoint() {
191206
/**
192207
* Gets the endpointInternal.
193208
*
194-
* URL to app that is only visible within the project.
209+
* The URL to the app that is only visible within the project.
195210
*
196211
* @return the endpointInternal
197212
*/
@@ -320,7 +335,7 @@ public Probe getProbeReadiness() {
320335
/**
321336
* Gets the projectId.
322337
*
323-
* The ID of the project the resource is located in.
338+
* The ID of the project in which the resource is located.
324339
*
325340
* @return the projectId
326341
*/
@@ -366,7 +381,7 @@ public List<String> getRunArguments() {
366381
/**
367382
* Gets the runAsUser.
368383
*
369-
* Optional user ID (UID) to run the app (e.g., `1001`).
384+
* Optional user ID (UID) to run the app.
370385
*
371386
* @return the runAsUser
372387
*/
@@ -389,8 +404,8 @@ public List<String> getRunCommands() {
389404
/**
390405
* Gets the runEnvVariables.
391406
*
392-
* References to config maps, secrets or literal values, which are exposed as environment variables in the
393-
* application.
407+
* References to config maps, secrets or literal values, which are defined by the app owner and are exposed as
408+
* environment variables in the application.
394409
*
395410
* @return the runEnvVariables
396411
*/
@@ -460,7 +475,7 @@ public String getScaleCpuLimit() {
460475
/**
461476
* Gets the scaleDownDelay.
462477
*
463-
* Optional amount of time in seconds that delays the scale down behavior for an app instance.
478+
* Optional amount of time in seconds that delays the scale-down behavior for an app instance.
464479
*
465480
* @return the scaleDownDelay
466481
*/

0 commit comments

Comments
 (0)