code: @BetaApi
    public final Operation recreateInstancesRegionInstanceGroupManager(
        String instanceGroupManager,
        RegionInstanceGroupManagersRecreateRequest
            regionInstanceGroupManagersRecreateRequestResource) {
  
      RecreateInstancesRegionInstanceGroupManagerHttpRequest request =
          RecreateInstancesRegionInstanceGroupManagerHttpRequest.newBuilder()
              .setInstanceGroupManager(instanceGroupManager)
              .setRegionInstanceGroupManagersRecreateRequestResource(
                  regionInstanceGroupManagersRecreateRequestResource)
              .build();
      return recreateInstancesRegionInstanceGroupManager(request);
    }
docs: Flags the specified instances in the managed instance group to be immediately recreated. The
  instances are deleted and recreated using the current instance template for the managed
  instance group. This operation is marked as DONE when the flag is set even if the instances
  have not yet been recreated. You must separately verify the status of the recreating action
  with the listmanagedinstances method.
  
  <p>If the group is part of a backend service that has enabled connection draining, it can take
  up to 60 seconds after the connection draining duration has elapsed before the VM instance is
  removed or deleted.
  
  <p>You can specify a maximum of 1000 instances with this method per request.
  
  <p>Sample code:
  
  <pre><code>
  try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
  ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
  RegionInstanceGroupManagersRecreateRequest regionInstanceGroupManagersRecreateRequestResource = RegionInstanceGroupManagersRecreateRequest.newBuilder().build();
  Operation response = regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManager(instanceGroupManager.toString(), regionInstanceGroupManagersRecreateRequestResource);
  }
  </code></pre>
  
  @param instanceGroupManager Name of the managed instance group.
  @param regionInstanceGroupManagersRecreateRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails