@Generated(value="OracleSDKGenerator", comments="API Version: 20220901") public interface LifecycleEnvironmentAsync extends AutoCloseable
Use the OS Management Hub API to manage and monitor updates and patches for instances in OCI, your private data center, or 3rd-party clouds. For more information, see Overview of OS Management Hub.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<AttachManagedInstancesToLifecycleStageResponse> attachManagedInstancesToLifecycleStage(AttachManagedInstancesToLifecycleStageRequest request, AsyncHandler<AttachManagedInstancesToLifecycleStageRequest,AttachManagedInstancesToLifecycleStageResponse> handler)
Attaches (adds) managed instances to a lifecycle stage. Once added, you can apply operations to all managed instances in the lifecycle stage.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeLifecycleEnvironmentCompartmentResponse> changeLifecycleEnvironmentCompartment(ChangeLifecycleEnvironmentCompartmentRequest request, AsyncHandler<ChangeLifecycleEnvironmentCompartmentRequest,ChangeLifecycleEnvironmentCompartmentResponse> handler)
Moves a lifecycle environment into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateLifecycleEnvironmentResponse> createLifecycleEnvironment(CreateLifecycleEnvironmentRequest request, AsyncHandler<CreateLifecycleEnvironmentRequest,CreateLifecycleEnvironmentResponse> handler)
Creates a lifecycle environment. A lifecycle environment is a user-defined pipeline to deliver curated, versioned content in a prescribed, methodical manner.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteLifecycleEnvironmentResponse> deleteLifecycleEnvironment(DeleteLifecycleEnvironmentRequest request, AsyncHandler<DeleteLifecycleEnvironmentRequest,DeleteLifecycleEnvironmentResponse> handler)
Deletes the specified lifecycle environment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DetachManagedInstancesFromLifecycleStageResponse> detachManagedInstancesFromLifecycleStage(DetachManagedInstancesFromLifecycleStageRequest request, AsyncHandler<DetachManagedInstancesFromLifecycleStageRequest,DetachManagedInstancesFromLifecycleStageResponse> handler)
Detaches (removes) a managed instance from a lifecycle stage.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetLifecycleEnvironmentResponse> getLifecycleEnvironment(GetLifecycleEnvironmentRequest request, AsyncHandler<GetLifecycleEnvironmentRequest,GetLifecycleEnvironmentResponse> handler)
Gets information about the specified lifecycle environment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetLifecycleStageResponse> getLifecycleStage(GetLifecycleStageRequest request, AsyncHandler<GetLifecycleStageRequest,GetLifecycleStageResponse> handler)
Returns information about the specified lifecycle stage.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListLifecycleEnvironmentsResponse> listLifecycleEnvironments(ListLifecycleEnvironmentsRequest request, AsyncHandler<ListLifecycleEnvironmentsRequest,ListLifecycleEnvironmentsResponse> handler)
Lists lifecycle environments that match the specified compartment or lifecycle environment OCID. Filter the list against a variety of criteria including but not limited to its name, status, architecture, and OS family.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListLifecycleStageInstalledPackagesResponse> listLifecycleStageInstalledPackages(ListLifecycleStageInstalledPackagesRequest request, AsyncHandler<ListLifecycleStageInstalledPackagesRequest,ListLifecycleStageInstalledPackagesResponse> handler)
Lists installed packages on managed instances in a specified lifecycle stage. Filter the list against a variety of criteria including but not limited to the package name.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListLifecycleStagesResponse> listLifecycleStages(ListLifecycleStagesRequest request, AsyncHandler<ListLifecycleStagesRequest,ListLifecycleStagesResponse> handler)
Lists lifecycle stages that match the specified compartment or lifecycle stage OCID. Filter the list against
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<PromoteSoftwareSourceToLifecycleStageResponse> promoteSoftwareSourceToLifecycleStage(PromoteSoftwareSourceToLifecycleStageRequest request, AsyncHandler<PromoteSoftwareSourceToLifecycleStageRequest,PromoteSoftwareSourceToLifecycleStageResponse> handler)
Updates the versioned custom software source content to the specified lifecycle stage. A versioned custom software source OCID (softwareSourceId) is required when promoting content to the first lifecycle stage. You must promote content to the first stage before promoting to subsequent stages, otherwise the service returns an error. The softwareSourceId is optional when promoting content to the second, third, forth, or fifth stages. If you provide a softwareSourceId, the service validates that it matches the softwareSourceId of the previous stage. If it does not match, the service returns an error. If you don’t provide a softwareSourceId, the service promotes the versioned software source from the previous lifecycle stage. If the previous lifecycle stage has no software source, the service returns an error.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateLifecycleEnvironmentResponse> updateLifecycleEnvironment(UpdateLifecycleEnvironmentRequest request, AsyncHandler<UpdateLifecycleEnvironmentRequest,UpdateLifecycleEnvironmentResponse> handler)
Updates the specified lifecycle environment’s name, description, stages, or tags.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.