Interface ServiceFabrics
public interface ServiceFabrics
Resource collection API of ServiceFabrics.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ServiceFabric resource.void
Delete service fabric.void
delete
(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Delete service fabric.void
deleteById
(String id) Delete service fabric.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete service fabric.Get service fabric.Get service fabric.com.azure.core.http.rest.Response<ServiceFabric>
getByIdWithResponse
(String id, String expand, com.azure.core.util.Context context) Get service fabric.com.azure.core.http.rest.Response<ServiceFabric>
getWithResponse
(String resourceGroupName, String labName, String username, String name, String expand, com.azure.core.util.Context context) Get service fabric.com.azure.core.http.rest.PagedIterable<ServiceFabric>
List service fabrics in a given user profile.com.azure.core.http.rest.PagedIterable<ServiceFabric>
list
(String resourceGroupName, String labName, String username, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context) List service fabrics in a given user profile.listApplicableSchedules
(String resourceGroupName, String labName, String username, String name) Lists the applicable start/stop schedules, if any.com.azure.core.http.rest.Response<ApplicableSchedule>
listApplicableSchedulesWithResponse
(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Lists the applicable start/stop schedules, if any.void
Start a service fabric.void
start
(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Start a service fabric.void
Stop a service fabric This operation can take a while to complete.void
stop
(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Stop a service fabric This operation can take a while to complete.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ServiceFabric> list(String resourceGroupName, String labName, String username) List service fabrics in a given user profile.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.- Returns:
- the response of a 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<ServiceFabric> list(String resourceGroupName, String labName, String username, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context) List service fabrics in a given user profile.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.expand
- Specify the $expand query. Example: 'properties($expand=applicableSchedule)'.filter
- The filter to apply to the operation. Example: '$filter=contains(name,'myName').top
- The maximum number of resources to return from the operation. Example: '$top=10'.orderby
- The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.context
- The context to associate with this operation.- Returns:
- the response of a 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
com.azure.core.http.rest.Response<ServiceFabric> getWithResponse(String resourceGroupName, String labName, String username, String name, String expand, com.azure.core.util.Context context) Get service fabric.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.expand
- Specify the $expand query. Example: 'properties($expand=applicableSchedule)'.context
- The context to associate with this operation.- Returns:
- service fabric 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
Get service fabric.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.- Returns:
- service fabric.
- 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
Delete service fabric. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.- 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 labName, String username, String name, com.azure.core.util.Context context) Delete service fabric. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.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.
-
listApplicableSchedulesWithResponse
com.azure.core.http.rest.Response<ApplicableSchedule> listApplicableSchedulesWithResponse(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Lists the applicable start/stop schedules, if any.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.context
- The context to associate with this operation.- Returns:
- schedules applicable to a virtual machine 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.
-
listApplicableSchedules
ApplicableSchedule listApplicableSchedules(String resourceGroupName, String labName, String username, String name) Lists the applicable start/stop schedules, if any.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.- Returns:
- schedules applicable to a virtual machine.
- 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.
-
start
Start a service fabric. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.- 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.
-
start
void start(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Start a service fabric. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.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.
-
stop
Stop a service fabric This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.- 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.
-
stop
void stop(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Stop a service fabric This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the service fabric.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 service fabric.- Parameters:
id
- the resource ID.- Returns:
- service fabric 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<ServiceFabric> getByIdWithResponse(String id, String expand, com.azure.core.util.Context context) Get service fabric.- Parameters:
id
- the resource ID.expand
- Specify the $expand query. Example: 'properties($expand=applicableSchedule)'.context
- The context to associate with this operation.- Returns:
- service fabric 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
Delete service fabric. This operation can take a while to complete.- 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
Delete service fabric. This operation can take a while to complete.- 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 ServiceFabric resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ServiceFabric definition.
-