Skip to content

Commit fb08a56

Browse files
authored
Releasing version 1.9.2
Releasing version 1.9.2
2 parents 8bb40e5 + ae0cd58 commit fb08a56

File tree

163 files changed

+8652
-275
lines changed

Some content is hidden

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

163 files changed

+8652
-275
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/).
5+
## 1.9.2 - 2019-10-29
6+
### Added
7+
- Support for wallet rotation operations on Autonomous Databases in the Database service
8+
- Support for adding and removing image shape compatibility entries in the Compute service
9+
- Support for managing redirects in the Web Application Acceleration and Security service
10+
- Support for migrating zones from the Dyn HTTP Redirect Service to Oracle Cloud Infrastructure in the DNS service
11+
512
## 1.9.1 - 2019-10-15
613
### Added
714
- Support for the Digital Assistant service

bmc-addons/bmc-apache-connector-provider/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.oci.sdk</groupId>
77
<artifactId>oci-java-sdk-addons</artifactId>
8-
<version>1.9.1</version>
8+
<version>1.9.2</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -46,7 +46,7 @@
4646
<dependency>
4747
<groupId>com.oracle.oci.sdk</groupId>
4848
<artifactId>oci-java-sdk-common</artifactId>
49-
<version>1.9.1</version>
49+
<version>1.9.2</version>
5050
</dependency>
5151

5252
<!-- Explicitly pull in this version of httpclient and its httpcore dependency to address:

bmc-addons/bmc-resteasy-client-configurator/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.oci.sdk</groupId>
77
<artifactId>oci-java-sdk-addons</artifactId>
8-
<version>1.9.1</version>
8+
<version>1.9.2</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>com.oracle.oci.sdk</groupId>
3838
<artifactId>oci-java-sdk-common</artifactId>
39-
<version>1.9.1</version>
39+
<version>1.9.2</version>
4040
</dependency>
4141
</dependencies>
4242
</project>

bmc-addons/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.oci.sdk</groupId>
77
<artifactId>oci-java-sdk</artifactId>
8-
<version>1.9.1</version>
8+
<version>1.9.2</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

bmc-announcementsservice/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk</artifactId>
7-
<version>1.9.1</version>
7+
<version>1.9.2</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>oci-java-sdk-announcementsservice</artifactId>
@@ -17,7 +17,7 @@
1717
<dependency>
1818
<groupId>com.oracle.oci.sdk</groupId>
1919
<artifactId>oci-java-sdk-common</artifactId>
20-
<version>1.9.1</version>
20+
<version>1.9.2</version>
2121
</dependency>
2222
</dependencies>
2323
</project>

bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/Announcement.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,13 @@ GetAnnouncementUserStatusResponse getAnnouncementUserStatus(
7373
*/
7474
UpdateAnnouncementUserStatusResponse updateAnnouncementUserStatus(
7575
UpdateAnnouncementUserStatusRequest request);
76+
77+
/**
78+
* Gets the pre-configured paginators available for list operations in this service which may return multiple
79+
* pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or
80+
* resources/records, can be iterated through without having to manually deal with pagination and page tokens.
81+
*
82+
* @return The service paginators.
83+
*/
84+
AnnouncementPaginators getPaginators();
7685
}

