This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -172,9 +201,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;
}
@@ -196,7 +227,7 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi
.append("-")
.append("com.azure.resourcemanager.iothub")
.append("/")
- .append("1.2.0-beta.1");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -214,10 +245,15 @@ public IotHubManager authenticate(TokenCredential credential, AzureProfile profi
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List Returns the list of certificates.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -30,7 +32,9 @@ public interface CertificatesClient {
CertificateListDescriptionInner listByIotHub(String resourceGroupName, String resourceName);
/**
- * Returns the list of certificates.
+ * Get the certificate list.
+ *
+ * Returns the list of certificates.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -46,7 +50,9 @@ Response Returns the certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -61,7 +67,9 @@ Response Returns the certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -78,7 +86,9 @@ Response Adds new or replaces existing certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -98,7 +108,9 @@ CertificateDescriptionInner createOrUpdate(
CertificateDescriptionInner certificateDescription);
/**
- * Adds new or replaces existing certificate.
+ * Upload the certificate to the IoT hub.
+ *
+ * Adds new or replaces existing certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -123,7 +135,9 @@ Response Deletes an existing X509 certificate or does nothing if it does not exist.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -138,7 +152,9 @@ Response Deletes an existing X509 certificate or does nothing if it does not exist.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -156,8 +172,10 @@ Response Generates verification code for proof of possession flow. The verification code will be used to generate a
+ * leaf certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -174,8 +192,10 @@ CertificateWithNonceDescriptionInner generateVerificationCode(
String resourceGroupName, String resourceName, String certificateName, String ifMatch);
/**
- * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf
- * certificate.
+ * Generate verification code for proof of possession flow.
+ *
+ * Generates verification code for proof of possession flow. The verification code will be used to generate a
+ * leaf certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -193,8 +213,10 @@ Response Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -216,8 +238,10 @@ CertificateDescriptionInner verify(
CertificateVerificationDescription certificateVerificationBody);
/**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
+ * Verify certificate's private key possession.
+ *
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java
index 0091de3188e0..232340cc1e30 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubResourcesClient.java
@@ -29,12 +29,13 @@
import com.azure.resourcemanager.iothub.models.TagsResource;
import com.azure.resourcemanager.iothub.models.TestAllRoutesInput;
import com.azure.resourcemanager.iothub.models.TestRouteInput;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in IotHubResourcesClient. */
public interface IotHubResourcesClient {
/**
- * Get the non-security related metadata of an IoT hub.
+ * Get the non-security related metadata of an IoT hub
+ *
+ * Get the non-security related metadata of an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -48,7 +49,9 @@ public interface IotHubResourcesClient {
IotHubDescriptionInner getByResourceGroup(String resourceGroupName, String resourceName);
/**
- * Get the non-security related metadata of an IoT hub.
+ * Get the non-security related metadata of an IoT hub
+ *
+ * Get the non-security related metadata of an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -64,10 +67,11 @@ Response Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub
* metadata and security metadata, and then combine them with the modified values in a new body to update the IoT
- * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to
- * default, which may lead to unexpected behavior.
+ * hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -78,17 +82,18 @@ Response Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub
* metadata and security metadata, and then combine them with the modified values in a new body to update the IoT
- * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to
- * default, which may lead to unexpected behavior.
+ * hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -100,7 +105,7 @@ SyncPoller Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub
* metadata and security metadata, and then combine them with the modified values in a new body to update the IoT
- * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to
- * default, which may lead to unexpected behavior.
+ * hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -132,10 +138,11 @@ IotHubDescriptionInner createOrUpdate(
String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription, String ifMatch);
/**
- * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub
+ * Create or update the metadata of an IoT hub.
+ *
+ * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub
* metadata and security metadata, and then combine them with the modified values in a new body to update the IoT
- * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to
- * default, which may lead to unexpected behavior.
+ * hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -151,10 +158,11 @@ IotHubDescriptionInner createOrUpdate(
String resourceGroupName, String resourceName, IotHubDescriptionInner iotHubDescription);
/**
- * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub
+ * Create or update the metadata of an IoT hub.
+ *
+ * Create or update the metadata of an Iot hub. The usual pattern to modify a property is to retrieve the IoT hub
* metadata and security metadata, and then combine them with the modified values in a new body to update the IoT
- * hub. If certain properties are missing in the JSON, updating IoT Hub may cause these values to fallback to
- * default, which may lead to unexpected behavior.
+ * hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -177,7 +185,9 @@ IotHubDescriptionInner createOrUpdate(
Context context);
/**
- * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method.
+ * Update an existing IoT Hubs tags.
+ *
+ * Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param resourceName Name of iot hub to update.
@@ -185,14 +195,16 @@ IotHubDescriptionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of the description of the IoT hub.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param resourceName Name of iot hub to update.
@@ -201,14 +213,16 @@ SyncPoller Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param resourceName Name of iot hub to update.
@@ -222,7 +236,9 @@ SyncPoller Update an existing IoT Hub tags. to update other fields use the CreateOrUpdate method.
*
* @param resourceGroupName Resource group identifier.
* @param resourceName Name of iot hub to update.
@@ -238,7 +254,9 @@ IotHubDescriptionInner update(
String resourceGroupName, String resourceName, TagsResource iotHubTags, Context context);
/**
- * Delete an IoT hub.
+ * Delete an IoT hub
+ *
+ * Delete an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -246,14 +264,16 @@ IotHubDescriptionInner update(
* @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the description of the IoT hub along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of the description of the IoT hub.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Delete an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -262,14 +282,16 @@ SyncPoller Delete an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -283,7 +305,9 @@ SyncPoller Delete an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -298,44 +322,52 @@ SyncPoller Get all the IoT hubs in a subscription.
*
* @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the IoT hubs in a subscription.
+ * @return all the IoT hubs in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Get all the IoT hubs in a subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the IoT hubs in a subscription.
+ * @return all the IoT hubs in a subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Get all the IoT hubs in a resource group.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the IoT hubs in a resource group.
+ * @return all the IoT hubs in a resource group as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Get all the IoT hubs in a resource group.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param context The context to associate with this operation.
@@ -343,13 +375,15 @@ SyncPoller Get the statistics from an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -363,7 +397,9 @@ SyncPoller Get the statistics from an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -379,7 +415,9 @@ Response Get the list of valid SKUs for an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -387,13 +425,15 @@ Response Get the list of valid SKUs for an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -402,14 +442,16 @@ Response Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -418,14 +460,17 @@ PagedIterable Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -435,14 +480,17 @@ PagedIterable Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -459,7 +507,9 @@ EventHubConsumerGroupInfoInner getEventHubConsumerGroup(
String resourceGroupName, String resourceName, String eventHubEndpointName, String name);
/**
- * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.
+ * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub
+ *
+ * Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -478,7 +528,9 @@ Response Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -500,7 +552,9 @@ EventHubConsumerGroupInfoInner createEventHubConsumerGroup(
EventHubConsumerGroupBodyDescription consumerGroupBody);
/**
- * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
+ * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub
+ *
+ * Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -524,7 +578,9 @@ Response Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -540,7 +596,9 @@ void deleteEventHubConsumerGroup(
String resourceGroupName, String resourceName, String eventHubEndpointName, String name);
/**
- * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
+ * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub
+ *
+ * Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -559,6 +617,9 @@ Response Get a list of all the jobs in an IoT hub. For more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -567,13 +628,16 @@ Response Get a list of all the jobs in an IoT hub. For more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -583,13 +647,16 @@ Response Get the details of a job from an IoT hub. For more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -606,6 +673,9 @@ Response Get the details of a job from an IoT hub. For more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -623,7 +693,9 @@ Response Get the quota metrics for an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -631,13 +703,15 @@ Response Get the quota metrics for an IoT hub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -646,14 +720,16 @@ Response Get the health for routing endpoints.
*
* @param resourceGroupName The resourceGroupName parameter.
* @param iotHubName The iotHubName parameter.
@@ -661,13 +737,15 @@ PagedIterable Get the health for routing endpoints.
*
* @param resourceGroupName The resourceGroupName parameter.
* @param iotHubName The iotHubName parameter.
@@ -676,14 +754,16 @@ PagedIterable Check if an IoT hub name is available.
*
* @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to
* check.
@@ -697,7 +777,9 @@ PagedIterable Check if an IoT hub name is available.
*
* @param operationInputs Set the name parameter in the OperationInputs structure to the name of the IoT hub to
* check.
@@ -713,7 +795,9 @@ Response Test all routes configured in this Iot Hub.
*
* @param iotHubName IotHub to be tested.
* @param resourceGroupName resource group which Iot Hub belongs to.
@@ -728,7 +812,9 @@ Response Test all routes configured in this Iot Hub.
*
* @param iotHubName IotHub to be tested.
* @param resourceGroupName resource group which Iot Hub belongs to.
@@ -745,7 +831,9 @@ Response Test the new route for this Iot Hub.
*
* @param iotHubName IotHub to be tested.
* @param resourceGroupName resource group which Iot Hub belongs to.
@@ -760,7 +848,9 @@ Response Test the new route for this Iot Hub.
*
* @param iotHubName IotHub to be tested.
* @param resourceGroupName resource group which Iot Hub belongs to.
@@ -778,6 +868,9 @@ Response Get the security metadata for an IoT hub. For more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -786,13 +879,16 @@ Response Get the security metadata for an IoT hub. For more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -802,7 +898,7 @@ Response Get a shared access policy by name from an IoT hub. For more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -827,6 +926,9 @@ SharedAccessSignatureAuthorizationRuleInner getKeysForKeyName(
/**
* Get a shared access policy by name from an IoT hub. For more information, see:
+ * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security
+ *
+ * Get a shared access policy by name from an IoT hub. For more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -846,6 +948,10 @@ Response Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For
+ * more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -864,6 +970,10 @@ JobResponseInner exportDevices(
/**
* Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more
* information, see:
+ * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities
+ *
+ * Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For
+ * more information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -883,6 +993,10 @@ Response Import, update, or delete device identities in the IoT hub identity registry from a blob. For more
+ * information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
@@ -901,6 +1015,10 @@ JobResponseInner importDevices(
/**
* Import, update, or delete device identities in the IoT hub identity registry from a blob. For more information,
* see:
+ * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities
+ *
+ * Import, update, or delete device identities in the IoT hub identity registry from a blob. For more
+ * information, see:
* https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java
index c61e8b6eaa79..03dd238c03b6 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/IotHubsClient.java
@@ -6,17 +6,17 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.iothub.models.FailoverInput;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in IotHubsClient. */
public interface IotHubsClient {
/**
- * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see
+ * Manually initiate a failover for the IoT Hub to its secondary region
+ *
+ * Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see
* https://aka.ms/manualfailover.
*
* @param iotHubName Name of the IoT hub to failover.
@@ -27,14 +27,16 @@ public interface IotHubsClient {
* @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see
* https://aka.ms/manualfailover.
*
* @param iotHubName Name of the IoT hub to failover.
@@ -46,14 +48,16 @@ SyncPoller Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see
* https://aka.ms/manualfailover.
*
* @param iotHubName Name of the IoT hub to failover.
@@ -69,7 +73,9 @@ SyncPoller Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see
* https://aka.ms/manualfailover.
*
* @param iotHubName Name of the IoT hub to failover.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java
index c404a7b96c1b..f3e9b9c87cf0 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/OperationsClient.java
@@ -18,7 +18,7 @@ public interface OperationsClient {
* @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException 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 request to list IoT Hub operations.
+ * @return result of the request to list IoT Hub operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable List private endpoint connection properties.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -31,7 +32,9 @@ public interface PrivateEndpointConnectionsClient {
List List private endpoint connection properties.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -47,7 +50,9 @@ Response Get private endpoint connection properties.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -63,7 +68,9 @@ PrivateEndpointConnectionInner get(
String resourceGroupName, String resourceName, String privateEndpointConnectionName);
/**
- * Get private endpoint connection properties.
+ * Get private endpoint connection
+ *
+ * Get private endpoint connection properties.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -80,7 +87,9 @@ Response Update the status of a private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -90,8 +99,7 @@ Response Update the status of a private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -112,8 +122,7 @@ SyncPoller Update the status of a private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -144,7 +155,9 @@ PrivateEndpointConnectionInner update(
PrivateEndpointConnectionInner privateEndpointConnection);
/**
- * Update the status of a private endpoint connection with the specified name.
+ * Update private endpoint connection
+ *
+ * Update the status of a private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -166,7 +179,9 @@ PrivateEndpointConnectionInner update(
Context context);
/**
- * Delete private endpoint connection with the specified name.
+ * Delete private endpoint connection
+ *
+ * Delete private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -175,15 +190,16 @@ PrivateEndpointConnectionInner update(
* @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by
* server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the private endpoint connection of an IotHub along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link SyncPoller} for polling of the private endpoint connection of an IotHub.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Delete private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -193,15 +209,16 @@ SyncPoller Delete private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -217,7 +234,9 @@ PrivateEndpointConnectionInner delete(
String resourceGroupName, String resourceName, String privateEndpointConnectionName);
/**
- * Delete private endpoint connection with the specified name.
+ * Delete private endpoint connection
+ *
+ * Delete private endpoint connection with the specified name.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java
index bb5cf4f9427b..b6072ee9b95b 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/PrivateLinkResourcesOperationsClient.java
@@ -14,7 +14,9 @@
/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. */
public interface PrivateLinkResourcesOperationsClient {
/**
- * List private link resources for the given IotHub.
+ * List private link resources
+ *
+ * List private link resources for the given IotHub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -28,7 +30,9 @@ public interface PrivateLinkResourcesOperationsClient {
PrivateLinkResourcesInner list(String resourceGroupName, String resourceName);
/**
- * List private link resources for the given IotHub.
+ * List private link resources
+ *
+ * List private link resources for the given IotHub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -44,7 +48,9 @@ Response Get the specified private link resource for the given IotHub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -59,7 +65,9 @@ Response Get the specified private link resource for the given IotHub.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java
index 742ca66a227f..bce652fdbcee 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/ResourceProviderCommonsClient.java
@@ -13,7 +13,9 @@
/** An instance of this class provides access to all the operations defined in ResourceProviderCommonsClient. */
public interface ResourceProviderCommonsClient {
/**
- * Get the number of free and paid iot hubs in the subscription.
+ * Get the number of iot hubs in the subscription
+ *
+ * Get the number of free and paid iot hubs in the subscription.
*
* @throws com.azure.resourcemanager.iothub.models.ErrorDetailsException thrown if the request is rejected by
* server.
@@ -24,7 +26,9 @@ public interface ResourceProviderCommonsClient {
UserSubscriptionQuotaListResultInner getSubscriptionQuota();
/**
- * Get the number of free and paid iot hubs in the subscription.
+ * Get the number of iot hubs in the subscription
+ *
+ * Get the number of free and paid iot hubs in the subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java
index 4e3667bc3495..9a279107e23d 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateDescriptionInner.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.iothub.models.CertificateProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The X509 Certificate. */
@Fluent
public final class CertificateDescriptionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateDescriptionInner.class);
-
/*
* The description of an X509 CA Certificate.
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java
index 6ec54577bdd9..224446fc9059 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateListDescriptionInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.iothub.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 JSON-serialized array of Certificate objects. */
@Fluent
public final class CertificateListDescriptionInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateListDescriptionInner.class);
-
/*
* The array of Certificate objects.
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java
index 872bcaa040a4..f4660a738d8d 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/CertificateWithNonceDescriptionInner.java
@@ -6,19 +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.iothub.models.CertificatePropertiesWithNonce;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The X509 Certificate. */
@Fluent
public final class CertificateWithNonceDescriptionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificateWithNonceDescriptionInner.class);
-
/*
- * The description of an X509 CA Certificate including the challenge nonce
- * issued for the Proof-Of-Possession flow.
+ * The description of an X509 CA Certificate including the challenge nonce issued for the Proof-Of-Possession flow.
*/
@JsonProperty(value = "properties")
private CertificatePropertiesWithNonce properties;
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java
index 2091a2c740a4..b019ff304074 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EndpointHealthDataInner.java
@@ -6,17 +6,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.DateTimeRfc1123;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.EndpointHealthStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** The health data for an endpoint. */
@Fluent
public final class EndpointHealthDataInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(EndpointHealthDataInner.class);
-
/*
* Id of the endpoint
*/
@@ -24,17 +20,13 @@ public final class EndpointHealthDataInner {
private String endpointId;
/*
- * Health statuses have following meanings. The 'healthy' status shows that
- * the endpoint is accepting messages as expected. The 'unhealthy' status
- * shows that the endpoint is not accepting messages as expected and IoT
- * Hub is retrying to send data to this endpoint. The status of an
- * unhealthy endpoint will be updated to healthy when IoT Hub has
- * established an eventually consistent state of health. The 'dead' status
- * shows that the endpoint is not accepting messages, after IoT Hub retried
- * sending messages for the retrial period. See IoT Hub metrics to identify
- * errors and monitor issues with endpoints. The 'unknown' status shows
- * that the IoT Hub has not established a connection with the endpoint. No
- * messages have been delivered to or rejected from this endpoint
+ * Health statuses have following meanings. The 'healthy' status shows that the endpoint is accepting messages as
+ * expected. The 'unhealthy' status shows that the endpoint is not accepting messages as expected and IoT Hub is
+ * retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT
+ * Hub has established an eventually consistent state of health. The 'dead' status shows that the endpoint is not
+ * accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to
+ * identify errors and monitor issues with endpoints. The 'unknown' status shows that the IoT Hub has not
+ * established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint
*/
@JsonProperty(value = "healthStatus")
private EndpointHealthStatus healthStatus;
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java
index 36a93adaf459..3f31cc5a8b65 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/EventHubConsumerGroupInfoInner.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.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -15,8 +13,6 @@
/** The properties of the EventHubConsumerGroupInfo object. */
@Fluent
public final class EventHubConsumerGroupInfoInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(EventHubConsumerGroupInfoInner.class);
-
/*
* The tags.
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java
index 69ec9283f78c..9b709713887e 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/GroupIdInformationInner.java
@@ -7,14 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.GroupIdInformationProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The group information for creating a private endpoint on an IotHub. */
@Fluent
public final class GroupIdInformationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(GroupIdInformationInner.class);
-
/*
* The resource identifier.
*/
@@ -93,7 +90,7 @@ public GroupIdInformationInner withProperties(GroupIdInformationProperties prope
*/
public void validate() {
if (properties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property properties in model GroupIdInformationInner"));
@@ -101,4 +98,6 @@ public void validate() {
properties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(GroupIdInformationInner.class);
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java
index a6a0e9664bc5..0aa1cf7d3ba5 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubDescriptionInner.java
@@ -11,19 +11,15 @@
import com.azure.resourcemanager.iothub.models.ArmIdentity;
import com.azure.resourcemanager.iothub.models.IotHubProperties;
import com.azure.resourcemanager.iothub.models.IotHubSkuInfo;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** The description of the IoT hub. */
@Fluent
public final class IotHubDescriptionInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubDescriptionInner.class);
-
/*
- * The Etag field is *not* required. If it is provided in the response
- * body, it must also be provided as a header per the normal ETag
- * convention.
+ * The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header
+ * per the normal ETag convention.
*/
@JsonProperty(value = "etag")
private String etag;
@@ -167,7 +163,7 @@ public void validate() {
properties().validate();
}
if (sku() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property sku in model IotHubDescriptionInner"));
} else {
@@ -177,4 +173,6 @@ public void validate() {
identity().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(IotHubDescriptionInner.class);
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java
index 290637ad2150..220c14db378b 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubNameAvailabilityInfoInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.iothub.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.IotHubNameUnavailabilityReason;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties indicating whether a given IoT hub name is available. */
@Fluent
public final class IotHubNameAvailabilityInfoInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubNameAvailabilityInfoInner.class);
-
/*
* The value which indicates whether the provided name is available.
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java
index e82c4fb87f8b..84c9b471bbac 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubQuotaMetricInfoInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.iothub.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;
/** Quota metrics properties. */
@Immutable
public final class IotHubQuotaMetricInfoInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubQuotaMetricInfoInner.class);
-
/*
* The name of the quota metric.
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java
index 72e8ad5a00c6..a0d9c52024a1 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/IotHubSkuDescriptionInner.java
@@ -8,14 +8,11 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.IotHubCapacity;
import com.azure.resourcemanager.iothub.models.IotHubSkuInfo;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** SKU properties. */
@Fluent
public final class IotHubSkuDescriptionInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(IotHubSkuDescriptionInner.class);
-
/*
* The type of the resource.
*/
@@ -90,14 +87,14 @@ public IotHubSkuDescriptionInner withCapacity(IotHubCapacity capacity) {
*/
public void validate() {
if (sku() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property sku in model IotHubSkuDescriptionInner"));
} else {
sku().validate();
}
if (capacity() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property capacity in model IotHubSkuDescriptionInner"));
@@ -105,4 +102,6 @@ public void validate() {
capacity().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(IotHubSkuDescriptionInner.class);
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java
index 14c777199619..2f9c443287c7 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/JobResponseInner.java
@@ -6,18 +6,14 @@
import com.azure.core.annotation.Immutable;
import com.azure.core.util.DateTimeRfc1123;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.JobStatus;
import com.azure.resourcemanager.iothub.models.JobType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** The properties of the Job Response object. */
@Immutable
public final class JobResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(JobResponseInner.class);
-
/*
* The job identifier.
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java
index 81b5caab0d88..fe3c409f1305 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/OperationInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.iothub.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** IoT Hub REST API operation. */
@Fluent
public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
/*
* Operation name: {provider}/{resource}/{read | write | action | delete}
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java
index 57368cce9800..70ec1e4bb3fe 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateEndpointConnectionInner.java
@@ -8,14 +8,11 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.PrivateEndpointConnectionProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The private endpoint connection of an IotHub. */
@Fluent
public final class PrivateEndpointConnectionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
-
/*
* The properties of a private endpoint connection
*/
@@ -49,7 +46,7 @@ public PrivateEndpointConnectionInner withProperties(PrivateEndpointConnectionPr
*/
public void validate() {
if (properties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property properties in model PrivateEndpointConnectionInner"));
@@ -57,4 +54,6 @@ public void validate() {
properties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionInner.class);
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java
index 5516fc45a2d5..6b642dedb9ef 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/PrivateLinkResourcesInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.iothub.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 available private link resources for an IotHub. */
@Fluent
public final class PrivateLinkResourcesInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourcesInner.class);
-
/*
* The list of available private link resources for an IotHub
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java
index 15d0c948a8f7..5188da0f6567 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/RegistryStatisticsInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.iothub.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;
/** Identity registry statistics. */
@Immutable
public final class RegistryStatisticsInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(RegistryStatisticsInner.class);
-
/*
* The total count of devices in the identity registry.
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java
index 86a4837904c8..d7d38620b29f 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/SharedAccessSignatureAuthorizationRuleInner.java
@@ -7,14 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.AccessRights;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The properties of an IoT hub shared access policy. */
@Fluent
public final class SharedAccessSignatureAuthorizationRuleInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SharedAccessSignatureAuthorizationRuleInner.class);
-
/*
* The name of the shared access policy.
*/
@@ -126,16 +123,18 @@ public SharedAccessSignatureAuthorizationRuleInner withRights(AccessRights right
*/
public void validate() {
if (keyName() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property keyName in model SharedAccessSignatureAuthorizationRuleInner"));
}
if (rights() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property rights in model SharedAccessSignatureAuthorizationRuleInner"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(SharedAccessSignatureAuthorizationRuleInner.class);
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java
index 1c15d09d95c1..d89d3d46ca99 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestAllRoutesResultInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.iothub.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.MatchedRoute;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Result of testing all routes. */
@Fluent
public final class TestAllRoutesResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(TestAllRoutesResultInner.class);
-
/*
* JSON-serialized array of matched routes
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java
index 2feeec924d30..bd47269a717d 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/TestRouteResultInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.iothub.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.TestResultStatus;
import com.azure.resourcemanager.iothub.models.TestRouteResultDetails;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Result of testing one route. */
@Fluent
public final class TestRouteResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(TestRouteResultInner.class);
-
/*
* Result of testing route
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java
index eae7058bb036..4e64d127c9bd 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/fluent/models/UserSubscriptionQuotaListResultInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.iothub.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.models.UserSubscriptionQuota;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Json-serialized array of User subscription quota response. */
@Fluent
public final class UserSubscriptionQuotaListResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UserSubscriptionQuotaListResultInner.class);
-
/*
* The value property.
*/
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java
index f526e7cd6a82..34d53a6518f5 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificateDescriptionImpl.java
@@ -35,6 +35,10 @@ public String etag() {
return this.innerModel().etag();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public CertificateDescriptionInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java
index f86d5e7a5d0f..d71cd21c22ae 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesClientImpl.java
@@ -24,7 +24,6 @@
import com.azure.core.http.rest.RestProxy;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.iothub.fluent.CertificatesClient;
import com.azure.resourcemanager.iothub.fluent.models.CertificateDescriptionInner;
import com.azure.resourcemanager.iothub.fluent.models.CertificateListDescriptionInner;
@@ -35,8 +34,6 @@
/** An instance of this class provides access to all the operations defined in CertificatesClient. */
public final class CertificatesClientImpl implements CertificatesClient {
- private final ClientLogger logger = new ClientLogger(CertificatesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final CertificatesService service;
@@ -164,7 +161,9 @@ Mono Returns the list of certificates.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -213,7 +212,9 @@ private Mono Returns the list of certificates.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -260,7 +261,9 @@ private Mono Returns the list of certificates.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -272,18 +275,13 @@ private Mono Returns the list of certificates.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -298,7 +296,9 @@ public CertificateListDescriptionInner listByIotHub(String resourceGroupName, St
}
/**
- * Returns the list of certificates.
+ * Get the certificate list.
+ *
+ * Returns the list of certificates.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -315,7 +315,9 @@ public Response Returns the certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -369,7 +371,9 @@ private Mono Returns the certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -421,7 +425,9 @@ private Mono Returns the certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -435,18 +441,13 @@ private Mono Returns the certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -462,7 +463,9 @@ public CertificateDescriptionInner get(String resourceGroupName, String resource
}
/**
- * Returns the certificate.
+ * Get the certificate.
+ *
+ * Returns the certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -480,7 +483,9 @@ public Response Adds new or replaces existing certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -550,7 +555,9 @@ private Mono Adds new or replaces existing certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -619,7 +626,9 @@ private Mono Adds new or replaces existing certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -641,18 +650,13 @@ private Mono Adds new or replaces existing certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -672,18 +676,13 @@ private Mono Adds new or replaces existing certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -706,7 +705,9 @@ public CertificateDescriptionInner createOrUpdate(
}
/**
- * Adds new or replaces existing certificate.
+ * Upload the certificate to the IoT hub.
+ *
+ * Adds new or replaces existing certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -734,7 +735,9 @@ public Response Deletes an existing X509 certificate or does nothing if it does not exist.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -793,7 +796,9 @@ private Mono Deletes an existing X509 certificate or does nothing if it does not exist.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -850,7 +855,9 @@ private Mono Deletes an existing X509 certificate or does nothing if it does not exist.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -865,11 +872,13 @@ private Mono Deletes an existing X509 certificate or does nothing if it does not exist.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -885,7 +894,9 @@ public void delete(String resourceGroupName, String resourceName, String certifi
}
/**
- * Deletes an existing X509 certificate or does nothing if it does not exist.
+ * Delete an X509 certificate.
+ *
+ * Deletes an existing X509 certificate or does nothing if it does not exist.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -904,8 +915,10 @@ public Response Generates verification code for proof of possession flow. The verification code will be used to generate a
+ * leaf certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -964,8 +977,10 @@ private Mono Generates verification code for proof of possession flow. The verification code will be used to generate a
+ * leaf certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -1022,8 +1037,10 @@ private Mono Generates verification code for proof of possession flow. The verification code will be used to generate a
+ * leaf certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -1038,19 +1055,14 @@ private Mono Generates verification code for proof of possession flow. The verification code will be used to generate a
+ * leaf certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -1068,8 +1080,10 @@ public CertificateWithNonceDescriptionInner generateVerificationCode(
}
/**
- * Generates verification code for proof of possession flow. The verification code will be used to generate a leaf
- * certificate.
+ * Generate verification code for proof of possession flow.
+ *
+ * Generates verification code for proof of possession flow. The verification code will be used to generate a
+ * leaf certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -1090,8 +1104,10 @@ public Response Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -1164,8 +1180,10 @@ private Mono Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -1237,8 +1255,10 @@ private Mono Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -1259,19 +1279,14 @@ private Mono Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -1295,8 +1310,10 @@ public CertificateDescriptionInner verify(
}
/**
- * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded
- * certificate.
+ * Verify certificate's private key possession.
+ *
+ * Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre
+ * uploaded certificate.
*
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
diff --git a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java
index 76616ecf508f..3cdd59adceaa 100644
--- a/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java
+++ b/sdk/iothub/azure-resourcemanager-iothub/src/main/java/com/azure/resourcemanager/iothub/implementation/CertificatesImpl.java
@@ -17,10 +17,9 @@
import com.azure.resourcemanager.iothub.models.CertificateVerificationDescription;
import com.azure.resourcemanager.iothub.models.CertificateWithNonceDescription;
import com.azure.resourcemanager.iothub.models.Certificates;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class CertificatesImpl implements Certificates {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(CertificatesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(CertificatesImpl.class);
private final CertificatesClient innerClient;
@@ -163,7 +162,7 @@ public Response> listWithResponse(
String resourceGroupName, String resourceName, Context context);
/**
- * Get private endpoint connection properties.
+ * Get private endpoint connection
+ *
+ *