From a9b969d1c83e52598017cb41810946234b2f3651 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 14 Mar 2022 10:49:07 +0000 Subject: [PATCH] CodeGen from PR 18202 in Azure/azure-rest-api-specs Merge 8c15a5acd231e0cf846e58a99673cf46e95c4cf1 into 96da969aa75e2beb27c3dbc2d69a76900856cc52 --- .../CHANGELOG.md | 4 +- .../azure-resourcemanager-billing/README.md | 2 +- .../billing/BillingManager.java | 47 +++-- .../billing/fluent/AddressClient.java | 2 +- .../billing/fluent/AgreementsClient.java | 6 +- .../fluent/AvailableBalancesClient.java | 2 +- .../billing/fluent/BillingAccountsClient.java | 16 +- .../fluent/BillingManagementClient.java | 14 +- .../billing/fluent/BillingPeriodsClient.java | 6 +- .../fluent/BillingPermissionsClient.java | 24 ++- .../billing/fluent/BillingProfilesClient.java | 10 +- .../fluent/BillingPropertiesClient.java | 4 +- .../fluent/BillingRoleAssignmentsClient.java | 24 +-- .../fluent/BillingRoleDefinitionsClient.java | 18 +- .../fluent/BillingSubscriptionsClient.java | 26 +-- .../billing/fluent/CustomersClient.java | 10 +- .../fluent/EnrollmentAccountsClient.java | 6 +- .../billing/fluent/InstructionsClient.java | 10 +- .../billing/fluent/InvoiceSectionsClient.java | 10 +- .../billing/fluent/InvoicesClient.java | 38 ++-- .../billing/fluent/OperationsClient.java | 6 +- .../billing/fluent/PoliciesClient.java | 8 +- .../billing/fluent/ProductsClient.java | 22 +-- .../billing/fluent/ReservationsClient.java | 12 +- .../billing/fluent/TransactionsClient.java | 4 +- .../billing/fluent/models/AgreementInner.java | 15 +- .../fluent/models/AgreementProperties.java | 25 ++- .../fluent/models/AvailableBalanceInner.java | 4 - .../models/AvailableBalanceProperties.java | 4 - .../fluent/models/BillingAccountInner.java | 4 - .../models/BillingAccountProperties.java | 4 - .../fluent/models/BillingPeriodInner.java | 4 - .../models/BillingPeriodProperties.java | 4 - .../BillingPermissionsPropertiesInner.java | 4 - .../fluent/models/BillingProfileInner.java | 4 - .../models/BillingProfileProperties.java | 4 - .../fluent/models/BillingPropertyInner.java | 4 - .../models/BillingPropertyProperties.java | 4 - .../models/BillingRoleAssignmentInner.java | 4 - .../BillingRoleAssignmentProperties.java | 4 - .../models/BillingRoleDefinitionInner.java | 4 - .../BillingRoleDefinitionProperties.java | 4 - .../models/BillingSubscriptionInner.java | 4 - .../models/BillingSubscriptionProperties.java | 4 - .../billing/fluent/models/CustomerInner.java | 4 - .../fluent/models/CustomerPolicyInner.java | 4 - .../models/CustomerPolicyProperties.java | 4 - .../fluent/models/CustomerProperties.java | 4 - .../fluent/models/DepartmentProperties.java | 4 - .../fluent/models/DownloadUrlInner.java | 4 - .../models/EnrollmentAccountProperties.java | 4 - .../models/EnrollmentAccountSummaryInner.java | 4 - .../EnrollmentAccountSummaryProperties.java | 4 - .../fluent/models/InstructionInner.java | 4 - .../fluent/models/InstructionProperties.java | 9 +- .../billing/fluent/models/InvoiceInner.java | 4 - .../fluent/models/InvoiceProperties.java | 4 - .../fluent/models/InvoiceSectionInner.java | 4 - .../models/InvoiceSectionProperties.java | 4 - ...ceSectionWithCreateSubPermissionInner.java | 4 - .../billing/fluent/models/OperationInner.java | 4 - .../billing/fluent/models/PolicyInner.java | 4 - .../fluent/models/PolicyProperties.java | 4 - .../billing/fluent/models/ProductInner.java | 4 - .../fluent/models/ProductProperties.java | 4 - .../fluent/models/ReservationInner.java | 4 - .../fluent/models/ReservationProperty.java | 4 - .../fluent/models/TransactionInner.java | 4 - .../fluent/models/TransactionProperties.java | 4 - .../models/ValidateAddressResponseInner.java | 4 - ...ProductTransferEligibilityResultInner.java | 5 - ...riptionTransferEligibilityResultInner.java | 5 - .../implementation/AddressClientImpl.java | 11 +- .../billing/implementation/AddressImpl.java | 3 +- .../billing/implementation/AgreementImpl.java | 5 + .../implementation/AgreementsClientImpl.java | 31 ++- .../implementation/AgreementsImpl.java | 3 +- .../AvailableBalancesClientImpl.java | 11 +- .../implementation/AvailableBalancesImpl.java | 3 +- .../BillingAccountsClientImpl.java | 73 +++---- .../implementation/BillingAccountsImpl.java | 3 +- .../BillingManagementClientImpl.java | 32 +-- .../BillingPeriodsClientImpl.java | 33 ++-- .../implementation/BillingPeriodsImpl.java | 3 +- .../BillingPermissionsClientImpl.java | 99 ++++++---- .../BillingPermissionsImpl.java | 3 +- .../BillingProfilesClientImpl.java | 49 +++-- .../implementation/BillingProfilesImpl.java | 3 +- .../BillingPropertiesClientImpl.java | 21 +- .../implementation/BillingPropertiesImpl.java | 3 +- .../BillingRoleAssignmentsClientImpl.java | 105 +++++----- .../BillingRoleAssignmentsImpl.java | 3 +- .../BillingRoleDefinitionsClientImpl.java | 81 ++++---- .../BillingRoleDefinitionsImpl.java | 3 +- .../BillingSubscriptionsClientImpl.java | 127 ++++++------ .../BillingSubscriptionsImpl.java | 3 +- .../implementation/CustomersClientImpl.java | 49 +++-- .../billing/implementation/CustomersImpl.java | 3 +- .../EnrollmentAccountsClientImpl.java | 31 +-- .../EnrollmentAccountsImpl.java | 3 +- .../InstructionsClientImpl.java | 43 ++-- .../implementation/InstructionsImpl.java | 3 +- .../InvoiceSectionsClientImpl.java | 45 ++--- .../implementation/InvoiceSectionsImpl.java | 3 +- .../implementation/InvoicesClientImpl.java | 183 +++++++++++------- .../billing/implementation/InvoicesImpl.java | 3 +- .../implementation/OperationsClientImpl.java | 27 +-- .../implementation/OperationsImpl.java | 3 +- .../implementation/PoliciesClientImpl.java | 35 ++-- .../billing/implementation/PoliciesImpl.java | 3 +- .../implementation/ProductsClientImpl.java | 105 +++++----- .../billing/implementation/ProductsImpl.java | 3 +- .../ReservationsClientImpl.java | 57 ++++-- .../implementation/ReservationsImpl.java | 3 +- .../TransactionsClientImpl.java | 19 +- .../implementation/TransactionsImpl.java | 3 +- .../billing/models/Address.java | 2 +- .../billing/models/AddressDetails.java | 9 +- .../billing/models/Agreement.java | 8 + .../billing/models/AgreementListResult.java | 4 - .../billing/models/Agreements.java | 6 +- .../billing/models/Amount.java | 4 - .../billing/models/AvailableBalances.java | 2 +- .../billing/models/AzurePlan.java | 4 - .../models/BillingAccountListResult.java | 4 - .../models/BillingAccountUpdateRequest.java | 4 - .../billing/models/BillingAccounts.java | 12 +- .../billing/models/BillingPeriods.java | 6 +- .../models/BillingPeriodsListResult.java | 4 - .../billing/models/BillingPermissions.java | 24 ++- .../models/BillingPermissionsListResult.java | 4 - .../billing/models/BillingProfileInfo.java | 101 ++++++++++ .../models/BillingProfileListResult.java | 19 +- .../billing/models/BillingProfiles.java | 6 +- .../BillingProfilesCreateOrUpdateHeaders.java | 4 - .../models/BillingProfilesOnExpand.java | 4 - .../billing/models/BillingProperties.java | 4 +- .../BillingRoleAssignmentListResult.java | 4 - .../models/BillingRoleAssignments.java | 24 +-- .../BillingRoleDefinitionListResult.java | 4 - .../models/BillingRoleDefinitions.java | 18 +- .../billing/models/BillingSubscriptions.java | 22 +-- .../BillingSubscriptionsListResult.java | 4 - .../BillingSubscriptionsMoveHeaders.java | 4 - .../billing/models/CustomerListResult.java | 4 - .../billing/models/Customers.java | 10 +- .../billing/models/Department.java | 4 - .../billing/models/Document.java | 4 - .../billing/models/Enrollment.java | 4 - .../billing/models/EnrollmentAccount.java | 4 - .../models/EnrollmentAccountListResult.java | 4 - .../billing/models/EnrollmentAccounts.java | 6 +- .../billing/models/EnrollmentPolicies.java | 4 - .../models/IndirectRelationshipInfo.java | 4 - .../billing/models/InstructionListResult.java | 4 - .../billing/models/Instructions.java | 10 +- .../billing/models/InvoiceListResult.java | 19 +- .../models/InvoiceSectionListResult.java | 4 - ...tionListWithCreateSubPermissionResult.java | 5 - .../billing/models/InvoiceSections.java | 6 +- .../InvoiceSectionsCreateOrUpdateHeaders.java | 4 - .../models/InvoiceSectionsOnExpand.java | 4 - .../billing/models/Invoices.java | 18 +- ...loadBillingSubscriptionInvoiceHeaders.java | 5 - .../InvoicesDownloadInvoiceHeaders.java | 4 - ...MultipleBillingProfileInvoicesHeaders.java | 5 - ...pleBillingSubscriptionInvoicesHeaders.java | 6 - .../billing/models/OperationDisplay.java | 4 - .../billing/models/OperationListResult.java | 4 - .../billing/models/Operations.java | 6 +- .../billing/models/Participants.java | 4 - .../billing/models/PaymentProperties.java | 4 - .../billing/models/Policies.java | 8 +- .../billing/models/Products.java | 22 +-- .../billing/models/ProductsListResult.java | 4 - .../billing/models/ProductsMoveHeaders.java | 4 - .../billing/models/RebillDetails.java | 4 - .../billing/models/Reseller.java | 4 - .../ReservationPropertyUtilization.java | 4 - .../models/ReservationSkuProperty.java | 4 - .../billing/models/ReservationSummary.java | 4 - .../ReservationUtilizationAggregates.java | 4 - .../billing/models/Reservations.java | 12 +- .../models/ReservationsListResult.java | 4 - .../billing/models/TransactionListResult.java | 4 - .../billing/models/Transactions.java | 4 +- ...rBillingSubscriptionRequestProperties.java | 8 +- .../TransferProductRequestProperties.java | 4 - ...lidateProductTransferEligibilityError.java | 4 - ...eSubscriptionTransferEligibilityError.java | 5 - 190 files changed, 1195 insertions(+), 1284 deletions(-) create mode 100644 sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfileInfo.java diff --git a/sdk/billing/azure-resourcemanager-billing/CHANGELOG.md b/sdk/billing/azure-resourcemanager-billing/CHANGELOG.md index 817c796a5aca..806ffa7aa83b 100644 --- a/sdk/billing/azure-resourcemanager-billing/CHANGELOG.md +++ b/sdk/billing/azure-resourcemanager-billing/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2022-03-14) + +- Azure Resource Manager Billing client library for Java. This package contains Microsoft Azure SDK for Billing Management SDK. Billing client provides access to billing resources for Azure subscriptions. Package tag package-2020-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/billing/azure-resourcemanager-billing/README.md b/sdk/billing/azure-resourcemanager-billing/README.md index 7e19f65c2df0..1b6e199cc250 100644 --- a/sdk/billing/azure-resourcemanager-billing/README.md +++ b/sdk/billing/azure-resourcemanager-billing/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-billing - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/BillingManager.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/BillingManager.java index 2743dee0aa9f..bc32a781883a 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/BillingManager.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/BillingManager.java @@ -8,6 +8,7 @@ import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; @@ -69,6 +70,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; /** Entry point to BillingManager. Billing client provides access to billing resources for Azure subscriptions. */ public final class BillingManager { @@ -100,8 +102,6 @@ public final class BillingManager { private BillingProperties billingProperties; - private Operations operations; - private BillingRoleDefinitions billingRoleDefinitions; private BillingRoleAssignments billingRoleAssignments; @@ -114,6 +114,8 @@ public final class BillingManager { private BillingPeriods billingPeriods; + private Operations operations; + private final BillingManagementClient clientObject; private BillingManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -152,7 +154,7 @@ public static Configurable configure() { /** The Configurable allowing configurations to be set. */ public static final class Configurable { - private final ClientLogger logger = new ClientLogger(Configurable.class); + private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -226,9 +228,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 +254,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(" (") @@ -273,11 +277,24 @@ public BillingManager authenticate(TokenCredential credential, AzureProfile prof List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); 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 = @@ -401,14 +418,6 @@ 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. */ public BillingRoleDefinitions billingRoleDefinitions() { if (this.billingRoleDefinitions == null) { @@ -459,6 +468,14 @@ public BillingPeriods billingPeriods() { return billingPeriods; } + /** @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..a4c7c0be3361 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 @@ -33,7 +33,7 @@ public interface AddressClient { * @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) Response validateWithResponse(AddressDetails address, Context context); 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..882610e547eb 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); @@ -62,7 +62,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 an agreement by ID. + * @return an agreement by ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( 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..2bd7a9d6ef88 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 @@ -38,7 +38,7 @@ public interface AvailableBalancesClient { * @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) Response getWithResponse( 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..76eccc0a1323 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); @@ -61,7 +61,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 by its ID. + * @return a billing account by its ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String billingAccountName, String expand, Context context); @@ -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..d925f3768fc5 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); @@ -67,7 +67,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 a named billing period. + * @return a named billing period along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String billingPeriodName, Context context); 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..8aff15422177 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); @@ -68,7 +68,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 a billing profile by its ID. + * @return a billing profile by its ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -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..dc024c74de16 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 @@ -31,7 +31,7 @@ public interface BillingPropertiesClient { * @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) Response getWithResponse(Context context); @@ -58,7 +58,7 @@ public interface BillingPropertiesClient { * @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) Response updateWithResponse(BillingPropertyInner parameters, Context context); 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..d4f4d34fb50f 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 @@ -37,7 +37,7 @@ public interface BillingRoleAssignmentsClient { * @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) Response getByBillingAccountWithResponse( @@ -67,7 +67,7 @@ Response getByBillingAccountWithResponse( * @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) Response deleteByBillingAccountWithResponse( @@ -105,7 +105,7 @@ BillingRoleAssignmentInner getByInvoiceSection( * @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) Response getByInvoiceSectionWithResponse( @@ -147,7 +147,7 @@ BillingRoleAssignmentInner deleteByInvoiceSection( * @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) Response deleteByInvoiceSectionWithResponse( @@ -184,7 +184,7 @@ BillingRoleAssignmentInner getByBillingProfile( * @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) Response getByBillingProfileWithResponse( @@ -217,7 +217,7 @@ BillingRoleAssignmentInner deleteByBillingProfile( * @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) Response deleteByBillingProfileWithResponse( @@ -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..61746331e4a5 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 @@ -37,7 +37,7 @@ public interface BillingRoleDefinitionsClient { * @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) Response getByBillingAccountWithResponse( @@ -75,7 +75,7 @@ BillingRoleDefinitionInner getByInvoiceSection( * @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) Response getByInvoiceSectionWithResponse( @@ -112,7 +112,7 @@ BillingRoleDefinitionInner getByBillingProfile( * @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) Response getByBillingProfileWithResponse( @@ -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..fdc7ae501c94 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( @@ -159,7 +159,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 a subscription by its ID. + * @return a subscription by its ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String billingAccountName, Context context); @@ -188,7 +188,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 a billing subscription. + * @return a billing subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse( @@ -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( @@ -284,7 +284,7 @@ ValidateSubscriptionTransferEligibilityResultInner validateMove( * @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) Response validateMoveWithResponse( 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..9cebf60f5ef5 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( @@ -102,7 +102,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 a customer by its ID. + * @return a customer by its ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( 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..82a32592e1bb 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); @@ -55,7 +55,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 a enrollment account by name. + * @return a enrollment account by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String name, Context context); 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..c9fb1d432172 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( @@ -65,7 +67,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 instruction by name. + * @return the instruction by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -100,7 +102,7 @@ InstructionInner put( * @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) Response putWithResponse( 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..f144a6ce9040 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( @@ -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 an invoice section by its ID. + * @return an invoice section by its ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse( @@ -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..a01648add2f8 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( @@ -113,7 +113,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 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) Response getWithResponse(String billingAccountName, String invoiceName, Context context); @@ -140,7 +140,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 an invoice by ID. + * @return an invoice by ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByIdWithResponse(String invoiceName, Context context); @@ -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( @@ -323,7 +325,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 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) Response getBySubscriptionAndInvoiceIdWithResponse(String invoiceName, Context context); @@ -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..8cb5393b5858 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 @@ -37,7 +37,7 @@ public interface PoliciesClient { * @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) Response getByBillingProfileWithResponse( @@ -69,7 +69,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 a policy. + * @return a policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse( @@ -99,7 +99,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 the customer's Policy. + * @return the customer's Policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getByCustomerWithResponse( @@ -131,7 +131,7 @@ Response getByCustomerWithResponse( * @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) Response updateCustomerWithResponse( 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..294c5255c4af 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( @@ -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 a product by ID. + * @return a product by ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String billingAccountName, String productName, Context context); @@ -203,7 +203,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 a product. + * @return a product along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse( @@ -272,7 +272,7 @@ ValidateProductTransferEligibilityResultInner validateMove( * @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) Response validateMoveWithResponse( 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..5f12d5205560 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,8 +17,6 @@ /** An agreement. */ @Fluent public final class AgreementInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AgreementInner.class); - /* * The properties of an agreement. */ @@ -62,6 +59,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..ef811f272f94 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,13 @@ 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. */ @@ -89,6 +93,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 +156,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..94d1b600e370 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 @@ -6,16 +6,12 @@ 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.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The latest Azure credit balance. This is the balance available for pay now. */ @Fluent public final class AvailableBalanceInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableBalanceInner.class); - /* * 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..36ccf0f9cadf 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,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.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. */ 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..a905f41c3f51 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,15 +14,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; /** 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. */ 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..67b0ac9b59b2 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. */ 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..83afcaa33d09 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 @@ -6,8 +6,6 @@ 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.LocalDate; import java.util.List; @@ -15,8 +13,6 @@ /** A billing period resource. */ @Fluent public final class BillingPeriodInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPeriodInner.class); - /* * 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..7376ec9bf97e 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. */ 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..3e6de96c6dd6 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. */ 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..76bbf3bf39a5 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,8 +22,6 @@ /** 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. */ 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..9b2cdecf3225 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. */ 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..7a825495447d 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,18 +6,14 @@ 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. */ 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..3b55d6a8b036 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,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.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. 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..59f23b7bb7bf 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,15 +6,11 @@ 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. */ 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..60b1bda94bcf 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. */ 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..ae12b4e48185 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,16 +6,12 @@ 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. */ 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..1a4fb3419c3d 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 */ 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..5d9e20c8adfa 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,8 +16,6 @@ /** 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. */ 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..fd59dd6e4e25 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. */ 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..953e277f8b94 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,18 +6,14 @@ 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. */ 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..ba8951806de6 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,16 +6,12 @@ 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. */ 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..56a0bc614e3b 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,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.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. 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..ff77427301ce 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. */ 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..1055ce5d9bc7 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. */ 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..f0454dd2c23c 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. */ 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..cf6a4207dfa0 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. */ 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..435f1e630ed6 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 @@ -6,15 +6,11 @@ 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; /** An enrollment account resource. */ @Fluent public final class EnrollmentAccountSummaryInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EnrollmentAccountSummaryInner.class); - /* * 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..8878ce3a1101 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,15 +5,11 @@ 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. */ 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..6aa86b6972c8 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,16 +6,12 @@ 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. */ 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..ef607f2c8d78 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. */ @@ -126,14 +123,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..6af3b8a1f0df 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 @@ -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.Amount; import com.azure.resourcemanager.billing.models.Document; import com.azure.resourcemanager.billing.models.InvoiceDocumentType; @@ -14,7 +13,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.JsonProperty; import java.time.OffsetDateTime; import java.util.List; @@ -23,8 +21,6 @@ /** An invoice. */ @Fluent public final class InvoiceInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceInner.class); - /* * 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..d65b7e5bb499 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. */ 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..220cc812a3e3 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,18 +6,14 @@ 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. */ 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..abefb5105414 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. */ 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..16cdfbb25fe4 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. */ 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..d10048016e16 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}. */ 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..65de1ca1475c 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,18 +6,14 @@ 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. */ 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..718a87146b24 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,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.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. 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..a3bd8c1d1ff8 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,21 +6,17 @@ 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. */ 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..7b5d73060bb4 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. */ 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..ed4e436de51b 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. */ 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..d9f3f312227e 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,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.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 diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/TransactionInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/TransactionInner.java index 956a87e6b044..94032ba2d694 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/TransactionInner.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/TransactionInner.java @@ -6,19 +6,15 @@ 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.ReservationType; import com.azure.resourcemanager.billing.models.TransactionTypeKind; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** A transaction. */ @Fluent public final class TransactionInner extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TransactionInner.class); - /* * The properties of a transaction. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/TransactionProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/TransactionProperties.java index 0a4d16e4815d..bb09aa70fe35 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/TransactionProperties.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/TransactionProperties.java @@ -5,19 +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.Amount; import com.azure.resourcemanager.billing.models.ReservationType; import com.azure.resourcemanager.billing.models.TransactionTypeKind; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** The properties of a transaction. */ @Fluent public final class TransactionProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TransactionProperties.class); - /* * The kind of transaction. Options are all or reservation. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateAddressResponseInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateAddressResponseInner.java index fe5e582d9b45..e69ca54336e2 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateAddressResponseInner.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateAddressResponseInner.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.AddressDetails; import com.azure.resourcemanager.billing.models.AddressValidationStatus; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Result of the address validation. */ @Fluent public final class ValidateAddressResponseInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ValidateAddressResponseInner.class); - /* * status of the address validation. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateProductTransferEligibilityResultInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateProductTransferEligibilityResultInner.java index ec3a1192692a..ac5f0536bba9 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateProductTransferEligibilityResultInner.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateProductTransferEligibilityResultInner.java @@ -5,17 +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.ValidateProductTransferEligibilityError; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Result of the product transfer eligibility validation. */ @Fluent public final class ValidateProductTransferEligibilityResultInner { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(ValidateProductTransferEligibilityResultInner.class); - /* * Specifies whether the transfer is eligible or not. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateSubscriptionTransferEligibilityResultInner.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateSubscriptionTransferEligibilityResultInner.java index 8182afc61f4d..b21b71560643 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateSubscriptionTransferEligibilityResultInner.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/fluent/models/ValidateSubscriptionTransferEligibilityResultInner.java @@ -5,17 +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.ValidateSubscriptionTransferEligibilityError; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Result of the transfer eligibility validation. */ @Fluent public final class ValidateSubscriptionTransferEligibilityResultInner { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(ValidateSubscriptionTransferEligibilityResultInner.class); - /* * Specifies whether the subscription is eligible to be transferred. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AddressClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AddressClientImpl.java index 1d23f4086199..b50788847cfa 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AddressClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AddressClientImpl.java @@ -21,7 +21,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.AddressClient; import com.azure.resourcemanager.billing.fluent.models.ValidateAddressResponseInner; import com.azure.resourcemanager.billing.models.AddressDetails; @@ -29,8 +28,6 @@ /** An instance of this class provides access to all the operations defined in AddressClient. */ public final class AddressClientImpl implements AddressClient { - private final ClientLogger logger = new ClientLogger(AddressClientImpl.class); - /** The proxy service used to perform REST calls. */ private final AddressService service; @@ -73,7 +70,7 @@ Mono> validate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateWithResponseAsync(AddressDetails address) { @@ -103,7 +100,7 @@ private Mono> validateWithResponseAsync(A * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateWithResponseAsync( @@ -132,7 +129,7 @@ private Mono> validateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono validateAsync(AddressDetails address) { @@ -169,7 +166,7 @@ public ValidateAddressResponseInner validate(AddressDetails address) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response validateWithResponse(AddressDetails address, Context context) { diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AddressImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AddressImpl.java index 58f50db82564..b1939e8a9873 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AddressImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AddressImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.models.Address; import com.azure.resourcemanager.billing.models.AddressDetails; import com.azure.resourcemanager.billing.models.ValidateAddressResponse; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class AddressImpl implements Address { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AddressImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(AddressImpl.class); private final AddressClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementImpl.java index e0fd035f1086..ab49f9e9987a 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementImpl.java @@ -7,6 +7,7 @@ import com.azure.resourcemanager.billing.fluent.models.AgreementInner; import com.azure.resourcemanager.billing.models.AcceptanceMode; import com.azure.resourcemanager.billing.models.Agreement; +import com.azure.resourcemanager.billing.models.BillingProfileInfo; import com.azure.resourcemanager.billing.models.Category; import com.azure.resourcemanager.billing.models.Participants; import java.time.OffsetDateTime; @@ -47,6 +48,10 @@ public AcceptanceMode acceptanceMode() { return this.innerModel().acceptanceMode(); } + public BillingProfileInfo billingProfileInfo() { + return this.innerModel().billingProfileInfo(); + } + public OffsetDateTime effectiveDate() { return this.innerModel().effectiveDate(); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementsClientImpl.java index 3b85f5aa2e14..72042ddc0e2e 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.AgreementsClient; import com.azure.resourcemanager.billing.fluent.models.AgreementInner; import com.azure.resourcemanager.billing.models.AgreementListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in AgreementsClient. */ public final class AgreementsClientImpl implements AgreementsClient { - private final ClientLogger logger = new ClientLogger(AgreementsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final AgreementsService service; @@ -103,7 +100,7 @@ Mono> listByBillingAccountNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -147,7 +144,7 @@ private Mono> listByBillingAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -186,7 +183,7 @@ private Mono> listByBillingAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName, String expand) { @@ -202,7 +199,7 @@ private PagedFlux listByBillingAccountAsync(String billingAccoun * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName) { @@ -221,7 +218,7 @@ private PagedFlux listByBillingAccountAsync(String billingAccoun * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -238,7 +235,7 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName) { @@ -255,7 +252,7 @@ public PagedIterable listByBillingAccount(String billingAccountN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount( @@ -272,7 +269,7 @@ public PagedIterable listByBillingAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -317,7 +314,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -351,7 +348,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String agreementName, String expand) { @@ -374,7 +371,7 @@ private Mono getAsync(String billingAccountName, String agreemen * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String agreementName) { @@ -416,7 +413,7 @@ public AgreementInner get(String billingAccountName, String agreementName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse( @@ -431,7 +428,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync(String nextLink) { @@ -468,7 +465,7 @@ private Mono> listByBillingAccountNextSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementsImpl.java index 78fc6f2c2d33..02b339d04b21 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AgreementsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.fluent.models.AgreementInner; import com.azure.resourcemanager.billing.models.Agreement; import com.azure.resourcemanager.billing.models.Agreements; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class AgreementsImpl implements Agreements { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AgreementsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(AgreementsImpl.class); private final AgreementsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AvailableBalancesClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AvailableBalancesClientImpl.java index a0f1bf1d0238..72c91adcc114 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AvailableBalancesClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AvailableBalancesClientImpl.java @@ -21,15 +21,12 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.AvailableBalancesClient; import com.azure.resourcemanager.billing.fluent.models.AvailableBalanceInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in AvailableBalancesClient. */ public final class AvailableBalancesClientImpl implements AvailableBalancesClient { - private final ClientLogger logger = new ClientLogger(AvailableBalancesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final AvailableBalancesService service; @@ -79,7 +76,7 @@ Mono> get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -125,7 +122,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -161,7 +158,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String billingProfileName) { @@ -204,7 +201,7 @@ public AvailableBalanceInner get(String billingAccountName, String billingProfil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AvailableBalancesImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AvailableBalancesImpl.java index 5bf92689d07a..4410add6ddf1 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AvailableBalancesImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/AvailableBalancesImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.billing.fluent.models.AvailableBalanceInner; import com.azure.resourcemanager.billing.models.AvailableBalance; import com.azure.resourcemanager.billing.models.AvailableBalances; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class AvailableBalancesImpl implements AvailableBalances { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AvailableBalancesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(AvailableBalancesImpl.class); private final AvailableBalancesClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingAccountsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingAccountsClientImpl.java index f139e118ab3b..c793987fda25 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingAccountsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingAccountsClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.billing.fluent.BillingAccountsClient; @@ -44,8 +43,6 @@ /** An instance of this class provides access to all the operations defined in BillingAccountsClient. */ public final class BillingAccountsClientImpl implements BillingAccountsClient { - private final ClientLogger logger = new ClientLogger(BillingAccountsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BillingAccountsService service; @@ -148,7 +145,7 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String expand) { @@ -182,7 +179,7 @@ private Mono> listSinglePageAsync(String expa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String expand, Context context) { @@ -215,7 +212,7 @@ private Mono> listSinglePageAsync(String expa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String expand) { @@ -227,7 +224,7 @@ private PagedFlux listAsync(String expand) { * * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -243,7 +240,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String expand, Context context) { @@ -256,7 +253,7 @@ private PagedFlux listAsync(String expand, Context context) * * @throws 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) public PagedIterable list() { @@ -272,7 +269,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable list(String expand, Context context) { @@ -287,7 +284,7 @@ public PagedIterable list(String expand, Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String billingAccountName, String expand) { @@ -319,7 +316,7 @@ private Mono> getWithResponseAsync(String billingA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -348,7 +345,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String expand) { @@ -370,7 +367,7 @@ private Mono getAsync(String billingAccountName, String exp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName) { @@ -410,7 +407,7 @@ public BillingAccountInner get(String billingAccountName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse(String billingAccountName, String expand, Context context) { @@ -426,7 +423,7 @@ public Response getWithResponse(String billingAccountName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a billing account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -466,7 +463,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a billing account along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync( @@ -501,7 +498,7 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a billing account. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BillingAccountInner> beginUpdateAsync( @@ -514,7 +511,7 @@ private PollerFlux, BillingAccountInner> beginUp this.client.getHttpPipeline(), BillingAccountInner.class, BillingAccountInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -527,7 +524,7 @@ private PollerFlux, BillingAccountInner> beginUp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a billing account. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BillingAccountInner> beginUpdateAsync( @@ -549,7 +546,7 @@ private PollerFlux, BillingAccountInner> beginUp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, BillingAccountInner> beginUpdate( @@ -567,7 +564,7 @@ public SyncPoller, BillingAccountInner> beginUpd * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, BillingAccountInner> beginUpdate( @@ -584,7 +581,7 @@ public SyncPoller, BillingAccountInner> beginUpd * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a billing account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String billingAccountName, BillingAccountUpdateRequest parameters) { @@ -601,7 +598,7 @@ private Mono updateAsync(String billingAccountName, Billing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a billing account on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -653,7 +650,8 @@ public BillingAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -697,7 +695,8 @@ public BillingAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -737,7 +736,8 @@ public BillingAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux @@ -756,7 +756,8 @@ public BillingAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux @@ -774,7 +775,8 @@ public BillingAccountInner update( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listInvoiceSectionsByCreateSubscriptionPermission( @@ -791,7 +793,8 @@ public PagedIterable listInvoiceSect * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listInvoiceSectionsByCreateSubscriptionPermission( @@ -806,7 +809,7 @@ public PagedIterable listInvoiceSect * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -842,7 +845,7 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -877,7 +880,8 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -918,7 +922,8 @@ private Mono> listNextSinglePageAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingAccountsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingAccountsImpl.java index 399440dc5ead..be897dbbc88c 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingAccountsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingAccountsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.billing.models.BillingAccountUpdateRequest; import com.azure.resourcemanager.billing.models.BillingAccounts; import com.azure.resourcemanager.billing.models.InvoiceSectionWithCreateSubPermission; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BillingAccountsImpl implements BillingAccounts { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingAccountsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BillingAccountsImpl.class); private final BillingAccountsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingManagementClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingManagementClientImpl.java index 862b1b980852..f62261808cb8 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingManagementClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingManagementClientImpl.java @@ -56,8 +56,6 @@ /** Initializes a new instance of the BillingManagementClientImpl type. */ @ServiceClient(builder = BillingManagementClientBuilder.class) public final class BillingManagementClientImpl implements BillingManagementClient { - private final ClientLogger logger = new ClientLogger(BillingManagementClientImpl.class); - /** The ID that uniquely identifies an Azure subscription. */ private final String subscriptionId; @@ -286,18 +284,6 @@ public BillingPropertiesClient getBillingProperties() { return this.billingProperties; } - /** The OperationsClient object to access its operations. */ - private final OperationsClient operations; - - /** - * Gets the OperationsClient object to access its operations. - * - * @return the OperationsClient object. - */ - public OperationsClient getOperations() { - return this.operations; - } - /** The BillingRoleDefinitionsClient object to access its operations. */ private final BillingRoleDefinitionsClient billingRoleDefinitions; @@ -370,6 +356,18 @@ public BillingPeriodsClient getBillingPeriods() { return this.billingPeriods; } + /** The OperationsClient object to access its operations. */ + private final OperationsClient operations; + + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + public OperationsClient getOperations() { + return this.operations; + } + /** * Initializes an instance of BillingManagementClient client. * @@ -406,13 +404,13 @@ public BillingPeriodsClient getBillingPeriods() { this.transactions = new TransactionsClientImpl(this); this.policies = new PoliciesClientImpl(this); this.billingProperties = new BillingPropertiesClientImpl(this); - this.operations = new OperationsClientImpl(this); this.billingRoleDefinitions = new BillingRoleDefinitionsClientImpl(this); this.billingRoleAssignments = new BillingRoleAssignmentsClientImpl(this); this.agreements = new AgreementsClientImpl(this); this.reservations = new ReservationsClientImpl(this); this.enrollmentAccounts = new EnrollmentAccountsClientImpl(this); this.billingPeriods = new BillingPeriodsClientImpl(this); + this.operations = new OperationsClientImpl(this); } /** @@ -498,7 +496,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, managementError = null; } } catch (IOException | RuntimeException ioe) { - logger.logThrowableAsWarning(ioe); + LOGGER.logThrowableAsWarning(ioe); } } } else { @@ -557,4 +555,6 @@ public Mono getBodyAsString(Charset charset) { return Mono.just(new String(responseBody, charset)); } } + + private static final ClientLogger LOGGER = new ClientLogger(BillingManagementClientImpl.class); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPeriodsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPeriodsClientImpl.java index 41908fdc5d50..40d277a4c752 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPeriodsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPeriodsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.BillingPeriodsClient; import com.azure.resourcemanager.billing.fluent.models.BillingPeriodInner; import com.azure.resourcemanager.billing.models.BillingPeriodsListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in BillingPeriodsClient. */ public final class BillingPeriodsClientImpl implements BillingPeriodsClient { - private final ClientLogger logger = new ClientLogger(BillingPeriodsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BillingPeriodsService service; @@ -110,7 +107,8 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String filter, String skiptoken, Integer top) { @@ -168,7 +166,8 @@ private Mono> listSinglePageAsync(String filte * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync( @@ -223,7 +222,7 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String filter, String skiptoken, Integer top) { @@ -238,7 +237,7 @@ private PagedFlux listAsync(String filter, String skiptoken, * * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -264,7 +263,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String filter, String skiptoken, Integer top, Context context) { @@ -280,7 +279,7 @@ private PagedFlux listAsync(String filter, String skiptoken, * * @throws 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) public PagedIterable list() { @@ -305,7 +304,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable list(String filter, String skiptoken, Integer top, Context context) { @@ -320,7 +319,7 @@ public PagedIterable list(String filter, String skiptoken, I * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String billingPeriodName) { @@ -365,7 +364,7 @@ private Mono> getWithResponseAsync(String billingPe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String billingPeriodName, Context context) { @@ -406,7 +405,7 @@ private Mono> getWithResponseAsync(String billingPe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingPeriodName) { @@ -445,7 +444,7 @@ public BillingPeriodInner get(String billingPeriodName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse(String billingPeriodName, Context context) { @@ -459,7 +458,8 @@ public Response getWithResponse(String billingPeriodName, Co * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -495,7 +495,8 @@ private Mono> listNextSinglePageAsync(String n * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPeriodsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPeriodsImpl.java index dce7606151b3..ff848d8f6eca 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPeriodsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPeriodsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.fluent.models.BillingPeriodInner; import com.azure.resourcemanager.billing.models.BillingPeriod; import com.azure.resourcemanager.billing.models.BillingPeriods; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BillingPeriodsImpl implements BillingPeriods { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPeriodsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BillingPeriodsImpl.class); private final BillingPeriodsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPermissionsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPermissionsClientImpl.java index 923d31f7d070..fda04f4b7a2a 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPermissionsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPermissionsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.BillingPermissionsClient; import com.azure.resourcemanager.billing.fluent.models.BillingPermissionsPropertiesInner; import com.azure.resourcemanager.billing.models.BillingPermissionsListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in BillingPermissionsClient. */ public final class BillingPermissionsClientImpl implements BillingPermissionsClient { - private final ClientLogger logger = new ClientLogger(BillingPermissionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BillingPermissionsService service; @@ -162,7 +159,8 @@ Mono> listByBillingProfileNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerSinglePageAsync( @@ -209,7 +207,8 @@ private Mono> listByCustomerSin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerSinglePageAsync( @@ -251,7 +250,8 @@ private Mono> listByCustomerSin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByCustomerAsync( @@ -270,7 +270,8 @@ private PagedFlux listByCustomerAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByCustomerAsync( @@ -288,7 +289,8 @@ private PagedFlux listByCustomerAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByCustomer( @@ -305,7 +307,8 @@ public PagedIterable listByCustomer( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByCustomer( @@ -320,7 +323,8 @@ public PagedIterable listByCustomer( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -363,7 +367,8 @@ private Mono> listByBillingAcco * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -401,7 +406,8 @@ private Mono> listByBillingAcco * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName) { @@ -418,7 +424,8 @@ private PagedFlux listByBillingAccountAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -435,7 +442,8 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName) { @@ -450,7 +458,8 @@ public PagedIterable listByBillingAccount(Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount( @@ -467,7 +476,8 @@ public PagedIterable listByBillingAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionsSinglePageAsync( @@ -526,7 +536,8 @@ private Mono> listByInvoiceSect * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionsSinglePageAsync( @@ -581,7 +592,8 @@ private Mono> listByInvoiceSect * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionsAsync( @@ -601,7 +613,8 @@ private PagedFlux listByInvoiceSectionsAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionsAsync( @@ -622,7 +635,8 @@ private PagedFlux listByInvoiceSectionsAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSections( @@ -641,7 +655,8 @@ public PagedIterable listByInvoiceSections( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSections( @@ -658,7 +673,8 @@ public PagedIterable listByInvoiceSections( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -711,7 +727,8 @@ private Mono> listByBillingProf * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -755,7 +772,8 @@ private Mono> listByBillingProf * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -774,7 +792,8 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -792,7 +811,8 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -809,7 +829,8 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -824,7 +845,8 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerNextSinglePageAsync(String nextLink) { @@ -860,7 +882,8 @@ private Mono> listByCustomerNex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerNextSinglePageAsync( @@ -896,7 +919,8 @@ private Mono> listByCustomerNex * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( @@ -934,7 +958,8 @@ private Mono> listByBillingAcco * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( @@ -970,7 +995,8 @@ private Mono> listByBillingAcco * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionsNextSinglePageAsync( @@ -1008,7 +1034,8 @@ private Mono> listByInvoiceSect * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionsNextSinglePageAsync( @@ -1044,7 +1071,8 @@ private Mono> listByInvoiceSect * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( @@ -1082,7 +1110,8 @@ private Mono> listByBillingProf * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPermissionsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPermissionsImpl.java index 513d3ff4b7fc..270cfd126b1f 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPermissionsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPermissionsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.billing.fluent.models.BillingPermissionsPropertiesInner; import com.azure.resourcemanager.billing.models.BillingPermissions; import com.azure.resourcemanager.billing.models.BillingPermissionsProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BillingPermissionsImpl implements BillingPermissions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPermissionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BillingPermissionsImpl.class); private final BillingPermissionsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingProfilesClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingProfilesClientImpl.java index 5b0e499c27ed..2b8c79c86780 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingProfilesClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingProfilesClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.billing.fluent.BillingProfilesClient; @@ -40,8 +39,6 @@ /** An instance of this class provides access to all the operations defined in BillingProfilesClient. */ public final class BillingProfilesClientImpl implements BillingProfilesClient { - private final ClientLogger logger = new ClientLogger(BillingProfilesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BillingProfilesService service; @@ -124,7 +121,7 @@ Mono> listByBillingAccountNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -169,7 +166,7 @@ private Mono> listByBillingAccountSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -209,7 +206,7 @@ private Mono> listByBillingAccountSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName, String expand) { @@ -226,7 +223,7 @@ private PagedFlux listByBillingAccountAsync(String billingA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName) { @@ -246,7 +243,7 @@ private PagedFlux listByBillingAccountAsync(String billingA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -264,7 +261,7 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName) { @@ -282,7 +279,7 @@ public PagedIterable listByBillingAccount(String billingAcc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount( @@ -300,7 +297,7 @@ public PagedIterable listByBillingAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -347,7 +344,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -384,7 +381,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String billingProfileName, String expand) { @@ -408,7 +405,7 @@ private Mono getAsync(String billingAccountName, String bil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String billingProfileName) { @@ -452,7 +449,7 @@ public BillingProfileInner get(String billingAccountName, String billingProfileN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse( @@ -470,7 +467,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a billing profile along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -522,7 +519,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a billing profile along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -570,7 +567,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a billing profile. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BillingProfileInner> beginCreateOrUpdateAsync( @@ -584,7 +581,7 @@ private PollerFlux, BillingProfileInner> beginCr this.client.getHttpPipeline(), BillingProfileInner.class, BillingProfileInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -598,7 +595,7 @@ private PollerFlux, BillingProfileInner> beginCr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a billing profile. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BillingProfileInner> beginCreateOrUpdateAsync( @@ -622,7 +619,7 @@ private PollerFlux, BillingProfileInner> beginCr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, BillingProfileInner> beginCreateOrUpdate( @@ -641,7 +638,7 @@ public SyncPoller, BillingProfileInner> beginCre * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, BillingProfileInner> beginCreateOrUpdate( @@ -659,7 +656,7 @@ public SyncPoller, BillingProfileInner> beginCre * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a billing profile on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -680,7 +677,7 @@ private Mono createOrUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a billing profile on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -734,7 +731,7 @@ public BillingProfileInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync(String nextLink) { @@ -771,7 +768,7 @@ private Mono> listByBillingAccountNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingProfilesImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingProfilesImpl.java index dce0bde2fb4c..4d579cc63e99 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingProfilesImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingProfilesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.fluent.models.BillingProfileInner; import com.azure.resourcemanager.billing.models.BillingProfile; import com.azure.resourcemanager.billing.models.BillingProfiles; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BillingProfilesImpl implements BillingProfiles { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingProfilesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BillingProfilesImpl.class); private final BillingProfilesClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPropertiesClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPropertiesClientImpl.java index ad67ab0e5b5b..a60f0ae7bd80 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPropertiesClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPropertiesClientImpl.java @@ -23,15 +23,12 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.BillingPropertiesClient; import com.azure.resourcemanager.billing.fluent.models.BillingPropertyInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in BillingPropertiesClient. */ public final class BillingPropertiesClientImpl implements BillingPropertiesClient { - private final ClientLogger logger = new ClientLogger(BillingPropertiesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BillingPropertiesService service; @@ -86,7 +83,8 @@ Mono> update( * * @throws 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} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync() { @@ -120,7 +118,8 @@ private Mono> getWithResponseAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(Context context) { @@ -148,7 +147,7 @@ private Mono> getWithResponseAsync(Context contex * * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync() { @@ -184,7 +183,7 @@ public BillingPropertyInner get() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse(Context context) { @@ -199,7 +198,7 @@ public Response getWithResponse(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(BillingPropertyInner parameters) { @@ -245,7 +244,7 @@ private Mono> updateWithResponseAsync(BillingProp * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -283,7 +282,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(BillingPropertyInner parameters) { @@ -322,7 +321,7 @@ public BillingPropertyInner update(BillingPropertyInner parameters) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response updateWithResponse(BillingPropertyInner parameters, Context context) { diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPropertiesImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPropertiesImpl.java index b60d1b534773..96d2d06f0fde 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPropertiesImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingPropertiesImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.billing.fluent.models.BillingPropertyInner; import com.azure.resourcemanager.billing.models.BillingProperties; import com.azure.resourcemanager.billing.models.BillingProperty; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BillingPropertiesImpl implements BillingProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPropertiesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BillingPropertiesImpl.class); private final BillingPropertiesClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleAssignmentsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleAssignmentsClientImpl.java index 9940fb97457e..3e260ca48922 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleAssignmentsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleAssignmentsClientImpl.java @@ -26,7 +26,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.BillingRoleAssignmentsClient; import com.azure.resourcemanager.billing.fluent.models.BillingRoleAssignmentInner; import com.azure.resourcemanager.billing.models.BillingRoleAssignmentListResult; @@ -34,8 +33,6 @@ /** An instance of this class provides access to all the operations defined in BillingRoleAssignmentsClient. */ public final class BillingRoleAssignmentsClientImpl implements BillingRoleAssignmentsClient { - private final ClientLogger logger = new ClientLogger(BillingRoleAssignmentsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BillingRoleAssignmentsService service; @@ -231,7 +228,8 @@ Mono> listByBillingProfileNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingAccountWithResponseAsync( @@ -278,7 +276,8 @@ private Mono> getByBillingAccountWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingAccountWithResponseAsync( @@ -316,7 +315,7 @@ private Mono> getByBillingAccountWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByBillingAccountAsync( @@ -358,7 +357,7 @@ public BillingRoleAssignmentInner getByBillingAccount(String billingAccountName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getByBillingAccountWithResponse( @@ -375,7 +374,7 @@ public Response getByBillingAccountWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteByBillingAccountWithResponseAsync( @@ -422,7 +421,7 @@ private Mono> deleteByBillingAccountWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteByBillingAccountWithResponseAsync( @@ -460,7 +459,7 @@ private Mono> deleteByBillingAccountWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteByBillingAccountAsync( @@ -503,7 +502,7 @@ public BillingRoleAssignmentInner deleteByBillingAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response deleteByBillingAccountWithResponse( @@ -522,7 +521,8 @@ public Response deleteByBillingAccountWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByInvoiceSectionWithResponseAsync( @@ -584,7 +584,8 @@ private Mono> getByInvoiceSectionWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByInvoiceSectionWithResponseAsync( @@ -643,7 +644,7 @@ private Mono> getByInvoiceSectionWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByInvoiceSectionAsync( @@ -699,7 +700,7 @@ public BillingRoleAssignmentInner getByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getByInvoiceSectionWithResponse( @@ -724,7 +725,7 @@ public Response getByInvoiceSectionWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteByInvoiceSectionWithResponseAsync( @@ -786,7 +787,7 @@ private Mono> deleteByInvoiceSectionWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteByInvoiceSectionWithResponseAsync( @@ -845,7 +846,7 @@ private Mono> deleteByInvoiceSectionWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteByInvoiceSectionAsync( @@ -901,7 +902,7 @@ public BillingRoleAssignmentInner deleteByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response deleteByInvoiceSectionWithResponse( @@ -925,7 +926,8 @@ public Response deleteByInvoiceSectionWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingProfileWithResponseAsync( @@ -978,7 +980,8 @@ private Mono> getByBillingProfileWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingProfileWithResponseAsync( @@ -1027,7 +1030,7 @@ private Mono> getByBillingProfileWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByBillingProfileAsync( @@ -1072,7 +1075,7 @@ public BillingRoleAssignmentInner getByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getByBillingProfileWithResponse( @@ -1092,7 +1095,7 @@ public Response getByBillingProfileWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteByBillingProfileWithResponseAsync( @@ -1145,7 +1148,7 @@ private Mono> deleteByBillingProfileWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> deleteByBillingProfileWithResponseAsync( @@ -1194,7 +1197,7 @@ private Mono> deleteByBillingProfileWithRes * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteByBillingProfileAsync( @@ -1240,7 +1243,7 @@ public BillingRoleAssignmentInner deleteByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response deleteByBillingProfileWithResponse( @@ -1258,7 +1261,7 @@ public Response deleteByBillingProfileWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -1302,7 +1305,7 @@ private Mono> listByBillingAccountSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -1341,7 +1344,7 @@ private Mono> listByBillingAccountSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName) { @@ -1359,7 +1362,7 @@ private PagedFlux listByBillingAccountAsync(String b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -1377,7 +1380,7 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName) { @@ -1393,7 +1396,7 @@ public PagedIterable listByBillingAccount(String bil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName, Context context) { @@ -1410,7 +1413,7 @@ public PagedIterable listByBillingAccount(String bil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionSinglePageAsync( @@ -1470,7 +1473,7 @@ private Mono> listByInvoiceSectionSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionSinglePageAsync( @@ -1526,7 +1529,7 @@ private Mono> listByInvoiceSectionSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionAsync( @@ -1547,7 +1550,7 @@ private PagedFlux listByInvoiceSectionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionAsync( @@ -1569,7 +1572,7 @@ private PagedFlux listByInvoiceSectionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSection( @@ -1589,7 +1592,7 @@ public PagedIterable listByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSection( @@ -1607,7 +1610,7 @@ public PagedIterable listByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -1661,7 +1664,7 @@ private Mono> listByBillingProfileSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -1706,7 +1709,7 @@ private Mono> listByBillingProfileSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -1726,7 +1729,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -1745,7 +1748,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -1763,7 +1766,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -1778,7 +1781,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync(String nextLink) { @@ -1815,7 +1818,7 @@ private Mono> listByBillingAccountNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( @@ -1851,7 +1854,7 @@ private Mono> listByBillingAccountNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionNextSinglePageAsync(String nextLink) { @@ -1888,7 +1891,7 @@ private Mono> listByInvoiceSectionNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionNextSinglePageAsync( @@ -1924,7 +1927,7 @@ private Mono> listByInvoiceSectionNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync(String nextLink) { @@ -1961,7 +1964,7 @@ private Mono> listByBillingProfileNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleAssignmentsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleAssignmentsImpl.java index 58062de8c9a4..9af37a0f8368 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleAssignmentsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleAssignmentsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.fluent.models.BillingRoleAssignmentInner; import com.azure.resourcemanager.billing.models.BillingRoleAssignment; import com.azure.resourcemanager.billing.models.BillingRoleAssignments; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BillingRoleAssignmentsImpl implements BillingRoleAssignments { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingRoleAssignmentsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BillingRoleAssignmentsImpl.class); private final BillingRoleAssignmentsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleDefinitionsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleDefinitionsClientImpl.java index 52d2e1f966c9..60257b0f49b4 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleDefinitionsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleDefinitionsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.BillingRoleDefinitionsClient; import com.azure.resourcemanager.billing.fluent.models.BillingRoleDefinitionInner; import com.azure.resourcemanager.billing.models.BillingRoleDefinitionListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in BillingRoleDefinitionsClient. */ public final class BillingRoleDefinitionsClientImpl implements BillingRoleDefinitionsClient { - private final ClientLogger logger = new ClientLogger(BillingRoleDefinitionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BillingRoleDefinitionsService service; @@ -185,7 +182,8 @@ Mono> listByBillingProfileNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingAccountWithResponseAsync( @@ -232,7 +230,8 @@ private Mono> getByBillingAccountWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingAccountWithResponseAsync( @@ -270,7 +269,7 @@ private Mono> getByBillingAccountWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByBillingAccountAsync( @@ -312,7 +311,7 @@ public BillingRoleDefinitionInner getByBillingAccount(String billingAccountName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getByBillingAccountWithResponse( @@ -331,7 +330,8 @@ public Response getByBillingAccountWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByInvoiceSectionWithResponseAsync( @@ -393,7 +393,8 @@ private Mono> getByInvoiceSectionWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByInvoiceSectionWithResponseAsync( @@ -452,7 +453,7 @@ private Mono> getByInvoiceSectionWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByInvoiceSectionAsync( @@ -508,7 +509,7 @@ public BillingRoleDefinitionInner getByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getByInvoiceSectionWithResponse( @@ -532,7 +533,8 @@ public Response getByInvoiceSectionWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingProfileWithResponseAsync( @@ -585,7 +587,8 @@ private Mono> getByBillingProfileWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingProfileWithResponseAsync( @@ -634,7 +637,7 @@ private Mono> getByBillingProfileWithRespon * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByBillingProfileAsync( @@ -679,7 +682,7 @@ public BillingRoleDefinitionInner getByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getByBillingProfileWithResponse( @@ -697,7 +700,7 @@ public Response getByBillingProfileWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -741,7 +744,7 @@ private Mono> listByBillingAccountSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -780,7 +783,7 @@ private Mono> listByBillingAccountSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName) { @@ -798,7 +801,7 @@ private PagedFlux listByBillingAccountAsync(String b * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -816,7 +819,7 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName) { @@ -832,7 +835,7 @@ public PagedIterable listByBillingAccount(String bil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName, Context context) { @@ -849,7 +852,7 @@ public PagedIterable listByBillingAccount(String bil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionSinglePageAsync( @@ -909,7 +912,7 @@ private Mono> listByInvoiceSectionSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionSinglePageAsync( @@ -965,7 +968,7 @@ private Mono> listByInvoiceSectionSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionAsync( @@ -986,7 +989,7 @@ private PagedFlux listByInvoiceSectionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionAsync( @@ -1008,7 +1011,7 @@ private PagedFlux listByInvoiceSectionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSection( @@ -1028,7 +1031,7 @@ public PagedIterable listByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSection( @@ -1046,7 +1049,7 @@ public PagedIterable listByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -1100,7 +1103,7 @@ private Mono> listByBillingProfileSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -1145,7 +1148,7 @@ private Mono> listByBillingProfileSing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -1165,7 +1168,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -1184,7 +1187,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -1202,7 +1205,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -1217,7 +1220,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync(String nextLink) { @@ -1254,7 +1257,7 @@ private Mono> listByBillingAccountNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( @@ -1290,7 +1293,7 @@ private Mono> listByBillingAccountNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionNextSinglePageAsync(String nextLink) { @@ -1327,7 +1330,7 @@ private Mono> listByInvoiceSectionNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionNextSinglePageAsync( @@ -1363,7 +1366,7 @@ private Mono> listByInvoiceSectionNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync(String nextLink) { @@ -1400,7 +1403,7 @@ private Mono> listByBillingProfileNext * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleDefinitionsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleDefinitionsImpl.java index 04e129c7d9b6..89a973d9215b 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleDefinitionsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingRoleDefinitionsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.fluent.models.BillingRoleDefinitionInner; import com.azure.resourcemanager.billing.models.BillingRoleDefinition; import com.azure.resourcemanager.billing.models.BillingRoleDefinitions; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BillingRoleDefinitionsImpl implements BillingRoleDefinitions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingRoleDefinitionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BillingRoleDefinitionsImpl.class); private final BillingRoleDefinitionsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingSubscriptionsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingSubscriptionsClientImpl.java index 93a193a3e84f..9b04695a9768 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingSubscriptionsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingSubscriptionsClientImpl.java @@ -29,7 +29,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.billing.fluent.BillingSubscriptionsClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in BillingSubscriptionsClient. */ public final class BillingSubscriptionsClientImpl implements BillingSubscriptionsClient { - private final ClientLogger logger = new ClientLogger(BillingSubscriptionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final BillingSubscriptionsService service; @@ -230,7 +227,8 @@ Mono> listByInvoiceSectionNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerSinglePageAsync( @@ -278,7 +276,8 @@ private Mono> listByCustomerSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerSinglePageAsync( @@ -321,7 +320,7 @@ private Mono> listByCustomerSinglePageAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByCustomerAsync(String billingAccountName, String customerName) { @@ -340,7 +339,7 @@ private PagedFlux listByCustomerAsync(String billingAc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByCustomerAsync( @@ -359,7 +358,7 @@ private PagedFlux listByCustomerAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByCustomer(String billingAccountName, String customerName) { @@ -376,7 +375,7 @@ public PagedIterable listByCustomer(String billingAcco * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByCustomer( @@ -392,7 +391,8 @@ public PagedIterable listByCustomer( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -436,7 +436,8 @@ private Mono> listByBillingAccountSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -475,7 +476,7 @@ private Mono> listByBillingAccountSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName) { @@ -493,7 +494,7 @@ private PagedFlux listByBillingAccountAsync(String bil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName, Context context) { @@ -510,7 +511,7 @@ private PagedFlux listByBillingAccountAsync(String bil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName) { @@ -526,7 +527,7 @@ public PagedIterable listByBillingAccount(String billi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName, Context context) { @@ -542,7 +543,8 @@ public PagedIterable listByBillingAccount(String billi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -596,7 +598,8 @@ private Mono> listByBillingProfileSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -641,7 +644,7 @@ private Mono> listByBillingProfileSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -661,7 +664,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -680,7 +683,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -698,7 +701,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -716,7 +719,8 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionSinglePageAsync( @@ -776,7 +780,8 @@ private Mono> listByInvoiceSectionSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionSinglePageAsync( @@ -832,7 +837,7 @@ private Mono> listByInvoiceSectionSingle * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionAsync( @@ -853,7 +858,7 @@ private PagedFlux listByInvoiceSectionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionAsync( @@ -875,7 +880,7 @@ private PagedFlux listByInvoiceSectionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSection( @@ -895,7 +900,7 @@ public PagedIterable listByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSection( @@ -912,7 +917,7 @@ public PagedIterable listByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String billingAccountName) { @@ -957,7 +962,7 @@ private Mono> getWithResponseAsync(String bil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String billingAccountName, Context context) { @@ -998,7 +1003,7 @@ private Mono> getWithResponseAsync(String bil * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName) { @@ -1037,7 +1042,7 @@ public BillingSubscriptionInner get(String billingAccountName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse(String billingAccountName, Context context) { @@ -1053,7 +1058,7 @@ public Response getWithResponse(String billingAccountN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1106,7 +1111,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1155,7 +1160,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String billingAccountName, BillingSubscriptionInner parameters) { @@ -1196,7 +1201,7 @@ public BillingSubscriptionInner update(String billingAccountName, BillingSubscri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response updateWithResponse( @@ -1214,7 +1219,7 @@ public Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> moveWithResponseAsync( @@ -1268,7 +1273,7 @@ private Mono>> moveWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> moveWithResponseAsync( @@ -1318,7 +1323,7 @@ private Mono>> moveWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a billing subscription. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BillingSubscriptionInner> beginMoveAsync( @@ -1331,7 +1336,7 @@ private PollerFlux, BillingSubscriptionInne this.client.getHttpPipeline(), BillingSubscriptionInner.class, BillingSubscriptionInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -1345,7 +1350,7 @@ private PollerFlux, BillingSubscriptionInne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a billing subscription. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BillingSubscriptionInner> beginMoveAsync( @@ -1372,7 +1377,7 @@ private PollerFlux, BillingSubscriptionInne * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, BillingSubscriptionInner> beginMove( @@ -1391,7 +1396,7 @@ public SyncPoller, BillingSubscriptionInner * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, BillingSubscriptionInner> beginMove( @@ -1409,7 +1414,7 @@ public SyncPoller, BillingSubscriptionInner * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono moveAsync( @@ -1428,7 +1433,7 @@ private Mono moveAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono moveAsync( @@ -1484,7 +1489,8 @@ public BillingSubscriptionInner move( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateMoveWithResponseAsync( @@ -1537,7 +1543,8 @@ private Mono> valid * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateMoveWithResponseAsync( @@ -1586,7 +1593,7 @@ private Mono> valid * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono validateMoveAsync( @@ -1629,7 +1636,7 @@ public ValidateSubscriptionTransferEligibilityResultInner validateMove( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response validateMoveWithResponse( @@ -1644,7 +1651,8 @@ public Response validateMove * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerNextSinglePageAsync(String nextLink) { @@ -1680,7 +1688,8 @@ private Mono> listByCustomerNextSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerNextSinglePageAsync( @@ -1716,7 +1725,8 @@ private Mono> listByCustomerNextSinglePa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync(String nextLink) { @@ -1753,7 +1763,8 @@ private Mono> listByBillingAccountNextSi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( @@ -1789,7 +1800,8 @@ private Mono> listByBillingAccountNextSi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync(String nextLink) { @@ -1826,7 +1838,8 @@ private Mono> listByBillingProfileNextSi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( @@ -1862,7 +1875,8 @@ private Mono> listByBillingProfileNextSi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionNextSinglePageAsync(String nextLink) { @@ -1899,7 +1913,8 @@ private Mono> listByInvoiceSectionNextSi * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingSubscriptionsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingSubscriptionsImpl.java index 27b5d567d52b..9a86760c96b4 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingSubscriptionsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/BillingSubscriptionsImpl.java @@ -16,10 +16,9 @@ import com.azure.resourcemanager.billing.models.BillingSubscriptions; import com.azure.resourcemanager.billing.models.TransferBillingSubscriptionRequestProperties; import com.azure.resourcemanager.billing.models.ValidateSubscriptionTransferEligibilityResult; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class BillingSubscriptionsImpl implements BillingSubscriptions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingSubscriptionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(BillingSubscriptionsImpl.class); private final BillingSubscriptionsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/CustomersClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/CustomersClientImpl.java index 970999ba3929..a9226414e988 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/CustomersClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/CustomersClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.CustomersClient; import com.azure.resourcemanager.billing.fluent.models.CustomerInner; import com.azure.resourcemanager.billing.models.CustomerListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in CustomersClient. */ public final class CustomersClientImpl implements CustomersClient { - private final ClientLogger logger = new ClientLogger(CustomersClientImpl.class); - /** The proxy service used to perform REST calls. */ private final CustomersService service; @@ -134,7 +131,7 @@ Mono> listByBillingAccountNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -193,7 +190,7 @@ private Mono> listByBillingProfileSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -248,7 +245,7 @@ private Mono> listByBillingProfileSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -267,7 +264,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync(String billingAccountName, String billingProfileName) { @@ -291,7 +288,7 @@ private PagedFlux listByBillingProfileAsync(String billingAccount * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -310,7 +307,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName) { @@ -332,7 +329,7 @@ public PagedIterable listByBillingProfile(String billingAccountNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -352,7 +349,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -399,7 +396,7 @@ private Mono> listByBillingAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -442,7 +439,7 @@ private Mono> listByBillingAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -460,7 +457,7 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName) { @@ -483,7 +480,7 @@ private PagedFlux listByBillingAccountAsync(String billingAccount * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -501,7 +498,7 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName) { @@ -522,7 +519,7 @@ public PagedIterable listByBillingAccount(String billingAccountNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount( @@ -540,7 +537,7 @@ public PagedIterable listByBillingAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -586,7 +583,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -621,7 +618,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String customerName, String expand) { @@ -645,7 +642,7 @@ private Mono getAsync(String billingAccountName, String customerN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String customerName) { @@ -689,7 +686,7 @@ public CustomerInner get(String billingAccountName, String customerName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse( @@ -704,7 +701,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync(String nextLink) { @@ -741,7 +738,7 @@ private Mono> listByBillingProfileNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( @@ -777,7 +774,7 @@ private Mono> listByBillingProfileNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync(String nextLink) { @@ -814,7 +811,7 @@ private Mono> listByBillingAccountNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/CustomersImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/CustomersImpl.java index 4bdc72997dde..508b788504d3 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/CustomersImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/CustomersImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.fluent.models.CustomerInner; import com.azure.resourcemanager.billing.models.Customer; import com.azure.resourcemanager.billing.models.Customers; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class CustomersImpl implements Customers { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomersImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(CustomersImpl.class); private final CustomersClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/EnrollmentAccountsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/EnrollmentAccountsClientImpl.java index 4239f5be7586..fff0f4a99eae 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/EnrollmentAccountsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/EnrollmentAccountsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.EnrollmentAccountsClient; import com.azure.resourcemanager.billing.fluent.models.EnrollmentAccountSummaryInner; import com.azure.resourcemanager.billing.models.EnrollmentAccountListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in EnrollmentAccountsClient. */ public final class EnrollmentAccountsClientImpl implements EnrollmentAccountsClient { - private final ClientLogger logger = new ClientLogger(EnrollmentAccountsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final EnrollmentAccountsService service; @@ -96,7 +93,8 @@ Mono> listNext( * * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -129,7 +127,8 @@ private Mono> listSinglePageAsync() * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -160,7 +159,7 @@ private Mono> listSinglePageAsync(C * * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -174,7 +173,7 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -187,7 +186,7 @@ private PagedFlux listAsync(Context context) { * * @throws 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) public PagedIterable list() { @@ -201,7 +200,7 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable list(Context context) { @@ -215,7 +214,7 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String name) { @@ -243,7 +242,7 @@ private Mono> getWithResponseAsync(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String name, Context context) { @@ -269,7 +268,7 @@ private Mono> getWithResponseAsync(Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String name) { @@ -306,7 +305,7 @@ public EnrollmentAccountSummaryInner get(String name) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse(String name, Context context) { @@ -320,7 +319,8 @@ public Response getWithResponse(String name, Cont * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -356,7 +356,8 @@ private Mono> listNextSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/EnrollmentAccountsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/EnrollmentAccountsImpl.java index f30584f5519e..664f06270bf0 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/EnrollmentAccountsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/EnrollmentAccountsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.fluent.models.EnrollmentAccountSummaryInner; import com.azure.resourcemanager.billing.models.EnrollmentAccountSummary; import com.azure.resourcemanager.billing.models.EnrollmentAccounts; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class EnrollmentAccountsImpl implements EnrollmentAccounts { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EnrollmentAccountsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(EnrollmentAccountsImpl.class); private final EnrollmentAccountsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InstructionsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InstructionsClientImpl.java index f80d1a0aac5e..0c4a07d4d63b 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InstructionsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InstructionsClientImpl.java @@ -27,7 +27,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.InstructionsClient; import com.azure.resourcemanager.billing.fluent.models.InstructionInner; import com.azure.resourcemanager.billing.models.InstructionListResult; @@ -35,8 +34,6 @@ /** An instance of this class provides access to all the operations defined in InstructionsClient. */ public final class InstructionsClientImpl implements InstructionsClient { - private final ClientLogger logger = new ClientLogger(InstructionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final InstructionsService service; @@ -125,7 +122,8 @@ Mono> listByBillingProfileNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -178,7 +176,8 @@ private Mono> listByBillingProfileSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -222,7 +221,8 @@ private Mono> listByBillingProfileSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -241,7 +241,8 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -259,7 +260,8 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName) { @@ -275,7 +277,8 @@ public PagedIterable listByBillingProfile(String billingAccoun * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -292,7 +295,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -342,7 +345,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -388,7 +391,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -430,7 +433,7 @@ public InstructionInner get(String billingAccountName, String billingProfileName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse( @@ -449,7 +452,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> putWithResponseAsync( @@ -507,7 +510,7 @@ private Mono> putWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> putWithResponseAsync( @@ -565,7 +568,7 @@ private Mono> putWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono putAsync( @@ -612,7 +615,7 @@ public InstructionInner put( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response putWithResponse( @@ -632,7 +635,8 @@ public Response putWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync(String nextLink) { @@ -669,7 +673,8 @@ private Mono> listByBillingProfileNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InstructionsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InstructionsImpl.java index b41a5b565c99..33427d4197ec 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InstructionsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InstructionsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.fluent.models.InstructionInner; import com.azure.resourcemanager.billing.models.Instruction; import com.azure.resourcemanager.billing.models.Instructions; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class InstructionsImpl implements Instructions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InstructionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(InstructionsImpl.class); private final InstructionsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoiceSectionsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoiceSectionsClientImpl.java index ddbcf36b8cab..44f3f8765efd 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoiceSectionsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoiceSectionsClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.billing.fluent.InvoiceSectionsClient; @@ -40,8 +39,6 @@ /** An instance of this class provides access to all the operations defined in InvoiceSectionsClient. */ public final class InvoiceSectionsClientImpl implements InvoiceSectionsClient { - private final ClientLogger logger = new ClientLogger(InvoiceSectionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final InvoiceSectionsService service; @@ -131,7 +128,7 @@ Mono> listByBillingProfileNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -185,7 +182,7 @@ private Mono> listByBillingProfileSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -230,7 +227,7 @@ private Mono> listByBillingProfileSinglePageA * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -250,7 +247,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -269,7 +266,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -287,7 +284,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -305,7 +302,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -356,7 +353,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -403,7 +400,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( @@ -447,7 +444,7 @@ public InvoiceSectionInner get(String billingAccountName, String billingProfileN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse( @@ -466,7 +463,7 @@ public Response getWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 an invoice section along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -527,7 +524,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 an invoice section along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync( @@ -585,7 +582,7 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of an invoice section. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, InvoiceSectionInner> beginCreateOrUpdateAsync( @@ -602,7 +599,7 @@ private PollerFlux, InvoiceSectionInner> beginCr this.client.getHttpPipeline(), InvoiceSectionInner.class, InvoiceSectionInner.class, - Context.NONE); + this.client.getContext()); } /** @@ -617,7 +614,7 @@ private PollerFlux, InvoiceSectionInner> beginCr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of an invoice section. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, InvoiceSectionInner> beginCreateOrUpdateAsync( @@ -647,7 +644,7 @@ private PollerFlux, InvoiceSectionInner> beginCr * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, InvoiceSectionInner> beginCreateOrUpdate( @@ -671,7 +668,7 @@ public SyncPoller, InvoiceSectionInner> beginCre * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, InvoiceSectionInner> beginCreateOrUpdate( @@ -695,7 +692,7 @@ public SyncPoller, InvoiceSectionInner> beginCre * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 an invoice section on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -720,7 +717,7 @@ private Mono createOrUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 an invoice section on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -788,7 +785,7 @@ public InvoiceSectionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync(String nextLink) { @@ -825,7 +822,7 @@ private Mono> listByBillingProfileNextSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoiceSectionsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoiceSectionsImpl.java index 1552947cbe8d..e689e5a82dea 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoiceSectionsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoiceSectionsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.billing.fluent.models.InvoiceSectionInner; import com.azure.resourcemanager.billing.models.InvoiceSection; import com.azure.resourcemanager.billing.models.InvoiceSections; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class InvoiceSectionsImpl implements InvoiceSections { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceSectionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(InvoiceSectionsImpl.class); private final InvoiceSectionsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoicesClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoicesClientImpl.java index 3580b77b2e36..747bb5198b8c 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoicesClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoicesClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.billing.fluent.InvoicesClient; @@ -42,8 +41,6 @@ /** An instance of this class provides access to all the operations defined in InvoicesClient. */ public final class InvoicesClientImpl implements InvoicesClient { - private final ClientLogger logger = new ClientLogger(InvoicesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final InvoicesService service; @@ -241,7 +238,7 @@ Mono> listByBillingSubscriptionNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -300,7 +297,7 @@ private Mono> listByBillingAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -355,7 +352,7 @@ private Mono> listByBillingAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -376,7 +373,7 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -396,7 +393,7 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount( @@ -415,7 +412,7 @@ public PagedIterable listByBillingAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount( @@ -435,7 +432,7 @@ public PagedIterable listByBillingAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -500,7 +497,7 @@ private Mono> listByBillingProfileSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -565,7 +562,7 @@ private Mono> listByBillingProfileSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -589,7 +586,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -616,7 +613,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -637,7 +634,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -659,7 +656,8 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String billingAccountName, String invoiceName) { @@ -696,7 +694,8 @@ private Mono> getWithResponseAsync(String billingAccountN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -729,7 +728,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String invoiceName) { @@ -770,7 +769,7 @@ public InvoiceInner get(String billingAccountName, String invoiceName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse(String billingAccountName, String invoiceName, Context context) { @@ -785,7 +784,7 @@ public Response getWithResponse(String billingAccountName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByIdWithResponseAsync(String invoiceName) { @@ -815,7 +814,7 @@ private Mono> getByIdWithResponseAsync(String invoiceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByIdWithResponseAsync(String invoiceName, Context context) { @@ -842,7 +841,7 @@ private Mono> getByIdWithResponseAsync(String invoiceName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByIdAsync(String invoiceName) { @@ -881,7 +880,7 @@ public InvoiceInner getById(String invoiceName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getByIdWithResponse(String invoiceName, Context context) { @@ -898,7 +897,7 @@ public Response getByIdWithResponse(String invoiceName, Context co * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download an invoice along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> downloadInvoiceWithResponseAsync( @@ -947,7 +946,7 @@ private Mono>> downloadInvoiceWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download an invoice along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> downloadInvoiceWithResponseAsync( @@ -986,7 +985,7 @@ private Mono>> downloadInvoiceWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a URL to download an invoice. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DownloadUrlInner> beginDownloadInvoiceAsync( @@ -996,7 +995,11 @@ private PollerFlux, DownloadUrlInner> beginDownload return this .client .getLroResult( - mono, this.client.getHttpPipeline(), DownloadUrlInner.class, DownloadUrlInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + DownloadUrlInner.class, + DownloadUrlInner.class, + this.client.getContext()); } /** @@ -1010,7 +1013,7 @@ private PollerFlux, DownloadUrlInner> beginDownload * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a URL to download an invoice. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DownloadUrlInner> beginDownloadInvoiceAsync( @@ -1034,7 +1037,7 @@ private PollerFlux, DownloadUrlInner> beginDownload * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, DownloadUrlInner> beginDownloadInvoice( @@ -1053,7 +1056,7 @@ public SyncPoller, DownloadUrlInner> beginDownloadI * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, DownloadUrlInner> beginDownloadInvoice( @@ -1071,7 +1074,7 @@ public SyncPoller, DownloadUrlInner> beginDownloadI * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download an invoice on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadInvoiceAsync( @@ -1092,7 +1095,7 @@ private Mono downloadInvoiceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download an invoice on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadInvoiceAsync( @@ -1148,7 +1151,8 @@ public DownloadUrlInner downloadInvoice( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> downloadMultipleBillingProfileInvoicesWithResponseAsync( @@ -1188,7 +1192,8 @@ private Mono>> downloadMultipleBillingProfileInvoicesW * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> downloadMultipleBillingProfileInvoicesWithResponseAsync( @@ -1224,7 +1229,8 @@ private Mono>> downloadMultipleBillingProfileInvoicesW * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} 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) private PollerFlux, DownloadUrlInner> beginDownloadMultipleBillingProfileInvoicesAsync( @@ -1234,7 +1240,11 @@ private PollerFlux, DownloadUrlInner> beginDownload return this .client .getLroResult( - mono, this.client.getHttpPipeline(), DownloadUrlInner.class, DownloadUrlInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + DownloadUrlInner.class, + DownloadUrlInner.class, + this.client.getContext()); } /** @@ -1248,7 +1258,8 @@ private PollerFlux, DownloadUrlInner> beginDownload * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} 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) private PollerFlux, DownloadUrlInner> beginDownloadMultipleBillingProfileInvoicesAsync( @@ -1272,7 +1283,8 @@ private PollerFlux, DownloadUrlInner> beginDownload * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, DownloadUrlInner> beginDownloadMultipleBillingProfileInvoices( @@ -1291,7 +1303,8 @@ public SyncPoller, DownloadUrlInner> beginDownloadM * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, DownloadUrlInner> beginDownloadMultipleBillingProfileInvoices( @@ -1310,7 +1323,8 @@ public SyncPoller, DownloadUrlInner> beginDownloadM * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadMultipleBillingProfileInvoicesAsync( @@ -1331,7 +1345,8 @@ private Mono downloadMultipleBillingProfileInvoicesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadMultipleBillingProfileInvoicesAsync( @@ -1386,7 +1401,7 @@ public DownloadUrlInner downloadMultipleBillingProfileInvoices( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingSubscriptionSinglePageAsync( @@ -1445,7 +1460,7 @@ private Mono> listByBillingSubscriptionSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingSubscriptionSinglePageAsync( @@ -1500,7 +1515,7 @@ private Mono> listByBillingSubscriptionSinglePageAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingSubscriptionAsync(String periodStartDate, String periodEndDate) { @@ -1518,7 +1533,7 @@ private PagedFlux listByBillingSubscriptionAsync(String periodStar * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingSubscriptionAsync( @@ -1536,7 +1551,7 @@ private PagedFlux listByBillingSubscriptionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingSubscription(String periodStartDate, String periodEndDate) { @@ -1552,7 +1567,7 @@ public PagedIterable listByBillingSubscription(String periodStartD * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingSubscription( @@ -1567,7 +1582,8 @@ public PagedIterable listByBillingSubscription( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getBySubscriptionAndInvoiceIdWithResponseAsync(String invoiceName) { @@ -1610,7 +1626,8 @@ private Mono> getBySubscriptionAndInvoiceIdWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getBySubscriptionAndInvoiceIdWithResponseAsync( @@ -1645,7 +1662,7 @@ private Mono> getBySubscriptionAndInvoiceIdWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getBySubscriptionAndInvoiceIdAsync(String invoiceName) { @@ -1682,7 +1699,7 @@ public InvoiceInner getBySubscriptionAndInvoiceId(String invoiceName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getBySubscriptionAndInvoiceIdWithResponse(String invoiceName, Context context) { @@ -1697,7 +1714,7 @@ public Response getBySubscriptionAndInvoiceIdWithResponse(String i * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download an invoice along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> downloadBillingSubscriptionInvoiceWithResponseAsync( @@ -1746,7 +1763,7 @@ private Mono>> downloadBillingSubscriptionInvoiceWithR * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download an invoice along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> downloadBillingSubscriptionInvoiceWithResponseAsync( @@ -1791,7 +1808,7 @@ private Mono>> downloadBillingSubscriptionInvoiceWithR * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a URL to download an invoice. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DownloadUrlInner> beginDownloadBillingSubscriptionInvoiceAsync( @@ -1801,7 +1818,11 @@ private PollerFlux, DownloadUrlInner> beginDownload return this .client .getLroResult( - mono, this.client.getHttpPipeline(), DownloadUrlInner.class, DownloadUrlInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + DownloadUrlInner.class, + DownloadUrlInner.class, + this.client.getContext()); } /** @@ -1813,7 +1834,7 @@ private PollerFlux, DownloadUrlInner> beginDownload * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} for polling of a URL to download an invoice. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DownloadUrlInner> beginDownloadBillingSubscriptionInvoiceAsync( @@ -1835,7 +1856,7 @@ private PollerFlux, DownloadUrlInner> beginDownload * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, DownloadUrlInner> beginDownloadBillingSubscriptionInvoice( @@ -1852,7 +1873,7 @@ public SyncPoller, DownloadUrlInner> beginDownloadB * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, DownloadUrlInner> beginDownloadBillingSubscriptionInvoice( @@ -1868,7 +1889,7 @@ public SyncPoller, DownloadUrlInner> beginDownloadB * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download an invoice on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadBillingSubscriptionInvoiceAsync(String invoiceName, String downloadToken) { @@ -1886,7 +1907,7 @@ private Mono downloadBillingSubscriptionInvoiceAsync(String in * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download an invoice on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadBillingSubscriptionInvoiceAsync( @@ -1935,7 +1956,8 @@ public DownloadUrlInner downloadBillingSubscriptionInvoice( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> downloadMultipleBillingSubscriptionInvoicesWithResponseAsync( @@ -1979,7 +2001,8 @@ private Mono>> downloadMultipleBillingSubscriptionInvo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> downloadMultipleBillingSubscriptionInvoicesWithResponseAsync( @@ -2014,7 +2037,8 @@ private Mono>> downloadMultipleBillingSubscriptionInvo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} 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) private PollerFlux, DownloadUrlInner> @@ -2024,7 +2048,11 @@ private Mono>> downloadMultipleBillingSubscriptionInvo return this .client .getLroResult( - mono, this.client.getHttpPipeline(), DownloadUrlInner.class, DownloadUrlInner.class, Context.NONE); + mono, + this.client.getHttpPipeline(), + DownloadUrlInner.class, + DownloadUrlInner.class, + this.client.getContext()); } /** @@ -2035,7 +2063,8 @@ private Mono>> downloadMultipleBillingSubscriptionInvo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PollerFlux} 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) private PollerFlux, DownloadUrlInner> @@ -2056,7 +2085,8 @@ private Mono>> downloadMultipleBillingSubscriptionInvo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, DownloadUrlInner> beginDownloadMultipleBillingSubscriptionInvoices( @@ -2072,7 +2102,8 @@ public SyncPoller, DownloadUrlInner> beginDownloadM * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public SyncPoller, DownloadUrlInner> beginDownloadMultipleBillingSubscriptionInvoices( @@ -2087,7 +2118,8 @@ public SyncPoller, DownloadUrlInner> beginDownloadM * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadMultipleBillingSubscriptionInvoicesAsync(List downloadUrls) { @@ -2104,7 +2136,8 @@ private Mono downloadMultipleBillingSubscriptionInvoicesAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono downloadMultipleBillingSubscriptionInvoicesAsync( @@ -2150,7 +2183,7 @@ public DownloadUrlInner downloadMultipleBillingSubscriptionInvoices(List * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync(String nextLink) { @@ -2187,7 +2220,7 @@ private Mono> listByBillingAccountNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( @@ -2223,7 +2256,7 @@ private Mono> listByBillingAccountNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync(String nextLink) { @@ -2260,7 +2293,7 @@ private Mono> listByBillingProfileNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( @@ -2296,7 +2329,7 @@ private Mono> listByBillingProfileNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingSubscriptionNextSinglePageAsync(String nextLink) { @@ -2333,7 +2366,7 @@ private Mono> listByBillingSubscriptionNextSinglePag * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingSubscriptionNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoicesImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoicesImpl.java index 76d0d8511598..4b969172d612 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoicesImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/InvoicesImpl.java @@ -15,11 +15,10 @@ import com.azure.resourcemanager.billing.models.DownloadUrl; import com.azure.resourcemanager.billing.models.Invoice; import com.azure.resourcemanager.billing.models.Invoices; -import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.List; public final class InvoicesImpl implements Invoices { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoicesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(InvoicesImpl.class); private final InvoicesClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/OperationsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/OperationsClientImpl.java index 2c8dd394d526..0642fc34fac1 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/OperationsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/OperationsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.OperationsClient; import com.azure.resourcemanager.billing.fluent.models.OperationInner; import com.azure.resourcemanager.billing.models.OperationListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public final class OperationsClientImpl implements OperationsClient { - private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationsService service; @@ -85,7 +82,8 @@ Mono> listNext( * * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -118,7 +116,8 @@ private Mono> listSinglePageAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -149,7 +148,8 @@ private Mono> listSinglePageAsync(Context context) * * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -163,7 +163,8 @@ private PagedFlux listAsync() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -176,7 +177,8 @@ private PagedFlux listAsync(Context context) { * * @throws 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) public PagedIterable list() { @@ -190,7 +192,8 @@ public PagedIterable list() { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable list(Context context) { @@ -204,7 +207,8 @@ public PagedIterable list(Context context) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -240,7 +244,8 @@ private Mono> listNextSinglePageAsync(String nextL * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/OperationsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/OperationsImpl.java index 03e76f1aa099..bfb38b193ea8 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/OperationsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/OperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.billing.fluent.models.OperationInner; import com.azure.resourcemanager.billing.models.Operation; import com.azure.resourcemanager.billing.models.Operations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationsImpl implements Operations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); private final OperationsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/PoliciesClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/PoliciesClientImpl.java index d96b4f5761a0..e6067ca23605 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/PoliciesClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/PoliciesClientImpl.java @@ -23,7 +23,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.PoliciesClient; import com.azure.resourcemanager.billing.fluent.models.CustomerPolicyInner; import com.azure.resourcemanager.billing.fluent.models.PolicyInner; @@ -31,8 +30,6 @@ /** An instance of this class provides access to all the operations defined in PoliciesClient. */ public final class PoliciesClientImpl implements PoliciesClient { - private final ClientLogger logger = new ClientLogger(PoliciesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final PoliciesService service; @@ -124,7 +121,7 @@ Mono> updateCustomer( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingProfileWithResponseAsync( @@ -169,7 +166,7 @@ private Mono> getByBillingProfileWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByBillingProfileWithResponseAsync( @@ -205,7 +202,7 @@ private Mono> getByBillingProfileWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByBillingProfileAsync(String billingAccountName, String billingProfileName) { @@ -246,7 +243,7 @@ public PolicyInner getByBillingProfile(String billingAccountName, String billing * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getByBillingProfileWithResponse( @@ -264,7 +261,7 @@ public Response getByBillingProfileWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -316,7 +313,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -364,7 +361,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync( @@ -408,7 +405,7 @@ public PolicyInner update(String billingAccountName, String billingProfileName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response updateWithResponse( @@ -425,7 +422,7 @@ public Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByCustomerWithResponseAsync( @@ -464,7 +461,7 @@ private Mono> getByCustomerWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByCustomerWithResponseAsync( @@ -498,7 +495,7 @@ private Mono> getByCustomerWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByCustomerAsync(String billingAccountName, String customerName) { @@ -539,7 +536,7 @@ public CustomerPolicyInner getByCustomer(String billingAccountName, String custo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getByCustomerWithResponse( @@ -557,7 +554,7 @@ public Response getByCustomerWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateCustomerWithResponseAsync( @@ -608,7 +605,7 @@ private Mono> updateCustomerWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateCustomerWithResponseAsync( @@ -649,7 +646,7 @@ private Mono> updateCustomerWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateCustomerAsync( @@ -694,7 +691,7 @@ public CustomerPolicyInner updateCustomer( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response updateCustomerWithResponse( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/PoliciesImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/PoliciesImpl.java index 5ff31524a507..389774226dbe 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/PoliciesImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/PoliciesImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.billing.models.CustomerPolicy; import com.azure.resourcemanager.billing.models.Policies; import com.azure.resourcemanager.billing.models.Policy; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class PoliciesImpl implements Policies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PoliciesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(PoliciesImpl.class); private final PoliciesClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ProductsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ProductsClientImpl.java index 0b77f71f1b35..52bd2b7ca707 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ProductsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ProductsClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.ProductsClient; import com.azure.resourcemanager.billing.fluent.models.ProductInner; import com.azure.resourcemanager.billing.fluent.models.ValidateProductTransferEligibilityResultInner; @@ -39,8 +38,6 @@ /** An instance of this class provides access to all the operations defined in ProductsClient. */ public final class ProductsClientImpl implements ProductsClient { - private final ClientLogger logger = new ClientLogger(ProductsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final ProductsService service; @@ -222,7 +219,7 @@ Mono> listByInvoiceSectionNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerSinglePageAsync( @@ -270,7 +267,7 @@ private Mono> listByCustomerSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerSinglePageAsync( @@ -313,7 +310,7 @@ private Mono> listByCustomerSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByCustomerAsync(String billingAccountName, String customerName) { @@ -332,7 +329,7 @@ private PagedFlux listByCustomerAsync(String billingAccountName, S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByCustomerAsync( @@ -351,7 +348,7 @@ private PagedFlux listByCustomerAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByCustomer(String billingAccountName, String customerName) { @@ -368,7 +365,7 @@ public PagedIterable listByCustomer(String billingAccountName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByCustomer(String billingAccountName, String customerName, Context context) { @@ -386,7 +383,7 @@ public PagedIterable listByCustomer(String billingAccountName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -433,7 +430,7 @@ private Mono> listByBillingAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -475,7 +472,7 @@ private Mono> listByBillingAccountSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName, String filter) { @@ -492,7 +489,7 @@ private PagedFlux listByBillingAccountAsync(String billingAccountN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName) { @@ -514,7 +511,7 @@ private PagedFlux listByBillingAccountAsync(String billingAccountN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -532,7 +529,7 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName) { @@ -552,7 +549,7 @@ public PagedIterable listByBillingAccount(String billingAccountNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName, String filter, Context context) { @@ -571,7 +568,7 @@ public PagedIterable listByBillingAccount(String billingAccountNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -629,7 +626,7 @@ private Mono> listByBillingProfileSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -677,7 +674,7 @@ private Mono> listByBillingProfileSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -696,7 +693,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync(String billingAccountName, String billingProfileName) { @@ -719,7 +716,7 @@ private PagedFlux listByBillingProfileAsync(String billingAccountN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -738,7 +735,7 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName) { @@ -759,7 +756,7 @@ public PagedIterable listByBillingProfile(String billingAccountNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -780,7 +777,7 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionSinglePageAsync( @@ -844,7 +841,7 @@ private Mono> listByInvoiceSectionSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionSinglePageAsync( @@ -908,7 +905,7 @@ private Mono> listByInvoiceSectionSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionAsync( @@ -929,7 +926,7 @@ private PagedFlux listByInvoiceSectionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionAsync( @@ -955,7 +952,7 @@ private PagedFlux listByInvoiceSectionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceSectionAsync( @@ -981,7 +978,7 @@ private PagedFlux listByInvoiceSectionAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSection( @@ -1005,7 +1002,7 @@ public PagedIterable listByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoiceSection( @@ -1027,7 +1024,7 @@ public PagedIterable listByInvoiceSection( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String billingAccountName, String productName) { @@ -1064,7 +1061,7 @@ private Mono> getWithResponseAsync(String billingAccountN * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( @@ -1097,7 +1094,7 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String billingAccountName, String productName) { @@ -1138,7 +1135,7 @@ public ProductInner get(String billingAccountName, String productName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response getWithResponse(String billingAccountName, String productName, Context context) { @@ -1155,7 +1152,7 @@ public Response getWithResponse(String billingAccountName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1206,7 +1203,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync( @@ -1247,7 +1244,7 @@ private Mono> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String billingAccountName, String productName, ProductInner parameters) { @@ -1290,7 +1287,7 @@ public ProductInner update(String billingAccountName, String productName, Produc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response updateWithResponse( @@ -1309,7 +1306,7 @@ public Response updateWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono moveWithResponseAsync( @@ -1361,7 +1358,7 @@ private Mono moveWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono moveWithResponseAsync( @@ -1402,7 +1399,7 @@ private Mono moveWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono moveAsync( @@ -1468,7 +1465,8 @@ public ProductsMoveResponse moveWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateMoveWithResponseAsync( @@ -1520,7 +1518,8 @@ private Mono> validateMo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> validateMoveWithResponseAsync( @@ -1562,7 +1561,7 @@ private Mono> validateMo * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono validateMoveAsync( @@ -1609,7 +1608,7 @@ public ValidateProductTransferEligibilityResultInner validateMove( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public Response validateMoveWithResponse( @@ -1624,7 +1623,7 @@ public Response validateMoveWithR * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerNextSinglePageAsync(String nextLink) { @@ -1660,7 +1659,7 @@ private Mono> listByCustomerNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByCustomerNextSinglePageAsync(String nextLink, Context context) { @@ -1695,7 +1694,7 @@ private Mono> listByCustomerNextSinglePageAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync(String nextLink) { @@ -1732,7 +1731,7 @@ private Mono> listByBillingAccountNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( @@ -1768,7 +1767,7 @@ private Mono> listByBillingAccountNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync(String nextLink) { @@ -1805,7 +1804,7 @@ private Mono> listByBillingProfileNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( @@ -1841,7 +1840,7 @@ private Mono> listByBillingProfileNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionNextSinglePageAsync(String nextLink) { @@ -1878,7 +1877,7 @@ private Mono> listByInvoiceSectionNextSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSectionNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ProductsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ProductsImpl.java index 690758ee4553..975cf9069a72 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ProductsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ProductsImpl.java @@ -17,10 +17,9 @@ import com.azure.resourcemanager.billing.models.ProductsMoveResponse; import com.azure.resourcemanager.billing.models.TransferProductRequestProperties; import com.azure.resourcemanager.billing.models.ValidateProductTransferEligibilityResult; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ProductsImpl implements Products { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ProductsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ProductsImpl.class); private final ProductsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ReservationsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ReservationsClientImpl.java index b3727f3364e3..b514816ac7d0 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ReservationsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ReservationsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.ReservationsClient; import com.azure.resourcemanager.billing.fluent.models.ReservationInner; import com.azure.resourcemanager.billing.models.ReservationsListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in ReservationsClient. */ public final class ReservationsClientImpl implements ReservationsClient { - private final ClientLogger logger = new ClientLogger(ReservationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final ReservationsService service; @@ -126,7 +123,8 @@ Mono> listByBillingProfileNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -183,7 +181,8 @@ private Mono> listByBillingAccountSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountSinglePageAsync( @@ -241,7 +240,8 @@ private Mono> listByBillingAccountSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -259,7 +259,8 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync(String billingAccountName) { @@ -287,7 +288,8 @@ private PagedFlux listByBillingAccountAsync(String billingAcco * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingAccountAsync( @@ -311,7 +313,8 @@ private PagedFlux listByBillingAccountAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount(String billingAccountName) { @@ -337,7 +340,8 @@ public PagedIterable listByBillingAccount(String billingAccoun * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingAccount( @@ -365,7 +369,8 @@ public PagedIterable listByBillingAccount( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -433,7 +438,8 @@ private Mono> listByBillingProfileSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileSinglePageAsync( @@ -498,7 +504,8 @@ private Mono> listByBillingProfileSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -523,7 +530,8 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -554,7 +562,8 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByBillingProfileAsync( @@ -580,7 +589,8 @@ private PagedFlux listByBillingProfileAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName) { @@ -608,7 +618,8 @@ public PagedIterable listByBillingProfile(String billingAccoun * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByBillingProfile( @@ -631,7 +642,8 @@ public PagedIterable listByBillingProfile( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync(String nextLink) { @@ -668,7 +680,8 @@ private Mono> listByBillingAccountNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingAccountNextSinglePageAsync( @@ -704,7 +717,8 @@ private Mono> listByBillingAccountNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync(String nextLink) { @@ -741,7 +755,8 @@ private Mono> listByBillingProfileNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link + * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByBillingProfileNextSinglePageAsync( diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ReservationsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ReservationsImpl.java index f0e4a5bde6c1..9c1c5969fe4a 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ReservationsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/ReservationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.billing.fluent.models.ReservationInner; import com.azure.resourcemanager.billing.models.Reservation; import com.azure.resourcemanager.billing.models.Reservations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ReservationsImpl implements Reservations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReservationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ReservationsImpl.class); private final ReservationsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/TransactionsClientImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/TransactionsClientImpl.java index a9fbee359a79..708aa27c524b 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/TransactionsClientImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/TransactionsClientImpl.java @@ -25,7 +25,6 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.TransactionsClient; import com.azure.resourcemanager.billing.fluent.models.TransactionInner; import com.azure.resourcemanager.billing.models.TransactionListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in TransactionsClient. */ public final class TransactionsClientImpl implements TransactionsClient { - private final ClientLogger logger = new ClientLogger(TransactionsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final TransactionsService service; @@ -90,7 +87,7 @@ Mono> listByInvoiceNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSinglePageAsync( @@ -137,7 +134,7 @@ private Mono> listByInvoiceSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceSinglePageAsync( @@ -179,7 +176,7 @@ private Mono> listByInvoiceSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceAsync(String billingAccountName, String invoiceName) { @@ -197,7 +194,7 @@ private PagedFlux listByInvoiceAsync(String billingAccountName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByInvoiceAsync( @@ -215,7 +212,7 @@ private PagedFlux listByInvoiceAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoice(String billingAccountName, String invoiceName) { @@ -231,7 +228,7 @@ public PagedIterable listByInvoice(String billingAccountName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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) public PagedIterable listByInvoice( @@ -246,7 +243,7 @@ public PagedIterable listByInvoice( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceNextSinglePageAsync(String nextLink) { @@ -282,7 +279,7 @@ private Mono> listByInvoiceNextSinglePageAsync(S * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByInvoiceNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/TransactionsImpl.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/TransactionsImpl.java index 5d505fc21058..93d5a0882b4f 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/TransactionsImpl.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/implementation/TransactionsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.billing.fluent.models.TransactionInner; import com.azure.resourcemanager.billing.models.Transaction; import com.azure.resourcemanager.billing.models.Transactions; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class TransactionsImpl implements Transactions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TransactionsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(TransactionsImpl.class); private final TransactionsClient innerClient; diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Address.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Address.java index b050b59356ac..2b909d3af6bc 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Address.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Address.java @@ -28,7 +28,7 @@ public interface Address { * @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}. */ Response validateWithResponse(AddressDetails address, Context context); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AddressDetails.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AddressDetails.java index 1bac18f0a50c..d46c6a93b845 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AddressDetails.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AddressDetails.java @@ -6,14 +6,11 @@ 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; /** Address details. */ @Fluent public final class AddressDetails { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AddressDetails.class); - /* * First name. */ @@ -385,14 +382,16 @@ public AddressDetails withPhoneNumber(String phoneNumber) { */ public void validate() { if (addressLine1() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property addressLine1 in model AddressDetails")); } if (country() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property country in model AddressDetails")); } } + + private static final ClientLogger LOGGER = new ClientLogger(AddressDetails.class); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Agreement.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Agreement.java index e6a183f3a8f5..fde5b5b32687 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Agreement.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Agreement.java @@ -52,6 +52,14 @@ public interface Agreement { */ AcceptanceMode acceptanceMode(); + /** + * Gets the billingProfileInfo property: The list of billing profiles associated with agreement and present only for + * specific agreements. + * + * @return the billingProfileInfo value. + */ + BillingProfileInfo billingProfileInfo(); + /** * Gets 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/models/AgreementListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AgreementListResult.java index 211b66737c84..42a06eb445fd 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AgreementListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AgreementListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.AgreementInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Result of listing agreements. */ @Immutable public final class AgreementListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AgreementListResult.class); - /* * The list of agreements. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Agreements.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Agreements.java index 1585663af468..9e5516d07c14 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Agreements.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Agreements.java @@ -17,7 +17,7 @@ public interface Agreements { * @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}. */ PagedIterable listByBillingAccount(String billingAccountName); @@ -30,7 +30,7 @@ public interface Agreements { * @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}. */ PagedIterable listByBillingAccount(String billingAccountName, String expand, Context context); @@ -56,7 +56,7 @@ public interface Agreements { * @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}. */ Response getWithResponse( String billingAccountName, String agreementName, String expand, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Amount.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Amount.java index e835dfc0d8f7..6bee6e776f83 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Amount.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Amount.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 amount. */ @Fluent public final class Amount { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Amount.class); - /* * The currency for the amount value. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AvailableBalances.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AvailableBalances.java index db3cb67b29bb..cc1701bd012f 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AvailableBalances.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AvailableBalances.java @@ -34,7 +34,7 @@ public interface AvailableBalances { * @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}. */ Response getWithResponse(String billingAccountName, String billingProfileName, Context context); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AzurePlan.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AzurePlan.java index afd025f54c73..504951209b6e 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AzurePlan.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/AzurePlan.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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; /** Details of the Azure plan. */ @Fluent public final class AzurePlan { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AzurePlan.class); - /* * The sku id. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccountListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccountListResult.java index 1e4830e58ee3..bff734a06927 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccountListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccountListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.BillingAccountInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of billing accounts. */ @Immutable public final class BillingAccountListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingAccountListResult.class); - /* * The list of billing accounts. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccountUpdateRequest.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccountUpdateRequest.java index acb97373c28d..a3e0b65b6e60 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccountUpdateRequest.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccountUpdateRequest.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.BillingAccountProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The request properties of the billing account that can be updated. */ @Fluent public final class BillingAccountUpdateRequest { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingAccountUpdateRequest.class); - /* * A billing property. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccounts.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccounts.java index fbfbd069beed..a6246552a4f1 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccounts.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingAccounts.java @@ -15,7 +15,7 @@ public interface BillingAccounts { * * @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}. */ PagedIterable list(); @@ -27,7 +27,7 @@ public interface BillingAccounts { * @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}. */ PagedIterable list(String expand, Context context); @@ -51,7 +51,7 @@ public interface BillingAccounts { * @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}. */ Response getWithResponse(String billingAccountName, String expand, Context context); @@ -90,7 +90,8 @@ public interface BillingAccounts { * @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}. */ PagedIterable listInvoiceSectionsByCreateSubscriptionPermission( String billingAccountName); @@ -104,7 +105,8 @@ PagedIterable listInvoiceSectionsByCreate * @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}. */ PagedIterable listInvoiceSectionsByCreateSubscriptionPermission( String billingAccountName, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPeriods.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPeriods.java index e2b820043aa7..91f0c80bb244 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPeriods.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPeriods.java @@ -17,7 +17,7 @@ public interface BillingPeriods { * * @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}. */ PagedIterable list(); @@ -36,7 +36,7 @@ public interface BillingPeriods { * @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}. */ PagedIterable list(String filter, String skiptoken, Integer top, Context context); @@ -61,7 +61,7 @@ public interface BillingPeriods { * @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}. */ Response getWithResponse(String billingPeriodName, Context context); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPeriodsListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPeriodsListResult.java index eb1b669895b8..dcda594e7ae6 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPeriodsListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPeriodsListResult.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.BillingPeriodInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -16,8 +14,6 @@ */ @Immutable public final class BillingPeriodsListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPeriodsListResult.class); - /* * The list of billing periods. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPermissions.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPermissions.java index d77726f5684d..db63bcc0dbb6 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPermissions.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPermissions.java @@ -17,7 +17,8 @@ public interface BillingPermissions { * @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}. */ PagedIterable listByCustomer(String billingAccountName, String customerName); @@ -30,7 +31,8 @@ public interface BillingPermissions { * @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}. */ PagedIterable listByCustomer( String billingAccountName, String customerName, Context context); @@ -42,7 +44,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}. */ PagedIterable listByBillingAccount(String billingAccountName); @@ -54,7 +57,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}. */ PagedIterable listByBillingAccount(String billingAccountName, Context context); @@ -67,7 +71,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}. */ PagedIterable listByInvoiceSections( String billingAccountName, String billingProfileName, String invoiceSectionName); @@ -82,7 +87,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}. */ PagedIterable listByInvoiceSections( String billingAccountName, String billingProfileName, String invoiceSectionName, Context context); @@ -95,7 +101,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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName); @@ -109,7 +116,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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPermissionsListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPermissionsListResult.java index b33bb19f409e..c854612b4f3a 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPermissionsListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingPermissionsListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.BillingPermissionsPropertiesInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Result of list billingPermissions a caller has on a billing account. */ @Immutable public final class BillingPermissionsListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingPermissionsListResult.class); - /* * The list of billingPermissions a caller has on a billing account. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfileInfo.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfileInfo.java new file mode 100644 index 000000000000..fbb04a3f8fa0 --- /dev/null +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfileInfo.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.billing.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Details about billing profile associated with agreement and available only for specific agreements. */ +@Fluent +public final class BillingProfileInfo { + /* + * The unique identifier for the billing profile. + */ + @JsonProperty(value = "billingProfileId") + private String billingProfileId; + + /* + * The name of the billing profile + */ + @JsonProperty(value = "billingProfileDisplayName") + private String billingProfileDisplayName; + + /* + * Billing account name. This property is available for a specific type of + * agreement. + */ + @JsonProperty(value = "indirectRelationshipOrganizationName") + private String indirectRelationshipOrganizationName; + + /** + * Get the billingProfileId property: The unique identifier for the billing profile. + * + * @return the billingProfileId value. + */ + public String billingProfileId() { + return this.billingProfileId; + } + + /** + * Set the billingProfileId property: The unique identifier for the billing profile. + * + * @param billingProfileId the billingProfileId value to set. + * @return the BillingProfileInfo object itself. + */ + public BillingProfileInfo withBillingProfileId(String billingProfileId) { + this.billingProfileId = billingProfileId; + return this; + } + + /** + * Get the billingProfileDisplayName property: The name of the billing profile. + * + * @return the billingProfileDisplayName value. + */ + public String billingProfileDisplayName() { + return this.billingProfileDisplayName; + } + + /** + * Set the billingProfileDisplayName property: The name of the billing profile. + * + * @param billingProfileDisplayName the billingProfileDisplayName value to set. + * @return the BillingProfileInfo object itself. + */ + public BillingProfileInfo withBillingProfileDisplayName(String billingProfileDisplayName) { + this.billingProfileDisplayName = billingProfileDisplayName; + return this; + } + + /** + * Get the indirectRelationshipOrganizationName property: Billing account name. This property is available for a + * specific type of agreement. + * + * @return the indirectRelationshipOrganizationName value. + */ + public String indirectRelationshipOrganizationName() { + return this.indirectRelationshipOrganizationName; + } + + /** + * Set the indirectRelationshipOrganizationName property: Billing account name. This property is available for a + * specific type of agreement. + * + * @param indirectRelationshipOrganizationName the indirectRelationshipOrganizationName value to set. + * @return the BillingProfileInfo object itself. + */ + public BillingProfileInfo withIndirectRelationshipOrganizationName(String indirectRelationshipOrganizationName) { + this.indirectRelationshipOrganizationName = indirectRelationshipOrganizationName; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfileListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfileListResult.java index d04b645306ba..3cf255c50a81 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfileListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfileListResult.java @@ -5,23 +5,25 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.BillingProfileInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of billing profiles. */ @Immutable public final class BillingProfileListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingProfileListResult.class); - /* * The list of billing profiles. */ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) private List value; + /* + * Total number of records. + */ + @JsonProperty(value = "totalCount", access = JsonProperty.Access.WRITE_ONLY) + private Integer totalCount; + /* * The link (url) to the next page of results. */ @@ -37,6 +39,15 @@ public List value() { return this.value; } + /** + * Get the totalCount property: Total number of records. + * + * @return the totalCount value. + */ + public Integer totalCount() { + return this.totalCount; + } + /** * Get the nextLink property: The link (url) to the next page of results. * diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfiles.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfiles.java index 963647c7ca36..9898390356a3 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfiles.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfiles.java @@ -19,7 +19,7 @@ public interface BillingProfiles { * @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}. */ PagedIterable listByBillingAccount(String billingAccountName); @@ -33,7 +33,7 @@ public interface BillingProfiles { * @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}. */ PagedIterable listByBillingAccount(String billingAccountName, String expand, Context context); @@ -61,7 +61,7 @@ public interface BillingProfiles { * @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}. */ Response getWithResponse( String billingAccountName, String billingProfileName, String expand, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfilesCreateOrUpdateHeaders.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfilesCreateOrUpdateHeaders.java index 0e3de662525e..edc26dc995b6 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfilesCreateOrUpdateHeaders.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfilesCreateOrUpdateHeaders.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 BillingProfilesCreateOrUpdateHeaders model. */ @Fluent public final class BillingProfilesCreateOrUpdateHeaders { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingProfilesCreateOrUpdateHeaders.class); - /* * The Retry-After property. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfilesOnExpand.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfilesOnExpand.java index 973e9d0a6a5a..5b3e008ab32d 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfilesOnExpand.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProfilesOnExpand.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.BillingProfileInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,8 +15,6 @@ */ @Fluent public final class BillingProfilesOnExpand { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingProfilesOnExpand.class); - /* * Indicates whether there are more billing profiles than the ones listed * in this collection. The collection lists a maximum of 50 billing diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProperties.java index f14257349f5c..13c0aa0f7356 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProperties.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingProperties.java @@ -28,7 +28,7 @@ public interface BillingProperties { * @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}. */ Response getWithResponse(Context context); @@ -53,7 +53,7 @@ public interface BillingProperties { * @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}. */ Response updateWithResponse(BillingPropertyInner parameters, Context context); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleAssignmentListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleAssignmentListResult.java index c6af8ad08b55..0c1bafbbf125 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleAssignmentListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleAssignmentListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.BillingRoleAssignmentInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of role assignments. */ @Immutable public final class BillingRoleAssignmentListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingRoleAssignmentListResult.class); - /* * The list of role assignments. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleAssignments.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleAssignments.java index db514c419c63..0fe32a1afbf8 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleAssignments.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleAssignments.java @@ -33,7 +33,7 @@ public interface BillingRoleAssignments { * @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}. */ Response getByBillingAccountWithResponse( String billingAccountName, String billingRoleAssignmentName, Context context); @@ -61,7 +61,7 @@ Response getByBillingAccountWithResponse( * @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}. */ Response deleteByBillingAccountWithResponse( String billingAccountName, String billingRoleAssignmentName, Context context); @@ -97,7 +97,7 @@ BillingRoleAssignment getByInvoiceSection( * @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}. */ Response getByInvoiceSectionWithResponse( String billingAccountName, @@ -137,7 +137,7 @@ BillingRoleAssignment deleteByInvoiceSection( * @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}. */ Response deleteByInvoiceSectionWithResponse( String billingAccountName, @@ -172,7 +172,7 @@ BillingRoleAssignment getByBillingProfile( * @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}. */ Response getByBillingProfileWithResponse( String billingAccountName, String billingProfileName, String billingRoleAssignmentName, Context context); @@ -203,7 +203,7 @@ BillingRoleAssignment deleteByBillingProfile( * @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}. */ Response deleteByBillingProfileWithResponse( String billingAccountName, String billingProfileName, String billingRoleAssignmentName, Context context); @@ -216,7 +216,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}. */ PagedIterable listByBillingAccount(String billingAccountName); @@ -229,7 +229,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}. */ PagedIterable listByBillingAccount(String billingAccountName, Context context); @@ -243,7 +243,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}. */ PagedIterable listByInvoiceSection( String billingAccountName, String billingProfileName, String invoiceSectionName); @@ -259,7 +259,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}. */ PagedIterable listByInvoiceSection( String billingAccountName, String billingProfileName, String invoiceSectionName, Context context); @@ -273,7 +273,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}. */ PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName); @@ -287,7 +287,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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleDefinitionListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleDefinitionListResult.java index f91d44eddcf3..68d9d0eccd4a 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleDefinitionListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleDefinitionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.BillingRoleDefinitionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of role definitions. */ @Immutable public final class BillingRoleDefinitionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingRoleDefinitionListResult.class); - /* * The role definitions. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleDefinitions.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleDefinitions.java index 9fc865e32bf9..63f1732e4d1c 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleDefinitions.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingRoleDefinitions.java @@ -33,7 +33,7 @@ public interface BillingRoleDefinitions { * @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}. */ Response getByBillingAccountWithResponse( String billingAccountName, String billingRoleDefinitionName, Context context); @@ -69,7 +69,7 @@ BillingRoleDefinition getByInvoiceSection( * @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}. */ Response getByInvoiceSectionWithResponse( String billingAccountName, @@ -104,7 +104,7 @@ BillingRoleDefinition getByBillingProfile( * @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}. */ Response getByBillingProfileWithResponse( String billingAccountName, String billingProfileName, String billingRoleDefinitionName, Context context); @@ -117,7 +117,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}. */ PagedIterable listByBillingAccount(String billingAccountName); @@ -130,7 +130,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}. */ PagedIterable listByBillingAccount(String billingAccountName, Context context); @@ -144,7 +144,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}. */ PagedIterable listByInvoiceSection( String billingAccountName, String billingProfileName, String invoiceSectionName); @@ -160,7 +160,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}. */ PagedIterable listByInvoiceSection( String billingAccountName, String billingProfileName, String invoiceSectionName, Context context); @@ -174,7 +174,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}. */ PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName); @@ -188,7 +188,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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptions.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptions.java index 4d9fed6033d1..54ee5ffcba2d 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptions.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptions.java @@ -20,7 +20,7 @@ public interface BillingSubscriptions { * @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}. */ PagedIterable listByCustomer(String billingAccountName, String customerName); @@ -34,7 +34,7 @@ public interface BillingSubscriptions { * @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}. */ PagedIterable listByCustomer(String billingAccountName, String customerName, Context context); @@ -46,7 +46,7 @@ public interface BillingSubscriptions { * @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}. */ PagedIterable listByBillingAccount(String billingAccountName); @@ -59,7 +59,7 @@ public interface BillingSubscriptions { * @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}. */ PagedIterable listByBillingAccount(String billingAccountName, Context context); @@ -72,7 +72,7 @@ public interface BillingSubscriptions { * @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}. */ PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName); @@ -86,7 +86,7 @@ public interface BillingSubscriptions { * @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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName, Context context); @@ -101,7 +101,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}. */ PagedIterable listByInvoiceSection( String billingAccountName, String billingProfileName, String invoiceSectionName); @@ -117,7 +117,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}. */ PagedIterable listByInvoiceSection( String billingAccountName, String billingProfileName, String invoiceSectionName, Context context); @@ -143,7 +143,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 a subscription by its ID. + * @return a subscription by its ID along with {@link Response}. */ Response getWithResponse(String billingAccountName, Context context); @@ -170,7 +170,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 a billing subscription. + * @return a billing subscription along with {@link Response}. */ Response updateWithResponse( String billingAccountName, BillingSubscriptionInner parameters, Context context); @@ -229,7 +229,7 @@ ValidateSubscriptionTransferEligibilityResult validateMove( * @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}. */ Response validateMoveWithResponse( String billingAccountName, TransferBillingSubscriptionRequestProperties parameters, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptionsListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptionsListResult.java index 8da7ec2f2385..fc298b7d3fcd 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptionsListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptionsListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.BillingSubscriptionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of billing subscriptions. */ @Immutable public final class BillingSubscriptionsListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingSubscriptionsListResult.class); - /* * The list of billing subscriptions. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptionsMoveHeaders.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptionsMoveHeaders.java index 28d4593ed591..f15a3a0e6957 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptionsMoveHeaders.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/BillingSubscriptionsMoveHeaders.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 BillingSubscriptionsMoveHeaders model. */ @Fluent public final class BillingSubscriptionsMoveHeaders { - @JsonIgnore private final ClientLogger logger = new ClientLogger(BillingSubscriptionsMoveHeaders.class); - /* * The Retry-After property. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/CustomerListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/CustomerListResult.java index c6b771c4b6d9..60bed992a199 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/CustomerListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/CustomerListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.CustomerInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of customers. */ @Immutable public final class CustomerListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(CustomerListResult.class); - /* * The list of customers. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Customers.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Customers.java index dde20eec5f20..b6b56aaaccde 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Customers.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Customers.java @@ -19,7 +19,7 @@ public interface Customers { * @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}. */ PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName); @@ -36,7 +36,7 @@ public interface Customers { * @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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName, String search, String filter, Context context); @@ -49,7 +49,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}. */ PagedIterable listByBillingAccount(String billingAccountName); @@ -65,7 +65,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}. */ PagedIterable listByBillingAccount( String billingAccountName, String search, String filter, Context context); @@ -94,7 +94,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 a customer by its ID. + * @return a customer by its ID along with {@link Response}. */ Response getWithResponse(String billingAccountName, String customerName, String expand, Context context); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Department.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Department.java index 3ae2b4a76287..5a375130db82 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Department.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Department.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.DepartmentProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A department. */ @Fluent public final class Department extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Department.class); - /* * A department. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Document.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Document.java index b220edb350a9..bbc8c36d2c54 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Document.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Document.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 a document. */ @Immutable public final class Document { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Document.class); - /* * The type of the document. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Enrollment.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Enrollment.java index 853e8ab502ad..e31f91ee8003 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Enrollment.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Enrollment.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.billing.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.time.OffsetDateTime; /** The properties of an enrollment. */ @Fluent public final class Enrollment { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Enrollment.class); - /* * The start date of the enrollment. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccount.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccount.java index d0d7e9372ed0..9d2accc9e55e 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccount.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccount.java @@ -6,17 +6,13 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.EnrollmentAccountProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; /** An enrollment account. */ @Fluent public final class EnrollmentAccount extends ProxyResource { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EnrollmentAccount.class); - /* * The properties of an enrollment account. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccountListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccountListResult.java index 76252ce9848a..fe79c2e15602 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccountListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccountListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.EnrollmentAccountSummaryInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Result of listing enrollment accounts. */ @Immutable public final class EnrollmentAccountListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EnrollmentAccountListResult.class); - /* * The list of enrollment accounts. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccounts.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccounts.java index 243221dcb517..5e7e2ed3219a 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccounts.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentAccounts.java @@ -15,7 +15,7 @@ public interface EnrollmentAccounts { * * @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}. */ PagedIterable list(); @@ -26,7 +26,7 @@ public interface EnrollmentAccounts { * @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}. */ PagedIterable list(Context context); @@ -49,7 +49,7 @@ public interface EnrollmentAccounts { * @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}. */ Response getWithResponse(String name, Context context); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentPolicies.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentPolicies.java index 4a8a324445e5..ada7dc4805ee 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentPolicies.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/EnrollmentPolicies.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 policies for Enterprise Agreement enrollments. */ @Immutable public final class EnrollmentPolicies { - @JsonIgnore private final ClientLogger logger = new ClientLogger(EnrollmentPolicies.class); - /* * The policy that controls whether Account Owners can view charges. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/IndirectRelationshipInfo.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/IndirectRelationshipInfo.java index 7a7349698cb1..51bf15be442e 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/IndirectRelationshipInfo.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/IndirectRelationshipInfo.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 billing profile details of the partner of the customer for an indirect motion. */ @Fluent public final class IndirectRelationshipInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(IndirectRelationshipInfo.class); - /* * The billing account name of the partner or the customer for an indirect * motion. diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InstructionListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InstructionListResult.java index ffa38b2217d0..0df1daedc343 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InstructionListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InstructionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.InstructionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of billing instructions used during invoice generation. */ @Immutable public final class InstructionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InstructionListResult.class); - /* * The list of billing instructions used during invoice generation. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Instructions.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Instructions.java index c103d55aac7b..b778f1e8e86a 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Instructions.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Instructions.java @@ -19,7 +19,8 @@ public interface Instructions { * @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}. */ PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName); @@ -32,7 +33,8 @@ public interface Instructions { * @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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName, Context context); @@ -60,7 +62,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 instruction by name. + * @return the instruction by name along with {@link Response}. */ Response getWithResponse( String billingAccountName, String billingProfileName, String instructionName, Context context); @@ -93,7 +95,7 @@ Instruction put( * @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}. */ Response putWithResponse( String billingAccountName, diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceListResult.java index d4b590e7e985..b9df4b44e4e4 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.InvoiceInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of invoices. */ @Immutable public final class InvoiceListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceListResult.class); - /* * The list of invoices. */ @@ -28,6 +24,12 @@ public final class InvoiceListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /* + * Total number of records. + */ + @JsonProperty(value = "totalCount", access = JsonProperty.Access.WRITE_ONLY) + private Integer totalCount; + /** * Get the value property: The list of invoices. * @@ -46,6 +48,15 @@ public String nextLink() { return this.nextLink; } + /** + * Get the totalCount property: Total number of records. + * + * @return the totalCount value. + */ + public Integer totalCount() { + return this.totalCount; + } + /** * Validates the instance. * diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionListResult.java index d39eaef775ff..3d6879c3aad0 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.InvoiceSectionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of invoice sections. */ @Immutable public final class InvoiceSectionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceSectionListResult.class); - /* * The list of invoice sections. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionListWithCreateSubPermissionResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionListWithCreateSubPermissionResult.java index b08686544b67..eb4548d01f2d 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionListWithCreateSubPermissionResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionListWithCreateSubPermissionResult.java @@ -5,18 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.InvoiceSectionWithCreateSubPermissionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of invoice section properties with create subscription permission. */ @Fluent public final class InvoiceSectionListWithCreateSubPermissionResult { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(InvoiceSectionListWithCreateSubPermissionResult.class); - /* * The list of invoice section properties with create subscription * permission. diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSections.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSections.java index b76e9dad4aed..69217a8a3025 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSections.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSections.java @@ -20,7 +20,7 @@ public interface InvoiceSections { * @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}. */ PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName); @@ -34,7 +34,7 @@ public interface InvoiceSections { * @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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName, Context context); @@ -64,7 +64,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 an invoice section by its ID. + * @return an invoice section by its ID along with {@link Response}. */ Response getWithResponse( String billingAccountName, String billingProfileName, String invoiceSectionName, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionsCreateOrUpdateHeaders.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionsCreateOrUpdateHeaders.java index 393d88051aca..000c7a1da7ff 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionsCreateOrUpdateHeaders.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionsCreateOrUpdateHeaders.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 InvoiceSectionsCreateOrUpdateHeaders model. */ @Fluent public final class InvoiceSectionsCreateOrUpdateHeaders { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceSectionsCreateOrUpdateHeaders.class); - /* * The Retry-After property. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionsOnExpand.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionsOnExpand.java index fe8e65e1c165..036e90fe844d 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionsOnExpand.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoiceSectionsOnExpand.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.InvoiceSectionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,8 +15,6 @@ */ @Fluent public final class InvoiceSectionsOnExpand { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoiceSectionsOnExpand.class); - /* * Indicates whether there are more invoice sections than the ones listed * in this collection. The collection lists a maximum of 50 invoice diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Invoices.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Invoices.java index a505ffbd0fba..bc71fa9d6f45 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Invoices.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Invoices.java @@ -21,7 +21,7 @@ public interface Invoices { * @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}. */ PagedIterable listByBillingAccount( String billingAccountName, String periodStartDate, String periodEndDate); @@ -37,7 +37,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}. */ PagedIterable listByBillingAccount( String billingAccountName, String periodStartDate, String periodEndDate, Context context); @@ -53,7 +53,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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName, String periodStartDate, String periodEndDate); @@ -70,7 +70,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}. */ PagedIterable listByBillingProfile( String billingAccountName, @@ -102,7 +102,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 an invoice by billing account name and ID. + * @return an invoice by billing account name and ID along with {@link Response}. */ Response getWithResponse(String billingAccountName, String invoiceName, Context context); @@ -127,7 +127,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 an invoice by ID. + * @return an invoice by ID along with {@link Response}. */ Response getByIdWithResponse(String invoiceName, Context context); @@ -198,7 +198,7 @@ DownloadUrl 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}. */ PagedIterable listByBillingSubscription(String periodStartDate, String periodEndDate); @@ -211,7 +211,7 @@ DownloadUrl 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}. */ PagedIterable listByBillingSubscription(String periodStartDate, String periodEndDate, Context context); @@ -234,7 +234,7 @@ DownloadUrl 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 an invoice by subscription ID and invoice ID. + * @return an invoice by subscription ID and invoice ID along with {@link Response}. */ Response getBySubscriptionAndInvoiceIdWithResponse(String invoiceName, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadBillingSubscriptionInvoiceHeaders.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadBillingSubscriptionInvoiceHeaders.java index 8fc84163d9a3..8fd5e3c30706 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadBillingSubscriptionInvoiceHeaders.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadBillingSubscriptionInvoiceHeaders.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.billing.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 InvoicesDownloadBillingSubscriptionInvoiceHeaders model. */ @Fluent public final class InvoicesDownloadBillingSubscriptionInvoiceHeaders { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(InvoicesDownloadBillingSubscriptionInvoiceHeaders.class); - /* * The Retry-After property. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadInvoiceHeaders.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadInvoiceHeaders.java index 80bc52a4bc68..e6ae13154ce0 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadInvoiceHeaders.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadInvoiceHeaders.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 InvoicesDownloadInvoiceHeaders model. */ @Fluent public final class InvoicesDownloadInvoiceHeaders { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InvoicesDownloadInvoiceHeaders.class); - /* * The Retry-After property. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadMultipleBillingProfileInvoicesHeaders.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadMultipleBillingProfileInvoicesHeaders.java index cff7c6478db0..83634becdbec 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadMultipleBillingProfileInvoicesHeaders.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadMultipleBillingProfileInvoicesHeaders.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.billing.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 InvoicesDownloadMultipleBillingProfileInvoicesHeaders model. */ @Fluent public final class InvoicesDownloadMultipleBillingProfileInvoicesHeaders { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(InvoicesDownloadMultipleBillingProfileInvoicesHeaders.class); - /* * The Retry-After property. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders.java index 4e6063d83b42..e18c53ceb651 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders.java @@ -5,17 +5,11 @@ package com.azure.resourcemanager.billing.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 InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders model. */ @Fluent public final class InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders { - @JsonIgnore - private final ClientLogger logger = - new ClientLogger(InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders.class); - /* * The Retry-After property. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/OperationDisplay.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/OperationDisplay.java index 3d9ddb4797e2..08d5a398ec34 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/OperationDisplay.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/OperationDisplay.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 object that represents the operation. */ @Immutable public final class OperationDisplay { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplay.class); - /* * Service provider: Microsoft.Billing. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/OperationListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/OperationListResult.java index f6e3f2abf305..e11300701d88 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/OperationListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/OperationListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of billing operations and a URL link to get the next set of results. */ @Immutable public final class OperationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResult.class); - /* * The list of billing operations supported by the Microsoft.Billing * resource provider. diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Operations.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Operations.java index 92c83f2661d8..bdd2d70c2d9b 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Operations.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Operations.java @@ -14,7 +14,8 @@ public interface Operations { * * @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}. */ PagedIterable list(); @@ -25,7 +26,8 @@ public interface Operations { * @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}. */ PagedIterable list(Context context); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Participants.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Participants.java index 520774a3bb4b..cd82d2acd2b7 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Participants.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Participants.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.billing.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; /** The details about a participant. */ @Immutable public final class Participants { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Participants.class); - /* * The acceptance status of the participant. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/PaymentProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/PaymentProperties.java index c8fc84a8640d..19a56ddf472d 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/PaymentProperties.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/PaymentProperties.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.billing.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.time.OffsetDateTime; /** The properties of a payment. */ @Fluent public final class PaymentProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PaymentProperties.class); - /* * The type of payment. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Policies.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Policies.java index fa5e41f1795e..523a35a0a0fa 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Policies.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Policies.java @@ -34,7 +34,7 @@ public interface Policies { * @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}. */ Response getByBillingProfileWithResponse( String billingAccountName, String billingProfileName, Context context); @@ -64,7 +64,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 a policy. + * @return a policy along with {@link Response}. */ Response updateWithResponse( String billingAccountName, String billingProfileName, PolicyInner parameters, Context context); @@ -92,7 +92,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 the customer's Policy. + * @return the customer's Policy along with {@link Response}. */ Response getByCustomerWithResponse(String billingAccountName, String customerName, Context context); @@ -121,7 +121,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 the customer's Policy. + * @return the customer's Policy along with {@link Response}. */ Response updateCustomerWithResponse( String billingAccountName, String customerName, CustomerPolicyInner parameters, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Products.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Products.java index 5b39cb0ec326..70783d528a1e 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Products.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Products.java @@ -20,7 +20,7 @@ public interface Products { * @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}. */ PagedIterable listByCustomer(String billingAccountName, String customerName); @@ -34,7 +34,7 @@ public interface Products { * @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}. */ PagedIterable listByCustomer(String billingAccountName, String customerName, Context context); @@ -46,7 +46,7 @@ public interface Products { * @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}. */ PagedIterable listByBillingAccount(String billingAccountName); @@ -62,7 +62,7 @@ public interface Products { * @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}. */ PagedIterable listByBillingAccount(String billingAccountName, String filter, Context context); @@ -75,7 +75,7 @@ public interface Products { * @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}. */ PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName); @@ -92,7 +92,7 @@ public interface Products { * @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}. */ PagedIterable listByBillingProfile( String billingAccountName, String billingProfileName, String filter, Context context); @@ -107,7 +107,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}. */ PagedIterable listByInvoiceSection( String billingAccountName, String billingProfileName, String invoiceSectionName); @@ -126,7 +126,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}. */ PagedIterable listByInvoiceSection( String billingAccountName, @@ -158,7 +158,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 a product by ID. + * @return a product by ID along with {@link Response}. */ Response getWithResponse(String billingAccountName, String productName, Context context); @@ -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 a product. + * @return a product along with {@link Response}. */ Response updateWithResponse( String billingAccountName, String productName, ProductInner parameters, Context context); @@ -252,7 +252,7 @@ ValidateProductTransferEligibilityResult validateMove( * @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}. */ Response validateMoveWithResponse( String billingAccountName, String productName, TransferProductRequestProperties parameters, Context context); diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ProductsListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ProductsListResult.java index e7a81b44a09e..b0c8aa6fc076 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ProductsListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ProductsListResult.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.ProductInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,8 +15,6 @@ */ @Immutable public final class ProductsListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ProductsListResult.class); - /* * The list of products. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ProductsMoveHeaders.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ProductsMoveHeaders.java index e2c92545cc57..f2b9b6ff0aae 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ProductsMoveHeaders.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ProductsMoveHeaders.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 ProductsMoveHeaders model. */ @Fluent public final class ProductsMoveHeaders { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ProductsMoveHeaders.class); - /* * The Retry-After property. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/RebillDetails.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/RebillDetails.java index 40b49bec98db..dc48c191f433 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/RebillDetails.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/RebillDetails.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.billing.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.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; @@ -14,8 +12,6 @@ /** The rebill details of an invoice. */ @Immutable public final class RebillDetails { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RebillDetails.class); - /* * The ID of credit note. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Reseller.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Reseller.java index 3d925897ed34..5553cbaa2eb2 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Reseller.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Reseller.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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; /** Details of the reseller. */ @Immutable public final class Reseller { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Reseller.class); - /* * The MPN ID of the reseller. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationPropertyUtilization.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationPropertyUtilization.java index 4091bbaa950c..c6b6da228661 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationPropertyUtilization.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationPropertyUtilization.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.billing.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; /** Reservation utilization. */ @Fluent public final class ReservationPropertyUtilization { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReservationPropertyUtilization.class); - /* * The number of days trend for a reservation */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationSkuProperty.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationSkuProperty.java index 656bbf653299..5a59d0520b6a 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationSkuProperty.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationSkuProperty.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 property of reservation sku object. */ @Immutable public final class ReservationSkuProperty { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReservationSkuProperty.class); - /* * The name of the reservation sku. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationSummary.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationSummary.java index 67eb6ee38b7e..6678469f7a33 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationSummary.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationSummary.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 roll up count summary of reservations in each state. */ @Immutable public final class ReservationSummary { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReservationSummary.class); - /* * The number of reservation in Succeeded state */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationUtilizationAggregates.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationUtilizationAggregates.java index d6db26851bf2..68fe75e432b3 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationUtilizationAggregates.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationUtilizationAggregates.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 aggregate values of reservation utilization. */ @Immutable public final class ReservationUtilizationAggregates { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReservationUtilizationAggregates.class); - /* * The grain of the aggregate */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Reservations.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Reservations.java index b18a95f43b93..9a72b508b0ba 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Reservations.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Reservations.java @@ -16,7 +16,8 @@ public interface Reservations { * @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}. */ PagedIterable listByBillingAccount(String billingAccountName); @@ -34,7 +35,8 @@ public interface Reservations { * @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}. */ PagedIterable listByBillingAccount( String billingAccountName, @@ -52,7 +54,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}. */ PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName); @@ -71,7 +74,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}. */ PagedIterable listByBillingProfile( String billingAccountName, diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationsListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationsListResult.java index 3ee6e25ecaea..b9ed8e9b3018 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationsListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ReservationsListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.ReservationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of reservations and summary of roll out count of reservations in each state. */ @Fluent public final class ReservationsListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ReservationsListResult.class); - /* * The list of reservations. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransactionListResult.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransactionListResult.java index 45e11fd7eda1..9ea04e363fac 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransactionListResult.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransactionListResult.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.billing.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.billing.fluent.models.TransactionInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The list of transactions. */ @Immutable public final class TransactionListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TransactionListResult.class); - /* * The list of transactions. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Transactions.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Transactions.java index 8b2a1f219b40..83c44ea52759 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Transactions.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/Transactions.java @@ -17,7 +17,7 @@ public interface Transactions { * @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}. */ PagedIterable listByInvoice(String billingAccountName, String invoiceName); @@ -30,7 +30,7 @@ public interface Transactions { * @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}. */ PagedIterable listByInvoice(String billingAccountName, String invoiceName, Context context); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransferBillingSubscriptionRequestProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransferBillingSubscriptionRequestProperties.java index 5c9d8529cd71..e41d6e504ad7 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransferBillingSubscriptionRequestProperties.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransferBillingSubscriptionRequestProperties.java @@ -6,15 +6,11 @@ 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; /** Request parameters to transfer billing subscription. */ @Fluent public final class TransferBillingSubscriptionRequestProperties { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(TransferBillingSubscriptionRequestProperties.class); - /* * The destination invoice section id. */ @@ -49,11 +45,13 @@ public TransferBillingSubscriptionRequestProperties withDestinationInvoiceSectio */ public void validate() { if (destinationInvoiceSectionId() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property destinationInvoiceSectionId in model" + " TransferBillingSubscriptionRequestProperties")); } } + + private static final ClientLogger LOGGER = new ClientLogger(TransferBillingSubscriptionRequestProperties.class); } diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransferProductRequestProperties.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransferProductRequestProperties.java index eec0db1652f8..1d63a9eacd76 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransferProductRequestProperties.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/TransferProductRequestProperties.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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 product to initiate a transfer. */ @Fluent public final class TransferProductRequestProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TransferProductRequestProperties.class); - /* * The destination invoice section id. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ValidateProductTransferEligibilityError.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ValidateProductTransferEligibilityError.java index 4791cff63ce6..1a1c9d4c7145 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ValidateProductTransferEligibilityError.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ValidateProductTransferEligibilityError.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.billing.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; /** Error details of the product transfer eligibility validation. */ @Fluent public final class ValidateProductTransferEligibilityError { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ValidateProductTransferEligibilityError.class); - /* * Error code for the product transfer validation. */ diff --git a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ValidateSubscriptionTransferEligibilityError.java b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ValidateSubscriptionTransferEligibilityError.java index e1453c963477..2b0042476a20 100644 --- a/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ValidateSubscriptionTransferEligibilityError.java +++ b/sdk/billing/azure-resourcemanager-billing/src/main/java/com/azure/resourcemanager/billing/models/ValidateSubscriptionTransferEligibilityError.java @@ -5,16 +5,11 @@ package com.azure.resourcemanager.billing.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; /** Error details of the transfer eligibility validation. */ @Fluent public final class ValidateSubscriptionTransferEligibilityError { - @JsonIgnore - private final ClientLogger logger = new ClientLogger(ValidateSubscriptionTransferEligibilityError.class); - /* * Error code for the product transfer validation. */