Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Billing'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5475'
REST Spec PR Author 'msft-adrianma'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Mar 30, 2019
1 parent 7bdc27f commit 20e1b9f
Show file tree
Hide file tree
Showing 9 changed files with 894 additions and 642 deletions.
458 changes: 12 additions & 446 deletions src/SDKs/Billing/Management.Billing/Generated/BillingManagementClient.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,142 +21,6 @@ namespace Microsoft.Azure.Management.Billing
/// </summary>
public static partial class BillingManagementClientExtensions
{
/// <summary>
/// Lists the transactions by billingProfileName for given start date and end
/// date.
/// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='billingAccountName'>
/// billing Account Id.
/// </param>
/// <param name='billingProfileName'>
/// Billing Profile Id.
/// </param>
/// <param name='startDate'>
/// Start date
/// </param>
/// <param name='endDate'>
/// End date
/// </param>
/// <param name='filter'>
/// May be used to filter by transaction kind. The filter supports 'eq', 'lt',
/// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or
/// 'not'. Tag filter is a key value pair string where key and value is
/// separated by a colon (:).
/// </param>
public static TransactionsListResult TransactionsByBillingProfile(this IBillingManagementClient operations, string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string))
{
return operations.TransactionsByBillingProfileAsync(billingAccountName, billingProfileName, startDate, endDate, filter).GetAwaiter().GetResult();
}

