@Generated(value="OracleSDKGenerator", comments="API Version: 20180917") public interface ResourceManager extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
CancelJobResponse |
cancelJob(CancelJobRequest request)
Indicates the intention to cancel the specified job.
|
CreateJobResponse |
createJob(CreateJobRequest request)
Creates a job.
|
CreateStackResponse |
createStack(CreateStackRequest request)
Creates a stack in the specified comparment.
|
DeleteStackResponse |
deleteStack(DeleteStackRequest request)
Deletes the specified stack object.
|
GetJobResponse |
getJob(GetJobRequest request)
Returns the specified job along with the job details.
|
GetJobLogsResponse |
getJobLogs(GetJobLogsRequest request)
Returns log entries for the specified job in JSON format.
|
GetJobLogsContentResponse |
getJobLogsContent(GetJobLogsContentRequest request)
Returns raw log file for the specified job in text format.
|
GetJobTfConfigResponse |
getJobTfConfig(GetJobTfConfigRequest request)
Returns the Terraform configuration file for the specified job in .zip format.
|
GetJobTfStateResponse |
getJobTfState(GetJobTfStateRequest request)
Returns the Terraform state for the specified job.
|
ResourceManagerPaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.
|
GetStackResponse |
getStack(GetStackRequest request)
Gets a stack using the stack ID.
|
GetStackTfConfigResponse |
getStackTfConfig(GetStackTfConfigRequest request)
Returns the Terraform configuration file in .zip format for the specified stack.
|
ResourceManagerWaiters |
getWaiters()
Gets the pre-configured waiters available for resources for this service.
|
ListJobsResponse |
listJobs(ListJobsRequest request)
Returns a list of jobs in a stack or compartment, ordered by time created.
|
ListStacksResponse |
listStacks(ListStacksRequest request)
Returns a list of stacks.
|
void |
setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
|
void |
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
|
void |
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
|
UpdateJobResponse |
updateJob(UpdateJobRequest request)
Updates the specified job.
|
UpdateStackResponse |
updateStack(UpdateStackRequest request)
Updates the specified stack object.
|
close
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the service.void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.CancelJobResponse cancelJob(CancelJobRequest request)
Indicates the intention to cancel the specified job. Cancellation of the job is not immediate, and may be delayed, or may not happen at all.
request
- The request object containing the details to sendBmcException
- when an error occurs.CreateJobResponse createJob(CreateJobRequest request)
Creates a job.
request
- The request object containing the details to sendBmcException
- when an error occurs.CreateStackResponse createStack(CreateStackRequest request)
Creates a stack in the specified comparment. Specify the compartment using the compartment ID.
request
- The request object containing the details to sendBmcException
- when an error occurs.DeleteStackResponse deleteStack(DeleteStackRequest request)
Deletes the specified stack object.
request
- The request object containing the details to sendBmcException
- when an error occurs.GetJobResponse getJob(GetJobRequest request)
Returns the specified job along with the job details.
request
- The request object containing the details to sendBmcException
- when an error occurs.GetJobLogsResponse getJobLogs(GetJobLogsRequest request)
Returns log entries for the specified job in JSON format.
request
- The request object containing the details to sendBmcException
- when an error occurs.GetJobLogsContentResponse getJobLogsContent(GetJobLogsContentRequest request)
Returns raw log file for the specified job in text format. Returns a maximum of 100,000 log entries.
request
- The request object containing the details to sendBmcException
- when an error occurs.GetJobTfConfigResponse getJobTfConfig(GetJobTfConfigRequest request)
Returns the Terraform configuration file for the specified job in .zip format. Returns an error if no zip file is found.
request
- The request object containing the details to sendBmcException
- when an error occurs.GetJobTfStateResponse getJobTfState(GetJobTfStateRequest request)
Returns the Terraform state for the specified job.
request
- The request object containing the details to sendBmcException
- when an error occurs.GetStackResponse getStack(GetStackRequest request)
Gets a stack using the stack ID.
request
- The request object containing the details to sendBmcException
- when an error occurs.GetStackTfConfigResponse getStackTfConfig(GetStackTfConfigRequest request)
Returns the Terraform configuration file in .zip format for the specified stack. Returns an error if no zip file is found.
request
- The request object containing the details to sendBmcException
- when an error occurs.ListJobsResponse listJobs(ListJobsRequest request)
Returns a list of jobs in a stack or compartment, ordered by time created.
- To list all jobs in a stack, provide the stack OCID. - To list all jobs in a compartment, provide the compartment OCID. - To return a specific job, provide the job OCID.
request
- The request object containing the details to sendBmcException
- when an error occurs.ListStacksResponse listStacks(ListStacksRequest request)
Returns a list of stacks. - If called using the compartment ID, returns all stacks in the specified compartment. - If called using the stack ID, returns the specified stack.
request
- The request object containing the details to sendBmcException
- when an error occurs.UpdateJobResponse updateJob(UpdateJobRequest request)
Updates the specified job.
request
- The request object containing the details to sendBmcException
- when an error occurs.UpdateStackResponse updateStack(UpdateStackRequest request)
Updates the specified stack object. Use UpdateStack
when you update your Terraform configuration and want your changes to be reflected in the execution plan.
request
- The request object containing the details to sendBmcException
- when an error occurs.ResourceManagerWaiters getWaiters()
Gets the pre-configured waiters available for resources for this service.
ResourceManagerPaginators getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data. These paginators provide an Iterable
interface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.
Copyright © 2016–2019. All rights reserved.