VipSwapOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:vip_swap> attribute.
Constructor
VipSwapOperations(*args, **kwargs)
Methods
| begin_create |
Performs vip swap operation on swappable cloud services. |
| get |
Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production. |
| list |
Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production. |
begin_create
Performs vip swap operation on swappable cloud services.
begin_create(group_name: str, resource_name: str, parameters: _models.SwapResource, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
group_name
Required
|
The name of the resource group. Required. |
|
resource_name
Required
|
The name of the cloud service. Required. |
|
parameters
Required
|
SwapResource object where slot type should be the target slot after vip swap for the specified cloud service. Is either a SwapResource type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production.
get(group_name: str, resource_name: str, **kwargs: Any) -> SwapResource
Parameters
| Name | Description |
|---|---|
|
group_name
Required
|
The name of the resource group. Required. |
|
resource_name
Required
|
The name of the cloud service. Required. |
Returns
| Type | Description |
|---|---|
|
SwapResource or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list
Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production.
list(group_name: str, resource_name: str, **kwargs: Any) -> SwapResourceListResult
Parameters
| Name | Description |
|---|---|
|
group_name
Required
|
The name of the resource group. Required. |
|
resource_name
Required
|
The name of the cloud service. Required. |
Returns
| Type | Description |
|---|---|
|
SwapResourceListResult or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.network.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv177\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>