Class ClusterPlacementGroupsCPClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.clusterplacementgroups.ClusterPlacementGroupsCPClient
-
- All Implemented Interfaces:
ClusterPlacementGroupsCP,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20230801") public class ClusterPlacementGroupsCPClient extends BaseSyncClient implements ClusterPlacementGroupsCP
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterPlacementGroupsCPClient.BuilderBuilder class for this client.
-
Field Summary
Fields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for ClusterPlacementGroupsCP.
-
Constructor Summary
Constructors Constructor Description ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.ClusterPlacementGroupsCPClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.ClusterPlacementGroupsCPClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.ClusterPlacementGroupsCPClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivateClusterPlacementGroupResponseactivateClusterPlacementGroup(ActivateClusterPlacementGroupRequest request)Activates the specified, previously deactivated cluster placement group to let resources be created in it.static ClusterPlacementGroupsCPClient.Builderbuilder()Create a builder for this client.CancelWorkRequestResponsecancelWorkRequest(CancelWorkRequestRequest request)Cancels the work request with the specified ID.ChangeClusterPlacementGroupCompartmentResponsechangeClusterPlacementGroupCompartment(ChangeClusterPlacementGroupCompartmentRequest request)Moves a cluster placement group resource from one compartment to another in the same tenancy.voidclose()CreateClusterPlacementGroupResponsecreateClusterPlacementGroup(CreateClusterPlacementGroupRequest request)Creates a new cluster placement group in the specified compartment.DeactivateClusterPlacementGroupResponsedeactivateClusterPlacementGroup(DeactivateClusterPlacementGroupRequest request)Deactivates the specified cluster placement group to prevent new resources from being created in it.DeleteClusterPlacementGroupResponsedeleteClusterPlacementGroup(DeleteClusterPlacementGroupRequest request)Deletes the specified cluster placement group.StringgetClientCommonLibraryVersion()GetClusterPlacementGroupResponsegetClusterPlacementGroup(GetClusterPlacementGroupRequest request)Gets the specified cluster placement group.protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()Optional<String>getMinimumClientCommonLibraryVersionFromClient()ClusterPlacementGroupsCPPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.ClusterPlacementGroupsCPWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.GetWorkRequestResponsegetWorkRequest(GetWorkRequestRequest request)Gets details of the work request with the specified ID.ListClusterPlacementGroupsResponselistClusterPlacementGroups(ListClusterPlacementGroupsRequest request)Gets a list of all cluster placement groups in the specified compartment.ListWorkRequestErrorsResponselistWorkRequestErrors(ListWorkRequestErrorsRequest request)Returns a (paginated) list of errors for the work request with the specified ID.ListWorkRequestLogsResponselistWorkRequestLogs(ListWorkRequestLogsRequest request)Returns a (paginated) list of logs for the work request with the specified ID.ListWorkRequestsResponselistWorkRequests(ListWorkRequestsRequest request)Lists all work requests in the specified compartment.voidpopulateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)Populate the parameters in the endpoint with its corresponding value and update the base endpoint.voidrefreshClient()Rebuild the backingHttpClient.voidsetEndpoint(String endpoint)voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.UpdateClusterPlacementGroupResponseupdateClusterPlacementGroup(UpdateClusterPlacementGroupRequest request)Updates the specified cluster placement group.voiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.-
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.clusterplacementgroups.ClusterPlacementGroupsCP
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
ClusterPlacementGroupsCPClient
@Deprecated public ClusterPlacementGroupsCPClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeClusterPlacementGroupsCPClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
-
ClusterPlacementGroupsCPClient
@Deprecated public ClusterPlacementGroupsCPClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeClusterPlacementGroupsCPClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configuration
-
ClusterPlacementGroupsCPClient
@Deprecated public ClusterPlacementGroupsCPClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeClusterPlacementGroupsCPClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
ClusterPlacementGroupsCPClient
@Deprecated public ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeClusterPlacementGroupsCPClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactory
-
ClusterPlacementGroupsCPClient
@Deprecated public ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeClusterPlacementGroupsCPClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfigurators
-
ClusterPlacementGroupsCPClient
@Deprecated public ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeClusterPlacementGroupsCPClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)
-
ClusterPlacementGroupsCPClient
@Deprecated public ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeClusterPlacementGroupsCPClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactories
-
ClusterPlacementGroupsCPClient
@Deprecated public ClusterPlacementGroupsCPClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeClusterPlacementGroupsCPClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactoriesexecutorService-ClusterPlacementGroupsCPClient.Builder.executorService
-
-
Method Detail
-
builder
public static ClusterPlacementGroupsCPClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:ClusterPlacementGroupsCPSets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Specified by:
setRegionin interfaceClusterPlacementGroupsCP- Parameters:
region- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:ClusterPlacementGroupsCPSets 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 callsetEndpoint.- Specified by:
setRegionin interfaceClusterPlacementGroupsCP- Parameters:
regionId- The public region ID.
-
activateClusterPlacementGroup
public ActivateClusterPlacementGroupResponse activateClusterPlacementGroup(ActivateClusterPlacementGroupRequest request)
Description copied from interface:ClusterPlacementGroupsCPActivates the specified, previously deactivated cluster placement group to let resources be created in it.- Specified by:
activateClusterPlacementGroupin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
cancelWorkRequest
public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
Description copied from interface:ClusterPlacementGroupsCPCancels the work request with the specified ID.- Specified by:
cancelWorkRequestin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeClusterPlacementGroupCompartment
public ChangeClusterPlacementGroupCompartmentResponse changeClusterPlacementGroupCompartment(ChangeClusterPlacementGroupCompartmentRequest request)
Description copied from interface:ClusterPlacementGroupsCPMoves a cluster placement group resource from one compartment to another in the same tenancy.For information about moving resources between compartments, see Moving Resources to a Different Compartment.
When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeClusterPlacementGroupCompartmentin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createClusterPlacementGroup
public CreateClusterPlacementGroupResponse createClusterPlacementGroup(CreateClusterPlacementGroupRequest request)
Description copied from interface:ClusterPlacementGroupsCPCreates a new cluster placement group in the specified compartment.- Specified by:
createClusterPlacementGroupin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deactivateClusterPlacementGroup
public DeactivateClusterPlacementGroupResponse deactivateClusterPlacementGroup(DeactivateClusterPlacementGroupRequest request)
Description copied from interface:ClusterPlacementGroupsCPDeactivates the specified cluster placement group to prevent new resources from being created in it.- Specified by:
deactivateClusterPlacementGroupin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteClusterPlacementGroup
public DeleteClusterPlacementGroupResponse deleteClusterPlacementGroup(DeleteClusterPlacementGroupRequest request)
Description copied from interface:ClusterPlacementGroupsCPDeletes the specified cluster placement group.- Specified by:
deleteClusterPlacementGroupin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getClusterPlacementGroup
public GetClusterPlacementGroupResponse getClusterPlacementGroup(GetClusterPlacementGroupRequest request)
Description copied from interface:ClusterPlacementGroupsCPGets the specified cluster placement group.- Specified by:
getClusterPlacementGroupin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWorkRequest
public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Description copied from interface:ClusterPlacementGroupsCPGets details of the work request with the specified ID.- Specified by:
getWorkRequestin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listClusterPlacementGroups
public ListClusterPlacementGroupsResponse listClusterPlacementGroups(ListClusterPlacementGroupsRequest request)
Description copied from interface:ClusterPlacementGroupsCPGets a list of all cluster placement groups in the specified compartment.- Specified by:
listClusterPlacementGroupsin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestErrors
public ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Description copied from interface:ClusterPlacementGroupsCPReturns a (paginated) list of errors for the work request with the specified ID.- Specified by:
listWorkRequestErrorsin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestLogs
public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Description copied from interface:ClusterPlacementGroupsCPReturns a (paginated) list of logs for the work request with the specified ID.- Specified by:
listWorkRequestLogsin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequests
public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Description copied from interface:ClusterPlacementGroupsCPLists all work requests in the specified compartment.- Specified by:
listWorkRequestsin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateClusterPlacementGroup
public UpdateClusterPlacementGroupResponse updateClusterPlacementGroup(UpdateClusterPlacementGroupRequest request)
Description copied from interface:ClusterPlacementGroupsCPUpdates the specified cluster placement group.- Specified by:
updateClusterPlacementGroupin interfaceClusterPlacementGroupsCP- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public ClusterPlacementGroupsCPWaiters getWaiters()
Description copied from interface:ClusterPlacementGroupsCPGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceClusterPlacementGroupsCP- Returns:
- The service waiters.
-
getPaginators
public ClusterPlacementGroupsCPPaginators getPaginators()
Description copied from interface:ClusterPlacementGroupsCPGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an
Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
getPaginatorsin interfaceClusterPlacementGroupsCP- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint- The endpoint template in userequiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-