Skip to content

Commit

Permalink
Generated from 3cd239b921610f215f801b78c4f55f47fcd187c1
Browse files Browse the repository at this point in the history
update comment
  • Loading branch information
SDK Automation committed Jun 13, 2020
1 parent 4b2d9f4 commit 810b08f
Show file tree
Hide file tree
Showing 27 changed files with 4,048 additions and 331 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;

/**
* Type representing BillingRoleAssignment.
* Type representing BillingAccountBillingRoleAssignment.
*/
public interface BillingRoleAssignment extends HasInner<BillingRoleAssignmentInner>, Indexable, Refreshable<BillingRoleAssignment>, HasManager<BillingManager> {
public interface BillingAccountBillingRoleAssignment extends HasInner<BillingRoleAssignmentInner>, Indexable, Refreshable<BillingAccountBillingRoleAssignment>, HasManager<BillingManager> {
/**
* @return the billingRoleAssignmentName value.
*/
Expand All @@ -34,6 +34,11 @@ public interface BillingRoleAssignment extends HasInner<BillingRoleAssignmentInn
*/
String createdByPrincipalTenantId();

/**
* @return the createdByUserEmailAddress value.
*/
String createdByUserEmailAddress();

/**
* @return the createdOn value.
*/
Expand All @@ -55,9 +60,14 @@ public interface BillingRoleAssignment extends HasInner<BillingRoleAssignmentInn
String principalId();

/**
* @return the roleDefinitionName value.
* @return the principalTenantId value.
*/
String principalTenantId();

/**
* @return the roleDefinitionId value.
*/
String roleDefinitionName();
String roleDefinitionId();

/**
* @return the scope value.
Expand All @@ -69,4 +79,14 @@ public interface BillingRoleAssignment extends HasInner<BillingRoleAssignmentInn
*/
String type();

/**
* @return the userAuthenticationType value.
*/
String userAuthenticationType();

/**
* @return the userEmailAddress value.
*/
String userEmailAddress();

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public interface BillingPermissions {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingPermissionsListResult> listByBillingAccountAsync(String billingAccountName);
Observable<BillingPermissionsProperties> listByBillingAccountAsync(final String billingAccountName);

/**
* Lists the billing permissions the caller has on an invoice section.
Expand All @@ -54,4 +54,24 @@ public interface BillingPermissions {
*/
Observable<BillingPermissionsListResult> listByBillingProfileAsync(String billingAccountName, String billingProfileName);

/**
* Lists the billing permissions the caller has on a department.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param departmentName The ID that uniquely identifies a department.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingPermissionsProperties> listByDepartmentAsync(final String billingAccountName, final String departmentName);

/**
* Lists the billing permissions the caller has on an enrollment account.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The ID that uniquely identifies an enrollment account.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingPermissionsProperties> listByEnrollmentAccountAsync(final String billingAccountName, final String enrollmentAccountName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingPermissionsListResultInner;
import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingPermissionsPropertiesInner;
import java.util.List;

/**
Expand All @@ -21,6 +22,6 @@ public interface BillingPermissionsListResult extends HasInner<BillingPermission
/**
* @return the value value.
*/
List<BillingPermissionsProperties> value();
List<BillingPermissionsPropertiesInner> value();

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

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

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingPermissionsPropertiesInner;
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.
* Type representing BillingPermissionsProperties.
*/
public class BillingPermissionsProperties {
public interface BillingPermissionsProperties extends HasInner<BillingPermissionsPropertiesInner>, HasManager<BillingManager> {
/**
* The set of actions that the caller is allowed to perform.
* @return the actions value.
*/
@JsonProperty(value = "actions", access = JsonProperty.Access.WRITE_ONLY)
private List<String> actions;
List<String> actions();

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

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

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public interface BillingRoleAssignments extends HasInner<BillingRoleAssignmentsI
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> getByInvoiceSectionAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, String billingRoleAssignmentName);
Observable<BillingAccountBillingRoleAssignment> getByInvoiceSectionAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, String billingRoleAssignmentName);

/**
* Deletes a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
Expand All @@ -39,7 +39,7 @@ public interface BillingRoleAssignments extends HasInner<BillingRoleAssignmentsI
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> deleteByInvoiceSectionAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, String billingRoleAssignmentName);
Observable<BillingAccountBillingRoleAssignment> deleteByInvoiceSectionAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, String billingRoleAssignmentName);

/**
* Gets a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
Expand All @@ -50,7 +50,7 @@ public interface BillingRoleAssignments extends HasInner<BillingRoleAssignmentsI
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> getByBillingProfileAsync(String billingAccountName, String billingProfileName, String billingRoleAssignmentName);
Observable<BillingAccountBillingRoleAssignment> getByBillingProfileAsync(String billingAccountName, String billingProfileName, String billingRoleAssignmentName);

/**
* Deletes a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
Expand All @@ -61,16 +61,51 @@ public interface BillingRoleAssignments extends HasInner<BillingRoleAssignmentsI
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> deleteByBillingProfileAsync(String billingAccountName, String billingProfileName, String billingRoleAssignmentName);
Observable<BillingAccountBillingRoleAssignment> deleteByBillingProfileAsync(String billingAccountName, String billingProfileName, String billingRoleAssignmentName);

/**
* Lists the role assignments for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
* Gets a role assignment for the caller on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param departmentName The ID that uniquely identifies a department.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingAccountBillingRoleAssignment> getByDepartmentAsync(String billingAccountName, String departmentName, String billingRoleAssignmentName);

/**
* Deletes a role assignment for the caller on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param departmentName The ID that uniquely identifies a department.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingAccountBillingRoleAssignment> deleteByDepartmentAsync(String billingAccountName, String departmentName, String billingRoleAssignmentName);

/**
* Gets a role assignment for the caller on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The ID that uniquely identifies an enrollment account.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingAccountBillingRoleAssignment> getByEnrollmentAccountAsync(String billingAccountName, String enrollmentAccountName, String billingRoleAssignmentName);

/**
* Deletes a role assignment for the caller on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The ID that uniquely identifies an enrollment account.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignmentListResult> listByBillingAccountAsync(String billingAccountName);
Observable<BillingAccountBillingRoleAssignment> deleteByEnrollmentAccountAsync(String billingAccountName, String enrollmentAccountName, String billingRoleAssignmentName);

/**
* Lists the role assignments for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
Expand All @@ -94,14 +129,43 @@ public interface BillingRoleAssignments extends HasInner<BillingRoleAssignmentsI
Observable<BillingRoleAssignmentListResult> listByBillingProfileAsync(String billingAccountName, String billingProfileName);

/**
* Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
* Lists the role assignments for the caller on a billing profile. The operation is supported for billing accounts of type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param departmentName The ID that uniquely identifies a department.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingAccountBillingRoleAssignment> listByDepartmentAsync(final String billingAccountName, final String departmentName);

/**
* Lists the role assignments for the caller on a billing profile. The operation is supported for billing accounts of type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The ID that uniquely identifies an enrollment account.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingAccountBillingRoleAssignment> listByEnrollmentAccountAsync(final String billingAccountName, final String enrollmentAccountName);

/**
* Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleAssignment> getByBillingAccountAsync(String billingAccountName, String billingRoleAssignmentName);
Observable<BillingAccountBillingRoleAssignment> getByBillingAccountAsync(String billingAccountName, String billingRoleAssignmentName);

/**
* Lists the role assignments for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingAccountBillingRoleAssignment> listByBillingAccountAsync(final String billingAccountName);

/**
* Deletes a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,26 @@ public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsI
Observable<BillingRoleDefinition> getByBillingProfileAsync(String billingAccountName, String billingProfileName, String billingRoleDefinitionName);

/**
* Lists the role definitions for a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
* Gets the definition for a role on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param departmentName The ID that uniquely identifies a department.
* @param billingRoleDefinitionName The ID that uniquely identifies a role definition.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinitionListResult> listByBillingAccountAsync(String billingAccountName);
Observable<BillingRoleDefinition> getByDepartmentAsync(String billingAccountName, String departmentName, String billingRoleDefinitionName);

/**
* Gets the definition for a role on an enrollment account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The ID that uniquely identifies an enrollment account.
* @param billingRoleDefinitionName The ID that uniquely identifies a role definition.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinition> getByEnrollmentAccountAsync(String billingAccountName, String enrollmentAccountName, String billingRoleDefinitionName);

/**
* Lists the role definitions for an invoice section. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
Expand All @@ -69,6 +82,26 @@ public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsI
*/
Observable<BillingRoleDefinitionListResult> listByBillingProfileAsync(String billingAccountName, String billingProfileName);

/**
* Lists the role definitions for a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param departmentName The ID that uniquely identifies a department.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinition> listByDepartmentAsync(final String billingAccountName, final String departmentName);

/**
* Lists the role definitions for a enrollmentAccount. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The ID that uniquely identifies an enrollment account.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinition> listByEnrollmentAccountAsync(final String billingAccountName, final String enrollmentAccountName);

/**
* Gets the definition for a role on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
*
Expand All @@ -79,4 +112,13 @@ public interface BillingRoleDefinitions extends HasInner<BillingRoleDefinitionsI
*/
Observable<BillingRoleDefinition> getByBillingAccountAsync(String billingAccountName, String billingRoleDefinitionName);

/**
* Lists the role definitions for a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<BillingRoleDefinition> listByBillingAccountAsync(final String billingAccountName);

}
Loading

0 comments on commit 810b08f

Please sign in to comment.