Class ManagedInstanceAsyncClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseAsyncClient
-
- com.oracle.bmc.osmanagementhub.ManagedInstanceAsyncClient
-
- All Implemented Interfaces:
ManagedInstanceAsync
,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20220901") public class ManagedInstanceAsyncClient extends BaseAsyncClient implements ManagedInstanceAsync
Async client implementation for ManagedInstance service.
There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response to the call is anInputStream
, like getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, because the stream will be closed right after the AsyncHandler is invoked.
2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine whether or not the request was completed via Future.isDone/isCancelled.
Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManagedInstanceAsyncClient.Builder
Builder class for this client.
-
Field Summary
Fields Modifier and Type Field 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 ManagedInstance.
-
Constructor Summary
Constructors Constructor Description ManagedInstanceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.ManagedInstanceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.ManagedInstanceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.ManagedInstanceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.ManagedInstanceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.ManagedInstanceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.ManagedInstanceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.
-
Method Summary
-
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.osmanagementhub.ManagedInstanceAsync
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
ManagedInstanceAsyncClient
@Deprecated public ManagedInstanceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeManagedInstanceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)
-
ManagedInstanceAsyncClient
@Deprecated public ManagedInstanceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeManagedInstanceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
-
ManagedInstanceAsyncClient
@Deprecated public ManagedInstanceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeManagedInstanceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
ManagedInstanceAsyncClient
@Deprecated public ManagedInstanceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeManagedInstanceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
-
ManagedInstanceAsyncClient
@Deprecated public ManagedInstanceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeManagedInstanceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
-
ManagedInstanceAsyncClient
@Deprecated public ManagedInstanceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeManagedInstanceAsyncClient.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)
-
ManagedInstanceAsyncClient
@Deprecated public ManagedInstanceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeManagedInstanceAsyncClient.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
-
-
Method Detail
-
builder
public static ManagedInstanceAsyncClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:ManagedInstanceAsync
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.- Specified by:
setRegion
in interfaceManagedInstanceAsync
- Parameters:
region
- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:ManagedInstanceAsync
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 callsetEndpoint
.- Specified by:
setRegion
in interfaceManagedInstanceAsync
- Parameters:
regionId
- The public region ID.
-
associateManagedInstancesWithManagementStation
public Future<AssociateManagedInstancesWithManagementStationResponse> associateManagedInstancesWithManagementStation(AssociateManagedInstancesWithManagementStationRequest request, AsyncHandler<AssociateManagedInstancesWithManagementStationRequest,AssociateManagedInstancesWithManagementStationResponse> handler)
Description copied from interface:ManagedInstanceAsync
Associates managed instances to the specified management station- Specified by:
associateManagedInstancesWithManagementStation
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
attachProfileToManagedInstance
public Future<AttachProfileToManagedInstanceResponse> attachProfileToManagedInstance(AttachProfileToManagedInstanceRequest request, AsyncHandler<AttachProfileToManagedInstanceRequest,AttachProfileToManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Adds profile to a managed instance.After the profile has been added, the instance can be registered as a managed instance.
- Specified by:
attachProfileToManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
attachSoftwareSourcesToManagedInstance
public Future<AttachSoftwareSourcesToManagedInstanceResponse> attachSoftwareSourcesToManagedInstance(AttachSoftwareSourcesToManagedInstanceRequest request, AsyncHandler<AttachSoftwareSourcesToManagedInstanceRequest,AttachSoftwareSourcesToManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Adds software sources to a managed instance.After the software source has been added, then packages from that software source can be installed on the managed instance.
- Specified by:
attachSoftwareSourcesToManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteManagedInstance
public Future<DeleteManagedInstanceResponse> deleteManagedInstance(DeleteManagedInstanceRequest request, AsyncHandler<DeleteManagedInstanceRequest,DeleteManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Unregisters the specified managed instance from the service.Once unregistered, the service will no longer manage the instance. For Linux instances, yum or DNF repository files will be restored to their state prior to registration.
- Specified by:
deleteManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
detachProfileFromManagedInstance
public Future<DetachProfileFromManagedInstanceResponse> detachProfileFromManagedInstance(DetachProfileFromManagedInstanceRequest request, AsyncHandler<DetachProfileFromManagedInstanceRequest,DetachProfileFromManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Detaches profile from a managed instance.After the profile has been removed, the instance cannot be registered as a managed instance.
- Specified by:
detachProfileFromManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
detachSoftwareSourcesFromManagedInstance
public Future<DetachSoftwareSourcesFromManagedInstanceResponse> detachSoftwareSourcesFromManagedInstance(DetachSoftwareSourcesFromManagedInstanceRequest request, AsyncHandler<DetachSoftwareSourcesFromManagedInstanceRequest,DetachSoftwareSourcesFromManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Removes software sources from a managed instance.Packages will no longer be able to be installed from these software sources.
- Specified by:
detachSoftwareSourcesFromManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
disableModuleStreamOnManagedInstance
public Future<DisableModuleStreamOnManagedInstanceResponse> disableModuleStreamOnManagedInstance(DisableModuleStreamOnManagedInstanceRequest request, AsyncHandler<DisableModuleStreamOnManagedInstanceRequest,DisableModuleStreamOnManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Disables a module stream on a managed instance.After the stream is disabled, it is no longer possible to install the profiles that are contained by the stream. All installed profiles must be removed prior to disabling a module stream.
- Specified by:
disableModuleStreamOnManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
enableModuleStreamOnManagedInstance
public Future<EnableModuleStreamOnManagedInstanceResponse> enableModuleStreamOnManagedInstance(EnableModuleStreamOnManagedInstanceRequest request, AsyncHandler<EnableModuleStreamOnManagedInstanceRequest,EnableModuleStreamOnManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Enables a module stream on a managed instance.After the stream is enabled, it is possible to install the profiles that are contained by the stream. Enabling a stream that is already enabled will succeed. Attempting to enable a different stream for a module that already has a stream enabled results in an error.
- Specified by:
enableModuleStreamOnManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getManagedInstance
public Future<GetManagedInstanceResponse> getManagedInstance(GetManagedInstanceRequest request, AsyncHandler<GetManagedInstanceRequest,GetManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Gets information about the specified managed instance.- Specified by:
getManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getWindowsUpdate
public Future<GetWindowsUpdateResponse> getWindowsUpdate(GetWindowsUpdateRequest request, AsyncHandler<GetWindowsUpdateRequest,GetWindowsUpdateResponse> handler)
Description copied from interface:ManagedInstanceAsync
Returns a Windows Update object.- Specified by:
getWindowsUpdate
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
installAllWindowsUpdatesOnManagedInstancesInCompartment
public Future<InstallAllWindowsUpdatesOnManagedInstancesInCompartmentResponse> installAllWindowsUpdatesOnManagedInstancesInCompartment(InstallAllWindowsUpdatesOnManagedInstancesInCompartmentRequest request, AsyncHandler<InstallAllWindowsUpdatesOnManagedInstancesInCompartmentRequest,InstallAllWindowsUpdatesOnManagedInstancesInCompartmentResponse> handler)
Description copied from interface:ManagedInstanceAsync
Installs all of the available Windows updates for managed instances in a compartment.This applies only to standalone Windows instances. This will not update instances that belong to a group.
- Specified by:
installAllWindowsUpdatesOnManagedInstancesInCompartment
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
installModuleStreamProfileOnManagedInstance
public Future<InstallModuleStreamProfileOnManagedInstanceResponse> installModuleStreamProfileOnManagedInstance(InstallModuleStreamProfileOnManagedInstanceRequest request, AsyncHandler<InstallModuleStreamProfileOnManagedInstanceRequest,InstallModuleStreamProfileOnManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Installs a profile for an module stream.The stream must be enabled before a profile can be installed. If a module stream defines multiple profiles, each one can be installed independently.
- Specified by:
installModuleStreamProfileOnManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
installPackagesOnManagedInstance
public Future<InstallPackagesOnManagedInstanceResponse> installPackagesOnManagedInstance(InstallPackagesOnManagedInstanceRequest request, AsyncHandler<InstallPackagesOnManagedInstanceRequest,InstallPackagesOnManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Installs packages on a managed instance.- Specified by:
installPackagesOnManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
installWindowsUpdatesOnManagedInstance
public Future<InstallWindowsUpdatesOnManagedInstanceResponse> installWindowsUpdatesOnManagedInstance(InstallWindowsUpdatesOnManagedInstanceRequest request, AsyncHandler<InstallWindowsUpdatesOnManagedInstanceRequest,InstallWindowsUpdatesOnManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Installs Windows updates on the specified managed instance.- Specified by:
installWindowsUpdatesOnManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceAvailablePackages
public Future<ListManagedInstanceAvailablePackagesResponse> listManagedInstanceAvailablePackages(ListManagedInstanceAvailablePackagesRequest request, AsyncHandler<ListManagedInstanceAvailablePackagesRequest,ListManagedInstanceAvailablePackagesResponse> handler)
Description copied from interface:ManagedInstanceAsync
Returns a list of packages that are available for installation on a managed instance.- Specified by:
listManagedInstanceAvailablePackages
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceAvailableSoftwareSources
public Future<ListManagedInstanceAvailableSoftwareSourcesResponse> listManagedInstanceAvailableSoftwareSources(ListManagedInstanceAvailableSoftwareSourcesRequest request, AsyncHandler<ListManagedInstanceAvailableSoftwareSourcesRequest,ListManagedInstanceAvailableSoftwareSourcesResponse> handler)
Description copied from interface:ManagedInstanceAsync
Returns a list of software sources that can be attached to the specified managed instance.Any software sources already attached to the instance are not included in the list.
- Specified by:
listManagedInstanceAvailableSoftwareSources
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceAvailableWindowsUpdates
public Future<ListManagedInstanceAvailableWindowsUpdatesResponse> listManagedInstanceAvailableWindowsUpdates(ListManagedInstanceAvailableWindowsUpdatesRequest request, AsyncHandler<ListManagedInstanceAvailableWindowsUpdatesRequest,ListManagedInstanceAvailableWindowsUpdatesResponse> handler)
Description copied from interface:ManagedInstanceAsync
Returns a list of Windows updates that can be installed on the specified managed instance.- Specified by:
listManagedInstanceAvailableWindowsUpdates
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceErrata
public Future<ListManagedInstanceErrataResponse> listManagedInstanceErrata(ListManagedInstanceErrataRequest request, AsyncHandler<ListManagedInstanceErrataRequest,ListManagedInstanceErrataResponse> handler)
Description copied from interface:ManagedInstanceAsync
Returns a list of applicable errata on the managed instance.- Specified by:
listManagedInstanceErrata
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceInstalledPackages
public Future<ListManagedInstanceInstalledPackagesResponse> listManagedInstanceInstalledPackages(ListManagedInstanceInstalledPackagesRequest request, AsyncHandler<ListManagedInstanceInstalledPackagesRequest,ListManagedInstanceInstalledPackagesResponse> handler)
Description copied from interface:ManagedInstanceAsync
Lists the packages that are installed on the managed instance.- Specified by:
listManagedInstanceInstalledPackages
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceInstalledWindowsUpdates
public Future<ListManagedInstanceInstalledWindowsUpdatesResponse> listManagedInstanceInstalledWindowsUpdates(ListManagedInstanceInstalledWindowsUpdatesRequest request, AsyncHandler<ListManagedInstanceInstalledWindowsUpdatesRequest,ListManagedInstanceInstalledWindowsUpdatesResponse> handler)
Description copied from interface:ManagedInstanceAsync
Returns a list of Windows updates that have been installed on the specified managed instance.- Specified by:
listManagedInstanceInstalledWindowsUpdates
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceModules
public Future<ListManagedInstanceModulesResponse> listManagedInstanceModules(ListManagedInstanceModulesRequest request, AsyncHandler<ListManagedInstanceModulesRequest,ListManagedInstanceModulesResponse> handler)
Description copied from interface:ManagedInstanceAsync
Retrieves a list of modules, along with streams of the modules, from a managed instance.Filters may be applied to select a subset of modules based on the filter criteria.
- Specified by:
listManagedInstanceModules
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceUpdatablePackages
public Future<ListManagedInstanceUpdatablePackagesResponse> listManagedInstanceUpdatablePackages(ListManagedInstanceUpdatablePackagesRequest request, AsyncHandler<ListManagedInstanceUpdatablePackagesRequest,ListManagedInstanceUpdatablePackagesResponse> handler)
Description copied from interface:ManagedInstanceAsync
Returns a list of updatable packages for a managed instance.- Specified by:
listManagedInstanceUpdatablePackages
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstances
public Future<ListManagedInstancesResponse> listManagedInstances(ListManagedInstancesRequest request, AsyncHandler<ListManagedInstancesRequest,ListManagedInstancesResponse> handler)
Description copied from interface:ManagedInstanceAsync
Lists managed instances that match the specified compartment or managed instance OCID.Filter the list against a variety of criteria including but not limited to its name, status, architecture, and OS version.
- Specified by:
listManagedInstances
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWindowsUpdates
public Future<ListWindowsUpdatesResponse> listWindowsUpdates(ListWindowsUpdatesRequest request, AsyncHandler<ListWindowsUpdatesRequest,ListWindowsUpdatesResponse> handler)
Description copied from interface:ManagedInstanceAsync
Lists Windows updates that have been reported to the service.- Specified by:
listWindowsUpdates
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
manageModuleStreamsOnManagedInstance
public Future<ManageModuleStreamsOnManagedInstanceResponse> manageModuleStreamsOnManagedInstance(ManageModuleStreamsOnManagedInstanceRequest request, AsyncHandler<ManageModuleStreamsOnManagedInstanceRequest,ManageModuleStreamsOnManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Enables or disables module streams and installs or removes module stream profiles.Once complete, the state of the modules, streams, and profiles will match the state indicated in the operation. See
manageModuleStreamsOnManagedInstanceDetails
for more information. You can preform this operation as a dry run. For a dry run, the service evaluates the operation against the current module, stream, and profile state on the managed instance, but does not commit the changes. Instead, the service returns work request log or error entries indicating the impact of the operation.- Specified by:
manageModuleStreamsOnManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
rebootManagedInstance
public Future<RebootManagedInstanceResponse> rebootManagedInstance(RebootManagedInstanceRequest request, AsyncHandler<RebootManagedInstanceRequest,RebootManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Initiates a reboot of the specified managed instance.You can also specify the number of minutes the service waits before marking the reboot operation as failed.
- Specified by:
rebootManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
refreshSoftwareOnManagedInstance
public Future<RefreshSoftwareOnManagedInstanceResponse> refreshSoftwareOnManagedInstance(RefreshSoftwareOnManagedInstanceRequest request, AsyncHandler<RefreshSoftwareOnManagedInstanceRequest,RefreshSoftwareOnManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Refreshes the package or Windows update information on a managed instance with the latest data from the software source.This does not update packages on the instance. It provides the service with the latest package data.
- Specified by:
refreshSoftwareOnManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
removeModuleStreamProfileFromManagedInstance
public Future<RemoveModuleStreamProfileFromManagedInstanceResponse> removeModuleStreamProfileFromManagedInstance(RemoveModuleStreamProfileFromManagedInstanceRequest request, AsyncHandler<RemoveModuleStreamProfileFromManagedInstanceRequest,RemoveModuleStreamProfileFromManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Removes a profile for a module stream that is installed on a managed instance.If a module stream is provided, rather than a fully qualified profile, all profiles that have been installed for the module stream will be removed.
- Specified by:
removeModuleStreamProfileFromManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
removePackagesFromManagedInstance
public Future<RemovePackagesFromManagedInstanceResponse> removePackagesFromManagedInstance(RemovePackagesFromManagedInstanceRequest request, AsyncHandler<RemovePackagesFromManagedInstanceRequest,RemovePackagesFromManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Removes an installed package from a managed instance.- Specified by:
removePackagesFromManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
switchModuleStreamOnManagedInstance
public Future<SwitchModuleStreamOnManagedInstanceResponse> switchModuleStreamOnManagedInstance(SwitchModuleStreamOnManagedInstanceRequest request, AsyncHandler<SwitchModuleStreamOnManagedInstanceRequest,SwitchModuleStreamOnManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Enables a new stream for a module that already has a stream enabled.If any profiles or packages from the original module are installed, switching to a new stream will remove the existing packages and install their counterparts in the new stream.
- Specified by:
switchModuleStreamOnManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateAllPackagesOnManagedInstancesInCompartment
public Future<UpdateAllPackagesOnManagedInstancesInCompartmentResponse> updateAllPackagesOnManagedInstancesInCompartment(UpdateAllPackagesOnManagedInstancesInCompartmentRequest request, AsyncHandler<UpdateAllPackagesOnManagedInstancesInCompartmentRequest,UpdateAllPackagesOnManagedInstancesInCompartmentResponse> handler)
Description copied from interface:ManagedInstanceAsync
Install all of the available package updates for all of the managed instances in a compartment.This applies only to standalone non-Windows instances. This will not update instances that belong to a group or lifecycle environment.
- Specified by:
updateAllPackagesOnManagedInstancesInCompartment
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateManagedInstance
public Future<UpdateManagedInstanceResponse> updateManagedInstance(UpdateManagedInstanceRequest request, AsyncHandler<UpdateManagedInstanceRequest,UpdateManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Updates the specified managed instance information, such as description, ONS topic, and associated management station.- Specified by:
updateManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updatePackagesOnManagedInstance
public Future<UpdatePackagesOnManagedInstanceResponse> updatePackagesOnManagedInstance(UpdatePackagesOnManagedInstanceRequest request, AsyncHandler<UpdatePackagesOnManagedInstanceRequest,UpdatePackagesOnManagedInstanceResponse> handler)
Description copied from interface:ManagedInstanceAsync
Updates a package on a managed instance.- Specified by:
updatePackagesOnManagedInstance
in interfaceManagedInstanceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
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
ClientConfigurator
s again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
getMinimumClientCommonLibraryVersionFromClient
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
-
clientCall
protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>> ClientCall<REQ,RESP,RESP_BUILDER> clientCall(REQ request, Supplier<RESP_BUILDER> responseBuilder)
-
-