async function setACL() {
    //Initialize request argument(s)
    const request = {};
    request.policy = {
      bindings: [
        {
          role: policyRole,
          members: [policyMember],
        },
      ],
    };
    if (documentId !== 'YOUR_DOCUMENT_ID') {
      // Full document resource name, e.g.:
      // projects/{project_id}/locations/{location}/documents/{document_id}
      request.resource = `projects/${projectId}/locations/${location}/documents/${documentId}`;
      request.requestMetadata = {userInfo: {id: userId}};
    } else {
      // Full document resource name, e.g.: projects/{project_id}
      request.resource = `projects/${projectId}`;
      request.projectOwner = true;
    }

    // Make Request
    const response = serviceClient.setAcl(request);

    // Print Response
    response.then(
      result => console.log(`Success! Response: \n${JSON.stringify(result)}`),
      error => console.log(`Failed! Response: \n${error}`)
    );
  }
TODO(developer): Uncomment these variables before running the sample.
project_id = 'YOUR_PROJECT_ID'
location = 'YOUR_PROJECT_LOCATION' // Format is 'us' or 'eu'
policyRole = 'YOUR_REQUESTED_ROLE',
policyMember = 'YOUR_REQUESTED_MEMBER',
user_id = 'user:YOUR_SERVICE_ACCOUNT_ID' # Format is "user:xxxx@example.com"
document_id = 'YOUR_DOCUMENT_ID'