Interface WorkspacesClient
public interface WorkspacesClient
An instance of this class provides access to all the operations defined in WorkspacesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String serviceName, String workspaceName, WorkspaceInner resource) Creates new or updates existing workspace.createOrUpdateWithResponse
(String resourceGroupName, String serviceName, String workspaceName, WorkspaceInner resource, com.azure.core.util.Context context) Creates new or updates existing workspace.void
Deletes specified workspace.com.azure.core.http.rest.Response
<Void> deleteWithResponse
(String resourceGroupName, String serviceName, String workspaceName, com.azure.core.util.Context context) Deletes specified workspace.Returns details of the workspace.getWithResponse
(String resourceGroupName, String serviceName, String workspaceName, com.azure.core.util.Context context) Returns details of the workspace.void
Checks if specified workspace exists.com.azure.core.http.rest.Response
<Void> headWithResponse
(String resourceGroupName, String serviceName, String workspaceName, com.azure.core.util.Context context) Checks if specified workspace exists.com.azure.core.http.rest.PagedIterable
<WorkspaceInner> Returns a collection of workspaces.com.azure.core.http.rest.PagedIterable
<WorkspaceInner> list
(String resourceGroupName, String serviceName, String filter, com.azure.core.util.Context context) Returns a collection of workspaces.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<WorkspaceInner> list(String resourceGroupName, String serviceName) Returns a collection of workspaces.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.- Returns:
- the response of a Workspace list operation as paginated response with
PagedIterable
. - 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<WorkspaceInner> list(String resourceGroupName, String serviceName, String filter, com.azure.core.util.Context context) Returns a collection of workspaces.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.filter
- OData filter parameter.context
- The context to associate with this operation.- Returns:
- the response of a Workspace list operation as paginated response with
PagedIterable
. - 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
WorkspacesGetResponse getWithResponse(String resourceGroupName, String serviceName, String workspaceName, com.azure.core.util.Context context) Returns details of the workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.context
- The context to associate with this operation.- Returns:
- workspace entity.
- 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
Returns details of the workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.- Returns:
- workspace entity.
- 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.
-
createOrUpdateWithResponse
WorkspacesCreateOrUpdateResponse createOrUpdateWithResponse(String resourceGroupName, String serviceName, String workspaceName, WorkspaceInner resource, com.azure.core.util.Context context) Creates new or updates existing workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.resource
- Resource create parameters.context
- The context to associate with this operation.- Returns:
- workspace entity.
- 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
WorkspaceInner createOrUpdate(String resourceGroupName, String serviceName, String workspaceName, WorkspaceInner resource) Creates new or updates existing workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.resource
- Resource create parameters.- Returns:
- workspace entity.
- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String serviceName, String workspaceName, com.azure.core.util.Context context) Deletes specified workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.context
- The context to associate with this operation.- Returns:
- the
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.
-
delete
Deletes specified workspace.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.- 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.
-
headWithResponse
com.azure.core.http.rest.Response<Void> headWithResponse(String resourceGroupName, String serviceName, String workspaceName, com.azure.core.util.Context context) Checks if specified workspace exists.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.context
- The context to associate with this operation.- Returns:
- the
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.
-
head
Checks if specified workspace exists.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.- 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.
-