scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -219,6 +237,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -226,9 +257,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -250,7 +283,7 @@ public BillingManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.billing")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -268,16 +301,34 @@ public BillingManager authenticate(TokenCredential credential, AzureProfile prof
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies.addAll(this.policies);
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -289,7 +340,11 @@ public BillingManager authenticate(TokenCredential credential, AzureProfile prof
}
}
- /** @return Resource collection API of BillingAccounts. */
+ /**
+ * Gets the resource collection API of BillingAccounts.
+ *
+ * @return Resource collection API of BillingAccounts.
+ */
public BillingAccounts billingAccounts() {
if (this.billingAccounts == null) {
this.billingAccounts = new BillingAccountsImpl(clientObject.getBillingAccounts(), this);
@@ -297,7 +352,11 @@ public BillingAccounts billingAccounts() {
return billingAccounts;
}
- /** @return Resource collection API of Address. */
+ /**
+ * Gets the resource collection API of Address.
+ *
+ * @return Resource collection API of Address.
+ */
public Address address() {
if (this.address == null) {
this.address = new AddressImpl(clientObject.getAddress(), this);
@@ -305,7 +364,11 @@ public Address address() {
return address;
}
- /** @return Resource collection API of AvailableBalances. */
+ /**
+ * Gets the resource collection API of AvailableBalances.
+ *
+ * @return Resource collection API of AvailableBalances.
+ */
public AvailableBalances availableBalances() {
if (this.availableBalances == null) {
this.availableBalances = new AvailableBalancesImpl(clientObject.getAvailableBalances(), this);
@@ -313,7 +376,11 @@ public AvailableBalances availableBalances() {
return availableBalances;
}
- /** @return Resource collection API of Instructions. */
+ /**
+ * Gets the resource collection API of Instructions.
+ *
+ * @return Resource collection API of Instructions.
+ */
public Instructions instructions() {
if (this.instructions == null) {
this.instructions = new InstructionsImpl(clientObject.getInstructions(), this);
@@ -321,7 +388,11 @@ public Instructions instructions() {
return instructions;
}
- /** @return Resource collection API of BillingProfiles. */
+ /**
+ * Gets the resource collection API of BillingProfiles.
+ *
+ * @return Resource collection API of BillingProfiles.
+ */
public BillingProfiles billingProfiles() {
if (this.billingProfiles == null) {
this.billingProfiles = new BillingProfilesImpl(clientObject.getBillingProfiles(), this);
@@ -329,7 +400,11 @@ public BillingProfiles billingProfiles() {
return billingProfiles;
}
- /** @return Resource collection API of Customers. */
+ /**
+ * Gets the resource collection API of Customers.
+ *
+ * @return Resource collection API of Customers.
+ */
public Customers customers() {
if (this.customers == null) {
this.customers = new CustomersImpl(clientObject.getCustomers(), this);
@@ -337,7 +412,11 @@ public Customers customers() {
return customers;
}
- /** @return Resource collection API of InvoiceSections. */
+ /**
+ * Gets the resource collection API of InvoiceSections.
+ *
+ * @return Resource collection API of InvoiceSections.
+ */
public InvoiceSections invoiceSections() {
if (this.invoiceSections == null) {
this.invoiceSections = new InvoiceSectionsImpl(clientObject.getInvoiceSections(), this);
@@ -345,7 +424,11 @@ public InvoiceSections invoiceSections() {
return invoiceSections;
}
- /** @return Resource collection API of BillingPermissions. */
+ /**
+ * Gets the resource collection API of BillingPermissions.
+ *
+ * @return Resource collection API of BillingPermissions.
+ */
public BillingPermissions billingPermissions() {
if (this.billingPermissions == null) {
this.billingPermissions = new BillingPermissionsImpl(clientObject.getBillingPermissions(), this);
@@ -353,7 +436,11 @@ public BillingPermissions billingPermissions() {
return billingPermissions;
}
- /** @return Resource collection API of BillingSubscriptions. */
+ /**
+ * Gets the resource collection API of BillingSubscriptions.
+ *
+ * @return Resource collection API of BillingSubscriptions.
+ */
public BillingSubscriptions billingSubscriptions() {
if (this.billingSubscriptions == null) {
this.billingSubscriptions = new BillingSubscriptionsImpl(clientObject.getBillingSubscriptions(), this);
@@ -361,7 +448,11 @@ public BillingSubscriptions billingSubscriptions() {
return billingSubscriptions;
}
- /** @return Resource collection API of Products. */
+ /**
+ * Gets the resource collection API of Products.
+ *
+ * @return Resource collection API of Products.
+ */
public Products products() {
if (this.products == null) {
this.products = new ProductsImpl(clientObject.getProducts(), this);
@@ -369,7 +460,11 @@ public Products products() {
return products;
}
- /** @return Resource collection API of Invoices. */
+ /**
+ * Gets the resource collection API of Invoices.
+ *
+ * @return Resource collection API of Invoices.
+ */
public Invoices invoices() {
if (this.invoices == null) {
this.invoices = new InvoicesImpl(clientObject.getInvoices(), this);
@@ -377,7 +472,11 @@ public Invoices invoices() {
return invoices;
}
- /** @return Resource collection API of Transactions. */
+ /**
+ * Gets the resource collection API of Transactions.
+ *
+ * @return Resource collection API of Transactions.
+ */
public Transactions transactions() {
if (this.transactions == null) {
this.transactions = new TransactionsImpl(clientObject.getTransactions(), this);
@@ -385,7 +484,11 @@ public Transactions transactions() {
return transactions;
}
- /** @return Resource collection API of Policies. */
+ /**
+ * Gets the resource collection API of Policies.
+ *
+ * @return Resource collection API of Policies.
+ */
public Policies policies() {
if (this.policies == null) {
this.policies = new PoliciesImpl(clientObject.getPolicies(), this);
@@ -393,7 +496,11 @@ public Policies policies() {
return policies;
}
- /** @return Resource collection API of BillingProperties. */
+ /**
+ * Gets the resource collection API of BillingProperties.
+ *
+ * @return Resource collection API of BillingProperties.
+ */
public BillingProperties billingProperties() {
if (this.billingProperties == null) {
this.billingProperties = new BillingPropertiesImpl(clientObject.getBillingProperties(), this);
@@ -401,15 +508,11 @@ public BillingProperties billingProperties() {
return billingProperties;
}
- /** @return Resource collection API of Operations. */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
- /** @return Resource collection API of BillingRoleDefinitions. */
+ /**
+ * Gets the resource collection API of BillingRoleDefinitions.
+ *
+ * @return Resource collection API of BillingRoleDefinitions.
+ */
public BillingRoleDefinitions billingRoleDefinitions() {
if (this.billingRoleDefinitions == null) {
this.billingRoleDefinitions =
@@ -418,7 +521,11 @@ public BillingRoleDefinitions billingRoleDefinitions() {
return billingRoleDefinitions;
}
- /** @return Resource collection API of BillingRoleAssignments. */
+ /**
+ * Gets the resource collection API of BillingRoleAssignments.
+ *
+ * @return Resource collection API of BillingRoleAssignments.
+ */
public BillingRoleAssignments billingRoleAssignments() {
if (this.billingRoleAssignments == null) {
this.billingRoleAssignments =
@@ -427,7 +534,11 @@ public BillingRoleAssignments billingRoleAssignments() {
return billingRoleAssignments;
}
- /** @return Resource collection API of Agreements. */
+ /**
+ * Gets the resource collection API of Agreements.
+ *
+ * @return Resource collection API of Agreements.
+ */
public Agreements agreements() {
if (this.agreements == null) {
this.agreements = new AgreementsImpl(clientObject.getAgreements(), this);
@@ -435,7 +546,11 @@ public Agreements agreements() {
return agreements;
}
- /** @return Resource collection API of Reservations. */
+ /**
+ * Gets the resource collection API of Reservations.
+ *
+ * @return Resource collection API of Reservations.
+ */
public Reservations reservations() {
if (this.reservations == null) {
this.reservations = new ReservationsImpl(clientObject.getReservations(), this);
@@ -443,7 +558,11 @@ public Reservations reservations() {
return reservations;
}
- /** @return Resource collection API of EnrollmentAccounts. */
+ /**
+ * Gets the resource collection API of EnrollmentAccounts.
+ *
+ * @return Resource collection API of EnrollmentAccounts.
+ */
public EnrollmentAccounts enrollmentAccounts() {
if (this.enrollmentAccounts == null) {
this.enrollmentAccounts = new EnrollmentAccountsImpl(clientObject.getEnrollmentAccounts(), this);
@@ -451,7 +570,11 @@ public EnrollmentAccounts enrollmentAccounts() {
return enrollmentAccounts;
}
- /** @return Resource collection API of BillingPeriods. */
+ /**
+ * Gets the resource collection API of BillingPeriods.
+ *
+ * @return Resource collection API of BillingPeriods.
+ */
public BillingPeriods billingPeriods() {
if (this.billingPeriods == null) {
this.billingPeriods = new BillingPeriodsImpl(clientObject.getBillingPeriods(), this);
@@ -459,6 +582,18 @@ public BillingPeriods billingPeriods() {
return billingPeriods;
}
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
/**
* @return Wrapped service client BillingManagementClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AddressClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AddressClient.java
index 66eecfbbab46..3810e247e2ee 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AddressClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AddressClient.java
@@ -17,24 +17,24 @@ public interface AddressClient {
* Validates an address. Use the operation to validate an address before using it as soldTo or a billTo address.
*
* @param address Address details.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the address validation.
+ * @return result of the address validation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateAddressResponseInner validate(AddressDetails address);
+ Response validateWithResponse(AddressDetails address, Context context);
/**
* Validates an address. Use the operation to validate an address before using it as soldTo or a billTo address.
*
* @param address Address details.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the address validation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response validateWithResponse(AddressDetails address, Context context);
+ ValidateAddressResponseInner validate(AddressDetails address);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AgreementsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AgreementsClient.java
index ad29ace3539d..2966384ab22a 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AgreementsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AgreementsClient.java
@@ -20,7 +20,7 @@ public interface AgreementsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of listing agreements.
+ * @return result of listing agreements as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
@@ -34,7 +34,7 @@ public interface AgreementsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of listing agreements.
+ * @return result of listing agreements as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName, String expand, Context context);
@@ -44,27 +44,27 @@ public interface AgreementsClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param agreementName The ID that uniquely identifies an agreement.
+ * @param expand May be used to expand the participants.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an agreement by ID.
+ * @return an agreement by ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AgreementInner get(String billingAccountName, String agreementName);
+ Response getWithResponse(
+ String billingAccountName, String agreementName, String expand, Context context);
/**
* Gets an agreement by ID.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param agreementName The ID that uniquely identifies an agreement.
- * @param expand May be used to expand the participants.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an agreement by ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String billingAccountName, String agreementName, String expand, Context context);
+ AgreementInner get(String billingAccountName, String agreementName);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AvailableBalancesClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AvailableBalancesClient.java
index 3b9e3e6df477..338e89332f7d 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AvailableBalancesClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/AvailableBalancesClient.java
@@ -19,13 +19,15 @@ public interface AvailableBalancesClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the latest Azure credit balance.
+ * @return the latest Azure credit balance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AvailableBalanceInner get(String billingAccountName, String billingProfileName);
+ Response getWithResponse(
+ String billingAccountName, String billingProfileName, Context context);
/**
* The available credit balance for a billing profile. This is the balance that can be used for pay now to settle
@@ -34,13 +36,11 @@ public interface AvailableBalancesClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the latest Azure credit balance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String billingAccountName, String billingProfileName, Context context);
+ AvailableBalanceInner get(String billingAccountName, String billingProfileName);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingAccountsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingAccountsClient.java
index 3e8aef58d0e4..7dd1f15292b7 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingAccountsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingAccountsClient.java
@@ -22,7 +22,7 @@ public interface BillingAccountsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing accounts.
+ * @return the list of billing accounts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -35,7 +35,7 @@ public interface BillingAccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing accounts.
+ * @return the list of billing accounts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String expand, Context context);
@@ -44,27 +44,27 @@ public interface BillingAccountsClient {
* Gets a billing account by its ID.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
+ * @param expand May be used to expand the soldTo, invoice sections and billing profiles.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing account by its ID.
+ * @return a billing account by its ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingAccountInner get(String billingAccountName);
+ Response getWithResponse(String billingAccountName, String expand, Context context);
/**
* Gets a billing account by its ID.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
- * @param expand May be used to expand the soldTo, invoice sections and billing profiles.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a billing account by its ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String billingAccountName, String expand, Context context);
+ BillingAccountInner get(String billingAccountName);
/**
* Updates the properties of a billing account. Currently, displayName and address can be updated. The operation is
@@ -75,7 +75,7 @@ public interface BillingAccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing account.
+ * @return the {@link SyncPoller} for polling of a billing account.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BillingAccountInner> beginUpdate(
@@ -91,7 +91,7 @@ SyncPoller, BillingAccountInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing account.
+ * @return the {@link SyncPoller} for polling of a billing account.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BillingAccountInner> beginUpdate(
@@ -134,7 +134,8 @@ SyncPoller, BillingAccountInner> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoice section properties with create subscription permission.
+ * @return the list of invoice section properties with create subscription permission as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listInvoiceSectionsByCreateSubscriptionPermission(
@@ -149,7 +150,8 @@ PagedIterable listInvoiceSectionsByC
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoice section properties with create subscription permission.
+ * @return the list of invoice section properties with create subscription permission as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listInvoiceSectionsByCreateSubscriptionPermission(
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingManagementClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingManagementClient.java
index cea1c2b7e376..3f98daa9f4f3 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingManagementClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingManagementClient.java
@@ -135,13 +135,6 @@ public interface BillingManagementClient {
*/
BillingPropertiesClient getBillingProperties();
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
/**
* Gets the BillingRoleDefinitionsClient object to access its operations.
*
@@ -183,4 +176,11 @@ public interface BillingManagementClient {
* @return the BillingPeriodsClient object.
*/
BillingPeriodsClient getBillingPeriods();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPeriodsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPeriodsClient.java
index 9b05db568d5a..29b0f172ec4b 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPeriodsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPeriodsClient.java
@@ -20,7 +20,7 @@ public interface BillingPeriodsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of listing billing periods.
+ * @return result of listing billing periods as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -40,7 +40,7 @@ public interface BillingPeriodsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of listing billing periods.
+ * @return result of listing billing periods as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String filter, String skiptoken, Integer top, Context context);
@@ -50,25 +50,25 @@ public interface BillingPeriodsClient {
* which were not purchased directly through the Azure web portal are not supported through this preview API.
*
* @param billingPeriodName The name of a BillingPeriod resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a named billing period.
+ * @return a named billing period along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingPeriodInner get(String billingPeriodName);
+ Response getWithResponse(String billingPeriodName, Context context);
/**
* Gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other subscription types
* which were not purchased directly through the Azure web portal are not supported through this preview API.
*
* @param billingPeriodName The name of a BillingPeriod resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a named billing period.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String billingPeriodName, Context context);
+ BillingPeriodInner get(String billingPeriodName);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPermissionsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPermissionsClient.java
index 806c78a4a825..0cad08a5895b 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPermissionsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPermissionsClient.java
@@ -20,7 +20,8 @@ public interface BillingPermissionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of list billingPermissions a caller has on a billing account.
+ * @return result of list billingPermissions a caller has on a billing account as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCustomer(String billingAccountName, String customerName);
@@ -34,7 +35,8 @@ public interface BillingPermissionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of list billingPermissions a caller has on a billing account.
+ * @return result of list billingPermissions a caller has on a billing account as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCustomer(
@@ -47,7 +49,8 @@ PagedIterable listByCustomer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of list billingPermissions a caller has on a billing account.
+ * @return result of list billingPermissions a caller has on a billing account as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
@@ -60,7 +63,8 @@ PagedIterable listByCustomer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of list billingPermissions a caller has on a billing account.
+ * @return result of list billingPermissions a caller has on a billing account as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName, Context context);
@@ -74,7 +78,8 @@ PagedIterable listByCustomer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of list billingPermissions a caller has on a billing account.
+ * @return result of list billingPermissions a caller has on a billing account as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSections(
@@ -90,7 +95,8 @@ PagedIterable listByInvoiceSections(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of list billingPermissions a caller has on a billing account.
+ * @return result of list billingPermissions a caller has on a billing account as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSections(
@@ -104,7 +110,8 @@ PagedIterable listByInvoiceSections(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of list billingPermissions a caller has on a billing account.
+ * @return result of list billingPermissions a caller has on a billing account as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -119,7 +126,8 @@ PagedIterable listByBillingProfile(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of list billingPermissions a caller has on a billing account.
+ * @return result of list billingPermissions a caller has on a billing account as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingProfilesClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingProfilesClient.java
index a708b9769226..ad55bc8a2616 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingProfilesClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingProfilesClient.java
@@ -23,7 +23,7 @@ public interface BillingProfilesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing profiles.
+ * @return the list of billing profiles as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
@@ -38,7 +38,7 @@ public interface BillingProfilesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing profiles.
+ * @return the list of billing profiles as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName, String expand, Context context);
@@ -49,13 +49,16 @@ public interface BillingProfilesClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
+ * @param expand May be used to expand the invoice sections.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing profile by its ID.
+ * @return a billing profile by its ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingProfileInner get(String billingAccountName, String billingProfileName);
+ Response getWithResponse(
+ String billingAccountName, String billingProfileName, String expand, Context context);
/**
* Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft
@@ -63,16 +66,13 @@ public interface BillingProfilesClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
- * @param expand May be used to expand the invoice sections.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a billing profile by its ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String billingAccountName, String billingProfileName, String expand, Context context);
+ BillingProfileInner get(String billingAccountName, String billingProfileName);
/**
* Creates or updates a billing profile. The operation is supported for billing accounts with agreement type
@@ -84,7 +84,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing profile.
+ * @return the {@link SyncPoller} for polling of a billing profile.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BillingProfileInner> beginCreateOrUpdate(
@@ -101,7 +101,7 @@ SyncPoller, BillingProfileInner> beginCreateOrUp
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing profile.
+ * @return the {@link SyncPoller} for polling of a billing profile.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BillingProfileInner> beginCreateOrUpdate(
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPropertiesClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPropertiesClient.java
index 6fb632b38e70..70dcb91077fe 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPropertiesClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingPropertiesClient.java
@@ -16,50 +16,50 @@ public interface BillingPropertiesClient {
* Get the billing properties for a subscription. This operation is not supported for billing accounts with
* agreement type Enterprise Agreement.
*
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the billing properties for a subscription.
+ * @return the billing properties for a subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingPropertyInner get();
+ Response getWithResponse(Context context);
/**
* Get the billing properties for a subscription. This operation is not supported for billing accounts with
* agreement type Enterprise Agreement.
*
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the billing properties for a subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(Context context);
+ BillingPropertyInner get();
/**
* Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported
* only for billing accounts with agreement type Microsoft Customer Agreement.
*
* @param parameters Request parameters that are provided to the update billing property operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing property.
+ * @return a billing property along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingPropertyInner update(BillingPropertyInner parameters);
+ Response updateWithResponse(BillingPropertyInner parameters, Context context);
/**
* Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported
* only for billing accounts with agreement type Microsoft Customer Agreement.
*
* @param parameters Request parameters that are provided to the update billing property operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a billing property.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(BillingPropertyInner parameters, Context context);
+ BillingPropertyInner update(BillingPropertyInner parameters);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingRoleAssignmentsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingRoleAssignmentsClient.java
index 35f767918b95..52f89a0a81f6 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingRoleAssignmentsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingRoleAssignmentsClient.java
@@ -19,13 +19,15 @@ public interface BillingRoleAssignmentsClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a role assignment for the caller on a billing account.
+ * @return a role assignment for the caller on a billing account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingRoleAssignmentInner getByBillingAccount(String billingAccountName, String billingRoleAssignmentName);
+ Response getByBillingAccountWithResponse(
+ String billingAccountName, String billingRoleAssignmentName, Context context);
/**
* Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with
@@ -33,15 +35,13 @@ public interface BillingRoleAssignmentsClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a role assignment for the caller on a billing account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByBillingAccountWithResponse(
- String billingAccountName, String billingRoleAssignmentName, Context context);
+ BillingRoleAssignmentInner getByBillingAccount(String billingAccountName, String billingRoleAssignmentName);
/**
* Deletes a role assignment for the caller on a billing account. The operation is supported for billing accounts
@@ -49,13 +49,15 @@ Response getByBillingAccountWithResponse(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the role assignment.
+ * @return the role assignment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingRoleAssignmentInner deleteByBillingAccount(String billingAccountName, String billingRoleAssignmentName);
+ Response deleteByBillingAccountWithResponse(
+ String billingAccountName, String billingRoleAssignmentName, Context context);
/**
* Deletes a role assignment for the caller on a billing account. The operation is supported for billing accounts
@@ -63,15 +65,13 @@ Response getByBillingAccountWithResponse(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the role assignment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteByBillingAccountWithResponse(
- String billingAccountName, String billingRoleAssignmentName, Context context);
+ BillingRoleAssignmentInner deleteByBillingAccount(String billingAccountName, String billingRoleAssignmentName);
/**
* Gets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with
@@ -81,17 +81,19 @@ Response deleteByBillingAccountWithResponse(
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a role assignment for the caller on an invoice section.
+ * @return a role assignment for the caller on an invoice section along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingRoleAssignmentInner getByInvoiceSection(
+ Response getByInvoiceSectionWithResponse(
String billingAccountName,
String billingProfileName,
String invoiceSectionName,
- String billingRoleAssignmentName);
+ String billingRoleAssignmentName,
+ Context context);
/**
* Gets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with
@@ -101,19 +103,17 @@ BillingRoleAssignmentInner getByInvoiceSection(
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a role assignment for the caller on an invoice section.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByInvoiceSectionWithResponse(
+ BillingRoleAssignmentInner getByInvoiceSection(
String billingAccountName,
String billingProfileName,
String invoiceSectionName,
- String billingRoleAssignmentName,
- Context context);
+ String billingRoleAssignmentName);
/**
* Deletes a role assignment for the caller on an invoice section. The operation is supported for billing accounts
@@ -123,17 +123,19 @@ Response getByInvoiceSectionWithResponse(
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the role assignment.
+ * @return the role assignment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingRoleAssignmentInner deleteByInvoiceSection(
+ Response deleteByInvoiceSectionWithResponse(
String billingAccountName,
String billingProfileName,
String invoiceSectionName,
- String billingRoleAssignmentName);
+ String billingRoleAssignmentName,
+ Context context);
/**
* Deletes a role assignment for the caller on an invoice section. The operation is supported for billing accounts
@@ -143,19 +145,17 @@ BillingRoleAssignmentInner deleteByInvoiceSection(
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the role assignment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteByInvoiceSectionWithResponse(
+ BillingRoleAssignmentInner deleteByInvoiceSection(
String billingAccountName,
String billingProfileName,
String invoiceSectionName,
- String billingRoleAssignmentName,
- Context context);
+ String billingRoleAssignmentName);
/**
* Gets a role assignment for the caller on a billing profile. The operation is supported for billing accounts with
@@ -164,14 +164,15 @@ Response deleteByInvoiceSectionWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a role assignment for the caller on a billing profile.
+ * @return a role assignment for the caller on a billing profile along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingRoleAssignmentInner getByBillingProfile(
- String billingAccountName, String billingProfileName, String billingRoleAssignmentName);
+ Response getByBillingProfileWithResponse(
+ String billingAccountName, String billingProfileName, String billingRoleAssignmentName, Context context);
/**
* Gets a role assignment for the caller on a billing profile. The operation is supported for billing accounts with
@@ -180,15 +181,14 @@ BillingRoleAssignmentInner getByBillingProfile(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a role assignment for the caller on a billing profile.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByBillingProfileWithResponse(
- String billingAccountName, String billingProfileName, String billingRoleAssignmentName, Context context);
+ BillingRoleAssignmentInner getByBillingProfile(
+ String billingAccountName, String billingProfileName, String billingRoleAssignmentName);
/**
* Deletes a role assignment for the caller on a billing profile. The operation is supported for billing accounts
@@ -197,14 +197,15 @@ Response getByBillingProfileWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the role assignment.
+ * @return the role assignment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingRoleAssignmentInner deleteByBillingProfile(
- String billingAccountName, String billingProfileName, String billingRoleAssignmentName);
+ Response deleteByBillingProfileWithResponse(
+ String billingAccountName, String billingProfileName, String billingRoleAssignmentName, Context context);
/**
* Deletes a role assignment for the caller on a billing profile. The operation is supported for billing accounts
@@ -213,15 +214,14 @@ BillingRoleAssignmentInner deleteByBillingProfile(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param billingRoleAssignmentName The ID that uniquely identifies a role assignment.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the role assignment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteByBillingProfileWithResponse(
- String billingAccountName, String billingProfileName, String billingRoleAssignmentName, Context context);
+ BillingRoleAssignmentInner deleteByBillingProfile(
+ String billingAccountName, String billingProfileName, String billingRoleAssignmentName);
/**
* Lists the role assignments for the caller on a billing account. The operation is supported for billing accounts
@@ -231,7 +231,7 @@ Response deleteByBillingProfileWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role assignments.
+ * @return the list of role assignments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
@@ -245,7 +245,7 @@ Response deleteByBillingProfileWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role assignments.
+ * @return the list of role assignments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName, Context context);
@@ -260,7 +260,7 @@ Response deleteByBillingProfileWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role assignments.
+ * @return the list of role assignments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(
@@ -277,7 +277,7 @@ PagedIterable listByInvoiceSection(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role assignments.
+ * @return the list of role assignments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(
@@ -292,7 +292,7 @@ PagedIterable listByInvoiceSection(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role assignments.
+ * @return the list of role assignments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -308,7 +308,7 @@ PagedIterable listByBillingProfile(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role assignments.
+ * @return the list of role assignments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingRoleDefinitionsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingRoleDefinitionsClient.java
index ae03cfa9580f..6d961616bd0d 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingRoleDefinitionsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingRoleDefinitionsClient.java
@@ -19,13 +19,15 @@ public interface BillingRoleDefinitionsClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingRoleDefinitionName The ID that uniquely identifies a role definition.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the definition for a role on a billing account.
+ * @return the definition for a role on a billing account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingRoleDefinitionInner getByBillingAccount(String billingAccountName, String billingRoleDefinitionName);
+ Response getByBillingAccountWithResponse(
+ String billingAccountName, String billingRoleDefinitionName, Context context);
/**
* Gets the definition for a role on a billing account. The operation is supported for billing accounts with
@@ -33,15 +35,13 @@ public interface BillingRoleDefinitionsClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingRoleDefinitionName The ID that uniquely identifies a role definition.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the definition for a role on a billing account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByBillingAccountWithResponse(
- String billingAccountName, String billingRoleDefinitionName, Context context);
+ BillingRoleDefinitionInner getByBillingAccount(String billingAccountName, String billingRoleDefinitionName);
/**
* Gets the definition for a role on an invoice section. The operation is supported only for billing accounts with
@@ -51,17 +51,19 @@ Response getByBillingAccountWithResponse(
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param billingRoleDefinitionName The ID that uniquely identifies a role definition.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the definition for a role on an invoice section.
+ * @return the definition for a role on an invoice section along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingRoleDefinitionInner getByInvoiceSection(
+ Response getByInvoiceSectionWithResponse(
String billingAccountName,
String billingProfileName,
String invoiceSectionName,
- String billingRoleDefinitionName);
+ String billingRoleDefinitionName,
+ Context context);
/**
* Gets the definition for a role on an invoice section. The operation is supported only for billing accounts with
@@ -71,19 +73,17 @@ BillingRoleDefinitionInner getByInvoiceSection(
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param billingRoleDefinitionName The ID that uniquely identifies a role definition.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the definition for a role on an invoice section.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByInvoiceSectionWithResponse(
+ BillingRoleDefinitionInner getByInvoiceSection(
String billingAccountName,
String billingProfileName,
String invoiceSectionName,
- String billingRoleDefinitionName,
- Context context);
+ String billingRoleDefinitionName);
/**
* Gets the definition for a role on a billing profile. The operation is supported for billing accounts with
@@ -92,14 +92,15 @@ Response getByInvoiceSectionWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param billingRoleDefinitionName The ID that uniquely identifies a role definition.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the definition for a role on a billing profile.
+ * @return the definition for a role on a billing profile along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingRoleDefinitionInner getByBillingProfile(
- String billingAccountName, String billingProfileName, String billingRoleDefinitionName);
+ Response getByBillingProfileWithResponse(
+ String billingAccountName, String billingProfileName, String billingRoleDefinitionName, Context context);
/**
* Gets the definition for a role on a billing profile. The operation is supported for billing accounts with
@@ -108,15 +109,14 @@ BillingRoleDefinitionInner getByBillingProfile(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param billingRoleDefinitionName The ID that uniquely identifies a role definition.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the definition for a role on a billing profile.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByBillingProfileWithResponse(
- String billingAccountName, String billingProfileName, String billingRoleDefinitionName, Context context);
+ BillingRoleDefinitionInner getByBillingProfile(
+ String billingAccountName, String billingProfileName, String billingRoleDefinitionName);
/**
* Lists the role definitions for a billing account. The operation is supported for billing accounts with agreement
@@ -126,7 +126,7 @@ Response getByBillingProfileWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role definitions.
+ * @return the list of role definitions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
@@ -140,7 +140,7 @@ Response getByBillingProfileWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role definitions.
+ * @return the list of role definitions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName, Context context);
@@ -155,7 +155,7 @@ Response getByBillingProfileWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role definitions.
+ * @return the list of role definitions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(
@@ -172,7 +172,7 @@ PagedIterable listByInvoiceSection(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role definitions.
+ * @return the list of role definitions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(
@@ -187,7 +187,7 @@ PagedIterable listByInvoiceSection(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role definitions.
+ * @return the list of role definitions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -203,7 +203,7 @@ PagedIterable listByBillingProfile(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of role definitions.
+ * @return the list of role definitions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingSubscriptionsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingSubscriptionsClient.java
index 389c9b9259fe..6eb1ae8e6cc4 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingSubscriptionsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/BillingSubscriptionsClient.java
@@ -26,7 +26,7 @@ public interface BillingSubscriptionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing subscriptions.
+ * @return the list of billing subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCustomer(String billingAccountName, String customerName);
@@ -41,7 +41,7 @@ public interface BillingSubscriptionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing subscriptions.
+ * @return the list of billing subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCustomer(
@@ -55,7 +55,7 @@ PagedIterable listByCustomer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing subscriptions.
+ * @return the list of billing subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
@@ -69,7 +69,7 @@ PagedIterable listByCustomer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing subscriptions.
+ * @return the list of billing subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName, Context context);
@@ -83,7 +83,7 @@ PagedIterable listByCustomer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing subscriptions.
+ * @return the list of billing subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName);
@@ -98,7 +98,7 @@ PagedIterable listByCustomer(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing subscriptions.
+ * @return the list of billing subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -114,7 +114,7 @@ PagedIterable listByBillingProfile(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing subscriptions.
+ * @return the list of billing subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(
@@ -131,7 +131,7 @@ PagedIterable listByInvoiceSection(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing subscriptions.
+ * @return the list of billing subscriptions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(
@@ -142,27 +142,27 @@ PagedIterable listByInvoiceSection(
* Customer Agreement and Microsoft Partner Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a subscription by its ID.
+ * @return a subscription by its ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingSubscriptionInner get(String billingAccountName);
+ Response getWithResponse(String billingAccountName, Context context);
/**
* Gets a subscription by its ID. The operation is supported for billing accounts with agreement type Microsoft
* Customer Agreement and Microsoft Partner Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a subscription by its ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String billingAccountName, Context context);
+ BillingSubscriptionInner get(String billingAccountName);
/**
* Updates the properties of a billing subscription. Currently, cost center can be updated. The operation is
@@ -170,13 +170,15 @@ PagedIterable listByInvoiceSection(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param parameters Request parameters that are provided to the update billing subscription operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing subscription.
+ * @return a billing subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BillingSubscriptionInner update(String billingAccountName, BillingSubscriptionInner parameters);
+ Response updateWithResponse(
+ String billingAccountName, BillingSubscriptionInner parameters, Context context);
/**
* Updates the properties of a billing subscription. Currently, cost center can be updated. The operation is
@@ -184,15 +186,13 @@ PagedIterable listByInvoiceSection(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param parameters Request parameters that are provided to the update billing subscription operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a billing subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String billingAccountName, BillingSubscriptionInner parameters, Context context);
+ BillingSubscriptionInner update(String billingAccountName, BillingSubscriptionInner parameters);
/**
* Moves a subscription's charges to a new invoice section. The new invoice section must belong to the same billing
@@ -204,7 +204,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing subscription.
+ * @return the {@link SyncPoller} for polling of a billing subscription.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BillingSubscriptionInner> beginMove(
@@ -221,7 +221,7 @@ SyncPoller, BillingSubscriptionInner> begin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a billing subscription.
+ * @return the {@link SyncPoller} for polling of a billing subscription.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BillingSubscriptionInner> beginMove(
@@ -265,14 +265,15 @@ BillingSubscriptionInner move(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param parameters Request parameters that are provided to the validate move eligibility operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the transfer eligibility validation.
+ * @return result of the transfer eligibility validation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateSubscriptionTransferEligibilityResultInner validateMove(
- String billingAccountName, TransferBillingSubscriptionRequestProperties parameters);
+ Response validateMoveWithResponse(
+ String billingAccountName, TransferBillingSubscriptionRequestProperties parameters, Context context);
/**
* Validates if a subscription's charges can be moved to a new invoice section. This operation is supported for
@@ -280,13 +281,12 @@ ValidateSubscriptionTransferEligibilityResultInner validateMove(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param parameters Request parameters that are provided to the validate move eligibility operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the transfer eligibility validation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response validateMoveWithResponse(
- String billingAccountName, TransferBillingSubscriptionRequestProperties parameters, Context context);
+ ValidateSubscriptionTransferEligibilityResultInner validateMove(
+ String billingAccountName, TransferBillingSubscriptionRequestProperties parameters);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/CustomersClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/CustomersClient.java
index 0331888c57e6..df99217822ca 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/CustomersClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/CustomersClient.java
@@ -22,7 +22,7 @@ public interface CustomersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of customers.
+ * @return the list of customers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName);
@@ -40,7 +40,7 @@ public interface CustomersClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of customers.
+ * @return the list of customers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -54,7 +54,7 @@ PagedIterable listByBillingProfile(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of customers.
+ * @return the list of customers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
@@ -71,7 +71,7 @@ PagedIterable listByBillingProfile(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of customers.
+ * @return the list of customers as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(
@@ -83,13 +83,16 @@ PagedIterable listByBillingAccount(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param customerName The ID that uniquely identifies a customer.
+ * @param expand May be used to expand enabledAzurePlans and resellers.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a customer by its ID.
+ * @return a customer by its ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CustomerInner get(String billingAccountName, String customerName);
+ Response getWithResponse(
+ String billingAccountName, String customerName, String expand, Context context);
/**
* Gets a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft
@@ -97,14 +100,11 @@ PagedIterable listByBillingAccount(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param customerName The ID that uniquely identifies a customer.
- * @param expand May be used to expand enabledAzurePlans and resellers.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a customer by its ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String billingAccountName, String customerName, String expand, Context context);
+ CustomerInner get(String billingAccountName, String customerName);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/EnrollmentAccountsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/EnrollmentAccountsClient.java
index 5e167c1f147b..85926cd3b8cb 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/EnrollmentAccountsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/EnrollmentAccountsClient.java
@@ -18,7 +18,7 @@ public interface EnrollmentAccountsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of listing enrollment accounts.
+ * @return result of listing enrollment accounts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -30,7 +30,7 @@ public interface EnrollmentAccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of listing enrollment accounts.
+ * @return result of listing enrollment accounts as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -39,24 +39,24 @@ public interface EnrollmentAccountsClient {
* Gets a enrollment account by name.
*
* @param name Enrollment Account name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a enrollment account by name.
+ * @return a enrollment account by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- EnrollmentAccountSummaryInner get(String name);
+ Response getWithResponse(String name, Context context);
/**
* Gets a enrollment account by name.
*
* @param name Enrollment Account name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a enrollment account by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String name, Context context);
+ EnrollmentAccountSummaryInner get(String name);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InstructionsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InstructionsClient.java
index 5b8116658c0b..a1217295a863 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InstructionsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InstructionsClient.java
@@ -21,7 +21,8 @@ public interface InstructionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing instructions used during invoice generation.
+ * @return the list of billing instructions used during invoice generation as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName);
@@ -35,7 +36,8 @@ public interface InstructionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing instructions used during invoice generation.
+ * @return the list of billing instructions used during invoice generation as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -47,13 +49,15 @@ PagedIterable listByBillingProfile(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param instructionName Instruction Name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the instruction by name.
+ * @return the instruction by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InstructionInner get(String billingAccountName, String billingProfileName, String instructionName);
+ Response getWithResponse(
+ String billingAccountName, String billingProfileName, String instructionName, Context context);
/**
* Get the instruction by name. These are custom billing instructions and are only applicable for certain customers.
@@ -61,15 +65,13 @@ PagedIterable listByBillingProfile(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param instructionName Instruction Name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the instruction by name.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String billingAccountName, String billingProfileName, String instructionName, Context context);
+ InstructionInner get(String billingAccountName, String billingProfileName, String instructionName);
/**
* Creates or updates an instruction. These are custom billing instructions and are only applicable for certain
@@ -79,14 +81,19 @@ Response getWithResponse(
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param instructionName Instruction Name.
* @param parameters The new instruction.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an instruction.
+ * @return an instruction along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InstructionInner put(
- String billingAccountName, String billingProfileName, String instructionName, InstructionInner parameters);
+ Response putWithResponse(
+ String billingAccountName,
+ String billingProfileName,
+ String instructionName,
+ InstructionInner parameters,
+ Context context);
/**
* Creates or updates an instruction. These are custom billing instructions and are only applicable for certain
@@ -96,17 +103,12 @@ InstructionInner put(
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param instructionName Instruction Name.
* @param parameters The new instruction.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an instruction.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response putWithResponse(
- String billingAccountName,
- String billingProfileName,
- String instructionName,
- InstructionInner parameters,
- Context context);
+ InstructionInner put(
+ String billingAccountName, String billingProfileName, String instructionName, InstructionInner parameters);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InvoiceSectionsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InvoiceSectionsClient.java
index 9681158c5e34..a493fb296877 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InvoiceSectionsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InvoiceSectionsClient.java
@@ -24,7 +24,7 @@ public interface InvoiceSectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoice sections.
+ * @return the list of invoice sections as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName);
@@ -39,7 +39,7 @@ public interface InvoiceSectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoice sections.
+ * @return the list of invoice sections as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -52,13 +52,15 @@ PagedIterable listByBillingProfile(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an invoice section by its ID.
+ * @return an invoice section by its ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InvoiceSectionInner get(String billingAccountName, String billingProfileName, String invoiceSectionName);
+ Response getWithResponse(
+ String billingAccountName, String billingProfileName, String invoiceSectionName, Context context);
/**
* Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type
@@ -67,15 +69,13 @@ PagedIterable listByBillingProfile(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an invoice section by its ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String billingAccountName, String billingProfileName, String invoiceSectionName, Context context);
+ InvoiceSectionInner get(String billingAccountName, String billingProfileName, String invoiceSectionName);
/**
* Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type
@@ -88,7 +88,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an invoice section.
+ * @return the {@link SyncPoller} for polling of an invoice section.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, InvoiceSectionInner> beginCreateOrUpdate(
@@ -109,7 +109,7 @@ SyncPoller, InvoiceSectionInner> beginCreateOrUp
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an invoice section.
+ * @return the {@link SyncPoller} for polling of an invoice section.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, InvoiceSectionInner> beginCreateOrUpdate(
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InvoicesClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InvoicesClient.java
index 2836a300df6b..5cff0be560ef 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InvoicesClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/InvoicesClient.java
@@ -27,7 +27,7 @@ public interface InvoicesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoices.
+ * @return the list of invoices as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(
@@ -44,7 +44,7 @@ PagedIterable listByBillingAccount(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoices.
+ * @return the list of invoices as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(
@@ -61,7 +61,7 @@ PagedIterable listByBillingAccount(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoices.
+ * @return the list of invoices as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -79,7 +79,7 @@ PagedIterable listByBillingProfile(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoices.
+ * @return the list of invoices as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -95,13 +95,14 @@ PagedIterable listByBillingProfile(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param invoiceName The ID that uniquely identifies an invoice.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an invoice by billing account name and ID.
+ * @return an invoice by billing account name and ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InvoiceInner get(String billingAccountName, String invoiceName);
+ Response getWithResponse(String billingAccountName, String invoiceName, Context context);
/**
* Gets an invoice by billing account name and ID. The operation is supported for billing accounts with agreement
@@ -109,41 +110,40 @@ PagedIterable listByBillingProfile(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param invoiceName The ID that uniquely identifies an invoice.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an invoice by billing account name and ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String billingAccountName, String invoiceName, Context context);
+ InvoiceInner get(String billingAccountName, String invoiceName);
/**
* Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner
* Agreement or Microsoft Customer Agreement.
*
* @param invoiceName The ID that uniquely identifies an invoice.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an invoice by ID.
+ * @return an invoice by ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InvoiceInner getById(String invoiceName);
+ Response getByIdWithResponse(String invoiceName, Context context);
/**
* Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner
* Agreement or Microsoft Customer Agreement.
*
* @param invoiceName The ID that uniquely identifies an invoice.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an invoice by ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByIdWithResponse(String invoiceName, Context context);
+ InvoiceInner getById(String invoiceName);
/**
* Gets a URL to download an invoice. The operation is supported for billing accounts with agreement type Microsoft
@@ -155,7 +155,7 @@ PagedIterable listByBillingProfile(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a URL to download an invoice.
+ * @return the {@link SyncPoller} for polling of a URL to download an invoice.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadUrlInner> beginDownloadInvoice(
@@ -172,7 +172,7 @@ SyncPoller, DownloadUrlInner> beginDownloadInvoice(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a URL to download an invoice.
+ * @return the {@link SyncPoller} for polling of a URL to download an invoice.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadUrlInner> beginDownloadInvoice(
@@ -220,7 +220,8 @@ DownloadUrlInner downloadInvoice(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file.
+ * @return the {@link SyncPoller} for polling of a URL to download multiple invoice documents (invoice pdf, tax
+ * receipts, credit notes) as a zip file.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadUrlInner> beginDownloadMultipleBillingProfileInvoices(
@@ -237,7 +238,8 @@ SyncPoller, DownloadUrlInner> beginDownloadMultiple
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file.
+ * @return the {@link SyncPoller} for polling of a URL to download multiple invoice documents (invoice pdf, tax
+ * receipts, credit notes) as a zip file.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadUrlInner> beginDownloadMultipleBillingProfileInvoices(
@@ -283,7 +285,7 @@ DownloadUrlInner downloadMultipleBillingProfileInvoices(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoices.
+ * @return the list of invoices as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingSubscription(String periodStartDate, String periodEndDate);
@@ -297,7 +299,7 @@ DownloadUrlInner downloadMultipleBillingProfileInvoices(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of invoices.
+ * @return the list of invoices as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingSubscription(
@@ -307,26 +309,26 @@ PagedIterable listByBillingSubscription(
* Gets an invoice by subscription ID and invoice ID.
*
* @param invoiceName The ID that uniquely identifies an invoice.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an invoice by subscription ID and invoice ID.
+ * @return an invoice by subscription ID and invoice ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InvoiceInner getBySubscriptionAndInvoiceId(String invoiceName);
+ Response getBySubscriptionAndInvoiceIdWithResponse(String invoiceName, Context context);
/**
* Gets an invoice by subscription ID and invoice ID.
*
* @param invoiceName The ID that uniquely identifies an invoice.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an invoice by subscription ID and invoice ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getBySubscriptionAndInvoiceIdWithResponse(String invoiceName, Context context);
+ InvoiceInner getBySubscriptionAndInvoiceId(String invoiceName);
/**
* Gets a URL to download an invoice.
@@ -336,7 +338,7 @@ PagedIterable listByBillingSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a URL to download an invoice.
+ * @return the {@link SyncPoller} for polling of a URL to download an invoice.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadUrlInner> beginDownloadBillingSubscriptionInvoice(
@@ -351,7 +353,7 @@ SyncPoller, DownloadUrlInner> beginDownloadBillingS
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a URL to download an invoice.
+ * @return the {@link SyncPoller} for polling of a URL to download an invoice.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadUrlInner> beginDownloadBillingSubscriptionInvoice(
@@ -391,7 +393,8 @@ SyncPoller, DownloadUrlInner> beginDownloadBillingS
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file.
+ * @return the {@link SyncPoller} for polling of a URL to download multiple invoice documents (invoice pdf, tax
+ * receipts, credit notes) as a zip file.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadUrlInner> beginDownloadMultipleBillingSubscriptionInvoices(
@@ -405,7 +408,8 @@ SyncPoller, DownloadUrlInner> beginDownloadMultiple
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file.
+ * @return the {@link SyncPoller} for polling of a URL to download multiple invoice documents (invoice pdf, tax
+ * receipts, credit notes) as a zip file.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DownloadUrlInner> beginDownloadMultipleBillingSubscriptionInvoices(
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/OperationsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/OperationsClient.java
index 103f7ad487db..67a5aaa856f6 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/OperationsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/OperationsClient.java
@@ -17,7 +17,8 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing operations and a URL link to get the next set of results.
+ * @return the list of billing operations and a URL link to get the next set of results as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +30,8 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of billing operations and a URL link to get the next set of results.
+ * @return the list of billing operations and a URL link to get the next set of results as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/PoliciesClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/PoliciesClient.java
index d6853d3867da..970ca0dadc0f 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/PoliciesClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/PoliciesClient.java
@@ -19,13 +19,15 @@ public interface PoliciesClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a policy.
+ * @return a policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PolicyInner getByBillingProfile(String billingAccountName, String billingProfileName);
+ Response getByBillingProfileWithResponse(
+ String billingAccountName, String billingProfileName, Context context);
/**
* Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement
@@ -33,15 +35,13 @@ public interface PoliciesClient {
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByBillingProfileWithResponse(
- String billingAccountName, String billingProfileName, Context context);
+ PolicyInner getByBillingProfile(String billingAccountName, String billingProfileName);
/**
* Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement
@@ -50,13 +50,15 @@ Response getByBillingProfileWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param parameters Request parameters that are provided to the update policies operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a policy.
+ * @return a policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PolicyInner update(String billingAccountName, String billingProfileName, PolicyInner parameters);
+ Response updateWithResponse(
+ String billingAccountName, String billingProfileName, PolicyInner parameters, Context context);
/**
* Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement
@@ -65,15 +67,13 @@ Response getByBillingProfileWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param parameters Request parameters that are provided to the update policies operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String billingAccountName, String billingProfileName, PolicyInner parameters, Context context);
+ PolicyInner update(String billingAccountName, String billingProfileName, PolicyInner parameters);
/**
* Lists the policies for a customer. This operation is supported only for billing accounts with agreement type
@@ -81,13 +81,15 @@ Response updateWithResponse(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param customerName The ID that uniquely identifies a customer.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the customer's Policy.
+ * @return the customer's Policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CustomerPolicyInner getByCustomer(String billingAccountName, String customerName);
+ Response getByCustomerWithResponse(
+ String billingAccountName, String customerName, Context context);
/**
* Lists the policies for a customer. This operation is supported only for billing accounts with agreement type
@@ -95,15 +97,13 @@ Response updateWithResponse(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param customerName The ID that uniquely identifies a customer.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the customer's Policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByCustomerWithResponse(
- String billingAccountName, String customerName, Context context);
+ CustomerPolicyInner getByCustomer(String billingAccountName, String customerName);
/**
* Updates the policies for a customer. This operation is supported only for billing accounts with agreement type
@@ -112,13 +112,15 @@ Response getByCustomerWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param customerName The ID that uniquely identifies a customer.
* @param parameters Request parameters that are provided to the update policies operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the customer's Policy.
+ * @return the customer's Policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CustomerPolicyInner updateCustomer(String billingAccountName, String customerName, CustomerPolicyInner parameters);
+ Response updateCustomerWithResponse(
+ String billingAccountName, String customerName, CustomerPolicyInner parameters, Context context);
/**
* Updates the policies for a customer. This operation is supported only for billing accounts with agreement type
@@ -127,13 +129,11 @@ Response getByCustomerWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param customerName The ID that uniquely identifies a customer.
* @param parameters Request parameters that are provided to the update policies operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the customer's Policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateCustomerWithResponse(
- String billingAccountName, String customerName, CustomerPolicyInner parameters, Context context);
+ CustomerPolicyInner updateCustomer(String billingAccountName, String customerName, CustomerPolicyInner parameters);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/ProductsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/ProductsClient.java
index f611f10a553b..65148493ed64 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/ProductsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/ProductsClient.java
@@ -25,7 +25,7 @@ public interface ProductsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of products.
+ * @return the list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCustomer(String billingAccountName, String customerName);
@@ -40,7 +40,7 @@ public interface ProductsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of products.
+ * @return the list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCustomer(String billingAccountName, String customerName, Context context);
@@ -53,7 +53,7 @@ public interface ProductsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of products.
+ * @return the list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
@@ -70,7 +70,7 @@ public interface ProductsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of products.
+ * @return the list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName, String filter, Context context);
@@ -84,7 +84,7 @@ public interface ProductsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of products.
+ * @return the list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName);
@@ -102,7 +102,7 @@ public interface ProductsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of products.
+ * @return the list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
@@ -118,7 +118,7 @@ PagedIterable listByBillingProfile(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of products.
+ * @return the list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(
@@ -138,7 +138,7 @@ PagedIterable listByInvoiceSection(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of products.
+ * @return the list of products as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(
@@ -154,13 +154,14 @@ PagedIterable listByInvoiceSection(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param productName The ID that uniquely identifies a product.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a product by ID.
+ * @return a product by ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProductInner get(String billingAccountName, String productName);
+ Response getWithResponse(String billingAccountName, String productName, Context context);
/**
* Gets a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer
@@ -168,14 +169,13 @@ PagedIterable listByInvoiceSection(
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param productName The ID that uniquely identifies a product.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a product by ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String billingAccountName, String productName, Context context);
+ ProductInner get(String billingAccountName, String productName);
/**
* Updates the properties of a Product. Currently, auto renew can be updated. The operation is supported only for
@@ -184,13 +184,15 @@ PagedIterable listByInvoiceSection(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param productName The ID that uniquely identifies a product.
* @param parameters Request parameters that are provided to the update product operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a product.
+ * @return a product along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProductInner update(String billingAccountName, String productName, ProductInner parameters);
+ Response updateWithResponse(
+ String billingAccountName, String productName, ProductInner parameters, Context context);
/**
* Updates the properties of a Product. Currently, auto renew can be updated. The operation is supported only for
@@ -199,15 +201,13 @@ PagedIterable listByInvoiceSection(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param productName The ID that uniquely identifies a product.
* @param parameters Request parameters that are provided to the update product operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a product.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String billingAccountName, String productName, ProductInner parameters, Context context);
+ ProductInner update(String billingAccountName, String productName, ProductInner parameters);
/**
* Moves a product's charges to a new invoice section. The new invoice section must belong to the same billing
@@ -217,13 +217,15 @@ Response updateWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param productName The ID that uniquely identifies a product.
* @param parameters Request parameters that are provided to the move product operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a product.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProductInner move(String billingAccountName, String productName, TransferProductRequestProperties parameters);
+ ProductsMoveResponse moveWithResponse(
+ String billingAccountName, String productName, TransferProductRequestProperties parameters, Context context);
/**
* Moves a product's charges to a new invoice section. The new invoice section must belong to the same billing
@@ -233,15 +235,13 @@ Response updateWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param productName The ID that uniquely identifies a product.
* @param parameters Request parameters that are provided to the move product operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a product.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ProductsMoveResponse moveWithResponse(
- String billingAccountName, String productName, TransferProductRequestProperties parameters, Context context);
+ ProductInner move(String billingAccountName, String productName, TransferProductRequestProperties parameters);
/**
* Validates if a product's charges can be moved to a new invoice section. This operation is supported only for
@@ -251,14 +251,15 @@ ProductsMoveResponse moveWithResponse(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param productName The ID that uniquely identifies a product.
* @param parameters Request parameters that are provided to the validate move eligibility operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the product transfer eligibility validation.
+ * @return result of the product transfer eligibility validation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateProductTransferEligibilityResultInner validateMove(
- String billingAccountName, String productName, TransferProductRequestProperties parameters);
+ Response validateMoveWithResponse(
+ String billingAccountName, String productName, TransferProductRequestProperties parameters, Context context);
/**
* Validates if a product's charges can be moved to a new invoice section. This operation is supported only for
@@ -268,13 +269,12 @@ ValidateProductTransferEligibilityResultInner validateMove(
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param productName The ID that uniquely identifies a product.
* @param parameters Request parameters that are provided to the validate move eligibility operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the product transfer eligibility validation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response validateMoveWithResponse(
- String billingAccountName, String productName, TransferProductRequestProperties parameters, Context context);
+ ValidateProductTransferEligibilityResultInner validateMove(
+ String billingAccountName, String productName, TransferProductRequestProperties parameters);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/ReservationsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/ReservationsClient.java
index db37194db8db..c6c8707457dd 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/ReservationsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/ReservationsClient.java
@@ -19,7 +19,8 @@ public interface ReservationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of reservations and summary of roll out count of reservations in each state.
+ * @return the list of reservations and summary of roll out count of reservations in each state as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
@@ -38,7 +39,8 @@ public interface ReservationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of reservations and summary of roll out count of reservations in each state.
+ * @return the list of reservations and summary of roll out count of reservations in each state as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(
@@ -57,7 +59,8 @@ PagedIterable listByBillingAccount(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of reservations and summary of roll out count of reservations in each state.
+ * @return the list of reservations and summary of roll out count of reservations in each state as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName);
@@ -77,7 +80,8 @@ PagedIterable listByBillingAccount(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of reservations and summary of roll out count of reservations in each state.
+ * @return the list of reservations and summary of roll out count of reservations in each state as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/TransactionsClient.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/TransactionsClient.java
index 403f959e8a87..4e9e736b92e8 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/TransactionsClient.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/TransactionsClient.java
@@ -20,7 +20,7 @@ public interface TransactionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of transactions.
+ * @return the list of transactions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoice(String billingAccountName, String invoiceName);
@@ -34,7 +34,7 @@ public interface TransactionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of transactions.
+ * @return the list of transactions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoice(String billingAccountName, String invoiceName, Context context);
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AgreementInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AgreementInner.java
index 4aaf64e2b001..9c5337fc4a92 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AgreementInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AgreementInner.java
@@ -6,11 +6,10 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.AcceptanceMode;
+import com.azure.resourcemanager.billing.models.BillingProfileInfo;
import com.azure.resourcemanager.billing.models.Category;
import com.azure.resourcemanager.billing.models.Participants;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -18,14 +17,16 @@
/** An agreement. */
@Fluent
public final class AgreementInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AgreementInner.class);
-
/*
* The properties of an agreement.
*/
@JsonProperty(value = "properties")
private AgreementProperties innerProperties;
+ /** Creates an instance of AgreementInner class. */
+ public AgreementInner() {
+ }
+
/**
* Get the innerProperties property: The properties of an agreement.
*
@@ -62,6 +63,16 @@ public AcceptanceMode acceptanceMode() {
return this.innerProperties() == null ? null : this.innerProperties().acceptanceMode();
}
+ /**
+ * Get the billingProfileInfo property: The list of billing profiles associated with agreement and present only for
+ * specific agreements.
+ *
+ * @return the billingProfileInfo value.
+ */
+ public BillingProfileInfo billingProfileInfo() {
+ return this.innerProperties() == null ? null : this.innerProperties().billingProfileInfo();
+ }
+
/**
* Get the effectiveDate property: The date from which the agreement is effective.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AgreementProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AgreementProperties.java
index 2c58990d8f54..4b7f36d5a52d 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AgreementProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AgreementProperties.java
@@ -5,11 +5,10 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.AcceptanceMode;
+import com.azure.resourcemanager.billing.models.BillingProfileInfo;
import com.azure.resourcemanager.billing.models.Category;
import com.azure.resourcemanager.billing.models.Participants;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -17,8 +16,6 @@
/** The properties of an agreement. */
@Fluent
public final class AgreementProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AgreementProperties.class);
-
/*
* The URL to download the agreement.
*/
@@ -37,6 +34,12 @@ public final class AgreementProperties {
@JsonProperty(value = "acceptanceMode", access = JsonProperty.Access.WRITE_ONLY)
private AcceptanceMode acceptanceMode;
+ /*
+ * The list of billing profiles associated with agreement and present only for specific agreements.
+ */
+ @JsonProperty(value = "billingProfileInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private BillingProfileInfo billingProfileInfo;
+
/*
* The date from which the agreement is effective.
*/
@@ -50,8 +53,7 @@ public final class AgreementProperties {
private OffsetDateTime expirationDate;
/*
- * The list of participants that participates in acceptance of an
- * agreement.
+ * The list of participants that participates in acceptance of an agreement.
*/
@JsonProperty(value = "participants")
private List participants;
@@ -62,6 +64,10 @@ public final class AgreementProperties {
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
private String status;
+ /** Creates an instance of AgreementProperties class. */
+ public AgreementProperties() {
+ }
+
/**
* Get the agreementLink property: The URL to download the agreement.
*
@@ -89,6 +95,16 @@ public AcceptanceMode acceptanceMode() {
return this.acceptanceMode;
}
+ /**
+ * Get the billingProfileInfo property: The list of billing profiles associated with agreement and present only for
+ * specific agreements.
+ *
+ * @return the billingProfileInfo value.
+ */
+ public BillingProfileInfo billingProfileInfo() {
+ return this.billingProfileInfo;
+ }
+
/**
* Get the effectiveDate property: The date from which the agreement is effective.
*
@@ -142,6 +158,9 @@ public String status() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (billingProfileInfo() != null) {
+ billingProfileInfo().validate();
+ }
if (participants() != null) {
participants().forEach(e -> e.validate());
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AvailableBalanceInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AvailableBalanceInner.java
index 227613aced33..9347e9d2c5a5 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AvailableBalanceInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AvailableBalanceInner.java
@@ -4,24 +4,24 @@
package com.azure.resourcemanager.billing.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.Amount;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The latest Azure credit balance. This is the balance available for pay now. */
-@Fluent
+@Immutable
public final class AvailableBalanceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableBalanceInner.class);
-
/*
* The properties of available balance.
*/
@JsonProperty(value = "properties")
private AvailableBalanceProperties innerProperties;
+ /** Creates an instance of AvailableBalanceInner class. */
+ public AvailableBalanceInner() {
+ }
+
/**
* Get the innerProperties property: The properties of available balance.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AvailableBalanceProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AvailableBalanceProperties.java
index 9e48931341e3..f0aeddeccacd 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AvailableBalanceProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/AvailableBalanceProperties.java
@@ -5,22 +5,22 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.Amount;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties of available balance. */
@Immutable
public final class AvailableBalanceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableBalanceProperties.class);
-
/*
* Balance amount.
*/
@JsonProperty(value = "amount", access = JsonProperty.Access.WRITE_ONLY)
private Amount amount;
+ /** Creates an instance of AvailableBalanceProperties class. */
+ public AvailableBalanceProperties() {
+ }
+
/**
* Get the amount property: Balance amount.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingAccountInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingAccountInner.java
index f119d957031d..9286c56cddee 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingAccountInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingAccountInner.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.AccountStatus;
import com.azure.resourcemanager.billing.models.AccountType;
import com.azure.resourcemanager.billing.models.AddressDetails;
@@ -15,21 +14,22 @@
import com.azure.resourcemanager.billing.models.Department;
import com.azure.resourcemanager.billing.models.Enrollment;
import com.azure.resourcemanager.billing.models.EnrollmentAccount;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** A billing account. */
@Fluent
public final class BillingAccountInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingAccountInner.class);
-
/*
* The properties of the billing account.
*/
@JsonProperty(value = "properties")
private BillingAccountProperties innerProperties;
+ /** Creates an instance of BillingAccountInner class. */
+ public BillingAccountInner() {
+ }
+
/**
* Get the innerProperties property: The properties of the billing account.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingAccountProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingAccountProperties.java
index d8a9019f1b23..22015daa5cb4 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingAccountProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingAccountProperties.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.AccountStatus;
import com.azure.resourcemanager.billing.models.AccountType;
import com.azure.resourcemanager.billing.models.AddressDetails;
@@ -14,15 +13,12 @@
import com.azure.resourcemanager.billing.models.Department;
import com.azure.resourcemanager.billing.models.Enrollment;
import com.azure.resourcemanager.billing.models.EnrollmentAccount;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The properties of the billing account. */
@Fluent
public final class BillingAccountProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingAccountProperties.class);
-
/*
* The billing account name.
*/
@@ -30,8 +26,7 @@ public final class BillingAccountProperties {
private String displayName;
/*
- * The address of the individual or organization that is responsible for
- * the billing account.
+ * The address of the individual or organization that is responsible for the billing account.
*/
@JsonProperty(value = "soldTo")
private AddressDetails soldTo;
@@ -55,15 +50,15 @@ public final class BillingAccountProperties {
private AccountStatus accountStatus;
/*
- * The billing profiles associated with the billing account. By default
- * this is not populated, unless it's specified in $expand.
+ * The billing profiles associated with the billing account. By default this is not populated, unless it's
+ * specified in $expand.
*/
@JsonProperty(value = "billingProfiles")
private BillingProfilesOnExpand billingProfiles;
/*
- * The details about the associated legacy enrollment. By default this is
- * not populated, unless it's specified in $expand.
+ * The details about the associated legacy enrollment. By default this is not populated, unless it's specified in
+ * $expand.
*/
@JsonProperty(value = "enrollmentDetails", access = JsonProperty.Access.WRITE_ONLY)
private Enrollment enrollmentDetails;
@@ -92,6 +87,10 @@ public final class BillingAccountProperties {
@JsonProperty(value = "notificationEmailAddress")
private String notificationEmailAddress;
+ /** Creates an instance of BillingAccountProperties class. */
+ public BillingAccountProperties() {
+ }
+
/**
* Get the displayName property: The billing account name.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPeriodInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPeriodInner.java
index fc81c5f3a2a8..b1b0fc91723a 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPeriodInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPeriodInner.java
@@ -4,25 +4,25 @@
package com.azure.resourcemanager.billing.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDate;
import java.util.List;
/** A billing period resource. */
-@Fluent
+@Immutable
public final class BillingPeriodInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPeriodInner.class);
-
/*
* A billing period.
*/
@JsonProperty(value = "properties")
private BillingPeriodProperties innerProperties;
+ /** Creates an instance of BillingPeriodInner class. */
+ public BillingPeriodInner() {
+ }
+
/**
* Get the innerProperties property: A billing period.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPeriodProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPeriodProperties.java
index 527f21fc77ef..01f2338ac0aa 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPeriodProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPeriodProperties.java
@@ -5,8 +5,6 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDate;
import java.util.List;
@@ -14,8 +12,6 @@
/** The properties of the billing period. */
@Immutable
public final class BillingPeriodProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPeriodProperties.class);
-
/*
* The start of the date range covered by the billing period.
*/
@@ -34,6 +30,10 @@ public final class BillingPeriodProperties {
@JsonProperty(value = "invoiceIds", access = JsonProperty.Access.WRITE_ONLY)
private List invoiceIds;
+ /** Creates an instance of BillingPeriodProperties class. */
+ public BillingPeriodProperties() {
+ }
+
/**
* Get the billingPeriodStartDate property: The start of the date range covered by the billing period.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPermissionsPropertiesInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPermissionsPropertiesInner.java
index b44d405928f9..ab1defbdb6f1 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPermissionsPropertiesInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPermissionsPropertiesInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The set of allowed action and not allowed actions a caller has on a billing account. */
@Immutable
public final class BillingPermissionsPropertiesInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPermissionsPropertiesInner.class);
-
/*
* The set of actions that the caller is allowed to perform.
*/
@@ -27,6 +23,10 @@ public final class BillingPermissionsPropertiesInner {
@JsonProperty(value = "notActions", access = JsonProperty.Access.WRITE_ONLY)
private List notActions;
+ /** Creates an instance of BillingPermissionsPropertiesInner class. */
+ public BillingPermissionsPropertiesInner() {
+ }
+
/**
* Get the actions property: The set of actions that the caller is allowed to perform.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingProfileInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingProfileInner.java
index a54bd6c8e17f..fb7c22f890d4 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingProfileInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingProfileInner.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.AddressDetails;
import com.azure.resourcemanager.billing.models.AzurePlan;
import com.azure.resourcemanager.billing.models.BillingProfileStatus;
@@ -16,7 +15,6 @@
import com.azure.resourcemanager.billing.models.SpendingLimit;
import com.azure.resourcemanager.billing.models.StatusReasonCode;
import com.azure.resourcemanager.billing.models.TargetCloud;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -24,14 +22,16 @@
/** A billing profile. */
@Fluent
public final class BillingProfileInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingProfileInner.class);
-
/*
* The properties of the billing profile.
*/
@JsonProperty(value = "properties")
private BillingProfileProperties innerProperties;
+ /** Creates an instance of BillingProfileInner class. */
+ public BillingProfileInner() {
+ }
+
/**
* Get the innerProperties property: The properties of the billing profile.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingProfileProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingProfileProperties.java
index f250f2508e07..469a85db194b 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingProfileProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingProfileProperties.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.AddressDetails;
import com.azure.resourcemanager.billing.models.AzurePlan;
import com.azure.resourcemanager.billing.models.BillingProfileStatus;
@@ -15,7 +14,6 @@
import com.azure.resourcemanager.billing.models.SpendingLimit;
import com.azure.resourcemanager.billing.models.StatusReasonCode;
import com.azure.resourcemanager.billing.models.TargetCloud;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -24,8 +22,6 @@
/** The properties of the billing profile. */
@Fluent
public final class BillingProfileProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingProfileProperties.class);
-
/*
* The name of the billing profile.
*/
@@ -33,8 +29,7 @@ public final class BillingProfileProperties {
private String displayName;
/*
- * The purchase order name that will appear on the invoices generated for
- * the billing profile.
+ * The purchase order name that will appear on the invoices generated for the billing profile.
*/
@JsonProperty(value = "poNumber")
private String poNumber;
@@ -52,22 +47,19 @@ public final class BillingProfileProperties {
private AddressDetails billTo;
/*
- * Identifies the billing profile that is linked to another billing profile
- * in indirect purchase motion.
+ * Identifies the billing profile that is linked to another billing profile in indirect purchase motion.
*/
@JsonProperty(value = "indirectRelationshipInfo", access = JsonProperty.Access.WRITE_ONLY)
private IndirectRelationshipInfo indirectRelationshipInfo;
/*
- * Flag controlling whether the invoices for the billing profile are sent
- * through email.
+ * Flag controlling whether the invoices for the billing profile are sent through email.
*/
@JsonProperty(value = "invoiceEmailOptIn")
private Boolean invoiceEmailOptIn;
/*
- * The day of the month when the invoice for the billing profile is
- * generated.
+ * The day of the month when the invoice for the billing profile is generated.
*/
@JsonProperty(value = "invoiceDay", access = JsonProperty.Access.WRITE_ONLY)
private Integer invoiceDay;
@@ -85,8 +77,8 @@ public final class BillingProfileProperties {
private List enabledAzurePlans;
/*
- * The invoice sections associated to the billing profile. By default this
- * is not populated, unless it's specified in $expand.
+ * The invoice sections associated to the billing profile. By default this is not populated, unless it's specified
+ * in $expand.
*/
@JsonProperty(value = "invoiceSections")
private InvoiceSectionsOnExpand invoiceSections;
@@ -122,9 +114,8 @@ public final class BillingProfileProperties {
private SpendingLimit spendingLimit;
/*
- * Identifies the cloud environments that are associated with a billing
- * profile. This is a system managed optional field and gets updated as the
- * billing profile gets associated with accounts in various clouds.
+ * Identifies the cloud environments that are associated with a billing profile. This is a system managed optional
+ * field and gets updated as the billing profile gets associated with accounts in various clouds.
*/
@JsonProperty(value = "targetClouds", access = JsonProperty.Access.WRITE_ONLY)
private List targetClouds;
@@ -136,6 +127,10 @@ public final class BillingProfileProperties {
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
+ /** Creates an instance of BillingProfileProperties class. */
+ public BillingProfileProperties() {
+ }
+
/**
* Get the displayName property: The name of the billing profile.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPropertyInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPropertyInner.java
index 4f59a4ef0e36..13b625a522e7 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPropertyInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPropertyInner.java
@@ -6,24 +6,24 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.BillingProfileSpendingLimit;
import com.azure.resourcemanager.billing.models.BillingProfileStatus;
import com.azure.resourcemanager.billing.models.BillingProfileStatusReasonCode;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A billing property. */
@Fluent
public final class BillingPropertyInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPropertyInner.class);
-
/*
* A billing property.
*/
@JsonProperty(value = "properties")
private BillingPropertyProperties innerProperties;
+ /** Creates an instance of BillingPropertyInner class. */
+ public BillingPropertyInner() {
+ }
+
/**
* Get the innerProperties property: A billing property.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPropertyProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPropertyProperties.java
index 28aaf5e0b5ca..25c4e7f9ec6c 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPropertyProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingPropertyProperties.java
@@ -5,21 +5,16 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.BillingProfileSpendingLimit;
import com.azure.resourcemanager.billing.models.BillingProfileStatus;
import com.azure.resourcemanager.billing.models.BillingProfileStatusReasonCode;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The billing property. */
@Fluent
public final class BillingPropertyProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPropertyProperties.class);
-
/*
- * The email address on which the account admin gets all Azure
- * notifications.
+ * The email address on which the account admin gets all Azure notifications.
*/
@JsonProperty(value = "accountAdminNotificationEmailAddress", access = JsonProperty.Access.WRITE_ONLY)
private String accountAdminNotificationEmailAddress;
@@ -120,6 +115,10 @@ public final class BillingPropertyProperties {
@JsonProperty(value = "skuDescription", access = JsonProperty.Access.WRITE_ONLY)
private String skuDescription;
+ /** Creates an instance of BillingPropertyProperties class. */
+ public BillingPropertyProperties() {
+ }
+
/**
* Get the accountAdminNotificationEmailAddress property: The email address on which the account admin gets all
* Azure notifications.
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleAssignmentInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleAssignmentInner.java
index e9a38b3242bb..204fdab2a713 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleAssignmentInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleAssignmentInner.java
@@ -6,21 +6,21 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The role assignment. */
@Fluent
public final class BillingRoleAssignmentInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingRoleAssignmentInner.class);
-
/*
* The properties of the role assignment.
*/
@JsonProperty(value = "properties")
private BillingRoleAssignmentProperties innerProperties;
+ /** Creates an instance of BillingRoleAssignmentInner class. */
+ public BillingRoleAssignmentInner() {
+ }
+
/**
* Get the innerProperties property: The properties of the role assignment.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleAssignmentProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleAssignmentProperties.java
index a7271bc64cb7..61a73807dfe0 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleAssignmentProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleAssignmentProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties of the role assignment. */
@Fluent
public final class BillingRoleAssignmentProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingRoleAssignmentProperties.class);
-
/*
* The date the role assignment was created.
*/
@@ -74,6 +70,10 @@ public final class BillingRoleAssignmentProperties {
@JsonProperty(value = "userEmailAddress")
private String userEmailAddress;
+ /** Creates an instance of BillingRoleAssignmentProperties class. */
+ public BillingRoleAssignmentProperties() {
+ }
+
/**
* Get the createdOn property: The date the role assignment was created.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleDefinitionInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleDefinitionInner.java
index cee0987629b9..eff6d305c481 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleDefinitionInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleDefinitionInner.java
@@ -6,22 +6,22 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The properties of a role definition. */
@Fluent
public final class BillingRoleDefinitionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingRoleDefinitionInner.class);
-
/*
* The properties of the a role definition.
*/
@JsonProperty(value = "properties")
private BillingRoleDefinitionProperties innerProperties;
+ /** Creates an instance of BillingRoleDefinitionInner class. */
+ public BillingRoleDefinitionInner() {
+ }
+
/**
* Get the innerProperties property: The properties of the a role definition.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleDefinitionProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleDefinitionProperties.java
index 4779fb34d81a..682de12736c2 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleDefinitionProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingRoleDefinitionProperties.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The properties of the a role definition. */
@Fluent
public final class BillingRoleDefinitionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingRoleDefinitionProperties.class);
-
/*
* The role description
*/
@@ -33,6 +29,10 @@ public final class BillingRoleDefinitionProperties {
@JsonProperty(value = "roleName", access = JsonProperty.Access.WRITE_ONLY)
private String roleName;
+ /** Creates an instance of BillingRoleDefinitionProperties class. */
+ public BillingRoleDefinitionProperties() {
+ }
+
/**
* Get the description property: The role description.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingSubscriptionInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingSubscriptionInner.java
index df2b910364f4..4fe6d32aa0f6 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingSubscriptionInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingSubscriptionInner.java
@@ -6,11 +6,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.Amount;
import com.azure.resourcemanager.billing.models.BillingSubscriptionStatusType;
import com.azure.resourcemanager.billing.models.Reseller;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.UUID;
@@ -18,14 +16,16 @@
/** A billing subscription. */
@Fluent
public final class BillingSubscriptionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingSubscriptionInner.class);
-
/*
* The billing properties of a subscription.
*/
@JsonProperty(value = "properties")
private BillingSubscriptionProperties innerProperties;
+ /** Creates an instance of BillingSubscriptionInner class. */
+ public BillingSubscriptionInner() {
+ }
+
/**
* Get the innerProperties property: The billing properties of a subscription.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingSubscriptionProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingSubscriptionProperties.java
index b32b5b069e38..790abdfb933a 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingSubscriptionProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/BillingSubscriptionProperties.java
@@ -5,11 +5,9 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.Amount;
import com.azure.resourcemanager.billing.models.BillingSubscriptionStatusType;
import com.azure.resourcemanager.billing.models.Reseller;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.UUID;
@@ -17,8 +15,6 @@
/** The billing properties of a subscription. */
@Fluent
public final class BillingSubscriptionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingSubscriptionProperties.class);
-
/*
* The name of the subscription.
*/
@@ -68,16 +64,15 @@ public final class BillingSubscriptionProperties {
private String costCenter;
/*
- * The ID of the customer for whom the subscription was created. The field
- * is applicable only for Microsoft Partner Agreement billing account.
+ * The ID of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner
+ * Agreement billing account.
*/
@JsonProperty(value = "customerId", access = JsonProperty.Access.WRITE_ONLY)
private String customerId;
/*
- * The name of the customer for whom the subscription was created. The
- * field is applicable only for Microsoft Partner Agreement billing
- * account.
+ * The name of the customer for whom the subscription was created. The field is applicable only for Microsoft
+ * Partner Agreement billing account.
*/
@JsonProperty(value = "customerDisplayName", access = JsonProperty.Access.WRITE_ONLY)
private String customerDisplayName;
@@ -113,12 +108,16 @@ public final class BillingSubscriptionProperties {
private String skuDescription;
/*
- * The suspension reason for a subscription. Applies only to subscriptions
- * in Microsoft Online Services Program billing accounts.
+ * The suspension reason for a subscription. Applies only to subscriptions in Microsoft Online Services Program
+ * billing accounts.
*/
@JsonProperty(value = "suspensionReasons", access = JsonProperty.Access.WRITE_ONLY)
private List suspensionReasons;
+ /** Creates an instance of BillingSubscriptionProperties class. */
+ public BillingSubscriptionProperties() {
+ }
+
/**
* Get the displayName property: The name of the subscription.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerInner.java
index 9723f24be86a..5e6b0215c6ff 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerInner.java
@@ -6,24 +6,24 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.AzurePlan;
import com.azure.resourcemanager.billing.models.Reseller;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** A partner's customer. */
@Fluent
public final class CustomerInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomerInner.class);
-
/*
* The customer.
*/
@JsonProperty(value = "properties")
private CustomerProperties innerProperties;
+ /** Creates an instance of CustomerInner class. */
+ public CustomerInner() {
+ }
+
/**
* Get the innerProperties property: The customer.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerPolicyInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerPolicyInner.java
index 42d39870014f..4c61d6545364 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerPolicyInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerPolicyInner.java
@@ -6,22 +6,22 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.ViewCharges;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The customer's Policy. */
@Fluent
public final class CustomerPolicyInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomerPolicyInner.class);
-
/*
* The properties of a customer's policy.
*/
@JsonProperty(value = "properties")
private CustomerPolicyProperties innerProperties;
+ /** Creates an instance of CustomerPolicyInner class. */
+ public CustomerPolicyInner() {
+ }
+
/**
* Get the innerProperties property: The properties of a customer's policy.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerPolicyProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerPolicyProperties.java
index 1cf4dc9c1feb..5ee7699185b8 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerPolicyProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerPolicyProperties.java
@@ -5,23 +5,22 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.ViewCharges;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties of a customer's policy. */
@Fluent
public final class CustomerPolicyProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomerPolicyProperties.class);
-
/*
- * The policy that controls whether the users in customer's organization
- * can view charges at pay-as-you-go prices.
+ * The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices.
*/
@JsonProperty(value = "viewCharges")
private ViewCharges viewCharges;
+ /** Creates an instance of CustomerPolicyProperties class. */
+ public CustomerPolicyProperties() {
+ }
+
/**
* Get the viewCharges property: The policy that controls whether the users in customer's organization can view
* charges at pay-as-you-go prices.
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerProperties.java
index b3104bb02aaa..e6061bfd4a74 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/CustomerProperties.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.AzurePlan;
import com.azure.resourcemanager.billing.models.Reseller;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The properties of a customer. */
@Fluent
public final class CustomerProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomerProperties.class);
-
/*
* The ID of the billing profile for the invoice section.
*/
@@ -42,12 +38,15 @@ public final class CustomerProperties {
private List enabledAzurePlans;
/*
- * The list of resellers for which an Azure plan is enabled for the
- * customer.
+ * The list of resellers for which an Azure plan is enabled for the customer.
*/
@JsonProperty(value = "resellers")
private List resellers;
+ /** Creates an instance of CustomerProperties class. */
+ public CustomerProperties() {
+ }
+
/**
* Get the billingProfileId property: The ID of the billing profile for the invoice section.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/DepartmentProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/DepartmentProperties.java
index b8faa43a8dd7..6f63be9b9ef0 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/DepartmentProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/DepartmentProperties.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.EnrollmentAccount;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The properties of a department. */
@Fluent
public final class DepartmentProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DepartmentProperties.class);
-
/*
* The name of the department.
*/
@@ -35,12 +31,15 @@ public final class DepartmentProperties {
private String status;
/*
- * Associated enrollment accounts. By default this is not populated, unless
- * it's specified in $expand.
+ * Associated enrollment accounts. By default this is not populated, unless it's specified in $expand.
*/
@JsonProperty(value = "enrollmentAccounts")
private List enrollmentAccounts;
+ /** Creates an instance of DepartmentProperties class. */
+ public DepartmentProperties() {
+ }
+
/**
* Get the departmentName property: The name of the department.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/DownloadUrlInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/DownloadUrlInner.java
index f8b4bc915aad..a849996ba0bd 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/DownloadUrlInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/DownloadUrlInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** A secure URL that can be used to download a an entity until the URL expires. */
@Immutable
public final class DownloadUrlInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DownloadUrlInner.class);
-
/*
* The time in UTC when the download URL will expire.
*/
@@ -27,6 +23,10 @@ public final class DownloadUrlInner {
@JsonProperty(value = "url", access = JsonProperty.Access.WRITE_ONLY)
private String url;
+ /** Creates an instance of DownloadUrlInner class. */
+ public DownloadUrlInner() {
+ }
+
/**
* Get the expiryTime property: The time in UTC when the download URL will expire.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountProperties.java
index 657f137f55c9..7a73dd359bfd 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountProperties.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.Department;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** The properties of an enrollment account. */
@Fluent
public final class EnrollmentAccountProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(EnrollmentAccountProperties.class);
-
/*
* The name of the enrollment account.
*/
@@ -59,12 +55,15 @@ public final class EnrollmentAccountProperties {
private OffsetDateTime endDate;
/*
- * Associated department. By default this is not populated, unless it's
- * specified in $expand.
+ * Associated department. By default this is not populated, unless it's specified in $expand.
*/
@JsonProperty(value = "department")
private Department department;
+ /** Creates an instance of EnrollmentAccountProperties class. */
+ public EnrollmentAccountProperties() {
+ }
+
/**
* Get the accountName property: The name of the enrollment account.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountSummaryInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountSummaryInner.java
index 8d9822e0512c..39de9f591389 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountSummaryInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountSummaryInner.java
@@ -4,23 +4,23 @@
package com.azure.resourcemanager.billing.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** An enrollment account resource. */
-@Fluent
+@Immutable
public final class EnrollmentAccountSummaryInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(EnrollmentAccountSummaryInner.class);
-
/*
* An enrollment account.
*/
@JsonProperty(value = "properties")
private EnrollmentAccountSummaryProperties innerProperties;
+ /** Creates an instance of EnrollmentAccountSummaryInner class. */
+ public EnrollmentAccountSummaryInner() {
+ }
+
/**
* Get the innerProperties property: An enrollment account.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountSummaryProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountSummaryProperties.java
index 7b0d9943f82f..b844a8e68cb5 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountSummaryProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/EnrollmentAccountSummaryProperties.java
@@ -5,21 +5,21 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties of the enrollment account. */
@Immutable
public final class EnrollmentAccountSummaryProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(EnrollmentAccountSummaryProperties.class);
-
/*
* The account owner's principal name.
*/
@JsonProperty(value = "principalName", access = JsonProperty.Access.WRITE_ONLY)
private String principalName;
+ /** Creates an instance of EnrollmentAccountSummaryProperties class. */
+ public EnrollmentAccountSummaryProperties() {
+ }
+
/**
* Get the principalName property: The account owner's principal name.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InstructionInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InstructionInner.java
index 84cd5142be08..86708fd37791 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InstructionInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InstructionInner.java
@@ -6,22 +6,22 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** An instruction. */
@Fluent
public final class InstructionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(InstructionInner.class);
-
/*
* A billing instruction used during invoice generation.
*/
@JsonProperty(value = "properties")
private InstructionProperties innerProperties;
+ /** Creates an instance of InstructionInner class. */
+ public InstructionInner() {
+ }
+
/**
* Get the innerProperties property: A billing instruction used during invoice generation.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InstructionProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InstructionProperties.java
index 9bd37586b391..ddb06ed321ba 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InstructionProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InstructionProperties.java
@@ -6,15 +6,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** A billing instruction used during invoice generation. */
@Fluent
public final class InstructionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(InstructionProperties.class);
-
/*
* The amount budgeted for this billing instruction.
*/
@@ -39,6 +36,10 @@ public final class InstructionProperties {
@JsonProperty(value = "creationDate")
private OffsetDateTime creationDate;
+ /** Creates an instance of InstructionProperties class. */
+ public InstructionProperties() {
+ }
+
/**
* Get the amount property: The amount budgeted for this billing instruction.
*
@@ -126,14 +127,16 @@ public InstructionProperties withCreationDate(OffsetDateTime creationDate) {
*/
public void validate() {
if (startDate() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property startDate in model InstructionProperties"));
}
if (endDate() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property endDate in model InstructionProperties"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(InstructionProperties.class);
}
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceInner.java
index b951670e7825..79f7df1f60e7 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceInner.java
@@ -4,9 +4,8 @@
package com.azure.resourcemanager.billing.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.Amount;
import com.azure.resourcemanager.billing.models.Document;
import com.azure.resourcemanager.billing.models.InvoiceDocumentType;
@@ -14,23 +13,24 @@
import com.azure.resourcemanager.billing.models.InvoiceType;
import com.azure.resourcemanager.billing.models.PaymentProperties;
import com.azure.resourcemanager.billing.models.RebillDetails;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;
/** An invoice. */
-@Fluent
+@Immutable
public final class InvoiceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceInner.class);
-
/*
* An invoice.
*/
@JsonProperty(value = "properties")
private InvoiceProperties innerProperties;
+ /** Creates an instance of InvoiceInner class. */
+ public InvoiceInner() {
+ }
+
/**
* Get the innerProperties property: An invoice.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceProperties.java
index 3aea454342db..b7eb5925fd43 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceProperties.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.Amount;
import com.azure.resourcemanager.billing.models.Document;
import com.azure.resourcemanager.billing.models.InvoiceDocumentType;
@@ -13,7 +12,6 @@
import com.azure.resourcemanager.billing.models.InvoiceType;
import com.azure.resourcemanager.billing.models.PaymentProperties;
import com.azure.resourcemanager.billing.models.RebillDetails;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
@@ -23,8 +21,6 @@
/** The properties of the invoice. */
@Immutable
public final class InvoiceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceProperties.class);
-
/*
* The due date for the invoice.
*/
@@ -50,9 +46,8 @@ public final class InvoiceProperties {
private Amount amountDue;
/*
- * The amount of Azure prepayment applied to the charges. This field is
- * applicable to billing accounts with agreement type Microsoft Customer
- * Agreement.
+ * The amount of Azure prepayment applied to the charges. This field is applicable to billing accounts with
+ * agreement type Microsoft Customer Agreement.
*/
@JsonProperty(value = "azurePrepaymentApplied", access = JsonProperty.Access.WRITE_ONLY)
private Amount azurePrepaymentApplied;
@@ -64,39 +59,36 @@ public final class InvoiceProperties {
private Amount billedAmount;
/*
- * The total refund for returns and cancellations during the invoice
- * billing period. This field is applicable to billing accounts with
- * agreement type Microsoft Customer Agreement.
+ * The total refund for returns and cancellations during the invoice billing period. This field is applicable to
+ * billing accounts with agreement type Microsoft Customer Agreement.
*/
@JsonProperty(value = "creditAmount", access = JsonProperty.Access.WRITE_ONLY)
private Amount creditAmount;
/*
- * The amount of free Azure credits applied to the charges. This field is
- * applicable to billing accounts with agreement type Microsoft Customer
- * Agreement.
+ * The amount of free Azure credits applied to the charges. This field is applicable to billing accounts with
+ * agreement type Microsoft Customer Agreement.
*/
@JsonProperty(value = "freeAzureCreditApplied", access = JsonProperty.Access.WRITE_ONLY)
private Amount freeAzureCreditApplied;
/*
- * The pre-tax amount due. This field is applicable to billing accounts
- * with agreement type Microsoft Customer Agreement.
+ * The pre-tax amount due. This field is applicable to billing accounts with agreement type Microsoft Customer
+ * Agreement.
*/
@JsonProperty(value = "subTotal", access = JsonProperty.Access.WRITE_ONLY)
private Amount subTotal;
/*
- * The amount of tax charged for the billing period. This field is
- * applicable to billing accounts with agreement type Microsoft Customer
- * Agreement.
+ * The amount of tax charged for the billing period. This field is applicable to billing accounts with agreement
+ * type Microsoft Customer Agreement.
*/
@JsonProperty(value = "taxAmount", access = JsonProperty.Access.WRITE_ONLY)
private Amount taxAmount;
/*
- * The amount due when the invoice was generated. This field is applicable
- * to billing accounts with agreement type Microsoft Customer Agreement.
+ * The amount due when the invoice was generated. This field is applicable to billing accounts with agreement type
+ * Microsoft Customer Agreement.
*/
@JsonProperty(value = "totalAmount", access = JsonProperty.Access.WRITE_ONLY)
private Amount totalAmount;
@@ -120,9 +112,8 @@ public final class InvoiceProperties {
private InvoiceType invoiceType;
/*
- * Specifies if the invoice is generated as part of monthly invoicing cycle
- * or not. This field is applicable to billing accounts with agreement type
- * Microsoft Customer Agreement.
+ * Specifies if the invoice is generated as part of monthly invoicing cycle or not. This field is applicable to
+ * billing accounts with agreement type Microsoft Customer Agreement.
*/
@JsonProperty(value = "isMonthlyInvoice", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isMonthlyInvoice;
@@ -171,15 +162,15 @@ public final class InvoiceProperties {
private InvoiceDocumentType documentType;
/*
- * The Id of the active invoice which is originally billed after this
- * invoice was voided. This field is applicable to the void invoices only.
+ * The Id of the active invoice which is originally billed after this invoice was voided. This field is applicable
+ * to the void invoices only.
*/
@JsonProperty(value = "billedDocumentId", access = JsonProperty.Access.WRITE_ONLY)
private String billedDocumentId;
/*
- * The Id of the invoice which got voided and this credit note was issued
- * as a result. This field is applicable to the credit notes only.
+ * The Id of the invoice which got voided and this credit note was issued as a result. This field is applicable to
+ * the credit notes only.
*/
@JsonProperty(value = "creditForDocumentId", access = JsonProperty.Access.WRITE_ONLY)
private String creditForDocumentId;
@@ -190,6 +181,10 @@ public final class InvoiceProperties {
@JsonProperty(value = "subscriptionId", access = JsonProperty.Access.WRITE_ONLY)
private String subscriptionId;
+ /** Creates an instance of InvoiceProperties class. */
+ public InvoiceProperties() {
+ }
+
/**
* Get the dueDate property: The due date for the invoice.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionInner.java
index b769f4fc3d2e..d17c5bcdafb0 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionInner.java
@@ -6,24 +6,24 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.InvoiceSectionState;
import com.azure.resourcemanager.billing.models.TargetCloud;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** An invoice section. */
@Fluent
public final class InvoiceSectionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceSectionInner.class);
-
/*
* The properties of an invoice section.
*/
@JsonProperty(value = "properties")
private InvoiceSectionProperties innerProperties;
+ /** Creates an instance of InvoiceSectionInner class. */
+ public InvoiceSectionInner() {
+ }
+
/**
* Get the innerProperties property: The properties of an invoice section.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionProperties.java
index b8e12e1be0d8..0165d3755e56 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionProperties.java
@@ -5,10 +5,8 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.InvoiceSectionState;
import com.azure.resourcemanager.billing.models.TargetCloud;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -16,8 +14,6 @@
/** The properties of an invoice section. */
@Fluent
public final class InvoiceSectionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceSectionProperties.class);
-
/*
* The name of the invoice section.
*/
@@ -44,22 +40,24 @@ public final class InvoiceSectionProperties {
private String systemId;
/*
- * Dictionary of metadata associated with the invoice section. Maximum
- * key/value length supported of 256 characters. Keys/value should not
- * empty value nor null. Keys can not contain < > % & \ ? /
+ * Dictionary of metadata associated with the invoice section. Maximum key/value length supported of 256
+ * characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
*/
@JsonProperty(value = "tags")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/*
- * Identifies the cloud environments that are associated with an invoice
- * section. This is a system managed optional field and gets updated as the
- * invoice section gets associated with accounts in various clouds.
+ * Identifies the cloud environments that are associated with an invoice section. This is a system managed optional
+ * field and gets updated as the invoice section gets associated with accounts in various clouds.
*/
@JsonProperty(value = "targetCloud", access = JsonProperty.Access.WRITE_ONLY)
private TargetCloud targetCloud;
+ /** Creates an instance of InvoiceSectionProperties class. */
+ public InvoiceSectionProperties() {
+ }
+
/**
* Get the displayName property: The name of the invoice section.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionWithCreateSubPermissionInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionWithCreateSubPermissionInner.java
index b704b84fb1e8..21475859d3b4 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionWithCreateSubPermissionInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/InvoiceSectionWithCreateSubPermissionInner.java
@@ -5,20 +5,16 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.AzurePlan;
import com.azure.resourcemanager.billing.models.BillingProfileStatus;
import com.azure.resourcemanager.billing.models.SpendingLimitForBillingProfile;
import com.azure.resourcemanager.billing.models.StatusReasonCodeForBillingProfile;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Invoice section properties with create subscription permission. */
@Fluent
public final class InvoiceSectionWithCreateSubPermissionInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceSectionWithCreateSubPermissionInner.class);
-
/*
* The ID of the invoice section.
*/
@@ -79,6 +75,10 @@ public final class InvoiceSectionWithCreateSubPermissionInner {
@JsonProperty(value = "enabledAzurePlans")
private List enabledAzurePlans;
+ /** Creates an instance of InvoiceSectionWithCreateSubPermissionInner class. */
+ public InvoiceSectionWithCreateSubPermissionInner() {
+ }
+
/**
* Get the invoiceSectionId property: The ID of the invoice section.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/OperationInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/OperationInner.java
index 707ca148c7ee..a52420b8f68c 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/OperationInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/OperationInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A Billing REST API operation. */
@Fluent
public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
/*
* Operation name: {provider}/{resource}/{operation}.
*/
@@ -33,6 +29,10 @@ public final class OperationInner {
@JsonProperty(value = "display")
private OperationDisplay display;
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
/**
* Get the name property: Operation name: {provider}/{resource}/{operation}.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/PolicyInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/PolicyInner.java
index cd9cd98539e1..92dfa6a9338b 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/PolicyInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/PolicyInner.java
@@ -6,24 +6,24 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.MarketplacePurchasesPolicy;
import com.azure.resourcemanager.billing.models.ReservationPurchasesPolicy;
import com.azure.resourcemanager.billing.models.ViewChargesPolicy;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A policy. */
@Fluent
public final class PolicyInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PolicyInner.class);
-
/*
* The properties of a policy.
*/
@JsonProperty(value = "properties")
private PolicyProperties innerProperties;
+ /** Creates an instance of PolicyInner class. */
+ public PolicyInner() {
+ }
+
/**
* Get the innerProperties property: The properties of a policy.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/PolicyProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/PolicyProperties.java
index 296c53526cf7..19bd95d98255 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/PolicyProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/PolicyProperties.java
@@ -5,39 +5,36 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.MarketplacePurchasesPolicy;
import com.azure.resourcemanager.billing.models.ReservationPurchasesPolicy;
import com.azure.resourcemanager.billing.models.ViewChargesPolicy;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties of a policy. */
@Fluent
public final class PolicyProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PolicyProperties.class);
-
/*
- * The policy that controls whether Azure marketplace purchases are allowed
- * for a billing profile.
+ * The policy that controls whether Azure marketplace purchases are allowed for a billing profile.
*/
@JsonProperty(value = "marketplacePurchases")
private MarketplacePurchasesPolicy marketplacePurchases;
/*
- * The policy that controls whether Azure reservation purchases are allowed
- * for a billing profile.
+ * The policy that controls whether Azure reservation purchases are allowed for a billing profile.
*/
@JsonProperty(value = "reservationPurchases")
private ReservationPurchasesPolicy reservationPurchases;
/*
- * The policy that controls whether users with Azure RBAC access to a
- * subscription can view its charges.
+ * The policy that controls whether users with Azure RBAC access to a subscription can view its charges.
*/
@JsonProperty(value = "viewCharges")
private ViewChargesPolicy viewCharges;
+ /** Creates an instance of PolicyProperties class. */
+ public PolicyProperties() {
+ }
+
/**
* Get the marketplacePurchases property: The policy that controls whether Azure marketplace purchases are allowed
* for a billing profile.
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ProductInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ProductInner.java
index 90b4a875f27d..7e876cc538ab 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ProductInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ProductInner.java
@@ -6,27 +6,27 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.Amount;
import com.azure.resourcemanager.billing.models.AutoRenew;
import com.azure.resourcemanager.billing.models.BillingFrequency;
import com.azure.resourcemanager.billing.models.ProductStatusType;
import com.azure.resourcemanager.billing.models.Reseller;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** A product. */
@Fluent
public final class ProductInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ProductInner.class);
-
/*
* The properties of a product.
*/
@JsonProperty(value = "properties")
private ProductProperties innerProperties;
+ /** Creates an instance of ProductInner class. */
+ public ProductInner() {
+ }
+
/**
* Get the innerProperties property: The properties of a product.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ProductProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ProductProperties.java
index a36d2f3d632f..971f2f5a1d75 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ProductProperties.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ProductProperties.java
@@ -5,21 +5,17 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.Amount;
import com.azure.resourcemanager.billing.models.AutoRenew;
import com.azure.resourcemanager.billing.models.BillingFrequency;
import com.azure.resourcemanager.billing.models.ProductStatusType;
import com.azure.resourcemanager.billing.models.Reseller;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** The properties of a product. */
@Fluent
public final class ProductProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ProductProperties.class);
-
/*
* Indicates whether auto renewal is turned on or off for a product.
*/
@@ -135,15 +131,15 @@ public final class ProductProperties {
private String billingProfileDisplayName;
/*
- * The ID of the customer for whom the product was purchased. The field is
- * applicable only for Microsoft Partner Agreement billing account.
+ * The ID of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner
+ * Agreement billing account.
*/
@JsonProperty(value = "customerId", access = JsonProperty.Access.WRITE_ONLY)
private String customerId;
/*
- * The name of the customer for whom the product was purchased. The field
- * is applicable only for Microsoft Partner Agreement billing account.
+ * The name of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner
+ * Agreement billing account.
*/
@JsonProperty(value = "customerDisplayName", access = JsonProperty.Access.WRITE_ONLY)
private String customerDisplayName;
@@ -154,6 +150,10 @@ public final class ProductProperties {
@JsonProperty(value = "reseller", access = JsonProperty.Access.WRITE_ONLY)
private Reseller reseller;
+ /** Creates an instance of ProductProperties class. */
+ public ProductProperties() {
+ }
+
/**
* Get the autoRenew property: Indicates whether auto renewal is turned on or off for a product.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ReservationInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ReservationInner.java
index 745deab65982..dfa2007edd4a 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ReservationInner.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ReservationInner.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.ReservationPropertyUtilization;
import com.azure.resourcemanager.billing.models.ReservationSkuProperty;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The definition of the reservation. */
@Fluent
public final class ReservationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ReservationInner.class);
-
/*
* The id of the reservation.
*/
@@ -53,6 +49,10 @@ public final class ReservationInner {
@JsonProperty(value = "properties")
private ReservationProperty innerProperties;
+ /** Creates an instance of ReservationInner class. */
+ public ReservationInner() {
+ }
+
/**
* Get the id property: The id of the reservation.
*
diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ReservationProperty.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ReservationProperty.java
index aba361ba61f7..7c10570639ea 100644
--- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ReservationProperty.java
+++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ReservationProperty.java
@@ -5,20 +5,15 @@
package com.azure.resourcemanager.billing.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.billing.models.ReservationPropertyUtilization;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The property of reservation object. */
@Fluent
public final class ReservationProperty {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ReservationProperty.class);
-
/*
- * The array of applied scopes of a reservation. Will be null if the
- * reservation is in Shared scope
+ * The array of applied scopes of a reservation. Will be null if the reservation is in Shared scope
*/
@JsonProperty(value = "appliedScopes")
private List