code: public DomainInner createOrUpdate(String resourceGroupName, String domainName, DomainInner domainInfo) {
          return createOrUpdateWithServiceResponseAsync(resourceGroupName, domainName, domainInfo).toBlocking().last().body();
      }
docs: Create a domain.
  Asynchronously creates a new domain with the specified parameters.
  
  @param resourceGroupName The name of the resource group within the user's subscription.
  @param domainName Name of the domain
  @param domainInfo Domain information
  @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 DomainInner object if successful.