@Generated(value="OracleSDKGenerator", comments="API Version: 20200531") public class LoggingManagementClient extends BaseSyncClient implements LoggingManagement
Modifier and Type | Class and Description |
---|---|
static class |
LoggingManagementClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
static Service |
SERVICE
Service instance for LoggingManagement.
|
Constructor and Description |
---|
LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
LoggingManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
LoggingManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
LoggingManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
clientCall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint
close
public static final Service SERVICE
Service instance for LoggingManagement.
@Deprecated public LoggingManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see LoggingManagementClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public LoggingManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see LoggingManagementClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public LoggingManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see LoggingManagementClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see LoggingManagementClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see LoggingManagementClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see LoggingManagementClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
@Deprecated public LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see LoggingManagementClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
@Deprecated public LoggingManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see LoggingManagementClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
executorService
- LoggingManagementClient.Builder.executorService
public static LoggingManagementClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
LoggingManagement
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.
setRegion
in interface LoggingManagement
region
- The region of the service.public void setRegion(String regionId)
LoggingManagement
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
.
setRegion
in interface LoggingManagement
regionId
- The public region ID.public ChangeLogGroupCompartmentResponse changeLogGroupCompartment(ChangeLogGroupCompartmentRequest request)
LoggingManagement
Moves a log group into a different compartment within the same tenancy. When provided, the If-Match is checked against the resource ETag values. For information about moving resources between compartments, see Moving Resources Between Compartments.
changeLogGroupCompartment
in interface LoggingManagement
request
- The request object containing the details to sendpublic ChangeLogLogGroupResponse changeLogLogGroup(ChangeLogLogGroupRequest request)
LoggingManagement
Moves a log into a different log group within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource.
changeLogLogGroup
in interface LoggingManagement
request
- The request object containing the details to sendpublic ChangeLogSavedSearchCompartmentResponse changeLogSavedSearchCompartment(ChangeLogSavedSearchCompartmentRequest request)
LoggingManagement
Moves a saved search into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
changeLogSavedSearchCompartment
in interface LoggingManagement
request
- The request object containing the details to sendpublic ChangeUnifiedAgentConfigurationCompartmentResponse changeUnifiedAgentConfigurationCompartment(ChangeUnifiedAgentConfigurationCompartmentRequest request)
LoggingManagement
Moves the unified agent configuration into a different compartment within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource. For information about moving resources between compartments, see Moving Resources Between Compartments.
changeUnifiedAgentConfigurationCompartment
in interface LoggingManagement
request
- The request object containing the details to sendpublic CreateLogResponse createLog(CreateLogRequest request)
LoggingManagement
Creates a log within the specified log group. This call fails if a log group has already been created with the same displayName or (service, resource, category) triplet.
createLog
in interface LoggingManagement
request
- The request object containing the details to sendpublic CreateLogGroupResponse createLogGroup(CreateLogGroupRequest request)
LoggingManagement
Create a new log group with a unique display name. This call fails if the log group is already created with the same displayName in the compartment.
createLogGroup
in interface LoggingManagement
request
- The request object containing the details to sendpublic CreateLogSavedSearchResponse createLogSavedSearch(CreateLogSavedSearchRequest request)
LoggingManagement
Creates a new LogSavedSearch.
createLogSavedSearch
in interface LoggingManagement
request
- The request object containing the details to sendpublic CreateUnifiedAgentConfigurationResponse createUnifiedAgentConfiguration(CreateUnifiedAgentConfigurationRequest request)
LoggingManagement
Create unified agent configuration registration.
createUnifiedAgentConfiguration
in interface LoggingManagement
request
- The request object containing the details to sendpublic DeleteLogResponse deleteLog(DeleteLogRequest request)
LoggingManagement
Deletes the log object in a log group.
deleteLog
in interface LoggingManagement
request
- The request object containing the details to sendpublic DeleteLogGroupResponse deleteLogGroup(DeleteLogGroupRequest request)
LoggingManagement
Deletes the specified log group.
deleteLogGroup
in interface LoggingManagement
request
- The request object containing the details to sendpublic DeleteLogSavedSearchResponse deleteLogSavedSearch(DeleteLogSavedSearchRequest request)
LoggingManagement
Deletes the specified log saved search.
deleteLogSavedSearch
in interface LoggingManagement
request
- The request object containing the details to sendpublic DeleteUnifiedAgentConfigurationResponse deleteUnifiedAgentConfiguration(DeleteUnifiedAgentConfigurationRequest request)
LoggingManagement
Delete unified agent configuration.
deleteUnifiedAgentConfiguration
in interface LoggingManagement
request
- The request object containing the details to sendpublic DeleteWorkRequestResponse deleteWorkRequest(DeleteWorkRequestRequest request)
LoggingManagement
Cancel a work request that has not started yet.
deleteWorkRequest
in interface LoggingManagement
request
- The request object containing the details to sendpublic GetLogResponse getLog(GetLogRequest request)
LoggingManagement
Gets the log object configuration for the log object OCID.
getLog
in interface LoggingManagement
request
- The request object containing the details to sendpublic GetLogGroupResponse getLogGroup(GetLogGroupRequest request)
LoggingManagement
Get the specified log group’s information.
getLogGroup
in interface LoggingManagement
request
- The request object containing the details to sendpublic GetLogIncludedSearchResponse getLogIncludedSearch(GetLogIncludedSearchRequest request)
LoggingManagement
Retrieves a LogIncludedSearch.
getLogIncludedSearch
in interface LoggingManagement
request
- The request object containing the details to sendpublic GetLogSavedSearchResponse getLogSavedSearch(GetLogSavedSearchRequest request)
LoggingManagement
Retrieves a log saved search.
getLogSavedSearch
in interface LoggingManagement
request
- The request object containing the details to sendpublic GetUnifiedAgentConfigurationResponse getUnifiedAgentConfiguration(GetUnifiedAgentConfigurationRequest request)
LoggingManagement
Get the unified agent configuration for an ID.
getUnifiedAgentConfiguration
in interface LoggingManagement
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
LoggingManagement
Gets the details of the work request with the given ID.
getWorkRequest
in interface LoggingManagement
request
- The request object containing the details to sendpublic ListLogGroupsResponse listLogGroups(ListLogGroupsRequest request)
LoggingManagement
Lists all log groups for the specified compartment or tenancy.
listLogGroups
in interface LoggingManagement
request
- The request object containing the details to sendpublic ListLogIncludedSearchesResponse listLogIncludedSearches(ListLogIncludedSearchesRequest request)
LoggingManagement
Lists Logging Included Searches for this compartment.
listLogIncludedSearches
in interface LoggingManagement
request
- The request object containing the details to sendpublic ListLogSavedSearchesResponse listLogSavedSearches(ListLogSavedSearchesRequest request)
LoggingManagement
Lists Logging Saved Searches for this compartment.
listLogSavedSearches
in interface LoggingManagement
request
- The request object containing the details to sendpublic ListLogsResponse listLogs(ListLogsRequest request)
LoggingManagement
Lists the specified log group’s log objects.
listLogs
in interface LoggingManagement
request
- The request object containing the details to sendpublic ListServicesResponse listServices(ListServicesRequest request)
LoggingManagement
Lists all services that support logging.
listServices
in interface LoggingManagement
request
- The request object containing the details to sendpublic ListUnifiedAgentConfigurationsResponse listUnifiedAgentConfigurations(ListUnifiedAgentConfigurationsRequest request)
LoggingManagement
Lists all unified agent configurations in the specified compartment.
listUnifiedAgentConfigurations
in interface LoggingManagement
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
LoggingManagement
Return a list of errors for a given work request.
listWorkRequestErrors
in interface LoggingManagement
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
LoggingManagement
Return a list of logs for a given work request.
listWorkRequestLogs
in interface LoggingManagement
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
LoggingManagement
Lists the work requests in a compartment.
listWorkRequests
in interface LoggingManagement
request
- The request object containing the details to sendpublic UpdateLogResponse updateLog(UpdateLogRequest request)
LoggingManagement
Updates the existing log object with the associated configuration. This call fails if the log object does not exist.
updateLog
in interface LoggingManagement
request
- The request object containing the details to sendpublic UpdateLogGroupResponse updateLogGroup(UpdateLogGroupRequest request)
LoggingManagement
Updates the existing log group with the associated configuration. This call fails if the log group does not exist.
updateLogGroup
in interface LoggingManagement
request
- The request object containing the details to sendpublic UpdateLogSavedSearchResponse updateLogSavedSearch(UpdateLogSavedSearchRequest request)
LoggingManagement
Updates an existing log saved search.
updateLogSavedSearch
in interface LoggingManagement
request
- The request object containing the details to sendpublic UpdateUnifiedAgentConfigurationResponse updateUnifiedAgentConfiguration(UpdateUnifiedAgentConfigurationRequest request)
LoggingManagement
Update an existing unified agent configuration. This call fails if the log group does not exist.
updateUnifiedAgentConfiguration
in interface LoggingManagement
request
- The request object containing the details to sendpublic LoggingManagementWaiters getWaiters()
LoggingManagement
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface LoggingManagement
public LoggingManagementPaginators getPaginators()
LoggingManagement
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data. These paginators provide an Iterable
interface so that service responses, or resources/records, can be iterated through without
having to manually deal with pagination and page tokens.
getPaginators
in interface LoggingManagement
protected ClientConfigurator getDefaultConfigurator()
public final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
Copyright © 2016–2023. All rights reserved.