@BetaApi
  public final Operation insertRegionAutoscaler(
      ProjectRegionName region, Autoscaler autoscalerResource) {

    InsertRegionAutoscalerHttpRequest request =
        InsertRegionAutoscalerHttpRequest.newBuilder()
            .setRegion(region == null ? null : region.toString())
            .setAutoscalerResource(autoscalerResource)
            .build();
    return insertRegionAutoscaler(request);
  }
@ BetaApi public final Operation insertRegionAutoscaler ( ProjectRegionName region , Autoscaler autoscalerResource ) { InsertRegionAutoscalerHttpRequest request = InsertRegionAutoscalerHttpRequest . newBuilder ( ) . setRegion ( region == null ? null : region . toString ( ) ) . setAutoscalerResource ( autoscalerResource ) . build ( ) ; return insertRegionAutoscaler ( request ) ; }
Creates an autoscaler in the specified project using the data included in the request.

<p>Sample code:

<pre><code>
try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) {
ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
Operation response = regionAutoscalerClient.insertRegionAutoscaler(region, autoscalerResource);
}
</code></pre>

@param region Name of the region scoping this request.
@param autoscalerResource Represents an Autoscaler resource. Autoscalers allow you to
automatically scale virtual machine instances in managed instance groups according to an
autoscaling policy that you define. For more information, read Autoscaling Groups of
Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (==
resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==)
@throws com.google.api.gax.rpc.ApiException if the remote call fails