public class SnapshotsResourceApi extends Object
Constructor and Description |
---|
SnapshotsResourceApi() |
SnapshotsResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiSnapshotPolicyList |
createPolicies(String clusterName,
String serviceName,
ApiSnapshotPolicyList body)
Creates one or more snapshot policies.
|
com.squareup.okhttp.Call |
createPoliciesAsync(String clusterName,
String serviceName,
ApiSnapshotPolicyList body,
ApiCallback<ApiSnapshotPolicyList> callback)
Creates one or more snapshot policies.
|
com.squareup.okhttp.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.
|
com.squareup.okhttp.Call |
deletePolicyAsync(String clusterName,
String policyName,
String serviceName,
ApiCallback<ApiSnapshotPolicy> callback)
Deletes an existing snapshot policy.
|
com.squareup.okhttp.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() |
ApiSnapshotCommandList |
readHistory(String clusterName,
String policyName,
String serviceName,
Integer limit,
Integer offset,
String view)
Returns a list of commands triggered by a snapshot policy.
|
com.squareup.okhttp.Call |
readHistoryAsync(String clusterName,
String policyName,
String serviceName,
Integer limit,
Integer offset,
String view,
ApiCallback<ApiSnapshotCommandList> callback)
Returns a list of commands triggered by a snapshot policy.
|
com.squareup.okhttp.Call |
readHistoryCall(String clusterName,
String policyName,
String serviceName,
Integer limit,
Integer offset,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readHistory
|
ApiResponse<ApiSnapshotCommandList> |
readHistoryWithHttpInfo(String clusterName,
String policyName,
String serviceName,
Integer limit,
Integer 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.
|
com.squareup.okhttp.Call |
readPoliciesAsync(String clusterName,
String serviceName,
String view,
ApiCallback<ApiSnapshotPolicyList> callback)
Returns information for all snapshot policies.
|
com.squareup.okhttp.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.
|
com.squareup.okhttp.Call |
readPolicyAsync(String clusterName,
String policyName,
String serviceName,
String view,
ApiCallback<ApiSnapshotPolicy> callback)
Returns information for a specific snapshot policy.
|
com.squareup.okhttp.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.
|
com.squareup.okhttp.Call |
updatePolicyAsync(String clusterName,
String policyName,
String serviceName,
ApiSnapshotPolicy body,
ApiCallback<ApiSnapshotPolicy> callback)
Updates an existing snapshot policy.
|
com.squareup.okhttp.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 com.squareup.okhttp.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 com.squareup.okhttp.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 com.squareup.okhttp.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 com.squareup.okhttp.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 com.squareup.okhttp.Call readHistoryCall(String clusterName, String policyName, String serviceName, Integer limit, Integer 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, Integer limit, Integer 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, Integer limit, Integer 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 com.squareup.okhttp.Call readHistoryAsync(String clusterName, String policyName, String serviceName, Integer limit, Integer 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 com.squareup.okhttp.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 com.squareup.okhttp.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 com.squareup.okhttp.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 com.squareup.okhttp.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 com.squareup.okhttp.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 com.squareup.okhttp.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 © 2019. All rights reserved.