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.BaseServiceThis 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.StringDEFAULT_SERVICE_NAMEDefault service name used when configuring the `WatsonxData` client.static java.lang.StringDEFAULT_SERVICE_URLDefault 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 WatsonxDatanewInstance()Class method which constructs an instance of the `WatsonxData` client.static WatsonxDatanewInstance(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- theAuthenticatorinstance 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- theCreateDbConnUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theListDataPoliciesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theCreateDataPolicyOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteDataPoliciesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theGetEngineUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteEngineUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theUpdateEngineUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteDbConnUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theUpdateDbConnUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetDbConnUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theCreateCatalogUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetCatalogUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteCatalogUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theUpdateCatalogUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theEvaluateOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theGetPoliciesListOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theCreateMetastoreUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetMetastoreUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteMetastoreUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theUpdateMetastoreUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theCreateBucketUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetDefaultPoliciesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theGetPolicyVersionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith a result of typePolicyVersionResultSchema
-
getDataPolicy
public com.ibm.cloud.sdk.core.http.ServiceCall<PolicySchema> getDataPolicy(GetDataPolicyOptions getDataPolicyOptions)
Get policy. Get policy detail.- Parameters:
getDataPolicyOptions- theGetDataPolicyOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theReplaceDataPolicyOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteDataPolicyOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theCreateEngineUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetBucketUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteBucketUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theUpdateBucketUsersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetBucketsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theGetBucketObjectsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeactivateBucketOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theRegisterBucketOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theUnregisterBucketOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
updateBucket
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> updateBucket(UpdateBucketOptions updateBucketOptions)
Update bucket. Update bucket details/credentials.- Parameters:
updateBucketOptions- theUpdateBucketOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theActivateBucketOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetDatabasesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theCreateDatabaseCatalogOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteDatabaseCatalogOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theUpdateDatabaseOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- thePauseEngineOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetEnginesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeGetEnginesOKBody
-
getEngines
public com.ibm.cloud.sdk.core.http.ServiceCall<GetEnginesOKBody> getEngines()
Get engines. Get all engine details.- Returns:
- a
ServiceCallwith 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- theGetDeploymentsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theUpdateEngineOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theCreateEngineOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteEngineOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
resumeEngine
public com.ibm.cloud.sdk.core.http.ServiceCall<ResumeEngineCreatedBody> resumeEngine(ResumeEngineOptions resumeEngineOptions)
Resume engine. Resume a paused engine.- Parameters:
resumeEngineOptions- theResumeEngineOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theExplainAnalyzeStatementOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeExplainAnalyzeStatementCreatedBody
-
explainStatement
public com.ibm.cloud.sdk.core.http.ServiceCall<ExplainStatementCreatedBody> explainStatement(ExplainStatementOptions explainStatementOptions)
Explain. Explain a query statement.- Parameters:
explainStatementOptions- theExplainStatementOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theTestLHConsoleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theGetMetastoresOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theGetHMSOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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
ServiceCallwith 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- theAddMetastoreToEngineOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theRemoveCatalogFromEngineOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theSaveQueryOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteQueryOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
updateQuery
public com.ibm.cloud.sdk.core.http.ServiceCall<SuccessResponse> updateQuery(UpdateQueryOptions updateQueryOptions)
Update query. Update a saved query.- Parameters:
updateQueryOptions- theUpdateQueryOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetQueriesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeGetQueriesOKBody
-
getQueries
public com.ibm.cloud.sdk.core.http.ServiceCall<GetQueriesOKBody> getQueries()
Get queries. List all saved queries.- Returns:
- a
ServiceCallwith 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- theCreateSchemaOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteSchemaOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
getSchemas
public com.ibm.cloud.sdk.core.http.ServiceCall<GetSchemasOKBody> getSchemas(GetSchemasOptions getSchemasOptions)
Get schemas. List schemas in catalog.- Parameters:
getSchemasOptions- theGetSchemasOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- thePostQueryOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theDeleteTableOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theUpdateTableOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetTableSnapshotsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theRollbackSnapshotOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theGetTablesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theParseCsvOptionscontaining the options for the call- Returns:
- a
ServiceCallwith 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- theUplaodCsvOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeInputStream
-
-