• Preparing search index...
  • The search index is not available
@google/genai
  • @google/genai
  • gaos/funcs/environments-files-list
  • environmentsFilesList

Function environmentsFilesList

  • environmentsFilesList(
        client: GoogleGenAICore,
        environment: string,
        path: string,
        api_version?: string,
        page_size?: number,
        page_token?: string,
        recursive?: boolean,
        options?: Omit<RequestOptions, "extra_body">,
    ): APIPromise<
        Result<
            GetEnvironmentFilesResponse,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError,
        >,
    >

    Retrieves file metadata or directory contents from an environment's snapshot. To download file contents directly, pass ?alt=media or use the files.download helper.

    Parameters

    • client: GoogleGenAICore
    • environment: string
    • path: string
    • Optionalapi_version: string
    • Optionalpage_size: number
    • Optionalpage_token: string
    • Optionalrecursive: boolean
    • Optionaloptions: Omit<RequestOptions, "extra_body">

    Returns APIPromise<
        Result<
            GetEnvironmentFilesResponse,
            | UnexpectedClientError
            | InvalidRequestError
            | RequestAbortedError
            | RequestTimeoutError
            | ConnectionError
            | GoogleGenAiError,
        >,
    >

    • Defined in src/gaos/funcs/environments-files-list.ts:37

Settings

@google/genai
  • Loading...

Generated using TypeDoc