/// <summary>
/// Lists the transactions by billingProfileName for given start date and end
/// date.
/// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='billingAccountName'>
/// billing Account Id.
/// </param>
/// <param name='billingProfileName'>
/// Billing Profile Id.
/// </param>
/// <param name='startDate'>
/// Start date
/// </param>
/// <param name='endDate'>
/// End date
/// </param>
/// <param name='filter'>
/// May be used to filter by transaction kind. The filter supports 'eq', 'lt',
/// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or
/// 'not'. Tag filter is a key value pair string where key and value is
/// separated by a colon (:).
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<TransactionsListResult> TransactionsByBillingProfileAsync(this IBillingManagementClient operations, string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.TransactionsByBillingProfileWithHttpMessagesAsync(billingAccountName, billingProfileName, startDate, endDate, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Lists the transactions by invoiceSectionName for given start date and end
/// date.
/// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='billingAccountName'>
/// billing Account Id.
/// </param>
/// <param name='invoiceSectionName'>
/// InvoiceSection Id.
/// </param>
/// <param name='startDate'>
/// Start date
/// </param>
/// <param name='endDate'>
/// End date
/// </param>
/// <param name='filter'>
/// May be used to filter by transaction kind. The filter supports 'eq', 'lt',
/// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or
/// 'not'. Tag filter is a key value pair string where key and value is
/// separated by a colon (:).
/// </param>
public static TransactionsListResult TransactionsByInvoiceSection(this IBillingManagementClient operations, string billingAccountName, string invoiceSectionName, string startDate, string endDate, string filter = default(string))
{
return operations.TransactionsByInvoiceSectionAsync(billingAccountName, invoiceSectionName, startDate, endDate, filter).GetAwaiter().GetResult();
}

/// <summary>
/// Lists the transactions by invoiceSectionName for given start date and end
/// date.
/// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='billingAccountName'>
/// billing Account Id.
/// </param>
/// <param name='invoiceSectionName'>
/// InvoiceSection Id.
/// </param>
/// <param name='startDate'>
/// Start date
/// </param>
/// <param name='endDate'>
/// End date
/// </param>
/// <param name='filter'>
/// May be used to filter by transaction kind. The filter supports 'eq', 'lt',
/// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or
/// 'not'. Tag filter is a key value pair string where key and value is
/// separated by a colon (:).
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<TransactionsListResult> TransactionsByInvoiceSectionAsync(this IBillingManagementClient operations, string billingAccountName, string invoiceSectionName, string startDate, string endDate, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.TransactionsByInvoiceSectionWithHttpMessagesAsync(billingAccountName, invoiceSectionName, startDate, endDate, filter, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Cancel product by product id
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,16 @@ public partial interface IBillingManagementClient : System.IDisposable
/// </summary>
ITransactionsByBillingAccountOperations TransactionsByBillingAccount { get; }

/// <summary>
/// Gets the ITransactionsByBillingProfileOperations.
/// </summary>
ITransactionsByBillingProfileOperations TransactionsByBillingProfile { get; }

/// <summary>
/// Gets the ITransactionsByInvoiceSectionOperations.
/// </summary>
ITransactionsByInvoiceSectionOperations TransactionsByInvoiceSection { get; }

/// <summary>
/// Gets the IPolicyOperations.
/// </summary>
Expand Down Expand Up @@ -270,66 +280,6 @@ public partial interface IBillingManagementClient : System.IDisposable
/// </summary>
IBillingProfileBillingRoleAssignmentOperations BillingProfileBillingRoleAssignment { get; }

/// <summary>
/// Lists the transactions by billingProfileName for given start date
/// and end date.
/// </summary>
/// <param name='billingAccountName'>
/// billing Account Id.
/// </param>
/// <param name='billingProfileName'>
/// Billing Profile Id.
/// </param>
/// <param name='startDate'>
/// Start date
/// </param>
/// <param name='endDate'>
/// End date
/// </param>
/// <param name='filter'>
/// May be used to filter by transaction kind. The filter supports
/// 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently
/// support 'ne', 'or', or 'not'. Tag filter is a key value pair string
/// where key and value is separated by a colon (:).
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<AzureOperationResponse<TransactionsListResult>> TransactionsByBillingProfileWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// Lists the transactions by invoiceSectionName for given start date
/// and end date.
/// </summary>
/// <param name='billingAccountName'>
/// billing Account Id.
/// </param>
/// <param name='invoiceSectionName'>
/// InvoiceSection Id.
/// </param>
/// <param name='startDate'>
/// Start date
/// </param>
/// <param name='endDate'>
/// End date
/// </param>
/// <param name='filter'>
/// May be used to filter by transaction kind. The filter supports
/// 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently
/// support 'ne', 'or', or 'not'. Tag filter is a key value pair string
/// where key and value is separated by a colon (:).
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<AzureOperationResponse<TransactionsListResult>> TransactionsByInvoiceSectionWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string startDate, string endDate, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// Cancel product by product id
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.Billing
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// TransactionsByBillingProfileOperations operations.
/// </summary>
public partial interface ITransactionsByBillingProfileOperations
{
/// <summary>
/// Lists the transactions by billingProfileName for given start date
/// and end date.
/// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
/// </summary>
/// <param name='billingAccountName'>
/// billing Account Id.
/// </param>
/// <param name='billingProfileName'>
/// Billing Profile Id.
/// </param>
/// <param name='startDate'>
/// Start date
/// </param>
/// <param name='endDate'>
/// End date
/// </param>
/// <param name='filter'>
/// May be used to filter by transaction kind. The filter supports
/// 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently
/// support 'ne', 'or', or 'not'. Tag filter is a key value pair string
/// where key and value is separated by a colon (:).
/// </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<TransactionsListResult>> ListWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string startDate, string endDate, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.Billing
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// TransactionsByInvoiceSectionOperations operations.
/// </summary>
public partial interface ITransactionsByInvoiceSectionOperations
{
/// <summary>
/// Lists the transactions by invoiceSectionName for given start date
/// and end date.
/// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" />
/// </summary>
/// <param name='billingAccountName'>
/// billing Account Id.
/// </param>
/// <param name='invoiceSectionName'>
/// InvoiceSection Id.
/// </param>
/// <param name='startDate'>
/// Start date
/// </param>
/// <param name='endDate'>
/// End date
/// </param>
/// <param name='filter'>
/// May be used to filter by transaction kind. The filter supports
/// 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently
/// support 'ne', 'or', or 'not'. Tag filter is a key value pair string
/// where key and value is separated by a colon (:).
/// </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<TransactionsListResult>> ListWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, string startDate, string endDate, string filter = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Loading

0 comments on commit 20e1b9f

Please sign in to comment.