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
-
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()
-
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
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()
-
-