Skip to content

Commit 39bc716

Browse files
committed
Releasing version 1.2.5 of the Java SDK for Oracle Bare Metal Cloud Services.
1 parent d1b2ef5 commit 39bc716

32 files changed

+530
-74
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
1313
### Added
1414
- N/A
1515

16+
## 1.2.5 - 2017-04-06
17+
### Changed
18+
- Added opc-client-request-id truncation logic in MultipartObjectAssembler to prevent failures
19+
20+
### Added
21+
- Support for DHCP Search Domain Option
22+
- Support for Compute API 'getWindowsInstanceInitialCredentials'
23+
1624
## 1.2.4 - 2017-03-28
1725
### Fixed
1826
- Allow UUID in path elements

bmc-audit/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.bmc.sdk</groupId>
77
<artifactId>oracle-bmc-java-sdk</artifactId>
8-
<version>1.2.4</version>
8+
<version>1.2.5</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>com.oracle.bmc.sdk</groupId>
2020
<artifactId>oracle-bmc-java-sdk-common</artifactId>
21-
<version>1.2.4</version>
21+
<version>1.2.5</version>
2222
</dependency>
2323
</dependencies>
2424

bmc-bom/pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.oracle.bmc.sdk</groupId>
99
<artifactId>oracle-bmc-java-sdk</artifactId>
10-
<version>1.2.4</version>
10+
<version>1.2.5</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

@@ -24,7 +24,7 @@
2424
<dependency>
2525
<groupId>com.oracle.bmc.sdk</groupId>
2626
<artifactId>oracle-bmc-java-sdk-common</artifactId>
27-
<version>1.2.4</version>
27+
<version>1.2.5</version>
2828
<optional>false</optional>
2929
</dependency>
3030

@@ -33,25 +33,25 @@
3333
<dependency>
3434
<groupId>com.oracle.bmc.sdk</groupId>
3535
<artifactId>oracle-bmc-java-sdk-audit</artifactId>
36-
<version>1.2.4</version>
36+
<version>1.2.5</version>
3737
<optional>false</optional>
3838
</dependency>
3939
<dependency>
4040
<groupId>com.oracle.bmc.sdk</groupId>
4141
<artifactId>oracle-bmc-java-sdk-core</artifactId>
42-
<version>1.2.4</version>
42+
<version>1.2.5</version>
4343
<optional>false</optional>
4444
</dependency>
4545
<dependency>
4646
<groupId>com.oracle.bmc.sdk</groupId>
4747
<artifactId>oracle-bmc-java-sdk-identity</artifactId>
48-
<version>1.2.4</version>
48+
<version>1.2.5</version>
4949
<optional>false</optional>
5050
</dependency>
5151
<dependency>
5252
<groupId>com.oracle.bmc.sdk</groupId>
5353
<artifactId>oracle-bmc-java-sdk-objectstorage</artifactId>
54-
<version>1.2.4</version>
54+
<version>1.2.5</version>
5555
<optional>false</optional>
5656
</dependency>
5757
</dependencies>

bmc-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.bmc.sdk</groupId>
77
<artifactId>oracle-bmc-java-sdk</artifactId>
8-
<version>1.2.4</version>
8+
<version>1.2.5</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

bmc-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.bmc.sdk</groupId>
77
<artifactId>oracle-bmc-java-sdk</artifactId>
8-
<version>1.2.4</version>
8+
<version>1.2.5</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>com.oracle.bmc.sdk</groupId>
2020
<artifactId>oracle-bmc-java-sdk-common</artifactId>
21-
<version>1.2.4</version>
21+
<version>1.2.5</version>
2222
</dependency>
2323
</dependencies>
2424

