code: public Observable<AvailabilitySetInner> createOrUpdateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, availabilitySetName, parameters).map(new Func1<ServiceResponse<AvailabilitySetInner>, AvailabilitySetInner>() {
              @Override
              public AvailabilitySetInner call(ServiceResponse<AvailabilitySetInner> response) {
                  return response.body();
              }
          });
      }
docs: Create or update an availability set.
  
  @param resourceGroupName The name of the resource group.
  @param availabilitySetName The name of the availability set.
  @param parameters Parameters supplied to the Create Availability Set operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the AvailabilitySetInner object