Interface ServerKeysClient
-
public interface ServerKeysClientAn instance of this class provides access to all the operations defined in ServerKeysClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerKeyInner>,ServerKeyInner>beginCreateOrUpdate(String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters)Creates or updates a MySQL Server key.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerKeyInner>,ServerKeyInner>beginCreateOrUpdate(String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters, com.azure.core.util.Context context)Creates or updates a MySQL Server key.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginDelete(String serverName, String keyName, String resourceGroupName)Deletes the MySQL Server key with the given name.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginDelete(String serverName, String keyName, String resourceGroupName, com.azure.core.util.Context context)Deletes the MySQL Server key with the given name.ServerKeyInnercreateOrUpdate(String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters)Creates or updates a MySQL Server key.ServerKeyInnercreateOrUpdate(String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters, com.azure.core.util.Context context)Creates or updates a MySQL Server key.voiddelete(String serverName, String keyName, String resourceGroupName)Deletes the MySQL Server key with the given name.voiddelete(String serverName, String keyName, String resourceGroupName, com.azure.core.util.Context context)Deletes the MySQL Server key with the given name.ServerKeyInnerget(String resourceGroupName, String serverName, String keyName)Gets a MySQL Server key.com.azure.core.http.rest.Response<ServerKeyInner>getWithResponse(String resourceGroupName, String serverName, String keyName, com.azure.core.util.Context context)Gets a MySQL Server key.com.azure.core.http.rest.PagedIterable<ServerKeyInner>list(String resourceGroupName, String serverName)Gets a list of Server keys.com.azure.core.http.rest.PagedIterable<ServerKeyInner>list(String resourceGroupName, String serverName, com.azure.core.util.Context context)Gets a list of Server keys.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<ServerKeyInner> list(String resourceGroupName, String serverName)
Gets a list of Server keys.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- a list of Server keys.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ServerKeyInner> list(String resourceGroupName, String serverName, com.azure.core.util.Context context)
Gets a list of Server keys.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- a list of Server keys.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
ServerKeyInner get(String resourceGroupName, String serverName, String keyName)
Gets a MySQL Server key.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.keyName- The name of the MySQL Server key to be retrieved.- Returns:
- a MySQL Server key.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<ServerKeyInner> getWithResponse(String resourceGroupName, String serverName, String keyName, com.azure.core.util.Context context)
Gets a MySQL Server key.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.keyName- The name of the MySQL Server key to be retrieved.context- The context to associate with this operation.- Returns:
- a MySQL Server key along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerKeyInner>,ServerKeyInner> beginCreateOrUpdate(String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters)
Creates or updates a MySQL Server key.- Parameters:
serverName- The name of the server.keyName- The name of the MySQL Server key to be operated on (updated or created).resourceGroupName- The name of the resource group. The name is case insensitive.parameters- The requested MySQL Server key resource state.- Returns:
- a MySQL Server key along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerKeyInner>,ServerKeyInner> beginCreateOrUpdate(String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters, com.azure.core.util.Context context)
Creates or updates a MySQL Server key.- Parameters:
serverName- The name of the server.keyName- The name of the MySQL Server key to be operated on (updated or created).resourceGroupName- The name of the resource group. The name is case insensitive.parameters- The requested MySQL Server key resource state.context- The context to associate with this operation.- Returns:
- a MySQL Server key along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
ServerKeyInner createOrUpdate(String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters)
Creates or updates a MySQL Server key.- Parameters:
serverName- The name of the server.keyName- The name of the MySQL Server key to be operated on (updated or created).resourceGroupName- The name of the resource group. The name is case insensitive.parameters- The requested MySQL Server key resource state.- Returns:
- a MySQL Server key.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
ServerKeyInner createOrUpdate(String serverName, String keyName, String resourceGroupName, ServerKeyInner parameters, com.azure.core.util.Context context)
Creates or updates a MySQL Server key.- Parameters:
serverName- The name of the server.keyName- The name of the MySQL Server key to be operated on (updated or created).resourceGroupName- The name of the resource group. The name is case insensitive.parameters- The requested MySQL Server key resource state.context- The context to associate with this operation.- Returns:
- a MySQL Server key.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String serverName, String keyName, String resourceGroupName)
Deletes the MySQL Server key with the given name.- Parameters:
serverName- The name of the server.keyName- The name of the MySQL Server key to be deleted.resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String serverName, String keyName, String resourceGroupName, com.azure.core.util.Context context)
Deletes the MySQL Server key with the given name.- Parameters:
serverName- The name of the server.keyName- The name of the MySQL Server key to be deleted.resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String serverName, String keyName, String resourceGroupName)
Deletes the MySQL Server key with the given name.- Parameters:
serverName- The name of the server.keyName- The name of the MySQL Server key to be deleted.resourceGroupName- The name of the resource group. The name is case insensitive.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String serverName, String keyName, String resourceGroupName, com.azure.core.util.Context context)
Deletes the MySQL Server key with the given name.- Parameters:
serverName- The name of the server.keyName- The name of the MySQL Server key to be deleted.resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
-