Skip to content

Commit 837494e

Browse files
authored
Merge pull request #27 from oracle/release_20171012
Releasing version 1.2.16
2 parents ec81c6a + db105bc commit 837494e

File tree

824 files changed

+34734
-3989
lines changed

Some content is hidden

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

824 files changed

+34734
-3989
lines changed

CHANGELOG.md

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

16+
## 1.2.16 - 2017-10-12
17+
18+
### Changed
19+
- Removed javax.validation.constraints annotations from model classes. The annotations were not used, and may not necessarily be the same as the constraints enforced by the services.
20+
- The clients only serialize and transmit fields that were explicitly set. If you want to transmit a field that is `null`, please set it to `null` explicitly.
21+
22+
### Added
23+
- Support for database as a service (DBaaS)
24+
- Support for VNIC routes and source/destination check
25+
- Support for specifying block volume size in GB
26+
- Support for updating console history metadata and specifying a display name when capturing console history
27+
- Support for FRA Region (eu-frankfurt-1)
28+
- Exceptions expose client-side request id in cases of timeout or client-side failure
29+
30+
### Deprecated
31+
- Passing the block volume size in MB is deprecated
32+
1633
## 1.2.15 - 2017-09-11
1734

1835
### Changed

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.2.15</version>
8+
<version>1.2.16</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

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

