public final ListExclusionsPagedResponse listExclusions(ParentName parent) {
    ListExclusionsRequest request =
        ListExclusionsRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .build();
    return listExclusions(request);
  }
public final ListExclusionsPagedResponse listExclusions ( ParentName parent ) { ListExclusionsRequest request = ListExclusionsRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . build ( ) ; return listExclusions ( request ) ; }
Lists all the exclusions in a parent resource.

<p>Sample code:

<pre><code>
try (ConfigClient configClient = ConfigClient.create()) {
ParentName parent = ProjectName.of("[PROJECT]");
for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
// doThingsWith(element);
}
}
</code></pre>

@param parent Required. The parent resource whose exclusions are to be listed.
<p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
@throws com.google.api.gax.rpc.ApiException if the remote call fails