/**
 * Google Drive Node - Version 3
 * Discriminator: resource=drive, operation=list
 */


interface Credentials {
  googleApi: CredentialReference;
  googleDriveOAuth2Api: CredentialReference;
}

/** Get the list of shared drives */
export type GoogleDriveV3DriveListParams = {
  resource: 'drive';
  operation: 'list';
  authentication?: 'oAuth2' | 'serviceAccount' | Expression<string>;
/**
 * Whether to return all results or only up to a given limit
 * @default false
 */
    returnAll?: boolean | Expression<boolean>;
/**
 * Max number of results to return
 * @displayOptions.show { returnAll: [false] }
 * @default 100
 */
    limit?: number | Expression<number>;
/**
 * Options
 * @default {}
 */
    options?: {
    /** Query string for searching shared drives. See the &lt;a href="https://developers.google.com/drive/api/v3/search-shareddrives"&gt;"Search for shared drives"&lt;/a&gt; guide for supported syntax.
     */
    q?: string | Expression<string> | PlaceholderValue;
    /** Whether to issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs
     * @default false
     */
    useDomainAdminAccess?: boolean | Expression<boolean>;
  };
};

export type GoogleDriveV3DriveListOutput = {
  id?: string;
  kind?: string;
  name?: string;
};

export type GoogleDriveV3DriveListNode = {
  type: 'n8n-nodes-base.googleDrive';
  version: 3;
  credentials?: Credentials;
  config: NodeConfig<GoogleDriveV3DriveListParams>;
  output?: Items<GoogleDriveV3DriveListOutput>;
};