Interface ServiceFabric
public interface ServiceFabric
An immutable client-side representation of ServiceFabric.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the ServiceFabric definition.static interface
The ServiceFabric definition stages.static interface
The template for ServiceFabric update.static interface
The ServiceFabric update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the applicableSchedule property: The applicable schedule for the virtual machine.Gets the environmentId property: The resource id of the environment under which the service fabric resource is present.Gets the externalServiceFabricId property: The backing service fabric resource's id.id()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.devtestlabs.fluent.models.ServiceFabricInner object.Lists the applicable start/stop schedules, if any.com.azure.core.http.rest.Response<ApplicableSchedule>
listApplicableSchedulesWithResponse
(com.azure.core.util.Context context) Lists the applicable start/stop schedules, if any.location()
Gets the location property: The geo-location where the resource lives.name()
Gets the name property: The name of the resource.Gets the provisioningState property: The provisioning status of the resource.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Region
region()
Gets the region of the resource.Gets the name of the resource region.Gets the name of the resource group.void
start()
Start a service fabric.void
start
(com.azure.core.util.Context context) Start a service fabric.void
stop()
Stop a service fabric This operation can take a while to complete.void
stop
(com.azure.core.util.Context context) Stop a service fabric This operation can take a while to complete.tags()
Gets the tags property: Resource tags.type()
Gets the type property: The type of the resource.Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).update()
Begins update for the ServiceFabric resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
location
String location()Gets the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
tags
Gets the tags property: Resource tags.- Returns:
- the tags value.
-
externalServiceFabricId
String externalServiceFabricId()Gets the externalServiceFabricId property: The backing service fabric resource's id.- Returns:
- the externalServiceFabricId value.
-
environmentId
String environmentId()Gets the environmentId property: The resource id of the environment under which the service fabric resource is present.- Returns:
- the environmentId value.
-
applicableSchedule
ApplicableSchedule applicableSchedule()Gets the applicableSchedule property: The applicable schedule for the virtual machine.- Returns:
- the applicableSchedule value.
-
provisioningState
String provisioningState()Gets the provisioningState property: The provisioning status of the resource.- Returns:
- the provisioningState value.
-
uniqueIdentifier
String uniqueIdentifier()Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).- Returns:
- the uniqueIdentifier value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
ServiceFabricInner innerModel()Gets the inner com.azure.resourcemanager.devtestlabs.fluent.models.ServiceFabricInner object.- Returns:
- the inner object.
-
update
ServiceFabric.Update update()Begins update for the ServiceFabric resource.- Returns:
- the stage of resource update.
-
refresh
ServiceFabric refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-
listApplicableSchedulesWithResponse
com.azure.core.http.rest.Response<ApplicableSchedule> listApplicableSchedulesWithResponse(com.azure.core.util.Context context) Lists the applicable start/stop schedules, if any.- Parameters:
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()Lists the applicable start/stop schedules, if any.- Returns:
- schedules applicable to a virtual machine.
- 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.
-
start
void start()Start a service fabric. This operation can take a while to complete.- 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.
-
start
void start(com.azure.core.util.Context context) Start a service fabric. This operation can take a while to complete.- Parameters:
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
void stop()Stop a service fabric This operation can take a while to complete.- 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.
-
stop
void stop(com.azure.core.util.Context context) Stop a service fabric This operation can take a while to complete.- Parameters:
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.
-