ServerKeys Interface

public interface ServerKeys

Resource collection API of ServerKeys.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new ServerKey resource.

abstract void delete(String serverName, String keyName, String resourceGroupName)

Deletes the MySQL Server key with the given name.

abstract void delete(String serverName, String keyName, String resourceGroupName, Context context)

Deletes the MySQL Server key with the given name.

abstract void deleteById(String id)

Deletes the MySQL Server key with the given name.

abstract void deleteByIdWithResponse(String id, Context context)

Deletes the MySQL Server key with the given name.

abstract ServerKey get(String resourceGroupName, String serverName, String keyName)

Gets a MySQL Server key.

abstract ServerKey getById(String id)

Gets a MySQL Server key.

abstract Response<ServerKey> getByIdWithResponse(String id, Context context)

Gets a MySQL Server key.

abstract Response<ServerKey> getWithResponse(String resourceGroupName, String serverName, String keyName, Context context)

Gets a MySQL Server key.

abstract PagedIterable<ServerKey> list(String resourceGroupName, String serverName)

Gets a list of Server keys.

abstract PagedIterable<ServerKey> list(String resourceGroupName, String serverName, Context context)

Gets a list of Server keys.

Method Details

define

public abstract ServerKey.DefinitionStages.Blank define(String name)

Begins definition for a new ServerKey resource.

Parameters:

name - resource name.

Returns:

the first stage of the new ServerKey definition.

delete

public abstract 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.

delete

public abstract void delete(String serverName, String keyName, String resourceGroupName, 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.

deleteById

public abstract void deleteById(String id)

Deletes the MySQL Server key with the given name.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Deletes the MySQL Server key with the given name.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

get

public abstract ServerKey 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.

getById

public abstract ServerKey getById(String id)

Gets a MySQL Server key.

Parameters:

id - the resource ID.

Returns:

a MySQL Server key along with Response<T>.

getByIdWithResponse

public abstract Response<ServerKey> getByIdWithResponse(String id, Context context)

Gets a MySQL Server key.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

a MySQL Server key along with Response<T>.

getWithResponse

public abstract Response<ServerKey> getWithResponse(String resourceGroupName, String serverName, String keyName, 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<T>.

list

public abstract PagedIterable<ServerKey> 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.

list

public abstract PagedIterable<ServerKey> list(String resourceGroupName, String serverName, 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.

Applies to