Interface Labs
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Lab resource.void
Deletes a lab resource.void
deleteById
(String id) Deletes a lab resource.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a lab resource.void
deleteByResourceGroup
(String resourceGroupName, String labName) Deletes a lab resource.Get a lab resource.com.azure.core.http.rest.Response<Lab>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a lab resource.getByResourceGroup
(String resourceGroupName, String labName) Get a lab resource.com.azure.core.http.rest.Response<Lab>
getByResourceGroupWithResponse
(String resourceGroupName, String labName, com.azure.core.util.Context context) Get a lab resource.com.azure.core.http.rest.PagedIterable<Lab>
list()
Get all labs for a subscription.com.azure.core.http.rest.PagedIterable<Lab>
Get all labs for a subscription.com.azure.core.http.rest.PagedIterable<Lab>
listByResourceGroup
(String resourceGroupName) Get all labs for a subscription and resource group.com.azure.core.http.rest.PagedIterable<Lab>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Get all labs for a subscription and resource group.void
Publish or re-publish a lab.void
Publish or re-publish a lab.void
Manually sync the lab group.void
Manually sync the lab group.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Lab> list()Get all labs for a subscription.Returns a list of all labs for a subscription.
- Returns:
- paged list of labs as paginated response with
PagedIterable
. - Throws:
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<Lab> list(String filter, com.azure.core.util.Context context) Get all labs for a subscription.Returns a list of all labs for a subscription.
- Parameters:
filter
- The filter to apply to the operation.context
- The context to associate with this operation.- Returns:
- paged list of labs 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.
-
listByResourceGroup
Get all labs for a subscription and resource group.Returns a list of all labs in a resource group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- paged list of labs 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<Lab> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Get all labs for a subscription and resource group.Returns a list of all labs in a resource group.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- paged list of labs 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.
-
getByResourceGroup
Get a lab resource.Returns the properties of a lab resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.- Returns:
- the lab resource.
- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<Lab> getByResourceGroupWithResponse(String resourceGroupName, String labName, com.azure.core.util.Context context) Get a lab resource.Returns the properties of a lab resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.context
- The context to associate with this operation.- Returns:
- the lab resource 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.
-
deleteByResourceGroup
Deletes a lab resource.Operation to delete a lab resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.- 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 a lab resource.Operation to delete a lab resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.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.
-
publish
Publish or re-publish a lab.Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.- 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.
-
publish
Publish or re-publish a lab.Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.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.
-
syncGroup
Manually sync the lab group.Action used to manually kick off an AAD group sync job.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.- 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.
-
syncGroup
Manually sync the lab group.Action used to manually kick off an AAD group sync job.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.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.
-
getById
Get a lab resource.Returns the properties of a lab resource.
- Parameters:
id
- the resource ID.- Returns:
- the lab resource 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<Lab> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a lab resource.Returns the properties of a lab resource.
- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the lab resource 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
Deletes a lab resource.Operation to delete a lab resource.
- 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
Deletes a lab resource.Operation to delete a lab resource.
- 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 Lab resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Lab definition.
-