code: public List<LocationInner> listLocations(String subscriptionId) {
          return listLocationsWithServiceResponseAsync(subscriptionId).toBlocking().single().body();
      }
docs: Gets all available geo-locations.
  This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
  
  @param subscriptionId The ID of the target subscription.
  @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 List&lt;LocationInner&gt; object if successful.