diff --git a/billing/resource-manager/v2019_10_01_preview/pom.xml b/billing/resource-manager/v2019_10_01_preview/pom.xml
new file mode 100644
index 0000000000000..1b5bcb448df0d
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/pom.xml
@@ -0,0 +1,133 @@
+
+
+ 4.0.0
+ com.microsoft.azure.billing.v2019_10_01_preview
+
+ com.microsoft.azure
+ azure-arm-parent
+ 0.0.3-beta
+ ../../../pom.xml
+
+ azure-mgmt-billing
+ 1.0.0-beta
+ jar
+ Microsoft Azure SDK for Billing Management
+ This package contains Microsoft Billing Management SDK.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+ UTF-8
+
+
+
+
+ microsoft
+ Microsoft
+
+
+
+
+ com.microsoft.azure
+ azure-client-runtime
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+
+
+ junit
+ junit
+ test
+
+
+ com.microsoft.azure
+ azure-client-authentication
+ test
+
+
+ com.microsoft.azure
+ azure-mgmt-resources
+ test
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+ test-jar
+ test
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ true
+ true
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+
+ 1.7
+
+
+ com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
+
+
+ true
+ true
+
+ true
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.8
+
+ *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search
+
+
+ /**
+
* Copyright (c) Microsoft Corporation. All rights reserved.
+
* Licensed under the MIT License. See License.txt in the project root for
+
* license information.
+
*/
+ ]]>
+
+
+
+
+
+
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AcceptTransferRequest.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AcceptTransferRequest.java
new file mode 100644
index 0000000000000..f6c6e1f949c68
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AcceptTransferRequest.java
@@ -0,0 +1,46 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+
+/**
+ * Request parameters to accept transfer.
+ */
+@JsonFlatten
+public class AcceptTransferRequest {
+ /**
+ * Request parameters to accept transfer.
+ */
+ @JsonProperty(value = "properties.productDetails")
+ private List productDetails;
+
+ /**
+ * Get request parameters to accept transfer.
+ *
+ * @return the productDetails value
+ */
+ public List productDetails() {
+ return this.productDetails;
+ }
+
+ /**
+ * Set request parameters to accept transfer.
+ *
+ * @param productDetails the productDetails value to set
+ * @return the AcceptTransferRequest object itself.
+ */
+ public AcceptTransferRequest withProductDetails(List productDetails) {
+ this.productDetails = productDetails;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Address.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Address.java
new file mode 100644
index 0000000000000..20ea3718229f0
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Address.java
@@ -0,0 +1,28 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.AddressInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Address.
+ */
+public interface Address extends HasInner {
+ /**
+ * Validates the address.
+ *
+ * @param address the AddressDetails value
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable validateAsync(AddressDetails address);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AddressDetails.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AddressDetails.java
new file mode 100644
index 0000000000000..1f8a16b2d2bc8
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AddressDetails.java
@@ -0,0 +1,277 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Address details.
+ */
+public class AddressDetails {
+ /**
+ * First Name.
+ */
+ @JsonProperty(value = "firstName")
+ private String firstName;
+
+ /**
+ * Last Name.
+ */
+ @JsonProperty(value = "lastName")
+ private String lastName;
+
+ /**
+ * Company Name.
+ */
+ @JsonProperty(value = "companyName")
+ private String companyName;
+
+ /**
+ * Address Line1.
+ */
+ @JsonProperty(value = "addressLine1")
+ private String addressLine1;
+
+ /**
+ * Address Line2.
+ */
+ @JsonProperty(value = "addressLine2")
+ private String addressLine2;
+
+ /**
+ * Address Line3.
+ */
+ @JsonProperty(value = "addressLine3")
+ private String addressLine3;
+
+ /**
+ * Address City.
+ */
+ @JsonProperty(value = "city")
+ private String city;
+
+ /**
+ * Address Region.
+ */
+ @JsonProperty(value = "region")
+ private String region;
+
+ /**
+ * Country code uses ISO2, 2-digit format.
+ */
+ @JsonProperty(value = "country")
+ private String country;
+
+ /**
+ * Address Postal Code.
+ */
+ @JsonProperty(value = "postalCode")
+ private String postalCode;
+
+ /**
+ * Get first Name.
+ *
+ * @return the firstName value
+ */
+ public String firstName() {
+ return this.firstName;
+ }
+
+ /**
+ * Set first Name.
+ *
+ * @param firstName the firstName value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withFirstName(String firstName) {
+ this.firstName = firstName;
+ return this;
+ }
+
+ /**
+ * Get last Name.
+ *
+ * @return the lastName value
+ */
+ public String lastName() {
+ return this.lastName;
+ }
+
+ /**
+ * Set last Name.
+ *
+ * @param lastName the lastName value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withLastName(String lastName) {
+ this.lastName = lastName;
+ return this;
+ }
+
+ /**
+ * Get company Name.
+ *
+ * @return the companyName value
+ */
+ public String companyName() {
+ return this.companyName;
+ }
+
+ /**
+ * Set company Name.
+ *
+ * @param companyName the companyName value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withCompanyName(String companyName) {
+ this.companyName = companyName;
+ return this;
+ }
+
+ /**
+ * Get address Line1.
+ *
+ * @return the addressLine1 value
+ */
+ public String addressLine1() {
+ return this.addressLine1;
+ }
+
+ /**
+ * Set address Line1.
+ *
+ * @param addressLine1 the addressLine1 value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withAddressLine1(String addressLine1) {
+ this.addressLine1 = addressLine1;
+ return this;
+ }
+
+ /**
+ * Get address Line2.
+ *
+ * @return the addressLine2 value
+ */
+ public String addressLine2() {
+ return this.addressLine2;
+ }
+
+ /**
+ * Set address Line2.
+ *
+ * @param addressLine2 the addressLine2 value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withAddressLine2(String addressLine2) {
+ this.addressLine2 = addressLine2;
+ return this;
+ }
+
+ /**
+ * Get address Line3.
+ *
+ * @return the addressLine3 value
+ */
+ public String addressLine3() {
+ return this.addressLine3;
+ }
+
+ /**
+ * Set address Line3.
+ *
+ * @param addressLine3 the addressLine3 value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withAddressLine3(String addressLine3) {
+ this.addressLine3 = addressLine3;
+ return this;
+ }
+
+ /**
+ * Get address City.
+ *
+ * @return the city value
+ */
+ public String city() {
+ return this.city;
+ }
+
+ /**
+ * Set address City.
+ *
+ * @param city the city value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withCity(String city) {
+ this.city = city;
+ return this;
+ }
+
+ /**
+ * Get address Region.
+ *
+ * @return the region value
+ */
+ public String region() {
+ return this.region;
+ }
+
+ /**
+ * Set address Region.
+ *
+ * @param region the region value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withRegion(String region) {
+ this.region = region;
+ return this;
+ }
+
+ /**
+ * Get country code uses ISO2, 2-digit format.
+ *
+ * @return the country value
+ */
+ public String country() {
+ return this.country;
+ }
+
+ /**
+ * Set country code uses ISO2, 2-digit format.
+ *
+ * @param country the country value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withCountry(String country) {
+ this.country = country;
+ return this;
+ }
+
+ /**
+ * Get address Postal Code.
+ *
+ * @return the postalCode value
+ */
+ public String postalCode() {
+ return this.postalCode;
+ }
+
+ /**
+ * Set address Postal Code.
+ *
+ * @param postalCode the postalCode value to set
+ * @return the AddressDetails object itself.
+ */
+ public AddressDetails withPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AddressValidationStatus.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AddressValidationStatus.java
new file mode 100644
index 0000000000000..4d9ea95a8614b
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AddressValidationStatus.java
@@ -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.v2019_10_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 {
+ /** 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 values() {
+ return values(AddressValidationStatus.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Agreement.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Agreement.java
new file mode 100644
index 0000000000000..fc9ed37a5a588
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Agreement.java
@@ -0,0 +1,64 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.AgreementInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import org.joda.time.DateTime;
+import java.util.List;
+
+/**
+ * Type representing Agreement.
+ */
+public interface Agreement extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the agreementLink value.
+ */
+ String agreementLink();
+
+ /**
+ * @return the effectiveDate value.
+ */
+ DateTime effectiveDate();
+
+ /**
+ * @return the expirationDate value.
+ */
+ DateTime expirationDate();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the participants value.
+ */
+ List participants();
+
+ /**
+ * @return the status value.
+ */
+ String status();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AgreementListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AgreementListResult.java
new file mode 100644
index 0000000000000..0f4aded018df5
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AgreementListResult.java
@@ -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.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.AgreementListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.AgreementInner;
+import java.util.List;
+
+/**
+ * Type representing AgreementListResult.
+ */
+public interface AgreementListResult extends HasInner, HasManager {
+ /**
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AgreementType.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AgreementType.java
new file mode 100644
index 0000000000000..976b97d8cedea
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AgreementType.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for AgreementType.
+ */
+public final class AgreementType extends ExpandableStringEnum {
+ /** Static value MicrosoftCustomerAgreement for AgreementType. */
+ public static final AgreementType MICROSOFT_CUSTOMER_AGREEMENT = fromString("MicrosoftCustomerAgreement");
+
+ /** Static value EnterpriseAgreement for AgreementType. */
+ public static final AgreementType ENTERPRISE_AGREEMENT = fromString("EnterpriseAgreement");
+
+ /** Static value MicrosoftOnlineServicesProgram for AgreementType. */
+ public static final AgreementType MICROSOFT_ONLINE_SERVICES_PROGRAM = fromString("MicrosoftOnlineServicesProgram");
+
+ /**
+ * Creates or finds a AgreementType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding AgreementType
+ */
+ @JsonCreator
+ public static AgreementType fromString(String name) {
+ return fromString(name, AgreementType.class);
+ }
+
+ /**
+ * @return known AgreementType values
+ */
+ public static Collection values() {
+ return values(AgreementType.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Agreements.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Agreements.java
new file mode 100644
index 0000000000000..59366d29a4ccd
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Agreements.java
@@ -0,0 +1,38 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.AgreementsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Agreements.
+ */
+public interface Agreements extends HasInner {
+ /**
+ * Lists all agreements for a billing account.
+ *
+ * @param billingAccountName billing Account Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByBillingAccountAsync(String billingAccountName);
+
+ /**
+ * Get the agreement by name.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param agreementName Agreement Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String billingAccountName, String agreementName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Amount.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Amount.java
new file mode 100644
index 0000000000000..38a48c1d84bad
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Amount.java
@@ -0,0 +1,58 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The Amount.
+ */
+public class Amount {
+ /**
+ * The currency for the amount value.
+ */
+ @JsonProperty(value = "currency", access = JsonProperty.Access.WRITE_ONLY)
+ private String currency;
+
+ /**
+ * Amount value.
+ */
+ @JsonProperty(value = "value")
+ private Double value;
+
+ /**
+ * Get the currency for the amount value.
+ *
+ * @return the currency value
+ */
+ public String currency() {
+ return this.currency;
+ }
+
+ /**
+ * Get amount value.
+ *
+ * @return the value value
+ */
+ 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;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AvailableBalance.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AvailableBalance.java
new file mode 100644
index 0000000000000..ba04740a32e2f
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AvailableBalance.java
@@ -0,0 +1,40 @@
+/**
+ * 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.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.AvailableBalanceInner;
+
+/**
+ * Type representing AvailableBalance.
+ */
+public interface AvailableBalance extends HasInner, HasManager {
+ /**
+ * @return the amount value.
+ */
+ Amount amount();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AvailableBalances.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AvailableBalances.java
new file mode 100644
index 0000000000000..18b408f304fc4
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AvailableBalances.java
@@ -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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.AvailableBalancesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing AvailableBalances.
+ */
+public interface AvailableBalances extends HasInner {
+ /**
+ * 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 getByBillingProfileAsync(String billingAccountName, String billingProfileName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AzurePlan.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AzurePlan.java
new file mode 100644
index 0000000000000..e7d5939e1e2ee
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/AzurePlan.java
@@ -0,0 +1,58 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Details about the azure plan.
+ */
+public class AzurePlan {
+ /**
+ * The sku id.
+ */
+ @JsonProperty(value = "skuId")
+ private String skuId;
+
+ /**
+ * The sku description.
+ */
+ @JsonProperty(value = "skuDescription", access = JsonProperty.Access.WRITE_ONLY)
+ private String skuDescription;
+
+ /**
+ * Get the sku id.
+ *
+ * @return the skuId value
+ */
+ public String skuId() {
+ return this.skuId;
+ }
+
+ /**
+ * Set the sku id.
+ *
+ * @param skuId the skuId value to set
+ * @return the AzurePlan object itself.
+ */
+ public AzurePlan withSkuId(String skuId) {
+ this.skuId = skuId;
+ return this;
+ }
+
+ /**
+ * Get the sku description.
+ *
+ * @return the skuDescription value
+ */
+ public String skuDescription() {
+ return this.skuDescription;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccount.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccount.java
new file mode 100644
index 0000000000000..ab902a298404b
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccount.java
@@ -0,0 +1,147 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_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.v2019_10_01_preview.implementation.BillingManager;
+import java.util.List;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingProfileInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.DepartmentInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.EnrollmentAccountInner;
+
+/**
+ * Type representing BillingAccount.
+ */
+public interface BillingAccount extends HasInner, Indexable, Updatable, Refreshable, HasManager {
+ /**
+ * @return the address value.
+ */
+ AddressDetails address();
+
+ /**
+ * @return the agreementType value.
+ */
+ AgreementType agreementType();
+
+ /**
+ * @return the billingProfiles value.
+ */
+ List billingProfiles();
+
+ /**
+ * @return the customerType value.
+ */
+ CustomerType customerType();
+
+ /**
+ * @return the departments value.
+ */
+ List departments();
+
+ /**
+ * @return the displayName value.
+ */
+ String displayName();
+
+ /**
+ * @return the enrollmentAccounts value.
+ */
+ List enrollmentAccounts();
+
+ /**
+ * @return the enrollmentDetails value.
+ */
+ Enrollment enrollmentDetails();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the organizationId value.
+ */
+ String organizationId();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The template for a BillingAccount update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithAddress, UpdateStages.WithBillingProfiles, UpdateStages.WithDepartments, UpdateStages.WithEnrollmentAccounts {
+ }
+
+ /**
+ * 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(AddressDetails 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 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 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 enrollmentAccounts);
+ }
+
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccountListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccountListResult.java
new file mode 100644
index 0000000000000..381d33ccc6fc7
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccountListResult.java
@@ -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.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.BillingAccountListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingAccountInner;
+import java.util.List;
+
+/**
+ * Type representing BillingAccountListResult.
+ */
+public interface BillingAccountListResult extends HasInner, HasManager {
+ /**
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccountUpdateRequest.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccountUpdateRequest.java
new file mode 100644
index 0000000000000..db150a60a1f16
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccountUpdateRequest.java
@@ -0,0 +1,207 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.List;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingProfileInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.DepartmentInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.EnrollmentAccountInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+
+/**
+ * The request properties of the billing account that can be updated.
+ */
+@JsonFlatten
+public class BillingAccountUpdateRequest {
+ /**
+ * The billing account name.
+ */
+ @JsonProperty(value = "properties.displayName", access = JsonProperty.Access.WRITE_ONLY)
+ private String displayName;
+
+ /**
+ * The address associated with billing account.
+ */
+ @JsonProperty(value = "properties.address")
+ private AddressDetails address;
+
+ /**
+ * The type of agreement. Possible values include:
+ * 'MicrosoftCustomerAgreement', 'EnterpriseAgreement',
+ * 'MicrosoftOnlineServicesProgram'.
+ */
+ @JsonProperty(value = "properties.agreementType", access = JsonProperty.Access.WRITE_ONLY)
+ private AgreementType agreementType;
+
+ /**
+ * The type of customer. Possible values include: 'Enterprise',
+ * 'Individual', 'Partner'.
+ */
+ @JsonProperty(value = "properties.customerType", access = JsonProperty.Access.WRITE_ONLY)
+ private CustomerType customerType;
+
+ /**
+ * The billing profiles associated to the billing account. By default this
+ * is not populated, unless it's specified in $expand.
+ */
+ @JsonProperty(value = "properties.billingProfiles")
+ private List billingProfiles;
+
+ /**
+ * The details about the associated legacy enrollment. By default this is
+ * not populated, unless it's specified in $expand.
+ */
+ @JsonProperty(value = "properties.enrollmentDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private Enrollment enrollmentDetails;
+
+ /**
+ * The departments associated to the enrollment.
+ */
+ @JsonProperty(value = "properties.departments")
+ private List departments;
+
+ /**
+ * The accounts associated to the enrollment.
+ */
+ @JsonProperty(value = "properties.enrollmentAccounts")
+ private List enrollmentAccounts;
+
+ /**
+ * Organization id.
+ */
+ @JsonProperty(value = "properties.organizationId", access = JsonProperty.Access.WRITE_ONLY)
+ private String organizationId;
+
+ /**
+ * Get the billing account name.
+ *
+ * @return the displayName value
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Get the address associated with billing account.
+ *
+ * @return the address value
+ */
+ public AddressDetails address() {
+ return this.address;
+ }
+
+ /**
+ * Set the address associated with billing account.
+ *
+ * @param address the address value to set
+ * @return the BillingAccountUpdateRequest object itself.
+ */
+ public BillingAccountUpdateRequest withAddress(AddressDetails address) {
+ this.address = address;
+ return this;
+ }
+
+ /**
+ * Get the type of agreement. Possible values include: 'MicrosoftCustomerAgreement', 'EnterpriseAgreement', 'MicrosoftOnlineServicesProgram'.
+ *
+ * @return the agreementType value
+ */
+ public AgreementType agreementType() {
+ return this.agreementType;
+ }
+
+ /**
+ * Get the type of customer. Possible values include: 'Enterprise', 'Individual', 'Partner'.
+ *
+ * @return the customerType value
+ */
+ public CustomerType customerType() {
+ return this.customerType;
+ }
+
+ /**
+ * Get the billing profiles associated to the billing account. By default this is not populated, unless it's specified in $expand.
+ *
+ * @return the billingProfiles value
+ */
+ public List billingProfiles() {
+ return this.billingProfiles;
+ }
+
+ /**
+ * Set the billing profiles associated to the billing account. By default this is not populated, unless it's specified in $expand.
+ *
+ * @param billingProfiles the billingProfiles value to set
+ * @return the BillingAccountUpdateRequest object itself.
+ */
+ public BillingAccountUpdateRequest withBillingProfiles(List billingProfiles) {
+ this.billingProfiles = billingProfiles;
+ return this;
+ }
+
+ /**
+ * Get the details about the associated legacy enrollment. By default this is not populated, unless it's specified in $expand.
+ *
+ * @return the enrollmentDetails value
+ */
+ public Enrollment enrollmentDetails() {
+ return this.enrollmentDetails;
+ }
+
+ /**
+ * Get the departments associated to the enrollment.
+ *
+ * @return the departments value
+ */
+ public List departments() {
+ return this.departments;
+ }
+
+ /**
+ * Set the departments associated to the enrollment.
+ *
+ * @param departments the departments value to set
+ * @return the BillingAccountUpdateRequest object itself.
+ */
+ public BillingAccountUpdateRequest withDepartments(List departments) {
+ this.departments = departments;
+ return this;
+ }
+
+ /**
+ * Get the accounts associated to the enrollment.
+ *
+ * @return the enrollmentAccounts value
+ */
+ public List enrollmentAccounts() {
+ return this.enrollmentAccounts;
+ }
+
+ /**
+ * Set the accounts associated to the enrollment.
+ *
+ * @param enrollmentAccounts the enrollmentAccounts value to set
+ * @return the BillingAccountUpdateRequest object itself.
+ */
+ public BillingAccountUpdateRequest withEnrollmentAccounts(List enrollmentAccounts) {
+ this.enrollmentAccounts = enrollmentAccounts;
+ return this;
+ }
+
+ /**
+ * Get organization id.
+ *
+ * @return the organizationId value
+ */
+ public String organizationId() {
+ return this.organizationId;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccounts.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccounts.java
new file mode 100644
index 0000000000000..46ce9c01e2f1f
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingAccounts.java
@@ -0,0 +1,36 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingAccountsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing BillingAccounts.
+ */
+public interface BillingAccounts extends HasInner {
+ /**
+ * Get the billing account by id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String billingAccountName);
+
+ /**
+ * Lists all billing accounts for a user which he has access to.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingFrequency.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingFrequency.java
new file mode 100644
index 0000000000000..86115830fc09b
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingFrequency.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for BillingFrequency.
+ */
+public final class BillingFrequency extends ExpandableStringEnum {
+ /** Static value OneTime for BillingFrequency. */
+ public static final BillingFrequency ONE_TIME = fromString("OneTime");
+
+ /** Static value Monthly for BillingFrequency. */
+ public static final BillingFrequency MONTHLY = fromString("Monthly");
+
+ /** Static value UsageBased for BillingFrequency. */
+ public static final BillingFrequency USAGE_BASED = fromString("UsageBased");
+
+ /**
+ * Creates or finds a BillingFrequency from its string representation.
+ * @param name a name to look for
+ * @return the corresponding BillingFrequency
+ */
+ @JsonCreator
+ public static BillingFrequency fromString(String name) {
+ return fromString(name, BillingFrequency.class);
+ }
+
+ /**
+ * @return known BillingFrequency values
+ */
+ public static Collection values() {
+ return values(BillingFrequency.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPermissions.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPermissions.java
new file mode 100644
index 0000000000000..4c22a4eb57a26
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPermissions.java
@@ -0,0 +1,57 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+
+/**
+ * Type representing BillingPermissions.
+ */
+public interface BillingPermissions {
+ /**
+ * Lists all billing permissions the caller has for a customer.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param customerName Customer name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByCustomerAsync(String billingAccountName, String customerName);
+
+ /**
+ * 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
+ */
+ Observable listByBillingAccountAsync(String billingAccountName);
+
+ /**
+ * Lists all billing permissions for the caller under invoice section.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByInvoiceSectionsAsync(String billingAccountName, String billingProfileName, String invoiceSectionName);
+
+ /**
+ * Lists all billing permissions the caller has for a billing account.
+ *
+ * @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 listByBillingProfileAsync(String billingAccountName, String billingProfileName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPermissionsListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPermissionsListResult.java
new file mode 100644
index 0000000000000..3a05157962c89
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPermissionsListResult.java
@@ -0,0 +1,26 @@
+/**
+ * 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.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.BillingPermissionsListResultInner;
+import java.util.List;
+
+/**
+ * Type representing BillingPermissionsListResult.
+ */
+public interface BillingPermissionsListResult extends HasInner, HasManager {
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPermissionsProperties.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPermissionsProperties.java
new file mode 100644
index 0000000000000..4f8b4b2546418
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPermissionsProperties.java
@@ -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.v2019_10_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 actions;
+
+ /**
+ * The set of actions the caller is not allowed to do.
+ */
+ @JsonProperty(value = "notActions", access = JsonProperty.Access.WRITE_ONLY)
+ private List notActions;
+
+ /**
+ * Get the set of actions that the caller is allowed to do.
+ *
+ * @return the actions value
+ */
+ public List actions() {
+ return this.actions;
+ }
+
+ /**
+ * Get the set of actions the caller is not allowed to do.
+ *
+ * @return the notActions value
+ */
+ public List notActions() {
+ return this.notActions;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfile.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfile.java
new file mode 100644
index 0000000000000..87778e6537984
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfile.java
@@ -0,0 +1,249 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingProfileInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import java.util.List;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.InvoiceSectionInner;
+
+/**
+ * Type representing BillingProfile.
+ */
+public interface BillingProfile extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the address value.
+ */
+ AddressDetails address();
+
+ /**
+ * @return the currency value.
+ */
+ String currency();
+
+ /**
+ * @return the displayName value.
+ */
+ String displayName();
+
+ /**
+ * @return the enabledAzurePlans value.
+ */
+ List enabledAzurePlans();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the invoiceDay value.
+ */
+ Integer invoiceDay();
+
+ /**
+ * @return the invoiceEmailOptIn value.
+ */
+ Boolean invoiceEmailOptIn();
+
+ /**
+ * @return the invoiceSections value.
+ */
+ List invoiceSections();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the poNumber value.
+ */
+ String poNumber();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the BillingProfile definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithBillingAccount, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of BillingProfile definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a BillingProfile definition.
+ */
+ interface Blank extends WithBillingAccount {
+ }
+
+ /**
+ * The stage of the billingprofile definition allowing to specify BillingAccount.
+ */
+ interface WithBillingAccount {
+ /**
+ * Specifies billingAccountName.
+ * @param billingAccountName billing Account Id
+ * @return the next definition stage
+ */
+ WithCreate withExistingBillingAccount(String billingAccountName);
+ }
+
+ /**
+ * The stage of the billingprofile definition allowing to specify Address.
+ */
+ interface WithAddress {
+ /**
+ * Specifies address.
+ * @param address Billing address
+ * @return the next definition stage
+ */
+ WithCreate withAddress(AddressDetails address);
+ }
+
+ /**
+ * The stage of the billingprofile definition allowing to specify DisplayName.
+ */
+ interface WithDisplayName {
+ /**
+ * Specifies displayName.
+ * @param displayName The billing profile name
+ * @return the next definition stage
+ */
+ WithCreate withDisplayName(String displayName);
+ }
+
+ /**
+ * The stage of the billingprofile definition allowing to specify EnabledAzurePlans.
+ */
+ interface WithEnabledAzurePlans {
+ /**
+ * Specifies enabledAzurePlans.
+ * @param enabledAzurePlans Enabled azure plans for this billing profile
+ * @return the next definition stage
+ */
+ WithCreate withEnabledAzurePlans(List enabledAzurePlans);
+ }
+
+ /**
+ * The stage of the billingprofile definition allowing to specify InvoiceEmailOptIn.
+ */
+ interface WithInvoiceEmailOptIn {
+ /**
+ * Specifies invoiceEmailOptIn.
+ * @param invoiceEmailOptIn If the billing profile is opted in to receive invoices via email
+ * @return the next definition stage
+ */
+ WithCreate withInvoiceEmailOptIn(Boolean invoiceEmailOptIn);
+ }
+
+ /**
+ * The stage of the billingprofile definition allowing to specify PoNumber.
+ */
+ interface WithPoNumber {
+ /**
+ * Specifies poNumber.
+ * @param poNumber Purchase order number
+ * @return the next definition stage
+ */
+ WithCreate withPoNumber(String poNumber);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithAddress, DefinitionStages.WithDisplayName, DefinitionStages.WithEnabledAzurePlans, DefinitionStages.WithInvoiceEmailOptIn, DefinitionStages.WithPoNumber {
+ }
+ }
+ /**
+ * The template for a BillingProfile update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithAddress, UpdateStages.WithDisplayName, UpdateStages.WithEnabledAzurePlans, UpdateStages.WithInvoiceSections, UpdateStages.WithPoNumber {
+ }
+
+ /**
+ * Grouping of BillingProfile update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the billingprofile update allowing to specify Address.
+ */
+ interface WithAddress {
+ /**
+ * Specifies address.
+ * @param address Billing address
+ * @return the next update stage
+ */
+ Update withAddress(AddressDetails address);
+ }
+
+ /**
+ * The stage of the billingprofile update allowing to specify DisplayName.
+ */
+ interface WithDisplayName {
+ /**
+ * Specifies displayName.
+ * @param displayName The billing profile name
+ * @return the next update stage
+ */
+ Update withDisplayName(String displayName);
+ }
+
+ /**
+ * The stage of the billingprofile update allowing to specify EnabledAzurePlans.
+ */
+ interface WithEnabledAzurePlans {
+ /**
+ * Specifies enabledAzurePlans.
+ * @param enabledAzurePlans Information about the enabled azure plans
+ * @return the next update stage
+ */
+ Update withEnabledAzurePlans(List enabledAzurePlans);
+ }
+
+ /**
+ * The stage of the billingprofile update allowing to specify InvoiceSections.
+ */
+ interface WithInvoiceSections {
+ /**
+ * Specifies invoiceSections.
+ * @param invoiceSections The invoice sections associated to the billing profile
+ * @return the next update stage
+ */
+ Update withInvoiceSections(List invoiceSections);
+ }
+
+ /**
+ * The stage of the billingprofile update allowing to specify PoNumber.
+ */
+ interface WithPoNumber {
+ /**
+ * Specifies poNumber.
+ * @param poNumber Purchase order number
+ * @return the next update stage
+ */
+ Update withPoNumber(String poNumber);
+ }
+
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfileCreationRequest.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfileCreationRequest.java
new file mode 100644
index 0000000000000..62805b75b4b87
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfileCreationRequest.java
@@ -0,0 +1,148 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The request parameters for creating a new billing profile.
+ */
+public class BillingProfileCreationRequest {
+ /**
+ * The billing profile name.
+ */
+ @JsonProperty(value = "displayName")
+ private String displayName;
+
+ /**
+ * Purchase order number.
+ */
+ @JsonProperty(value = "poNumber")
+ private String poNumber;
+
+ /**
+ * Billing address.
+ */
+ @JsonProperty(value = "address")
+ private AddressDetails address;
+
+ /**
+ * If the billing profile is opted in to receive invoices via email.
+ */
+ @JsonProperty(value = "invoiceEmailOptIn")
+ private Boolean invoiceEmailOptIn;
+
+ /**
+ * Enabled azure plans for this billing profile.
+ */
+ @JsonProperty(value = "enabledAzurePlans")
+ private List enabledAzurePlans;
+
+ /**
+ * Get the billing profile name.
+ *
+ * @return the displayName value
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the billing profile name.
+ *
+ * @param displayName the displayName value to set
+ * @return the BillingProfileCreationRequest object itself.
+ */
+ public BillingProfileCreationRequest withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get purchase order number.
+ *
+ * @return the poNumber value
+ */
+ public String poNumber() {
+ return this.poNumber;
+ }
+
+ /**
+ * Set purchase order number.
+ *
+ * @param poNumber the poNumber value to set
+ * @return the BillingProfileCreationRequest object itself.
+ */
+ public BillingProfileCreationRequest withPoNumber(String poNumber) {
+ this.poNumber = poNumber;
+ return this;
+ }
+
+ /**
+ * Get billing address.
+ *
+ * @return the address value
+ */
+ public AddressDetails address() {
+ return this.address;
+ }
+
+ /**
+ * Set billing address.
+ *
+ * @param address the address value to set
+ * @return the BillingProfileCreationRequest object itself.
+ */
+ public BillingProfileCreationRequest withAddress(AddressDetails address) {
+ this.address = address;
+ return this;
+ }
+
+ /**
+ * Get if the billing profile is opted in to receive invoices via email.
+ *
+ * @return the invoiceEmailOptIn value
+ */
+ public Boolean invoiceEmailOptIn() {
+ return this.invoiceEmailOptIn;
+ }
+
+ /**
+ * Set if the billing profile is opted in to receive invoices via email.
+ *
+ * @param invoiceEmailOptIn the invoiceEmailOptIn value to set
+ * @return the BillingProfileCreationRequest object itself.
+ */
+ public BillingProfileCreationRequest withInvoiceEmailOptIn(Boolean invoiceEmailOptIn) {
+ this.invoiceEmailOptIn = invoiceEmailOptIn;
+ return this;
+ }
+
+ /**
+ * Get enabled azure plans for this billing profile.
+ *
+ * @return the enabledAzurePlans value
+ */
+ public List enabledAzurePlans() {
+ return this.enabledAzurePlans;
+ }
+
+ /**
+ * Set enabled azure plans for this billing profile.
+ *
+ * @param enabledAzurePlans the enabledAzurePlans value to set
+ * @return the BillingProfileCreationRequest object itself.
+ */
+ public BillingProfileCreationRequest withEnabledAzurePlans(List enabledAzurePlans) {
+ this.enabledAzurePlans = enabledAzurePlans;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfileListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfileListResult.java
new file mode 100644
index 0000000000000..464f5824ab3ff
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfileListResult.java
@@ -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.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.BillingProfileListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingProfileInner;
+import java.util.List;
+
+/**
+ * Type representing BillingProfileListResult.
+ */
+public interface BillingProfileListResult extends HasInner, HasManager {
+ /**
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfiles.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfiles.java
new file mode 100644
index 0000000000000..a6301147080d7
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfiles.java
@@ -0,0 +1,39 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingProfilesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing BillingProfiles.
+ */
+public interface BillingProfiles extends SupportsCreating, HasInner {
+ /**
+ * 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 listByBillingAccountAsync(String billingAccountName);
+
+ /**
+ * Get the billing profile by id.
+ *
+ * @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 getAsync(String billingAccountName, String billingProfileName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfilesCreateHeaders.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfilesCreateHeaders.java
new file mode 100644
index 0000000000000..afcaf38b807f7
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfilesCreateHeaders.java
@@ -0,0 +1,69 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Defines headers for Create operation.
+ */
+public class BillingProfilesCreateHeaders {
+ /**
+ * Location URI to poll for result.
+ */
+ @JsonProperty(value = "Location")
+ private String location;
+
+ /**
+ * Recommends the retryable time after receiving this.
+ */
+ @JsonProperty(value = "Retry-After")
+ private Integer retryAfter;
+
+ /**
+ * Get location URI to poll for result.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set location URI to poll for result.
+ *
+ * @param location the location value to set
+ * @return the BillingProfilesCreateHeaders object itself.
+ */
+ public BillingProfilesCreateHeaders withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get recommends the retryable time after receiving this.
+ *
+ * @return the retryAfter value
+ */
+ public Integer retryAfter() {
+ return this.retryAfter;
+ }
+
+ /**
+ * Set recommends the retryable time after receiving this.
+ *
+ * @param retryAfter the retryAfter value to set
+ * @return the BillingProfilesCreateHeaders object itself.
+ */
+ public BillingProfilesCreateHeaders withRetryAfter(Integer retryAfter) {
+ this.retryAfter = retryAfter;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfilesUpdateHeaders.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfilesUpdateHeaders.java
new file mode 100644
index 0000000000000..5ed2200818782
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProfilesUpdateHeaders.java
@@ -0,0 +1,70 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Defines headers for Update operation.
+ */
+public class BillingProfilesUpdateHeaders {
+ /**
+ * GET this URL to retrieve the status of the asynchronous operation.
+ */
+ @JsonProperty(value = "Location")
+ private String location;
+
+ /**
+ * The amount of delay to use while the status of the operation is checked.
+ * The value is expressed in seconds.
+ */
+ @JsonProperty(value = "Retry-After")
+ private String retryAfter;
+
+ /**
+ * Get gET this URL to retrieve the status of the asynchronous operation.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set gET this URL to retrieve the status of the asynchronous operation.
+ *
+ * @param location the location value to set
+ * @return the BillingProfilesUpdateHeaders object itself.
+ */
+ public BillingProfilesUpdateHeaders withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
+ *
+ * @return the retryAfter value
+ */
+ public String retryAfter() {
+ return this.retryAfter;
+ }
+
+ /**
+ * Set the amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
+ *
+ * @param retryAfter the retryAfter value to set
+ * @return the BillingProfilesUpdateHeaders object itself.
+ */
+ public BillingProfilesUpdateHeaders withRetryAfter(String retryAfter) {
+ this.retryAfter = retryAfter;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProperty.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProperty.java
new file mode 100644
index 0000000000000..547a73ede1cf7
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingProperty.java
@@ -0,0 +1,95 @@
+/**
+ * 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.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.BillingPropertyInner;
+
+/**
+ * Type representing BillingProperty.
+ */
+public interface BillingProperty extends HasInner, HasManager {
+ /**
+ * @return the billingAccountDisplayName value.
+ */
+ String billingAccountDisplayName();
+
+ /**
+ * @return the billingAccountId value.
+ */
+ String billingAccountId();
+
+ /**
+ * @return the billingProfileDisplayName value.
+ */
+ String billingProfileDisplayName();
+
+ /**
+ * @return the billingProfileId value.
+ */
+ String billingProfileId();
+
+ /**
+ * @return the billingTenantId value.
+ */
+ String billingTenantId();
+
+ /**
+ * @return the costCenter value.
+ */
+ String costCenter();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the invoiceSectionDisplayName value.
+ */
+ String invoiceSectionDisplayName();
+
+ /**
+ * @return the invoiceSectionId value.
+ */
+ String invoiceSectionId();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the productId value.
+ */
+ String productId();
+
+ /**
+ * @return the productName value.
+ */
+ String productName();
+
+ /**
+ * @return the skuDescription value.
+ */
+ String skuDescription();
+
+ /**
+ * @return the skuId value.
+ */
+ String skuId();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPropertys.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPropertys.java
new file mode 100644
index 0000000000000..a8861e6f8b54d
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingPropertys.java
@@ -0,0 +1,27 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingPropertysInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing BillingPropertys.
+ */
+public interface BillingPropertys extends HasInner {
+ /**
+ * Get billing property by subscription Id.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignment.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignment.java
new file mode 100644
index 0000000000000..7db03d45f45f3
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignment.java
@@ -0,0 +1,72 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingRoleAssignmentInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+
+/**
+ * Type representing BillingRoleAssignment.
+ */
+public interface BillingRoleAssignment extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the billingRoleAssignmentName value.
+ */
+ String billingRoleAssignmentName();
+
+ /**
+ * @return the createdByPrincipalId value.
+ */
+ String createdByPrincipalId();
+
+ /**
+ * @return the createdByPrincipalTenantId value.
+ */
+ String createdByPrincipalTenantId();
+
+ /**
+ * @return the createdOn value.
+ */
+ String createdOn();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the principalId value.
+ */
+ String principalId();
+
+ /**
+ * @return the roleDefinitionName value.
+ */
+ String roleDefinitionName();
+
+ /**
+ * @return the scope value.
+ */
+ String scope();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignmentListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignmentListResult.java
new file mode 100644
index 0000000000000..579cd3330cb8f
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignmentListResult.java
@@ -0,0 +1,27 @@
+/**
+ * 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.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.BillingRoleAssignmentListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingRoleAssignmentInner;
+import java.util.List;
+
+/**
+ * Type representing BillingRoleAssignmentListResult.
+ */
+public interface BillingRoleAssignmentListResult extends HasInner, HasManager {
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignmentPayload.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignmentPayload.java
new file mode 100644
index 0000000000000..68f652825a3b9
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignmentPayload.java
@@ -0,0 +1,69 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The payload use to update role assignment on a scope.
+ */
+public class BillingRoleAssignmentPayload {
+ /**
+ * The user's principal id that the role gets assigned to.
+ */
+ @JsonProperty(value = "principalId")
+ private String principalId;
+
+ /**
+ * The role definition id.
+ */
+ @JsonProperty(value = "billingRoleDefinitionId")
+ private String billingRoleDefinitionId;
+
+ /**
+ * Get the user's principal id that the role gets assigned to.
+ *
+ * @return the principalId value
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Set the user's principal id that the role gets assigned to.
+ *
+ * @param principalId the principalId value to set
+ * @return the BillingRoleAssignmentPayload object itself.
+ */
+ public BillingRoleAssignmentPayload withPrincipalId(String principalId) {
+ this.principalId = principalId;
+ return this;
+ }
+
+ /**
+ * Get the role definition id.
+ *
+ * @return the billingRoleDefinitionId value
+ */
+ public String billingRoleDefinitionId() {
+ return this.billingRoleDefinitionId;
+ }
+
+ /**
+ * Set the role definition id.
+ *
+ * @param billingRoleDefinitionId the billingRoleDefinitionId value to set
+ * @return the BillingRoleAssignmentPayload object itself.
+ */
+ public BillingRoleAssignmentPayload withBillingRoleDefinitionId(String billingRoleDefinitionId) {
+ this.billingRoleDefinitionId = billingRoleDefinitionId;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignments.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignments.java
new file mode 100644
index 0000000000000..a3a0773d0353a
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleAssignments.java
@@ -0,0 +1,149 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingRoleAssignmentsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing BillingRoleAssignments.
+ */
+public interface BillingRoleAssignments extends HasInner {
+ /**
+ * Get the role assignment for the caller on the invoice Section.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile 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 getByInvoiceSectionAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, String billingRoleAssignmentName);
+
+ /**
+ * Delete the role assignment on the invoice Section.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile 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 deleteByInvoiceSectionAsync(String billingAccountName, String billingProfileName, 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 getByBillingProfileAsync(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 deleteByBillingProfileAsync(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 listByBillingAccountAsync(String billingAccountName);
+
+ /**
+ * Get the role assignments on the invoice Section.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByInvoiceSectionAsync(String billingAccountName, String billingProfileName, 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 listByBillingProfileAsync(String billingAccountName, String billingProfileName);
+
+ /**
+ * 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 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
+ */
+ Completable deleteByBillingAccountAsync(String billingAccountName, String billingRoleAssignmentName);
+
+ /**
+ * The operation to add a role assignment to a billing account.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param parameters Parameters supplied to add a role assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable addByBillingAccountAsync(String billingAccountName, BillingRoleAssignmentPayload parameters);
+
+ /**
+ * The operation to add a role assignment to a invoice Section.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @param parameters Parameters supplied to add a role assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable addByInvoiceSectionAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, BillingRoleAssignmentPayload parameters);
+
+ /**
+ * The operation to add a role assignment to a billing profile.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param parameters Parameters supplied to add a role assignment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable addByBillingProfileAsync(String billingAccountName, String billingProfileName, BillingRoleAssignmentPayload parameters);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleDefinition.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleDefinition.java
new file mode 100644
index 0000000000000..ca28289069f34
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleDefinition.java
@@ -0,0 +1,53 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingRoleDefinitionInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import java.util.List;
+
+/**
+ * Type representing BillingRoleDefinition.
+ */
+public interface BillingRoleDefinition extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the description value.
+ */
+ String description();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the roleName value.
+ */
+ String roleName();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleDefinitionListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleDefinitionListResult.java
new file mode 100644
index 0000000000000..de4f300bbe462
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleDefinitionListResult.java
@@ -0,0 +1,27 @@
+/**
+ * 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.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.BillingRoleDefinitionListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingRoleDefinitionInner;
+import java.util.List;
+
+/**
+ * Type representing BillingRoleDefinitionListResult.
+ */
+public interface BillingRoleDefinitionListResult extends HasInner, HasManager {
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleDefinitions.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleDefinitions.java
new file mode 100644
index 0000000000000..8ee7bede53f71
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingRoleDefinitions.java
@@ -0,0 +1,82 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingRoleDefinitionsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing BillingRoleDefinitions.
+ */
+public interface BillingRoleDefinitions extends HasInner {
+ /**
+ * Gets the role definition for a role.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile 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 getByInvoiceSectionAsync(String billingAccountName, String billingProfileName, 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 getByBillingProfileAsync(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 listByBillingAccountAsync(String billingAccountName);
+
+ /**
+ * Lists the role definition for an invoice Section.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByInvoiceSectionAsync(String billingAccountName, String billingProfileName, 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 listByBillingProfileAsync(String billingAccountName, String billingProfileName);
+
+ /**
+ * 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 getByBillingAccountAsync(String billingAccountName, String billingRoleDefinitionName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscription.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscription.java
new file mode 100644
index 0000000000000..03cae8d6c84cb
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscription.java
@@ -0,0 +1,108 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingSubscriptionInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import java.util.UUID;
+
+/**
+ * Type representing BillingSubscription.
+ */
+public interface BillingSubscription extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the billingProfileDisplayName value.
+ */
+ String billingProfileDisplayName();
+
+ /**
+ * @return the billingProfileId value.
+ */
+ String billingProfileId();
+
+ /**
+ * @return the customerDisplayName value.
+ */
+ String customerDisplayName();
+
+ /**
+ * @return the customerId value.
+ */
+ String customerId();
+
+ /**
+ * @return the displayName value.
+ */
+ String displayName();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the invoiceSectionDisplayName value.
+ */
+ String invoiceSectionDisplayName();
+
+ /**
+ * @return the invoiceSectionId value.
+ */
+ String invoiceSectionId();
+
+ /**
+ * @return the lastMonthCharges value.
+ */
+ Amount lastMonthCharges();
+
+ /**
+ * @return the monthToDateCharges value.
+ */
+ Amount monthToDateCharges();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the reseller value.
+ */
+ Reseller reseller();
+
+ /**
+ * @return the skuDescription value.
+ */
+ String skuDescription();
+
+ /**
+ * @return the skuId value.
+ */
+ String skuId();
+
+ /**
+ * @return the subscriptionBillingStatus value.
+ */
+ BillingSubscriptionStatusType subscriptionBillingStatus();
+
+ /**
+ * @return the subscriptionId value.
+ */
+ UUID subscriptionId();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptionStatusType.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptionStatusType.java
new file mode 100644
index 0000000000000..bc9b2cf08b79d
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptionStatusType.java
@@ -0,0 +1,50 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for BillingSubscriptionStatusType.
+ */
+public final class BillingSubscriptionStatusType extends ExpandableStringEnum {
+ /** Static value Active for BillingSubscriptionStatusType. */
+ public static final BillingSubscriptionStatusType ACTIVE = fromString("Active");
+
+ /** Static value Inactive for BillingSubscriptionStatusType. */
+ public static final BillingSubscriptionStatusType INACTIVE = fromString("Inactive");
+
+ /** Static value Abandoned for BillingSubscriptionStatusType. */
+ public static final BillingSubscriptionStatusType ABANDONED = fromString("Abandoned");
+
+ /** Static value Deleted for BillingSubscriptionStatusType. */
+ public static final BillingSubscriptionStatusType DELETED = fromString("Deleted");
+
+ /** Static value Warning for BillingSubscriptionStatusType. */
+ public static final BillingSubscriptionStatusType WARNING = fromString("Warning");
+
+ /**
+ * Creates or finds a BillingSubscriptionStatusType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding BillingSubscriptionStatusType
+ */
+ @JsonCreator
+ public static BillingSubscriptionStatusType fromString(String name) {
+ return fromString(name, BillingSubscriptionStatusType.class);
+ }
+
+ /**
+ * @return known BillingSubscriptionStatusType values
+ */
+ public static Collection values() {
+ return values(BillingSubscriptionStatusType.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptions.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptions.java
new file mode 100644
index 0000000000000..a68fb8ab3b299
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptions.java
@@ -0,0 +1,108 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingSubscriptionsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing BillingSubscriptions.
+ */
+public interface BillingSubscriptions extends HasInner {
+ /**
+ * Lists billing subscriptions by billing account name.
+ *
+ * @param billingAccountName billing Account Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByBillingAccountAsync(final String billingAccountName);
+
+ /**
+ * Lists billing subscriptions by billing profile name.
+ *
+ * @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 listByBillingProfileAsync(String billingAccountName, String billingProfileName);
+
+ /**
+ * Lists billing subscription by invoice section name.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByInvoiceSectionAsync(String billingAccountName, String billingProfileName, String invoiceSectionName);
+
+ /**
+ * Get a single billing subscription by name.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @param billingSubscriptionName Billing Subscription Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, String billingSubscriptionName);
+
+ /**
+ * Transfers the subscription from one invoice section to another within a billing account.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @param billingSubscriptionName Billing Subscription Id.
+ * @param parameters Request parameters supplied to the Transfer Billing Subscription operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable transferAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, String billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters);
+
+ /**
+ * Validates the transfer of billing subscriptions across invoice sections.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @param billingSubscriptionName Billing Subscription Id.
+ * @param parameters Parameters supplied to the Transfer Billing Subscription operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable validateTransferAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, String billingSubscriptionName, TransferBillingSubscriptionRequestProperties parameters);
+
+ /**
+ * Get a single billing subscription by id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param customerName Customer name.
+ * @param billingSubscriptionName Billing Subscription Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getByCustomerAsync(String billingAccountName, String customerName, String billingSubscriptionName);
+
+ /**
+ * Lists billing subscription by customer id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param customerName Customer name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByCustomerAsync(final String billingAccountName, final String customerName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptionsListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptionsListResult.java
new file mode 100644
index 0000000000000..efa0aa2a9c058
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptionsListResult.java
@@ -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.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.BillingSubscriptionsListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingSubscriptionInner;
+import java.util.List;
+
+/**
+ * Type representing BillingSubscriptionsListResult.
+ */
+public interface BillingSubscriptionsListResult extends HasInner, HasManager {
+ /**
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptionsTransferHeaders.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptionsTransferHeaders.java
new file mode 100644
index 0000000000000..dbe313693c676
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/BillingSubscriptionsTransferHeaders.java
@@ -0,0 +1,69 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Defines headers for Transfer operation.
+ */
+public class BillingSubscriptionsTransferHeaders {
+ /**
+ * Location URI to poll for result.
+ */
+ @JsonProperty(value = "Location")
+ private String location;
+
+ /**
+ * Recommends the retryable time after receiving this.
+ */
+ @JsonProperty(value = "Retry-After")
+ private Integer retryAfter;
+
+ /**
+ * Get location URI to poll for result.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set location URI to poll for result.
+ *
+ * @param location the location value to set
+ * @return the BillingSubscriptionsTransferHeaders object itself.
+ */
+ public BillingSubscriptionsTransferHeaders withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get recommends the retryable time after receiving this.
+ *
+ * @return the retryAfter value
+ */
+ public Integer retryAfter() {
+ return this.retryAfter;
+ }
+
+ /**
+ * Set recommends the retryable time after receiving this.
+ *
+ * @param retryAfter the retryAfter value to set
+ * @return the BillingSubscriptionsTransferHeaders object itself.
+ */
+ public BillingSubscriptionsTransferHeaders withRetryAfter(Integer retryAfter) {
+ this.retryAfter = retryAfter;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Customer.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Customer.java
new file mode 100644
index 0000000000000..d868c4c634207
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Customer.java
@@ -0,0 +1,51 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.CustomerInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import java.util.List;
+
+/**
+ * Type representing Customer.
+ */
+public interface Customer extends HasInner, HasManager {
+ /**
+ * @return the displayName value.
+ */
+ String displayName();
+
+ /**
+ * @return the enabledAzurePlans value.
+ */
+ List enabledAzurePlans();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the resellers value.
+ */
+ List resellers();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/CustomerBillingProfileBillingAccountTransferDetails.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/CustomerBillingProfileBillingAccountTransferDetails.java
new file mode 100644
index 0000000000000..9242786a9b3c8
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/CustomerBillingProfileBillingAccountTransferDetails.java
@@ -0,0 +1,92 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.TransferDetailsInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import org.joda.time.DateTime;
+import java.util.List;
+
+/**
+ * Type representing CustomerBillingProfileBillingAccountTransferDetails.
+ */
+public interface CustomerBillingProfileBillingAccountTransferDetails extends HasInner, HasManager {
+ /**
+ * @return the billingAccountId value.
+ */
+ String billingAccountId();
+
+ /**
+ * @return the billingProfileId value.
+ */
+ String billingProfileId();
+
+ /**
+ * @return the canceledBy value.
+ */
+ String canceledBy();
+
+ /**
+ * @return the creationTime value.
+ */
+ DateTime creationTime();
+
+ /**
+ * @return the detailedTransferStatus value.
+ */
+ List detailedTransferStatus();
+
+ /**
+ * @return the expirationTime value.
+ */
+ DateTime expirationTime();
+
+ /**
+ * @return the initiatorCustomerType value.
+ */
+ String initiatorCustomerType();
+
+ /**
+ * @return the initiatorEmailId value.
+ */
+ String initiatorEmailId();
+
+ /**
+ * @return the invoiceSectionId value.
+ */
+ String invoiceSectionId();
+
+ /**
+ * @return the lastModifiedTime value.
+ */
+ DateTime lastModifiedTime();
+
+ /**
+ * @return the recipientEmailId value.
+ */
+ String recipientEmailId();
+
+ /**
+ * @return the resellerId value.
+ */
+ String resellerId();
+
+ /**
+ * @return the resellerName value.
+ */
+ String resellerName();
+
+ /**
+ * @return the transferStatus value.
+ */
+ TransferStatus transferStatus();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/CustomerBillingProfileBillingAccountTransferDetailsModel.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/CustomerBillingProfileBillingAccountTransferDetailsModel.java
new file mode 100644
index 0000000000000..26acbad7b9e71
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/CustomerBillingProfileBillingAccountTransferDetailsModel.java
@@ -0,0 +1,92 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.TransferDetailsInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import org.joda.time.DateTime;
+import java.util.List;
+
+/**
+ * Type representing CustomerBillingProfileBillingAccountTransferDetailsModel.
+ */
+public interface CustomerBillingProfileBillingAccountTransferDetailsModel extends HasInner, HasManager {
+ /**
+ * @return the billingAccountId value.
+ */
+ String billingAccountId();
+
+ /**
+ * @return the billingProfileId value.
+ */
+ String billingProfileId();
+
+ /**
+ * @return the canceledBy value.
+ */
+ String canceledBy();
+
+ /**
+ * @return the creationTime value.
+ */
+ DateTime creationTime();
+
+ /**
+ * @return the detailedTransferStatus value.
+ */
+ List detailedTransferStatus();
+
+ /**
+ * @return the expirationTime value.
+ */
+ DateTime expirationTime();
+
+ /**
+ * @return the initiatorCustomerType value.
+ */
+ String initiatorCustomerType();
+
+ /**
+ * @return the initiatorEmailId value.
+ */
+ String initiatorEmailId();
+
+ /**
+ * @return the invoiceSectionId value.
+ */
+ String invoiceSectionId();
+
+ /**
+ * @return the lastModifiedTime value.
+ */
+ DateTime lastModifiedTime();
+
+ /**
+ * @return the recipientEmailId value.
+ */
+ String recipientEmailId();
+
+ /**
+ * @return the resellerId value.
+ */
+ String resellerId();
+
+ /**
+ * @return the resellerName value.
+ */
+ String resellerName();
+
+ /**
+ * @return the transferStatus value.
+ */
+ TransferStatus transferStatus();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/CustomerType.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/CustomerType.java
new file mode 100644
index 0000000000000..3a5f4935ae2ec
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/CustomerType.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for CustomerType.
+ */
+public final class CustomerType extends ExpandableStringEnum {
+ /** Static value Enterprise for CustomerType. */
+ public static final CustomerType ENTERPRISE = fromString("Enterprise");
+
+ /** Static value Individual for CustomerType. */
+ public static final CustomerType INDIVIDUAL = fromString("Individual");
+
+ /** Static value Partner for CustomerType. */
+ public static final CustomerType PARTNER = fromString("Partner");
+
+ /**
+ * Creates or finds a CustomerType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding CustomerType
+ */
+ @JsonCreator
+ public static CustomerType fromString(String name) {
+ return fromString(name, CustomerType.class);
+ }
+
+ /**
+ * @return known CustomerType values
+ */
+ public static Collection values() {
+ return values(CustomerType.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Customers.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Customers.java
new file mode 100644
index 0000000000000..a760f51007ea1
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Customers.java
@@ -0,0 +1,48 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.CustomersInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Customers.
+ */
+public interface Customers extends HasInner {
+ /**
+ * Lists customers which the current user can work with on-behalf of a partner.
+ *
+ * @param billingAccountName billing Account Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByBillingAccountAsync(final String billingAccountName);
+
+ /**
+ * Gets a customer by its id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param customerName Customer name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String billingAccountName, String customerName);
+
+ /**
+ * Lists customers by billing profile which the current user can work with on-behalf of a partner.
+ *
+ * @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 listByBillingProfileAsync(final String billingAccountName, final String billingProfileName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Department.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Department.java
new file mode 100644
index 0000000000000..09763d84ada5a
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Department.java
@@ -0,0 +1,58 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.DepartmentInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import java.util.List;
+
+/**
+ * Type representing Department.
+ */
+public interface Department extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the costCenter value.
+ */
+ String costCenter();
+
+ /**
+ * @return the departmentName value.
+ */
+ String departmentName();
+
+ /**
+ * @return the enrollmentAccounts value.
+ */
+ List enrollmentAccounts();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the status value.
+ */
+ String status();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DepartmentListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DepartmentListResult.java
new file mode 100644
index 0000000000000..b0c14ee027d31
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DepartmentListResult.java
@@ -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.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.DepartmentListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.DepartmentInner;
+import java.util.List;
+
+/**
+ * Type representing DepartmentListResult.
+ */
+public interface DepartmentListResult extends HasInner, HasManager {
+ /**
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Departments.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Departments.java
new file mode 100644
index 0000000000000..fca31e4619c91
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Departments.java
@@ -0,0 +1,38 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.DepartmentsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Departments.
+ */
+public interface Departments extends HasInner {
+ /**
+ * Lists all departments for a user which he has access to.
+ *
+ * @param billingAccountName billing Account Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByBillingAccountAsync(String billingAccountName);
+
+ /**
+ * Get the department by id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param departmentName Department Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String billingAccountName, String departmentName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DetailedTransferStatus.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DetailedTransferStatus.java
new file mode 100644
index 0000000000000..d815c40597dd2
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DetailedTransferStatus.java
@@ -0,0 +1,90 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Detailed transfer status.
+ */
+public class DetailedTransferStatus {
+ /**
+ * Type of product being transferred. Possible values include:
+ * 'AzureSubscription', 'AzureReservation'.
+ */
+ @JsonProperty(value = "productType", access = JsonProperty.Access.WRITE_ONLY)
+ private ProductType productType;
+
+ /**
+ * Id of product being transferred.
+ */
+ @JsonProperty(value = "productId", access = JsonProperty.Access.WRITE_ONLY)
+ private String productId;
+
+ /**
+ * Transfer status. Possible values include: 'NotStarted', 'InProgress',
+ * 'Completed', 'Failed'.
+ */
+ @JsonProperty(value = "transferStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ProductTransferStatus transferStatus;
+
+ /**
+ * Error details for transfer execution.
+ */
+ @JsonProperty(value = "errorDetails")
+ private Error errorDetails;
+
+ /**
+ * Get type of product being transferred. Possible values include: 'AzureSubscription', 'AzureReservation'.
+ *
+ * @return the productType value
+ */
+ public ProductType productType() {
+ return this.productType;
+ }
+
+ /**
+ * Get id of product being transferred.
+ *
+ * @return the productId value
+ */
+ public String productId() {
+ return this.productId;
+ }
+
+ /**
+ * Get transfer status. Possible values include: 'NotStarted', 'InProgress', 'Completed', 'Failed'.
+ *
+ * @return the transferStatus value
+ */
+ public ProductTransferStatus transferStatus() {
+ return this.transferStatus;
+ }
+
+ /**
+ * Get error details for transfer execution.
+ *
+ * @return the errorDetails value
+ */
+ public Error errorDetails() {
+ return this.errorDetails;
+ }
+
+ /**
+ * Set error details for transfer execution.
+ *
+ * @param errorDetails the errorDetails value to set
+ * @return the DetailedTransferStatus object itself.
+ */
+ public DetailedTransferStatus withErrorDetails(Error errorDetails) {
+ this.errorDetails = errorDetails;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Document.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Document.java
new file mode 100644
index 0000000000000..3d05fe8686d3d
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Document.java
@@ -0,0 +1,48 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The properties of the invoice download.
+ */
+public class Document {
+ /**
+ * Document type. Possible values include: 'Invoice', 'VoidNote',
+ * 'Receipt', 'CreditNote'.
+ */
+ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
+ private DocumentType kind;
+
+ /**
+ * Document URL.
+ */
+ @JsonProperty(value = "url", access = JsonProperty.Access.WRITE_ONLY)
+ private String url;
+
+ /**
+ * Get document type. Possible values include: 'Invoice', 'VoidNote', 'Receipt', 'CreditNote'.
+ *
+ * @return the kind value
+ */
+ public DocumentType kind() {
+ return this.kind;
+ }
+
+ /**
+ * Get document URL.
+ *
+ * @return the url value
+ */
+ public String url() {
+ return this.url;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DocumentType.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DocumentType.java
new file mode 100644
index 0000000000000..a907ccbabd951
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DocumentType.java
@@ -0,0 +1,47 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for DocumentType.
+ */
+public final class DocumentType extends ExpandableStringEnum {
+ /** Static value Invoice for DocumentType. */
+ public static final DocumentType INVOICE = fromString("Invoice");
+
+ /** Static value VoidNote for DocumentType. */
+ public static final DocumentType VOID_NOTE = fromString("VoidNote");
+
+ /** Static value Receipt for DocumentType. */
+ public static final DocumentType RECEIPT = fromString("Receipt");
+
+ /** Static value CreditNote for DocumentType. */
+ public static final DocumentType CREDIT_NOTE = fromString("CreditNote");
+
+ /**
+ * Creates or finds a DocumentType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding DocumentType
+ */
+ @JsonCreator
+ public static DocumentType fromString(String name) {
+ return fromString(name, DocumentType.class);
+ }
+
+ /**
+ * @return known DocumentType values
+ */
+ public static Collection values() {
+ return values(DocumentType.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DownloadUrl.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DownloadUrl.java
new file mode 100644
index 0000000000000..875a3bbaafdb7
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/DownloadUrl.java
@@ -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.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.DownloadUrlInner;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing DownloadUrl.
+ */
+public interface DownloadUrl extends HasInner, HasManager {
+ /**
+ * @return the expiryTime value.
+ */
+ DateTime expiryTime();
+
+ /**
+ * @return the url value.
+ */
+ String url();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EligibleProductType.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EligibleProductType.java
new file mode 100644
index 0000000000000..e30aa4dc2495b
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EligibleProductType.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for EligibleProductType.
+ */
+public final class EligibleProductType extends ExpandableStringEnum {
+ /** Static value DevTestAzureSubscription for EligibleProductType. */
+ public static final EligibleProductType DEV_TEST_AZURE_SUBSCRIPTION = fromString("DevTestAzureSubscription");
+
+ /** Static value StandardAzureSubscription for EligibleProductType. */
+ public static final EligibleProductType STANDARD_AZURE_SUBSCRIPTION = fromString("StandardAzureSubscription");
+
+ /** Static value AzureReservation for EligibleProductType. */
+ public static final EligibleProductType AZURE_RESERVATION = fromString("AzureReservation");
+
+ /**
+ * Creates or finds a EligibleProductType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding EligibleProductType
+ */
+ @JsonCreator
+ public static EligibleProductType fromString(String name) {
+ return fromString(name, EligibleProductType.class);
+ }
+
+ /**
+ * @return known EligibleProductType values
+ */
+ public static Collection values() {
+ return values(EligibleProductType.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Enrollment.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Enrollment.java
new file mode 100644
index 0000000000000..182c36a5fbec3
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Enrollment.java
@@ -0,0 +1,175 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Current entity level details.
+ */
+public class Enrollment {
+ /**
+ * Enrollment Start Date.
+ */
+ @JsonProperty(value = "startDate")
+ private DateTime startDate;
+
+ /**
+ * Enrollment End Date.
+ */
+ @JsonProperty(value = "endDate")
+ private DateTime endDate;
+
+ /**
+ * The currency associated with enrollment.
+ */
+ @JsonProperty(value = "currency", access = JsonProperty.Access.WRITE_ONLY)
+ private String currency;
+
+ /**
+ * The channel for Enrollment.
+ */
+ @JsonProperty(value = "channel", access = JsonProperty.Access.WRITE_ONLY)
+ private String channel;
+
+ /**
+ * The attributes associated with legacy enrollment.
+ */
+ @JsonProperty(value = "policies", access = JsonProperty.Access.WRITE_ONLY)
+ private EnrollmentPolicies policies;
+
+ /**
+ * The language for Enrollment.
+ */
+ @JsonProperty(value = "language", access = JsonProperty.Access.WRITE_ONLY)
+ private String language;
+
+ /**
+ * The countryCode for Enrollment.
+ */
+ @JsonProperty(value = "countryCode", access = JsonProperty.Access.WRITE_ONLY)
+ private String countryCode;
+
+ /**
+ * Enrollment status.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /**
+ * Enrollment billing cycle.
+ */
+ @JsonProperty(value = "billingCycle", access = JsonProperty.Access.WRITE_ONLY)
+ private String billingCycle;
+
+ /**
+ * Get enrollment Start Date.
+ *
+ * @return the startDate value
+ */
+ public DateTime startDate() {
+ return this.startDate;
+ }
+
+ /**
+ * Set enrollment Start Date.
+ *
+ * @param startDate the startDate value to set
+ * @return the Enrollment object itself.
+ */
+ public Enrollment withStartDate(DateTime startDate) {
+ this.startDate = startDate;
+ return this;
+ }
+
+ /**
+ * Get enrollment End Date.
+ *
+ * @return the endDate value
+ */
+ public DateTime endDate() {
+ return this.endDate;
+ }
+
+ /**
+ * Set enrollment End Date.
+ *
+ * @param endDate the endDate value to set
+ * @return the Enrollment object itself.
+ */
+ public Enrollment withEndDate(DateTime endDate) {
+ this.endDate = endDate;
+ return this;
+ }
+
+ /**
+ * Get the currency associated with enrollment.
+ *
+ * @return the currency value
+ */
+ public String currency() {
+ return this.currency;
+ }
+
+ /**
+ * Get the channel for Enrollment.
+ *
+ * @return the channel value
+ */
+ public String channel() {
+ return this.channel;
+ }
+
+ /**
+ * Get the attributes associated with legacy enrollment.
+ *
+ * @return the policies value
+ */
+ public EnrollmentPolicies policies() {
+ return this.policies;
+ }
+
+ /**
+ * Get the language for Enrollment.
+ *
+ * @return the language value
+ */
+ public String language() {
+ return this.language;
+ }
+
+ /**
+ * Get the countryCode for Enrollment.
+ *
+ * @return the countryCode value
+ */
+ public String countryCode() {
+ return this.countryCode;
+ }
+
+ /**
+ * Get enrollment status.
+ *
+ * @return the status value
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get enrollment billing cycle.
+ *
+ * @return the billingCycle value
+ */
+ public String billingCycle() {
+ return this.billingCycle;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccount.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccount.java
new file mode 100644
index 0000000000000..645bcc55edab9
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccount.java
@@ -0,0 +1,73 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.EnrollmentAccountInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing EnrollmentAccount.
+ */
+public interface EnrollmentAccount extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the accountName value.
+ */
+ String accountName();
+
+ /**
+ * @return the accountOwner value.
+ */
+ String accountOwner();
+
+ /**
+ * @return the costCenter value.
+ */
+ String costCenter();
+
+ /**
+ * @return the department value.
+ */
+ Department department();
+
+ /**
+ * @return the endDate value.
+ */
+ DateTime endDate();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the startDate value.
+ */
+ DateTime startDate();
+
+ /**
+ * @return the status value.
+ */
+ String status();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccountContext.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccountContext.java
new file mode 100644
index 0000000000000..74562970f661b
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccountContext.java
@@ -0,0 +1,122 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The rating context.
+ */
+public class EnrollmentAccountContext {
+ /**
+ * The cost center name.
+ */
+ @JsonProperty(value = "costCenter")
+ private String costCenter;
+
+ /**
+ * Account Start Date.
+ */
+ @JsonProperty(value = "startDate")
+ private DateTime startDate;
+
+ /**
+ * Account End Date.
+ */
+ @JsonProperty(value = "endDate")
+ private DateTime endDate;
+
+ /**
+ * The enrollment account id.
+ */
+ @JsonProperty(value = "enrollmentAccountName")
+ private String enrollmentAccountName;
+
+ /**
+ * Get the cost center name.
+ *
+ * @return the costCenter value
+ */
+ public String costCenter() {
+ return this.costCenter;
+ }
+
+ /**
+ * Set the cost center name.
+ *
+ * @param costCenter the costCenter value to set
+ * @return the EnrollmentAccountContext object itself.
+ */
+ public EnrollmentAccountContext withCostCenter(String costCenter) {
+ this.costCenter = costCenter;
+ return this;
+ }
+
+ /**
+ * Get account Start Date.
+ *
+ * @return the startDate value
+ */
+ public DateTime startDate() {
+ return this.startDate;
+ }
+
+ /**
+ * Set account Start Date.
+ *
+ * @param startDate the startDate value to set
+ * @return the EnrollmentAccountContext object itself.
+ */
+ public EnrollmentAccountContext withStartDate(DateTime startDate) {
+ this.startDate = startDate;
+ return this;
+ }
+
+ /**
+ * Get account End Date.
+ *
+ * @return the endDate value
+ */
+ public DateTime endDate() {
+ return this.endDate;
+ }
+
+ /**
+ * Set account End Date.
+ *
+ * @param endDate the endDate value to set
+ * @return the EnrollmentAccountContext object itself.
+ */
+ public EnrollmentAccountContext withEndDate(DateTime endDate) {
+ this.endDate = endDate;
+ return this;
+ }
+
+ /**
+ * Get the enrollment account id.
+ *
+ * @return the enrollmentAccountName value
+ */
+ public String enrollmentAccountName() {
+ return this.enrollmentAccountName;
+ }
+
+ /**
+ * Set the enrollment account id.
+ *
+ * @param enrollmentAccountName the enrollmentAccountName value to set
+ * @return the EnrollmentAccountContext object itself.
+ */
+ public EnrollmentAccountContext withEnrollmentAccountName(String enrollmentAccountName) {
+ this.enrollmentAccountName = enrollmentAccountName;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccountListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccountListResult.java
new file mode 100644
index 0000000000000..0571f5c925ccb
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccountListResult.java
@@ -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.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.EnrollmentAccountListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.EnrollmentAccountInner;
+import java.util.List;
+
+/**
+ * Type representing EnrollmentAccountListResult.
+ */
+public interface EnrollmentAccountListResult extends HasInner, HasManager {
+ /**
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccounts.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccounts.java
new file mode 100644
index 0000000000000..fd18081164f1d
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentAccounts.java
@@ -0,0 +1,38 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.EnrollmentAccountsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing EnrollmentAccounts.
+ */
+public interface EnrollmentAccounts extends HasInner {
+ /**
+ * Lists all Enrollment Accounts for a user which he has access to.
+ *
+ * @param billingAccountName billing Account Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByBillingAccountAsync(String billingAccountName);
+
+ /**
+ * Get the enrollment account by id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param enrollmentAccountName Enrollment Account Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getByEnrollmentAccountIdAsync(String billingAccountName, String enrollmentAccountName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentPolicies.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentPolicies.java
new file mode 100644
index 0000000000000..0a3473a64b619
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/EnrollmentPolicies.java
@@ -0,0 +1,77 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The attributes associated with legacy enrollment.
+ */
+public class EnrollmentPolicies {
+ /**
+ * The accountOwnerViewCharges flag for Enrollment.
+ */
+ @JsonProperty(value = "accountOwnerViewCharges", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean accountOwnerViewCharges;
+
+ /**
+ * The departmentAdminViewCharges flag for Enrollment.
+ */
+ @JsonProperty(value = "departmentAdminViewCharges", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean departmentAdminViewCharges;
+
+ /**
+ * The marketplaces flag for Enrollment.
+ */
+ @JsonProperty(value = "marketplacesEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean marketplacesEnabled;
+
+ /**
+ * The reserved instances flag for Enrollment.
+ */
+ @JsonProperty(value = "reservedInstancesEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean reservedInstancesEnabled;
+
+ /**
+ * Get the accountOwnerViewCharges flag for Enrollment.
+ *
+ * @return the accountOwnerViewCharges value
+ */
+ public Boolean accountOwnerViewCharges() {
+ return this.accountOwnerViewCharges;
+ }
+
+ /**
+ * Get the departmentAdminViewCharges flag for Enrollment.
+ *
+ * @return the departmentAdminViewCharges value
+ */
+ public Boolean departmentAdminViewCharges() {
+ return this.departmentAdminViewCharges;
+ }
+
+ /**
+ * Get the marketplaces flag for Enrollment.
+ *
+ * @return the marketplacesEnabled value
+ */
+ public Boolean marketplacesEnabled() {
+ return this.marketplacesEnabled;
+ }
+
+ /**
+ * Get the reserved instances flag for Enrollment.
+ *
+ * @return the reservedInstancesEnabled value
+ */
+ public Boolean reservedInstancesEnabled() {
+ return this.reservedInstancesEnabled;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Error.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Error.java
new file mode 100644
index 0000000000000..56d2fc1b49630
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Error.java
@@ -0,0 +1,47 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Error details for transfer execution.
+ */
+public class Error {
+ /**
+ * Error code.
+ */
+ @JsonProperty(value = "errorCode", access = JsonProperty.Access.WRITE_ONLY)
+ private String errorCode;
+
+ /**
+ * Error message.
+ */
+ @JsonProperty(value = "errorMessage", access = JsonProperty.Access.WRITE_ONLY)
+ private String errorMessage;
+
+ /**
+ * Get error code.
+ *
+ * @return the errorCode value
+ */
+ public String errorCode() {
+ return this.errorCode;
+ }
+
+ /**
+ * Get error message.
+ *
+ * @return the errorMessage value
+ */
+ public String errorMessage() {
+ return this.errorMessage;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ErrorDetails.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ErrorDetails.java
new file mode 100644
index 0000000000000..f231be41fab66
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ErrorDetails.java
@@ -0,0 +1,62 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The details of the error.
+ */
+public class ErrorDetails {
+ /**
+ * Error code.
+ */
+ @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
+ private String code;
+
+ /**
+ * Error message indicating why the operation failed.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * The target of the particular error.
+ */
+ @JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY)
+ private String target;
+
+ /**
+ * Get error code.
+ *
+ * @return the code value
+ */
+ public String code() {
+ return this.code;
+ }
+
+ /**
+ * Get error message indicating why the operation failed.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get the target of the particular error.
+ *
+ * @return the target value
+ */
+ public String target() {
+ return this.target;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ErrorResponse.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ErrorResponse.java
new file mode 100644
index 0000000000000..dcc0014f88b0a
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ErrorResponse.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Error response indicates that the service is not able to process the
+ * incoming request. The reason is provided in the error message.
+ */
+public class ErrorResponse {
+ /**
+ * The details of the error.
+ */
+ @JsonProperty(value = "error")
+ private ErrorDetails error;
+
+ /**
+ * Get the details of the error.
+ *
+ * @return the error value
+ */
+ public ErrorDetails error() {
+ return this.error;
+ }
+
+ /**
+ * Set the details of the error.
+ *
+ * @param error the error value to set
+ * @return the ErrorResponse object itself.
+ */
+ public ErrorResponse withError(ErrorDetails error) {
+ this.error = error;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ErrorResponseException.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ErrorResponseException.java
new file mode 100644
index 0000000000000..59d8b1a93fa23
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ErrorResponseException.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.rest.RestException;
+import okhttp3.ResponseBody;
+import retrofit2.Response;
+
+/**
+ * Exception thrown for an invalid response with ErrorResponse information.
+ */
+public class ErrorResponseException extends RestException {
+ /**
+ * Initializes a new instance of the ErrorResponseException class.
+ *
+ * @param message the exception message or the response content if a message is not available
+ * @param response the HTTP response
+ */
+ public ErrorResponseException(final String message, final Response response) {
+ super(message, response);
+ }
+
+ /**
+ * Initializes a new instance of the ErrorResponseException class.
+ *
+ * @param message the exception message or the response content if a message is not available
+ * @param response the HTTP response
+ * @param body the deserialized response body
+ */
+ public ErrorResponseException(final String message, final Response response, final ErrorResponse body) {
+ super(message, response, body);
+ }
+
+ @Override
+ public ErrorResponse body() {
+ return (ErrorResponse) super.body();
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InitiateTransferRequest.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InitiateTransferRequest.java
new file mode 100644
index 0000000000000..7ade07e2be78d
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InitiateTransferRequest.java
@@ -0,0 +1,71 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+
+/**
+ * Request parameters to initiate transfer.
+ */
+@JsonFlatten
+public class InitiateTransferRequest {
+ /**
+ * Email Id of recipient for transfer.
+ */
+ @JsonProperty(value = "properties.recipientEmailId")
+ private String recipientEmailId;
+
+ /**
+ * Optional reseller Id for transfer.
+ */
+ @JsonProperty(value = "properties.resellerId")
+ private String resellerId;
+
+ /**
+ * Get email Id of recipient for transfer.
+ *
+ * @return the recipientEmailId value
+ */
+ public String recipientEmailId() {
+ return this.recipientEmailId;
+ }
+
+ /**
+ * Set email Id of recipient for transfer.
+ *
+ * @param recipientEmailId the recipientEmailId value to set
+ * @return the InitiateTransferRequest object itself.
+ */
+ public InitiateTransferRequest withRecipientEmailId(String recipientEmailId) {
+ this.recipientEmailId = recipientEmailId;
+ return this;
+ }
+
+ /**
+ * Get optional reseller Id for transfer.
+ *
+ * @return the resellerId value
+ */
+ public String resellerId() {
+ return this.resellerId;
+ }
+
+ /**
+ * Set optional reseller Id for transfer.
+ *
+ * @param resellerId the resellerId value to set
+ * @return the InitiateTransferRequest object itself.
+ */
+ public InitiateTransferRequest withResellerId(String resellerId) {
+ this.resellerId = resellerId;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Invoice.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Invoice.java
new file mode 100644
index 0000000000000..13870bd563843
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Invoice.java
@@ -0,0 +1,97 @@
+/**
+ * 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.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.InvoiceInner;
+import java.util.List;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing Invoice.
+ */
+public interface Invoice extends HasInner, HasManager {
+ /**
+ * @return the amountDue value.
+ */
+ Amount amountDue();
+
+ /**
+ * @return the billedAmount value.
+ */
+ Amount billedAmount();
+
+ /**
+ * @return the billingProfileDisplayName value.
+ */
+ String billingProfileDisplayName();
+
+ /**
+ * @return the billingProfileId value.
+ */
+ String billingProfileId();
+
+ /**
+ * @return the documents value.
+ */
+ List documents();
+
+ /**
+ * @return the dueDate value.
+ */
+ DateTime dueDate();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the invoiceDate value.
+ */
+ DateTime invoiceDate();
+
+ /**
+ * @return the invoicePeriodEndDate value.
+ */
+ DateTime invoicePeriodEndDate();
+
+ /**
+ * @return the invoicePeriodStartDate value.
+ */
+ DateTime invoicePeriodStartDate();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the payments value.
+ */
+ List payments();
+
+ /**
+ * @return the purchaseOrderNumber value.
+ */
+ String purchaseOrderNumber();
+
+ /**
+ * @return the status value.
+ */
+ InvoiceStatus status();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceListResult.java
new file mode 100644
index 0000000000000..15b3460edaffe
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceListResult.java
@@ -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.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.InvoiceListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.InvoiceInner;
+import java.util.List;
+
+/**
+ * Type representing InvoiceListResult.
+ */
+public interface InvoiceListResult extends HasInner, HasManager {
+ /**
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSection.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSection.java
new file mode 100644
index 0000000000000..d06a72cce8a82
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSection.java
@@ -0,0 +1,117 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.InvoiceSectionInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+
+/**
+ * Type representing InvoiceSection.
+ */
+public interface InvoiceSection extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the displayName value.
+ */
+ String displayName();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the InvoiceSection definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithBillingProfile, DefinitionStages.WithDisplayName, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of InvoiceSection definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a InvoiceSection definition.
+ */
+ interface Blank extends WithBillingProfile {
+ }
+
+ /**
+ * The stage of the invoicesection definition allowing to specify BillingProfile.
+ */
+ interface WithBillingProfile {
+ /**
+ * Specifies billingAccountName, billingProfileName.
+ * @param billingAccountName billing Account Id
+ * @param billingProfileName Billing Profile Id
+ * @return the next definition stage
+ */
+ WithDisplayName withExistingBillingProfile(String billingAccountName, String billingProfileName);
+ }
+
+ /**
+ * The stage of the invoicesection definition allowing to specify DisplayName.
+ */
+ interface WithDisplayName {
+ /**
+ * Specifies displayName.
+ * @param displayName The name of the InvoiceSection
+ * @return the next definition stage
+ */
+ WithCreate withDisplayName(String displayName);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable {
+ }
+ }
+ /**
+ * The template for a InvoiceSection update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithDisplayName {
+ }
+
+ /**
+ * Grouping of InvoiceSection update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the invoicesection update allowing to specify DisplayName.
+ */
+ interface WithDisplayName {
+ /**
+ * Specifies displayName.
+ * @param displayName The name of the InvoiceSection
+ * @return the next update stage
+ */
+ Update withDisplayName(String displayName);
+ }
+
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionBillingProfileBillingAccountTransferDetails.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionBillingProfileBillingAccountTransferDetails.java
new file mode 100644
index 0000000000000..3e76cc9436fa5
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionBillingProfileBillingAccountTransferDetails.java
@@ -0,0 +1,92 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.TransferDetailsInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import org.joda.time.DateTime;
+import java.util.List;
+
+/**
+ * Type representing InvoiceSectionBillingProfileBillingAccountTransferDetails.
+ */
+public interface InvoiceSectionBillingProfileBillingAccountTransferDetails extends HasInner, HasManager {
+ /**
+ * @return the billingAccountId value.
+ */
+ String billingAccountId();
+
+ /**
+ * @return the billingProfileId value.
+ */
+ String billingProfileId();
+
+ /**
+ * @return the canceledBy value.
+ */
+ String canceledBy();
+
+ /**
+ * @return the creationTime value.
+ */
+ DateTime creationTime();
+
+ /**
+ * @return the detailedTransferStatus value.
+ */
+ List detailedTransferStatus();
+
+ /**
+ * @return the expirationTime value.
+ */
+ DateTime expirationTime();
+
+ /**
+ * @return the initiatorCustomerType value.
+ */
+ String initiatorCustomerType();
+
+ /**
+ * @return the initiatorEmailId value.
+ */
+ String initiatorEmailId();
+
+ /**
+ * @return the invoiceSectionId value.
+ */
+ String invoiceSectionId();
+
+ /**
+ * @return the lastModifiedTime value.
+ */
+ DateTime lastModifiedTime();
+
+ /**
+ * @return the recipientEmailId value.
+ */
+ String recipientEmailId();
+
+ /**
+ * @return the resellerId value.
+ */
+ String resellerId();
+
+ /**
+ * @return the resellerName value.
+ */
+ String resellerName();
+
+ /**
+ * @return the transferStatus value.
+ */
+ TransferStatus transferStatus();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionCreationRequest.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionCreationRequest.java
new file mode 100644
index 0000000000000..18bea13236bd5
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionCreationRequest.java
@@ -0,0 +1,43 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The properties of an InvoiceSection.
+ */
+public class InvoiceSectionCreationRequest {
+ /**
+ * The name of the InvoiceSection.
+ */
+ @JsonProperty(value = "displayName")
+ private String displayName;
+
+ /**
+ * Get the name of the InvoiceSection.
+ *
+ * @return the displayName value
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the name of the InvoiceSection.
+ *
+ * @param displayName the displayName value to set
+ * @return the InvoiceSectionCreationRequest object itself.
+ */
+ public InvoiceSectionCreationRequest withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionListResult.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionListResult.java
new file mode 100644
index 0000000000000..9f08ce4b3d9e6
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionListResult.java
@@ -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.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.InvoiceSectionListResultInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.InvoiceSectionInner;
+import java.util.List;
+
+/**
+ * Type representing InvoiceSectionListResult.
+ */
+public interface InvoiceSectionListResult extends HasInner, HasManager {
+ /**
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSections.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSections.java
new file mode 100644
index 0000000000000..3d286963fd89f
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSections.java
@@ -0,0 +1,53 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Observable;
+import rx.Completable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.InvoiceSectionsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing InvoiceSections.
+ */
+public interface InvoiceSections extends SupportsCreating, HasInner {
+ /**
+ * Lists all invoice sections for a user which he has access to.
+ *
+ * @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 listByBillingProfileAsync(String billingAccountName, String billingProfileName);
+
+ /**
+ * Elevates the caller's access to match their billing profile access.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable elevateToBillingProfileAsync(String billingAccountName, String billingProfileName, String invoiceSectionName);
+
+ /**
+ * Get the InvoiceSection by id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String billingAccountName, String billingProfileName, String invoiceSectionName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionsCreateHeaders.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionsCreateHeaders.java
new file mode 100644
index 0000000000000..ea994f8ae9d82
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionsCreateHeaders.java
@@ -0,0 +1,69 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Defines headers for Create operation.
+ */
+public class InvoiceSectionsCreateHeaders {
+ /**
+ * Location URI to poll for result.
+ */
+ @JsonProperty(value = "Location")
+ private String location;
+
+ /**
+ * Recommends the retryable time after receiving this.
+ */
+ @JsonProperty(value = "Retry-After")
+ private Integer retryAfter;
+
+ /**
+ * Get location URI to poll for result.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set location URI to poll for result.
+ *
+ * @param location the location value to set
+ * @return the InvoiceSectionsCreateHeaders object itself.
+ */
+ public InvoiceSectionsCreateHeaders withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get recommends the retryable time after receiving this.
+ *
+ * @return the retryAfter value
+ */
+ public Integer retryAfter() {
+ return this.retryAfter;
+ }
+
+ /**
+ * Set recommends the retryable time after receiving this.
+ *
+ * @param retryAfter the retryAfter value to set
+ * @return the InvoiceSectionsCreateHeaders object itself.
+ */
+ public InvoiceSectionsCreateHeaders withRetryAfter(Integer retryAfter) {
+ this.retryAfter = retryAfter;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionsUpdateHeaders.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionsUpdateHeaders.java
new file mode 100644
index 0000000000000..1786f47089f77
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceSectionsUpdateHeaders.java
@@ -0,0 +1,70 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Defines headers for Update operation.
+ */
+public class InvoiceSectionsUpdateHeaders {
+ /**
+ * GET this URL to retrieve the status of the asynchronous operation.
+ */
+ @JsonProperty(value = "Location")
+ private String location;
+
+ /**
+ * The amount of delay to use while the status of the operation is checked.
+ * The value is expressed in seconds.
+ */
+ @JsonProperty(value = "Retry-After")
+ private String retryAfter;
+
+ /**
+ * Get gET this URL to retrieve the status of the asynchronous operation.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set gET this URL to retrieve the status of the asynchronous operation.
+ *
+ * @param location the location value to set
+ * @return the InvoiceSectionsUpdateHeaders object itself.
+ */
+ public InvoiceSectionsUpdateHeaders withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
+ *
+ * @return the retryAfter value
+ */
+ public String retryAfter() {
+ return this.retryAfter;
+ }
+
+ /**
+ * Set the amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
+ *
+ * @param retryAfter the retryAfter value to set
+ * @return the InvoiceSectionsUpdateHeaders object itself.
+ */
+ public InvoiceSectionsUpdateHeaders withRetryAfter(String retryAfter) {
+ this.retryAfter = retryAfter;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceStatus.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceStatus.java
new file mode 100644
index 0000000000000..f2d9e8b1d5dd7
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/InvoiceStatus.java
@@ -0,0 +1,47 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for InvoiceStatus.
+ */
+public final class InvoiceStatus extends ExpandableStringEnum {
+ /** Static value PastDue for InvoiceStatus. */
+ public static final InvoiceStatus PAST_DUE = fromString("PastDue");
+
+ /** Static value Due for InvoiceStatus. */
+ public static final InvoiceStatus DUE = fromString("Due");
+
+ /** Static value Paid for InvoiceStatus. */
+ public static final InvoiceStatus PAID = fromString("Paid");
+
+ /** Static value Void for InvoiceStatus. */
+ public static final InvoiceStatus VOID = fromString("Void");
+
+ /**
+ * Creates or finds a InvoiceStatus from its string representation.
+ * @param name a name to look for
+ * @return the corresponding InvoiceStatus
+ */
+ @JsonCreator
+ public static InvoiceStatus fromString(String name) {
+ return fromString(name, InvoiceStatus.class);
+ }
+
+ /**
+ * @return known InvoiceStatus values
+ */
+ public static Collection values() {
+ return values(InvoiceStatus.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Invoices.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Invoices.java
new file mode 100644
index 0000000000000..f47bc37c3edb8
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Invoices.java
@@ -0,0 +1,53 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.InvoicesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Invoices.
+ */
+public interface Invoices extends HasInner {
+ /**
+ * List of invoices for a billing account.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param periodStartDate Invoice period start date.
+ * @param periodEndDate Invoice period end date.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByBillingAccountAsync(String billingAccountName, String periodStartDate, String periodEndDate);
+
+ /**
+ * List of invoices for a billing profile.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param periodStartDate Invoice period start date.
+ * @param periodEndDate Invoice period end date.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByBillingProfileAsync(String billingAccountName, String billingProfileName, String periodStartDate, String periodEndDate);
+
+ /**
+ * Get the invoice by name.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceName Invoice Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String billingAccountName, String billingProfileName, String invoiceName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/LineOfCredit.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/LineOfCredit.java
new file mode 100644
index 0000000000000..471502bcd6499
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/LineOfCredit.java
@@ -0,0 +1,55 @@
+/**
+ * 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.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.LineOfCreditInner;
+
+/**
+ * Type representing LineOfCredit.
+ */
+public interface LineOfCredit extends HasInner, HasManager {
+ /**
+ * @return the creditLimit value.
+ */
+ Amount creditLimit();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the reason value.
+ */
+ String reason();
+
+ /**
+ * @return the remainingBalance value.
+ */
+ Amount remainingBalance();
+
+ /**
+ * @return the status value.
+ */
+ Status status();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/LineOfCredits.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/LineOfCredits.java
new file mode 100644
index 0000000000000..01d4a43e5f2fa
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/LineOfCredits.java
@@ -0,0 +1,37 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.LineOfCreditInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.LineOfCreditsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing LineOfCredits.
+ */
+public interface LineOfCredits extends HasInner {
+ /**
+ * Get the current line of credit.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync();
+
+ /**
+ * Increase the current line of credit.
+ *
+ * @param parameters Parameters supplied to the increase line of credit operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable updateAsync(LineOfCreditInner parameters);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/LineOfCreditsUpdateHeaders.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/LineOfCreditsUpdateHeaders.java
new file mode 100644
index 0000000000000..ee5f8a24bd39d
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/LineOfCreditsUpdateHeaders.java
@@ -0,0 +1,69 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Defines headers for Update operation.
+ */
+public class LineOfCreditsUpdateHeaders {
+ /**
+ * Location URI to poll for result.
+ */
+ @JsonProperty(value = "Location")
+ private String location;
+
+ /**
+ * Recommends the retryable time after receiving this.
+ */
+ @JsonProperty(value = "Retry-After")
+ private Integer retryAfter;
+
+ /**
+ * Get location URI to poll for result.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set location URI to poll for result.
+ *
+ * @param location the location value to set
+ * @return the LineOfCreditsUpdateHeaders object itself.
+ */
+ public LineOfCreditsUpdateHeaders withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get recommends the retryable time after receiving this.
+ *
+ * @return the retryAfter value
+ */
+ public Integer retryAfter() {
+ return this.retryAfter;
+ }
+
+ /**
+ * Set recommends the retryable time after receiving this.
+ *
+ * @param retryAfter the retryAfter value to set
+ * @return the LineOfCreditsUpdateHeaders object itself.
+ */
+ public LineOfCreditsUpdateHeaders withRetryAfter(Integer retryAfter) {
+ this.retryAfter = retryAfter;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/MarketplacePurchasesPolicy.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/MarketplacePurchasesPolicy.java
new file mode 100644
index 0000000000000..ff8d5bbcffbd5
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/MarketplacePurchasesPolicy.java
@@ -0,0 +1,44 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for MarketplacePurchasesPolicy.
+ */
+public final class MarketplacePurchasesPolicy extends ExpandableStringEnum {
+ /** Static value AllAllowed for MarketplacePurchasesPolicy. */
+ public static final MarketplacePurchasesPolicy ALL_ALLOWED = fromString("AllAllowed");
+
+ /** Static value FreeAllowed for MarketplacePurchasesPolicy. */
+ public static final MarketplacePurchasesPolicy FREE_ALLOWED = fromString("FreeAllowed");
+
+ /** Static value NotAllowed for MarketplacePurchasesPolicy. */
+ public static final MarketplacePurchasesPolicy NOT_ALLOWED = fromString("NotAllowed");
+
+ /**
+ * Creates or finds a MarketplacePurchasesPolicy from its string representation.
+ * @param name a name to look for
+ * @return the corresponding MarketplacePurchasesPolicy
+ */
+ @JsonCreator
+ public static MarketplacePurchasesPolicy fromString(String name) {
+ return fromString(name, MarketplacePurchasesPolicy.class);
+ }
+
+ /**
+ * @return known MarketplacePurchasesPolicy values
+ */
+ public static Collection values() {
+ return values(MarketplacePurchasesPolicy.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Operation.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Operation.java
new file mode 100644
index 0000000000000..3cbb9e6f73709
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Operation.java
@@ -0,0 +1,30 @@
+/**
+ * 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.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.OperationInner;
+
+/**
+ * Type representing Operation.
+ */
+public interface Operation extends HasInner, HasManager {
+ /**
+ * @return the display value.
+ */
+ OperationDisplay display();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/OperationDisplay.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/OperationDisplay.java
new file mode 100644
index 0000000000000..6ecf5fd77a6fb
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/OperationDisplay.java
@@ -0,0 +1,62 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The object that represents the operation.
+ */
+public class OperationDisplay {
+ /**
+ * Service provider: Microsoft.Billing.
+ */
+ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
+ private String provider;
+
+ /**
+ * Resource on which the operation is performed: Invoice, etc.
+ */
+ @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY)
+ private String resource;
+
+ /**
+ * Operation type: Read, write, delete, etc.
+ */
+ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
+ private String operation;
+
+ /**
+ * Get service provider: Microsoft.Billing.
+ *
+ * @return the provider value
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Get resource on which the operation is performed: Invoice, etc.
+ *
+ * @return the resource value
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Get operation type: Read, write, delete, etc.
+ *
+ * @return the operation value
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Operations.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Operations.java
new file mode 100644
index 0000000000000..40bf6b1b4a0a3
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Operations.java
@@ -0,0 +1,27 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.OperationsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Operations.
+ */
+public interface Operations extends HasInner {
+ /**
+ * Lists all of the available billing REST API operations.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Participants.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Participants.java
new file mode 100644
index 0000000000000..3f75e589521ca
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Participants.java
@@ -0,0 +1,63 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Details about the participant or signer.
+ */
+public class Participants {
+ /**
+ * The signing status.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private String status;
+
+ /**
+ * The date when status got changed.
+ */
+ @JsonProperty(value = "statusDate", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime statusDate;
+
+ /**
+ * The email address of the participant or signer.
+ */
+ @JsonProperty(value = "email", access = JsonProperty.Access.WRITE_ONLY)
+ private String email;
+
+ /**
+ * Get the signing status.
+ *
+ * @return the status value
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the date when status got changed.
+ *
+ * @return the statusDate value
+ */
+ public DateTime statusDate() {
+ return this.statusDate;
+ }
+
+ /**
+ * Get the email address of the participant or signer.
+ *
+ * @return the email value
+ */
+ public String email() {
+ return this.email;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PartnerTransfers.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PartnerTransfers.java
new file mode 100644
index 0000000000000..29b2d586e9774
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PartnerTransfers.java
@@ -0,0 +1,56 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.PartnerTransfersInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing PartnerTransfers.
+ */
+public interface PartnerTransfers extends HasInner {
+ /**
+ * Gets the transfer details for given transfer Id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param customerName Customer name.
+ * @param transferName Transfer Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String billingAccountName, String billingProfileName, String customerName, String transferName);
+
+ /**
+ * Cancels the transfer for given transfer Id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param customerName Customer name.
+ * @param transferName Transfer Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable cancelAsync(String billingAccountName, String billingProfileName, String customerName, String transferName);
+
+ /**
+ * Initiates the request to transfer the legacy subscriptions or RIs.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param customerName Customer name.
+ * @param parameters Parameters supplied to initiate the transfer.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable initiateAsync(String billingAccountName, String billingProfileName, String customerName, InitiateTransferRequest parameters);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PartnerTransfersTransfers.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PartnerTransfersTransfers.java
new file mode 100644
index 0000000000000..6b5fecf66c715
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PartnerTransfersTransfers.java
@@ -0,0 +1,30 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.PartnerTransfersTransfersInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing PartnerTransfersTransfers.
+ */
+public interface PartnerTransfersTransfers extends HasInner {
+ /**
+ * Lists all transfer's details initiated from given invoice section.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param customerName Customer name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync(final String billingAccountName, final String billingProfileName, final String customerName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentMethod.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentMethod.java
new file mode 100644
index 0000000000000..b8ec7770f7b28
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentMethod.java
@@ -0,0 +1,55 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.PaymentMethodInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+
+/**
+ * Type representing PaymentMethod.
+ */
+public interface PaymentMethod extends HasInner, HasManager {
+ /**
+ * @return the currency value.
+ */
+ String currency();
+
+ /**
+ * @return the details value.
+ */
+ String details();
+
+ /**
+ * @return the expiration value.
+ */
+ String expiration();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the paymentMethodType value.
+ */
+ PaymentMethodType paymentMethodType();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentMethodType.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentMethodType.java
new file mode 100644
index 0000000000000..c53c3c5cc27b7
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentMethodType.java
@@ -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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for PaymentMethodType.
+ */
+public final class PaymentMethodType extends ExpandableStringEnum {
+ /** Static value Credits for PaymentMethodType. */
+ public static final PaymentMethodType CREDITS = fromString("Credits");
+
+ /** Static value ChequeWire for PaymentMethodType. */
+ public static final PaymentMethodType CHEQUE_WIRE = fromString("ChequeWire");
+
+ /**
+ * Creates or finds a PaymentMethodType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding PaymentMethodType
+ */
+ @JsonCreator
+ public static PaymentMethodType fromString(String name) {
+ return fromString(name, PaymentMethodType.class);
+ }
+
+ /**
+ * @return known PaymentMethodType values
+ */
+ public static Collection values() {
+ return values(PaymentMethodType.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentMethods.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentMethods.java
new file mode 100644
index 0000000000000..6d9083de9d31d
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentMethods.java
@@ -0,0 +1,38 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.PaymentMethodsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing PaymentMethods.
+ */
+public interface PaymentMethods extends HasInner {
+ /**
+ * Lists the Payment Methods by billing profile Id.
+ *
+ * @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 listByBillingProfileAsync(final String billingAccountName, final String billingProfileName);
+
+ /**
+ * Lists the Payment Methods by billing account Id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByBillingAccountAsync(final String billingAccountName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentProperties.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentProperties.java
new file mode 100644
index 0000000000000..fbf2a2c6f0e61
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PaymentProperties.java
@@ -0,0 +1,63 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The properties of the payment.
+ */
+public class PaymentProperties {
+ /**
+ * The type of payment.
+ */
+ @JsonProperty(value = "paymentType", access = JsonProperty.Access.WRITE_ONLY)
+ private String paymentType;
+
+ /**
+ * The paid amount.
+ */
+ @JsonProperty(value = "amount", access = JsonProperty.Access.WRITE_ONLY)
+ private Amount amount;
+
+ /**
+ * The date of the payment.
+ */
+ @JsonProperty(value = "date", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime dateProperty;
+
+ /**
+ * Get the type of payment.
+ *
+ * @return the paymentType value
+ */
+ public String paymentType() {
+ return this.paymentType;
+ }
+
+ /**
+ * Get the paid amount.
+ *
+ * @return the amount value
+ */
+ public Amount amount() {
+ return this.amount;
+ }
+
+ /**
+ * Get the date of the payment.
+ *
+ * @return the dateProperty value
+ */
+ public DateTime dateProperty() {
+ return this.dateProperty;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Policies.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Policies.java
new file mode 100644
index 0000000000000..bad54b6bcd515
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Policies.java
@@ -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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.PolicyInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.PoliciesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Policies.
+ */
+public interface Policies extends HasInner {
+ /**
+ * The policy for a given billing account name and billing profile name.
+ *
+ * @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 getByBillingProfileAsync(String billingAccountName, String billingProfileName);
+
+ /**
+ * The operation to update a policy.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param parameters Parameters supplied to the update policy operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable updateAsync(String billingAccountName, String billingProfileName, PolicyInner parameters);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Policy.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Policy.java
new file mode 100644
index 0000000000000..3b7618628c636
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Policy.java
@@ -0,0 +1,50 @@
+/**
+ * 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.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.PolicyInner;
+
+/**
+ * Type representing Policy.
+ */
+public interface Policy extends HasInner, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the marketplacePurchases value.
+ */
+ MarketplacePurchasesPolicy marketplacePurchases();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the reservationPurchases value.
+ */
+ ReservationPurchasesPolicy reservationPurchases();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * @return the viewCharges value.
+ */
+ ViewChargesPolicy viewCharges();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PriceSheetDownloadByBillingProfileHeaders.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PriceSheetDownloadByBillingProfileHeaders.java
new file mode 100644
index 0000000000000..cf34904babf7a
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PriceSheetDownloadByBillingProfileHeaders.java
@@ -0,0 +1,96 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Defines headers for DownloadByBillingProfile operation.
+ */
+public class PriceSheetDownloadByBillingProfileHeaders {
+ /**
+ * GET this URL to retrieve the status of the asynchronous operation.
+ */
+ @JsonProperty(value = "Location")
+ private String location;
+
+ /**
+ * The amount of delay to use while the status of the operation is checked.
+ * The value is expressed in seconds.
+ */
+ @JsonProperty(value = "Retry-After")
+ private String retryAfter;
+
+ /**
+ * The operation entity Id GUID.
+ */
+ @JsonProperty(value = "OData-EntityId")
+ private String oDataEntityId;
+
+ /**
+ * Get gET this URL to retrieve the status of the asynchronous operation.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set gET this URL to retrieve the status of the asynchronous operation.
+ *
+ * @param location the location value to set
+ * @return the PriceSheetDownloadByBillingProfileHeaders object itself.
+ */
+ public PriceSheetDownloadByBillingProfileHeaders withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
+ *
+ * @return the retryAfter value
+ */
+ public String retryAfter() {
+ return this.retryAfter;
+ }
+
+ /**
+ * Set the amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
+ *
+ * @param retryAfter the retryAfter value to set
+ * @return the PriceSheetDownloadByBillingProfileHeaders object itself.
+ */
+ public PriceSheetDownloadByBillingProfileHeaders withRetryAfter(String retryAfter) {
+ this.retryAfter = retryAfter;
+ return this;
+ }
+
+ /**
+ * Get the operation entity Id GUID.
+ *
+ * @return the oDataEntityId value
+ */
+ public String oDataEntityId() {
+ return this.oDataEntityId;
+ }
+
+ /**
+ * Set the operation entity Id GUID.
+ *
+ * @param oDataEntityId the oDataEntityId value to set
+ * @return the PriceSheetDownloadByBillingProfileHeaders object itself.
+ */
+ public PriceSheetDownloadByBillingProfileHeaders withODataEntityId(String oDataEntityId) {
+ this.oDataEntityId = oDataEntityId;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PriceSheetDownloadHeaders.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PriceSheetDownloadHeaders.java
new file mode 100644
index 0000000000000..760a2c76f0181
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PriceSheetDownloadHeaders.java
@@ -0,0 +1,96 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Defines headers for Download operation.
+ */
+public class PriceSheetDownloadHeaders {
+ /**
+ * GET this URL to retrieve the status of the asynchronous operation.
+ */
+ @JsonProperty(value = "Location")
+ private String location;
+
+ /**
+ * The amount of delay to use while the status of the operation is checked.
+ * The value is expressed in seconds.
+ */
+ @JsonProperty(value = "Retry-After")
+ private String retryAfter;
+
+ /**
+ * The operation entity Id GUID.
+ */
+ @JsonProperty(value = "OData-EntityId")
+ private String oDataEntityId;
+
+ /**
+ * Get gET this URL to retrieve the status of the asynchronous operation.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set gET this URL to retrieve the status of the asynchronous operation.
+ *
+ * @param location the location value to set
+ * @return the PriceSheetDownloadHeaders object itself.
+ */
+ public PriceSheetDownloadHeaders withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
+ *
+ * @return the retryAfter value
+ */
+ public String retryAfter() {
+ return this.retryAfter;
+ }
+
+ /**
+ * Set the amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
+ *
+ * @param retryAfter the retryAfter value to set
+ * @return the PriceSheetDownloadHeaders object itself.
+ */
+ public PriceSheetDownloadHeaders withRetryAfter(String retryAfter) {
+ this.retryAfter = retryAfter;
+ return this;
+ }
+
+ /**
+ * Get the operation entity Id GUID.
+ *
+ * @return the oDataEntityId value
+ */
+ public String oDataEntityId() {
+ return this.oDataEntityId;
+ }
+
+ /**
+ * Set the operation entity Id GUID.
+ *
+ * @param oDataEntityId the oDataEntityId value to set
+ * @return the PriceSheetDownloadHeaders object itself.
+ */
+ public PriceSheetDownloadHeaders withODataEntityId(String oDataEntityId) {
+ this.oDataEntityId = oDataEntityId;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PriceSheets.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PriceSheets.java
new file mode 100644
index 0000000000000..34b3aa54096af
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/PriceSheets.java
@@ -0,0 +1,38 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+
+/**
+ * Type representing PriceSheets.
+ */
+public interface PriceSheets {
+ /**
+ * Download price sheet for an invoice.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceName Invoice Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable downloadAsync(String billingAccountName, String billingProfileName, String invoiceName);
+
+ /**
+ * Download price sheet 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 downloadByBillingProfileAsync(String billingAccountName, String billingProfileName);
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Product.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Product.java
new file mode 100644
index 0000000000000..5c78abc08989e
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Product.java
@@ -0,0 +1,138 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.ProductInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.BillingManager;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing Product.
+ */
+public interface Product extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the availabilityId value.
+ */
+ String availabilityId();
+
+ /**
+ * @return the billingFrequency value.
+ */
+ BillingFrequency billingFrequency();
+
+ /**
+ * @return the billingProfileDisplayName value.
+ */
+ String billingProfileDisplayName();
+
+ /**
+ * @return the billingProfileId value.
+ */
+ String billingProfileId();
+
+ /**
+ * @return the customerDisplayName value.
+ */
+ String customerDisplayName();
+
+ /**
+ * @return the customerId value.
+ */
+ String customerId();
+
+ /**
+ * @return the displayName value.
+ */
+ String displayName();
+
+ /**
+ * @return the endDate value.
+ */
+ DateTime endDate();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the invoiceSectionDisplayName value.
+ */
+ String invoiceSectionDisplayName();
+
+ /**
+ * @return the invoiceSectionId value.
+ */
+ String invoiceSectionId();
+
+ /**
+ * @return the lastCharge value.
+ */
+ Amount lastCharge();
+
+ /**
+ * @return the lastChargeDate value.
+ */
+ DateTime lastChargeDate();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the parentProductId value.
+ */
+ String parentProductId();
+
+ /**
+ * @return the productType value.
+ */
+ String productType();
+
+ /**
+ * @return the productTypeId value.
+ */
+ String productTypeId();
+
+ /**
+ * @return the purchaseDate value.
+ */
+ DateTime purchaseDate();
+
+ /**
+ * @return the quantity value.
+ */
+ Double quantity();
+
+ /**
+ * @return the skuDescription value.
+ */
+ String skuDescription();
+
+ /**
+ * @return the skuId value.
+ */
+ String skuId();
+
+ /**
+ * @return the status value.
+ */
+ ProductStatusType status();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductDetails.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductDetails.java
new file mode 100644
index 0000000000000..8482f939e815a
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductDetails.java
@@ -0,0 +1,70 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Details of the product to be transferred.
+ */
+public class ProductDetails {
+ /**
+ * Type of the product to be transferred. Possible values include:
+ * 'AzureSubscription', 'AzureReservation'.
+ */
+ @JsonProperty(value = "productType")
+ private ProductType productType;
+
+ /**
+ * Id of product to be transferred.
+ */
+ @JsonProperty(value = "productId")
+ private String productId;
+
+ /**
+ * Get type of the product to be transferred. Possible values include: 'AzureSubscription', 'AzureReservation'.
+ *
+ * @return the productType value
+ */
+ public ProductType productType() {
+ return this.productType;
+ }
+
+ /**
+ * Set type of the product to be transferred. Possible values include: 'AzureSubscription', 'AzureReservation'.
+ *
+ * @param productType the productType value to set
+ * @return the ProductDetails object itself.
+ */
+ public ProductDetails withProductType(ProductType productType) {
+ this.productType = productType;
+ return this;
+ }
+
+ /**
+ * Get id of product to be transferred.
+ *
+ * @return the productId value
+ */
+ public String productId() {
+ return this.productId;
+ }
+
+ /**
+ * Set id of product to be transferred.
+ *
+ * @param productId the productId value to set
+ * @return the ProductDetails object itself.
+ */
+ public ProductDetails withProductId(String productId) {
+ this.productId = productId;
+ return this;
+ }
+
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductStatusType.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductStatusType.java
new file mode 100644
index 0000000000000..54885b626b533
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductStatusType.java
@@ -0,0 +1,59 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for ProductStatusType.
+ */
+public final class ProductStatusType extends ExpandableStringEnum {
+ /** Static value Active for ProductStatusType. */
+ public static final ProductStatusType ACTIVE = fromString("Active");
+
+ /** Static value Inactive for ProductStatusType. */
+ public static final ProductStatusType INACTIVE = fromString("Inactive");
+
+ /** Static value PastDue for ProductStatusType. */
+ public static final ProductStatusType PAST_DUE = fromString("PastDue");
+
+ /** Static value Expiring for ProductStatusType. */
+ public static final ProductStatusType EXPIRING = fromString("Expiring");
+
+ /** Static value Expired for ProductStatusType. */
+ public static final ProductStatusType EXPIRED = fromString("Expired");
+
+ /** Static value Disabled for ProductStatusType. */
+ public static final ProductStatusType DISABLED = fromString("Disabled");
+
+ /** Static value Cancelled for ProductStatusType. */
+ public static final ProductStatusType CANCELLED = fromString("Cancelled");
+
+ /** Static value AutoRenew for ProductStatusType. */
+ public static final ProductStatusType AUTO_RENEW = fromString("AutoRenew");
+
+ /**
+ * Creates or finds a ProductStatusType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding ProductStatusType
+ */
+ @JsonCreator
+ public static ProductStatusType fromString(String name) {
+ return fromString(name, ProductStatusType.class);
+ }
+
+ /**
+ * @return known ProductStatusType values
+ */
+ public static Collection values() {
+ return values(ProductStatusType.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductTransferStatus.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductTransferStatus.java
new file mode 100644
index 0000000000000..f5c328e1c819e
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductTransferStatus.java
@@ -0,0 +1,47 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for ProductTransferStatus.
+ */
+public final class ProductTransferStatus extends ExpandableStringEnum {
+ /** Static value NotStarted for ProductTransferStatus. */
+ public static final ProductTransferStatus NOT_STARTED = fromString("NotStarted");
+
+ /** Static value InProgress for ProductTransferStatus. */
+ public static final ProductTransferStatus IN_PROGRESS = fromString("InProgress");
+
+ /** Static value Completed for ProductTransferStatus. */
+ public static final ProductTransferStatus COMPLETED = fromString("Completed");
+
+ /** Static value Failed for ProductTransferStatus. */
+ public static final ProductTransferStatus FAILED = fromString("Failed");
+
+ /**
+ * Creates or finds a ProductTransferStatus from its string representation.
+ * @param name a name to look for
+ * @return the corresponding ProductTransferStatus
+ */
+ @JsonCreator
+ public static ProductTransferStatus fromString(String name) {
+ return fromString(name, ProductTransferStatus.class);
+ }
+
+ /**
+ * @return known ProductTransferStatus values
+ */
+ public static Collection values() {
+ return values(ProductTransferStatus.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductTransferValidationErrorCode.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductTransferValidationErrorCode.java
new file mode 100644
index 0000000000000..2f1536a3827c4
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductTransferValidationErrorCode.java
@@ -0,0 +1,62 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for ProductTransferValidationErrorCode.
+ */
+public final class ProductTransferValidationErrorCode extends ExpandableStringEnum {
+ /** Static value InvalidSource for ProductTransferValidationErrorCode. */
+ public static final ProductTransferValidationErrorCode INVALID_SOURCE = fromString("InvalidSource");
+
+ /** Static value ProductNotActive for ProductTransferValidationErrorCode. */
+ public static final ProductTransferValidationErrorCode PRODUCT_NOT_ACTIVE = fromString("ProductNotActive");
+
+ /** Static value InsufficientPermissionOnSource for ProductTransferValidationErrorCode. */
+ public static final ProductTransferValidationErrorCode INSUFFICIENT_PERMISSION_ON_SOURCE = fromString("InsufficientPermissionOnSource");
+
+ /** Static value InsufficientPermissionOnDestination for ProductTransferValidationErrorCode. */
+ public static final ProductTransferValidationErrorCode INSUFFICIENT_PERMISSION_ON_DESTINATION = fromString("InsufficientPermissionOnDestination");
+
+ /** Static value DestinationBillingProfilePastDue for ProductTransferValidationErrorCode. */
+ public static final ProductTransferValidationErrorCode DESTINATION_BILLING_PROFILE_PAST_DUE = fromString("DestinationBillingProfilePastDue");
+
+ /** Static value ProductTypeNotSupported for ProductTransferValidationErrorCode. */
+ public static final ProductTransferValidationErrorCode PRODUCT_TYPE_NOT_SUPPORTED = fromString("ProductTypeNotSupported");
+
+ /** Static value CrossBillingAccountNotAllowed for ProductTransferValidationErrorCode. */
+ public static final ProductTransferValidationErrorCode CROSS_BILLING_ACCOUNT_NOT_ALLOWED = fromString("CrossBillingAccountNotAllowed");
+
+ /** Static value NotAvailableForDestinationMarket for ProductTransferValidationErrorCode. */
+ public static final ProductTransferValidationErrorCode NOT_AVAILABLE_FOR_DESTINATION_MARKET = fromString("NotAvailableForDestinationMarket");
+
+ /** Static value OneTimePurchaseProductTransferNotAllowed for ProductTransferValidationErrorCode. */
+ public static final ProductTransferValidationErrorCode ONE_TIME_PURCHASE_PRODUCT_TRANSFER_NOT_ALLOWED = fromString("OneTimePurchaseProductTransferNotAllowed");
+
+ /**
+ * Creates or finds a ProductTransferValidationErrorCode from its string representation.
+ * @param name a name to look for
+ * @return the corresponding ProductTransferValidationErrorCode
+ */
+ @JsonCreator
+ public static ProductTransferValidationErrorCode fromString(String name) {
+ return fromString(name, ProductTransferValidationErrorCode.class);
+ }
+
+ /**
+ * @return known ProductTransferValidationErrorCode values
+ */
+ public static Collection values() {
+ return values(ProductTransferValidationErrorCode.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductType.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductType.java
new file mode 100644
index 0000000000000..c9e316045234c
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/ProductType.java
@@ -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.v2019_10_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for ProductType.
+ */
+public final class ProductType extends ExpandableStringEnum {
+ /** Static value AzureSubscription for ProductType. */
+ public static final ProductType AZURE_SUBSCRIPTION = fromString("AzureSubscription");
+
+ /** Static value AzureReservation for ProductType. */
+ public static final ProductType AZURE_RESERVATION = fromString("AzureReservation");
+
+ /**
+ * Creates or finds a ProductType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding ProductType
+ */
+ @JsonCreator
+ public static ProductType fromString(String name) {
+ return fromString(name, ProductType.class);
+ }
+
+ /**
+ * @return known ProductType values
+ */
+ public static Collection values() {
+ return values(ProductType.class);
+ }
+}
diff --git a/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Products.java b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Products.java
new file mode 100644
index 0000000000000..250b93189cbe0
--- /dev/null
+++ b/billing/resource-manager/v2019_10_01_preview/src/main/java/com/microsoft/azure/management/billing/v2019_10_01_preview/Products.java
@@ -0,0 +1,120 @@
+/**
+ * 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.v2019_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.billing.v2019_10_01_preview.implementation.ProductsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Products.
+ */
+public interface Products extends HasInner {
+ /**
+ * Lists products by customer id.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param customerName Customer name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByCustomerAsync(String billingAccountName, String customerName);
+
+ /**
+ * Lists products by billing account name.
+ *
+ * @param billingAccountName billing Account Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByBillingAccountAsync(final String billingAccountName);
+
+ /**
+ * Lists products by invoice section name.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByInvoiceSectionAsync(String billingAccountName, String billingProfileName, String invoiceSectionName);
+
+ /**
+ * Get a single product by name.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @param productName Invoice Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String billingAccountName, String billingProfileName, String invoiceSectionName, String productName);
+
+ /**
+ * The operation to transfer a Product to another invoice section.
+ *
+ * @param billingAccountName billing Account Id.
+ * @param billingProfileName Billing Profile Id.
+ * @param invoiceSectionName InvoiceSection Id.
+ * @param productName Invoice Id.
+ * @param parameters Parameters supplied to the Transfer Product operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable