MigrationConfigsOperations Class

MigrationConfigsOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
MigrationConfigsOperations

Constructor

MigrationConfigsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

begin_create_and_start_migration

Creates Migration configuration and starts migration of entities from Standard to Premium namespace.

complete_migration

This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when entity migration is in-progress.

delete

Deletes a MigrationConfiguration.

get

Retrieves Migration Config.

list

Gets all migrationConfigurations.

revert

This operation reverts Migration.

begin_create_and_start_migration

Creates Migration configuration and starts migration of entities from Standard to Premium namespace.

async begin_create_and_start_migration(resource_group_name: str, namespace_name: str, config_name: Union[str, azure.mgmt.servicebus.v2017_04_01.models._service_bus_management_client_enums.MigrationConfigurationName], parameters: azure.mgmt.servicebus.v2017_04_01.models._models_py3.MigrationConfigProperties, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.servicebus.v2017_04_01.models._models_py3.MigrationConfigProperties]

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

config_name
str or <xref:azure.mgmt.servicebus.models.MigrationConfigurationName>
Required

The configuration name. Should always be "$default".

parameters
<xref:azure.mgmt.servicebus.models.MigrationConfigProperties>
Required

Parameters required to create Migration Configuration.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either MigrationConfigProperties or the result of cls(response)

Return type

AsyncLROPoller[<xref:azure.mgmt.servicebus.models.MigrationConfigProperties>]

Exceptions

complete_migration

This operation Completes Migration of entities by pointing the connection strings to Premium namespace and any entities created after the operation will be under Premium Namespace. CompleteMigration operation will fail when entity migration is in-progress.

async complete_migration(resource_group_name: str, namespace_name: str, config_name: Union[str, azure.mgmt.servicebus.v2017_04_01.models._service_bus_management_client_enums.MigrationConfigurationName], **kwargs) -> None

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

config_name
str or <xref:azure.mgmt.servicebus.models.MigrationConfigurationName>
Required

The configuration name. Should always be "$default".

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

delete

Deletes a MigrationConfiguration.

async delete(resource_group_name: str, namespace_name: str, config_name: Union[str, azure.mgmt.servicebus.v2017_04_01.models._service_bus_management_client_enums.MigrationConfigurationName], **kwargs) -> None

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

config_name
str or <xref:azure.mgmt.servicebus.models.MigrationConfigurationName>
Required

The configuration name. Should always be "$default".

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Retrieves Migration Config.

async get(resource_group_name: str, namespace_name: str, config_name: Union[str, azure.mgmt.servicebus.v2017_04_01.models._service_bus_management_client_enums.MigrationConfigurationName], **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.MigrationConfigProperties

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

config_name
str or <xref:azure.mgmt.servicebus.models.MigrationConfigurationName>
Required

The configuration name. Should always be "$default".

cls
callable

A custom type or function that will be passed the direct response

Returns

MigrationConfigProperties, or the result of cls(response)

Return type

<xref:azure.mgmt.servicebus.models.MigrationConfigProperties>

Exceptions

list

Gets all migrationConfigurations.

list(resource_group_name: str, namespace_name: str, **kwargs) -> AsyncIterable[azure.mgmt.servicebus.v2017_04_01.models._models_py3.MigrationConfigListResult]

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either MigrationConfigListResult or the result of cls(response)

Return type

AsyncItemPaged[<xref:azure.mgmt.servicebus.models.MigrationConfigListResult>]

Exceptions

revert

This operation reverts Migration.

async revert(resource_group_name: str, namespace_name: str, config_name: Union[str, azure.mgmt.servicebus.v2017_04_01.models._service_bus_management_client_enums.MigrationConfigurationName], **kwargs) -> None

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

config_name
str or <xref:azure.mgmt.servicebus.models.MigrationConfigurationName>
Required

The configuration name. Should always be "$default".

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.servicebus.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\servicebus\\models.py'>