Class NetworksCompatApi
java.lang.Object
io.github.alersrt.pod4j.openapi.api.NetworksCompatApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidnetworkConnect(String name, ConnectOptions create) Connect container to network Connect a container to a networkokhttp3.CallnetworkConnectAsync(String name, ConnectOptions create, ApiCallback<Void> _callback) Connect container to network (asynchronously) Connect a container to a networkokhttp3.CallnetworkConnectCall(String name, ConnectOptions create, ApiCallback _callback) Build call for networkConnectnetworkConnectWithHttpInfo(@NotNull String name, ConnectOptions create) Connect container to network Connect a container to a networknetworkCreate(CreateRequest create) Create network Create a network configurationokhttp3.CallnetworkCreateAsync(CreateRequest create, ApiCallback<NetworkCreate201Response> _callback) Create network (asynchronously) Create a network configurationokhttp3.CallnetworkCreateCall(CreateRequest create, ApiCallback _callback) Build call for networkCreateCreate network Create a network configurationvoidnetworkDelete(String name) Remove a network Remove a networkokhttp3.CallnetworkDeleteAsync(String name, ApiCallback<Void> _callback) Remove a network (asynchronously) Remove a networkokhttp3.CallnetworkDeleteCall(String name, ApiCallback _callback) Build call for networkDeletenetworkDeleteWithHttpInfo(@NotNull String name) Remove a network Remove a networkvoidnetworkDisconnect(String name, DisconnectOptions create) Disconnect container from network Disconnect a container from a networkokhttp3.CallnetworkDisconnectAsync(String name, DisconnectOptions create, ApiCallback<Void> _callback) Disconnect container from network (asynchronously) Disconnect a container from a networkokhttp3.CallnetworkDisconnectCall(String name, DisconnectOptions create, ApiCallback _callback) Build call for networkDisconnectnetworkDisconnectWithHttpInfo(@NotNull String name, DisconnectOptions create) Disconnect container from network Disconnect a container from a networknetworkInspect(String name, Boolean verbose, String scope) Inspect a network Display low level configuration networkokhttp3.CallnetworkInspectAsync(String name, Boolean verbose, String scope, ApiCallback<Inspect> _callback) Inspect a network (asynchronously) Display low level configuration networkokhttp3.CallnetworkInspectCall(String name, Boolean verbose, String scope, ApiCallback _callback) Build call for networkInspectnetworkInspectWithHttpInfo(@NotNull String name, Boolean verbose, String scope) Inspect a network Display low level configuration networknetworkList(String filters) List networks Display summary of network configurationsokhttp3.CallnetworkListAsync(String filters, ApiCallback<List<Inspect>> _callback) List networks (asynchronously) Display summary of network configurationsokhttp3.CallnetworkListCall(String filters, ApiCallback _callback) Build call for networkListnetworkListWithHttpInfo(String filters) List networks Display summary of network configurationsnetworkPrune(String filters) Delete unused networks Remove networks that do not have containersokhttp3.CallnetworkPruneAsync(String filters, ApiCallback<NetworkPrune200Response> _callback) Delete unused networks (asynchronously) Remove networks that do not have containersokhttp3.CallnetworkPruneCall(String filters, ApiCallback _callback) Build call for networkPrunenetworkPruneWithHttpInfo(String filters) Delete unused networks Remove networks that do not have containersvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
NetworksCompatApi
public NetworksCompatApi() -
NetworksCompatApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
networkConnectCall
public okhttp3.Call networkConnectCall(String name, ConnectOptions create, ApiCallback _callback) throws ApiException Build call for networkConnect- Parameters:
name- the name of the network (required)create- attributes for connecting a container to a network (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 OK - 400 Bad parameter in request - 403 Network is already connected and container is running or transitioning to the running state ('initialized') - 500 Internal server error -
-
networkConnect
Connect container to network Connect a container to a network- Parameters:
name- the name of the network (required)create- attributes for connecting a container to a network (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 OK - 400 Bad parameter in request - 403 Network is already connected and container is running or transitioning to the running state ('initialized') - 500 Internal server error -
-
networkConnectWithHttpInfo
public ApiResponse<Void> networkConnectWithHttpInfo(@NotNull @NotNull String name, ConnectOptions create) throws ApiException Connect container to network Connect a container to a network- Parameters:
name- the name of the network (required)create- attributes for connecting a container to a network (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 OK - 400 Bad parameter in request - 403 Network is already connected and container is running or transitioning to the running state ('initialized') - 500 Internal server error -
-
networkConnectAsync
public okhttp3.Call networkConnectAsync(String name, ConnectOptions create, ApiCallback<Void> _callback) throws ApiException Connect container to network (asynchronously) Connect a container to a network- Parameters:
name- the name of the network (required)create- attributes for connecting a container to a network (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
Status Code Description Response Headers 200 OK - 400 Bad parameter in request - 403 Network is already connected and container is running or transitioning to the running state ('initialized') - 500 Internal server error -
-
networkCreateCall
public okhttp3.Call networkCreateCall(CreateRequest create, ApiCallback _callback) throws ApiException Build call for networkCreate- Parameters:
create- attributes for creating a network (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 201 network created - 400 Bad parameter in request - 500 Internal server error -
-
networkCreate
Create network Create a network configuration- Parameters:
create- attributes for creating a network (optional)- Returns:
- NetworkCreate201Response
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 201 network created - 400 Bad parameter in request - 500 Internal server error -
-
networkCreateWithHttpInfo
public ApiResponse<NetworkCreate201Response> networkCreateWithHttpInfo(CreateRequest create) throws ApiException Create network Create a network configuration- Parameters:
create- attributes for creating a network (optional)- Returns:
- ApiResponse<NetworkCreate201Response>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 201 network created - 400 Bad parameter in request - 500 Internal server error -
-
networkCreateAsync
public okhttp3.Call networkCreateAsync(CreateRequest create, ApiCallback<NetworkCreate201Response> _callback) throws ApiException Create network (asynchronously) Create a network configuration- Parameters:
create- attributes for creating a network (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
Status Code Description Response Headers 201 network created - 400 Bad parameter in request - 500 Internal server error -
-
networkDeleteCall
Build call for networkDelete- Parameters:
name- the name of the network (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 204 no error - 404 No such network - 500 Internal server error -
-
networkDelete
Remove a network Remove a network- Parameters:
name- the name of the network (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 204 no error - 404 No such network - 500 Internal server error -
-
networkDeleteWithHttpInfo
public ApiResponse<Void> networkDeleteWithHttpInfo(@NotNull @NotNull String name) throws ApiException Remove a network Remove a network- Parameters:
name- the name of the network (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 204 no error - 404 No such network - 500 Internal server error -
-
networkDeleteAsync
public okhttp3.Call networkDeleteAsync(String name, ApiCallback<Void> _callback) throws ApiException Remove a network (asynchronously) Remove a network- Parameters:
name- the name of the network (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
Status Code Description Response Headers 204 no error - 404 No such network - 500 Internal server error -
-
networkDisconnectCall
public okhttp3.Call networkDisconnectCall(String name, DisconnectOptions create, ApiCallback _callback) throws ApiException Build call for networkDisconnect- Parameters:
name- the name of the network (required)create- attributes for disconnecting a container from a network (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 OK - 400 Bad parameter in request - 500 Internal server error -
-
networkDisconnect
Disconnect container from network Disconnect a container from a network- Parameters:
name- the name of the network (required)create- attributes for disconnecting a container from a network (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 OK - 400 Bad parameter in request - 500 Internal server error -
-
networkDisconnectWithHttpInfo
public ApiResponse<Void> networkDisconnectWithHttpInfo(@NotNull @NotNull String name, DisconnectOptions create) throws ApiException Disconnect container from network Disconnect a container from a network- Parameters:
name- the name of the network (required)create- attributes for disconnecting a container from a network (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 OK - 400 Bad parameter in request - 500 Internal server error -
-
networkDisconnectAsync
public okhttp3.Call networkDisconnectAsync(String name, DisconnectOptions create, ApiCallback<Void> _callback) throws ApiException Disconnect container from network (asynchronously) Disconnect a container from a network- Parameters:
name- the name of the network (required)create- attributes for disconnecting a container from a network (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
Status Code Description Response Headers 200 OK - 400 Bad parameter in request - 500 Internal server error -
-
networkInspectCall
public okhttp3.Call networkInspectCall(String name, Boolean verbose, String scope, ApiCallback _callback) throws ApiException Build call for networkInspect- Parameters:
name- the name of the network (required)verbose- Detailed inspect output for troubleshooting (optional)scope- Filter the network by scope (swarm, global, or local) (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 Network inspect - 404 No such network - 500 Internal server error -
-
networkInspect
Inspect a network Display low level configuration network- Parameters:
name- the name of the network (required)verbose- Detailed inspect output for troubleshooting (optional)scope- Filter the network by scope (swarm, global, or local) (optional)- Returns:
- Inspect
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 Network inspect - 404 No such network - 500 Internal server error -
-
networkInspectWithHttpInfo
public ApiResponse<Inspect> networkInspectWithHttpInfo(@NotNull @NotNull String name, Boolean verbose, String scope) throws ApiException Inspect a network Display low level configuration network- Parameters:
name- the name of the network (required)verbose- Detailed inspect output for troubleshooting (optional)scope- Filter the network by scope (swarm, global, or local) (optional)- Returns:
- ApiResponse<Inspect>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 Network inspect - 404 No such network - 500 Internal server error -
-
networkInspectAsync
public okhttp3.Call networkInspectAsync(String name, Boolean verbose, String scope, ApiCallback<Inspect> _callback) throws ApiException Inspect a network (asynchronously) Display low level configuration network- Parameters:
name- the name of the network (required)verbose- Detailed inspect output for troubleshooting (optional)scope- Filter the network by scope (swarm, global, or local) (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
Status Code Description Response Headers 200 Network inspect - 404 No such network - 500 Internal server error -
-
networkListCall
Build call for networkList- Parameters:
filters- JSON encoded value of the filters (a `map[string][]string`) to process on the network list. Currently available filters: - `name=[name]` Matches network name (accepts regex). - `id=[id]` Matches for full or partial ID. - `driver=[driver]` Only bridge is supported. - `label=[key]` or `label=[key=value]` Matches networks based on the presence of a label alone or a label and a value. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 Network list - 500 Internal server error -
-
networkList
List networks Display summary of network configurations- Parameters:
filters- JSON encoded value of the filters (a `map[string][]string`) to process on the network list. Currently available filters: - `name=[name]` Matches network name (accepts regex). - `id=[id]` Matches for full or partial ID. - `driver=[driver]` Only bridge is supported. - `label=[key]` or `label=[key=value]` Matches networks based on the presence of a label alone or a label and a value. (optional)- Returns:
- List<Inspect>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 Network list - 500 Internal server error -
-
networkListWithHttpInfo
List networks Display summary of network configurations- Parameters:
filters- JSON encoded value of the filters (a `map[string][]string`) to process on the network list. Currently available filters: - `name=[name]` Matches network name (accepts regex). - `id=[id]` Matches for full or partial ID. - `driver=[driver]` Only bridge is supported. - `label=[key]` or `label=[key=value]` Matches networks based on the presence of a label alone or a label and a value. (optional)- Returns:
- ApiResponse<List<Inspect>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 Network list - 500 Internal server error -
-
networkListAsync
public okhttp3.Call networkListAsync(String filters, ApiCallback<List<Inspect>> _callback) throws ApiException List networks (asynchronously) Display summary of network configurations- Parameters:
filters- JSON encoded value of the filters (a `map[string][]string`) to process on the network list. Currently available filters: - `name=[name]` Matches network name (accepts regex). - `id=[id]` Matches for full or partial ID. - `driver=[driver]` Only bridge is supported. - `label=[key]` or `label=[key=value]` Matches networks based on the presence of a label alone or a label and a value. (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
Status Code Description Response Headers 200 Network list - 500 Internal server error -
-
networkPruneCall
Build call for networkPrune- Parameters:
filters- Filters to process on the prune list, encoded as JSON (a map[string][]string). Available filters: - `until=<timestamp>` Prune networks created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune networks with (or without, in case `label!=...` is used) the specified labels. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 OK - 500 Internal server error -
-
networkPrune
Delete unused networks Remove networks that do not have containers- Parameters:
filters- Filters to process on the prune list, encoded as JSON (a map[string][]string). Available filters: - `until=<timestamp>` Prune networks created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune networks with (or without, in case `label!=...` is used) the specified labels. (optional)- Returns:
- NetworkPrune200Response
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 OK - 500 Internal server error -
-
networkPruneWithHttpInfo
public ApiResponse<NetworkPrune200Response> networkPruneWithHttpInfo(String filters) throws ApiException Delete unused networks Remove networks that do not have containers- Parameters:
filters- Filters to process on the prune list, encoded as JSON (a map[string][]string). Available filters: - `until=<timestamp>` Prune networks created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune networks with (or without, in case `label!=...` is used) the specified labels. (optional)- Returns:
- ApiResponse<NetworkPrune200Response>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 OK - 500 Internal server error -
-
networkPruneAsync
public okhttp3.Call networkPruneAsync(String filters, ApiCallback<NetworkPrune200Response> _callback) throws ApiException Delete unused networks (asynchronously) Remove networks that do not have containers- Parameters:
filters- Filters to process on the prune list, encoded as JSON (a map[string][]string). Available filters: - `until=<timestamp>` Prune networks created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune networks with (or without, in case `label!=...` is used) the specified labels. (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
Status Code Description Response Headers 200 OK - 500 Internal server error -
-