Class WatsonxData
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.BaseService
-
- com.ibm.cloud.watsonxdata.watsonx_data.v1.WatsonxData
-
public class WatsonxData extends com.ibm.cloud.sdk.core.service.BaseService
This is the Public API for IBM watsonx.data. API Version: SaaS-GA-1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_SERVICE_NAME
Default service name used when configuring the `WatsonxData` client.static java.lang.String
DEFAULT_SERVICE_URL
Default service endpoint URL.
-
Constructor Summary
Constructors Constructor Description WatsonxData(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `WatsonxData` client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
activateBucket(ActivateBucketOptions activateBucketOptions)
Active bucket.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
addMetastoreToEngine(AddMetastoreToEngineOptions addMetastoreToEngineOptions)
Add catalog to engine.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
createBucketUsers(CreateBucketUsersOptions createBucketUsersOptions)
Grant users and groups permission to the bucket.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
createCatalogUsers(CreateCatalogUsersOptions createCatalogUsersOptions)
Grant users and groups permission to the catalog.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
createDatabaseCatalog(CreateDatabaseCatalogOptions createDatabaseCatalogOptions)
Add/Create database.com.ibm.cloud.sdk.core.http.ServiceCall<CreateDataPolicyCreatedBody>
createDataPolicy(CreateDataPolicyOptions createDataPolicyOptions)
Create new data policy.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
createDbConnUsers(CreateDbConnUsersOptions createDbConnUsersOptions)
Grant users and groups permission to the db connection.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
createEngine(CreateEngineOptions createEngineOptions)
Create engine.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
createEngineUsers(CreateEngineUsersOptions createEngineUsersOptions)
Grant permission to the engine.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
createMetastoreUsers(CreateMetastoreUsersOptions createMetastoreUsersOptions)
Grant users and groups permission to the metastore.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
createSchema(CreateSchemaOptions createSchemaOptions)
Create schema.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
deactivateBucket(DeactivateBucketOptions deactivateBucketOptions)
Deactivate bucket.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteBucketUsers(DeleteBucketUsersOptions deleteBucketUsersOptions)
Revoke permission to access bucket.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteCatalogUsers(DeleteCatalogUsersOptions deleteCatalogUsersOptions)
Revoke multiple users and groups permission to access catalog.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteDatabaseCatalog(DeleteDatabaseCatalogOptions deleteDatabaseCatalogOptions)
Delete database.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteDataPolicies()
Revoke data policy access management policy.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteDataPolicies(DeleteDataPoliciesOptions deleteDataPoliciesOptions)
Revoke data policy access management policy.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteDataPolicy(DeleteDataPolicyOptions deleteDataPolicyOptions)
Revoke data policy access management policy.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteDbConnUsers(DeleteDbConnUsersOptions deleteDbConnUsersOptions)
Revoke permission to access db connection.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteEngine(DeleteEngineOptions deleteEngineOptions)
Delete engine.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteEngineUsers(DeleteEngineUsersOptions deleteEngineUsersOptions)
Revoke permission to access engine.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteMetastoreUsers(DeleteMetastoreUsersOptions deleteMetastoreUsersOptions)
Revoke permission to access metastore.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteQuery(DeleteQueryOptions deleteQueryOptions)
Delete query.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteSchema(DeleteSchemaOptions deleteSchemaOptions)
Delete schema.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
deleteTable(DeleteTableOptions deleteTableOptions)
Delete table.com.ibm.cloud.sdk.core.http.ServiceCall<EvaluationResultSchema>
evaluate()
Evaluate permission.com.ibm.cloud.sdk.core.http.ServiceCall<EvaluationResultSchema>
evaluate(EvaluateOptions evaluateOptions)
Evaluate permission.com.ibm.cloud.sdk.core.http.ServiceCall<ExplainAnalyzeStatementCreatedBody>
explainAnalyzeStatement(ExplainAnalyzeStatementOptions explainAnalyzeStatementOptions)
Explain analyze.com.ibm.cloud.sdk.core.http.ServiceCall<ExplainStatementCreatedBody>
explainStatement(ExplainStatementOptions explainStatementOptions)
Explain.com.ibm.cloud.sdk.core.http.ServiceCall<GetBucketObjectsOKBody>
getBucketObjects(GetBucketObjectsOptions getBucketObjectsOptions)
Get bucket objects.com.ibm.cloud.sdk.core.http.ServiceCall<GetBucketsOKBody>
getBuckets()
Get buckets.com.ibm.cloud.sdk.core.http.ServiceCall<GetBucketsOKBody>
getBuckets(GetBucketsOptions getBucketsOptions)
Get buckets.com.ibm.cloud.sdk.core.http.ServiceCall<GetBucketUsersSchema>
getBucketUsers(GetBucketUsersOptions getBucketUsersOptions)
Get permission in the bucket.com.ibm.cloud.sdk.core.http.ServiceCall<GetCatalogUsersSchema>
getCatalogUsers(GetCatalogUsersOptions getCatalogUsersOptions)
Get users and groups permission in the catalog.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
getDatabases()
Get databases.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
getDatabases(GetDatabasesOptions getDatabasesOptions)
Get databases.com.ibm.cloud.sdk.core.http.ServiceCall<PolicySchema>
getDataPolicy(GetDataPolicyOptions getDataPolicyOptions)
Get policy.com.ibm.cloud.sdk.core.http.ServiceCall<GetDbConnUsersSchema>
getDbConnUsers(GetDbConnUsersOptions getDbConnUsersOptions)
Get permission in the db connection.com.ibm.cloud.sdk.core.http.ServiceCall<DefaultPolicySchema>
getDefaultPolicies()
Get AMS default policies.com.ibm.cloud.sdk.core.http.ServiceCall<DefaultPolicySchema>
getDefaultPolicies(GetDefaultPoliciesOptions getDefaultPoliciesOptions)
Get AMS default policies.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
getDeployments()
Get instance details.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
getDeployments(GetDeploymentsOptions getDeploymentsOptions)
Get instance details.com.ibm.cloud.sdk.core.http.ServiceCall<GetEnginesOKBody>
getEngines()
Get engines.com.ibm.cloud.sdk.core.http.ServiceCall<GetEnginesOKBody>
getEngines(GetEnginesOptions getEnginesOptions)
Get engines.com.ibm.cloud.sdk.core.http.ServiceCall<GetEngineUsersSchema>
getEngineUsers(GetEngineUsersOptions getEngineUsersOptions)
Get permission in the engine.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
getHMS()
Get Metastore.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
getHMS(GetHMSOptions getHmsOptions)
Get Metastore.com.ibm.cloud.sdk.core.http.ServiceCall<GetMetastoresOKBody>
getMetastores()
Get Catalogs.com.ibm.cloud.sdk.core.http.ServiceCall<GetMetastoresOKBody>
getMetastores(GetMetastoresOptions getMetastoresOptions)
Get Catalogs.com.ibm.cloud.sdk.core.http.ServiceCall<GetMetastoreUsersSchema>
getMetastoreUsers(GetMetastoreUsersOptions getMetastoreUsersOptions)
Get permission in the metastore.com.ibm.cloud.sdk.core.http.ServiceCall<PolicySchemaList>
getPoliciesList()
Get policies for specific catalog in catalog_name list.com.ibm.cloud.sdk.core.http.ServiceCall<PolicySchemaList>
getPoliciesList(GetPoliciesListOptions getPoliciesListOptions)
Get policies for specific catalog in catalog_name list.com.ibm.cloud.sdk.core.http.ServiceCall<PolicyVersionResultSchema>
getPolicyVersion()
Get AMS policies version.com.ibm.cloud.sdk.core.http.ServiceCall<PolicyVersionResultSchema>
getPolicyVersion(GetPolicyVersionOptions getPolicyVersionOptions)
Get AMS policies version.com.ibm.cloud.sdk.core.http.ServiceCall<GetQueriesOKBody>
getQueries()
Get queries.com.ibm.cloud.sdk.core.http.ServiceCall<GetQueriesOKBody>
getQueries(GetQueriesOptions getQueriesOptions)
Get queries.com.ibm.cloud.sdk.core.http.ServiceCall<GetSchemasOKBody>
getSchemas(GetSchemasOptions getSchemasOptions)
Get schemas.com.ibm.cloud.sdk.core.http.ServiceCall<GetTablesOKBody>
getTables(GetTablesOptions getTablesOptions)
Get tables.com.ibm.cloud.sdk.core.http.ServiceCall<GetTableSnapshotsOKBody>
getTableSnapshots(GetTableSnapshotsOptions getTableSnapshotsOptions)
Get table snapshots.com.ibm.cloud.sdk.core.http.ServiceCall<PolicyListSchema>
listDataPolicies()
Get policies.com.ibm.cloud.sdk.core.http.ServiceCall<PolicyListSchema>
listDataPolicies(ListDataPoliciesOptions listDataPoliciesOptions)
Get policies.static WatsonxData
newInstance()
Class method which constructs an instance of the `WatsonxData` client.static WatsonxData
newInstance(java.lang.String serviceName)
Class method which constructs an instance of the `WatsonxData` client.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
parseCsv(ParseCsvOptions parseCsvOptions)
Parse CSV for table creation.com.ibm.cloud.sdk.core.http.ServiceCall<PauseEngineCreatedBody>
pauseEngine(PauseEngineOptions pauseEngineOptions)
Pause engine.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
postQuery(PostQueryOptions postQueryOptions)
Run SQL statement.com.ibm.cloud.sdk.core.http.ServiceCall<RegisterBucketCreatedBody>
registerBucket(RegisterBucketOptions registerBucketOptions)
Register bucket.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
removeCatalogFromEngine(RemoveCatalogFromEngineOptions removeCatalogFromEngineOptions)
Remove catalog from engine.com.ibm.cloud.sdk.core.http.ServiceCall<ReplaceDataPolicyCreatedBody>
replaceDataPolicy(ReplaceDataPolicyOptions replaceDataPolicyOptions)
Updates data policy.com.ibm.cloud.sdk.core.http.ServiceCall<ResumeEngineCreatedBody>
resumeEngine(ResumeEngineOptions resumeEngineOptions)
Resume engine.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
rollbackSnapshot(RollbackSnapshotOptions rollbackSnapshotOptions)
Rollback snapshot.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
saveQuery(SaveQueryOptions saveQueryOptions)
Save query.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
testLHConsole()
Readiness API.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
testLHConsole(TestLHConsoleOptions testLhConsoleOptions)
Readiness API.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>
unregisterBucket(UnregisterBucketOptions unregisterBucketOptions)
Unregister Bucket.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
updateBucket(UpdateBucketOptions updateBucketOptions)
Update bucket.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
updateBucketUsers(UpdateBucketUsersOptions updateBucketUsersOptions)
Updates user and groups permission in the bucket.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
updateCatalogUsers(UpdateCatalogUsersOptions updateCatalogUsersOptions)
Updates user and groups permission in the catalog.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
updateDatabase(UpdateDatabaseOptions updateDatabaseOptions)
Update database.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
updateDbConnUsers(UpdateDbConnUsersOptions updateDbConnUsersOptions)
Updates user and groups permission in the db connection.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
updateEngine(UpdateEngineOptions updateEngineOptions)
Update engine.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
updateEngineUsers(UpdateEngineUsersOptions updateEngineUsersOptions)
Updates user and groups permission in the engine.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
updateMetastoreUsers(UpdateMetastoreUsersOptions updateMetastoreUsersOptions)
Updates user and groups permission in the metastore.com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse>
updateQuery(UpdateQueryOptions updateQueryOptions)
Update query.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
updateTable(UpdateTableOptions updateTableOptions)
Update table.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>
uplaodCsv(UplaodCsvOptions uplaodCsvOptions)
Upload CSV for table creation.-
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final java.lang.String DEFAULT_SERVICE_NAME
Default service name used when configuring the `WatsonxData` client.- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final java.lang.String DEFAULT_SERVICE_URL
Default service endpoint URL.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WatsonxData
public WatsonxData(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `WatsonxData` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
serviceName
- the service name to be used when configuring the client instanceauthenticator
- theAuthenticator
instance to be configured for this client
-
-
Method Detail
-
newInstance
public static WatsonxData newInstance()
Class method which constructs an instance of the `WatsonxData` client. The default service name is used to configure the client instance.- Returns:
- an instance of the `WatsonxData` client using external configuration
-
newInstance
public static WatsonxData newInstance(java.lang.String serviceName)
Class method which constructs an instance of the `WatsonxData` client. The specified service name is used to configure the client instance.- Parameters:
serviceName
- the service name to be used when configuring the client instance- Returns:
- an instance of the `WatsonxData` client using external configuration
-
createDbConnUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> createDbConnUsers(CreateDbConnUsersOptions createDbConnUsersOptions)
Grant users and groups permission to the db connection. You require can_administer permission to perform this action.- Parameters:
createDbConnUsersOptions
- theCreateDbConnUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
listDataPolicies
public com.ibm.cloud.sdk.core.http.ServiceCall<PolicyListSchema> listDataPolicies(ListDataPoliciesOptions listDataPoliciesOptions)
Get policies. Get list of all data policies.- Parameters:
listDataPoliciesOptions
- theListDataPoliciesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typePolicyListSchema
-
listDataPolicies
public com.ibm.cloud.sdk.core.http.ServiceCall<PolicyListSchema> listDataPolicies()
Get policies. Get list of all data policies.- Returns:
- a
ServiceCall
with a result of typePolicyListSchema
-
createDataPolicy
public com.ibm.cloud.sdk.core.http.ServiceCall<CreateDataPolicyCreatedBody> createDataPolicy(CreateDataPolicyOptions createDataPolicyOptions)
Create new data policy. Create new data policy.- Parameters:
createDataPolicyOptions
- theCreateDataPolicyOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeCreateDataPolicyCreatedBody
-
deleteDataPolicies
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteDataPolicies(DeleteDataPoliciesOptions deleteDataPoliciesOptions)
Revoke data policy access management policy. You require catalog can_administer permission to perform this action.- Parameters:
deleteDataPoliciesOptions
- theDeleteDataPoliciesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
deleteDataPolicies
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteDataPolicies()
Revoke data policy access management policy. You require catalog can_administer permission to perform this action.- Returns:
- a
ServiceCall
with a void result
-
getEngineUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<GetEngineUsersSchema> getEngineUsers(GetEngineUsersOptions getEngineUsersOptions)
Get permission in the engine. Get users and groups permission in the engine.- Parameters:
getEngineUsersOptions
- theGetEngineUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetEngineUsersSchema
-
deleteEngineUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteEngineUsers(DeleteEngineUsersOptions deleteEngineUsersOptions)
Revoke permission to access engine. You require administrator role or can_administer permission to perform this action.- Parameters:
deleteEngineUsersOptions
- theDeleteEngineUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
updateEngineUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> updateEngineUsers(UpdateEngineUsersOptions updateEngineUsersOptions)
Updates user and groups permission in the engine. You require administrator role or can_administer permission to perform this action.- Parameters:
updateEngineUsersOptions
- theUpdateEngineUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
deleteDbConnUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteDbConnUsers(DeleteDbConnUsersOptions deleteDbConnUsersOptions)
Revoke permission to access db connection. You require can_administer permission to perform this action.- Parameters:
deleteDbConnUsersOptions
- theDeleteDbConnUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
updateDbConnUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> updateDbConnUsers(UpdateDbConnUsersOptions updateDbConnUsersOptions)
Updates user and groups permission in the db connection. You require can_administer permission to perform this action.- Parameters:
updateDbConnUsersOptions
- theUpdateDbConnUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
getDbConnUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<GetDbConnUsersSchema> getDbConnUsers(GetDbConnUsersOptions getDbConnUsersOptions)
Get permission in the db connection. Get users and groups permission in the db connection.- Parameters:
getDbConnUsersOptions
- theGetDbConnUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetDbConnUsersSchema
-
createCatalogUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> createCatalogUsers(CreateCatalogUsersOptions createCatalogUsersOptions)
Grant users and groups permission to the catalog. You require can_administer permission to perform this action.- Parameters:
createCatalogUsersOptions
- theCreateCatalogUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
getCatalogUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<GetCatalogUsersSchema> getCatalogUsers(GetCatalogUsersOptions getCatalogUsersOptions)
Get users and groups permission in the catalog. Get users and groups permission in the catalog.- Parameters:
getCatalogUsersOptions
- theGetCatalogUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetCatalogUsersSchema
-
deleteCatalogUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteCatalogUsers(DeleteCatalogUsersOptions deleteCatalogUsersOptions)
Revoke multiple users and groups permission to access catalog. You require can_administer permission to perform this action.- Parameters:
deleteCatalogUsersOptions
- theDeleteCatalogUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
updateCatalogUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> updateCatalogUsers(UpdateCatalogUsersOptions updateCatalogUsersOptions)
Updates user and groups permission in the catalog. You require can_administer permission to perform this action.- Parameters:
updateCatalogUsersOptions
- theUpdateCatalogUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
evaluate
public com.ibm.cloud.sdk.core.http.ServiceCall<EvaluationResultSchema> evaluate(EvaluateOptions evaluateOptions)
Evaluate permission. Evaluate user has permission to access resource or not.- Parameters:
evaluateOptions
- theEvaluateOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeEvaluationResultSchema
-
evaluate
public com.ibm.cloud.sdk.core.http.ServiceCall<EvaluationResultSchema> evaluate()
Evaluate permission. Evaluate user has permission to access resource or not.- Returns:
- a
ServiceCall
with a result of typeEvaluationResultSchema
-
getPoliciesList
public com.ibm.cloud.sdk.core.http.ServiceCall<PolicySchemaList> getPoliciesList(GetPoliciesListOptions getPoliciesListOptions)
Get policies for specific catalog in catalog_name list. Get policies list.- Parameters:
getPoliciesListOptions
- theGetPoliciesListOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typePolicySchemaList
-
getPoliciesList
public com.ibm.cloud.sdk.core.http.ServiceCall<PolicySchemaList> getPoliciesList()
Get policies for specific catalog in catalog_name list. Get policies list.- Returns:
- a
ServiceCall
with a result of typePolicySchemaList
-
createMetastoreUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> createMetastoreUsers(CreateMetastoreUsersOptions createMetastoreUsersOptions)
Grant users and groups permission to the metastore. You require administrator role or can_administer permission to perform this action.- Parameters:
createMetastoreUsersOptions
- theCreateMetastoreUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
getMetastoreUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<GetMetastoreUsersSchema> getMetastoreUsers(GetMetastoreUsersOptions getMetastoreUsersOptions)
Get permission in the metastore. Get users and groups permission in the metastore.- Parameters:
getMetastoreUsersOptions
- theGetMetastoreUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetMetastoreUsersSchema
-
deleteMetastoreUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteMetastoreUsers(DeleteMetastoreUsersOptions deleteMetastoreUsersOptions)
Revoke permission to access metastore. You require administrator role or can_administer permission to perform this action.- Parameters:
deleteMetastoreUsersOptions
- theDeleteMetastoreUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
updateMetastoreUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> updateMetastoreUsers(UpdateMetastoreUsersOptions updateMetastoreUsersOptions)
Updates user and groups permission in the metastore. You require administrator role or can_administer permission to perform this action.- Parameters:
updateMetastoreUsersOptions
- theUpdateMetastoreUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
createBucketUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> createBucketUsers(CreateBucketUsersOptions createBucketUsersOptions)
Grant users and groups permission to the bucket. You require can_administer permission to perform this action.- Parameters:
createBucketUsersOptions
- theCreateBucketUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
getDefaultPolicies
public com.ibm.cloud.sdk.core.http.ServiceCall<DefaultPolicySchema> getDefaultPolicies(GetDefaultPoliciesOptions getDefaultPoliciesOptions)
Get AMS default policies. Get AMS default policies.- Parameters:
getDefaultPoliciesOptions
- theGetDefaultPoliciesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDefaultPolicySchema
-
getDefaultPolicies
public com.ibm.cloud.sdk.core.http.ServiceCall<DefaultPolicySchema> getDefaultPolicies()
Get AMS default policies. Get AMS default policies.- Returns:
- a
ServiceCall
with a result of typeDefaultPolicySchema
-
getPolicyVersion
public com.ibm.cloud.sdk.core.http.ServiceCall<PolicyVersionResultSchema> getPolicyVersion(GetPolicyVersionOptions getPolicyVersionOptions)
Get AMS policies version. Get AMS policies version.- Parameters:
getPolicyVersionOptions
- theGetPolicyVersionOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typePolicyVersionResultSchema
-
getPolicyVersion
public com.ibm.cloud.sdk.core.http.ServiceCall<PolicyVersionResultSchema> getPolicyVersion()
Get AMS policies version. Get AMS policies version.- Returns:
- a
ServiceCall
with a result of typePolicyVersionResultSchema
-
getDataPolicy
public com.ibm.cloud.sdk.core.http.ServiceCall<PolicySchema> getDataPolicy(GetDataPolicyOptions getDataPolicyOptions)
Get policy. Get policy detail.- Parameters:
getDataPolicyOptions
- theGetDataPolicyOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typePolicySchema
-
replaceDataPolicy
public com.ibm.cloud.sdk.core.http.ServiceCall<ReplaceDataPolicyCreatedBody> replaceDataPolicy(ReplaceDataPolicyOptions replaceDataPolicyOptions)
Updates data policy. You require catalog can_administer permission to perform this action.- Parameters:
replaceDataPolicyOptions
- theReplaceDataPolicyOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeReplaceDataPolicyCreatedBody
-
deleteDataPolicy
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteDataPolicy(DeleteDataPolicyOptions deleteDataPolicyOptions)
Revoke data policy access management policy. You require catalog can_administer permission to perform this action.- Parameters:
deleteDataPolicyOptions
- theDeleteDataPolicyOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
createEngineUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> createEngineUsers(CreateEngineUsersOptions createEngineUsersOptions)
Grant permission to the engine. You require administrator role or can_administer permission to perform this action.- Parameters:
createEngineUsersOptions
- theCreateEngineUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
getBucketUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<GetBucketUsersSchema> getBucketUsers(GetBucketUsersOptions getBucketUsersOptions)
Get permission in the bucket. Get users and groups permission in the bucket.- Parameters:
getBucketUsersOptions
- theGetBucketUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetBucketUsersSchema
-
deleteBucketUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteBucketUsers(DeleteBucketUsersOptions deleteBucketUsersOptions)
Revoke permission to access bucket. You require can_administer permission to perform this action.- Parameters:
deleteBucketUsersOptions
- theDeleteBucketUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
updateBucketUsers
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> updateBucketUsers(UpdateBucketUsersOptions updateBucketUsersOptions)
Updates user and groups permission in the bucket. You require can_administer permission to perform this action.- Parameters:
updateBucketUsersOptions
- theUpdateBucketUsersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
getBuckets
public com.ibm.cloud.sdk.core.http.ServiceCall<GetBucketsOKBody> getBuckets(GetBucketsOptions getBucketsOptions)
Get buckets. Get list of all buckets registered to Lakehouse.- Parameters:
getBucketsOptions
- theGetBucketsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetBucketsOKBody
-
getBuckets
public com.ibm.cloud.sdk.core.http.ServiceCall<GetBucketsOKBody> getBuckets()
Get buckets. Get list of all buckets registered to Lakehouse.- Returns:
- a
ServiceCall
with a result of typeGetBucketsOKBody
-
getBucketObjects
public com.ibm.cloud.sdk.core.http.ServiceCall<GetBucketObjectsOKBody> getBucketObjects(GetBucketObjectsOptions getBucketObjectsOptions)
Get bucket objects. Fetch all objects from a given bucket.- Parameters:
getBucketObjectsOptions
- theGetBucketObjectsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetBucketObjectsOKBody
-
deactivateBucket
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> deactivateBucket(DeactivateBucketOptions deactivateBucketOptions)
Deactivate bucket. Deactivate an active bucket in Lakehouse.- Parameters:
deactivateBucketOptions
- theDeactivateBucketOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
registerBucket
public com.ibm.cloud.sdk.core.http.ServiceCall<RegisterBucketCreatedBody> registerBucket(RegisterBucketOptions registerBucketOptions)
Register bucket. Register a new bucket in Lakehouse.- Parameters:
registerBucketOptions
- theRegisterBucketOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeRegisterBucketCreatedBody
-
unregisterBucket
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> unregisterBucket(UnregisterBucketOptions unregisterBucketOptions)
Unregister Bucket. Unregister a bucket from Lakehouse.- Parameters:
unregisterBucketOptions
- theUnregisterBucketOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
updateBucket
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> updateBucket(UpdateBucketOptions updateBucketOptions)
Update bucket. Update bucket details/credentials.- Parameters:
updateBucketOptions
- theUpdateBucketOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
activateBucket
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> activateBucket(ActivateBucketOptions activateBucketOptions)
Active bucket. Activate an invalid bucket in Lakehouse.- Parameters:
activateBucketOptions
- theActivateBucketOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getDatabases
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> getDatabases(GetDatabasesOptions getDatabasesOptions)
Get databases. Get list of all databases in Lakehouse.- Parameters:
getDatabasesOptions
- theGetDatabasesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getDatabases
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> getDatabases()
Get databases. Get list of all databases in Lakehouse.- Returns:
- a
ServiceCall
with a result of typeInputStream
-
createDatabaseCatalog
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> createDatabaseCatalog(CreateDatabaseCatalogOptions createDatabaseCatalogOptions)
Add/Create database. Add or create a new database in Lakehouse.- Parameters:
createDatabaseCatalogOptions
- theCreateDatabaseCatalogOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
deleteDatabaseCatalog
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteDatabaseCatalog(DeleteDatabaseCatalogOptions deleteDatabaseCatalogOptions)
Delete database. Delete a database from Lakehouse.- Parameters:
deleteDatabaseCatalogOptions
- theDeleteDatabaseCatalogOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
updateDatabase
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> updateDatabase(UpdateDatabaseOptions updateDatabaseOptions)
Update database. Update database details.- Parameters:
updateDatabaseOptions
- theUpdateDatabaseOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
pauseEngine
public com.ibm.cloud.sdk.core.http.ServiceCall<PauseEngineCreatedBody> pauseEngine(PauseEngineOptions pauseEngineOptions)
Pause engine. Pause a running engine.- Parameters:
pauseEngineOptions
- thePauseEngineOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typePauseEngineCreatedBody
-
getEngines
public com.ibm.cloud.sdk.core.http.ServiceCall<GetEnginesOKBody> getEngines(GetEnginesOptions getEnginesOptions)
Get engines. Get all engine details.- Parameters:
getEnginesOptions
- theGetEnginesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetEnginesOKBody
-
getEngines
public com.ibm.cloud.sdk.core.http.ServiceCall<GetEnginesOKBody> getEngines()
Get engines. Get all engine details.- Returns:
- a
ServiceCall
with a result of typeGetEnginesOKBody
-
getDeployments
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> getDeployments(GetDeploymentsOptions getDeploymentsOptions)
Get instance details. Get instance details.- Parameters:
getDeploymentsOptions
- theGetDeploymentsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getDeployments
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> getDeployments()
Get instance details. Get instance details.- Returns:
- a
ServiceCall
with a result of typeInputStream
-
updateEngine
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> updateEngine(UpdateEngineOptions updateEngineOptions)
Update engine. Update engine.- Parameters:
updateEngineOptions
- theUpdateEngineOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
createEngine
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> createEngine(CreateEngineOptions createEngineOptions)
Create engine. Create a new engine.- Parameters:
createEngineOptions
- theCreateEngineOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
deleteEngine
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteEngine(DeleteEngineOptions deleteEngineOptions)
Delete engine. Delete an engine from lakehouse.- Parameters:
deleteEngineOptions
- theDeleteEngineOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
resumeEngine
public com.ibm.cloud.sdk.core.http.ServiceCall<ResumeEngineCreatedBody> resumeEngine(ResumeEngineOptions resumeEngineOptions)
Resume engine. Resume a paused engine.- Parameters:
resumeEngineOptions
- theResumeEngineOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeResumeEngineCreatedBody
-
explainAnalyzeStatement
public com.ibm.cloud.sdk.core.http.ServiceCall<ExplainAnalyzeStatementCreatedBody> explainAnalyzeStatement(ExplainAnalyzeStatementOptions explainAnalyzeStatementOptions)
Explain analyze. Return query metrics after query is complete.- Parameters:
explainAnalyzeStatementOptions
- theExplainAnalyzeStatementOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeExplainAnalyzeStatementCreatedBody
-
explainStatement
public com.ibm.cloud.sdk.core.http.ServiceCall<ExplainStatementCreatedBody> explainStatement(ExplainStatementOptions explainStatementOptions)
Explain. Explain a query statement.- Parameters:
explainStatementOptions
- theExplainStatementOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeExplainStatementCreatedBody
-
testLHConsole
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> testLHConsole(TestLHConsoleOptions testLhConsoleOptions)
Readiness API. Verify lhconsole server is up and running.- Parameters:
testLhConsoleOptions
- theTestLHConsoleOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
testLHConsole
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> testLHConsole()
Readiness API. Verify lhconsole server is up and running.- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
getMetastores
public com.ibm.cloud.sdk.core.http.ServiceCall<GetMetastoresOKBody> getMetastores(GetMetastoresOptions getMetastoresOptions)
Get Catalogs. Get list of all registered metastores.- Parameters:
getMetastoresOptions
- theGetMetastoresOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetMetastoresOKBody
-
getMetastores
public com.ibm.cloud.sdk.core.http.ServiceCall<GetMetastoresOKBody> getMetastores()
Get Catalogs. Get list of all registered metastores.- Returns:
- a
ServiceCall
with a result of typeGetMetastoresOKBody
-
getHMS
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> getHMS(GetHMSOptions getHmsOptions)
Get Metastore. Get list of all registered HMS metastores.- Parameters:
getHmsOptions
- theGetHMSOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getHMS
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> getHMS()
Get Metastore. Get list of all registered HMS metastores.- Returns:
- a
ServiceCall
with a result of typeInputStream
-
addMetastoreToEngine
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> addMetastoreToEngine(AddMetastoreToEngineOptions addMetastoreToEngineOptions)
Add catalog to engine. Associate a catalog to an engine.- Parameters:
addMetastoreToEngineOptions
- theAddMetastoreToEngineOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
removeCatalogFromEngine
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> removeCatalogFromEngine(RemoveCatalogFromEngineOptions removeCatalogFromEngineOptions)
Remove catalog from engine. Remove a catalog from an engine.- Parameters:
removeCatalogFromEngineOptions
- theRemoveCatalogFromEngineOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
saveQuery
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> saveQuery(SaveQueryOptions saveQueryOptions)
Save query. Save a new query.- Parameters:
saveQueryOptions
- theSaveQueryOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
deleteQuery
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteQuery(DeleteQueryOptions deleteQueryOptions)
Delete query. Delete a saved query.- Parameters:
deleteQueryOptions
- theDeleteQueryOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
updateQuery
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> updateQuery(UpdateQueryOptions updateQueryOptions)
Update query. Update a saved query.- Parameters:
updateQueryOptions
- theUpdateQueryOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
getQueries
public com.ibm.cloud.sdk.core.http.ServiceCall<GetQueriesOKBody> getQueries(GetQueriesOptions getQueriesOptions)
Get queries. List all saved queries.- Parameters:
getQueriesOptions
- theGetQueriesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetQueriesOKBody
-
getQueries
public com.ibm.cloud.sdk.core.http.ServiceCall<GetQueriesOKBody> getQueries()
Get queries. List all saved queries.- Returns:
- a
ServiceCall
with a result of typeGetQueriesOKBody
-
createSchema
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> createSchema(CreateSchemaOptions createSchemaOptions)
Create schema. Create a new schema.- Parameters:
createSchemaOptions
- theCreateSchemaOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
deleteSchema
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteSchema(DeleteSchemaOptions deleteSchemaOptions)
Delete schema. Delete a schema.- Parameters:
deleteSchemaOptions
- theDeleteSchemaOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
getSchemas
public com.ibm.cloud.sdk.core.http.ServiceCall<GetSchemasOKBody> getSchemas(GetSchemasOptions getSchemasOptions)
Get schemas. List schemas in catalog.- Parameters:
getSchemasOptions
- theGetSchemasOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetSchemasOKBody
-
postQuery
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> postQuery(PostQueryOptions postQueryOptions)
Run SQL statement. Using this API to run a SQL statement.- Parameters:
postQueryOptions
- thePostQueryOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
deleteTable
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteTable(DeleteTableOptions deleteTableOptions)
Delete table. Delete one or multiple tables for a given schema and catalog.- Parameters:
deleteTableOptions
- theDeleteTableOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
updateTable
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> updateTable(UpdateTableOptions updateTableOptions)
Update table. Update the given table - rename table, add/drop/rename columns.- Parameters:
updateTableOptions
- theUpdateTableOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
getTableSnapshots
public com.ibm.cloud.sdk.core.http.ServiceCall<GetTableSnapshotsOKBody> getTableSnapshots(GetTableSnapshotsOptions getTableSnapshotsOptions)
Get table snapshots. List all table snapshots.- Parameters:
getTableSnapshotsOptions
- theGetTableSnapshotsOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetTableSnapshotsOKBody
-
rollbackSnapshot
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> rollbackSnapshot(RollbackSnapshotOptions rollbackSnapshotOptions)
Rollback snapshot. Rollback to a table snapshot.- Parameters:
rollbackSnapshotOptions
- theRollbackSnapshotOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeSuccessResponse
-
getTables
public com.ibm.cloud.sdk.core.http.ServiceCall<GetTablesOKBody> getTables(GetTablesOptions getTablesOptions)
Get tables. List all tables in a schema in a catalog for a given engine.- Parameters:
getTablesOptions
- theGetTablesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeGetTablesOKBody
-
parseCsv
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> parseCsv(ParseCsvOptions parseCsvOptions)
Parse CSV for table creation. When creating a tabble, parse the CSV file.- Parameters:
parseCsvOptions
- theParseCsvOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
uplaodCsv
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> uplaodCsv(UplaodCsvOptions uplaodCsvOptions)
Upload CSV for table creation. When creating a table, upload a CSV file.- Parameters:
uplaodCsvOptions
- theUplaodCsvOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
-