Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
### Added
- N/A

## 1.3.6 - 2018-01-31
### Added
- Support for the Announcements service

## 1.3.5 - 2018-01-24
### Added
- Support for renaming databases during restore-from-backup operations in the Database service
Expand Down
4 changes: 2 additions & 2 deletions bmc-addons/bmc-apache-connector-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-addons</artifactId>
<version>1.3.5</version>
<version>1.3.6</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -43,7 +43,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>1.3.5</version>
<version>1.3.6</version>
</dependency>
</dependencies>
</project>
4 changes: 2 additions & 2 deletions bmc-addons/bmc-resteasy-client-configurator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-addons</artifactId>
<version>1.3.5</version>
<version>1.3.6</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>1.3.5</version>
<version>1.3.6</version>
</dependency>
</dependencies>
</project>
2 changes: 1 addition & 1 deletion bmc-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk</artifactId>
<version>1.3.5</version>
<version>1.3.6</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
22 changes: 22 additions & 0 deletions bmc-announcementsservice/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk</artifactId>
<version>1.3.6</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>oci-java-sdk-announcementsservice</artifactId>
<name>Oracle Cloud Infrastructure SDK - Announcements Service</name>
<description>This project contains the SDK used for Oracle Cloud Infrastructure Announcements Service</description>
<url>https://docs.us-phoenix-1.oraclecloud.com/Content/API/SDKDocs/javasdk.htm</url>

<dependencies>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>1.3.6</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/**
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
*/
package com.oracle.bmc.announcementsservice;

import com.oracle.bmc.announcementsservice.requests.*;
import com.oracle.bmc.announcementsservice.responses.*;

@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1")
public interface Announcement extends AutoCloseable {

/**
* Sets the endpoint to call (ex, https://www.example.com).
* @param endpoint The endpoint of the service.
*/
void setEndpoint(String endpoint);

/**
* Sets the region to call (ex, Region.US_PHOENIX_1).
* <p>
* Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.
* @param region The region of the service.
*/
void setRegion(com.oracle.bmc.Region region);

/**
* Sets the region to call (ex, 'us-phoenix-1').
* <p>
* Note, this will first try to map the region ID to a known Region and call
* {@link #setRegion(Region) setRegion}.
* <p>
* If no known Region could be determined, it will create an endpoint based on the
* default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)}
* and then call {@link #setEndpoint(String) setEndpoint}.
* @param regionId The public region ID.
*/
void setRegion(String regionId);

/**
* Gets details about single `Announcement` object
*
* @param request The request object containing the details to send
* @return A response object containing details about the completed operation
* @throws BmcException when an error occurs.
*/
GetAnnouncementResponse getAnnouncement(GetAnnouncementRequest request);

/**
* Get user status of specified announcement
*
* @param request The request object containing the details to send
* @return A response object containing details about the completed operation
* @throws BmcException when an error occurs.
*/
GetAnnouncementUserStatusResponse getAnnouncementUserStatus(
GetAnnouncementUserStatusRequest request);

/**
* Gets a list of `Announcement` objects for the current tenancy
*
* @param request The request object containing the details to send
* @return A response object containing details about the completed operation
* @throws BmcException when an error occurs.
*/
ListAnnouncementsResponse listAnnouncements(ListAnnouncementsRequest request);

/**
* Update `Announcement` status with whether user has seen or supressed the announcement
*
* @param request The request object containing the details to send
* @return A response object containing details about the completed operation
* @throws BmcException when an error occurs.
*/
UpdateAnnouncementUserStatusResponse updateAnnouncementUserStatus(
UpdateAnnouncementUserStatusRequest request);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/**
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
*/
package com.oracle.bmc.announcementsservice;

import com.oracle.bmc.announcementsservice.requests.*;
import com.oracle.bmc.announcementsservice.responses.*;

@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1")
public interface AnnouncementAsync extends AutoCloseable {

/**
* Sets the endpoint to call (ex, https://www.example.com).
* @param endpoint The endpoint of the serice.
*/
void setEndpoint(String endpoint);

/**
* Sets the region to call (ex, Region.US_PHOENIX_1).
* <p>
* Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the endpoint. If the service is not available in this region, however, an IllegalArgumentException will be raised.
* @param region The region of the service.
*/
void setRegion(com.oracle.bmc.Region region);

/**
* Sets the region to call (ex, 'us-phoenix-1').
* <p>
* Note, this will first try to map the region ID to a known Region and call
* {@link #setRegion(Region) setRegion}.
* <p>
* If no known Region could be determined, it will create an endpoint based on the
* default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)}
* and then call {@link #setEndpoint(String) setEndpoint}.
* @param regionId The public region ID.
*/
void setRegion(String regionId);

/**
* Gets details about single `Announcement` object
*
*
* @param request The request object containing the details to send
* @param handler The request handler to invoke upon completion, may be null.
* @return A Future that can be used to get the response if no AsyncHandler was
* provided. Note, if you provide an AsyncHandler and use the Future, some
* types of responses (like java.io.InputStream) may not be able to be read in
* both places as the underlying stream may only be consumed once.
*/
java.util.concurrent.Future<GetAnnouncementResponse> getAnnouncement(
GetAnnouncementRequest request,
com.oracle.bmc.responses.AsyncHandler<GetAnnouncementRequest, GetAnnouncementResponse>
handler);

/**
* Get user status of specified announcement
*
*
* @param request The request object containing the details to send
* @param handler The request handler to invoke upon completion, may be null.
* @return A Future that can be used to get the response if no AsyncHandler was
* provided. Note, if you provide an AsyncHandler and use the Future, some
* types of responses (like java.io.InputStream) may not be able to be read in
* both places as the underlying stream may only be consumed once.
*/
java.util.concurrent.Future<GetAnnouncementUserStatusResponse> getAnnouncementUserStatus(
GetAnnouncementUserStatusRequest request,
com.oracle.bmc.responses.AsyncHandler<
GetAnnouncementUserStatusRequest, GetAnnouncementUserStatusResponse>
handler);

/**
* Gets a list of `Announcement` objects for the current tenancy
*
*
* @param request The request object containing the details to send
* @param handler The request handler to invoke upon completion, may be null.
* @return A Future that can be used to get the response if no AsyncHandler was
* provided. Note, if you provide an AsyncHandler and use the Future, some
* types of responses (like java.io.InputStream) may not be able to be read in
* both places as the underlying stream may only be consumed once.
*/
java.util.concurrent.Future<ListAnnouncementsResponse> listAnnouncements(
ListAnnouncementsRequest request,
com.oracle.bmc.responses.AsyncHandler<
ListAnnouncementsRequest, ListAnnouncementsResponse>
handler);

/**
* Update `Announcement` status with whether user has seen or supressed the announcement
*
*
* @param request The request object containing the details to send
* @param handler The request handler to invoke upon completion, may be null.
* @return A Future that can be used to get the response if no AsyncHandler was
* provided. Note, if you provide an AsyncHandler and use the Future, some
* types of responses (like java.io.InputStream) may not be able to be read in
* both places as the underlying stream may only be consumed once.
*/
java.util.concurrent.Future<UpdateAnnouncementUserStatusResponse> updateAnnouncementUserStatus(
UpdateAnnouncementUserStatusRequest request,
com.oracle.bmc.responses.AsyncHandler<
UpdateAnnouncementUserStatusRequest,
UpdateAnnouncementUserStatusResponse>
handler);
}
Loading