@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public class ComputeManagementClient extends Object implements ComputeManagement
Modifier and Type | Class and Description |
---|---|
static class |
ComputeManagementClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
static Service |
SERVICE
Service instance for ComputeManagement.
|
Constructor and Description |
---|
ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration.
|
ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration.
|
ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Creates a new service instance using the given authentication provider and client configuration.
|
ComputeManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
|
ComputeManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
|
ComputeManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration.
|
Modifier and Type | Method and Description |
---|---|
AttachLoadBalancerResponse |
attachLoadBalancer(AttachLoadBalancerRequest request)
Attach a load balancer to the instance pool.
|
static ComputeManagementClient.Builder |
builder()
Create a builder for this client.
|
void |
close() |
CreateInstanceConfigurationResponse |
createInstanceConfiguration(CreateInstanceConfigurationRequest request)
Creates an instance configuration
|
CreateInstancePoolResponse |
createInstancePool(CreateInstancePoolRequest request)
Create an instance pool.
|
DeleteInstanceConfigurationResponse |
deleteInstanceConfiguration(DeleteInstanceConfigurationRequest request)
Deletes an instance configuration.
|
DetachLoadBalancerResponse |
detachLoadBalancer(DetachLoadBalancerRequest request)
Detach a load balancer from the instance pool.
|
GetInstanceConfigurationResponse |
getInstanceConfiguration(GetInstanceConfigurationRequest request)
Gets the specified instance configuration
|
GetInstancePoolResponse |
getInstancePool(GetInstancePoolRequest request)
Gets the specified instance pool
|
ComputeManagementPaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.
|
ComputeManagementWaiters |
getWaiters()
Gets the pre-configured waiters available for resources for this service.
|
LaunchInstanceConfigurationResponse |
launchInstanceConfiguration(LaunchInstanceConfigurationRequest request)
Launch an instance from an instance configuration
|
ListInstanceConfigurationsResponse |
listInstanceConfigurations(ListInstanceConfigurationsRequest request)
Lists the available instanceConfigurations in the specific compartment.
|
ListInstancePoolInstancesResponse |
listInstancePoolInstances(ListInstancePoolInstancesRequest request)
List the instances in the specified instance pool.
|
ListInstancePoolsResponse |
listInstancePools(ListInstancePoolsRequest request)
Lists the instance pools in the specified compartment.
|
ResetInstancePoolResponse |
resetInstancePool(ResetInstancePoolRequest request)
Performs the reset (power off and power on) action on the specified instance pool, which performs the action on all the instances in the pool.
|
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’).
|
SoftresetInstancePoolResponse |
softresetInstancePool(SoftresetInstancePoolRequest request)
Performs the softreset (ACPI shutdown and power on) action on the specified instance pool, which performs the action on all the instances in the pool.
|
StartInstancePoolResponse |
startInstancePool(StartInstancePoolRequest request)
Performs the start (power on) action on the specified instance pool, which performs the action on all the instances in the pool.
|
StopInstancePoolResponse |
stopInstancePool(StopInstancePoolRequest request)
Performs the stop (power off) action on the specified instance pool, which performs the action on all the instances in the pool.
|
TerminateInstancePoolResponse |
terminateInstancePool(TerminateInstancePoolRequest request)
Terminate the specified instance pool.
|
UpdateInstanceConfigurationResponse |
updateInstanceConfiguration(UpdateInstanceConfigurationRequest request)
Updates the freeFormTags, definedTags, and display name of an instance configuration.
|
UpdateInstancePoolResponse |
updateInstancePool(UpdateInstancePoolRequest request)
Update the specified instance pool.
|
public static final Service SERVICE
Service instance for ComputeManagement.
public ComputeManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
authenticationDetailsProvider
- The authentication details provider, required.public ComputeManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.public ComputeManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.public ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.public ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.additionalClientConfigurators
- Additional client configurators to be run after the primary configurator.public ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.additionalClientConfigurators
- Additional client configurators to be run after the primary configurator.endpoint
- Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider
)public ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories
- The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators
- Additional client configurators to be run after the primary configurator.endpoint
- Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider
)public ComputeManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories
- The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators
- Additional client configurators to be run after the primary configurator.endpoint
- Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider
)executorService
- ExecutorService used by the client, or null to use the default configured ThreadPoolExecutorpublic static ComputeManagementClient.Builder builder()
Create a builder for this client.
public void setEndpoint(String endpoint)
ComputeManagement
Sets the endpoint to call (ex, https://www.example.com).
setEndpoint
in interface ComputeManagement
endpoint
- The endpoint of the service.public void setRegion(Region region)
ComputeManagement
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.
setRegion
in interface ComputeManagement
region
- The region of the service.public void setRegion(String regionId)
ComputeManagement
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
.
setRegion
in interface ComputeManagement
regionId
- The public region ID.public void close()
close
in interface AutoCloseable
public AttachLoadBalancerResponse attachLoadBalancer(AttachLoadBalancerRequest request)
ComputeManagement
Attach a load balancer to the instance pool.
attachLoadBalancer
in interface ComputeManagement
request
- The request object containing the details to sendpublic CreateInstanceConfigurationResponse createInstanceConfiguration(CreateInstanceConfigurationRequest request)
ComputeManagement
Creates an instance configuration
createInstanceConfiguration
in interface ComputeManagement
request
- The request object containing the details to sendpublic CreateInstancePoolResponse createInstancePool(CreateInstancePoolRequest request)
ComputeManagement
Create an instance pool.
createInstancePool
in interface ComputeManagement
request
- The request object containing the details to sendpublic DeleteInstanceConfigurationResponse deleteInstanceConfiguration(DeleteInstanceConfigurationRequest request)
ComputeManagement
Deletes an instance configuration.
deleteInstanceConfiguration
in interface ComputeManagement
request
- The request object containing the details to sendpublic DetachLoadBalancerResponse detachLoadBalancer(DetachLoadBalancerRequest request)
ComputeManagement
Detach a load balancer from the instance pool.
detachLoadBalancer
in interface ComputeManagement
request
- The request object containing the details to sendpublic GetInstanceConfigurationResponse getInstanceConfiguration(GetInstanceConfigurationRequest request)
ComputeManagement
Gets the specified instance configuration
getInstanceConfiguration
in interface ComputeManagement
request
- The request object containing the details to sendpublic GetInstancePoolResponse getInstancePool(GetInstancePoolRequest request)
ComputeManagement
Gets the specified instance pool
getInstancePool
in interface ComputeManagement
request
- The request object containing the details to sendpublic LaunchInstanceConfigurationResponse launchInstanceConfiguration(LaunchInstanceConfigurationRequest request)
ComputeManagement
Launch an instance from an instance configuration
launchInstanceConfiguration
in interface ComputeManagement
request
- The request object containing the details to sendpublic ListInstanceConfigurationsResponse listInstanceConfigurations(ListInstanceConfigurationsRequest request)
ComputeManagement
Lists the available instanceConfigurations in the specific compartment.
listInstanceConfigurations
in interface ComputeManagement
request
- The request object containing the details to sendpublic ListInstancePoolInstancesResponse listInstancePoolInstances(ListInstancePoolInstancesRequest request)
ComputeManagement
List the instances in the specified instance pool.
listInstancePoolInstances
in interface ComputeManagement
request
- The request object containing the details to sendpublic ListInstancePoolsResponse listInstancePools(ListInstancePoolsRequest request)
ComputeManagement
Lists the instance pools in the specified compartment.
listInstancePools
in interface ComputeManagement
request
- The request object containing the details to sendpublic ResetInstancePoolResponse resetInstancePool(ResetInstancePoolRequest request)
ComputeManagement
Performs the reset (power off and power on) action on the specified instance pool, which performs the action on all the instances in the pool.
resetInstancePool
in interface ComputeManagement
request
- The request object containing the details to sendpublic SoftresetInstancePoolResponse softresetInstancePool(SoftresetInstancePoolRequest request)
ComputeManagement
Performs the softreset (ACPI shutdown and power on) action on the specified instance pool, which performs the action on all the instances in the pool.
softresetInstancePool
in interface ComputeManagement
request
- The request object containing the details to sendpublic StartInstancePoolResponse startInstancePool(StartInstancePoolRequest request)
ComputeManagement
Performs the start (power on) action on the specified instance pool, which performs the action on all the instances in the pool.
startInstancePool
in interface ComputeManagement
request
- The request object containing the details to sendpublic StopInstancePoolResponse stopInstancePool(StopInstancePoolRequest request)
ComputeManagement
Performs the stop (power off) action on the specified instance pool, which performs the action on all the instances in the pool.
stopInstancePool
in interface ComputeManagement
request
- The request object containing the details to sendpublic TerminateInstancePoolResponse terminateInstancePool(TerminateInstancePoolRequest request)
ComputeManagement
Terminate the specified instance pool.
terminateInstancePool
in interface ComputeManagement
request
- The request object containing the details to sendpublic UpdateInstanceConfigurationResponse updateInstanceConfiguration(UpdateInstanceConfigurationRequest request)
ComputeManagement
Updates the freeFormTags, definedTags, and display name of an instance configuration.
updateInstanceConfiguration
in interface ComputeManagement
request
- The request object containing the details to sendpublic UpdateInstancePoolResponse updateInstancePool(UpdateInstancePoolRequest request)
ComputeManagement
Update the specified instance pool. The OCID of the instance pool remains the same.
updateInstancePool
in interface ComputeManagement
request
- The request object containing the details to sendpublic ComputeManagementWaiters getWaiters()
ComputeManagement
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface ComputeManagement
public ComputeManagementPaginators getPaginators()
ComputeManagement
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.
getPaginators
in interface ComputeManagement
Copyright © 2016–2019. All rights reserved.