VipSwapOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<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
str

Required.

resource_name
Required
str

The name of the cloud service. Required.

parameters
Required
SwapResource or <xref:JSON> or IO[bytes]

SwapResource object where slot type should be the target slot after vip swap for the specified cloud service. Is one of the following types: SwapResource, JSON, IO[bytes] Required.

Returns

Type Description

An instance of LROPoller that returns None

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
str

Required.

resource_name
Required
str

The name of the cloud service. Required.

Returns

Type Description

SwapResource. The SwapResource is compatible with MutableMapping

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
str

Required.

resource_name
Required
str

The name of the cloud service. Required.

Returns

Type Description

SwapResourceListResult. The SwapResourceListResult is compatible with MutableMapping

Exceptions

Type Description