Interface Capabilities
public interface Capabilities
Resource collection API of Capabilities.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Capability resource.voidDisables and deletes a capability.voiddelete(String resourceGroupName, String spaceName, String capabilityName, com.azure.core.util.Context context) Disables and deletes a capability.voiddeleteById(String id) Disables and deletes a capability.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Disables and deletes a capability.Gets a capability.Gets a capability.com.azure.core.http.rest.Response<Capability> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a capability.com.azure.core.http.rest.Response<Capability> getWithResponse(String resourceGroupName, String spaceName, String capabilityName, com.azure.core.util.Context context) Gets a capability.com.azure.core.http.rest.PagedIterable<Capability> listByWorkloadSpace(String resourceGroupName, String spaceName) Lists capabilities in a workload space.com.azure.core.http.rest.PagedIterable<Capability> listByWorkloadSpace(String resourceGroupName, String spaceName, com.azure.core.util.Context context) Lists capabilities in a workload space.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<Capability> getWithResponse(String resourceGroupName, String spaceName, String capabilityName, com.azure.core.util.Context context) Gets a capability.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.capabilityName- The name of the Capability.context- The context to associate with this operation.- Returns:
- a capability 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.
-
get
Gets a capability.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.capabilityName- The name of the Capability.- Returns:
- a capability.
- 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
Disables and deletes a capability.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.capabilityName- The name of the Capability.- 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 resourceGroupName, String spaceName, String capabilityName, com.azure.core.util.Context context) Disables and deletes a capability.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.capabilityName- The name of the Capability.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.
-
listByWorkloadSpace
com.azure.core.http.rest.PagedIterable<Capability> listByWorkloadSpace(String resourceGroupName, String spaceName) Lists capabilities in a workload space.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.- Returns:
- the response of a Capability 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.
-
listByWorkloadSpace
com.azure.core.http.rest.PagedIterable<Capability> listByWorkloadSpace(String resourceGroupName, String spaceName, com.azure.core.util.Context context) Lists capabilities in a workload space.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.spaceName- The name of the WorkloadSpace.context- The context to associate with this operation.- Returns:
- the response of a Capability 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.
-
getById
Gets a capability.- Parameters:
id- the resource ID.- Returns:
- a capability 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Capability> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a capability.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a capability 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.
-
deleteById
Disables and deletes a capability.- Parameters:
id- the resource ID.- 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.
-
deleteByIdWithResponse
Disables and deletes a capability.- Parameters:
id- the resource ID.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.
-
define
Begins definition for a new Capability resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new Capability definition.
-