code: @BetaApi
    public final Operation recreateInstancesInstanceGroupManager(
        ProjectZoneInstanceGroupManagerName instanceGroupManager,
        InstanceGroupManagersRecreateInstancesRequest
            instanceGroupManagersRecreateInstancesRequestResource) {
  
      RecreateInstancesInstanceGroupManagerHttpRequest request =
          RecreateInstancesInstanceGroupManagerHttpRequest.newBuilder()
              .setInstanceGroupManager(
                  instanceGroupManager == null ? null : instanceGroupManager.toString())
              .setInstanceGroupManagersRecreateInstancesRequestResource(
                  instanceGroupManagersRecreateInstancesRequestResource)
              .build();
      return recreateInstancesInstanceGroupManager(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 (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
  ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
  InstanceGroupManagersRecreateInstancesRequest instanceGroupManagersRecreateInstancesRequestResource = InstanceGroupManagersRecreateInstancesRequest.newBuilder().build();
  Operation response = instanceGroupManagerClient.recreateInstancesInstanceGroupManager(instanceGroupManager, instanceGroupManagersRecreateInstancesRequestResource);
  }
  </code></pre>
  
  @param instanceGroupManager The name of the managed instance group.
  @param instanceGroupManagersRecreateInstancesRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails