code: public SharedAccessAuthorizationRuleResourceInner createOrUpdateAuthorizationRule(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) {
          return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters).toBlocking().single().body();
      }
docs: Creates an authorization rule for a namespace.
  
  @param resourceGroupName The name of the resource group.
  @param namespaceName The namespace name.
  @param authorizationRuleName Aauthorization Rule Name.
  @param parameters The shared access authorization rule.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the SharedAccessAuthorizationRuleResourceInner object if successful.