Interface ServiceFabricsClient
public interface ServiceFabricsClient
An instance of this class provides access to all the operations defined in ServiceFabricsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServiceFabricInner>,
ServiceFabricInner> beginCreateOrUpdate
(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric) Create or replace an existing service fabric.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServiceFabricInner>,
ServiceFabricInner> beginCreateOrUpdate
(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric, com.azure.core.util.Context context) Create or replace an existing service fabric.beginDelete
(String resourceGroupName, String labName, String username, String name) Delete service fabric.beginDelete
(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Delete service fabric.beginStart
(String resourceGroupName, String labName, String username, String name) Start a service fabric.beginStart
(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Start a service fabric.Stop a service fabric This operation can take a while to complete.beginStop
(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.createOrUpdate
(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric) Create or replace an existing service fabric.createOrUpdate
(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric, com.azure.core.util.Context context) Create or replace an existing service fabric.void
Delete service fabric.void
delete
(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context) Delete service fabric.Get service fabric.com.azure.core.http.rest.Response<ServiceFabricInner>
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<ServiceFabricInner>
List service fabrics in a given user profile.com.azure.core.http.rest.PagedIterable<ServiceFabricInner>
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<ApplicableScheduleInner>
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.update
(String resourceGroupName, String labName, String username, String name, ServiceFabricFragment serviceFabric) Allows modifying tags of service fabrics.com.azure.core.http.rest.Response<ServiceFabricInner>
updateWithResponse
(String resourceGroupName, String labName, String username, String name, ServiceFabricFragment serviceFabric, com.azure.core.util.Context context) Allows modifying tags of service fabrics.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ServiceFabricInner> 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<ServiceFabricInner> 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<ServiceFabricInner> 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServiceFabricInner>,ServiceFabricInner> beginCreateOrUpdate(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric) Create or replace an existing 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.serviceFabric
- A Service Fabric.- Returns:
- the
SyncPoller
for polling of a 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServiceFabricInner>,ServiceFabricInner> beginCreateOrUpdate(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric, com.azure.core.util.Context context) Create or replace an existing 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.serviceFabric
- A Service Fabric.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a 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.
-
createOrUpdate
ServiceFabricInner createOrUpdate(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric) Create or replace an existing 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.serviceFabric
- A Service Fabric.- Returns:
- a 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.
-
createOrUpdate
ServiceFabricInner createOrUpdate(String resourceGroupName, String labName, String username, String name, ServiceFabricInner serviceFabric, com.azure.core.util.Context context) Create or replace an existing 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.serviceFabric
- A Service Fabric.context
- The context to associate with this operation.- Returns:
- a 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String username, String name) 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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
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.
-
updateWithResponse
com.azure.core.http.rest.Response<ServiceFabricInner> updateWithResponse(String resourceGroupName, String labName, String username, String name, ServiceFabricFragment serviceFabric, com.azure.core.util.Context context) Allows modifying tags of service fabrics. All other properties will be ignored.- 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.serviceFabric
- A Service Fabric.context
- The context to associate with this operation.- Returns:
- a 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.
-
update
ServiceFabricInner update(String resourceGroupName, String labName, String username, String name, ServiceFabricFragment serviceFabric) Allows modifying tags of service fabrics. All other properties will be ignored.- 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.serviceFabric
- A Service Fabric.- Returns:
- a 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.
-
listApplicableSchedulesWithResponse
com.azure.core.http.rest.Response<ApplicableScheduleInner> 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
ApplicableScheduleInner 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.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String username, String name) 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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
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.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String username, String name) 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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-