![JAR search and dependency download from the Maven repository](/logo.png)
com.oracle.bmc.datacatalog.DataCatalogClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oci-java-sdk-shaded-full Show documentation
Show all versions of oci-java-sdk-shaded-full Show documentation
This project contains the SDK distribution used for Oracle Cloud Infrastructure, and all the dependencies that can be shaded. It also has Maven dependencies that cannot be shaded. Therefore, use this module to depend on the shaded distribution via Maven -- it will shade everything that can be shaded, and automatically pull in the other dependencies.
/**
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.datacatalog;
import com.oracle.bmc.util.internal.Validate;
import com.oracle.bmc.datacatalog.requests.*;
import com.oracle.bmc.datacatalog.responses.*;
import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration;
import com.oracle.bmc.util.CircuitBreakerUtils;
import java.util.Objects;
@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325")
public class DataCatalogClient extends com.oracle.bmc.http.internal.BaseSyncClient
implements DataCatalog {
/** Service instance for DataCatalog. */
public static final com.oracle.bmc.Service SERVICE =
com.oracle.bmc.Services.serviceBuilder()
.serviceName("DATACATALOG")
.serviceEndpointPrefix("")
.serviceEndpointTemplate("https://datacatalog.{region}.oci.{secondLevelDomain}")
.build();
private static final org.slf4j.Logger LOG =
org.slf4j.LoggerFactory.getLogger(DataCatalogClient.class);
private final DataCatalogWaiters waiters;
private final DataCatalogPaginators paginators;
DataCatalogClient(
com.oracle.bmc.common.ClientBuilderBase, ?> builder,
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
java.util.concurrent.ExecutorService executorService) {
this(builder, authenticationDetailsProvider, executorService, true);
}
DataCatalogClient(
com.oracle.bmc.common.ClientBuilderBase, ?> builder,
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
java.util.concurrent.ExecutorService executorService,
boolean isStreamWarningEnabled) {
super(
builder,
authenticationDetailsProvider,
CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION);
if (executorService == null) {
// up to 50 (core) threads, time out after 60s idle, all daemon
java.util.concurrent.ThreadPoolExecutor threadPoolExecutor =
new java.util.concurrent.ThreadPoolExecutor(
50,
50,
60L,
java.util.concurrent.TimeUnit.SECONDS,
new java.util.concurrent.LinkedBlockingQueue(),
com.oracle.bmc.internal.ClientThreadFactory.builder()
.isDaemon(true)
.nameFormat("DataCatalog-waiters-%d")
.build());
threadPoolExecutor.allowCoreThreadTimeOut(true);
executorService = threadPoolExecutor;
}
this.waiters = new DataCatalogWaiters(executorService, this);
this.paginators = new DataCatalogPaginators(this);
if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) {
LOG.warn(
com.oracle.bmc.util.StreamUtils.getStreamWarningMessage(
"DataCatalogClient", "synchronousExportDataAsset"));
}
}
/**
* Create a builder for this client.
*
* @return builder
*/
public static Builder builder() {
return new Builder(SERVICE);
}
/**
* Builder class for this client. The "authenticationDetailsProvider" is required and must be
* passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method.
*/
public static class Builder
extends com.oracle.bmc.common.RegionalClientBuilder {
private boolean isStreamWarningEnabled = true;
private java.util.concurrent.ExecutorService executorService;
private Builder(com.oracle.bmc.Service service) {
super(service);
final String packageName = "datacatalog";
com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName);
requestSignerFactory =
new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory(
com.oracle.bmc.http.signing.SigningStrategy.STANDARD);
}
/**
* Set the ExecutorService for the client to be created.
*
* @param executorService executorService
* @return this builder
*/
public Builder executorService(java.util.concurrent.ExecutorService executorService) {
this.executorService = executorService;
return this;
}
/**
* Enable/disable the stream warnings for the client
*
* @param isStreamWarningEnabled executorService
* @return this builder
*/
public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) {
this.isStreamWarningEnabled = isStreamWarningEnabled;
return this;
}
/**
* Build the client.
*
* @param authenticationDetailsProvider authentication details provider
* @return the client
*/
public DataCatalogClient build(
@jakarta.annotation.Nonnull
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider
authenticationDetailsProvider) {
return new DataCatalogClient(
this, authenticationDetailsProvider, executorService, isStreamWarningEnabled);
}
}
@Override
public void setRegion(com.oracle.bmc.Region region) {
super.setRegion(region);
}
@Override
public void setRegion(String regionId) {
super.setRegion(regionId);
}
@Override
public AddCatalogLockResponse addCatalogLock(AddCatalogLockRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(
request.getAddResourceLockDetails(), "addResourceLockDetails is required");
return clientCall(request, AddCatalogLockResponse::builder)
.logger(LOG, "addCatalogLock")
.serviceDetails(
"DataCatalog",
"AddCatalogLock",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/AddCatalogLock")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AddCatalogLockRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("addLock")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Catalog.class,
AddCatalogLockResponse.Builder::catalog)
.handleResponseHeaderString(
"opc-request-id", AddCatalogLockResponse.Builder::opcRequestId)
.handleResponseHeaderString("etag", AddCatalogLockResponse.Builder::etag)
.callSync();
}
@Override
public AddCatalogPrivateEndpointLockResponse addCatalogPrivateEndpointLock(
AddCatalogPrivateEndpointLockRequest request) {
Validate.notBlank(
request.getCatalogPrivateEndpointId(),
"catalogPrivateEndpointId must not be blank");
Objects.requireNonNull(
request.getAddResourceLockDetails(), "addResourceLockDetails is required");
return clientCall(request, AddCatalogPrivateEndpointLockResponse::builder)
.logger(LOG, "addCatalogPrivateEndpointLock")
.serviceDetails(
"DataCatalog",
"AddCatalogPrivateEndpointLock",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CatalogPrivateEndpoint/AddCatalogPrivateEndpointLock")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AddCatalogPrivateEndpointLockRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogPrivateEndpoints")
.appendPathParam(request.getCatalogPrivateEndpointId())
.appendPathParam("actions")
.appendPathParam("addLock")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.CatalogPrivateEndpoint.class,
AddCatalogPrivateEndpointLockResponse.Builder::catalogPrivateEndpoint)
.handleResponseHeaderString(
"opc-request-id",
AddCatalogPrivateEndpointLockResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"etag", AddCatalogPrivateEndpointLockResponse.Builder::etag)
.callSync();
}
@Override
public AddDataSelectorPatternsResponse addDataSelectorPatterns(
AddDataSelectorPatternsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getDataSelectorPatternDetails(), "dataSelectorPatternDetails is required");
return clientCall(request, AddDataSelectorPatternsResponse::builder)
.logger(LOG, "addDataSelectorPatterns")
.serviceDetails(
"DataCatalog",
"AddDataSelectorPatterns",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/AddDataSelectorPatterns")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AddDataSelectorPatternsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("actions")
.appendPathParam("addDataSelectorPatterns")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.DataAsset.class,
AddDataSelectorPatternsResponse.Builder::dataAsset)
.handleResponseHeaderString("etag", AddDataSelectorPatternsResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", AddDataSelectorPatternsResponse.Builder::opcRequestId)
.callSync();
}
@Override
public AddMetastoreLockResponse addMetastoreLock(AddMetastoreLockRequest request) {
Validate.notBlank(request.getMetastoreId(), "metastoreId must not be blank");
Objects.requireNonNull(
request.getAddResourceLockDetails(), "addResourceLockDetails is required");
return clientCall(request, AddMetastoreLockResponse::builder)
.logger(LOG, "addMetastoreLock")
.serviceDetails(
"DataCatalog",
"AddMetastoreLock",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Metastore/AddMetastoreLock")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AddMetastoreLockRequest::builder)
.basePath("/20190325")
.appendPathParam("metastores")
.appendPathParam(request.getMetastoreId())
.appendPathParam("actions")
.appendPathParam("addLock")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Metastore.class,
AddMetastoreLockResponse.Builder::metastore)
.handleResponseHeaderString(
"opc-request-id", AddMetastoreLockResponse.Builder::opcRequestId)
.handleResponseHeaderString("etag", AddMetastoreLockResponse.Builder::etag)
.callSync();
}
@Override
public AssociateCustomPropertyResponse associateCustomProperty(
AssociateCustomPropertyRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getTypeKey(), "typeKey must not be blank");
Objects.requireNonNull(
request.getAssociateCustomPropertyDetails(),
"associateCustomPropertyDetails is required");
return clientCall(request, AssociateCustomPropertyResponse::builder)
.logger(LOG, "associateCustomProperty")
.serviceDetails(
"DataCatalog",
"AssociateCustomProperty",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Type/AssociateCustomProperty")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AssociateCustomPropertyRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("types")
.appendPathParam(request.getTypeKey())
.appendPathParam("actions")
.appendPathParam("associateCustomProperties")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Type.class,
AssociateCustomPropertyResponse.Builder::type)
.handleResponseHeaderString("etag", AssociateCustomPropertyResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", AssociateCustomPropertyResponse.Builder::opcRequestId)
.callSync();
}
@Override
public AsynchronousExportDataAssetResponse asynchronousExportDataAsset(
AsynchronousExportDataAssetRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getAsynchronousExportDataAssetDetails(),
"asynchronousExportDataAssetDetails is required");
Objects.requireNonNull(request.getExportType(), "exportType is required");
return clientCall(request, AsynchronousExportDataAssetResponse::builder)
.logger(LOG, "asynchronousExportDataAsset")
.serviceDetails(
"DataCatalog",
"AsynchronousExportDataAsset",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/AsynchronousExportDataAsset")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AsynchronousExportDataAssetRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("actions")
.appendPathParam("asynchronousExport")
.appendListQueryParam(
"exportType",
request.getExportType(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.AsynchronousExportDataAssetResult.class,
AsynchronousExportDataAssetResponse.Builder
::asynchronousExportDataAssetResult)
.handleResponseHeaderString(
"opc-request-id", AsynchronousExportDataAssetResponse.Builder::opcRequestId)
.callSync();
}
@Override
public AsynchronousExportGlossaryResponse asynchronousExportGlossary(
AsynchronousExportGlossaryRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Objects.requireNonNull(
request.getAsynchronousExportGlossaryDetails(),
"asynchronousExportGlossaryDetails is required");
return clientCall(request, AsynchronousExportGlossaryResponse::builder)
.logger(LOG, "asynchronousExportGlossary")
.serviceDetails(
"DataCatalog",
"AsynchronousExportGlossary",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/AsynchronousExportGlossary")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AsynchronousExportGlossaryRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("actions")
.appendPathParam("asynchronousExport")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.AsynchronousExportGlossaryResult.class,
AsynchronousExportGlossaryResponse.Builder
::asynchronousExportGlossaryResult)
.handleResponseHeaderString(
"etag", AsynchronousExportGlossaryResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", AsynchronousExportGlossaryResponse.Builder::opcRequestId)
.callSync();
}
@Override
public AttachCatalogPrivateEndpointResponse attachCatalogPrivateEndpoint(
AttachCatalogPrivateEndpointRequest request) {
Objects.requireNonNull(
request.getAttachCatalogPrivateEndpointDetails(),
"attachCatalogPrivateEndpointDetails is required");
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, AttachCatalogPrivateEndpointResponse::builder)
.logger(LOG, "attachCatalogPrivateEndpoint")
.serviceDetails(
"DataCatalog",
"AttachCatalogPrivateEndpoint",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/AttachCatalogPrivateEndpoint")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AttachCatalogPrivateEndpointRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("attachCatalogPrivateEndpoint")
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id",
AttachCatalogPrivateEndpointResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id",
AttachCatalogPrivateEndpointResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ChangeCatalogCompartmentResponse changeCatalogCompartment(
ChangeCatalogCompartmentRequest request) {
Objects.requireNonNull(
request.getChangeCatalogCompartmentDetails(),
"changeCatalogCompartmentDetails is required");
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ChangeCatalogCompartmentResponse::builder)
.logger(LOG, "changeCatalogCompartment")
.serviceDetails(
"DataCatalog",
"ChangeCatalogCompartment",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/ChangeCatalogCompartment")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ChangeCatalogCompartmentRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("changeCompartment")
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id",
ChangeCatalogCompartmentResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", ChangeCatalogCompartmentResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ChangeCatalogPrivateEndpointCompartmentResponse changeCatalogPrivateEndpointCompartment(
ChangeCatalogPrivateEndpointCompartmentRequest request) {
Objects.requireNonNull(
request.getChangeCatalogPrivateEndpointCompartmentDetails(),
"changeCatalogPrivateEndpointCompartmentDetails is required");
Validate.notBlank(
request.getCatalogPrivateEndpointId(),
"catalogPrivateEndpointId must not be blank");
return clientCall(request, ChangeCatalogPrivateEndpointCompartmentResponse::builder)
.logger(LOG, "changeCatalogPrivateEndpointCompartment")
.serviceDetails(
"DataCatalog",
"ChangeCatalogPrivateEndpointCompartment",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CatalogPrivateEndpoint/ChangeCatalogPrivateEndpointCompartment")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ChangeCatalogPrivateEndpointCompartmentRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogPrivateEndpoints")
.appendPathParam(request.getCatalogPrivateEndpointId())
.appendPathParam("actions")
.appendPathParam("changeCompartment")
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id",
ChangeCatalogPrivateEndpointCompartmentResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id",
ChangeCatalogPrivateEndpointCompartmentResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ChangeMetastoreCompartmentResponse changeMetastoreCompartment(
ChangeMetastoreCompartmentRequest request) {
Objects.requireNonNull(
request.getChangeMetastoreCompartmentDetails(),
"changeMetastoreCompartmentDetails is required");
Validate.notBlank(request.getMetastoreId(), "metastoreId must not be blank");
return clientCall(request, ChangeMetastoreCompartmentResponse::builder)
.logger(LOG, "changeMetastoreCompartment")
.serviceDetails(
"DataCatalog",
"ChangeMetastoreCompartment",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Metastore/ChangeMetastoreCompartment")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ChangeMetastoreCompartmentRequest::builder)
.basePath("/20190325")
.appendPathParam("metastores")
.appendPathParam(request.getMetastoreId())
.appendPathParam("actions")
.appendPathParam("changeCompartment")
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id",
ChangeMetastoreCompartmentResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", ChangeMetastoreCompartmentResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateAttributeResponse createAttribute(CreateAttributeRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Objects.requireNonNull(
request.getCreateAttributeDetails(), "createAttributeDetails is required");
return clientCall(request, CreateAttributeResponse::builder)
.logger(LOG, "createAttribute")
.serviceDetails(
"DataCatalog",
"CreateAttribute",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Attribute/CreateAttribute")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateAttributeRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("attributes")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Attribute.class,
CreateAttributeResponse.Builder::attribute)
.handleResponseHeaderString("etag", CreateAttributeResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateAttributeResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateAttributeTagResponse createAttributeTag(CreateAttributeTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank");
Objects.requireNonNull(
request.getCreateAttributeTagDetails(), "createAttributeTagDetails is required");
return clientCall(request, CreateAttributeTagResponse::builder)
.logger(LOG, "createAttributeTag")
.serviceDetails(
"DataCatalog",
"CreateAttributeTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/AttributeTag/CreateAttributeTag")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateAttributeTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("attributes")
.appendPathParam(request.getAttributeKey())
.appendPathParam("tags")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.AttributeTag.class,
CreateAttributeTagResponse.Builder::attributeTag)
.handleResponseHeaderString("etag", CreateAttributeTagResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateAttributeTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateCatalogResponse createCatalog(CreateCatalogRequest request) {
Objects.requireNonNull(
request.getCreateCatalogDetails(), "createCatalogDetails is required");
return clientCall(request, CreateCatalogResponse::builder)
.logger(LOG, "createCatalog")
.serviceDetails(
"DataCatalog",
"CreateCatalog",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/CreateCatalog")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateCatalogRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id", CreateCatalogResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", CreateCatalogResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateCatalogPrivateEndpointResponse createCatalogPrivateEndpoint(
CreateCatalogPrivateEndpointRequest request) {
Objects.requireNonNull(
request.getCreateCatalogPrivateEndpointDetails(),
"createCatalogPrivateEndpointDetails is required");
return clientCall(request, CreateCatalogPrivateEndpointResponse::builder)
.logger(LOG, "createCatalogPrivateEndpoint")
.serviceDetails(
"DataCatalog",
"CreateCatalogPrivateEndpoint",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CatalogPrivateEndpoint/CreateCatalogPrivateEndpoint")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateCatalogPrivateEndpointRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogPrivateEndpoints")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleResponseHeaderString(
"opc-request-id",
CreateCatalogPrivateEndpointResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-work-request-id",
CreateCatalogPrivateEndpointResponse.Builder::opcWorkRequestId)
.callSync();
}
@Override
public CreateConnectionResponse createConnection(CreateConnectionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getCreateConnectionDetails(), "createConnectionDetails is required");
return clientCall(request, CreateConnectionResponse::builder)
.logger(LOG, "createConnection")
.serviceDetails(
"DataCatalog",
"CreateConnection",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Connection/CreateConnection")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateConnectionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("connections")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Connection.class,
CreateConnectionResponse.Builder::connection)
.handleResponseHeaderString("etag", CreateConnectionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateConnectionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateCustomPropertyResponse createCustomProperty(CreateCustomPropertyRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getNamespaceId(), "namespaceId must not be blank");
Objects.requireNonNull(
request.getCreateCustomPropertyDetails(),
"createCustomPropertyDetails is required");
return clientCall(request, CreateCustomPropertyResponse::builder)
.logger(LOG, "createCustomProperty")
.serviceDetails(
"DataCatalog",
"CreateCustomProperty",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CustomProperty/CreateCustomProperty")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateCustomPropertyRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.appendPathParam(request.getNamespaceId())
.appendPathParam("customProperties")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.CustomProperty.class,
CreateCustomPropertyResponse.Builder::customProperty)
.handleResponseHeaderString("etag", CreateCustomPropertyResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateCustomPropertyResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateDataAssetResponse createDataAsset(CreateDataAssetRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(
request.getCreateDataAssetDetails(), "createDataAssetDetails is required");
return clientCall(request, CreateDataAssetResponse::builder)
.logger(LOG, "createDataAsset")
.serviceDetails(
"DataCatalog",
"CreateDataAsset",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/CreateDataAsset")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateDataAssetRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.DataAsset.class,
CreateDataAssetResponse.Builder::dataAsset)
.handleResponseHeaderString("etag", CreateDataAssetResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateDataAssetResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateDataAssetTagResponse createDataAssetTag(CreateDataAssetTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getCreateDataAssetTagDetails(), "createDataAssetTagDetails is required");
return clientCall(request, CreateDataAssetTagResponse::builder)
.logger(LOG, "createDataAssetTag")
.serviceDetails(
"DataCatalog",
"CreateDataAssetTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAssetTag/CreateDataAssetTag")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateDataAssetTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("tags")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.DataAssetTag.class,
CreateDataAssetTagResponse.Builder::dataAssetTag)
.handleResponseHeaderString("etag", CreateDataAssetTagResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateDataAssetTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateEntityResponse createEntity(CreateEntityRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(request.getCreateEntityDetails(), "createEntityDetails is required");
return clientCall(request, CreateEntityResponse::builder)
.logger(LOG, "createEntity")
.serviceDetails(
"DataCatalog",
"CreateEntity",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Entity/CreateEntity")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateEntityRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Entity.class,
CreateEntityResponse.Builder::entity)
.handleResponseHeaderString("etag", CreateEntityResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateEntityResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateEntityTagResponse createEntityTag(CreateEntityTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Objects.requireNonNull(
request.getCreateEntityTagDetails(), "createEntityTagDetails is required");
return clientCall(request, CreateEntityTagResponse::builder)
.logger(LOG, "createEntityTag")
.serviceDetails(
"DataCatalog",
"CreateEntityTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/EntityTag/CreateEntityTag")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateEntityTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("tags")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.EntityTag.class,
CreateEntityTagResponse.Builder::entityTag)
.handleResponseHeaderString("etag", CreateEntityTagResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateEntityTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateFolderResponse createFolder(CreateFolderRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(request.getCreateFolderDetails(), "createFolderDetails is required");
return clientCall(request, CreateFolderResponse::builder)
.logger(LOG, "createFolder")
.serviceDetails(
"DataCatalog",
"CreateFolder",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Folder/CreateFolder")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateFolderRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("folders")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Folder.class,
CreateFolderResponse.Builder::folder)
.handleResponseHeaderString("etag", CreateFolderResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateFolderResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateFolderTagResponse createFolderTag(CreateFolderTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getFolderKey(), "folderKey must not be blank");
Objects.requireNonNull(
request.getCreateFolderTagDetails(), "createFolderTagDetails is required");
return clientCall(request, CreateFolderTagResponse::builder)
.logger(LOG, "createFolderTag")
.serviceDetails(
"DataCatalog",
"CreateFolderTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/FolderTag/CreateFolderTag")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateFolderTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("folders")
.appendPathParam(request.getFolderKey())
.appendPathParam("tags")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.FolderTag.class,
CreateFolderTagResponse.Builder::folderTag)
.handleResponseHeaderString("etag", CreateFolderTagResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateFolderTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateGlossaryResponse createGlossary(CreateGlossaryRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(
request.getCreateGlossaryDetails(), "createGlossaryDetails is required");
return clientCall(request, CreateGlossaryResponse::builder)
.logger(LOG, "createGlossary")
.serviceDetails(
"DataCatalog",
"CreateGlossary",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/CreateGlossary")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateGlossaryRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Glossary.class,
CreateGlossaryResponse.Builder::glossary)
.handleResponseHeaderString("etag", CreateGlossaryResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateGlossaryResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateJobResponse createJob(CreateJobRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(request.getCreateJobDetails(), "createJobDetails is required");
return clientCall(request, CreateJobResponse::builder)
.logger(LOG, "createJob")
.serviceDetails(
"DataCatalog",
"CreateJob",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Job/CreateJob")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateJobRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Job.class, CreateJobResponse.Builder::job)
.handleResponseHeaderString("etag", CreateJobResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateJobResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateJobDefinitionResponse createJobDefinition(CreateJobDefinitionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(
request.getCreateJobDefinitionDetails(), "createJobDefinitionDetails is required");
return clientCall(request, CreateJobDefinitionResponse::builder)
.logger(LOG, "createJobDefinition")
.serviceDetails(
"DataCatalog",
"CreateJobDefinition",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobDefinition/CreateJobDefinition")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateJobDefinitionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobDefinitions")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.JobDefinition.class,
CreateJobDefinitionResponse.Builder::jobDefinition)
.handleResponseHeaderString("etag", CreateJobDefinitionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateJobDefinitionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateJobExecutionResponse createJobExecution(CreateJobExecutionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
Objects.requireNonNull(
request.getCreateJobExecutionDetails(), "createJobExecutionDetails is required");
return clientCall(request, CreateJobExecutionResponse::builder)
.logger(LOG, "createJobExecution")
.serviceDetails(
"DataCatalog",
"CreateJobExecution",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobExecution/CreateJobExecution")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateJobExecutionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.appendPathParam("executions")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.JobExecution.class,
CreateJobExecutionResponse.Builder::jobExecution)
.handleResponseHeaderString("etag", CreateJobExecutionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateJobExecutionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateMetastoreResponse createMetastore(CreateMetastoreRequest request) {
Objects.requireNonNull(
request.getCreateMetastoreDetails(), "createMetastoreDetails is required");
return clientCall(request, CreateMetastoreResponse::builder)
.logger(LOG, "createMetastore")
.serviceDetails(
"DataCatalog",
"CreateMetastore",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Metastore/CreateMetastore")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateMetastoreRequest::builder)
.basePath("/20190325")
.appendPathParam("metastores")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id", CreateMetastoreResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", CreateMetastoreResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateNamespaceResponse createNamespace(CreateNamespaceRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(
request.getCreateNamespaceDetails(), "createNamespaceDetails is required");
return clientCall(request, CreateNamespaceResponse::builder)
.logger(LOG, "createNamespace")
.serviceDetails(
"DataCatalog",
"CreateNamespace",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Namespace/CreateNamespace")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateNamespaceRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Namespace.class,
CreateNamespaceResponse.Builder::namespace)
.handleResponseHeaderString("etag", CreateNamespaceResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateNamespaceResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreatePatternResponse createPattern(CreatePatternRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(
request.getCreatePatternDetails(), "createPatternDetails is required");
return clientCall(request, CreatePatternResponse::builder)
.logger(LOG, "createPattern")
.serviceDetails(
"DataCatalog",
"CreatePattern",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Pattern/CreatePattern")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreatePatternRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("patterns")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Pattern.class,
CreatePatternResponse.Builder::pattern)
.handleResponseHeaderString("etag", CreatePatternResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreatePatternResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateTermResponse createTerm(CreateTermRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Objects.requireNonNull(request.getCreateTermDetails(), "createTermDetails is required");
return clientCall(request, CreateTermResponse::builder)
.logger(LOG, "createTerm")
.serviceDetails(
"DataCatalog",
"CreateTerm",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Term/CreateTerm")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateTermRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Term.class,
CreateTermResponse.Builder::term)
.handleResponseHeaderString("etag", CreateTermResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateTermResponse.Builder::opcRequestId)
.callSync();
}
@Override
public CreateTermRelationshipResponse createTermRelationship(
CreateTermRelationshipRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Validate.notBlank(request.getTermKey(), "termKey must not be blank");
Objects.requireNonNull(
request.getCreateTermRelationshipDetails(),
"createTermRelationshipDetails is required");
return clientCall(request, CreateTermRelationshipResponse::builder)
.logger(LOG, "createTermRelationship")
.serviceDetails(
"DataCatalog",
"CreateTermRelationship",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/TermRelationship/CreateTermRelationship")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateTermRelationshipRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.appendPathParam(request.getTermKey())
.appendPathParam("termRelationships")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.TermRelationship.class,
CreateTermRelationshipResponse.Builder::termRelationship)
.handleResponseHeaderString("etag", CreateTermRelationshipResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreateTermRelationshipResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteAttributeResponse deleteAttribute(DeleteAttributeRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank");
return clientCall(request, DeleteAttributeResponse::builder)
.logger(LOG, "deleteAttribute")
.serviceDetails(
"DataCatalog",
"DeleteAttribute",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Attribute/DeleteAttribute")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteAttributeRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("attributes")
.appendPathParam(request.getAttributeKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteAttributeResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteAttributeTagResponse deleteAttributeTag(DeleteAttributeTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank");
Validate.notBlank(request.getTagKey(), "tagKey must not be blank");
return clientCall(request, DeleteAttributeTagResponse::builder)
.logger(LOG, "deleteAttributeTag")
.serviceDetails(
"DataCatalog",
"DeleteAttributeTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/AttributeTag/DeleteAttributeTag")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteAttributeTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("attributes")
.appendPathParam(request.getAttributeKey())
.appendPathParam("tags")
.appendPathParam(request.getTagKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteAttributeTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteCatalogResponse deleteCatalog(DeleteCatalogRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, DeleteCatalogResponse::builder)
.logger(LOG, "deleteCatalog")
.serviceDetails(
"DataCatalog",
"DeleteCatalog",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/DeleteCatalog")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteCatalogRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-work-request-id", DeleteCatalogResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", DeleteCatalogResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteCatalogPrivateEndpointResponse deleteCatalogPrivateEndpoint(
DeleteCatalogPrivateEndpointRequest request) {
Validate.notBlank(
request.getCatalogPrivateEndpointId(),
"catalogPrivateEndpointId must not be blank");
return clientCall(request, DeleteCatalogPrivateEndpointResponse::builder)
.logger(LOG, "deleteCatalogPrivateEndpoint")
.serviceDetails(
"DataCatalog",
"DeleteCatalogPrivateEndpoint",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CatalogPrivateEndpoint/DeleteCatalogPrivateEndpoint")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteCatalogPrivateEndpointRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogPrivateEndpoints")
.appendPathParam(request.getCatalogPrivateEndpointId())
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-work-request-id",
DeleteCatalogPrivateEndpointResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id",
DeleteCatalogPrivateEndpointResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank");
return clientCall(request, DeleteConnectionResponse::builder)
.logger(LOG, "deleteConnection")
.serviceDetails(
"DataCatalog",
"DeleteConnection",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Connection/DeleteConnection")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteConnectionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("connections")
.appendPathParam(request.getConnectionKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteConnectionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteCustomPropertyResponse deleteCustomProperty(DeleteCustomPropertyRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getNamespaceId(), "namespaceId must not be blank");
Validate.notBlank(request.getCustomPropertyKey(), "customPropertyKey must not be blank");
return clientCall(request, DeleteCustomPropertyResponse::builder)
.logger(LOG, "deleteCustomProperty")
.serviceDetails(
"DataCatalog",
"DeleteCustomProperty",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CustomProperty/DeleteCustomProperty")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteCustomPropertyRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.appendPathParam(request.getNamespaceId())
.appendPathParam("customProperties")
.appendPathParam(request.getCustomPropertyKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteCustomPropertyResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteDataAssetResponse deleteDataAsset(DeleteDataAssetRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
return clientCall(request, DeleteDataAssetResponse::builder)
.logger(LOG, "deleteDataAsset")
.serviceDetails(
"DataCatalog",
"DeleteDataAsset",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/DeleteDataAsset")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteDataAssetRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteDataAssetResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteDataAssetTagResponse deleteDataAssetTag(DeleteDataAssetTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getTagKey(), "tagKey must not be blank");
return clientCall(request, DeleteDataAssetTagResponse::builder)
.logger(LOG, "deleteDataAssetTag")
.serviceDetails(
"DataCatalog",
"DeleteDataAssetTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAssetTag/DeleteDataAssetTag")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteDataAssetTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("tags")
.appendPathParam(request.getTagKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteDataAssetTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteEntityResponse deleteEntity(DeleteEntityRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
return clientCall(request, DeleteEntityResponse::builder)
.logger(LOG, "deleteEntity")
.serviceDetails(
"DataCatalog",
"DeleteEntity",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Entity/DeleteEntity")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteEntityRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteEntityResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteEntityTagResponse deleteEntityTag(DeleteEntityTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Validate.notBlank(request.getTagKey(), "tagKey must not be blank");
return clientCall(request, DeleteEntityTagResponse::builder)
.logger(LOG, "deleteEntityTag")
.serviceDetails(
"DataCatalog",
"DeleteEntityTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/EntityTag/DeleteEntityTag")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteEntityTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("tags")
.appendPathParam(request.getTagKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteEntityTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteFolderResponse deleteFolder(DeleteFolderRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getFolderKey(), "folderKey must not be blank");
return clientCall(request, DeleteFolderResponse::builder)
.logger(LOG, "deleteFolder")
.serviceDetails(
"DataCatalog",
"DeleteFolder",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Folder/DeleteFolder")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteFolderRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("folders")
.appendPathParam(request.getFolderKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteFolderResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteFolderTagResponse deleteFolderTag(DeleteFolderTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getFolderKey(), "folderKey must not be blank");
Validate.notBlank(request.getTagKey(), "tagKey must not be blank");
return clientCall(request, DeleteFolderTagResponse::builder)
.logger(LOG, "deleteFolderTag")
.serviceDetails(
"DataCatalog",
"DeleteFolderTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/FolderTag/DeleteFolderTag")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteFolderTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("folders")
.appendPathParam(request.getFolderKey())
.appendPathParam("tags")
.appendPathParam(request.getTagKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteFolderTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteGlossaryResponse deleteGlossary(DeleteGlossaryRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
return clientCall(request, DeleteGlossaryResponse::builder)
.logger(LOG, "deleteGlossary")
.serviceDetails(
"DataCatalog",
"DeleteGlossary",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/DeleteGlossary")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteGlossaryRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteGlossaryResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteJobResponse deleteJob(DeleteJobRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
return clientCall(request, DeleteJobResponse::builder)
.logger(LOG, "deleteJob")
.serviceDetails(
"DataCatalog",
"DeleteJob",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Job/DeleteJob")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteJobRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteJobResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteJobDefinitionResponse deleteJobDefinition(DeleteJobDefinitionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobDefinitionKey(), "jobDefinitionKey must not be blank");
return clientCall(request, DeleteJobDefinitionResponse::builder)
.logger(LOG, "deleteJobDefinition")
.serviceDetails(
"DataCatalog",
"DeleteJobDefinition",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobDefinition/DeleteJobDefinition")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteJobDefinitionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobDefinitions")
.appendPathParam(request.getJobDefinitionKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteJobDefinitionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteMetastoreResponse deleteMetastore(DeleteMetastoreRequest request) {
Validate.notBlank(request.getMetastoreId(), "metastoreId must not be blank");
return clientCall(request, DeleteMetastoreResponse::builder)
.logger(LOG, "deleteMetastore")
.serviceDetails(
"DataCatalog",
"DeleteMetastore",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Metastore/DeleteMetastore")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteMetastoreRequest::builder)
.basePath("/20190325")
.appendPathParam("metastores")
.appendPathParam(request.getMetastoreId())
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-work-request-id", DeleteMetastoreResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", DeleteMetastoreResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteNamespaceResponse deleteNamespace(DeleteNamespaceRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getNamespaceId(), "namespaceId must not be blank");
return clientCall(request, DeleteNamespaceResponse::builder)
.logger(LOG, "deleteNamespace")
.serviceDetails(
"DataCatalog",
"DeleteNamespace",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Namespace/DeleteNamespace")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteNamespaceRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.appendPathParam(request.getNamespaceId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteNamespaceResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeletePatternResponse deletePattern(DeletePatternRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getPatternKey(), "patternKey must not be blank");
return clientCall(request, DeletePatternResponse::builder)
.logger(LOG, "deletePattern")
.serviceDetails(
"DataCatalog",
"DeletePattern",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Pattern/DeletePattern")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeletePatternRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("patterns")
.appendPathParam(request.getPatternKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeletePatternResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteTermResponse deleteTerm(DeleteTermRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Validate.notBlank(request.getTermKey(), "termKey must not be blank");
return clientCall(request, DeleteTermResponse::builder)
.logger(LOG, "deleteTerm")
.serviceDetails(
"DataCatalog",
"DeleteTerm",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Term/DeleteTerm")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteTermRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.appendPathParam(request.getTermKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteTermResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DeleteTermRelationshipResponse deleteTermRelationship(
DeleteTermRelationshipRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Validate.notBlank(request.getTermKey(), "termKey must not be blank");
Validate.notBlank(
request.getTermRelationshipKey(), "termRelationshipKey must not be blank");
return clientCall(request, DeleteTermRelationshipResponse::builder)
.logger(LOG, "deleteTermRelationship")
.serviceDetails(
"DataCatalog",
"DeleteTermRelationship",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/TermRelationship/DeleteTermRelationship")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteTermRelationshipRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.appendPathParam(request.getTermKey())
.appendPathParam("termRelationships")
.appendPathParam(request.getTermRelationshipKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeleteTermRelationshipResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DetachCatalogPrivateEndpointResponse detachCatalogPrivateEndpoint(
DetachCatalogPrivateEndpointRequest request) {
Objects.requireNonNull(
request.getDetachCatalogPrivateEndpointDetails(),
"detachCatalogPrivateEndpointDetails is required");
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, DetachCatalogPrivateEndpointResponse::builder)
.logger(LOG, "detachCatalogPrivateEndpoint")
.serviceDetails(
"DataCatalog",
"DetachCatalogPrivateEndpoint",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/DetachCatalogPrivateEndpoint")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(DetachCatalogPrivateEndpointRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("detachCatalogPrivateEndpoint")
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id",
DetachCatalogPrivateEndpointResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id",
DetachCatalogPrivateEndpointResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DisassociateCustomPropertyResponse disassociateCustomProperty(
DisassociateCustomPropertyRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getTypeKey(), "typeKey must not be blank");
Objects.requireNonNull(
request.getDisassociateCustomPropertyDetails(),
"disassociateCustomPropertyDetails is required");
return clientCall(request, DisassociateCustomPropertyResponse::builder)
.logger(LOG, "disassociateCustomProperty")
.serviceDetails(
"DataCatalog",
"DisassociateCustomProperty",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Type/DisassociateCustomProperty")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(DisassociateCustomPropertyRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("types")
.appendPathParam(request.getTypeKey())
.appendPathParam("actions")
.appendPathParam("disassociateCustomProperties")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Type.class,
DisassociateCustomPropertyResponse.Builder::type)
.handleResponseHeaderString(
"etag", DisassociateCustomPropertyResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", DisassociateCustomPropertyResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ExpandTreeForGlossaryResponse expandTreeForGlossary(
ExpandTreeForGlossaryRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
return clientCall(request, ExpandTreeForGlossaryResponse::builder)
.logger(LOG, "expandTreeForGlossary")
.serviceDetails(
"DataCatalog",
"ExpandTreeForGlossary",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/ExpandTreeForGlossary")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ExpandTreeForGlossaryRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("actions")
.appendPathParam("expandTree")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.operationUsesDefaultRetries()
.handleBodyList(
com.oracle.bmc.datacatalog.model.GlossaryTreeElement.class,
ExpandTreeForGlossaryResponse.Builder::items)
.handleResponseHeaderString("etag", ExpandTreeForGlossaryResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", ExpandTreeForGlossaryResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ExportGlossaryResponse exportGlossary(ExportGlossaryRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
return clientCall(request, ExportGlossaryResponse::builder)
.logger(LOG, "exportGlossary")
.serviceDetails(
"DataCatalog",
"ExportGlossary",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/ExportGlossary")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ExportGlossaryRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("actions")
.appendPathParam("export")
.appendQueryParam("isRelationshipExported", request.getIsRelationshipExported())
.accept(
"application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.handleBody(String.class, ExportGlossaryResponse.Builder::value)
.handleResponseHeaderString("etag", ExportGlossaryResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", ExportGlossaryResponse.Builder::opcRequestId)
.callSync();
}
@Override
public FetchEntityLineageResponse fetchEntityLineage(FetchEntityLineageRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Objects.requireNonNull(
request.getFetchEntityLineageDetails(), "fetchEntityLineageDetails is required");
return clientCall(request, FetchEntityLineageResponse::builder)
.logger(LOG, "fetchEntityLineage")
.serviceDetails(
"DataCatalog",
"FetchEntityLineage",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Entity/FetchEntityLineage")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(FetchEntityLineageRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("actions")
.appendPathParam("fetchLineage")
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.operationUsesDefaultRetries()
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.EntityLineage.class,
FetchEntityLineageResponse.Builder::entityLineage)
.handleResponseHeaderString(
"opc-request-id", FetchEntityLineageResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", FetchEntityLineageResponse.Builder::opcNextPage)
.callSync();
}
@Override
public GetAttributeResponse getAttribute(GetAttributeRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank");
return clientCall(request, GetAttributeResponse::builder)
.logger(LOG, "getAttribute")
.serviceDetails(
"DataCatalog",
"GetAttribute",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Attribute/GetAttribute")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetAttributeRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("attributes")
.appendPathParam(request.getAttributeKey())
.appendQueryParam(
"isIncludeObjectRelationships", request.getIsIncludeObjectRelationships())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Attribute.class,
GetAttributeResponse.Builder::attribute)
.handleResponseHeaderString("etag", GetAttributeResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetAttributeResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetAttributeTagResponse getAttributeTag(GetAttributeTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank");
Validate.notBlank(request.getTagKey(), "tagKey must not be blank");
return clientCall(request, GetAttributeTagResponse::builder)
.logger(LOG, "getAttributeTag")
.serviceDetails(
"DataCatalog",
"GetAttributeTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/AttributeTag/GetAttributeTag")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetAttributeTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("attributes")
.appendPathParam(request.getAttributeKey())
.appendPathParam("tags")
.appendPathParam(request.getTagKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.AttributeTag.class,
GetAttributeTagResponse.Builder::attributeTag)
.handleResponseHeaderString("etag", GetAttributeTagResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetAttributeTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetCatalogResponse getCatalog(GetCatalogRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, GetCatalogResponse::builder)
.logger(LOG, "getCatalog")
.serviceDetails(
"DataCatalog",
"GetCatalog",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/GetCatalog")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetCatalogRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Catalog.class,
GetCatalogResponse.Builder::catalog)
.handleResponseHeaderString("etag", GetCatalogResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetCatalogResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetCatalogPrivateEndpointResponse getCatalogPrivateEndpoint(
GetCatalogPrivateEndpointRequest request) {
Validate.notBlank(
request.getCatalogPrivateEndpointId(),
"catalogPrivateEndpointId must not be blank");
return clientCall(request, GetCatalogPrivateEndpointResponse::builder)
.logger(LOG, "getCatalogPrivateEndpoint")
.serviceDetails(
"DataCatalog",
"GetCatalogPrivateEndpoint",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CatalogPrivateEndpoint/GetCatalogPrivateEndpoint")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetCatalogPrivateEndpointRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogPrivateEndpoints")
.appendPathParam(request.getCatalogPrivateEndpointId())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.CatalogPrivateEndpoint.class,
GetCatalogPrivateEndpointResponse.Builder::catalogPrivateEndpoint)
.handleResponseHeaderString(
"opc-request-id", GetCatalogPrivateEndpointResponse.Builder::opcRequestId)
.handleResponseHeaderString("etag", GetCatalogPrivateEndpointResponse.Builder::etag)
.callSync();
}
@Override
public GetConnectionResponse getConnection(GetConnectionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank");
return clientCall(request, GetConnectionResponse::builder)
.logger(LOG, "getConnection")
.serviceDetails(
"DataCatalog",
"GetConnection",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Connection/GetConnection")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetConnectionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("connections")
.appendPathParam(request.getConnectionKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Connection.class,
GetConnectionResponse.Builder::connection)
.handleResponseHeaderString("etag", GetConnectionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetConnectionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetCustomPropertyResponse getCustomProperty(GetCustomPropertyRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getNamespaceId(), "namespaceId must not be blank");
Validate.notBlank(request.getCustomPropertyKey(), "customPropertyKey must not be blank");
return clientCall(request, GetCustomPropertyResponse::builder)
.logger(LOG, "getCustomProperty")
.serviceDetails(
"DataCatalog",
"GetCustomProperty",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CustomProperty/GetCustomProperty")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetCustomPropertyRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.appendPathParam(request.getNamespaceId())
.appendPathParam("customProperties")
.appendPathParam(request.getCustomPropertyKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.CustomProperty.class,
GetCustomPropertyResponse.Builder::customProperty)
.handleResponseHeaderString("etag", GetCustomPropertyResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetCustomPropertyResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetDataAssetResponse getDataAsset(GetDataAssetRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
return clientCall(request, GetDataAssetResponse::builder)
.logger(LOG, "getDataAsset")
.serviceDetails(
"DataCatalog",
"GetDataAsset",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/GetDataAsset")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetDataAssetRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.DataAsset.class,
GetDataAssetResponse.Builder::dataAsset)
.handleResponseHeaderString("etag", GetDataAssetResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetDataAssetResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetDataAssetTagResponse getDataAssetTag(GetDataAssetTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getTagKey(), "tagKey must not be blank");
return clientCall(request, GetDataAssetTagResponse::builder)
.logger(LOG, "getDataAssetTag")
.serviceDetails(
"DataCatalog",
"GetDataAssetTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAssetTag/GetDataAssetTag")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetDataAssetTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("tags")
.appendPathParam(request.getTagKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.DataAssetTag.class,
GetDataAssetTagResponse.Builder::dataAssetTag)
.handleResponseHeaderString("etag", GetDataAssetTagResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetDataAssetTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetEntityResponse getEntity(GetEntityRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
return clientCall(request, GetEntityResponse::builder)
.logger(LOG, "getEntity")
.serviceDetails(
"DataCatalog",
"GetEntity",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Entity/GetEntity")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetEntityRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendQueryParam(
"isIncludeObjectRelationships", request.getIsIncludeObjectRelationships())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Entity.class,
GetEntityResponse.Builder::entity)
.handleResponseHeaderString("etag", GetEntityResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetEntityResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetEntityTagResponse getEntityTag(GetEntityTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Validate.notBlank(request.getTagKey(), "tagKey must not be blank");
return clientCall(request, GetEntityTagResponse::builder)
.logger(LOG, "getEntityTag")
.serviceDetails(
"DataCatalog",
"GetEntityTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/EntityTag/GetEntityTag")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetEntityTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("tags")
.appendPathParam(request.getTagKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.EntityTag.class,
GetEntityTagResponse.Builder::entityTag)
.handleResponseHeaderString("etag", GetEntityTagResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetEntityTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetFolderResponse getFolder(GetFolderRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getFolderKey(), "folderKey must not be blank");
return clientCall(request, GetFolderResponse::builder)
.logger(LOG, "getFolder")
.serviceDetails(
"DataCatalog",
"GetFolder",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Folder/GetFolder")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetFolderRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("folders")
.appendPathParam(request.getFolderKey())
.appendQueryParam(
"isIncludeObjectRelationships", request.getIsIncludeObjectRelationships())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Folder.class,
GetFolderResponse.Builder::folder)
.handleResponseHeaderString("etag", GetFolderResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetFolderResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetFolderTagResponse getFolderTag(GetFolderTagRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getFolderKey(), "folderKey must not be blank");
Validate.notBlank(request.getTagKey(), "tagKey must not be blank");
return clientCall(request, GetFolderTagResponse::builder)
.logger(LOG, "getFolderTag")
.serviceDetails(
"DataCatalog",
"GetFolderTag",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/FolderTag/GetFolderTag")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetFolderTagRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("folders")
.appendPathParam(request.getFolderKey())
.appendPathParam("tags")
.appendPathParam(request.getTagKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.FolderTag.class,
GetFolderTagResponse.Builder::folderTag)
.handleResponseHeaderString("etag", GetFolderTagResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetFolderTagResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetGlossaryResponse getGlossary(GetGlossaryRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
return clientCall(request, GetGlossaryResponse::builder)
.logger(LOG, "getGlossary")
.serviceDetails(
"DataCatalog",
"GetGlossary",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/GetGlossary")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetGlossaryRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Glossary.class,
GetGlossaryResponse.Builder::glossary)
.handleResponseHeaderString("etag", GetGlossaryResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetGlossaryResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetJobResponse getJob(GetJobRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
return clientCall(request, GetJobResponse::builder)
.logger(LOG, "getJob")
.serviceDetails(
"DataCatalog",
"GetJob",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Job/GetJob")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetJobRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(com.oracle.bmc.datacatalog.model.Job.class, GetJobResponse.Builder::job)
.handleResponseHeaderString("etag", GetJobResponse.Builder::etag)
.handleResponseHeaderString("opc-request-id", GetJobResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetJobDefinitionResponse getJobDefinition(GetJobDefinitionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobDefinitionKey(), "jobDefinitionKey must not be blank");
return clientCall(request, GetJobDefinitionResponse::builder)
.logger(LOG, "getJobDefinition")
.serviceDetails(
"DataCatalog",
"GetJobDefinition",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobDefinition/GetJobDefinition")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetJobDefinitionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobDefinitions")
.appendPathParam(request.getJobDefinitionKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.JobDefinition.class,
GetJobDefinitionResponse.Builder::jobDefinition)
.handleResponseHeaderString("etag", GetJobDefinitionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetJobDefinitionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetJobExecutionResponse getJobExecution(GetJobExecutionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank");
return clientCall(request, GetJobExecutionResponse::builder)
.logger(LOG, "getJobExecution")
.serviceDetails(
"DataCatalog",
"GetJobExecution",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobExecution/GetJobExecution")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetJobExecutionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.appendPathParam("executions")
.appendPathParam(request.getJobExecutionKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.JobExecution.class,
GetJobExecutionResponse.Builder::jobExecution)
.handleResponseHeaderString("etag", GetJobExecutionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetJobExecutionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetJobLogResponse getJobLog(GetJobLogRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank");
Validate.notBlank(request.getJobLogKey(), "jobLogKey must not be blank");
return clientCall(request, GetJobLogResponse::builder)
.logger(LOG, "getJobLog")
.serviceDetails(
"DataCatalog",
"GetJobLog",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobLog/GetJobLog")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetJobLogRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.appendPathParam("executions")
.appendPathParam(request.getJobExecutionKey())
.appendPathParam("logs")
.appendPathParam(request.getJobLogKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.JobLog.class,
GetJobLogResponse.Builder::jobLog)
.handleResponseHeaderString("etag", GetJobLogResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetJobLogResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetJobMetricsResponse getJobMetrics(GetJobMetricsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank");
Validate.notBlank(request.getJobMetricsKey(), "jobMetricsKey must not be blank");
return clientCall(request, GetJobMetricsResponse::builder)
.logger(LOG, "getJobMetrics")
.serviceDetails(
"DataCatalog",
"GetJobMetrics",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobMetric/GetJobMetrics")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetJobMetricsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.appendPathParam("executions")
.appendPathParam(request.getJobExecutionKey())
.appendPathParam("metrics")
.appendPathParam(request.getJobMetricsKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.JobMetric.class,
GetJobMetricsResponse.Builder::jobMetric)
.handleResponseHeaderString("etag", GetJobMetricsResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetJobMetricsResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetMetastoreResponse getMetastore(GetMetastoreRequest request) {
Validate.notBlank(request.getMetastoreId(), "metastoreId must not be blank");
return clientCall(request, GetMetastoreResponse::builder)
.logger(LOG, "getMetastore")
.serviceDetails(
"DataCatalog",
"GetMetastore",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Metastore/GetMetastore")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetMetastoreRequest::builder)
.basePath("/20190325")
.appendPathParam("metastores")
.appendPathParam(request.getMetastoreId())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Metastore.class,
GetMetastoreResponse.Builder::metastore)
.handleResponseHeaderString("etag", GetMetastoreResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetMetastoreResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetNamespaceResponse getNamespace(GetNamespaceRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getNamespaceId(), "namespaceId must not be blank");
return clientCall(request, GetNamespaceResponse::builder)
.logger(LOG, "getNamespace")
.serviceDetails(
"DataCatalog",
"GetNamespace",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Namespace/GetNamespace")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetNamespaceRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.appendPathParam(request.getNamespaceId())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Namespace.class,
GetNamespaceResponse.Builder::namespace)
.handleResponseHeaderString("etag", GetNamespaceResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetNamespaceResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetPatternResponse getPattern(GetPatternRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getPatternKey(), "patternKey must not be blank");
return clientCall(request, GetPatternResponse::builder)
.logger(LOG, "getPattern")
.serviceDetails(
"DataCatalog",
"GetPattern",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Pattern/GetPattern")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetPatternRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("patterns")
.appendPathParam(request.getPatternKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Pattern.class,
GetPatternResponse.Builder::pattern)
.handleResponseHeaderString("etag", GetPatternResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetPatternResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetTermResponse getTerm(GetTermRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Validate.notBlank(request.getTermKey(), "termKey must not be blank");
return clientCall(request, GetTermResponse::builder)
.logger(LOG, "getTerm")
.serviceDetails(
"DataCatalog",
"GetTerm",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Term/GetTerm")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetTermRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.appendPathParam(request.getTermKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Term.class, GetTermResponse.Builder::term)
.handleResponseHeaderString("etag", GetTermResponse.Builder::etag)
.handleResponseHeaderString("opc-request-id", GetTermResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetTermRelationshipResponse getTermRelationship(GetTermRelationshipRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Validate.notBlank(request.getTermKey(), "termKey must not be blank");
Validate.notBlank(
request.getTermRelationshipKey(), "termRelationshipKey must not be blank");
return clientCall(request, GetTermRelationshipResponse::builder)
.logger(LOG, "getTermRelationship")
.serviceDetails(
"DataCatalog",
"GetTermRelationship",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/TermRelationship/GetTermRelationship")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetTermRelationshipRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.appendPathParam(request.getTermKey())
.appendPathParam("termRelationships")
.appendPathParam(request.getTermRelationshipKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.TermRelationship.class,
GetTermRelationshipResponse.Builder::termRelationship)
.handleResponseHeaderString("etag", GetTermRelationshipResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetTermRelationshipResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetTypeResponse getType(GetTypeRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getTypeKey(), "typeKey must not be blank");
return clientCall(request, GetTypeResponse::builder)
.logger(LOG, "getType")
.serviceDetails(
"DataCatalog",
"GetType",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Type/GetType")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetTypeRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("types")
.appendPathParam(request.getTypeKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.Type.class, GetTypeResponse.Builder::type)
.handleResponseHeaderString("etag", GetTypeResponse.Builder::etag)
.handleResponseHeaderString("opc-request-id", GetTypeResponse.Builder::opcRequestId)
.callSync();
}
@Override
public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) {
Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank");
return clientCall(request, GetWorkRequestResponse::builder)
.logger(LOG, "getWorkRequest")
.serviceDetails(
"DataCatalog",
"GetWorkRequest",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/WorkRequest/GetWorkRequest")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetWorkRequestRequest::builder)
.basePath("/20190325")
.appendPathParam("workRequests")
.appendPathParam(request.getWorkRequestId())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.WorkRequest.class,
GetWorkRequestResponse.Builder::workRequest)
.handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetWorkRequestResponse.Builder::opcRequestId)
.handleResponseHeaderInteger(
"retry-after", GetWorkRequestResponse.Builder::retryAfter)
.callSync();
}
@Override
public ImportConnectionResponse importConnection(ImportConnectionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getImportConnectionDetails(), "importConnectionDetails is required");
return clientCall(request, ImportConnectionResponse::builder)
.logger(LOG, "importConnection")
.serviceDetails(
"DataCatalog",
"ImportConnection",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/ImportConnection")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ImportConnectionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("actions")
.appendPathParam("importConnection")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Connection.class,
ImportConnectionResponse.Builder::connection)
.handleResponseHeaderString("etag", ImportConnectionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", ImportConnectionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ImportDataAssetResponse importDataAsset(ImportDataAssetRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getImportDataAssetDetails(), "importDataAssetDetails is required");
Objects.requireNonNull(request.getImportType(), "importType is required");
return clientCall(request, ImportDataAssetResponse::builder)
.logger(LOG, "importDataAsset")
.serviceDetails(
"DataCatalog",
"ImportDataAsset",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/ImportDataAsset")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ImportDataAssetRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("actions")
.appendPathParam("import")
.appendListQueryParam(
"importType",
request.getImportType(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendQueryParam("isMissingValueIgnored", request.getIsMissingValueIgnored())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.ImportDataAssetJobResult.class,
ImportDataAssetResponse.Builder::importDataAssetJobResult)
.handleResponseHeaderString(
"opc-request-id", ImportDataAssetResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ImportGlossaryResponse importGlossary(ImportGlossaryRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Objects.requireNonNull(
request.getImportGlossaryDetails(), "importGlossaryDetails is required");
return clientCall(request, ImportGlossaryResponse::builder)
.logger(LOG, "importGlossary")
.serviceDetails(
"DataCatalog",
"ImportGlossary",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/ImportGlossary")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ImportGlossaryRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("actions")
.appendPathParam("import")
.appendQueryParam("isRelationshipImported", request.getIsRelationshipImported())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleResponseHeaderString("etag", ImportGlossaryResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", ImportGlossaryResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ImportLineageResponse importLineage(ImportLineageRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getImportLineageDetails(), "importLineageDetails is required");
return clientCall(request, ImportLineageResponse::builder)
.logger(LOG, "importLineage")
.serviceDetails(
"DataCatalog",
"ImportLineage",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/ImportLineage")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ImportLineageRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("actions")
.appendPathParam("importLineage")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.ImportLineageJobResult.class,
ImportLineageResponse.Builder::importLineageJobResult)
.handleResponseHeaderString(
"opc-request-id", ImportLineageResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ListAggregatedPhysicalEntitiesResponse listAggregatedPhysicalEntities(
ListAggregatedPhysicalEntitiesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
return clientCall(request, ListAggregatedPhysicalEntitiesResponse::builder)
.logger(LOG, "listAggregatedPhysicalEntities")
.serviceDetails(
"DataCatalog",
"ListAggregatedPhysicalEntities",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Entity/ListAggregatedPhysicalEntities")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ListAggregatedPhysicalEntitiesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("actions")
.appendPathParam("listAggregatedPhysicalEntities")
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendQueryParam("isIncludeProperties", request.getIsIncludeProperties())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.EntityCollection.class,
ListAggregatedPhysicalEntitiesResponse.Builder::entityCollection)
.handleResponseHeaderString(
"opc-request-id",
ListAggregatedPhysicalEntitiesResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ListAttributeTagsResponse listAttributeTags(ListAttributeTagsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank");
return clientCall(request, ListAttributeTagsResponse::builder)
.logger(LOG, "listAttributeTags")
.serviceDetails(
"DataCatalog",
"ListAttributeTags",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/AttributeTagCollection/ListAttributeTags")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListAttributeTagsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("attributes")
.appendPathParam(request.getAttributeKey())
.appendPathParam("tags")
.appendQueryParam("name", request.getName())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("termKey", request.getTermKey())
.appendQueryParam("termPath", request.getTermPath())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("createdById", request.getCreatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.AttributeTagCollection.class,
ListAttributeTagsResponse.Builder::attributeTagCollection)
.handleResponseHeaderString(
"opc-request-id", ListAttributeTagsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListAttributeTagsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListAttributesResponse listAttributes(ListAttributesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
return clientCall(request, ListAttributesResponse::builder)
.logger(LOG, "listAttributes")
.serviceDetails(
"DataCatalog",
"ListAttributes",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/AttributeCollection/ListAttributes")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListAttributesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("attributes")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("businessName", request.getBusinessName())
.appendQueryParam(
"displayOrBusinessNameContains", request.getDisplayOrBusinessNameContains())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendQueryParam("externalKey", request.getExternalKey())
.appendQueryParam("timeExternal", request.getTimeExternal())
.appendQueryParam("externalTypeName", request.getExternalTypeName())
.appendQueryParam("isIncrementalData", request.getIsIncrementalData())
.appendQueryParam("isNullable", request.getIsNullable())
.appendQueryParam("length", request.getLength())
.appendQueryParam("position", request.getPosition())
.appendQueryParam("precision", request.getPrecision())
.appendQueryParam("scale", request.getScale())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.AttributeCollection.class,
ListAttributesResponse.Builder::attributeCollection)
.handleResponseHeaderString(
"opc-request-id", ListAttributesResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListAttributesResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListCatalogPrivateEndpointsResponse listCatalogPrivateEndpoints(
ListCatalogPrivateEndpointsRequest request) {
Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
return clientCall(request, ListCatalogPrivateEndpointsResponse::builder)
.logger(LOG, "listCatalogPrivateEndpoints")
.serviceDetails(
"DataCatalog",
"ListCatalogPrivateEndpoints",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CatalogPrivateEndpointSummary/ListCatalogPrivateEndpoints")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListCatalogPrivateEndpointsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogPrivateEndpoints")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBodyList(
com.oracle.bmc.datacatalog.model.CatalogPrivateEndpointSummary.class,
ListCatalogPrivateEndpointsResponse.Builder::items)
.handleResponseHeaderString(
"opc-request-id", ListCatalogPrivateEndpointsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListCatalogPrivateEndpointsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListCatalogsResponse listCatalogs(ListCatalogsRequest request) {
Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
return clientCall(request, ListCatalogsResponse::builder)
.logger(LOG, "listCatalogs")
.serviceDetails(
"DataCatalog",
"ListCatalogs",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CatalogSummary/ListCatalogs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListCatalogsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBodyList(
com.oracle.bmc.datacatalog.model.CatalogSummary.class,
ListCatalogsResponse.Builder::items)
.handleResponseHeaderString(
"opc-request-id", ListCatalogsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListCatalogsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListConnectionsResponse listConnections(ListConnectionsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
return clientCall(request, ListConnectionsResponse::builder)
.logger(LOG, "listConnections")
.serviceDetails(
"DataCatalog",
"ListConnections",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/ConnectionCollection/ListConnections")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListConnectionsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("connections")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendQueryParam("externalKey", request.getExternalKey())
.appendQueryParam("timeStatusUpdated", request.getTimeStatusUpdated())
.appendQueryParam("isDefault", request.getIsDefault())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.ConnectionCollection.class,
ListConnectionsResponse.Builder::connectionCollection)
.handleResponseHeaderString(
"opc-request-id", ListConnectionsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListConnectionsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListCustomPropertiesResponse listCustomProperties(ListCustomPropertiesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getNamespaceId(), "namespaceId must not be blank");
return clientCall(request, ListCustomPropertiesResponse::builder)
.logger(LOG, "listCustomProperties")
.serviceDetails(
"DataCatalog",
"ListCustomProperties",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CustomProperty/ListCustomProperties")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListCustomPropertiesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.appendPathParam(request.getNamespaceId())
.appendPathParam("customProperties")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendListQueryParam(
"dataTypes",
request.getDataTypes(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendListQueryParam(
"typeName",
request.getTypeName(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.CustomPropertyCollection.class,
ListCustomPropertiesResponse.Builder::customPropertyCollection)
.handleResponseHeaderString(
"opc-request-id", ListCustomPropertiesResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListCustomPropertiesResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListDataAssetTagsResponse listDataAssetTags(ListDataAssetTagsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
return clientCall(request, ListDataAssetTagsResponse::builder)
.logger(LOG, "listDataAssetTags")
.serviceDetails(
"DataCatalog",
"ListDataAssetTags",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAssetTagCollection/ListDataAssetTags")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListDataAssetTagsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("tags")
.appendQueryParam("name", request.getName())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("termKey", request.getTermKey())
.appendQueryParam("termPath", request.getTermPath())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("createdById", request.getCreatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.DataAssetTagCollection.class,
ListDataAssetTagsResponse.Builder::dataAssetTagCollection)
.handleResponseHeaderString(
"opc-request-id", ListDataAssetTagsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListDataAssetTagsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListDataAssetsResponse listDataAssets(ListDataAssetsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ListDataAssetsResponse::builder)
.logger(LOG, "listDataAssets")
.serviceDetails(
"DataCatalog",
"ListDataAssets",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAssetCollection/ListDataAssets")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListDataAssetsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendQueryParam("externalKey", request.getExternalKey())
.appendQueryParam("typeKey", request.getTypeKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.DataAssetCollection.class,
ListDataAssetsResponse.Builder::dataAssetCollection)
.handleResponseHeaderString(
"opc-request-id", ListDataAssetsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListDataAssetsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListDerivedLogicalEntitiesResponse listDerivedLogicalEntities(
ListDerivedLogicalEntitiesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getPatternKey(), "patternKey must not be blank");
return clientCall(request, ListDerivedLogicalEntitiesResponse::builder)
.logger(LOG, "listDerivedLogicalEntities")
.serviceDetails(
"DataCatalog",
"ListDerivedLogicalEntities",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Pattern/ListDerivedLogicalEntities")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ListDerivedLogicalEntitiesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("patterns")
.appendPathParam(request.getPatternKey())
.appendPathParam("actions")
.appendPathParam("listDerivedLogicalEntities")
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.EntityCollection.class,
ListDerivedLogicalEntitiesResponse.Builder::entityCollection)
.handleResponseHeaderString(
"opc-request-id", ListDerivedLogicalEntitiesResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ListEntitiesResponse listEntities(ListEntitiesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
return clientCall(request, ListEntitiesResponse::builder)
.logger(LOG, "listEntities")
.serviceDetails(
"DataCatalog",
"ListEntities",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Entity/ListEntities")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListEntitiesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("businessName", request.getBusinessName())
.appendQueryParam(
"displayOrBusinessNameContains", request.getDisplayOrBusinessNameContains())
.appendQueryParam("typeKey", request.getTypeKey())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendQueryParam("externalKey", request.getExternalKey())
.appendQueryParam("patternKey", request.getPatternKey())
.appendQueryParam("timeExternal", request.getTimeExternal())
.appendQueryParam("timeStatusUpdated", request.getTimeStatusUpdated())
.appendQueryParam("isLogical", request.getIsLogical())
.appendQueryParam("isPartition", request.getIsPartition())
.appendQueryParam("folderKey", request.getFolderKey())
.appendQueryParam("path", request.getPath())
.appendEnumQueryParam("harvestStatus", request.getHarvestStatus())
.appendQueryParam("lastJobKey", request.getLastJobKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendQueryParam("isProcess", request.getIsProcess())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.EntityCollection.class,
ListEntitiesResponse.Builder::entityCollection)
.handleResponseHeaderString(
"opc-request-id", ListEntitiesResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListEntitiesResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListEntityTagsResponse listEntityTags(ListEntityTagsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
return clientCall(request, ListEntityTagsResponse::builder)
.logger(LOG, "listEntityTags")
.serviceDetails(
"DataCatalog",
"ListEntityTags",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/EntityTagCollection/ListEntityTags")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListEntityTagsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("tags")
.appendQueryParam("name", request.getName())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("termKey", request.getTermKey())
.appendQueryParam("termPath", request.getTermPath())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("createdById", request.getCreatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.EntityTagCollection.class,
ListEntityTagsResponse.Builder::entityTagCollection)
.handleResponseHeaderString(
"opc-request-id", ListEntityTagsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListEntityTagsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListFolderTagsResponse listFolderTags(ListFolderTagsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getFolderKey(), "folderKey must not be blank");
return clientCall(request, ListFolderTagsResponse::builder)
.logger(LOG, "listFolderTags")
.serviceDetails(
"DataCatalog",
"ListFolderTags",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/FolderTagCollection/ListFolderTags")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListFolderTagsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("folders")
.appendPathParam(request.getFolderKey())
.appendPathParam("tags")
.appendQueryParam("name", request.getName())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("termKey", request.getTermKey())
.appendQueryParam("termPath", request.getTermPath())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("createdById", request.getCreatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.FolderTagCollection.class,
ListFolderTagsResponse.Builder::folderTagCollection)
.handleResponseHeaderString(
"opc-request-id", ListFolderTagsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListFolderTagsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListFoldersResponse listFolders(ListFoldersRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
return clientCall(request, ListFoldersResponse::builder)
.logger(LOG, "listFolders")
.serviceDetails(
"DataCatalog",
"ListFolders",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/FolderCollection/ListFolders")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListFoldersRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("folders")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("businessName", request.getBusinessName())
.appendQueryParam(
"displayOrBusinessNameContains", request.getDisplayOrBusinessNameContains())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("parentFolderKey", request.getParentFolderKey())
.appendQueryParam("path", request.getPath())
.appendQueryParam("externalKey", request.getExternalKey())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendEnumQueryParam("harvestStatus", request.getHarvestStatus())
.appendQueryParam("lastJobKey", request.getLastJobKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendQueryParam("typeKey", request.getTypeKey())
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.FolderCollection.class,
ListFoldersResponse.Builder::folderCollection)
.handleResponseHeaderString(
"opc-request-id", ListFoldersResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListFoldersResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListGlossariesResponse listGlossaries(ListGlossariesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ListGlossariesResponse::builder)
.logger(LOG, "listGlossaries")
.serviceDetails(
"DataCatalog",
"ListGlossaries",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/ListGlossaries")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListGlossariesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.GlossaryCollection.class,
ListGlossariesResponse.Builder::glossaryCollection)
.handleResponseHeaderString(
"opc-request-id", ListGlossariesResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListGlossariesResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListJobDefinitionsResponse listJobDefinitions(ListJobDefinitionsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ListJobDefinitionsResponse::builder)
.logger(LOG, "listJobDefinitions")
.serviceDetails(
"DataCatalog",
"ListJobDefinitions",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobDefinitionCollection/ListJobDefinitions")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListJobDefinitionsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobDefinitions")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("jobExecutionState", request.getJobExecutionState())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendEnumQueryParam("jobType", request.getJobType())
.appendQueryParam("isIncremental", request.getIsIncremental())
.appendQueryParam("dataAssetKey", request.getDataAssetKey())
.appendQueryParam("glossaryKey", request.getGlossaryKey())
.appendQueryParam("connectionKey", request.getConnectionKey())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendQueryParam("sampleDataSizeInMBs", request.getSampleDataSizeInMBs())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.JobDefinitionCollection.class,
ListJobDefinitionsResponse.Builder::jobDefinitionCollection)
.handleResponseHeaderString(
"opc-request-id", ListJobDefinitionsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListJobDefinitionsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListJobExecutionsResponse listJobExecutions(ListJobExecutionsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
return clientCall(request, ListJobExecutionsResponse::builder)
.logger(LOG, "listJobExecutions")
.serviceDetails(
"DataCatalog",
"ListJobExecutions",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobExecutionCollection/ListJobExecutions")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListJobExecutionsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.appendPathParam("executions")
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendEnumQueryParam("jobType", request.getJobType())
.appendQueryParam("subType", request.getSubType())
.appendQueryParam("parentKey", request.getParentKey())
.appendQueryParam("timeStart", request.getTimeStart())
.appendQueryParam("timeEnd", request.getTimeEnd())
.appendQueryParam("errorCode", request.getErrorCode())
.appendQueryParam("errorMessage", request.getErrorMessage())
.appendQueryParam("processKey", request.getProcessKey())
.appendQueryParam("externalUrl", request.getExternalUrl())
.appendQueryParam("eventKey", request.getEventKey())
.appendQueryParam("dataEntityKey", request.getDataEntityKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.JobExecutionCollection.class,
ListJobExecutionsResponse.Builder::jobExecutionCollection)
.handleResponseHeaderString(
"opc-request-id", ListJobExecutionsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListJobExecutionsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListJobLogsResponse listJobLogs(ListJobLogsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank");
return clientCall(request, ListJobLogsResponse::builder)
.logger(LOG, "listJobLogs")
.serviceDetails(
"DataCatalog",
"ListJobLogs",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobLogCollection/ListJobLogs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListJobLogsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.appendPathParam("executions")
.appendPathParam(request.getJobExecutionKey())
.appendPathParam("logs")
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("severity", request.getSeverity())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.JobLogCollection.class,
ListJobLogsResponse.Builder::jobLogCollection)
.handleResponseHeaderString(
"opc-request-id", ListJobLogsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListJobLogsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListJobMetricsResponse listJobMetrics(ListJobMetricsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank");
return clientCall(request, ListJobMetricsResponse::builder)
.logger(LOG, "listJobMetrics")
.serviceDetails(
"DataCatalog",
"ListJobMetrics",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobMetricCollection/ListJobMetrics")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListJobMetricsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.appendPathParam("executions")
.appendPathParam(request.getJobExecutionKey())
.appendPathParam("metrics")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendQueryParam("category", request.getCategory())
.appendQueryParam("subCategory", request.getSubCategory())
.appendQueryParam("unit", request.getUnit())
.appendQueryParam("value", request.getValue())
.appendQueryParam("batchKey", request.getBatchKey())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("timeInserted", request.getTimeInserted())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.JobMetricCollection.class,
ListJobMetricsResponse.Builder::jobMetricCollection)
.handleResponseHeaderString(
"opc-request-id", ListJobMetricsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListJobMetricsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListJobsResponse listJobs(ListJobsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ListJobsResponse::builder)
.logger(LOG, "listJobs")
.serviceDetails(
"DataCatalog",
"ListJobs",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobCollection/ListJobs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListJobsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendEnumQueryParam("jobType", request.getJobType())
.appendQueryParam("jobDefinitionKey", request.getJobDefinitionKey())
.appendQueryParam("dataAssetKey", request.getDataAssetKey())
.appendQueryParam("glossaryKey", request.getGlossaryKey())
.appendQueryParam("scheduleCronExpression", request.getScheduleCronExpression())
.appendQueryParam("timeScheduleBegin", request.getTimeScheduleBegin())
.appendQueryParam("timeScheduleEnd", request.getTimeScheduleEnd())
.appendEnumQueryParam("scheduleType", request.getScheduleType())
.appendQueryParam("connectionKey", request.getConnectionKey())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendQueryParam("executionCount", request.getExecutionCount())
.appendQueryParam("timeOfLatestExecution", request.getTimeOfLatestExecution())
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.JobCollection.class,
ListJobsResponse.Builder::jobCollection)
.handleResponseHeaderString(
"opc-request-id", ListJobsResponse.Builder::opcRequestId)
.handleResponseHeaderString("opc-next-page", ListJobsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListMetastoresResponse listMetastores(ListMetastoresRequest request) {
Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
return clientCall(request, ListMetastoresResponse::builder)
.logger(LOG, "listMetastores")
.serviceDetails(
"DataCatalog",
"ListMetastores",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/MetastoreSummary/ListMetastores")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListMetastoresRequest::builder)
.basePath("/20190325")
.appendPathParam("metastores")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBodyList(
com.oracle.bmc.datacatalog.model.MetastoreSummary.class,
ListMetastoresResponse.Builder::items)
.handleResponseHeaderString(
"opc-request-id", ListMetastoresResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListMetastoresResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListNamespacesResponse listNamespaces(ListNamespacesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ListNamespacesResponse::builder)
.logger(LOG, "listNamespaces")
.serviceDetails(
"DataCatalog",
"ListNamespaces",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Namespace/ListNamespaces")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListNamespacesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.NamespaceCollection.class,
ListNamespacesResponse.Builder::namespaceCollection)
.handleResponseHeaderString(
"opc-request-id", ListNamespacesResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListNamespacesResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListPatternsResponse listPatterns(ListPatternsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ListPatternsResponse::builder)
.logger(LOG, "listPatterns")
.serviceDetails(
"DataCatalog",
"ListPatterns",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Pattern/ListPatterns")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListPatternsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("patterns")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.PatternCollection.class,
ListPatternsResponse.Builder::patternCollection)
.handleResponseHeaderString(
"opc-request-id", ListPatternsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListPatternsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListRulesResponse listRules(ListRulesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
return clientCall(request, ListRulesResponse::builder)
.logger(LOG, "listRules")
.serviceDetails(
"DataCatalog",
"ListRules",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/RuleSummary/ListRules")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListRulesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("rules")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("ruleType", request.getRuleType())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendEnumQueryParam("originType", request.getOriginType())
.appendQueryParam("externalKey", request.getExternalKey())
.appendQueryParam("timeCreated", request.getTimeCreated())
.appendQueryParam("timeUpdated", request.getTimeUpdated())
.appendQueryParam("createdById", request.getCreatedById())
.appendQueryParam("updatedById", request.getUpdatedById())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.RuleCollection.class,
ListRulesResponse.Builder::ruleCollection)
.handleResponseHeaderString(
"opc-request-id", ListRulesResponse.Builder::opcRequestId)
.handleResponseHeaderString("opc-next-page", ListRulesResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListTagsResponse listTags(ListTagsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ListTagsResponse::builder)
.logger(LOG, "listTags")
.serviceDetails(
"DataCatalog",
"ListTags",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Term/ListTags")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListTagsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("tags")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.TermCollection.class,
ListTagsResponse.Builder::termCollection)
.handleResponseHeaderString(
"opc-request-id", ListTagsResponse.Builder::opcRequestId)
.handleResponseHeaderString("opc-next-page", ListTagsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListTermRelationshipsResponse listTermRelationships(
ListTermRelationshipsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Validate.notBlank(request.getTermKey(), "termKey must not be blank");
return clientCall(request, ListTermRelationshipsResponse::builder)
.logger(LOG, "listTermRelationships")
.serviceDetails(
"DataCatalog",
"ListTermRelationships",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/TermRelationship/ListTermRelationships")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListTermRelationshipsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.appendPathParam(request.getTermKey())
.appendPathParam("termRelationships")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.TermRelationshipCollection.class,
ListTermRelationshipsResponse.Builder::termRelationshipCollection)
.handleResponseHeaderString(
"opc-request-id", ListTermRelationshipsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListTermRelationshipsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListTermsResponse listTerms(ListTermsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
return clientCall(request, ListTermsResponse::builder)
.logger(LOG, "listTerms")
.serviceDetails(
"DataCatalog",
"ListTerms",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Term/ListTerms")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListTermsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("displayNameContains", request.getDisplayNameContains())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("parentTermKey", request.getParentTermKey())
.appendQueryParam(
"isAllowedToHaveChildTerms", request.getIsAllowedToHaveChildTerms())
.appendEnumQueryParam("workflowStatus", request.getWorkflowStatus())
.appendQueryParam("path", request.getPath())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.TermCollection.class,
ListTermsResponse.Builder::termCollection)
.handleResponseHeaderString(
"opc-request-id", ListTermsResponse.Builder::opcRequestId)
.handleResponseHeaderString("opc-next-page", ListTermsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListTypesResponse listTypes(ListTypesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ListTypesResponse::builder)
.logger(LOG, "listTypes")
.serviceDetails(
"DataCatalog",
"ListTypes",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/TypeCollection/ListTypes")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListTypesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("types")
.appendQueryParam("name", request.getName())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("isInternal", request.getIsInternal())
.appendQueryParam("isTag", request.getIsTag())
.appendQueryParam("isApproved", request.getIsApproved())
.appendQueryParam("externalTypeName", request.getExternalTypeName())
.appendQueryParam("typeCategory", request.getTypeCategory())
.appendListQueryParam(
"fields",
request.getFields(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.TypeCollection.class,
ListTypesResponse.Builder::typeCollection)
.handleResponseHeaderString(
"opc-request-id", ListTypesResponse.Builder::opcRequestId)
.handleResponseHeaderString("opc-next-page", ListTypesResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ListWorkRequestErrorsResponse listWorkRequestErrors(
ListWorkRequestErrorsRequest request) {
Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank");
return clientCall(request, ListWorkRequestErrorsResponse::builder)
.logger(LOG, "listWorkRequestErrors")
.serviceDetails(
"DataCatalog",
"ListWorkRequestErrors",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/WorkRequestError/ListWorkRequestErrors")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListWorkRequestErrorsRequest::builder)
.basePath("/20190325")
.appendPathParam("workRequests")
.appendPathParam(request.getWorkRequestId())
.appendPathParam("errors")
.appendQueryParam("page", request.getPage())
.appendQueryParam("limit", request.getLimit())
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBodyList(
com.oracle.bmc.datacatalog.model.WorkRequestError.class,
ListWorkRequestErrorsResponse.Builder::items)
.handleResponseHeaderString(
"opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage)
.handleResponseHeaderString(
"opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) {
Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank");
return clientCall(request, ListWorkRequestLogsResponse::builder)
.logger(LOG, "listWorkRequestLogs")
.serviceDetails(
"DataCatalog",
"ListWorkRequestLogs",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/WorkRequestLog/ListWorkRequestLogs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListWorkRequestLogsRequest::builder)
.basePath("/20190325")
.appendPathParam("workRequests")
.appendPathParam(request.getWorkRequestId())
.appendPathParam("logs")
.appendQueryParam("page", request.getPage())
.appendQueryParam("limit", request.getLimit())
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBodyList(
com.oracle.bmc.datacatalog.model.WorkRequestLog.class,
ListWorkRequestLogsResponse.Builder::items)
.handleResponseHeaderString(
"opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage)
.handleResponseHeaderString(
"opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) {
Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
return clientCall(request, ListWorkRequestsResponse::builder)
.logger(LOG, "listWorkRequests")
.serviceDetails(
"DataCatalog",
"ListWorkRequests",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/WorkRequest/ListWorkRequests")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListWorkRequestsRequest::builder)
.basePath("/20190325")
.appendPathParam("workRequests")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendQueryParam("page", request.getPage())
.appendQueryParam("limit", request.getLimit())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBodyList(
com.oracle.bmc.datacatalog.model.WorkRequest.class,
ListWorkRequestsResponse.Builder::items)
.handleResponseHeaderString(
"opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ObjectStatsResponse objectStats(ObjectStatsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, ObjectStatsResponse::builder)
.logger(LOG, "objectStats")
.serviceDetails(
"DataCatalog",
"ObjectStats",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/ObjectStats")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ObjectStatsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("objectStats")
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(String.class, ObjectStatsResponse.Builder::value)
.handleResponseHeaderString(
"opc-request-id", ObjectStatsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ObjectStatsResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ParseConnectionResponse parseConnection(ParseConnectionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getParseConnectionDetails(), "parseConnectionDetails is required");
return clientCall(request, ParseConnectionResponse::builder)
.logger(LOG, "parseConnection")
.serviceDetails(
"DataCatalog",
"ParseConnection",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/ParseConnection")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ParseConnectionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("actions")
.appendPathParam("parseConnection")
.appendQueryParam("connectionKey", request.getConnectionKey())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBodyList(
com.oracle.bmc.datacatalog.model.ConnectionAliasSummary.class,
ParseConnectionResponse.Builder::items)
.handleResponseHeaderString("etag", ParseConnectionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", ParseConnectionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ProcessRecommendationResponse processRecommendation(
ProcessRecommendationRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(
request.getProcessRecommendationDetails(),
"processRecommendationDetails is required");
return clientCall(request, ProcessRecommendationResponse::builder)
.logger(LOG, "processRecommendation")
.serviceDetails(
"DataCatalog",
"ProcessRecommendation",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/ProcessRecommendation")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ProcessRecommendationRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("processRecommendation")
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.ProcessRecommendationDetails.class,
ProcessRecommendationResponse.Builder::processRecommendationDetails)
.handleResponseHeaderString("etag", ProcessRecommendationResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", ProcessRecommendationResponse.Builder::opcRequestId)
.callSync();
}
@Override
public RecommendationsResponse recommendations(RecommendationsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(request.getRecommendationType(), "recommendationType is required");
Objects.requireNonNull(request.getSourceObjectKey(), "sourceObjectKey is required");
Objects.requireNonNull(request.getSourceObjectType(), "sourceObjectType is required");
return clientCall(request, RecommendationsResponse::builder)
.logger(LOG, "recommendations")
.serviceDetails(
"DataCatalog",
"Recommendations",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/Recommendations")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(RecommendationsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("getRecommendations")
.appendListQueryParam(
"recommendationType",
request.getRecommendationType(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.appendQueryParam("sourceObjectKey", request.getSourceObjectKey())
.appendEnumQueryParam("sourceObjectType", request.getSourceObjectType())
.appendEnumQueryParam("recommendationStatus", request.getRecommendationStatus())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.datacatalog.model.RecommendationCollection.class,
RecommendationsResponse.Builder::recommendationCollection)
.handleResponseHeaderString(
"opc-request-id", RecommendationsResponse.Builder::opcRequestId)
.callSync();
}
@Override
public RemoveCatalogLockResponse removeCatalogLock(RemoveCatalogLockRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(
request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required");
return clientCall(request, RemoveCatalogLockResponse::builder)
.logger(LOG, "removeCatalogLock")
.serviceDetails(
"DataCatalog",
"RemoveCatalogLock",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/RemoveCatalogLock")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(RemoveCatalogLockRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("removeLock")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Catalog.class,
RemoveCatalogLockResponse.Builder::catalog)
.handleResponseHeaderString(
"opc-request-id", RemoveCatalogLockResponse.Builder::opcRequestId)
.handleResponseHeaderString("etag", RemoveCatalogLockResponse.Builder::etag)
.callSync();
}
@Override
public RemoveCatalogPrivateEndpointLockResponse removeCatalogPrivateEndpointLock(
RemoveCatalogPrivateEndpointLockRequest request) {
Validate.notBlank(
request.getCatalogPrivateEndpointId(),
"catalogPrivateEndpointId must not be blank");
Objects.requireNonNull(
request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required");
return clientCall(request, RemoveCatalogPrivateEndpointLockResponse::builder)
.logger(LOG, "removeCatalogPrivateEndpointLock")
.serviceDetails(
"DataCatalog",
"RemoveCatalogPrivateEndpointLock",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CatalogPrivateEndpoint/RemoveCatalogPrivateEndpointLock")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(RemoveCatalogPrivateEndpointLockRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogPrivateEndpoints")
.appendPathParam(request.getCatalogPrivateEndpointId())
.appendPathParam("actions")
.appendPathParam("removeLock")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.CatalogPrivateEndpoint.class,
RemoveCatalogPrivateEndpointLockResponse.Builder::catalogPrivateEndpoint)
.handleResponseHeaderString(
"opc-request-id",
RemoveCatalogPrivateEndpointLockResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"etag", RemoveCatalogPrivateEndpointLockResponse.Builder::etag)
.callSync();
}
@Override
public RemoveDataSelectorPatternsResponse removeDataSelectorPatterns(
RemoveDataSelectorPatternsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getDataSelectorPatternDetails(), "dataSelectorPatternDetails is required");
return clientCall(request, RemoveDataSelectorPatternsResponse::builder)
.logger(LOG, "removeDataSelectorPatterns")
.serviceDetails(
"DataCatalog",
"RemoveDataSelectorPatterns",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/RemoveDataSelectorPatterns")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(RemoveDataSelectorPatternsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("actions")
.appendPathParam("removeDataSelectorPatterns")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.DataAsset.class,
RemoveDataSelectorPatternsResponse.Builder::dataAsset)
.handleResponseHeaderString(
"etag", RemoveDataSelectorPatternsResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", RemoveDataSelectorPatternsResponse.Builder::opcRequestId)
.callSync();
}
@Override
public RemoveMetastoreLockResponse removeMetastoreLock(RemoveMetastoreLockRequest request) {
Validate.notBlank(request.getMetastoreId(), "metastoreId must not be blank");
Objects.requireNonNull(
request.getRemoveResourceLockDetails(), "removeResourceLockDetails is required");
return clientCall(request, RemoveMetastoreLockResponse::builder)
.logger(LOG, "removeMetastoreLock")
.serviceDetails(
"DataCatalog",
"RemoveMetastoreLock",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Metastore/RemoveMetastoreLock")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(RemoveMetastoreLockRequest::builder)
.basePath("/20190325")
.appendPathParam("metastores")
.appendPathParam(request.getMetastoreId())
.appendPathParam("actions")
.appendPathParam("removeLock")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Metastore.class,
RemoveMetastoreLockResponse.Builder::metastore)
.handleResponseHeaderString(
"opc-request-id", RemoveMetastoreLockResponse.Builder::opcRequestId)
.handleResponseHeaderString("etag", RemoveMetastoreLockResponse.Builder::etag)
.callSync();
}
@Override
public SearchCriteriaResponse searchCriteria(SearchCriteriaRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, SearchCriteriaResponse::builder)
.logger(LOG, "searchCriteria")
.serviceDetails(
"DataCatalog",
"SearchCriteria",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/SearchResult/SearchCriteria")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(SearchCriteriaRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("search")
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("name", request.getName())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("timeout", request.getTimeout())
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.SearchResultCollection.class,
SearchCriteriaResponse.Builder::searchResultCollection)
.handleResponseHeaderString(
"opc-request-id", SearchCriteriaResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", SearchCriteriaResponse.Builder::opcNextPage)
.callSync();
}
@Override
public SuggestMatchesResponse suggestMatches(SuggestMatchesRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(request.getInputText(), "inputText is required");
return clientCall(request, SuggestMatchesResponse::builder)
.logger(LOG, "suggestMatches")
.serviceDetails(
"DataCatalog",
"SuggestMatches",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/SuggestResults/SuggestMatches")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(SuggestMatchesRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("suggest")
.appendQueryParam("timeout", request.getTimeout())
.appendQueryParam("inputText", request.getInputText())
.appendQueryParam("limit", request.getLimit())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.SuggestResults.class,
SuggestMatchesResponse.Builder::suggestResults)
.handleResponseHeaderString(
"opc-request-id", SuggestMatchesResponse.Builder::opcRequestId)
.callSync();
}
@Override
public SynchronousExportDataAssetResponse synchronousExportDataAsset(
SynchronousExportDataAssetRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getSynchronousExportDataAssetDetails(),
"synchronousExportDataAssetDetails is required");
Objects.requireNonNull(request.getExportType(), "exportType is required");
return clientCall(request, SynchronousExportDataAssetResponse::builder)
.logger(LOG, "synchronousExportDataAsset")
.serviceDetails(
"DataCatalog",
"SynchronousExportDataAsset",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/SynchronousExportDataAsset")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(SynchronousExportDataAssetRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("actions")
.appendPathParam("synchronousExport")
.appendListQueryParam(
"exportType",
request.getExportType(),
com.oracle.bmc.util.internal.CollectionFormatType.Multi)
.accept("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
java.io.InputStream.class,
SynchronousExportDataAssetResponse.Builder::inputStream)
.handleResponseHeaderString(
"opc-request-id", SynchronousExportDataAssetResponse.Builder::opcRequestId)
.callSync();
}
@Override
public TestConnectionResponse testConnection(TestConnectionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank");
return clientCall(request, TestConnectionResponse::builder)
.logger(LOG, "testConnection")
.serviceDetails(
"DataCatalog",
"TestConnection",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Connection/TestConnection")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(TestConnectionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("connections")
.appendPathParam(request.getConnectionKey())
.appendPathParam("actions")
.appendPathParam("test")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.operationUsesDefaultRetries()
.handleBody(
com.oracle.bmc.datacatalog.model.ValidateConnectionResult.class,
TestConnectionResponse.Builder::validateConnectionResult)
.handleResponseHeaderString("etag", TestConnectionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", TestConnectionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateAttributeResponse updateAttribute(UpdateAttributeRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank");
Objects.requireNonNull(
request.getUpdateAttributeDetails(), "updateAttributeDetails is required");
return clientCall(request, UpdateAttributeResponse::builder)
.logger(LOG, "updateAttribute")
.serviceDetails(
"DataCatalog",
"UpdateAttribute",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Attribute/UpdateAttribute")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateAttributeRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.appendPathParam("attributes")
.appendPathParam(request.getAttributeKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Attribute.class,
UpdateAttributeResponse.Builder::attribute)
.handleResponseHeaderString("etag", UpdateAttributeResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateAttributeResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateCatalogResponse updateCatalog(UpdateCatalogRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Objects.requireNonNull(
request.getUpdateCatalogDetails(), "updateCatalogDetails is required");
return clientCall(request, UpdateCatalogResponse::builder)
.logger(LOG, "updateCatalog")
.serviceDetails(
"DataCatalog",
"UpdateCatalog",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/UpdateCatalog")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateCatalogRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Catalog.class,
UpdateCatalogResponse.Builder::catalog)
.handleResponseHeaderString("etag", UpdateCatalogResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateCatalogResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateCatalogPrivateEndpointResponse updateCatalogPrivateEndpoint(
UpdateCatalogPrivateEndpointRequest request) {
Validate.notBlank(
request.getCatalogPrivateEndpointId(),
"catalogPrivateEndpointId must not be blank");
Objects.requireNonNull(
request.getUpdateCatalogPrivateEndpointDetails(),
"updateCatalogPrivateEndpointDetails is required");
return clientCall(request, UpdateCatalogPrivateEndpointResponse::builder)
.logger(LOG, "updateCatalogPrivateEndpoint")
.serviceDetails(
"DataCatalog",
"UpdateCatalogPrivateEndpoint",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CatalogPrivateEndpoint/UpdateCatalogPrivateEndpoint")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateCatalogPrivateEndpointRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogPrivateEndpoints")
.appendPathParam(request.getCatalogPrivateEndpointId())
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-request-id",
UpdateCatalogPrivateEndpointResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-work-request-id",
UpdateCatalogPrivateEndpointResponse.Builder::opcWorkRequestId)
.callSync();
}
@Override
public UpdateConnectionResponse updateConnection(UpdateConnectionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank");
Objects.requireNonNull(
request.getUpdateConnectionDetails(), "updateConnectionDetails is required");
return clientCall(request, UpdateConnectionResponse::builder)
.logger(LOG, "updateConnection")
.serviceDetails(
"DataCatalog",
"UpdateConnection",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Connection/UpdateConnection")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateConnectionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("connections")
.appendPathParam(request.getConnectionKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Connection.class,
UpdateConnectionResponse.Builder::connection)
.handleResponseHeaderString("etag", UpdateConnectionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateConnectionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateCustomPropertyResponse updateCustomProperty(UpdateCustomPropertyRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getNamespaceId(), "namespaceId must not be blank");
Validate.notBlank(request.getCustomPropertyKey(), "customPropertyKey must not be blank");
Objects.requireNonNull(
request.getUpdateCustomPropertyDetails(),
"updateCustomPropertyDetails is required");
return clientCall(request, UpdateCustomPropertyResponse::builder)
.logger(LOG, "updateCustomProperty")
.serviceDetails(
"DataCatalog",
"UpdateCustomProperty",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/CustomProperty/UpdateCustomProperty")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateCustomPropertyRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.appendPathParam(request.getNamespaceId())
.appendPathParam("customProperties")
.appendPathParam(request.getCustomPropertyKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.CustomProperty.class,
UpdateCustomPropertyResponse.Builder::customProperty)
.handleResponseHeaderString("etag", UpdateCustomPropertyResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateCustomPropertyResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateDataAssetResponse updateDataAsset(UpdateDataAssetRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getUpdateDataAssetDetails(), "updateDataAssetDetails is required");
return clientCall(request, UpdateDataAssetResponse::builder)
.logger(LOG, "updateDataAsset")
.serviceDetails(
"DataCatalog",
"UpdateDataAsset",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/UpdateDataAsset")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateDataAssetRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.DataAsset.class,
UpdateDataAssetResponse.Builder::dataAsset)
.handleResponseHeaderString("etag", UpdateDataAssetResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateDataAssetResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateEntityResponse updateEntity(UpdateEntityRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getEntityKey(), "entityKey must not be blank");
Objects.requireNonNull(request.getUpdateEntityDetails(), "updateEntityDetails is required");
return clientCall(request, UpdateEntityResponse::builder)
.logger(LOG, "updateEntity")
.serviceDetails(
"DataCatalog",
"UpdateEntity",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Entity/UpdateEntity")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateEntityRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("entities")
.appendPathParam(request.getEntityKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Entity.class,
UpdateEntityResponse.Builder::entity)
.handleResponseHeaderString("etag", UpdateEntityResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateEntityResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateFolderResponse updateFolder(UpdateFolderRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getFolderKey(), "folderKey must not be blank");
Objects.requireNonNull(request.getUpdateFolderDetails(), "updateFolderDetails is required");
return clientCall(request, UpdateFolderResponse::builder)
.logger(LOG, "updateFolder")
.serviceDetails(
"DataCatalog",
"UpdateFolder",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Folder/UpdateFolder")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateFolderRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("folders")
.appendPathParam(request.getFolderKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Folder.class,
UpdateFolderResponse.Builder::folder)
.handleResponseHeaderString("etag", UpdateFolderResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateFolderResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateGlossaryResponse updateGlossary(UpdateGlossaryRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Objects.requireNonNull(
request.getUpdateGlossaryDetails(), "updateGlossaryDetails is required");
return clientCall(request, UpdateGlossaryResponse::builder)
.logger(LOG, "updateGlossary")
.serviceDetails(
"DataCatalog",
"UpdateGlossary",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Glossary/UpdateGlossary")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateGlossaryRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Glossary.class,
UpdateGlossaryResponse.Builder::glossary)
.handleResponseHeaderString("etag", UpdateGlossaryResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateGlossaryResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateJobResponse updateJob(UpdateJobRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobKey(), "jobKey must not be blank");
Objects.requireNonNull(request.getUpdateJobDetails(), "updateJobDetails is required");
return clientCall(request, UpdateJobResponse::builder)
.logger(LOG, "updateJob")
.serviceDetails(
"DataCatalog",
"UpdateJob",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Job/UpdateJob")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateJobRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobs")
.appendPathParam(request.getJobKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Job.class, UpdateJobResponse.Builder::job)
.handleResponseHeaderString("etag", UpdateJobResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateJobResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateJobDefinitionResponse updateJobDefinition(UpdateJobDefinitionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getJobDefinitionKey(), "jobDefinitionKey must not be blank");
Objects.requireNonNull(
request.getUpdateJobDefinitionDetails(), "updateJobDefinitionDetails is required");
return clientCall(request, UpdateJobDefinitionResponse::builder)
.logger(LOG, "updateJobDefinition")
.serviceDetails(
"DataCatalog",
"UpdateJobDefinition",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/JobDefinition/UpdateJobDefinition")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateJobDefinitionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("jobDefinitions")
.appendPathParam(request.getJobDefinitionKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.JobDefinition.class,
UpdateJobDefinitionResponse.Builder::jobDefinition)
.handleResponseHeaderString("etag", UpdateJobDefinitionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateJobDefinitionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateMetastoreResponse updateMetastore(UpdateMetastoreRequest request) {
Validate.notBlank(request.getMetastoreId(), "metastoreId must not be blank");
Objects.requireNonNull(
request.getUpdateMetastoreDetails(), "updateMetastoreDetails is required");
return clientCall(request, UpdateMetastoreResponse::builder)
.logger(LOG, "updateMetastore")
.serviceDetails(
"DataCatalog",
"UpdateMetastore",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Metastore/UpdateMetastore")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateMetastoreRequest::builder)
.basePath("/20190325")
.appendPathParam("metastores")
.appendPathParam(request.getMetastoreId())
.appendQueryParam("isLockOverride", request.getIsLockOverride())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Metastore.class,
UpdateMetastoreResponse.Builder::metastore)
.handleResponseHeaderString("etag", UpdateMetastoreResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateMetastoreResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateNamespaceResponse updateNamespace(UpdateNamespaceRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getNamespaceId(), "namespaceId must not be blank");
Objects.requireNonNull(
request.getUpdateNamespaceDetails(), "updateNamespaceDetails is required");
return clientCall(request, UpdateNamespaceResponse::builder)
.logger(LOG, "updateNamespace")
.serviceDetails(
"DataCatalog",
"UpdateNamespace",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Namespace/UpdateNamespace")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateNamespaceRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("namespaces")
.appendPathParam(request.getNamespaceId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Namespace.class,
UpdateNamespaceResponse.Builder::namespace)
.handleResponseHeaderString("etag", UpdateNamespaceResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateNamespaceResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdatePatternResponse updatePattern(UpdatePatternRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getPatternKey(), "patternKey must not be blank");
Objects.requireNonNull(
request.getUpdatePatternDetails(), "updatePatternDetails is required");
return clientCall(request, UpdatePatternResponse::builder)
.logger(LOG, "updatePattern")
.serviceDetails(
"DataCatalog",
"UpdatePattern",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Pattern/UpdatePattern")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdatePatternRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("patterns")
.appendPathParam(request.getPatternKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Pattern.class,
UpdatePatternResponse.Builder::pattern)
.handleResponseHeaderString("etag", UpdatePatternResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdatePatternResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateTermResponse updateTerm(UpdateTermRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Validate.notBlank(request.getTermKey(), "termKey must not be blank");
Objects.requireNonNull(request.getUpdateTermDetails(), "updateTermDetails is required");
return clientCall(request, UpdateTermResponse::builder)
.logger(LOG, "updateTerm")
.serviceDetails(
"DataCatalog",
"UpdateTerm",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Term/UpdateTerm")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateTermRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.appendPathParam(request.getTermKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Term.class,
UpdateTermResponse.Builder::term)
.handleResponseHeaderString("etag", UpdateTermResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateTermResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UpdateTermRelationshipResponse updateTermRelationship(
UpdateTermRelationshipRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank");
Validate.notBlank(request.getTermKey(), "termKey must not be blank");
Validate.notBlank(
request.getTermRelationshipKey(), "termRelationshipKey must not be blank");
Objects.requireNonNull(
request.getUpdateTermRelationshipDetails(),
"updateTermRelationshipDetails is required");
return clientCall(request, UpdateTermRelationshipResponse::builder)
.logger(LOG, "updateTermRelationship")
.serviceDetails(
"DataCatalog",
"UpdateTermRelationship",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/TermRelationship/UpdateTermRelationship")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateTermRelationshipRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("glossaries")
.appendPathParam(request.getGlossaryKey())
.appendPathParam("terms")
.appendPathParam(request.getTermKey())
.appendPathParam("termRelationships")
.appendPathParam(request.getTermRelationshipKey())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.TermRelationship.class,
UpdateTermRelationshipResponse.Builder::termRelationship)
.handleResponseHeaderString("etag", UpdateTermRelationshipResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdateTermRelationshipResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UploadCredentialsResponse uploadCredentials(UploadCredentialsRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank");
Objects.requireNonNull(
request.getUploadCredentialsDetails(), "uploadCredentialsDetails is required");
return clientCall(request, UploadCredentialsResponse::builder)
.logger(LOG, "uploadCredentials")
.serviceDetails(
"DataCatalog",
"UploadCredentials",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Connection/UploadCredentials")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(UploadCredentialsRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("connections")
.appendPathParam(request.getConnectionKey())
.appendPathParam("actions")
.appendPathParam("uploadCredentials")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.Connection.class,
UploadCredentialsResponse.Builder::connection)
.handleResponseHeaderString("etag", UploadCredentialsResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UploadCredentialsResponse.Builder::opcRequestId)
.callSync();
}
@Override
public UsersResponse users(UsersRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
return clientCall(request, UsersResponse::builder)
.logger(LOG, "users")
.serviceDetails(
"DataCatalog",
"Users",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Catalog/Users")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(UsersRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("actions")
.appendPathParam("users")
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
.handleBody(String.class, UsersResponse.Builder::value)
.handleResponseHeaderString("opc-request-id", UsersResponse.Builder::opcRequestId)
.handleResponseHeaderString("opc-next-page", UsersResponse.Builder::opcNextPage)
.callSync();
}
@Override
public ValidateConnectionResponse validateConnection(ValidateConnectionRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank");
Objects.requireNonNull(
request.getValidateConnectionDetails(), "validateConnectionDetails is required");
return clientCall(request, ValidateConnectionResponse::builder)
.logger(LOG, "validateConnection")
.serviceDetails(
"DataCatalog",
"ValidateConnection",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/ValidateConnection")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ValidateConnectionRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("dataAssets")
.appendPathParam(request.getDataAssetKey())
.appendPathParam("actions")
.appendPathParam("validateConnection")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.operationUsesDefaultRetries()
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.ValidateConnectionResult.class,
ValidateConnectionResponse.Builder::validateConnectionResult)
.handleResponseHeaderString("etag", ValidateConnectionResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", ValidateConnectionResponse.Builder::opcRequestId)
.callSync();
}
@Override
public ValidatePatternResponse validatePattern(ValidatePatternRequest request) {
Validate.notBlank(request.getCatalogId(), "catalogId must not be blank");
Validate.notBlank(request.getPatternKey(), "patternKey must not be blank");
Objects.requireNonNull(
request.getValidatePatternDetails(), "validatePatternDetails is required");
return clientCall(request, ValidatePatternResponse::builder)
.logger(LOG, "validatePattern")
.serviceDetails(
"DataCatalog",
"ValidatePattern",
"https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/Pattern/ValidatePattern")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ValidatePatternRequest::builder)
.basePath("/20190325")
.appendPathParam("catalogs")
.appendPathParam(request.getCatalogId())
.appendPathParam("patterns")
.appendPathParam(request.getPatternKey())
.appendPathParam("actions")
.appendPathParam("validate")
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.operationUsesDefaultRetries()
.hasBody()
.handleBody(
com.oracle.bmc.datacatalog.model.ValidatePatternResult.class,
ValidatePatternResponse.Builder::validatePatternResult)
.handleResponseHeaderString(
"opc-request-id", ValidatePatternResponse.Builder::opcRequestId)
.callSync();
}
@Override
public DataCatalogWaiters getWaiters() {
return waiters;
}
@Override
public DataCatalogPaginators getPaginators() {
return paginators;
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public DataCatalogClient(
com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) {
this(builder(), authenticationDetailsProvider, null);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public DataCatalogClient(
com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration) {
this(builder().configuration(configuration), authenticationDetailsProvider, null);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public DataCatalogClient(
com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator) {
this(
builder().configuration(configuration).clientConfigurator(clientConfigurator),
authenticationDetailsProvider,
null);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @param defaultRequestSignerFactory {@link Builder#requestSignerFactory}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public DataCatalogClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) {
this(
builder()
.configuration(configuration)
.clientConfigurator(clientConfigurator)
.requestSignerFactory(defaultRequestSignerFactory),
authenticationDetailsProvider,
null);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @param defaultRequestSignerFactory {@link Builder#requestSignerFactory}
* @param additionalClientConfigurators {@link Builder#additionalClientConfigurators}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public DataCatalogClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.List additionalClientConfigurators) {
this(
builder()
.configuration(configuration)
.clientConfigurator(clientConfigurator)
.requestSignerFactory(defaultRequestSignerFactory)
.additionalClientConfigurators(additionalClientConfigurators),
authenticationDetailsProvider,
null);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @param defaultRequestSignerFactory {@link Builder#requestSignerFactory}
* @param additionalClientConfigurators {@link Builder#additionalClientConfigurators}
* @param endpoint {@link Builder#endpoint}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public DataCatalogClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.List additionalClientConfigurators,
String endpoint) {
this(
builder()
.configuration(configuration)
.clientConfigurator(clientConfigurator)
.requestSignerFactory(defaultRequestSignerFactory)
.additionalClientConfigurators(additionalClientConfigurators)
.endpoint(endpoint),
authenticationDetailsProvider,
null);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @param defaultRequestSignerFactory {@link Builder#requestSignerFactory}
* @param additionalClientConfigurators {@link Builder#additionalClientConfigurators}
* @param endpoint {@link Builder#endpoint}
* @param signingStrategyRequestSignerFactories {@link
* Builder#signingStrategyRequestSignerFactories}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public DataCatalogClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.Map<
com.oracle.bmc.http.signing.SigningStrategy,
com.oracle.bmc.http.signing.RequestSignerFactory>
signingStrategyRequestSignerFactories,
java.util.List additionalClientConfigurators,
String endpoint) {
this(
builder()
.configuration(configuration)
.clientConfigurator(clientConfigurator)
.requestSignerFactory(defaultRequestSignerFactory)
.additionalClientConfigurators(additionalClientConfigurators)
.endpoint(endpoint)
.signingStrategyRequestSignerFactories(
signingStrategyRequestSignerFactories),
authenticationDetailsProvider,
null);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @param defaultRequestSignerFactory {@link Builder#requestSignerFactory}
* @param additionalClientConfigurators {@link Builder#additionalClientConfigurators}
* @param endpoint {@link Builder#endpoint}
* @param signingStrategyRequestSignerFactories {@link
* Builder#signingStrategyRequestSignerFactories}
* @param executorService {@link Builder#executorService}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public DataCatalogClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.Map<
com.oracle.bmc.http.signing.SigningStrategy,
com.oracle.bmc.http.signing.RequestSignerFactory>
signingStrategyRequestSignerFactories,
java.util.List additionalClientConfigurators,
String endpoint,
java.util.concurrent.ExecutorService executorService) {
this(
builder()
.configuration(configuration)
.clientConfigurator(clientConfigurator)
.requestSignerFactory(defaultRequestSignerFactory)
.additionalClientConfigurators(additionalClientConfigurators)
.endpoint(endpoint)
.signingStrategyRequestSignerFactories(
signingStrategyRequestSignerFactories),
authenticationDetailsProvider,
executorService);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy