Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Billing' (#6344)
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#6039'
REST Spec PR Author 'amagams'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and dsgouda committed May 21, 2019
1 parent 9da9a96 commit 5ecfebb
Show file tree
Hide file tree
Showing 5 changed files with 474 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ public partial class BillingManagementClient : ServiceClient<BillingManagementCl
public virtual IBillingAccountsOperations BillingAccounts { get; private set; }

/// <summary>
/// Gets the IAvailableBalancesOperations.
/// Gets the IPaymentMethodsOperations.
/// </summary>
public virtual IAvailableBalancesOperations AvailableBalances { get; private set; }
public virtual IPaymentMethodsOperations PaymentMethods { get; private set; }

/// <summary>
/// Gets the IPaymentMethodsOperations.
/// Gets the IAvailableBalancesOperations.
/// </summary>
public virtual IPaymentMethodsOperations PaymentMethods { get; private set; }
public virtual IAvailableBalancesOperations AvailableBalances { get; private set; }

/// <summary>
/// Gets the IBillingProfilesOperations.
Expand Down Expand Up @@ -423,8 +423,8 @@ public BillingManagementClient(System.Uri baseUri, ServiceClientCredentials cred
private void Initialize()
{
BillingAccounts = new BillingAccountsOperations(this);
AvailableBalances = new AvailableBalancesOperations(this);
PaymentMethods = new PaymentMethodsOperations(this);
AvailableBalances = new AvailableBalancesOperations(this);
BillingProfiles = new BillingProfilesOperations(this);
InvoiceSections = new InvoiceSectionsOperations(this);
Departments = new DepartmentsOperations(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ public partial interface IBillingManagementClient : System.IDisposable
IBillingAccountsOperations BillingAccounts { get; }

/// <summary>
/// Gets the IAvailableBalancesOperations.
/// Gets the IPaymentMethodsOperations.
/// </summary>
IAvailableBalancesOperations AvailableBalances { get; }
IPaymentMethodsOperations PaymentMethods { get; }

/// <summary>
/// Gets the IPaymentMethodsOperations.
/// Gets the IAvailableBalancesOperations.
/// </summary>
IPaymentMethodsOperations PaymentMethods { get; }
IAvailableBalancesOperations AvailableBalances { get; }

/// <summary>
/// Gets the IBillingProfilesOperations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,29 @@ namespace Microsoft.Azure.Management.Billing
/// </summary>
public partial interface IPaymentMethodsOperations
{
/// <summary>
/// Lists the Payment Methods by billing account Id.
/// <see href="https://docs.microsoft.com/en-us/rest/api/billing/2018-11-01-preview/paymentmethods" />
/// </summary>
/// <param name='billingAccountName'>
/// billing Account Id.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<PaymentMethod>>> ListByBillingAccountNameWithHttpMessagesAsync(string billingAccountName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists the Payment Methods by billing profile Id.
/// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
Expand Down Expand Up @@ -50,6 +73,29 @@ public partial interface IPaymentMethodsOperations
/// </exception>
Task<AzureOperationResponse<IPage<PaymentMethod>>> ListByBillingProfileNameWithHttpMessagesAsync(string billingAccountName, string billingProfileName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists the Payment Methods by billing account Id.
/// <see href="https://docs.microsoft.com/en-us/rest/api/billing/2018-11-01-preview/paymentmethods" />
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<PaymentMethod>>> ListByBillingAccountNameNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists the Payment Methods by billing profile Id.
/// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
/// </summary>
Expand Down
Loading

0 comments on commit 5ecfebb

Please sign in to comment.