@Generated(value="OracleSDKGenerator", comments="API Version: 20180222") public class ContainerEngineClient extends BaseSyncClient implements ContainerEngine
Modifier and Type | Class and Description |
---|---|
static class |
ContainerEngineClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
String |
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.
|
Optional<String> |
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.
|
static Service |
SERVICE
Service instance for ContainerEngine.
|
Constructor and Description |
---|
ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
ContainerEngineClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
ContainerEngineClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
ContainerEngineClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
clientCall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for ContainerEngine.
public final String clientCommonLibraryVersion
@Deprecated public ContainerEngineClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ContainerEngineClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public ContainerEngineClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ContainerEngineClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public ContainerEngineClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ContainerEngineClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ContainerEngineClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ContainerEngineClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ContainerEngineClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
@Deprecated public ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ContainerEngineClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
@Deprecated public ContainerEngineClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ContainerEngineClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
executorService
- ContainerEngineClient.Builder.executorService
public static ContainerEngineClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
ContainerEngine
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 ContainerEngine
region
- The region of the service.public void setRegion(String regionId)
ContainerEngine
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 ContainerEngine
regionId
- The public region ID.public ClusterMigrateToNativeVcnResponse clusterMigrateToNativeVcn(ClusterMigrateToNativeVcnRequest request)
ContainerEngine
Initiates cluster migration to use native VCN.
clusterMigrateToNativeVcn
in interface ContainerEngine
request
- The request object containing the details to sendpublic CompleteCredentialRotationResponse completeCredentialRotation(CompleteCredentialRotationRequest request)
ContainerEngine
Complete cluster credential rotation. Retire old credentials from kubernetes components.
completeCredentialRotation
in interface ContainerEngine
request
- The request object containing the details to sendpublic CreateClusterResponse createCluster(CreateClusterRequest request)
ContainerEngine
Create a new cluster.
createCluster
in interface ContainerEngine
request
- The request object containing the details to sendpublic CreateKubeconfigResponse createKubeconfig(CreateKubeconfigRequest request)
ContainerEngine
Create the Kubeconfig YAML for a cluster.
createKubeconfig
in interface ContainerEngine
request
- The request object containing the details to sendpublic CreateNodePoolResponse createNodePool(CreateNodePoolRequest request)
ContainerEngine
Create a new node pool.
createNodePool
in interface ContainerEngine
request
- The request object containing the details to sendpublic CreateVirtualNodePoolResponse createVirtualNodePool(CreateVirtualNodePoolRequest request)
ContainerEngine
Create a new virtual node pool.
createVirtualNodePool
in interface ContainerEngine
request
- The request object containing the details to sendpublic CreateWorkloadMappingResponse createWorkloadMapping(CreateWorkloadMappingRequest request)
ContainerEngine
Create the specified workloadMapping for a cluster.
createWorkloadMapping
in interface ContainerEngine
request
- The request object containing the details to sendpublic DeleteClusterResponse deleteCluster(DeleteClusterRequest request)
ContainerEngine
Delete a cluster.
deleteCluster
in interface ContainerEngine
request
- The request object containing the details to sendpublic DeleteNodeResponse deleteNode(DeleteNodeRequest request)
ContainerEngine
Delete node.
deleteNode
in interface ContainerEngine
request
- The request object containing the details to sendpublic DeleteNodePoolResponse deleteNodePool(DeleteNodePoolRequest request)
ContainerEngine
Delete a node pool.
deleteNodePool
in interface ContainerEngine
request
- The request object containing the details to sendpublic DeleteVirtualNodePoolResponse deleteVirtualNodePool(DeleteVirtualNodePoolRequest request)
ContainerEngine
Delete a virtual node pool.
deleteVirtualNodePool
in interface ContainerEngine
request
- The request object containing the details to sendpublic DeleteWorkRequestResponse deleteWorkRequest(DeleteWorkRequestRequest request)
ContainerEngine
Cancel a work request that has not started.
deleteWorkRequest
in interface ContainerEngine
request
- The request object containing the details to sendpublic DeleteWorkloadMappingResponse deleteWorkloadMapping(DeleteWorkloadMappingRequest request)
ContainerEngine
Delete workloadMapping for a provisioned cluster.
deleteWorkloadMapping
in interface ContainerEngine
request
- The request object containing the details to sendpublic DisableAddonResponse disableAddon(DisableAddonRequest request)
ContainerEngine
Disable addon for a provisioned cluster.
disableAddon
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetAddonResponse getAddon(GetAddonRequest request)
ContainerEngine
Get the specified addon for a cluster.
getAddon
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetClusterResponse getCluster(GetClusterRequest request)
ContainerEngine
Get the details of a cluster.
getCluster
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetClusterMigrateToNativeVcnStatusResponse getClusterMigrateToNativeVcnStatus(GetClusterMigrateToNativeVcnStatusRequest request)
ContainerEngine
Get details on a cluster’s migration to native VCN.
getClusterMigrateToNativeVcnStatus
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetClusterOptionsResponse getClusterOptions(GetClusterOptionsRequest request)
ContainerEngine
Get options available for clusters.
getClusterOptions
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetCredentialRotationStatusResponse getCredentialRotationStatus(GetCredentialRotationStatusRequest request)
ContainerEngine
Get cluster credential rotation status.
getCredentialRotationStatus
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetNodePoolResponse getNodePool(GetNodePoolRequest request)
ContainerEngine
Get the details of a node pool.
getNodePool
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetNodePoolOptionsResponse getNodePoolOptions(GetNodePoolOptionsRequest request)
ContainerEngine
Get options available for node pools.
getNodePoolOptions
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetVirtualNodeResponse getVirtualNode(GetVirtualNodeRequest request)
ContainerEngine
Get the details of a virtual node.
getVirtualNode
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetVirtualNodePoolResponse getVirtualNodePool(GetVirtualNodePoolRequest request)
ContainerEngine
Get the details of a virtual node pool.
getVirtualNodePool
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
ContainerEngine
Get the details of a work request.
getWorkRequest
in interface ContainerEngine
request
- The request object containing the details to sendpublic GetWorkloadMappingResponse getWorkloadMapping(GetWorkloadMappingRequest request)
ContainerEngine
Get the specified workloadMapping for a cluster.
getWorkloadMapping
in interface ContainerEngine
request
- The request object containing the details to sendpublic InstallAddonResponse installAddon(InstallAddonRequest request)
ContainerEngine
Install the specified addon for a cluster.
installAddon
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListAddonOptionsResponse listAddonOptions(ListAddonOptionsRequest request)
ContainerEngine
Get list of supported addons for a specific kubernetes version.
listAddonOptions
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListAddonsResponse listAddons(ListAddonsRequest request)
ContainerEngine
List addon for a provisioned cluster.
listAddons
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListClustersResponse listClusters(ListClustersRequest request)
ContainerEngine
List all the cluster objects in a compartment.
listClusters
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListNodePoolsResponse listNodePools(ListNodePoolsRequest request)
ContainerEngine
List all the node pools in a compartment, and optionally filter by cluster.
listNodePools
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListPodShapesResponse listPodShapes(ListPodShapesRequest request)
ContainerEngine
List all the Pod Shapes in a compartment.
listPodShapes
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListVirtualNodePoolsResponse listVirtualNodePools(ListVirtualNodePoolsRequest request)
ContainerEngine
List all the virtual node pools in a compartment, and optionally filter by cluster.
listVirtualNodePools
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListVirtualNodesResponse listVirtualNodes(ListVirtualNodesRequest request)
ContainerEngine
List virtual nodes in a virtual node pool.
listVirtualNodes
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
ContainerEngine
Get the errors of a work request.
listWorkRequestErrors
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
ContainerEngine
Get the logs of a work request.
listWorkRequestLogs
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
ContainerEngine
List all work requests in a compartment.
listWorkRequests
in interface ContainerEngine
request
- The request object containing the details to sendpublic ListWorkloadMappingsResponse listWorkloadMappings(ListWorkloadMappingsRequest request)
ContainerEngine
List workloadMappings for a provisioned cluster.
listWorkloadMappings
in interface ContainerEngine
request
- The request object containing the details to sendpublic StartCredentialRotationResponse startCredentialRotation(StartCredentialRotationRequest request)
ContainerEngine
Start cluster credential rotation by adding new credentials, old credentials will still work after this operation.
startCredentialRotation
in interface ContainerEngine
request
- The request object containing the details to sendpublic UpdateAddonResponse updateAddon(UpdateAddonRequest request)
ContainerEngine
Update addon details for a cluster.
updateAddon
in interface ContainerEngine
request
- The request object containing the details to sendpublic UpdateClusterResponse updateCluster(UpdateClusterRequest request)
ContainerEngine
Update the details of a cluster.
updateCluster
in interface ContainerEngine
request
- The request object containing the details to sendpublic UpdateClusterEndpointConfigResponse updateClusterEndpointConfig(UpdateClusterEndpointConfigRequest request)
ContainerEngine
Update the details of the cluster endpoint configuration.
updateClusterEndpointConfig
in interface ContainerEngine
request
- The request object containing the details to sendpublic UpdateNodePoolResponse updateNodePool(UpdateNodePoolRequest request)
ContainerEngine
Update the details of a node pool.
updateNodePool
in interface ContainerEngine
request
- The request object containing the details to sendpublic UpdateVirtualNodePoolResponse updateVirtualNodePool(UpdateVirtualNodePoolRequest request)
ContainerEngine
Update the details of a virtual node pool.
updateVirtualNodePool
in interface ContainerEngine
request
- The request object containing the details to sendpublic UpdateWorkloadMappingResponse updateWorkloadMapping(UpdateWorkloadMappingRequest request)
ContainerEngine
Update workloadMapping details for a cluster.
updateWorkloadMapping
in interface ContainerEngine
request
- The request object containing the details to sendpublic ContainerEngineWaiters getWaiters()
ContainerEngine
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface ContainerEngine
public ContainerEnginePaginators getPaginators()
ContainerEngine
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 ContainerEngine
protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
Copyright © 2016–2024. All rights reserved.