PartnerTransfersOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

BillingManagementClient's

<xref:partner_transfers> attribute.

Constructor

PartnerTransfersOperations(*args, **kwargs)

Methods

cancel

Cancels a transfer request. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

get

Gets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

initiate

Sends a request to a user in a customer's billing account to transfer billing ownership of their subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

list

Lists the transfer requests sent to a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

cancel

Cancels a transfer request. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

async cancel(billing_account_name: str, billing_profile_name: str, customer_name: str, transfer_name: str, **kwargs: Any) -> PartnerTransferDetails

Parameters

Name Description
billing_account_name
Required
str

The ID that uniquely identifies a billing account. Required.

billing_profile_name
Required
str

The ID that uniquely identifies a billing profile. Required.

customer_name
Required
str

The ID that uniquely identifies a customer. Required.

transfer_name
Required
str

The ID that uniquely identifies a transfer request. Required.

Returns

Type Description

PartnerTransferDetails. The PartnerTransferDetails is compatible with MutableMapping

Exceptions

Type Description

get

Gets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

async get(billing_account_name: str, billing_profile_name: str, customer_name: str, transfer_name: str, **kwargs: Any) -> PartnerTransferDetails

Parameters

Name Description
billing_account_name
Required
str

The ID that uniquely identifies a billing account. Required.

billing_profile_name
Required
str

The ID that uniquely identifies a billing profile. Required.

customer_name
Required
str

The ID that uniquely identifies a customer. Required.

transfer_name
Required
str

The ID that uniquely identifies a transfer request. Required.

Returns

Type Description

PartnerTransferDetails. The PartnerTransferDetails is compatible with MutableMapping

Exceptions

Type Description

initiate

Sends a request to a user in a customer's billing account to transfer billing ownership of their subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

async initiate(billing_account_name: str, billing_profile_name: str, customer_name: str, transfer_name: str, parameters: _models.PartnerInitiateTransferRequest, *, content_type: str = 'application/json', **kwargs: Any) -> _models.PartnerTransferDetails

Parameters

Name Description
billing_account_name
Required
str

The ID that uniquely identifies a billing account. Required.

billing_profile_name
Required
str

The ID that uniquely identifies a billing profile. Required.

customer_name
Required
str

The ID that uniquely identifies a customer. Required.

transfer_name
Required
str

The ID that uniquely identifies a transfer request. Required.

parameters
Required

Request parameters that are provided to the initiate transfer operation. Is one of the following types: PartnerInitiateTransferRequest, JSON, IO[bytes] Required.

Returns

Type Description

PartnerTransferDetails. The PartnerTransferDetails is compatible with MutableMapping

Exceptions

Type Description

list

Lists the transfer requests sent to a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

list(billing_account_name: str, billing_profile_name: str, customer_name: str, **kwargs: Any) -> AsyncItemPaged[PartnerTransferDetails]

Parameters

Name Description
billing_account_name
Required
str

The ID that uniquely identifies a billing account. Required.

billing_profile_name
Required
str

The ID that uniquely identifies a billing profile. Required.

customer_name
Required
str

The ID that uniquely identifies a customer. Required.

Returns

Type Description

An iterator like instance of PartnerTransferDetails

Exceptions

Type Description