public interface ComputeCloudClient extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
authenticate()
Authenticates the client and stores an authentication token to allow
other methods to be called.
|
void |
close()
Closes the client connection.
|
void |
createInstanceOrchestration(String name,
ComputeCloudInstanceOrchestrationConfig params)
Creates an orchestration with the specified name that contains a
launchplan for an instance with the specified configuration.
|
void |
deleteOrchestration(String name)
Deletes an orchestration with the specified name.
|
Collection<ImageListEntry> |
getImageListEntries(String imageListName)
Retrieves imagelist entries for a specified imagelist
|
Collection<ImageList> |
getImageLists(ImageListSourceType sourceType)
Retrieve the list of imagelist according to source type
|
InstanceOrchestration |
getInstanceOrchestration(String name)
Gets a subset of properties from an instance orchestration created from
createInstanceOrchestration(java.lang.String, com.oracle.cloud.compute.jenkins.client.ComputeCloudInstanceOrchestrationConfig) |
Collection<SecurityList> |
getSecurityLists()
Retrieves the security lists
|
Collection<Shape> |
getShapes()
Retrieves the CPU and memory details of all the available shapes.
|
SSHKey |
getSSHKey(String name)
Retrieves an SSH key of the current user.
|
Collection<SSHKey> |
getSSHKeys()
Retrieves the SSH keys of the current user.
|
void |
startOrchestration(String name)
Starts an orchestration with the specified name.
|
void |
stopOrchestration(String name)
Stops an orchestration with the specified name.
|
void close()
close
in interface AutoCloseable
void authenticate() throws ComputeCloudClientException
ComputeCloudClientUnauthorizedException
- if authentication failedComputeCloudClientException
- if an error occurs communicating with
the endpoint serverCollection<Shape> getShapes() throws ComputeCloudClientException
Shape
objectsIllegalStateException
- if authenticate()
was not calledComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint serverCollection<ImageList> getImageLists(ImageListSourceType sourceType) throws ComputeCloudClientException
sourceType:
- Oracle Public Image
Customer Private ImageImageList
ComputeCloudClientException
- if an error occurs communicating with
the endpoint serverCollection<ImageListEntry> getImageListEntries(String imageListName) throws ComputeCloudClientException
imageListName
- ImageList name which used to get related versionsImageListEntry
ComputeCloudClientException
- if an error occurs communicating with
the endpoint serverCollection<SecurityList> getSecurityLists() throws ComputeCloudClientException
SecurityList
IllegalStateException
- if authenticate()
was not calledComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint serverCollection<SSHKey> getSSHKeys() throws ComputeCloudClientException
SSHKey
IllegalStateException
- if authenticate()
was not calledComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint serverSSHKey getSSHKey(String name) throws ComputeCloudClientException
name
- of SSH keyIllegalStateException
- if authenticate()
was not calledComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint servervoid createInstanceOrchestration(String name, ComputeCloudInstanceOrchestrationConfig params) throws ComputeCloudClientException
name
- the orchestration nameparams
- the instance configurationComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint serverInstanceOrchestration getInstanceOrchestration(String name) throws ComputeCloudClientException
createInstanceOrchestration(java.lang.String, com.oracle.cloud.compute.jenkins.client.ComputeCloudInstanceOrchestrationConfig)
name
- the orchestration nameInstanceOrchestration
instance with the specified nameComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint servervoid startOrchestration(String name) throws ComputeCloudClientException
name
- the orchestration nameComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint servervoid stopOrchestration(String name) throws ComputeCloudClientException
name
- the orchestration nameComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint servervoid deleteOrchestration(String name) throws ComputeCloudClientException
name
- the orchestration nameComputeCloudClientUnauthorizedException
- if the authentication
token has timed out or the user is not authorizedComputeCloudClientException
- if an error occurs communicating with
the endpoint serverCopyright © 2016–2018. All rights reserved.