code: public DataMigrationServiceInner getByResourceGroup(String groupName, String serviceName) {
          return getByResourceGroupWithServiceResponseAsync(groupName, serviceName).toBlocking().single().body();
      }
docs: Get DMS Service Instance.
  The services resource is the top-level resource that represents the Data Migration Service. The GET method retrieves information about a service instance.
  
  @param groupName Name of the resource group
  @param serviceName Name of the service
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ApiErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the DataMigrationServiceInner object if successful.