@BetaApi(
      "The surface for long-running operations is not stable yet and may change in the future.")
  public final OperationFuture<Empty, Empty> runAssetDiscoveryAsync(OrganizationName parent) {

    RunAssetDiscoveryRequest request =
        RunAssetDiscoveryRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .build();
    return runAssetDiscoveryAsync(request);
  }
@ BetaApi ( "The surface for long-running operations is not stable yet and may change in the future." ) public final OperationFuture < Empty , Empty > runAssetDiscoveryAsync ( OrganizationName parent ) { RunAssetDiscoveryRequest request = RunAssetDiscoveryRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . build ( ) ; return runAssetDiscoveryAsync ( request ) ; }
Runs asset discovery. The discovery is tracked with a long-running operation.

<p>This API can only be called with limited frequency for an organization. If it is called too
frequently the caller will receive a TOO_MANY_REQUESTS error.

<p>Sample code:

<pre><code>
try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
securityCenterClient.runAssetDiscoveryAsync(parent).get();
}
</code></pre>

@param parent Name of the organization to run asset discovery for. Its format is
"organizations/[organization_id]".
@throws com.google.api.gax.rpc.ApiException if the remote call fails