code: public Observable<CheckNameAvailabilityOutputInner> checkNameAvailabilityAsync(String name) {
          return checkNameAvailabilityWithServiceResponseAsync(name).map(new Func1<ServiceResponse<CheckNameAvailabilityOutputInner>, CheckNameAvailabilityOutputInner>() {
              @Override
              public CheckNameAvailabilityOutputInner call(ServiceResponse<CheckNameAvailabilityOutputInner> response) {
                  return response.body();
              }
          });
      }
docs: Checks whether the Media Service resource name is available. The name must be globally unique.
  
  @param name The name of the resource. A name must be globally unique.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the CheckNameAvailabilityOutputInner object