BillingSubscriptionsClient Interface
public interface BillingSubscriptionsClient
An instance of this class provides access to all the operations defined in BillingSubscriptionsClient.
Method Summary
Method Details
beginCancel
public abstract SyncPoller<PollResult<Void>,Void> beginCancel(String billingAccountName, String billingSubscriptionName, CancelSubscriptionRequest parameters)
Cancels a usage-based subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement.
Parameters:
Returns:
beginCancel
public abstract SyncPoller<PollResult<Void>,Void> beginCancel(String billingAccountName, String billingSubscriptionName, CancelSubscriptionRequest parameters, Context context)
Cancels a usage-based subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement.
Parameters:
Returns:
beginDelete
public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String billingAccountName, String billingSubscriptionName)
Cancels a billing subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement or Microsoft Customer Agreement.
Parameters:
Returns:
beginDelete
public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String billingAccountName, String billingSubscriptionName, Context context)
Cancels a billing subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement or Microsoft Customer Agreement.
Parameters:
Returns:
beginMerge
public abstract SyncPoller<PollResult<BillingSubscriptionInner>,BillingSubscriptionInner> beginMerge(String billingAccountName, String billingSubscriptionName, BillingSubscriptionMergeRequest parameters)
Merges the billing subscription provided in the request with a target billing subscription.
Parameters:
Returns:
beginMerge
public abstract SyncPoller<PollResult<BillingSubscriptionInner>,BillingSubscriptionInner> beginMerge(String billingAccountName, String billingSubscriptionName, BillingSubscriptionMergeRequest parameters, Context context)
Merges the billing subscription provided in the request with a target billing subscription.
Parameters:
Returns:
beginMove
public abstract SyncPoller<PollResult<BillingSubscriptionInner>,BillingSubscriptionInner> beginMove(String billingAccountName, String billingSubscriptionName, MoveBillingSubscriptionRequest parameters)
Moves charges for a subscription to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
beginMove
public abstract SyncPoller<PollResult<BillingSubscriptionInner>,BillingSubscriptionInner> beginMove(String billingAccountName, String billingSubscriptionName, MoveBillingSubscriptionRequest parameters, Context context)
Moves charges for a subscription to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
beginSplit
public abstract SyncPoller<PollResult<BillingSubscriptionInner>,BillingSubscriptionInner> beginSplit(String billingAccountName, String billingSubscriptionName, BillingSubscriptionSplitRequest parameters)
Splits a subscription into a new subscription with quantity less than current subscription quantity and not equal to 0.
Parameters:
Returns:
beginSplit
public abstract SyncPoller<PollResult<BillingSubscriptionInner>,BillingSubscriptionInner> beginSplit(String billingAccountName, String billingSubscriptionName, BillingSubscriptionSplitRequest parameters, Context context)
Splits a subscription into a new subscription with quantity less than current subscription quantity and not equal to 0.
Parameters:
Returns:
beginUpdate
public abstract SyncPoller<PollResult<BillingSubscriptionInner>,BillingSubscriptionInner> beginUpdate(String billingAccountName, String billingSubscriptionName, BillingSubscriptionPatch parameters)
Updates the properties of a billing subscription.
Parameters:
Returns:
beginUpdate
public abstract SyncPoller<PollResult<BillingSubscriptionInner>,BillingSubscriptionInner> beginUpdate(String billingAccountName, String billingSubscriptionName, BillingSubscriptionPatch parameters, Context context)
Updates the properties of a billing subscription.
Parameters:
Returns:
cancel
public abstract void cancel(String billingAccountName, String billingSubscriptionName, CancelSubscriptionRequest parameters)
Cancels a usage-based subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement.
Parameters:
cancel
public abstract void cancel(String billingAccountName, String billingSubscriptionName, CancelSubscriptionRequest parameters, Context context)
Cancels a usage-based subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement.
Parameters:
delete
public abstract void delete(String billingAccountName, String billingSubscriptionName)
Cancels a billing subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement or Microsoft Customer Agreement.
Parameters:
delete
public abstract void delete(String billingAccountName, String billingSubscriptionName, Context context)
Cancels a billing subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement or Microsoft Customer Agreement.
Parameters:
get
public abstract BillingSubscriptionInner get(String billingAccountName, String billingSubscriptionName)
Gets a subscription by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement, Microsoft Partner Agreement, and Enterprise Agreement.
Parameters:
Returns:
getByBillingProfile
public abstract BillingSubscriptionInner getByBillingProfile(String billingAccountName, String billingProfileName, String billingSubscriptionName)
Gets a subscription by its billing profile and ID. The operation is supported for billing accounts with agreement type Enterprise Agreement.
Parameters:
Returns:
getByBillingProfileWithResponse
public abstract Response<BillingSubscriptionInner> getByBillingProfileWithResponse(String billingAccountName, String billingProfileName, String billingSubscriptionName, String expand, Context context)
Gets a subscription by its billing profile and ID. The operation is supported for billing accounts with agreement type Enterprise Agreement.
Parameters:
Reseller, ConsumptionCostCenter, LastMonthCharges and
MonthToDateCharges.
Returns:
getWithResponse
public abstract Response<BillingSubscriptionInner> getWithResponse(String billingAccountName, String billingSubscriptionName, String expand, Context context)
Gets a subscription by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement, Microsoft Partner Agreement, and Enterprise Agreement.
Parameters:
Reseller, ConsumptionCostCenter, LastMonthCharges and
MonthToDateCharges.
Returns:
listByBillingAccount
public abstract PagedIterable<BillingSubscriptionInner> listByBillingAccount(String billingAccountName)
Lists the subscriptions for a billing account.
Parameters:
Returns:
listByBillingAccount
public abstract PagedIterable<BillingSubscriptionInner> listByBillingAccount(String billingAccountName, Boolean includeDeleted, Boolean includeTenantSubscriptions, Boolean includeFailed, String expand, String filter, String orderBy, Long top, Long skip, Boolean count, String search, Context context)
Lists the subscriptions for a billing account.
Parameters:
Reseller, ConsumptionCostCenter, LastMonthCharges and
MonthToDateCharges.
Returns:
listByBillingProfile
public abstract PagedIterable<BillingSubscriptionInner> listByBillingProfile(String billingAccountName, String billingProfileName)
Lists the subscriptions that are billed to a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
Parameters:
Returns:
listByBillingProfile
public abstract PagedIterable<BillingSubscriptionInner> listByBillingProfile(String billingAccountName, String billingProfileName, Boolean includeDeleted, String expand, String filter, String orderBy, Long top, Long skip, Boolean count, String search, Context context)
Lists the subscriptions that are billed to a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
Parameters:
Reseller, ConsumptionCostCenter, LastMonthCharges and
MonthToDateCharges.
Returns:
listByCustomer
public abstract PagedIterable<BillingSubscriptionInner> listByCustomer(String billingAccountName, String billingProfileName, String customerName)
Lists the subscriptions for a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
Parameters:
Returns:
listByCustomer
public abstract PagedIterable<BillingSubscriptionInner> listByCustomer(String billingAccountName, String billingProfileName, String customerName, Boolean includeDeleted, String expand, String filter, String orderBy, Long top, Long skip, Boolean count, String search, Context context)
Lists the subscriptions for a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
Parameters:
Reseller, ConsumptionCostCenter, LastMonthCharges and
MonthToDateCharges.
Returns:
listByCustomerAtBillingAccount
public abstract PagedIterable<BillingSubscriptionInner> listByCustomerAtBillingAccount(String billingAccountName, String customerName)
Lists the subscriptions for a customer at billing account level. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
Parameters:
Returns:
listByCustomerAtBillingAccount
public abstract PagedIterable<BillingSubscriptionInner> listByCustomerAtBillingAccount(String billingAccountName, String customerName, Boolean includeDeleted, String expand, String filter, String orderBy, Long top, Long skip, Boolean count, String search, Context context)
Lists the subscriptions for a customer at billing account level. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
Parameters:
Reseller, ConsumptionCostCenter, LastMonthCharges and
MonthToDateCharges.
Returns:
listByEnrollmentAccount
public abstract PagedIterable<BillingSubscriptionInner> listByEnrollmentAccount(String billingAccountName, String enrollmentAccountName)
Lists the subscriptions for an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
Parameters:
Returns:
listByEnrollmentAccount
public abstract PagedIterable<BillingSubscriptionInner> listByEnrollmentAccount(String billingAccountName, String enrollmentAccountName, String filter, String orderBy, Long top, Long skip, Boolean count, String search, Context context)
Lists the subscriptions for an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
Parameters:
Returns:
listByInvoiceSection
public abstract PagedIterable<BillingSubscriptionInner> listByInvoiceSection(String billingAccountName, String billingProfileName, String invoiceSectionName)
Lists the subscriptions that are billed to an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
listByInvoiceSection
public abstract PagedIterable<BillingSubscriptionInner> listByInvoiceSection(String billingAccountName, String billingProfileName, String invoiceSectionName, Boolean includeDeleted, String expand, String filter, String orderBy, Long top, Long skip, Boolean count, String search, Context context)
Lists the subscriptions that are billed to an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Reseller, ConsumptionCostCenter, LastMonthCharges and
MonthToDateCharges.
Returns:
merge
public abstract BillingSubscriptionInner merge(String billingAccountName, String billingSubscriptionName, BillingSubscriptionMergeRequest parameters)
Merges the billing subscription provided in the request with a target billing subscription.
Parameters:
Returns:
merge
public abstract BillingSubscriptionInner merge(String billingAccountName, String billingSubscriptionName, BillingSubscriptionMergeRequest parameters, Context context)
Merges the billing subscription provided in the request with a target billing subscription.
Parameters:
Returns:
move
public abstract BillingSubscriptionInner move(String billingAccountName, String billingSubscriptionName, MoveBillingSubscriptionRequest parameters)
Moves charges for a subscription to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
move
public abstract BillingSubscriptionInner move(String billingAccountName, String billingSubscriptionName, MoveBillingSubscriptionRequest parameters, Context context)
Moves charges for a subscription to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
split
public abstract BillingSubscriptionInner split(String billingAccountName, String billingSubscriptionName, BillingSubscriptionSplitRequest parameters)
Splits a subscription into a new subscription with quantity less than current subscription quantity and not equal to 0.
Parameters:
Returns:
split
public abstract BillingSubscriptionInner split(String billingAccountName, String billingSubscriptionName, BillingSubscriptionSplitRequest parameters, Context context)
Splits a subscription into a new subscription with quantity less than current subscription quantity and not equal to 0.
Parameters:
Returns:
update
public abstract BillingSubscriptionInner update(String billingAccountName, String billingSubscriptionName, BillingSubscriptionPatch parameters)
Updates the properties of a billing subscription.
Parameters:
Returns:
update
public abstract BillingSubscriptionInner update(String billingAccountName, String billingSubscriptionName, BillingSubscriptionPatch parameters, Context context)
Updates the properties of a billing subscription.
Parameters:
Returns:
validateMoveEligibility
public abstract MoveBillingSubscriptionEligibilityResultInner validateMoveEligibility(String billingAccountName, String billingSubscriptionName, MoveBillingSubscriptionRequest parameters)
Validates if charges for a subscription can be moved to a new invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
validateMoveEligibilityWithResponse
public abstract Response<MoveBillingSubscriptionEligibilityResultInner> validateMoveEligibilityWithResponse(String billingAccountName, String billingSubscriptionName, MoveBillingSubscriptionRequest parameters, Context context)
Validates if charges for a subscription can be moved to a new invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns: