Package com.google.genai.gaos
Class AsyncFiles
java.lang.Object
com.google.genai.gaos.AsyncFiles
-
Method Summary
Modifier and TypeMethodDescriptionlist()Retrieves a file or directory from an environment's snapshot.list(GetEnvironmentFilesRequest request) Retrieves a file or directory from an environment's snapshot.list(GetEnvironmentFilesRequest request, Options options) Retrieves a file or directory from an environment's snapshot.sync()Switches to the sync SDK.
-
Method Details
-
sync
Switches to the sync SDK.- Returns:
- The sync SDK
-
list
Retrieves a file or directory from an environment's snapshot.- Returns:
- The async call builder
-
list
public CompletableFuture<GetEnvironmentFilesResponse> list(@Nonnull GetEnvironmentFilesRequest request) Retrieves a file or directory from an environment's snapshot.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<GetEnvironmentFilesResponse>- The async response
-
list
public CompletableFuture<GetEnvironmentFilesResponse> list(@Nonnull GetEnvironmentFilesRequest request, @Nullable Options options) Retrieves a file or directory from an environment's snapshot.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<GetEnvironmentFilesResponse>- The async response
-