Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* 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.
*/

package com.microsoft.azure.management.billing.v2018_11_01_preview;

import rx.Observable;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.TransactionsByBillingProfilesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing TransactionsByBillingProfiles.
*/
public interface TransactionsByBillingProfiles extends HasInner<TransactionsByBillingProfilesInner> {
/**
* Lists the transactions by billingProfileName for given start date and end date.
*
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @param startDate Start date
* @param endDate End date
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<TransactionsListResult> listAsync(String billingAccountName, String billingProfileName, String startDate, String endDate);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* 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.
*/

package com.microsoft.azure.management.billing.v2018_11_01_preview;

import rx.Observable;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.TransactionsByInvoiceSectionsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing TransactionsByInvoiceSections.
*/
public interface TransactionsByInvoiceSections extends HasInner<TransactionsByInvoiceSectionsInner> {
/**
* Lists the transactions by invoiceSectionName for given start date and end date.
*
* @param billingAccountName billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @param startDate Start date
* @param endDate End date
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<TransactionsListResult> listAsync(String billingAccountName, String invoiceSectionName, String startDate, String endDate);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* 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.
*/

package com.microsoft.azure.management.billing.v2018_11_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.BillingManager;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.TransactionsListResultInner;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.TransactionsSummaryInner;
import java.util.List;

/**
* Type representing TransactionsListResult.
*/
public interface TransactionsListResult extends HasInner<TransactionsListResultInner>, HasManager<BillingManager> {
/**
* @return the nextLink value.
*/
String nextLink();

/**
* @return the value value.
*/
List<TransactionsSummaryInner> value();

}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
import com.microsoft.azure.management.billing.v2018_11_01_preview.ProductsByInvoiceSections;
import com.microsoft.azure.management.billing.v2018_11_01_preview.Products;
import com.microsoft.azure.management.billing.v2018_11_01_preview.TransactionsByBillingAccounts;
import com.microsoft.azure.management.billing.v2018_11_01_preview.TransactionsByBillingProfiles;
import com.microsoft.azure.management.billing.v2018_11_01_preview.TransactionsByInvoiceSections;
import com.microsoft.azure.management.billing.v2018_11_01_preview.Policys;
import com.microsoft.azure.management.billing.v2018_11_01_preview.BillingPropertys;
import com.microsoft.azure.management.billing.v2018_11_01_preview.Transfers;
Expand Down Expand Up @@ -87,6 +89,8 @@ public final class BillingManager extends ManagerCore<BillingManager, BillingMan
private ProductsByInvoiceSections productsByInvoiceSections;
private Products products;
private TransactionsByBillingAccounts transactionsByBillingAccounts;
private TransactionsByBillingProfiles transactionsByBillingProfiles;
private TransactionsByInvoiceSections transactionsByInvoiceSections;
private Policys policys;
private BillingPropertys billingPropertys;
private Transfers transfers;
Expand Down Expand Up @@ -398,6 +402,26 @@ public TransactionsByBillingAccounts transactionsByBillingAccounts() {
return this.transactionsByBillingAccounts;
}

/**
* @return Entry point to manage TransactionsByBillingProfiles.
*/
public TransactionsByBillingProfiles transactionsByBillingProfiles() {
if (this.transactionsByBillingProfiles == null) {
this.transactionsByBillingProfiles = new TransactionsByBillingProfilesImpl(this);
}
return this.transactionsByBillingProfiles;
}

/**
* @return Entry point to manage TransactionsByInvoiceSections.
*/
public TransactionsByInvoiceSections transactionsByInvoiceSections() {
if (this.transactionsByInvoiceSections == null) {
this.transactionsByInvoiceSections = new TransactionsByInvoiceSectionsImpl(this);
}
return this.transactionsByInvoiceSections;
}

/**
* @return Entry point to manage Policys.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* 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.
* abc
*/

package com.microsoft.azure.management.billing.v2018_11_01_preview.implementation;

import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.billing.v2018_11_01_preview.TransactionsByBillingProfiles;
import rx.functions.Func1;
import rx.Observable;
import com.microsoft.azure.management.billing.v2018_11_01_preview.TransactionsListResult;

class TransactionsByBillingProfilesImpl extends WrapperImpl<TransactionsByBillingProfilesInner> implements TransactionsByBillingProfiles {
private final BillingManager manager;

TransactionsByBillingProfilesImpl(BillingManager manager) {
super(manager.inner().transactionsByBillingProfiles());
this.manager = manager;
}

public BillingManager manager() {
return this.manager;
}

@Override
public Observable<TransactionsListResult> listAsync(String billingAccountName, String billingProfileName, String startDate, String endDate) {
TransactionsByBillingProfilesInner client = this.inner();
return client.listAsync(billingAccountName, billingProfileName, startDate, endDate)
.map(new Func1<TransactionsListResultInner, TransactionsListResult>() {
@Override
public TransactionsListResult call(TransactionsListResultInner inner) {
return new TransactionsListResultImpl(inner, manager());
}
});
}

}
Loading