Class UsageapiClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.usageapi.UsageapiClient
-
- All Implemented Interfaces:
Usageapi,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20200107") public class UsageapiClient extends BaseSyncClient implements Usageapi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsageapiClient.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 Usageapi.
-
Constructor Summary
Constructors Constructor Description UsageapiClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.UsageapiClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.UsageapiClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.UsageapiClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.UsageapiClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.UsageapiClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.UsageapiClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.UsageapiClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsageapiClient.Builderbuilder()Create a builder for this client.voidclose()CreateCustomTableResponsecreateCustomTable(CreateCustomTableRequest request)Returns the created custom table.CreateEmailRecipientsGroupResponsecreateEmailRecipientsGroup(CreateEmailRecipientsGroupRequest request)Creates a list of email recipients that can receive usage statements for the subscription.CreateQueryResponsecreateQuery(CreateQueryRequest request)Returns the created query.CreateScheduleResponsecreateSchedule(CreateScheduleRequest request)Returns the created schedule.CreateUsageCarbonEmissionsQueryResponsecreateUsageCarbonEmissionsQuery(CreateUsageCarbonEmissionsQueryRequest request)Returns the created carbon emissions usage query.DeleteCustomTableResponsedeleteCustomTable(DeleteCustomTableRequest request)Delete a saved custom table by the OCID.DeleteEmailRecipientsGroupResponsedeleteEmailRecipientsGroup(DeleteEmailRecipientsGroupRequest request)Deletes the email recipients group for the usage statement subscription.DeleteQueryResponsedeleteQuery(DeleteQueryRequest request)Delete a saved query by the OCID.DeleteScheduleResponsedeleteSchedule(DeleteScheduleRequest request)Delete a saved scheduled report by the OCID.DeleteUsageCarbonEmissionsQueryResponsedeleteUsageCarbonEmissionsQuery(DeleteUsageCarbonEmissionsQueryRequest request)Delete a carbon emissions usage saved query by the OCID.voidenableDualStackEndpoints(boolean enableDualStackEndpoints)This method should be used to enable or disable the use of dual-stack endpoints.StringgetClientCommonLibraryVersion()GetCustomTableResponsegetCustomTable(GetCustomTableRequest request)Returns the saved custom table.protected ClientConfiguratorgetDefaultConfigurator()GetEmailRecipientsGroupResponsegetEmailRecipientsGroup(GetEmailRecipientsGroupRequest request)Returns the saved usage statement email recipients group.StringgetEndpoint()Get the endpoint of the client.Optional<String>getMinimumClientCommonLibraryVersionFromClient()Map<String,Boolean>getOptionsMap()Return an immutable snapshot representing the current options set for this client.UsageapiPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetQueryResponsegetQuery(GetQueryRequest request)Returns the saved query.StringgetResolvedEndpoint(Map<String,Object> requiredParametersMap)Returns the endpoint after filling in the current options, as determined byBaseClient.getOptionsMap(), and then filling in the required parameters in requiredParametersMap into the placeholders in the endpoint.GetScheduleResponsegetSchedule(GetScheduleRequest request)Returns the saved schedule.GetScheduledRunResponsegetScheduledRun(GetScheduledRunRequest request)Returns the saved schedule run.GetUsageCarbonEmissionsQueryResponsegetUsageCarbonEmissionsQuery(GetUsageCarbonEmissionsQueryRequest request)Returns the carbon emissions usage saved query.UsageapiWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.ListCustomTablesResponselistCustomTables(ListCustomTablesRequest request)Returns the saved custom table list.ListEmailRecipientsGroupsResponselistEmailRecipientsGroups(ListEmailRecipientsGroupsRequest request)Returns the saved usage statement email recipients group.ListQueriesResponselistQueries(ListQueriesRequest request)Returns the saved query list.ListScheduledRunsResponselistScheduledRuns(ListScheduledRunsRequest request)Returns the schedule history list.ListSchedulesResponselistSchedules(ListSchedulesRequest request)Returns the saved schedule list.ListUsageCarbonEmissionsQueriesResponselistUsageCarbonEmissionsQueries(ListUsageCarbonEmissionsQueriesRequest request)Returns the carbon emissions usage saved query list.voidrefreshClient()Rebuild the backingHttpClient.RequestAverageCarbonEmissionResponserequestAverageCarbonEmission(RequestAverageCarbonEmissionRequest request)Returns the average carbon emissions summary by SKU.RequestCleanEnergyUsageResponserequestCleanEnergyUsage(RequestCleanEnergyUsageRequest request)Returns the clean energy usage summary by region.RequestSummarizedConfigurationsResponserequestSummarizedConfigurations(RequestSummarizedConfigurationsRequest request)Returns the configurations list for the UI drop-down list.RequestSummarizedUsagesResponserequestSummarizedUsages(RequestSummarizedUsagesRequest request)Returns usage for the given account.RequestUsageCarbonEmissionConfigResponserequestUsageCarbonEmissionConfig(RequestUsageCarbonEmissionConfigRequest request)Returns the configuration list for the Console’s carbon emission user interface drop-down list.RequestUsageCarbonEmissionsResponserequestUsageCarbonEmissions(RequestUsageCarbonEmissionsRequest request)Returns carbon emission usage for the given account.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’).UpdateCustomTableResponseupdateCustomTable(UpdateCustomTableRequest request)Update a saved custom table by table ID.UpdateEmailRecipientsGroupResponseupdateEmailRecipientsGroup(UpdateEmailRecipientsGroupRequest request)Updates a saved email recipients group.UpdateQueryResponseupdateQuery(UpdateQueryRequest request)Update a saved query by the OCID.UpdateScheduleResponseupdateSchedule(UpdateScheduleRequest request)Update a saved schedule.UpdateUsageCarbonEmissionsQueryResponseupdateUsageCarbonEmissionsQuery(UpdateUsageCarbonEmissionsQueryRequest request)Update a carbon emissions usage saved query by the OCID.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.usageapi.Usageapi
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
UsageapiClient
@Deprecated public UsageapiClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeUsageapiClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
-
UsageapiClient
@Deprecated public UsageapiClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeUsageapiClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configuration
-
UsageapiClient
@Deprecated public UsageapiClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeUsageapiClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
UsageapiClient
@Deprecated public UsageapiClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeUsageapiClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactory
-
UsageapiClient
@Deprecated public UsageapiClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeUsageapiClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfigurators
-
UsageapiClient
@Deprecated public UsageapiClient(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 (seeUsageapiClient.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)
-
UsageapiClient
@Deprecated public UsageapiClient(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 (seeUsageapiClient.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
-
UsageapiClient
@Deprecated public UsageapiClient(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 (seeUsageapiClient.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-UsageapiClient.Builder.executorService
-
-
Method Detail
-
builder
public static UsageapiClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:UsageapiSets 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.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:UsageapiSets 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.
-
createCustomTable
public CreateCustomTableResponse createCustomTable(CreateCustomTableRequest request)
Description copied from interface:UsageapiReturns the created custom table.- Specified by:
createCustomTablein interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createEmailRecipientsGroup
public CreateEmailRecipientsGroupResponse createEmailRecipientsGroup(CreateEmailRecipientsGroupRequest request)
Description copied from interface:UsageapiCreates a list of email recipients that can receive usage statements for the subscription.- Specified by:
createEmailRecipientsGroupin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createQuery
public CreateQueryResponse createQuery(CreateQueryRequest request)
Description copied from interface:UsageapiReturns the created query.- Specified by:
createQueryin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createSchedule
public CreateScheduleResponse createSchedule(CreateScheduleRequest request)
Description copied from interface:UsageapiReturns the created schedule.- Specified by:
createSchedulein interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createUsageCarbonEmissionsQuery
public CreateUsageCarbonEmissionsQueryResponse createUsageCarbonEmissionsQuery(CreateUsageCarbonEmissionsQueryRequest request)
Description copied from interface:UsageapiReturns the created carbon emissions usage query.- Specified by:
createUsageCarbonEmissionsQueryin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteCustomTable
public DeleteCustomTableResponse deleteCustomTable(DeleteCustomTableRequest request)
Description copied from interface:UsageapiDelete a saved custom table by the OCID.- Specified by:
deleteCustomTablein interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteEmailRecipientsGroup
public DeleteEmailRecipientsGroupResponse deleteEmailRecipientsGroup(DeleteEmailRecipientsGroupRequest request)
Description copied from interface:UsageapiDeletes the email recipients group for the usage statement subscription.- Specified by:
deleteEmailRecipientsGroupin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteQuery
public DeleteQueryResponse deleteQuery(DeleteQueryRequest request)
Description copied from interface:UsageapiDelete a saved query by the OCID.- Specified by:
deleteQueryin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteSchedule
public DeleteScheduleResponse deleteSchedule(DeleteScheduleRequest request)
Description copied from interface:UsageapiDelete a saved scheduled report by the OCID.- Specified by:
deleteSchedulein interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteUsageCarbonEmissionsQuery
public DeleteUsageCarbonEmissionsQueryResponse deleteUsageCarbonEmissionsQuery(DeleteUsageCarbonEmissionsQueryRequest request)
Description copied from interface:UsageapiDelete a carbon emissions usage saved query by the OCID.- Specified by:
deleteUsageCarbonEmissionsQueryin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getCustomTable
public GetCustomTableResponse getCustomTable(GetCustomTableRequest request)
Description copied from interface:UsageapiReturns the saved custom table.- Specified by:
getCustomTablein interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getEmailRecipientsGroup
public GetEmailRecipientsGroupResponse getEmailRecipientsGroup(GetEmailRecipientsGroupRequest request)
Description copied from interface:UsageapiReturns the saved usage statement email recipients group.- Specified by:
getEmailRecipientsGroupin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getQuery
public GetQueryResponse getQuery(GetQueryRequest request)
Description copied from interface:UsageapiReturns the saved query.
-
getSchedule
public GetScheduleResponse getSchedule(GetScheduleRequest request)
Description copied from interface:UsageapiReturns the saved schedule.- Specified by:
getSchedulein interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getScheduledRun
public GetScheduledRunResponse getScheduledRun(GetScheduledRunRequest request)
Description copied from interface:UsageapiReturns the saved schedule run.- Specified by:
getScheduledRunin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getUsageCarbonEmissionsQuery
public GetUsageCarbonEmissionsQueryResponse getUsageCarbonEmissionsQuery(GetUsageCarbonEmissionsQueryRequest request)
Description copied from interface:UsageapiReturns the carbon emissions usage saved query.- Specified by:
getUsageCarbonEmissionsQueryin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listCustomTables
public ListCustomTablesResponse listCustomTables(ListCustomTablesRequest request)
Description copied from interface:UsageapiReturns the saved custom table list.- Specified by:
listCustomTablesin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listEmailRecipientsGroups
public ListEmailRecipientsGroupsResponse listEmailRecipientsGroups(ListEmailRecipientsGroupsRequest request)
Description copied from interface:UsageapiReturns the saved usage statement email recipients group.- Specified by:
listEmailRecipientsGroupsin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listQueries
public ListQueriesResponse listQueries(ListQueriesRequest request)
Description copied from interface:UsageapiReturns the saved query list.- Specified by:
listQueriesin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listScheduledRuns
public ListScheduledRunsResponse listScheduledRuns(ListScheduledRunsRequest request)
Description copied from interface:UsageapiReturns the schedule history list.- Specified by:
listScheduledRunsin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listSchedules
public ListSchedulesResponse listSchedules(ListSchedulesRequest request)
Description copied from interface:UsageapiReturns the saved schedule list.- Specified by:
listSchedulesin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listUsageCarbonEmissionsQueries
public ListUsageCarbonEmissionsQueriesResponse listUsageCarbonEmissionsQueries(ListUsageCarbonEmissionsQueriesRequest request)
Description copied from interface:UsageapiReturns the carbon emissions usage saved query list.- Specified by:
listUsageCarbonEmissionsQueriesin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
requestAverageCarbonEmission
public RequestAverageCarbonEmissionResponse requestAverageCarbonEmission(RequestAverageCarbonEmissionRequest request)
Description copied from interface:UsageapiReturns the average carbon emissions summary by SKU.- Specified by:
requestAverageCarbonEmissionin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
requestCleanEnergyUsage
public RequestCleanEnergyUsageResponse requestCleanEnergyUsage(RequestCleanEnergyUsageRequest request)
Description copied from interface:UsageapiReturns the clean energy usage summary by region.- Specified by:
requestCleanEnergyUsagein interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
requestSummarizedConfigurations
public RequestSummarizedConfigurationsResponse requestSummarizedConfigurations(RequestSummarizedConfigurationsRequest request)
Description copied from interface:UsageapiReturns the configurations list for the UI drop-down list.- Specified by:
requestSummarizedConfigurationsin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
requestSummarizedUsages
public RequestSummarizedUsagesResponse requestSummarizedUsages(RequestSummarizedUsagesRequest request)
Description copied from interface:UsageapiReturns usage for the given account.- Specified by:
requestSummarizedUsagesin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
requestUsageCarbonEmissionConfig
public RequestUsageCarbonEmissionConfigResponse requestUsageCarbonEmissionConfig(RequestUsageCarbonEmissionConfigRequest request)
Description copied from interface:UsageapiReturns the configuration list for the Console’s carbon emission user interface drop-down list.- Specified by:
requestUsageCarbonEmissionConfigin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
requestUsageCarbonEmissions
public RequestUsageCarbonEmissionsResponse requestUsageCarbonEmissions(RequestUsageCarbonEmissionsRequest request)
Description copied from interface:UsageapiReturns carbon emission usage for the given account.- Specified by:
requestUsageCarbonEmissionsin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateCustomTable
public UpdateCustomTableResponse updateCustomTable(UpdateCustomTableRequest request)
Description copied from interface:UsageapiUpdate a saved custom table by table ID.- Specified by:
updateCustomTablein interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateEmailRecipientsGroup
public UpdateEmailRecipientsGroupResponse updateEmailRecipientsGroup(UpdateEmailRecipientsGroupRequest request)
Description copied from interface:UsageapiUpdates a saved email recipients group.- Specified by:
updateEmailRecipientsGroupin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateQuery
public UpdateQueryResponse updateQuery(UpdateQueryRequest request)
Description copied from interface:UsageapiUpdate a saved query by the OCID.- Specified by:
updateQueryin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateSchedule
public UpdateScheduleResponse updateSchedule(UpdateScheduleRequest request)
Description copied from interface:UsageapiUpdate a saved schedule.- Specified by:
updateSchedulein interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateUsageCarbonEmissionsQuery
public UpdateUsageCarbonEmissionsQueryResponse updateUsageCarbonEmissionsQuery(UpdateUsageCarbonEmissionsQueryRequest request)
Description copied from interface:UsageapiUpdate a carbon emissions usage saved query by the OCID.- Specified by:
updateUsageCarbonEmissionsQueryin interfaceUsageapi- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public UsageapiWaiters getWaiters()
Description copied from interface:UsageapiGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceUsageapi- Returns:
- The service waiters.
-
getPaginators
public UsageapiPaginators getPaginators()
Description copied from interface:UsageapiGets 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 interfaceUsageapi- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
enableDualStackEndpoints
public void enableDualStackEndpoints(boolean enableDualStackEndpoints)
This method should be used to enable or disable the use of dual-stack endpoints.The default value is false i.e. dual-stack endpoints are disabled by default.
- Parameters:
enableDualStackEndpoints- This flag can be set to true or false to enable or disable the use of dual-stack endpoints respectively
-
getOptionsMap
public Map<String,Boolean> getOptionsMap()
Return an immutable snapshot representing the current options set for this client.- Returns:
- immutable snapshot representing the current options set for this client
-
getResolvedEndpoint
public String getResolvedEndpoint(Map<String,Object> requiredParametersMap)
Returns the endpoint after filling in the current options, as determined byBaseClient.getOptionsMap(), and then filling in the required parameters in requiredParametersMap into the placeholders in the endpoint.- Parameters:
requiredParametersMap- the map from required parameter name to their values- Returns:
- resolved endpoint, with all options and placeholders filled in
-
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
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
Get the endpoint of the client.Note that the endpoint may be parameterized and contain placeholders and options. The region subdomain and realm domain will have been properly replaced already if the endpoint was selected using a
Region.Examples of endpoints this may return:
- Unparameterized endpoints
https://identity.us-phoenix-1.oci.oraclecloud.com https://identity.us-ashburn-1.oci.oraclecloud.com https://test-namespace.objectstorage.us-ashburn-1.oci.customer-oci.com - Parameterized endpoints with placeholders
https://{namespaceName+Dot}objectstorage.us-phoenix-1.oci.customer-oci.com https://{namespaceName+Dot}objectstorage.us-ashburn-1.oci.customer-oci.com - Parameterized endpoints with options
https://{dualStack?ds.:}identity.us-phoenix-1.oci.oraclecloud.com https://{dualStack?ds.:}identity.us-ashburn-1.oci.oraclecloud.com - Parameterized endpoints with placeholders and options
https://{namespaceName+Dot}{dualStack?ds.:}objectstorage.us-phoenix-1.oci.customer-oci.com https://{namespaceName+Dot}{dualStack?ds.:}objectstorage.us-ashburn-1.oci.customer-oci.com
To get the actual endpoint for a parameterized request, you can use
BaseClient.getResolvedEndpoint(Map)orParameterizedEndpointUtil.getEndpointWithPopulatedServiceParameters(String, Map, Map).- Returns:
- the endpoint being used by the client
- Unparameterized endpoints
-
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()
-
-