@Generated(value="OracleSDKGenerator", comments="API Version: 20231107") public interface CapacityManagementAsync extends AutoCloseable
OCI Control Center (OCC) Capacity Management enables you to manage capacity requests in realms where OCI Control Center Capacity Management is available. For more information, see OCI Control Center.
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<CreateOccAvailabilityCatalogResponse> createOccAvailabilityCatalog(CreateOccAvailabilityCatalogRequest request, AsyncHandler<CreateOccAvailabilityCatalogRequest,CreateOccAvailabilityCatalogResponse> handler)
Create availability catalog
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateOccCapacityRequestResponse> createOccCapacityRequest(CreateOccCapacityRequestRequest request, AsyncHandler<CreateOccCapacityRequestRequest,CreateOccCapacityRequestResponse> handler)
Create Capacity Request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateOccCustomerResponse> createOccCustomer(CreateOccCustomerRequest request, AsyncHandler<CreateOccCustomerRequest,CreateOccCustomerResponse> handler)
Create customer.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateOccCustomerGroupResponse> createOccCustomerGroup(CreateOccCustomerGroupRequest request, AsyncHandler<CreateOccCustomerGroupRequest,CreateOccCustomerGroupResponse> handler)
Create customer group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteOccAvailabilityCatalogResponse> deleteOccAvailabilityCatalog(DeleteOccAvailabilityCatalogRequest request, AsyncHandler<DeleteOccAvailabilityCatalogRequest,DeleteOccAvailabilityCatalogResponse> handler)
Deletes the availability catalog resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteOccCapacityRequestResponse> deleteOccCapacityRequest(DeleteOccCapacityRequestRequest request, AsyncHandler<DeleteOccCapacityRequestRequest,DeleteOccCapacityRequestResponse> handler)
Deletes the capacity request resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteOccCustomerResponse> deleteOccCustomer(DeleteOccCustomerRequest request, AsyncHandler<DeleteOccCustomerRequest,DeleteOccCustomerResponse> handler)
Deletes the customer resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteOccCustomerGroupResponse> deleteOccCustomerGroup(DeleteOccCustomerGroupRequest request, AsyncHandler<DeleteOccCustomerGroupRequest,DeleteOccCustomerGroupResponse> handler)
Deletes the customer group resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetOccAvailabilityCatalogResponse> getOccAvailabilityCatalog(GetOccAvailabilityCatalogRequest request, AsyncHandler<GetOccAvailabilityCatalogRequest,GetOccAvailabilityCatalogResponse> handler)
Get details about availability catalog.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetOccAvailabilityCatalogContentResponse> getOccAvailabilityCatalogContent(GetOccAvailabilityCatalogContentRequest request, AsyncHandler<GetOccAvailabilityCatalogContentRequest,GetOccAvailabilityCatalogContentResponse> handler)
Returns the binary contents of the availability catalog. Can be saved as a csv file.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetOccCapacityRequestResponse> getOccCapacityRequest(GetOccCapacityRequestRequest request, AsyncHandler<GetOccCapacityRequestRequest,GetOccCapacityRequestResponse> handler)
Get details about the capacity request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetOccCustomerGroupResponse> getOccCustomerGroup(GetOccCustomerGroupRequest request, AsyncHandler<GetOccCustomerGroupRequest,GetOccCustomerGroupResponse> handler)
Gets information about the specified customer group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListInternalNamespaceOccOverviewsResponse> listInternalNamespaceOccOverviews(ListInternalNamespaceOccOverviewsRequest request, AsyncHandler<ListInternalNamespaceOccOverviewsRequest,ListInternalNamespaceOccOverviewsResponse> handler)
Lists an overview of all resources in that namespace in a given time interval.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListInternalOccHandoverResourceBlockDetailsResponse> listInternalOccHandoverResourceBlockDetails(ListInternalOccHandoverResourceBlockDetailsRequest request, AsyncHandler<ListInternalOccHandoverResourceBlockDetailsRequest,ListInternalOccHandoverResourceBlockDetailsResponse> handler)
List details about a given occHandoverResourceBlock.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListInternalOccHandoverResourceBlocksResponse> listInternalOccHandoverResourceBlocks(ListInternalOccHandoverResourceBlocksRequest request, AsyncHandler<ListInternalOccHandoverResourceBlocksRequest,ListInternalOccHandoverResourceBlocksResponse> handler)
List Occ Handover Resource blocks.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListOccAvailabilitiesResponse> listOccAvailabilities(ListOccAvailabilitiesRequest request, AsyncHandler<ListOccAvailabilitiesRequest,ListOccAvailabilitiesResponse> handler)
Lists availabilities for a particular availability catalog.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListOccAvailabilityCatalogsResponse> listOccAvailabilityCatalogs(ListOccAvailabilityCatalogsRequest request, AsyncHandler<ListOccAvailabilityCatalogsRequest,ListOccAvailabilityCatalogsResponse> handler)
Lists all availability catalogs.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListOccAvailabilityCatalogsInternalResponse> listOccAvailabilityCatalogsInternal(ListOccAvailabilityCatalogsInternalRequest request, AsyncHandler<ListOccAvailabilityCatalogsInternalRequest,ListOccAvailabilityCatalogsInternalResponse> handler)
An internal api to list availability catalogs.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListOccCapacityRequestsResponse> listOccCapacityRequests(ListOccCapacityRequestsRequest request, AsyncHandler<ListOccCapacityRequestsRequest,ListOccCapacityRequestsResponse> handler)
Lists all capacity requests.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListOccCapacityRequestsInternalResponse> listOccCapacityRequestsInternal(ListOccCapacityRequestsInternalRequest request, AsyncHandler<ListOccCapacityRequestsInternalRequest,ListOccCapacityRequestsInternalResponse> handler)
An internal api to list all capacity requests.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListOccCustomerGroupsResponse> listOccCustomerGroups(ListOccCustomerGroupsRequest request, AsyncHandler<ListOccCustomerGroupsRequest,ListOccCustomerGroupsResponse> handler)
Lists all the customer groups.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListOccHandoverResourceBlockDetailsResponse> listOccHandoverResourceBlockDetails(ListOccHandoverResourceBlockDetailsRequest request, AsyncHandler<ListOccHandoverResourceBlockDetailsRequest,ListOccHandoverResourceBlockDetailsResponse> handler)
List details about a given occHandoverResourceBlock.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListOccHandoverResourceBlocksResponse> listOccHandoverResourceBlocks(ListOccHandoverResourceBlocksRequest request, AsyncHandler<ListOccHandoverResourceBlocksRequest,ListOccHandoverResourceBlocksResponse> handler)
List Occ Handover Resource blocks.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListOccOverviewsResponse> listOccOverviews(ListOccOverviewsRequest request, AsyncHandler<ListOccOverviewsRequest,ListOccOverviewsResponse> handler)
Lists an overview of all resources in that namespace in a given time interval.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<PatchInternalOccCapacityRequestResponse> patchInternalOccCapacityRequest(PatchInternalOccCapacityRequestRequest request, AsyncHandler<PatchInternalOccCapacityRequestRequest,PatchInternalOccCapacityRequestResponse> handler)
Updates the OccCapacityRequest by evaluating a sequence of instructions.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<PatchOccCapacityRequestResponse> patchOccCapacityRequest(PatchOccCapacityRequestRequest request, AsyncHandler<PatchOccCapacityRequestRequest,PatchOccCapacityRequestResponse> handler)
Updates the OccCapacityRequest by evaluating a sequence of instructions.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<PublishOccAvailabilityCatalogResponse> publishOccAvailabilityCatalog(PublishOccAvailabilityCatalogRequest request, AsyncHandler<PublishOccAvailabilityCatalogRequest,PublishOccAvailabilityCatalogResponse> handler)
Publishes the version of availability catalog specified by the operator. This makes that catalog version visible to customers.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateInternalOccCapacityRequestResponse> updateInternalOccCapacityRequest(UpdateInternalOccCapacityRequestRequest request, AsyncHandler<UpdateInternalOccCapacityRequestRequest,UpdateInternalOccCapacityRequestResponse> handler)
The internal api to update the capacity request. This api will be used by operators for updating the capacity request to either completed, resubmitted or rejected.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateOccAvailabilityCatalogResponse> updateOccAvailabilityCatalog(UpdateOccAvailabilityCatalogRequest request, AsyncHandler<UpdateOccAvailabilityCatalogRequest,UpdateOccAvailabilityCatalogResponse> handler)
The request to update the availability catalog. Currently only freeform tags can be updated via this api.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateOccCapacityRequestResponse> updateOccCapacityRequest(UpdateOccCapacityRequestRequest request, AsyncHandler<UpdateOccCapacityRequestRequest,UpdateOccCapacityRequestResponse> handler)
The request to update the capacity request. The user can perform actions like closing a partially completed request so that it doesn’t go ahead for full completion.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateOccCustomerResponse> updateOccCustomer(UpdateOccCustomerRequest request, AsyncHandler<UpdateOccCustomerRequest,UpdateOccCustomerResponse> handler)
The request to update the customer.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateOccCustomerGroupResponse> updateOccCustomerGroup(UpdateOccCustomerGroupRequest request, AsyncHandler<UpdateOccCustomerGroupRequest,UpdateOccCustomerGroupResponse> handler)
The request to update the customer group.
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.