public interface Keys
Modifier and Type | Method and Description |
---|---|
Key.DefinitionStages.Blank |
define(String name)
Begins definition for a new Key resource.
|
Key |
delete(String resourceGroupName,
String workspaceName,
String keyName)
Deletes a workspace key.
|
Key |
deleteById(String id)
Deletes a workspace key.
|
com.azure.core.http.rest.Response<Key> |
deleteByIdWithResponse(String id,
com.azure.core.util.Context context)
Deletes a workspace key.
|
com.azure.core.http.rest.Response<Key> |
deleteWithResponse(String resourceGroupName,
String workspaceName,
String keyName,
com.azure.core.util.Context context)
Deletes a workspace key.
|
Key |
get(String resourceGroupName,
String workspaceName,
String keyName)
Gets a workspace key.
|
Key |
getById(String id)
Gets a workspace key.
|
com.azure.core.http.rest.Response<Key> |
getByIdWithResponse(String id,
com.azure.core.util.Context context)
Gets a workspace key.
|
com.azure.core.http.rest.Response<Key> |
getWithResponse(String resourceGroupName,
String workspaceName,
String keyName,
com.azure.core.util.Context context)
Gets a workspace key.
|
com.azure.core.http.rest.PagedIterable<Key> |
listByWorkspace(String resourceGroupName,
String workspaceName)
Returns a list of keys in a workspace.
|
com.azure.core.http.rest.PagedIterable<Key> |
listByWorkspace(String resourceGroupName,
String workspaceName,
com.azure.core.util.Context context)
Returns a list of keys in a workspace.
|
com.azure.core.http.rest.PagedIterable<Key> listByWorkspace(String resourceGroupName, String workspaceName)
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.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.com.azure.core.http.rest.PagedIterable<Key> listByWorkspace(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.context
- The context to associate with this operation.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.Key get(String resourceGroupName, String workspaceName, String keyName)
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.keyName
- The name of the workspace key.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.com.azure.core.http.rest.Response<Key> getWithResponse(String resourceGroupName, String workspaceName, String keyName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.keyName
- The name of the workspace key.context
- The context to associate with this operation.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.Key delete(String resourceGroupName, String workspaceName, String keyName)
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.keyName
- The name of the workspace key.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.com.azure.core.http.rest.Response<Key> deleteWithResponse(String resourceGroupName, String workspaceName, String keyName, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.keyName
- The name of the workspace key.context
- The context to associate with this operation.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.Key getById(String id)
id
- the resource ID.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.com.azure.core.http.rest.Response<Key> getByIdWithResponse(String id, com.azure.core.util.Context context)
id
- the resource ID.context
- The context to associate with this operation.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.Key deleteById(String id)
id
- the resource ID.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.com.azure.core.http.rest.Response<Key> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
id
- the resource ID.context
- The context to associate with this operation.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.Key.DefinitionStages.Blank define(String name)
name
- resource name.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.