-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from oracle/release_20171102
Releasing version 1.2.17
- Loading branch information
Showing
207 changed files
with
8,304 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
bmc-audit/src/main/java/com/oracle/bmc/audit/internal/http/GetConfigurationConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/** | ||
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. | ||
*/ | ||
package com.oracle.bmc.audit.internal.http; | ||
|
||
import com.oracle.bmc.audit.model.*; | ||
import com.oracle.bmc.audit.requests.*; | ||
import com.oracle.bmc.audit.responses.*; | ||
|
||
@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") | ||
@lombok.extern.slf4j.Slf4j | ||
public class GetConfigurationConverter { | ||
private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory | ||
RESPONSE_CONVERSION_FACTORY = | ||
new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); | ||
|
||
public static GetConfigurationRequest interceptRequest(GetConfigurationRequest request) { | ||
|
||
return request; | ||
} | ||
|
||
public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( | ||
com.oracle.bmc.http.internal.RestClient client, GetConfigurationRequest request) { | ||
if (request == null) { | ||
throw new NullPointerException("request instance is required"); | ||
} | ||
|
||
if (request.getCompartmentId() == null) { | ||
throw new NullPointerException("compartmentId is required"); | ||
} | ||
|
||
com.oracle.bmc.http.internal.WrappedWebTarget target = | ||
client.getBaseTarget().path("/20160918").path("configuration"); | ||
|
||
target = | ||
target.queryParam( | ||
"compartmentId", | ||
com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( | ||
request.getCompartmentId())); | ||
|
||
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); | ||
|
||
ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); | ||
|
||
return ib; | ||
} | ||
|
||
public static com.google.common.base.Function< | ||
javax.ws.rs.core.Response, GetConfigurationResponse> | ||
fromResponse() { | ||
final com.google.common.base.Function<javax.ws.rs.core.Response, GetConfigurationResponse> | ||
transformer = | ||
new com.google.common.base.Function< | ||
javax.ws.rs.core.Response, GetConfigurationResponse>() { | ||
@Override | ||
public GetConfigurationResponse apply( | ||
javax.ws.rs.core.Response rawResponse) { | ||
LOG.trace( | ||
"Transform function invoked for GetConfigurationResponse"); | ||
com.google.common.base.Function< | ||
javax.ws.rs.core.Response, | ||
com.oracle.bmc.http.internal.WithHeaders< | ||
Configuration>> | ||
responseFn = | ||
RESPONSE_CONVERSION_FACTORY.create( | ||
Configuration.class); | ||
|
||
com.oracle.bmc.http.internal.WithHeaders<Configuration> response = | ||
responseFn.apply(rawResponse); | ||
javax.ws.rs.core.MultivaluedMap<String, String> headers = | ||
response.getHeaders(); | ||
|
||
GetConfigurationResponse.Builder builder = | ||
GetConfigurationResponse.builder(); | ||
|
||
builder.configuration(response.getItem()); | ||
|
||
GetConfigurationResponse responseWrapper = builder.build(); | ||
|
||
return responseWrapper; | ||
} | ||
}; | ||
return transformer; | ||
} | ||
} |
109 changes: 109 additions & 0 deletions
109
bmc-audit/src/main/java/com/oracle/bmc/audit/internal/http/UpdateConfigurationConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/** | ||
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. | ||
*/ | ||
package com.oracle.bmc.audit.internal.http; | ||
|
||
import com.oracle.bmc.audit.model.*; | ||
import com.oracle.bmc.audit.requests.*; | ||
import com.oracle.bmc.audit.responses.*; | ||
|
||
@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") | ||
@lombok.extern.slf4j.Slf4j | ||
public class UpdateConfigurationConverter { | ||
private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory | ||
RESPONSE_CONVERSION_FACTORY = | ||
new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); | ||
|
||
public static UpdateConfigurationRequest interceptRequest(UpdateConfigurationRequest request) { | ||
|
||
return request; | ||
} | ||
|
||
public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( | ||
com.oracle.bmc.http.internal.RestClient client, UpdateConfigurationRequest request) { | ||
if (request == null) { | ||
throw new NullPointerException("request instance is required"); | ||
} | ||
|
||
if (request.getCompartmentId() == null) { | ||
throw new NullPointerException("compartmentId is required"); | ||
} | ||
|
||
if (request.getUpdateConfigurationDetails() == null) { | ||
throw new NullPointerException("updateConfigurationDetails is required"); | ||
} | ||
|
||
com.oracle.bmc.http.internal.WrappedWebTarget target = | ||
client.getBaseTarget().path("/20160918").path("configuration"); | ||
|
||
target = | ||
target.queryParam( | ||
"compartmentId", | ||
com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( | ||
request.getCompartmentId())); | ||
|
||
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); | ||
|
||
ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); | ||
|
||
return ib; | ||
} | ||
|
||
public static com.google.common.base.Function< | ||
javax.ws.rs.core.Response, UpdateConfigurationResponse> | ||
fromResponse() { | ||
final com.google.common.base.Function< | ||
javax.ws.rs.core.Response, UpdateConfigurationResponse> | ||
transformer = | ||
new com.google.common.base.Function< | ||
javax.ws.rs.core.Response, UpdateConfigurationResponse>() { | ||
@Override | ||
public UpdateConfigurationResponse apply( | ||
javax.ws.rs.core.Response rawResponse) { | ||
LOG.trace( | ||
"Transform function invoked for UpdateConfigurationResponse"); | ||
com.google.common.base.Function< | ||
javax.ws.rs.core.Response, | ||
com.oracle.bmc.http.internal.WithHeaders<Void>> | ||
responseFn = RESPONSE_CONVERSION_FACTORY.create(); | ||
|
||
com.oracle.bmc.http.internal.WithHeaders<Void> response = | ||
responseFn.apply(rawResponse); | ||
javax.ws.rs.core.MultivaluedMap<String, String> headers = | ||
response.getHeaders(); | ||
|
||
UpdateConfigurationResponse.Builder builder = | ||
UpdateConfigurationResponse.builder(); | ||
|
||
com.google.common.base.Optional<java.util.List<String>> | ||
opcRequestIdHeader = | ||
com.oracle.bmc.http.internal.HeaderUtils.get( | ||
headers, "opc-request-id"); | ||
if (opcRequestIdHeader.isPresent()) { | ||
builder.opcRequestId( | ||
com.oracle.bmc.http.internal.HeaderUtils.toValue( | ||
"opc-request-id", | ||
opcRequestIdHeader.get().get(0), | ||
String.class)); | ||
} | ||
|
||
com.google.common.base.Optional<java.util.List<String>> | ||
opcWorkRequestIdHeader = | ||
com.oracle.bmc.http.internal.HeaderUtils.get( | ||
headers, "opc-work-request-id"); | ||
if (opcWorkRequestIdHeader.isPresent()) { | ||
builder.opcWorkRequestId( | ||
com.oracle.bmc.http.internal.HeaderUtils.toValue( | ||
"opc-work-request-id", | ||
opcWorkRequestIdHeader.get().get(0), | ||
String.class)); | ||
} | ||
|
||
UpdateConfigurationResponse responseWrapper = builder.build(); | ||
|
||
return responseWrapper; | ||
} | ||
}; | ||
return transformer; | ||
} | ||
} |
Oops, something went wrong.