Class IpApi
java.lang.Object
sendpost_java_sdk.IpApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocateNewIp(IPAllocationRequest ipAllocationRequest) Allocate a New IP Allocates a new IP resource to the account.okhttp3.CallallocateNewIpAsync(IPAllocationRequest ipAllocationRequest, ApiCallback<IP> _callback) Allocate a New IP (asynchronously) Allocates a new IP resource to the account.okhttp3.CallallocateNewIpCall(IPAllocationRequest ipAllocationRequest, ApiCallback _callback) Build call for allocateNewIpallocateNewIpWithHttpInfo(IPAllocationRequest ipAllocationRequest) Allocate a New IP Allocates a new IP resource to the account.Delete a Specific IP Deletes a specific IP resource based on the provided IP ID.okhttp3.CalldeleteIpAsync(Integer ipId, ApiCallback<IPDeletionResponse> _callback) Delete a Specific IP (asynchronously) Deletes a specific IP resource based on the provided IP ID.okhttp3.CalldeleteIpCall(Integer ipId, ApiCallback _callback) Build call for deleteIpdeleteIpWithHttpInfo(Integer ipId) Delete a Specific IP Deletes a specific IP resource based on the provided IP ID.Get All IPs Retrieves a list of all IPs associated with the main account.okhttp3.CallgetAllIpsAsync(Integer limit, Integer offset, String search, ApiCallback<List<IP>> _callback) Get All IPs (asynchronously) Retrieves a list of all IPs associated with the main account.okhttp3.CallgetAllIpsCall(Integer limit, Integer offset, String search, ApiCallback _callback) Build call for getAllIpsgetAllIpsWithHttpInfo(Integer limit, Integer offset, String search) Get All IPs Retrieves a list of all IPs associated with the main account.intgetSpecificIp(Integer ipId) Get a Specific IP Retrieves detailed information about a specific IP based on the provided ID.okhttp3.CallgetSpecificIpAsync(Integer ipId, ApiCallback<IP> _callback) Get a Specific IP (asynchronously) Retrieves detailed information about a specific IP based on the provided ID.okhttp3.CallgetSpecificIpCall(Integer ipId, ApiCallback _callback) Build call for getSpecificIpGet a Specific IP Retrieves detailed information about a specific IP based on the provided ID.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) updateIp(Integer ipId, IPUpdateRequest ipUpdateRequest) Update an Existing IP Updates an existing IP resource based on the provided IP ID.okhttp3.CallupdateIpAsync(Integer ipId, IPUpdateRequest ipUpdateRequest, ApiCallback<IP> _callback) Update an Existing IP (asynchronously) Updates an existing IP resource based on the provided IP ID.okhttp3.CallupdateIpCall(Integer ipId, IPUpdateRequest ipUpdateRequest, ApiCallback _callback) Build call for updateIpupdateIpWithHttpInfo(Integer ipId, IPUpdateRequest ipUpdateRequest) Update an Existing IP Updates an existing IP resource based on the provided IP ID.
-
Constructor Details
-
IpApi
public IpApi() -
IpApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
allocateNewIpCall
public okhttp3.Call allocateNewIpCall(@Nonnull IPAllocationRequest ipAllocationRequest, ApiCallback _callback) throws ApiException Build call for allocateNewIp- Parameters:
ipAllocationRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Details of the allocated IP -
-
allocateNewIp
Allocate a New IP Allocates a new IP resource to the account.- Parameters:
ipAllocationRequest- (required)- Returns:
- IP
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Details of the allocated IP -
-
allocateNewIpWithHttpInfo
public ApiResponse<IP> allocateNewIpWithHttpInfo(@Nonnull IPAllocationRequest ipAllocationRequest) throws ApiException Allocate a New IP Allocates a new IP resource to the account.- Parameters:
ipAllocationRequest- (required)- Returns:
- ApiResponse<IP>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Details of the allocated IP -
-
allocateNewIpAsync
public okhttp3.Call allocateNewIpAsync(@Nonnull IPAllocationRequest ipAllocationRequest, ApiCallback<IP> _callback) throws ApiException Allocate a New IP (asynchronously) Allocates a new IP resource to the account.- Parameters:
ipAllocationRequest- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Details of the allocated IP -
-
deleteIpCall
Build call for deleteIp- Parameters:
ipId- The ID of the IP resource to delete (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Confirmation message after successful IP deletion -
-
deleteIp
Delete a Specific IP Deletes a specific IP resource based on the provided IP ID.- Parameters:
ipId- The ID of the IP resource to delete (required)- Returns:
- IPDeletionResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Confirmation message after successful IP deletion -
-
deleteIpWithHttpInfo
public ApiResponse<IPDeletionResponse> deleteIpWithHttpInfo(@Nonnull Integer ipId) throws ApiException Delete a Specific IP Deletes a specific IP resource based on the provided IP ID.- Parameters:
ipId- The ID of the IP resource to delete (required)- Returns:
- ApiResponse<IPDeletionResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Confirmation message after successful IP deletion -
-
deleteIpAsync
public okhttp3.Call deleteIpAsync(@Nonnull Integer ipId, ApiCallback<IPDeletionResponse> _callback) throws ApiException Delete a Specific IP (asynchronously) Deletes a specific IP resource based on the provided IP ID.- Parameters:
ipId- The ID of the IP resource to delete (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Confirmation message after successful IP deletion -
-
getAllIpsCall
public okhttp3.Call getAllIpsCall(@Nullable Integer limit, @Nullable Integer offset, @Nullable String search, ApiCallback _callback) throws ApiException Build call for getAllIps- Parameters:
limit- Number of records to return per request (optional)offset- Number of initial records to skip (optional)search- Case insensitive search against IP's public IP address (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 A list of IPs associated with the account -
-
getAllIps
public List<IP> getAllIps(@Nullable Integer limit, @Nullable Integer offset, @Nullable String search) throws ApiException Get All IPs Retrieves a list of all IPs associated with the main account.- Parameters:
limit- Number of records to return per request (optional)offset- Number of initial records to skip (optional)search- Case insensitive search against IP's public IP address (optional)- Returns:
- List<IP>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 A list of IPs associated with the account -
-
getAllIpsWithHttpInfo
public ApiResponse<List<IP>> getAllIpsWithHttpInfo(@Nullable Integer limit, @Nullable Integer offset, @Nullable String search) throws ApiException Get All IPs Retrieves a list of all IPs associated with the main account.- Parameters:
limit- Number of records to return per request (optional)offset- Number of initial records to skip (optional)search- Case insensitive search against IP's public IP address (optional)- Returns:
- ApiResponse<List<IP>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 A list of IPs associated with the account -
-
getAllIpsAsync
public okhttp3.Call getAllIpsAsync(@Nullable Integer limit, @Nullable Integer offset, @Nullable String search, ApiCallback<List<IP>> _callback) throws ApiException Get All IPs (asynchronously) Retrieves a list of all IPs associated with the main account.- Parameters:
limit- Number of records to return per request (optional)offset- Number of initial records to skip (optional)search- Case insensitive search against IP's public IP address (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 A list of IPs associated with the account -
-
getSpecificIpCall
public okhttp3.Call getSpecificIpCall(@Nonnull Integer ipId, ApiCallback _callback) throws ApiException Build call for getSpecificIp- Parameters:
ipId- The ID of the IP resource to retrieve (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Information about the specified IP -
-
getSpecificIp
Get a Specific IP Retrieves detailed information about a specific IP based on the provided ID.- Parameters:
ipId- The ID of the IP resource to retrieve (required)- Returns:
- IP
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Information about the specified IP -
-
getSpecificIpWithHttpInfo
Get a Specific IP Retrieves detailed information about a specific IP based on the provided ID.- Parameters:
ipId- The ID of the IP resource to retrieve (required)- Returns:
- ApiResponse<IP>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Information about the specified IP -
-
getSpecificIpAsync
public okhttp3.Call getSpecificIpAsync(@Nonnull Integer ipId, ApiCallback<IP> _callback) throws ApiException Get a Specific IP (asynchronously) Retrieves detailed information about a specific IP based on the provided ID.- Parameters:
ipId- The ID of the IP resource to retrieve (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Information about the specified IP -
-
updateIpCall
public okhttp3.Call updateIpCall(@Nonnull Integer ipId, @Nonnull IPUpdateRequest ipUpdateRequest, ApiCallback _callback) throws ApiException Build call for updateIp- Parameters:
ipId- The ID of the IP resource to update (required)ipUpdateRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 The updated IP information -
-
updateIp
public IP updateIp(@Nonnull Integer ipId, @Nonnull IPUpdateRequest ipUpdateRequest) throws ApiException Update an Existing IP Updates an existing IP resource based on the provided IP ID.- Parameters:
ipId- The ID of the IP resource to update (required)ipUpdateRequest- (required)- Returns:
- IP
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 The updated IP information -
-
updateIpWithHttpInfo
public ApiResponse<IP> updateIpWithHttpInfo(@Nonnull Integer ipId, @Nonnull IPUpdateRequest ipUpdateRequest) throws ApiException Update an Existing IP Updates an existing IP resource based on the provided IP ID.- Parameters:
ipId- The ID of the IP resource to update (required)ipUpdateRequest- (required)- Returns:
- ApiResponse<IP>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 The updated IP information -
-
updateIpAsync
public okhttp3.Call updateIpAsync(@Nonnull Integer ipId, @Nonnull IPUpdateRequest ipUpdateRequest, ApiCallback<IP> _callback) throws ApiException Update an Existing IP (asynchronously) Updates an existing IP resource based on the provided IP ID.- Parameters:
ipId- The ID of the IP resource to update (required)ipUpdateRequest- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 The updated IP information -
-