code: public Observable<SharedAccessAuthorizationRuleResourceInner> createOrUpdateAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters) {
          return createOrUpdateAuthorizationRuleWithServiceResponseAsync(resourceGroupName, namespaceName, authorizationRuleName, parameters).map(new Func1<ServiceResponse<SharedAccessAuthorizationRuleResourceInner>, SharedAccessAuthorizationRuleResourceInner>() {
              @Override
              public SharedAccessAuthorizationRuleResourceInner call(ServiceResponse<SharedAccessAuthorizationRuleResourceInner> response) {
                  return response.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
  @return the observable to the SharedAccessAuthorizationRuleResourceInner object