bmc-announcementsservice/src/main/java/com/oracle/bmc/announcementsservice/AnnouncementClient.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public class AnnouncementClient implements Announcement {
2222
// attempt twice if it's instance principals, immediately failures will try to refresh the token
2323
private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2;
2424

25+
private final AnnouncementPaginators paginators;
26+
2527
@lombok.Getter(value = lombok.AccessLevel.PACKAGE)
2628
private final com.oracle.bmc.http.internal.RestClient client;
2729

@@ -205,6 +207,8 @@ public AnnouncementClient(
205207
restClientFactory.create(
206208
defaultRequestSigner, requestSigners, clientConfigurationToUse);
207209

210+
this.paginators = new AnnouncementPaginators(this);
211+
208212
if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) {
209213
com.oracle.bmc.auth.RegionProvider provider =
210214
(com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider;
@@ -419,4 +423,9 @@ public UpdateAnnouncementUserStatusResponse updateAnnouncementUserStatus(
419423
});
420424
});
421425
}
426+
427+
@Override
428+
public AnnouncementPaginators getPaginators() {
429+
return paginators;
430+
}
422431
}
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
/**
2+
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
3+
*/
4+
package com.oracle.bmc.announcementsservice;
5+
6+
import com.oracle.bmc.announcementsservice.requests.*;
7+
import com.oracle.bmc.announcementsservice.responses.*;
8+
9+
/**
10+
* Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface
11+
* to any list operations of Announcement where multiple pages of data may be fetched.
12+
* Two styles of iteration are supported:
13+
*
14+
* <ul>
15+
* <li>Iterating over the Response objects returned by the list operation. These are referred to as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: <i>listUsersResponseIterator</i></li>
16+
* <li>Iterating over the resources/records being listed. These are referred to as RecordIterators, and the methods are suffixed with RecordIterator. For example: <i>listUsersRecordIterator</i></li>
17+
* </ul>
18+
*
19+
* These iterables abstract away the need to write code to manually handle pagination via looping and using the page tokens.
20+
* They will automatically fetch more data from the service when required.
21+
*
22+
* As an example, if we were using the ListUsers operation in IdentityService, then the {@link java.lang.Iterable} returned by calling a
23+
* ResponseIterator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable}
24+
* returned by calling a RecordIterator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all.
25+
* In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available.
26+
*/
27+
@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1")
28+
@lombok.RequiredArgsConstructor
29+
public class AnnouncementPaginators {
30+
private final Announcement client;
31+
32+
/**
33+
* Creates a new iterable which will iterate over the responses received from the listAnnouncements operation. This iterable
34+
* will fetch more data from the server as needed.
35+
*
36+
* @param request a request which can be sent to the service operation
37+
* @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service.
38+
*/
39+
public Iterable<ListAnnouncementsResponse> listAnnouncementsResponseIterator(
40+
final ListAnnouncementsRequest request) {
41+
return new com.oracle.bmc.paginator.internal.ResponseIterable<
42+
ListAnnouncementsRequest.Builder, ListAnnouncementsRequest,
43+
ListAnnouncementsResponse>(
44+
new com.google.common.base.Supplier<ListAnnouncementsRequest.Builder>() {
45+
@Override
46+
public ListAnnouncementsRequest.Builder get() {
47+
return ListAnnouncementsRequest.builder().copy(request);
48+
}
49+
},
50+
new com.google.common.base.Function<ListAnnouncementsResponse, String>() {
51+
@Override
52+
public String apply(ListAnnouncementsResponse response) {
53+
return response.getOpcNextPage();
54+
}
55+
},
56+
new com.google.common.base.Function<
57+
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
58+
ListAnnouncementsRequest.Builder>,
59+
ListAnnouncementsRequest>() {
60+
@Override
61+
public ListAnnouncementsRequest apply(
62+
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
63+
ListAnnouncementsRequest.Builder>
64+
input) {
65+
if (input.getToken() == null) {
66+
return input.getRequestBuilder().build();
67+
} else {
68+
return input.getRequestBuilder()
69+
.page(input.getToken().orNull())
70+
.build();
71+
}
72+
}
73+
},
74+
new com.google.common.base.Function<
75+
ListAnnouncementsRequest, ListAnnouncementsResponse>() {
76+
@Override
77+
public ListAnnouncementsResponse apply(ListAnnouncementsRequest request) {
78+
return client.listAnnouncements(request);
79+
}
80+
});
81+
}
82+
83+
/**
84+
* Creates a new iterable which will iterate over the {@link com.oracle.bmc.announcementsservice.model.AnnouncementSummary} objects
85+
* contained in responses from the listAnnouncements operation. This iterable will fetch more data from the
86+
* server as needed.
87+
*
88+
* @param request a request which can be sent to the service operation
89+
* @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.announcementsservice.model.AnnouncementSummary} objects
90+
* contained in responses received from the service.
91+
*/
92+
public Iterable<com.oracle.bmc.announcementsservice.model.AnnouncementSummary>
93+
listAnnouncementsRecordIterator(final ListAnnouncementsRequest request) {
94+
return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
95+
ListAnnouncementsRequest.Builder, ListAnnouncementsRequest,
96+
ListAnnouncementsResponse,
97+
com.oracle.bmc.announcementsservice.model.AnnouncementSummary>(
98+
new com.google.common.base.Supplier<ListAnnouncementsRequest.Builder>() {
99+
@Override
100+
public ListAnnouncementsRequest.Builder get() {
101+
return ListAnnouncementsRequest.builder().copy(request);
102+
}
103+
},
104+
new com.google.common.base.Function<ListAnnouncementsResponse, String>() {
105+
@Override
106+
public String apply(ListAnnouncementsResponse response) {
107+
return response.getOpcNextPage();
108+
}
109+
},
110+
new com.google.common.base.Function<
111+
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
112+
ListAnnouncementsRequest.Builder>,
113+
ListAnnouncementsRequest>() {
114+
@Override
115+
public ListAnnouncementsRequest apply(
116+
com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
117+
ListAnnouncementsRequest.Builder>
118+
input) {
119+
if (input.getToken() == null) {
120+
return input.getRequestBuilder().build();
121+
} else {
122+
return input.getRequestBuilder()
123+
.page(input.getToken().orNull())
124+
.build();
125+
}
126+
}
127+
},
128+
new com.google.common.base.Function<
129+
ListAnnouncementsRequest, ListAnnouncementsResponse>() {
130+
@Override
131+
public ListAnnouncementsResponse apply(ListAnnouncementsRequest request) {
132+
return client.listAnnouncements(request);
133+
}
134+
},
135+
new com.google.common.base.Function<
136+
ListAnnouncementsResponse,
137+
java.util.List<
138+
com.oracle.bmc.announcementsservice.model.AnnouncementSummary>>() {
139+
@Override
140+
public java.util.List<
141+
com.oracle.bmc.announcementsservice.model.AnnouncementSummary>
142+
apply(ListAnnouncementsResponse response) {
143+
return response.getAnnouncementsCollection().getItems();
144+
}
145+
});
146+
}
147+
}

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.oci.sdk</groupId>
77
<artifactId>oci-java-sdk</artifactId>
8-
<version>1.9.1</version>
8+
<version>1.9.2</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>com.oracle.oci.sdk</groupId>
2121
<artifactId>oci-java-sdk-common</artifactId>
22-
<version>1.9.1</version>
22+
<version>1.9.2</version>
2323
</dependency>
2424
</dependencies>
2525

bmc-autoscaling/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk</artifactId>
7-
<version>1.9.1</version>
7+
<version>1.9.2</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>oci-java-sdk-autoscaling</artifactId>
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>com.oracle.oci.sdk</groupId>
1717
<artifactId>oci-java-sdk-common</artifactId>
18-
<version>1.9.1</version>
18+
<version>1.9.2</version>
1919
</dependency>
2020
</dependencies>
2121
</project>

0 commit comments

Comments
 (0)