code: public Observable<ServiceResponse<SharedAccessSignatureAuthorizationRuleInner>> getKeysForKeyNameWithServiceResponseAsync(String resourceGroupName, String resourceName, String keyName) {
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (resourceName == null) {
              throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
          }
          if (keyName == null) {
              throw new IllegalArgumentException("Parameter keyName is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          return service.getKeysForKeyName(this.client.subscriptionId(), resourceGroupName, resourceName, keyName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<SharedAccessSignatureAuthorizationRuleInner>>>() {
                  @Override
                  public Observable<ServiceResponse<SharedAccessSignatureAuthorizationRuleInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<SharedAccessSignatureAuthorizationRuleInner> clientResponse = getKeysForKeyNameDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: 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.
  @param resourceName The name of the IoT hub.
  @param keyName The name of the shared access policy.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the SharedAccessSignatureAuthorizationRuleInner object