bmc-audit/src/main/java/com/oracle/bmc/audit/AuditAsyncClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ public java.util.concurrent.Future<ListEventsResponse> listEvents(
123123
com.oracle.bmc.responses.AsyncHandler<ListEventsRequest, ListEventsResponse> handler) {
124124
LOG.trace("Called async listEvents");
125125
request = ListEventsConverter.interceptRequest(request);
126-
javax.ws.rs.client.Invocation.Builder ib = ListEventsConverter.fromRequest(client, request);
126+
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
127+
ListEventsConverter.fromRequest(client, request);
127128
com.google.common.base.Function<javax.ws.rs.core.Response, ListEventsResponse> transformer =
128129
ListEventsConverter.fromResponse();
129130

bmc-audit/src/main/java/com/oracle/bmc/audit/AuditClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public void close() {
121121
public ListEventsResponse listEvents(ListEventsRequest request) {
122122
LOG.trace("Called listEvents");
123123
request = ListEventsConverter.interceptRequest(request);
124-
javax.ws.rs.client.Invocation.Builder ib = ListEventsConverter.fromRequest(client, request);
124+
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
125+
ListEventsConverter.fromRequest(client, request);
125126
com.google.common.base.Function<javax.ws.rs.core.Response, ListEventsResponse> transformer =
126127
ListEventsConverter.fromResponse();
127128

bmc-audit/src/main/java/com/oracle/bmc/audit/internal/http/ListEventsConverter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static ListEventsRequest interceptRequest(ListEventsRequest request) {
1919
return request;
2020
}
2121

22-
public static javax.ws.rs.client.Invocation.Builder fromRequest(
22+
public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
2323
com.oracle.bmc.http.internal.RestClient client, ListEventsRequest request) {
2424
if (request == null) {
2525
throw new NullPointerException("request instance is required");
@@ -37,7 +37,7 @@ public static javax.ws.rs.client.Invocation.Builder fromRequest(
3737
throw new NullPointerException("endTime is required");
3838
}
3939

40-
javax.ws.rs.client.WebTarget target =
40+
com.oracle.bmc.http.internal.WrappedWebTarget target =
4141
client.getBaseTarget().path("/20160918").path("auditEvents");
4242

4343
target =
@@ -66,7 +66,7 @@ public static javax.ws.rs.client.Invocation.Builder fromRequest(
6666
request.getPage()));
6767
}
6868

69-
javax.ws.rs.client.Invocation.Builder ib = target.request();
69+
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
7070

7171
ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
7272

bmc-audit/src/main/java/com/oracle/bmc/audit/model/AuditEvent.java

Lines changed: 140 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,85 +6,202 @@
66
@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918")
77
@lombok.Value
88
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AuditEvent.Builder.class)
9+
@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME)
910
public class AuditEvent {
1011
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
1112
@lombok.experimental.Accessors(fluent = true)
12-
@lombok.Setter
1313
public static class Builder {
1414
@com.fasterxml.jackson.annotation.JsonProperty("tenantId")
1515
private String tenantId;
1616

17+
public Builder tenantId(String tenantId) {
18+
this.tenantId = tenantId;
19+
this.__explicitlySet__.add("tenantId");
20+
return this;
21+
}
22+
1723
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
1824
private String compartmentId;
1925

26+
public Builder compartmentId(String compartmentId) {
27+
this.compartmentId = compartmentId;
28+
this.__explicitlySet__.add("compartmentId");
29+
return this;
30+
}
31+
2032
@com.fasterxml.jackson.annotation.JsonProperty("eventId")
2133
private String eventId;
2234

35+
public Builder eventId(String eventId) {
36+
this.eventId = eventId;
37+
this.__explicitlySet__.add("eventId");
38+
return this;
39+
}
40+
2341
@com.fasterxml.jackson.annotation.JsonProperty("eventSource")
2442
private String eventSource;
2543

44+
public Builder eventSource(String eventSource) {
45+
this.eventSource = eventSource;
46+
this.__explicitlySet__.add("eventSource");
47+
return this;
48+
}
49+
2650
@com.fasterxml.jackson.annotation.JsonProperty("eventType")
2751
private String eventType;
2852

53+
public Builder eventType(String eventType) {
54+
this.eventType = eventType;
55+
this.__explicitlySet__.add("eventType");
56+
return this;
57+
}
58+
2959
@com.fasterxml.jackson.annotation.JsonProperty("eventTime")
3060
private java.util.Date eventTime;
3161

62+
public Builder eventTime(java.util.Date eventTime) {
63+
this.eventTime = eventTime;
64+
this.__explicitlySet__.add("eventTime");
65+
return this;
66+
}
67+
3268
@com.fasterxml.jackson.annotation.JsonProperty("principalId")
3369
private String principalId;
3470

71+
public Builder principalId(String principalId) {
72+
this.principalId = principalId;
73+
this.__explicitlySet__.add("principalId");
74+
return this;
75+
}
76+
3577
@com.fasterxml.jackson.annotation.JsonProperty("credentialId")
3678
private String credentialId;
3779

80+
public Builder credentialId(String credentialId) {
81+
this.credentialId = credentialId;
82+
this.__explicitlySet__.add("credentialId");
83+
return this;
84+
}
85+
3886
@com.fasterxml.jackson.annotation.JsonProperty("requestAction")
3987
private String requestAction;
4088

89+
public Builder requestAction(String requestAction) {
90+
this.requestAction = requestAction;
91+
this.__explicitlySet__.add("requestAction");
92+
return this;
93+
}
94+
4195
@com.fasterxml.jackson.annotation.JsonProperty("requestId")
4296
private String requestId;
4397

98+
public Builder requestId(String requestId) {
99+
this.requestId = requestId;
100+
this.__explicitlySet__.add("requestId");
101+
return this;
102+
}
103+
44104
@com.fasterxml.jackson.annotation.JsonProperty("requestAgent")
45105
private String requestAgent;
46106

107+
public Builder requestAgent(String requestAgent) {
108+
this.requestAgent = requestAgent;
109+
this.__explicitlySet__.add("requestAgent");
110+
return this;
111+
}
112+
47113
@com.fasterxml.jackson.annotation.JsonProperty("requestHeaders")
48114
private java.util.Map<String, java.util.List<String>> requestHeaders;
49115

116+
public Builder requestHeaders(
117+
java.util.Map<String, java.util.List<String>> requestHeaders) {
118+
this.requestHeaders = requestHeaders;
119+
this.__explicitlySet__.add("requestHeaders");
120+
return this;
121+
}
122+
50123
@com.fasterxml.jackson.annotation.JsonProperty("requestOrigin")
51124
private String requestOrigin;
52125

126+
public Builder requestOrigin(String requestOrigin) {
127+
this.requestOrigin = requestOrigin;
128+
this.__explicitlySet__.add("requestOrigin");
129+
return this;
130+
}
131+
53132
@com.fasterxml.jackson.annotation.JsonProperty("requestParameters")
54133
private java.util.Map<String, java.util.List<String>> requestParameters;
55134

135+
public Builder requestParameters(
136+
java.util.Map<String, java.util.List<String>> requestParameters) {
137+
this.requestParameters = requestParameters;
138+
this.__explicitlySet__.add("requestParameters");
139+
return this;
140+
}
141+
56142
@com.fasterxml.jackson.annotation.JsonProperty("requestResource")
57143
private String requestResource;
58144

145+
public Builder requestResource(String requestResource) {
146+
this.requestResource = requestResource;
147+
this.__explicitlySet__.add("requestResource");
148+
return this;
149+
}
150+
59151
@com.fasterxml.jackson.annotation.JsonProperty("responseHeaders")
60152
private java.util.Map<String, java.util.List<String>> responseHeaders;
61153

154+
public Builder responseHeaders(
155+
java.util.Map<String, java.util.List<String>> responseHeaders) {
156+
this.responseHeaders = responseHeaders;
157+
this.__explicitlySet__.add("responseHeaders");
158+
return this;
159+
}
160+
62161
@com.fasterxml.jackson.annotation.JsonProperty("responseStatus")
63162
private String responseStatus;
64163

164+
public Builder responseStatus(String responseStatus) {
165+
this.responseStatus = responseStatus;
166+
this.__explicitlySet__.add("responseStatus");
167+
return this;
168+
}
169+
65170
@com.fasterxml.jackson.annotation.JsonProperty("responseTime")
66171
private java.util.Date responseTime;
67172

173+
public Builder responseTime(java.util.Date responseTime) {
174+
this.responseTime = responseTime;
175+
this.__explicitlySet__.add("responseTime");
176+
return this;
177+
}
178+
179+
@com.fasterxml.jackson.annotation.JsonIgnore
180+
private final java.util.Set<String> __explicitlySet__ = new java.util.HashSet<String>();
181+
68182
public AuditEvent build() {
69-
return new AuditEvent(
70-
tenantId,
71-
compartmentId,
72-
eventId,
73-
eventSource,
74-
eventType,
75-
eventTime,
76-
principalId,
77-
credentialId,
78-
requestAction,
79-
requestId,
80-
requestAgent,
81-
requestHeaders,
82-
requestOrigin,
83-
requestParameters,
84-
requestResource,
85-
responseHeaders,
86-
responseStatus,
87-
responseTime);
183+
AuditEvent __instance__ =
184+
new AuditEvent(
185+
tenantId,
186+
compartmentId,
187+
eventId,
188+
eventSource,
189+
eventType,
190+
eventTime,
191+
principalId,
192+
credentialId,
193+
requestAction,
194+
requestId,
195+
requestAgent,
196+
requestHeaders,
197+
requestOrigin,
198+
requestParameters,
199+
requestResource,
200+
responseHeaders,
201+
responseStatus,
202+
responseTime);
203+
__instance__.__explicitlySet__.addAll(__explicitlySet__);
204+
return __instance__;
88205
}
89206

90207
@com.fasterxml.jackson.annotation.JsonIgnore
@@ -121,35 +238,30 @@ public static Builder builder() {
121238
* The OCID of the tenant.
122239
**/
123240
@com.fasterxml.jackson.annotation.JsonProperty("tenantId")
124-
@javax.validation.constraints.Size(min = 1, max = 255)
125241
String tenantId;
126242

127243
/**
128244
* The OCID of the compartment.
129245
**/
130246
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
131-
@javax.validation.constraints.Size(min = 1, max = 255)
132247
String compartmentId;
133248

134249
/**
135250
* The GUID of the event.
136251
**/
137252
@com.fasterxml.jackson.annotation.JsonProperty("eventId")
138-
@javax.validation.constraints.Size(min = 1, max = 255)
139253
String eventId;
140254

141255
/**
142256
* The source of the event.
143257
**/
144258
@com.fasterxml.jackson.annotation.JsonProperty("eventSource")
145-
@javax.validation.constraints.Size(min = 1, max = 255)
146259
String eventSource;
147260

148261
/**
149262
* The type of the event.
150263
**/
151264
@com.fasterxml.jackson.annotation.JsonProperty("eventType")
152-
@javax.validation.constraints.Size(min = 1, max = 255)
153265
String eventType;
154266

155267
/**
@@ -162,7 +274,6 @@ public static Builder builder() {
162274
* The OCID of the user whose action triggered the event.
163275
**/
164276
@com.fasterxml.jackson.annotation.JsonProperty("principalId")
165-
@javax.validation.constraints.Size(min = 1, max = 255)
166277
String principalId;
167278

168279
/**
@@ -175,7 +286,6 @@ public static Builder builder() {
175286
* The HTTP method of the request.
176287
**/
177288
@com.fasterxml.jackson.annotation.JsonProperty("requestAction")
178-
@javax.validation.constraints.Size(min = 1, max = 255)
179289
String requestAction;
180290

181291
/**
@@ -200,7 +310,6 @@ public static Builder builder() {
200310
* The IP address of the source of the request.
201311
**/
202312
@com.fasterxml.jackson.annotation.JsonProperty("requestOrigin")
203-
@javax.validation.constraints.Size(min = 1, max = 255)
204313
String requestOrigin;
205314

206315
/**
@@ -225,12 +334,14 @@ public static Builder builder() {
225334
* The status code of the response.
226335
**/
227336
@com.fasterxml.jackson.annotation.JsonProperty("responseStatus")
228-
@javax.validation.constraints.Size(min = 1, max = 255)
229337
String responseStatus;
230338

231339
/**
232340
* The time of the response to the audited request, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
233341
**/
234342
@com.fasterxml.jackson.annotation.JsonProperty("responseTime")
235343
java.util.Date responseTime;
344+
345+
@com.fasterxml.jackson.annotation.JsonIgnore
346+
private final java.util.Set<String> __explicitlySet__ = new java.util.HashSet<String>();
236347
}

0 commit comments

Comments
 (0)