bmc-core/src/main/java/com/oracle/bmc/core/Compute.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,18 @@ GetConsoleHistoryContentResponse getConsoleHistoryContent(
174174
*/
175175
GetVolumeAttachmentResponse getVolumeAttachment(GetVolumeAttachmentRequest request);
176176

177+
/**
178+
* Gets the generated credentials for the instance. Only works for Windows instances. The returned credentials
179+
* are only valid for the initial login.
180+
*
181+
*
182+
* @param request The request object containing the details to send
183+
* @return A response object containing details about the completed operation
184+
* @throws BmcException when an error occurs.
185+
*/
186+
GetWindowsInstanceInitialCredentialsResponse getWindowsInstanceInitialCredentials(
187+
GetWindowsInstanceInitialCredentialsRequest request);
188+
177189
/**
178190
* Performs one of the power actions (start, stop, softreset, or reset)
179191
* on the specified instance.

bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsync.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,25 @@ Future<GetVolumeAttachmentResponse> getVolumeAttachment(
232232
GetVolumeAttachmentRequest request,
233233
AsyncHandler<GetVolumeAttachmentRequest, GetVolumeAttachmentResponse> handler);
234234

235+
/**
236+
* Gets the generated credentials for the instance. Only works for Windows instances. The returned credentials
237+
* are only valid for the initial login.
238+
*
239+
*
240+
* @param request The request object containing the details to send
241+
* @param handler The request handler to invoke upon completion, may be null.
242+
* @return A Future that can be used to get the response if no AsyncHandler was
243+
* provided. Note, if you provide an AsyncHandler and use the Future, some
244+
* types of responses (like InputStream) may not be able to be read in
245+
* both places as the underlying stream may only be consumed once.
246+
*/
247+
Future<GetWindowsInstanceInitialCredentialsResponse> getWindowsInstanceInitialCredentials(
248+
GetWindowsInstanceInitialCredentialsRequest request,
249+
AsyncHandler<
250+
GetWindowsInstanceInitialCredentialsRequest,
251+
GetWindowsInstanceInitialCredentialsResponse>
252+
handler);
253+
235254
/**
236255
* Performs one of the power actions (start, stop, softreset, or reset)
237256
* on the specified instance.

bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,28 @@ public Future<GetVolumeAttachmentResponse> getVolumeAttachment(
320320
return new TransformingFuture<>(responseFuture, transformer);
321321
}
322322

323+
@Override
324+
public Future<GetWindowsInstanceInitialCredentialsResponse>
325+
getWindowsInstanceInitialCredentials(
326+
GetWindowsInstanceInitialCredentialsRequest request,
327+
AsyncHandler<
328+
GetWindowsInstanceInitialCredentialsRequest,
329+
GetWindowsInstanceInitialCredentialsResponse>
330+
handler) {
331+
LOG.trace("Called async getWindowsInstanceInitialCredentials");
332+
request = GetWindowsInstanceInitialCredentialsConverter.interceptRequest(request);
333+
Invocation.Builder ib =
334+
GetWindowsInstanceInitialCredentialsConverter.fromRequest(client, request);
335+
Function<Response, GetWindowsInstanceInitialCredentialsResponse> transformer =
336+
GetWindowsInstanceInitialCredentialsConverter.fromResponse();
337+
338+
Consumer<Response> onSuccess = new SuccessConsumer<>(handler, transformer, request);
339+
Consumer<Throwable> onError = new ErrorConsumer<>(handler, request);
340+
341+
Future<Response> responseFuture = client.get(ib, request, onSuccess, onError);
342+
return new TransformingFuture<>(responseFuture, transformer);
343+
}
344+
323345
@Override
324346
public Future<InstanceActionResponse> instanceAction(
325347
InstanceActionRequest request,

bmc-core/src/main/java/com/oracle/bmc/core/ComputeClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,20 @@ public GetVolumeAttachmentResponse getVolumeAttachment(GetVolumeAttachmentReques
267267
return transformer.apply(response);
268268
}
269269

270+
@Override
271+
public GetWindowsInstanceInitialCredentialsResponse getWindowsInstanceInitialCredentials(
272+
GetWindowsInstanceInitialCredentialsRequest request) {
273+
LOG.trace("Called getWindowsInstanceInitialCredentials");
274+
request = GetWindowsInstanceInitialCredentialsConverter.interceptRequest(request);
275+
Invocation.Builder ib =
276+
GetWindowsInstanceInitialCredentialsConverter.fromRequest(client, request);
277+
Function<Response, GetWindowsInstanceInitialCredentialsResponse> transformer =
278+
GetWindowsInstanceInitialCredentialsConverter.fromResponse();
279+
280+
Response response = client.get(ib, request);
281+
return transformer.apply(response);
282+
}
283+
270284
@Override
271285
public InstanceActionResponse instanceAction(InstanceActionRequest request) {
272286
LOG.trace("Called instanceAction");

bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetwork.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ public interface VirtualNetwork extends AutoCloseable {
263263
* You may optionally specify a *display name* for the subnet, otherwise a default is provided.
264264
* It does not have to be unique, and you can change it.
265265
* <p>
266-
* You can also add a DNS label for the subnet, which is required if you want the VCN Resolver to resolve
267-
* hostnames for instances in the subnet. For more information, see
266+
* You can also add a DNS label for the subnet, which is required if you want the Internet and
267+
* VCN Resolver to resolve hostnames for instances in the subnet. For more information, see
268268
* [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
269269
*
270270
*
@@ -293,8 +293,8 @@ public interface VirtualNetwork extends AutoCloseable {
293293
* You may optionally specify a *display name* for the VCN, otherwise a default is provided. It does not have to
294294
* be unique, and you can change it.
295295
* <p>
296-
* You can also add a DNS label for the VCN, which is required if you want the instances to use the VCN Resolver
297-
* option for DNS in the VCN. For more information, see
296+
* You can also add a DNS label for the VCN, which is required if you want the instances to use the
297+
* Interent and VCN Resolver option for DNS in the VCN. For more information, see
298298
* [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
299299
* <p>
300300
* The VCN automatically comes with a default route table, default security list, and default set of DHCP options.

0 commit comments

Comments
 (0)