code: public void scale(String resourceGroupName, String accountName, String streamingEndpointName) {
          scaleWithServiceResponseAsync(resourceGroupName, accountName, streamingEndpointName).toBlocking().last().body();
      }
docs: Scale StreamingEndpoint.
  Scales an existing StreamingEndpoint.
  
  @param resourceGroupName The name of the resource group within the Azure subscription.
  @param accountName The Media Services account name.
  @param streamingEndpointName The name of the StreamingEndpoint.
  @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