public class SnapshotsResourceApi extends Object
Constructor and Description |
---|
SnapshotsResourceApi() |
SnapshotsResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiCommand |
createHBaseSnapshotFromRemote(String clusterName,
String serviceName,
ApiHBaseSnapshot body,
BigDecimal bandwidthPerMap,
Boolean directCopy,
String externalAccount,
BigDecimal numMappers,
String runAsUser,
String schedulerPoolName) |
okhttp3.Call |
createHBaseSnapshotFromRemoteAsync(String clusterName,
String serviceName,
ApiHBaseSnapshot body,
BigDecimal bandwidthPerMap,
Boolean directCopy,
String externalAccount,
BigDecimal numMappers,
String runAsUser,
String schedulerPoolName,
ApiCallback<ApiCommand> callback)
(asynchronously)
|
okhttp3.Call |
createHBaseSnapshotFromRemoteCall(String clusterName,
String serviceName,
ApiHBaseSnapshot body,
BigDecimal bandwidthPerMap,
Boolean directCopy,
String externalAccount,
BigDecimal numMappers,
String runAsUser,
String schedulerPoolName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createHBaseSnapshotFromRemote
|
ApiResponse<ApiCommand> |
createHBaseSnapshotFromRemoteWithHttpInfo(String clusterName,
String serviceName,
ApiHBaseSnapshot body,
BigDecimal bandwidthPerMap,
Boolean directCopy,
String externalAccount,
BigDecimal numMappers,
String runAsUser,
String schedulerPoolName) |
ApiSnapshotPolicyList |
createPolicies(String clusterName,
String serviceName,
ApiSnapshotPolicyList body)
Creates one or more snapshot policies.
|
okhttp3.Call |
createPoliciesAsync(String clusterName,
String serviceName,
ApiSnapshotPolicyList body,
ApiCallback<ApiSnapshotPolicyList> callback)
Creates one or more snapshot policies.
|
okhttp3.Call |
createPoliciesCall(String clusterName,
String serviceName,
ApiSnapshotPolicyList body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createPolicies
|
ApiResponse<ApiSnapshotPolicyList> |
createPoliciesWithHttpInfo(String clusterName,
String serviceName,
ApiSnapshotPolicyList body)
Creates one or more snapshot policies.
|
ApiSnapshotPolicy |
deletePolicy(String clusterName,
String policyName,
String serviceName)
Deletes an existing snapshot policy.
|
okhttp3.Call |
deletePolicyAsync(String clusterName,
String policyName,
String serviceName,
ApiCallback<ApiSnapshotPolicy> callback)
Deletes an existing snapshot policy.
|
okhttp3.Call |
deletePolicyCall(String clusterName,
String policyName,
String serviceName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deletePolicy
|
ApiResponse<ApiSnapshotPolicy> |
deletePolicyWithHttpInfo(String clusterName,
String policyName,
String serviceName)
Deletes an existing snapshot policy.
|
ApiClient |
getApiClient() |
ApiCommand |
listHBaseSnapshotsCommand(String clusterName,
String serviceName,
String storage,
String storageLocation,
String tableName)
Starts a command that lists the available HBase snapshots from S3 or local HBase service.
|
okhttp3.Call |
listHBaseSnapshotsCommandAsync(String clusterName,
String serviceName,
String storage,
String storageLocation,
String tableName,
ApiCallback<ApiCommand> callback)
Starts a command that lists the available HBase snapshots from S3 or local HBase service.
|
okhttp3.Call |
listHBaseSnapshotsCommandCall(String clusterName,
String serviceName,
String storage,
String storageLocation,
String tableName,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for listHBaseSnapshotsCommand
|
ApiResponse<ApiCommand> |
listHBaseSnapshotsCommandWithHttpInfo(String clusterName,
String serviceName,
String storage,
String storageLocation,
String tableName)
Starts a command that lists the available HBase snapshots from S3 or local HBase service.
|
ApiSnapshotCommandList |
readHistory(String clusterName,
String policyName,
String serviceName,
BigDecimal limit,
BigDecimal offset,
String view)
Returns a list of commands triggered by a snapshot policy.
|
okhttp3.Call |
readHistoryAsync(String clusterName,
String policyName,
String serviceName,
BigDecimal limit,
BigDecimal offset,
String view,
ApiCallback<ApiSnapshotCommandList> callback)
Returns a list of commands triggered by a snapshot policy.
|
okhttp3.Call |
readHistoryCall(String clusterName,
String policyName,
String serviceName,
BigDecimal limit,
BigDecimal offset,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHistory
|
ApiResponse<ApiSnapshotCommandList> |
readHistoryWithHttpInfo(String clusterName,
String policyName,
String serviceName,
BigDecimal limit,
BigDecimal offset,
String view)
Returns a list of commands triggered by a snapshot policy.
|
ApiSnapshotPolicyList |
readPolicies(String clusterName,
String serviceName,
String view)
Returns information for all snapshot policies.
|
okhttp3.Call |
readPoliciesAsync(String clusterName,
String serviceName,
String view,
ApiCallback<ApiSnapshotPolicyList> callback)
Returns information for all snapshot policies.
|
okhttp3.Call |
readPoliciesCall(String clusterName,
String serviceName,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readPolicies
|
ApiResponse<ApiSnapshotPolicyList> |
readPoliciesWithHttpInfo(String clusterName,
String serviceName,
String view)
Returns information for all snapshot policies.
|
ApiSnapshotPolicy |
readPolicy(String clusterName,
String policyName,
String serviceName,
String view)
Returns information for a specific snapshot policy.
|
okhttp3.Call |
readPolicyAsync(String clusterName,
String policyName,
String serviceName,
String view,
ApiCallback<ApiSnapshotPolicy> callback)
Returns information for a specific snapshot policy.
|
okhttp3.Call |
readPolicyCall(String clusterName,
String policyName,
String serviceName,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readPolicy
|
ApiResponse<ApiSnapshotPolicy> |
readPolicyWithHttpInfo(String clusterName,
String policyName,
String serviceName,
String view)
Returns information for a specific snapshot policy.
|
void |
setApiClient(ApiClient apiClient) |
ApiSnapshotPolicy |
updatePolicy(String clusterName,
String policyName,
String serviceName,
ApiSnapshotPolicy body)
Updates an existing snapshot policy.
|
okhttp3.Call |
updatePolicyAsync(String clusterName,
String policyName,
String serviceName,
ApiSnapshotPolicy body,
ApiCallback<ApiSnapshotPolicy> callback)
Updates an existing snapshot policy.
|
okhttp3.Call |
updatePolicyCall(String clusterName,
String policyName,
String serviceName,
ApiSnapshotPolicy body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updatePolicy
|
ApiResponse<ApiSnapshotPolicy> |
updatePolicyWithHttpInfo(String clusterName,
String policyName,
String serviceName,
ApiSnapshotPolicy body)
Updates an existing snapshot policy.
|
public SnapshotsResourceApi()
public SnapshotsResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call createHBaseSnapshotFromRemoteCall(String clusterName, String serviceName, ApiHBaseSnapshot body, BigDecimal bandwidthPerMap, Boolean directCopy, String externalAccount, BigDecimal numMappers, String runAsUser, String schedulerPoolName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)serviceName
- (required)body
- (optional)bandwidthPerMap
- (optional)directCopy
- (optional)externalAccount
- (optional)numMappers
- (optional)runAsUser
- (optional)schedulerPoolName
- (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand createHBaseSnapshotFromRemote(String clusterName, String serviceName, ApiHBaseSnapshot body, BigDecimal bandwidthPerMap, Boolean directCopy, String externalAccount, BigDecimal numMappers, String runAsUser, String schedulerPoolName) throws ApiException
clusterName
- (required)serviceName
- (required)body
- (optional)bandwidthPerMap
- (optional)directCopy
- (optional)externalAccount
- (optional)numMappers
- (optional)runAsUser
- (optional)schedulerPoolName
- (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> createHBaseSnapshotFromRemoteWithHttpInfo(String clusterName, String serviceName, ApiHBaseSnapshot body, BigDecimal bandwidthPerMap, Boolean directCopy, String externalAccount, BigDecimal numMappers, String runAsUser, String schedulerPoolName) throws ApiException
clusterName
- (required)serviceName
- (required)body
- (optional)bandwidthPerMap
- (optional)directCopy
- (optional)externalAccount
- (optional)numMappers
- (optional)runAsUser
- (optional)schedulerPoolName
- (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call createHBaseSnapshotFromRemoteAsync(String clusterName, String serviceName, ApiHBaseSnapshot body, BigDecimal bandwidthPerMap, Boolean directCopy, String externalAccount, BigDecimal numMappers, String runAsUser, String schedulerPoolName, ApiCallback<ApiCommand> callback) throws ApiException
clusterName
- (required)serviceName
- (required)body
- (optional)bandwidthPerMap
- (optional)directCopy
- (optional)externalAccount
- (optional)numMappers
- (optional)runAsUser
- (optional)schedulerPoolName
- (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call createPoliciesCall(String clusterName, String serviceName, ApiSnapshotPolicyList body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)serviceName
- (required)body
- List of the snapshot policies to create. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiSnapshotPolicyList createPolicies(String clusterName, String serviceName, ApiSnapshotPolicyList body) throws ApiException
clusterName
- (required)serviceName
- (required)body
- List of the snapshot policies to create. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiSnapshotPolicyList> createPoliciesWithHttpInfo(String clusterName, String serviceName, ApiSnapshotPolicyList body) throws ApiException
clusterName
- (required)serviceName
- (required)body
- List of the snapshot policies to create. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call createPoliciesAsync(String clusterName, String serviceName, ApiSnapshotPolicyList body, ApiCallback<ApiSnapshotPolicyList> callback) throws ApiException
clusterName
- (required)serviceName
- (required)body
- List of the snapshot policies to create. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call deletePolicyCall(String clusterName, String policyName, String serviceName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiSnapshotPolicy deletePolicy(String clusterName, String policyName, String serviceName) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiSnapshotPolicy> deletePolicyWithHttpInfo(String clusterName, String policyName, String serviceName) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call deletePolicyAsync(String clusterName, String policyName, String serviceName, ApiCallback<ApiSnapshotPolicy> callback) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call listHBaseSnapshotsCommandCall(String clusterName, String serviceName, String storage, String storageLocation, String tableName, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)serviceName
- (required)storage
- Location from where the snapshots should be fetched. (optional)storageLocation
- Location of remote snapshots, if other than the local storage should be used. (optional)tableName
- Table for which to list snapshots. If null is provided, it will list all snapshots for all tables. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand listHBaseSnapshotsCommand(String clusterName, String serviceName, String storage, String storageLocation, String tableName) throws ApiException
clusterName
- (required)serviceName
- (required)storage
- Location from where the snapshots should be fetched. (optional)storageLocation
- Location of remote snapshots, if other than the local storage should be used. (optional)tableName
- Table for which to list snapshots. If null is provided, it will list all snapshots for all tables. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> listHBaseSnapshotsCommandWithHttpInfo(String clusterName, String serviceName, String storage, String storageLocation, String tableName) throws ApiException
clusterName
- (required)serviceName
- (required)storage
- Location from where the snapshots should be fetched. (optional)storageLocation
- Location of remote snapshots, if other than the local storage should be used. (optional)tableName
- Table for which to list snapshots. If null is provided, it will list all snapshots for all tables. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call listHBaseSnapshotsCommandAsync(String clusterName, String serviceName, String storage, String storageLocation, String tableName, ApiCallback<ApiCommand> callback) throws ApiException
clusterName
- (required)serviceName
- (required)storage
- Location from where the snapshots should be fetched. (optional)storageLocation
- Location of remote snapshots, if other than the local storage should be used. (optional)tableName
- Table for which to list snapshots. If null is provided, it will list all snapshots for all tables. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call readHistoryCall(String clusterName, String policyName, String serviceName, BigDecimal limit, BigDecimal offset, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)limit
- Maximum number of commands to retrieve. (optional, default to 20)offset
- Index of first command to retrieve. (optional, default to 0)view
- The view to materialize. (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiSnapshotCommandList readHistory(String clusterName, String policyName, String serviceName, BigDecimal limit, BigDecimal offset, String view) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)limit
- Maximum number of commands to retrieve. (optional, default to 20)offset
- Index of first command to retrieve. (optional, default to 0)view
- The view to materialize. (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiSnapshotCommandList> readHistoryWithHttpInfo(String clusterName, String policyName, String serviceName, BigDecimal limit, BigDecimal offset, String view) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)limit
- Maximum number of commands to retrieve. (optional, default to 20)offset
- Index of first command to retrieve. (optional, default to 0)view
- The view to materialize. (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call readHistoryAsync(String clusterName, String policyName, String serviceName, BigDecimal limit, BigDecimal offset, String view, ApiCallback<ApiSnapshotCommandList> callback) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)limit
- Maximum number of commands to retrieve. (optional, default to 20)offset
- Index of first command to retrieve. (optional, default to 0)view
- The view to materialize. (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call readPoliciesCall(String clusterName, String serviceName, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)serviceName
- (required)view
- The view to materialize. (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiSnapshotPolicyList readPolicies(String clusterName, String serviceName, String view) throws ApiException
clusterName
- (required)serviceName
- (required)view
- The view to materialize. (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiSnapshotPolicyList> readPoliciesWithHttpInfo(String clusterName, String serviceName, String view) throws ApiException
clusterName
- (required)serviceName
- (required)view
- The view to materialize. (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call readPoliciesAsync(String clusterName, String serviceName, String view, ApiCallback<ApiSnapshotPolicyList> callback) throws ApiException
clusterName
- (required)serviceName
- (required)view
- The view to materialize. (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call readPolicyCall(String clusterName, String policyName, String serviceName, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)view
- The view to materialize. (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiSnapshotPolicy readPolicy(String clusterName, String policyName, String serviceName, String view) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)view
- The view to materialize. (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiSnapshotPolicy> readPolicyWithHttpInfo(String clusterName, String policyName, String serviceName, String view) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)view
- The view to materialize. (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call readPolicyAsync(String clusterName, String policyName, String serviceName, String view, ApiCallback<ApiSnapshotPolicy> callback) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)view
- The view to materialize. (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call updatePolicyCall(String clusterName, String policyName, String serviceName, ApiSnapshotPolicy body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)body
- Modified policy. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiSnapshotPolicy updatePolicy(String clusterName, String policyName, String serviceName, ApiSnapshotPolicy body) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)body
- Modified policy. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiSnapshotPolicy> updatePolicyWithHttpInfo(String clusterName, String policyName, String serviceName, ApiSnapshotPolicy body) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)body
- Modified policy. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call updatePolicyAsync(String clusterName, String policyName, String serviceName, ApiSnapshotPolicy body, ApiCallback<ApiSnapshotPolicy> callback) throws ApiException
clusterName
- (required)policyName
- Name of an existing snapshot policy. (required)serviceName
- (required)body
- Modified policy. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2024. All rights reserved.