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,29 @@
/**
* 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.AvailableBalancesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing AvailableBalances.
*/
public interface AvailableBalances extends HasInner<AvailableBalancesInner> {
/**
* The latest available credit balance for a given billingAccountName and billingProfileName.
*
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AvailableBalance> getByBillingProfileAsync(String billingAccountName, String billingProfileName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,41 @@

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

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import rx.Observable;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.BillingPermissionsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* The set of allowed action and not allowed actions a caller has on a billing
* account.
* Type representing BillingPermissions.
*/
public class BillingPermissions {
public interface BillingPermissions extends HasInner<BillingPermissionsInner> {
/**
* The set of actions that the caller is allowed to do.
*/
@JsonProperty(value = "actions", access = JsonProperty.Access.WRITE_ONLY)
private List<String> actions;

/**
* The set of actions the caller is not allowed to do.
* Lists all billing permissions for the caller under a billing account.
*
* @param billingAccountName billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
@JsonProperty(value = "notActions", access = JsonProperty.Access.WRITE_ONLY)
private List<String> notActions;
Observable<BillingPermissionsListResult> listByBillingAccountAsync(String billingAccountName);

/**
* Get the set of actions that the caller is allowed to do.
* Lists all billing permissions for the caller under invoice section.
*
* @return the actions value
* @param billingAccountName billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public List<String> actions() {
return this.actions;
}
Observable<BillingPermissionsListResult> listByInvoiceSectionsAsync(String billingAccountName, String invoiceSectionName);

/**
* Get the set of actions the caller is not allowed to do.
* Lists all billingPermissions for the caller has for a billing account.
*
* @return the notActions value
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
public List<String> notActions() {
return this.notActions;
}
Observable<BillingPermissionsListResult> listByBillingProfileAsync(String billingAccountName, String billingProfileName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public interface BillingPermissionsListResult extends HasInner<BillingPermission
/**
* @return the value value.
*/
List<BillingPermissions> value();
List<BillingPermissionsProperties> value();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* 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 java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The set of allowed action and not allowed actions a caller has on a billing
* account.
*/
public class BillingPermissionsProperties {
/**
* The set of actions that the caller is allowed to do.
*/
@JsonProperty(value = "actions", access = JsonProperty.Access.WRITE_ONLY)
private List<String> actions;

/**
* The set of actions the caller is not allowed to do.
*/
@JsonProperty(value = "notActions", access = JsonProperty.Access.WRITE_ONLY)
private List<String> notActions;

/**
* Get the set of actions that the caller is allowed to do.
*
* @return the actions value
*/
public List<String> actions() {
return this.actions;
}

/**
* Get the set of actions the caller is not allowed to do.
*
* @return the notActions value
*/
public List<String> notActions() {
return this.notActions;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
* Type representing BillingProfiles.
*/
public interface BillingProfiles extends HasInner<BillingProfilesInner> {
/**
* Lists all billing profiles for a user which that user has access to.
*
* @param billingAccountName billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingProfileListResult> listByBillingAccountNameAsync(String billingAccountName);

/**
* Get the billing profile by id.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/**
* 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.Completable;
import rx.Observable;

/**
* Type representing BillingRoleAssignments.
*/
public interface BillingRoleAssignments {
/**
* Get the role assignment for the caller.
*
* @param billingAccountName billing Account Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> getByBillingAccountAsync(String billingAccountName, String billingRoleAssignmentName);

/**
* Delete the role assignment on this billing account.
*
* @param billingAccountName billing Account Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> deleteByBillingAccountNameAsync(String billingAccountName, String billingRoleAssignmentName);

/**
* Get the role assignment for the caller on the invoice Section.
*
* @param billingAccountName billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> getByInvoiceSectionNameAsync(String billingAccountName, String invoiceSectionName, String billingRoleAssignmentName);

/**
* Delete the role assignment on the invoice Section.
*
* @param billingAccountName billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> deleteByInvoiceSectionNameAsync(String billingAccountName, String invoiceSectionName, String billingRoleAssignmentName);

/**
* Get the role assignment for the caller on the Billing Profile.
*
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> getByBillingProfileNameAsync(String billingAccountName, String billingProfileName, String billingRoleAssignmentName);

/**
* Delete the role assignment on this Billing Profile.
*
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @param billingRoleAssignmentName role assignment id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> deleteByBillingProfileNameAsync(String billingAccountName, String billingProfileName, String billingRoleAssignmentName);

/**
* Get the role assignments on the Billing Account.
*
* @param billingAccountName billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignmentListResult> listByBillingAccountNameAsync(String billingAccountName);

/**
* Get the role assignments on the invoice Section.
*
* @param billingAccountName billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignmentListResult> listByInvoiceSectionNameAsync(String billingAccountName, String invoiceSectionName);

/**
* Get the role assignments on the Billing Profile.
*
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignmentListResult> listByBillingProfileNameAsync(String billingAccountName, String billingProfileName);

/**
* The operation to add a role assignment to a billing account.
*
* @param billingAccountName billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignmentListResult> addByBillingAccountNameAsync(String billingAccountName);

/**
* The operation to add a role assignment to a invoice Section.
*
* @param billingAccountName billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignmentListResult> addByInvoiceSectionNameAsync(String billingAccountName, String invoiceSectionName);

/**
* The operation to add a role assignment to a billing profile.
*
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignmentListResult> addByBillingProfileNameAsync(String billingAccountName, String billingProfileName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ public interface BillingRoleDefinition extends HasInner<BillingRoleDefinitionInn
/**
* @return the value value.
*/
List<BillingPermissions> value();
List<BillingPermissionsProperties> value();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/**
* 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.BillingRoleDefinitionsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing BillingRoleDefinitions.
*/
public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsInner> {
/**
* Gets the role definition for a role.
*
* @param billingAccountName billing Account Id.
* @param billingRoleDefinitionName role definition id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinition> getByBillingAccountNameAsync(String billingAccountName, String billingRoleDefinitionName);

/**
* Gets the role definition for a role.
*
* @param billingAccountName billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @param billingRoleDefinitionName role definition id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinition> getByInvoiceSectionNameAsync(String billingAccountName, String invoiceSectionName, String billingRoleDefinitionName);

/**
* Gets the role definition for a role.
*
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @param billingRoleDefinitionName role definition id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinition> getByBillingProfileNameAsync(String billingAccountName, String billingProfileName, String billingRoleDefinitionName);

/**
* Lists the role definition for a billing account.
*
* @param billingAccountName billing Account Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinitionListResult> listByBillingAccountNameAsync(String billingAccountName);

/**
* Lists the role definition for an invoice Section.
*
* @param billingAccountName billing Account Id.
* @param invoiceSectionName InvoiceSection Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinitionListResult> listByInvoiceSectionNameAsync(String billingAccountName, String invoiceSectionName);

/**
* Lists the role definition for a Billing Profile.
*
* @param billingAccountName billing Account Id.
* @param billingProfileName Billing Profile Id.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinitionListResult> listByBillingProfileNameAsync(String billingAccountName, String billingProfileName);

}
Loading