gnodet-bot commented on code in PR #30563:
URL: https://github.com/apache/camel/pull/30563#discussion_r4653546743


##########
components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/MNSEndpoint.java:
##########
@@ -34,7 +34,7 @@
 import org.apache.camel.support.ScheduledPollEndpoint;
 
 /**
- * Send and receive messages to/from Alibaba Cloud Message Service (MNS).
+ * Send and receive messages using Alibaba Cloud Simple Message Queue (SMQ, 
formerly MNS).
  */
 @UriEndpoint(firstVersion = "4.23.0", scheme = "alibaba-mns", title = "Alibaba 
Message Service (MNS)",

Review Comment:
   The `@UriEndpoint` title still uses the old name "Alibaba Message Service 
(MNS)" while the class Javadoc and `.adoc` description now consistently use 
"Simple Message Queue (SMQ, formerly MNS)". If the rename to SMQ is 
intentional, consider updating this annotation too:
   
   ```suggestion
   @UriEndpoint(firstVersion = "4.23.0", scheme = "alibaba-mns", title = 
"Simple Message Queue (SMQ, formerly MNS)",
   ```
   
   Similarly, `:doctitle:` on line 2 of `alibaba-mns-component.adoc` still 
reads "Alibaba Message Service (MNS)".



##########
components/camel-alibaba/camel-alibaba-mns/src/main/java/org/apache/camel/component/alibaba/mns/MNSEndpoint.java:
##########
@@ -59,52 +59,71 @@
                                                  + " property"))
 public class MNSEndpoint extends ScheduledPollEndpoint {
 
-    @UriPath(description = "Queue name, or topic name when using the topic URI 
syntax", displayName = "Queue Name")
+    @UriPath(description = "The name of the queue, or of the topic for a topic 
endpoint such as alibaba-mns:topic:myTopic. The"
+                           + " CamelAlibabaMnsQueueName exchange property 
replaces the name of the queue for sendMessage and"
+                           + " deleteMessage.",
+             displayName = "Queue Name")
     @Metadata(required = true)
     private String queueName;
 
-    @UriParam(description = "Operation to perform by the producer. The 
consumer does not use it: it receives the messages"
-                            + " of the queue",
+    @UriParam(description = "The operation that the producer performs. If not 
set, the producer performs publishMessage for a"
+                            + " topic endpoint and sendMessage otherwise. The 
CamelAlibabaMnsOperation header replaces this"
+                            + " option, and an exchange property of the same 
name replaces both.",
               displayName = "Operation", enums = 
"sendMessage,deleteMessage,publishMessage")
     private String operation;
 
-    @UriParam(description = "Alibaba Cloud region", displayName = "Region")
+    @UriParam(description = "The region ID of Simple Message Queue, for 
example cn-hangzhou.", displayName = "Region")
     @Metadata(required = true)
     private String region;
 
-    @UriParam(description = "MNS account endpoint, for example 
https://123456.mns.cn-hangzhou.aliyuncs.com";,
+    @UriParam(description = "The endpoint of Simple Message Queue for the 
Alibaba Cloud account, for example"
+                            + " https://123456.mns.cn-hangzhou.aliyuncs.com. 
The value must start with http:// or https://.";,
               displayName = "Account Endpoint")
     @Metadata(required = true)
     private String accountEndpoint;
 
-    @UriParam(description = "Access key for the cloud user", displayName = 
"Access Key", security = "secret",
+    @UriParam(description = "The AccessKey ID of the AccessKey pair for Simple 
Message Queue. If not set, the accessKey of the"
+                            + " serviceKeys option is used.",
+              displayName = "Access Key", security = "secret",
               label = "security")
     private String accessKey;
 
-    @UriParam(description = "Secret key for the cloud user", displayName = 
"Secret Key", security = "secret",
+    @UriParam(description = "The AccessKey secret of the AccessKey pair for 
Simple Message Queue. If not set, the secretKey of"
+                            + " the serviceKeys option is used.",
+              displayName = "Secret Key", security = "secret",
               label = "security")
     private String secretKey;
 
-    @UriParam(description = "Configuration object for cloud service 
authentication", displayName = "Service Keys",
+    @UriParam(description = "The AccessKey pair as an 
org.apache.camel.component.alibaba.common.models.ServiceKeys. Each of"

Review Comment:
   Awkward grammar in "Each of its accessKey and secretKey is used when the 
option of the same name is not set." — this doesn't read naturally.
   
   ```suggestion
       @UriParam(description = "The AccessKey pair as an 
org.apache.camel.component.alibaba.common.models.ServiceKeys. Its"
                               + " accessKey and secretKey serve as defaults 
when the corresponding options are not set.",
   ```



##########
components/camel-alibaba/camel-alibaba-mns/src/main/docs/alibaba-mns-component.adoc:
##########
@@ -2,7 +2,7 @@
 :doctitle: Alibaba Message Service (MNS)

Review Comment:
   `:doctitle:` still uses the old "Alibaba Message Service (MNS)" name while 
the `:description:` on line 5 now says "Simple Message Queue (SMQ, formerly 
MNS)".
   
   ```suggestion
   :doctitle: Simple Message Queue (SMQ, formerly MNS)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to