Class DashxApisClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.managementdashboard.DashxApisClient
-
- All Implemented Interfaces:
DashxApis,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20200901") public class DashxApisClient extends BaseSyncClient implements DashxApis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDashxApisClient.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 DashxApis.
-
Constructor Summary
Constructors Constructor Description DashxApisClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.DashxApisClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.DashxApisClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.DashxApisClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.DashxApisClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.DashxApisClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.DashxApisClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.DashxApisClient(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 DashxApisClient.Builderbuilder()Create a builder for this client.ChangeManagementDashboardsCompartmentResponsechangeManagementDashboardsCompartment(ChangeManagementDashboardsCompartmentRequest request)Moves the dashboard from the existing compartment to a new compartment.ChangeManagementSavedSearchesCompartmentResponsechangeManagementSavedSearchesCompartment(ChangeManagementSavedSearchesCompartmentRequest request)Moves the saved search from the existing compartment to a new compartment.voidclose()CreateManagementDashboardResponsecreateManagementDashboard(CreateManagementDashboardRequest request)Creates a new dashboard.CreateManagementSavedSearchResponsecreateManagementSavedSearch(CreateManagementSavedSearchRequest request)Creates a new saved search.DeleteManagementDashboardResponsedeleteManagementDashboard(DeleteManagementDashboardRequest request)Deletes a Dashboard by ID.DeleteManagementSavedSearchResponsedeleteManagementSavedSearch(DeleteManagementSavedSearchRequest request)Deletes a saved search by ID.voidenableDualStackEndpoints(boolean enableDualStackEndpoints)This method should be used to enable or disable the use of dual-stack endpoints.ExportDashboardResponseexportDashboard(ExportDashboardRequest request)Exports an array of dashboards and their saved searches.StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()Get the endpoint of the client.GetManagementDashboardResponsegetManagementDashboard(GetManagementDashboardRequest request)Gets a dashboard and its saved searches by ID.GetManagementSavedSearchResponsegetManagementSavedSearch(GetManagementSavedSearchRequest request)Gets a saved search by ID.Optional<String>getMinimumClientCommonLibraryVersionFromClient()GetOobManagementDashboardResponsegetOobManagementDashboard(GetOobManagementDashboardRequest request)Gets an out-of-the-box dashboard and its saved searches by ID.GetOobManagementSavedSearchResponsegetOobManagementSavedSearch(GetOobManagementSavedSearchRequest request)Gets an out-of-the-box saved search by ID.Map<String,Boolean>getOptionsMap()Return an immutable snapshot representing the current options set for this client.DashxApisPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.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.DashxApisWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.ImportDashboardResponseimportDashboard(ImportDashboardRequest request)Imports an array of dashboards and their saved searches.ListManagementDashboardsResponselistManagementDashboards(ListManagementDashboardsRequest request)Gets the list of dashboards in a compartment with pagination.ListManagementSavedSearchesResponselistManagementSavedSearches(ListManagementSavedSearchesRequest request)Gets the list of saved searches in a compartment with pagination.ListOobManagementDashboardsResponselistOobManagementDashboards(ListOobManagementDashboardsRequest request)Gets the list of out-of-the-box dashboards with pagination.ListOobManagementSavedSearchesResponselistOobManagementSavedSearches(ListOobManagementSavedSearchesRequest request)Gets the list of out-of-the-box saved searches in a compartment with pagination.voidrefreshClient()Rebuild the backingHttpClient.voidsetEndpoint(String endpoint)voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).UpdateManagementDashboardResponseupdateManagementDashboard(UpdateManagementDashboardRequest request)Updates an existing dashboard identified by ID path parameter.UpdateManagementSavedSearchResponseupdateManagementSavedSearch(UpdateManagementSavedSearchRequest request)Updates an existing saved search identified by ID path parameter.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.managementdashboard.DashxApis
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
DashxApisClient
@Deprecated public DashxApisClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDashxApisClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
-
DashxApisClient
@Deprecated public DashxApisClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDashxApisClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configuration
-
DashxApisClient
@Deprecated public DashxApisClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDashxApisClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
DashxApisClient
@Deprecated public DashxApisClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDashxApisClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactory
-
DashxApisClient
@Deprecated public DashxApisClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDashxApisClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfigurators
-
DashxApisClient
@Deprecated public DashxApisClient(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 (seeDashxApisClient.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)
-
DashxApisClient
@Deprecated public DashxApisClient(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 (seeDashxApisClient.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
-
DashxApisClient
@Deprecated public DashxApisClient(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 (seeDashxApisClient.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-DashxApisClient.Builder.executorService
-
-
Method Detail
-
builder
public static DashxApisClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:DashxApisSets 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:DashxApisSets 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.
-
changeManagementDashboardsCompartment
public ChangeManagementDashboardsCompartmentResponse changeManagementDashboardsCompartment(ChangeManagementDashboardsCompartmentRequest request)
Description copied from interface:DashxApisMoves the dashboard from the existing compartment to a new compartment.- Specified by:
changeManagementDashboardsCompartmentin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeManagementSavedSearchesCompartment
public ChangeManagementSavedSearchesCompartmentResponse changeManagementSavedSearchesCompartment(ChangeManagementSavedSearchesCompartmentRequest request)
Description copied from interface:DashxApisMoves the saved search from the existing compartment to a new compartment.- Specified by:
changeManagementSavedSearchesCompartmentin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createManagementDashboard
public CreateManagementDashboardResponse createManagementDashboard(CreateManagementDashboardRequest request)
Description copied from interface:DashxApisCreates a new dashboard.Limit for number of saved searches in a dashboard is 20. Here’s an example of how you can use CLI to create a dashboard. For information on the details that must be passed to CREATE, you can use the GET API to obtain the Create.json file:
oci management-dashboard dashboard get --management-dashboard-id \"ocid1.managementdashboard.oc1..dashboardId1\" --query data > Create.json.You can then modify the Create.json file by removing theidattribute and making other required changes, and use theoci management-dashboard dashboard createcommand.- Specified by:
createManagementDashboardin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createManagementSavedSearch
public CreateManagementSavedSearchResponse createManagementSavedSearch(CreateManagementSavedSearchRequest request)
Description copied from interface:DashxApisCreates a new saved search.Here’s an example of how you can use CLI to create a saved search. For information on the details that must be passed to CREATE, you can use the GET API to obtain the Create.json file:
oci management-dashboard saved-search get --management-saved-search-id ocid1.managementsavedsearch.oc1..savedsearchId1 --query data > Create.json. You can then modify the Create.json file by removing theidattribute and making other required changes, and use theoci management-dashboard saved-search createcommand.- Specified by:
createManagementSavedSearchin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteManagementDashboard
public DeleteManagementDashboardResponse deleteManagementDashboard(DeleteManagementDashboardRequest request)
Description copied from interface:DashxApisDeletes a Dashboard by ID.- Specified by:
deleteManagementDashboardin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteManagementSavedSearch
public DeleteManagementSavedSearchResponse deleteManagementSavedSearch(DeleteManagementSavedSearchRequest request)
Description copied from interface:DashxApisDeletes a saved search by ID.- Specified by:
deleteManagementSavedSearchin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
exportDashboard
public ExportDashboardResponse exportDashboard(ExportDashboardRequest request)
Description copied from interface:DashxApisExports an array of dashboards and their saved searches.Export is designed to work with importDashboard. Here’s an example of how you can use CLI to export a dashboard:
$oci management-dashboard dashboard export --query data --export-dashboard-id \"{\\\"dashboardIds\\\":[\\\"ocid1.managementdashboard.oc1..dashboardId1\\\"]}\" > dashboards.json- Specified by:
exportDashboardin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getManagementDashboard
public GetManagementDashboardResponse getManagementDashboard(GetManagementDashboardRequest request)
Description copied from interface:DashxApisGets a dashboard and its saved searches by ID.Deleted or unauthorized saved searches are marked by tile’s state property.
- Specified by:
getManagementDashboardin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getManagementSavedSearch
public GetManagementSavedSearchResponse getManagementSavedSearch(GetManagementSavedSearchRequest request)
Description copied from interface:DashxApisGets a saved search by ID.- Specified by:
getManagementSavedSearchin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getOobManagementDashboard
public GetOobManagementDashboardResponse getOobManagementDashboard(GetOobManagementDashboardRequest request)
Description copied from interface:DashxApisGets an out-of-the-box dashboard and its saved searches by ID.Deleted or unauthorized saved searches are marked by tile’s state property.
- Specified by:
getOobManagementDashboardin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getOobManagementSavedSearch
public GetOobManagementSavedSearchResponse getOobManagementSavedSearch(GetOobManagementSavedSearchRequest request)
Description copied from interface:DashxApisGets an out-of-the-box saved search by ID.- Specified by:
getOobManagementSavedSearchin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
importDashboard
public ImportDashboardResponse importDashboard(ImportDashboardRequest request)
Description copied from interface:DashxApisImports an array of dashboards and their saved searches.Here’s an example of how you can use CLI to import a dashboard. For information on the details that must be passed to IMPORT, you can use the EXPORT API to obtain the Import.json file:
oci management-dashboard dashboard export --query data --export-dashboard-id \"{\\\"dashboardIds\\\":[\\\"ocid1.managementdashboard.oc1..dashboardId1\\\"]}\" > Import.json. Note that import API updates the resource if it already exists, and creates a new resource if it does not exist. To import to a different compartment, edit and change the compartmentId to the desired compartment OCID. Here’s an example of how you can use CLI to import:oci management-dashboard dashboard import --from-json file://Import.json- Specified by:
importDashboardin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listManagementDashboards
public ListManagementDashboardsResponse listManagementDashboards(ListManagementDashboardsRequest request)
Description copied from interface:DashxApisGets the list of dashboards in a compartment with pagination.Returned properties are the summary.
- Specified by:
listManagementDashboardsin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listManagementSavedSearches
public ListManagementSavedSearchesResponse listManagementSavedSearches(ListManagementSavedSearchesRequest request)
Description copied from interface:DashxApisGets the list of saved searches in a compartment with pagination.Returned properties are the summary.
- Specified by:
listManagementSavedSearchesin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listOobManagementDashboards
public ListOobManagementDashboardsResponse listOobManagementDashboards(ListOobManagementDashboardsRequest request)
Description copied from interface:DashxApisGets the list of out-of-the-box dashboards with pagination.Returned properties are the summary.
- Specified by:
listOobManagementDashboardsin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listOobManagementSavedSearches
public ListOobManagementSavedSearchesResponse listOobManagementSavedSearches(ListOobManagementSavedSearchesRequest request)
Description copied from interface:DashxApisGets the list of out-of-the-box saved searches in a compartment with pagination.Returned properties are the summary.
- Specified by:
listOobManagementSavedSearchesin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateManagementDashboard
public UpdateManagementDashboardResponse updateManagementDashboard(UpdateManagementDashboardRequest request)
Description copied from interface:DashxApisUpdates an existing dashboard identified by ID path parameter.CompartmentId can be modified only by the changeCompartment API. Limit for number of saved searches in a dashboard is 20.
- Specified by:
updateManagementDashboardin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateManagementSavedSearch
public UpdateManagementSavedSearchResponse updateManagementSavedSearch(UpdateManagementSavedSearchRequest request)
Description copied from interface:DashxApisUpdates an existing saved search identified by ID path parameter.CompartmentId can be modified only by the changeCompartment API.
- Specified by:
updateManagementSavedSearchin interfaceDashxApis- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public DashxApisWaiters getWaiters()
Description copied from interface:DashxApisGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceDashxApis- Returns:
- The service waiters.
-
getPaginators
public DashxApisPaginators getPaginators()
Description copied from interface:DashxApisGets 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 interfaceDashxApis- 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()
-
-