Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR billing/resource-manager] chore: jsonfmt billing #3940

Merged
merged 1 commit into from
Jun 17, 2019
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,41 @@
/**
* 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.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for AddressValidationStatus.
*/
public final class AddressValidationStatus extends ExpandableStringEnum<AddressValidationStatus> {
/** Static value Valid for AddressValidationStatus. */
public static final AddressValidationStatus VALID = fromString("Valid");

/** Static value Invalid for AddressValidationStatus. */
public static final AddressValidationStatus INVALID = fromString("Invalid");

/**
* Creates or finds a AddressValidationStatus from its string representation.
* @param name a name to look for
* @return the corresponding AddressValidationStatus
*/
@JsonCreator
public static AddressValidationStatus fromString(String name) {
return fromString(name, AddressValidationStatus.class);
}

/**
* @return known AddressValidationStatus values
*/
public static Collection<AddressValidationStatus> values() {
return values(AddressValidationStatus.class);
}
}
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.AddressInner;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.AddressesInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing Addresses.
*/
public interface Addresses extends HasInner<AddressesInner> {
/**
* Validates the address.
*
* @param address the AddressInner value
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<ValidateAddressResponse> validateAsync(AddressInner address);

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Amount {
/**
* Amount value.
*/
@JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "value")
private Double value;

/**
Expand All @@ -44,4 +44,15 @@ public Double value() {
return this.value;
}

/**
* Set amount value.
*
* @param value the value value to set
* @return the Amount object itself.
*/
public Amount withValue(Double value) {
this.value = value;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,24 @@
package com.microsoft.azure.management.billing.v2018_11_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.BillingAccountInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Refreshable;
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.BillingAccountInner;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.BillingProfileInner;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.AddressInner;
import java.util.List;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.InvoiceSectionInner;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.BillingProfileInner;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.DepartmentInner;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.EnrollmentAccountInner;
import com.microsoft.azure.management.billing.v2018_11_01_preview.implementation.InvoiceSectionInner;

/**
* Type representing BillingAccount.
*/
public interface BillingAccount extends HasInner<BillingAccountInner>, HasManager<BillingManager> {
public interface BillingAccount extends HasInner<BillingAccountInner>, Indexable, Updatable<BillingAccount.Update>, Refreshable<BillingAccount>, HasManager<BillingManager> {
/**
* @return the accountType value.
*/
Expand All @@ -30,12 +35,12 @@ public interface BillingAccount extends HasInner<BillingAccountInner>, HasManage
/**
* @return the address value.
*/
Address address();
AddressInner address();

/**
* @return the billingProfiles value.
*/
List<BillingProfileInner> billingProfiles();
List<BillingProfile> billingProfiles();

/**
* @return the company value.
Expand All @@ -50,7 +55,7 @@ public interface BillingAccount extends HasInner<BillingAccountInner>, HasManage
/**
* @return the departments value.
*/
List<DepartmentInner> departments();
List<Department> departments();

/**
* @return the displayName value.
Expand All @@ -60,7 +65,7 @@ public interface BillingAccount extends HasInner<BillingAccountInner>, HasManage
/**
* @return the enrollmentAccounts value.
*/
List<EnrollmentAccountInner> enrollmentAccounts();
List<EnrollmentAccount> enrollmentAccounts();

/**
* @return the enrollmentDetails value.
Expand All @@ -80,7 +85,7 @@ public interface BillingAccount extends HasInner<BillingAccountInner>, HasManage
/**
* @return the invoiceSections value.
*/
List<InvoiceSectionInner> invoiceSections();
List<InvoiceSection> invoiceSections();

/**
* @return the name value.
Expand All @@ -92,4 +97,75 @@ public interface BillingAccount extends HasInner<BillingAccountInner>, HasManage
*/
String type();

/**
* The template for a BillingAccount update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<BillingAccount>, UpdateStages.WithAddress, UpdateStages.WithBillingProfiles, UpdateStages.WithDepartments, UpdateStages.WithEnrollmentAccounts, UpdateStages.WithInvoiceSections {
}

/**
* Grouping of BillingAccount update stages.
*/
interface UpdateStages {
/**
* The stage of the billingaccount update allowing to specify Address.
*/
interface WithAddress {
/**
* Specifies address.
* @param address The address associated with billing account
* @return the next update stage
*/
Update withAddress(AddressInner address);
}

/**
* The stage of the billingaccount update allowing to specify BillingProfiles.
*/
interface WithBillingProfiles {
/**
* Specifies billingProfiles.
* @param billingProfiles The billing profiles associated to the billing account. By default this is not populated, unless it's specified in $expand
* @return the next update stage
*/
Update withBillingProfiles(List<BillingProfileInner> billingProfiles);
}

/**
* The stage of the billingaccount update allowing to specify Departments.
*/
interface WithDepartments {
/**
* Specifies departments.
* @param departments The departments associated to the enrollment
* @return the next update stage
*/
Update withDepartments(List<DepartmentInner> departments);
}

/**
* The stage of the billingaccount update allowing to specify EnrollmentAccounts.
*/
interface WithEnrollmentAccounts {
/**
* Specifies enrollmentAccounts.
* @param enrollmentAccounts The accounts associated to the enrollment
* @return the next update stage
*/
Update withEnrollmentAccounts(List<EnrollmentAccountInner> enrollmentAccounts);
}

/**
* The stage of the billingaccount update allowing to specify InvoiceSections.
*/
interface WithInvoiceSections {
/**
* Specifies invoiceSections.
* @param invoiceSections The invoice sections associated to the billing account. By default this is not populated, unless it's specified in $expand
* @return the next update stage
*/
Update withInvoiceSections(List<InvoiceSectionInner> invoiceSections);
}

}
}
Loading