ServiceFabricsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:service_fabrics> attribute.
Constructor
ServiceFabricsOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Create or replace an existing service fabric. This operation can take a while to complete. |
| begin_delete |
Delete service fabric. This operation can take a while to complete. |
| begin_start |
Start a service fabric. This operation can take a while to complete. |
| begin_stop |
Stop a service fabric This operation can take a while to complete. |
| get |
Get service fabric. |
| list |
List service fabrics in a given user profile. |
| list_applicable_schedules |
Lists the applicable start/stop schedules, if any. |
| update |
Allows modifying tags of service fabrics. All other properties will be ignored. |
begin_create_or_update
Create or replace an existing service fabric. This operation can take a while to complete.
begin_create_or_update(resource_group_name: str, lab_name: str, user_name: str, name: str, service_fabric: _models.ServiceFabric, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.ServiceFabric]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. Required. |
|
lab_name
Required
|
The name of the lab. Required. |
|
user_name
Required
|
The name of the user profile. Required. |
|
name
Required
|
The name of the service fabric. Required. |
|
service_fabric
Required
|
A Service Fabric. Is either a ServiceFabric type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns either ServiceFabric or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_delete
Delete service fabric. This operation can take a while to complete.
begin_delete(resource_group_name: str, lab_name: str, user_name: str, name: str, **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. Required. |
|
lab_name
Required
|
The name of the lab. Required. |
|
user_name
Required
|
The name of the user profile. Required. |
|
name
Required
|
The name of the service fabric. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_start
Start a service fabric. This operation can take a while to complete.
begin_start(resource_group_name: str, lab_name: str, user_name: str, name: str, **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. Required. |
|
lab_name
Required
|
The name of the lab. Required. |
|
user_name
Required
|
The name of the user profile. Required. |
|
name
Required
|
The name of the service fabric. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_stop
Stop a service fabric This operation can take a while to complete.
begin_stop(resource_group_name: str, lab_name: str, user_name: str, name: str, **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. Required. |
|
lab_name
Required
|
The name of the lab. Required. |
|
user_name
Required
|
The name of the user profile. Required. |
|
name
Required
|
The name of the service fabric. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Get service fabric.
get(resource_group_name: str, lab_name: str, user_name: str, name: str, expand: str | None = None, **kwargs: Any) -> ServiceFabric
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. Required. |
|
lab_name
Required
|
The name of the lab. Required. |
|
user_name
Required
|
The name of the user profile. Required. |
|
name
Required
|
The name of the service fabric. Required. |
|
expand
|
Specify the $expand query. Example: 'properties($expand=applicableSchedule)'. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
ServiceFabric or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list
List service fabrics in a given user profile.
list(resource_group_name: str, lab_name: str, user_name: str, expand: str | None = None, filter: str | None = None, top: int | None = None, orderby: str | None = None, **kwargs: Any) -> ItemPaged[ServiceFabric]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. Required. |
|
lab_name
Required
|
The name of the lab. Required. |
|
user_name
Required
|
The name of the user profile. Required. |
|
expand
|
Specify the $expand query. Example: 'properties($expand=applicableSchedule)'. Default value is None. Default value: None
|
|
filter
|
The filter to apply to the operation. Example: '$filter=contains(name,'myName'). Default value is None. Default value: None
|
|
top
|
The maximum number of resources to return from the operation. Example: '$top=10'. Default value is None. Default value: None
|
|
orderby
|
The ordering expression for the results, using OData notation. Example: '$orderby=name desc'. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either ServiceFabric or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_applicable_schedules
Lists the applicable start/stop schedules, if any.
list_applicable_schedules(resource_group_name: str, lab_name: str, user_name: str, name: str, **kwargs: Any) -> ApplicableSchedule
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. Required. |
|
lab_name
Required
|
The name of the lab. Required. |
|
user_name
Required
|
The name of the user profile. Required. |
|
name
Required
|
The name of the service fabric. Required. |
Returns
| Type | Description |
|---|---|
|
ApplicableSchedule or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
update
Allows modifying tags of service fabrics. All other properties will be ignored.
update(resource_group_name: str, lab_name: str, user_name: str, name: str, tags: dict[str, str] | None = None, **kwargs: Any) -> ServiceFabric
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. Required. |
|
lab_name
Required
|
The name of the lab. Required. |
|
user_name
Required
|
The name of the user profile. Required. |
|
name
Required
|
The name of the service fabric. Required. |
|
tags
|
The tags of the resource. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
ServiceFabric or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.devtestlabs.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv125\\Lib\\site-packages\\azure\\mgmt\\devtestlabs\\models\\__init__.py'>