prashantpogde commented on a change in pull request #2564:
URL: https://github.com/apache/ozone/pull/2564#discussion_r696085590



##########
File path: 
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
##########
@@ -637,18 +637,22 @@ public void createTenant(String tenantName) throws 
IOException {
   // TODO: modify, delete
 
   /**
-   * Create tenant user.
-   * @param tenantUsername tenant user name.
+   * Assign user to tenant.
+   * @param username user name to be assigned.
+   * @param tenantName tenant name.
    * @throws IOException
    */
   @Override
-  public S3SecretValue createTenantUser(
-      String tenantUsername, String tenantName) throws IOException {
-    Preconditions.checkArgument(Strings.isNotBlank(tenantUsername),
-        "tenantUsername cannot be null or empty.");
+  public S3SecretValue assignUserToTenant(
+      String username, String tenantName, String accessId) throws IOException {
+    Preconditions.checkArgument(Strings.isNotBlank(username),
+        "username can't be null or empty.");
     Preconditions.checkArgument(Strings.isNotBlank(tenantName),
-        "tenantName cannot be null or empty.");
-    return ozoneManagerClient.createTenantUser(tenantUsername, tenantName);
+        "tenantName can't be null or empty.");
+    Preconditions.checkArgument(Strings.isNotBlank(accessId),

Review comment:
       Same comment as above. If a preferred accessId is not given  by the 
user, Ozone should create one and return it.




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to