Package com.google.genai.gaos
Class AsyncEnvironments
java.lang.Object
com.google.genai.gaos.AsyncEnvironments
-
Method Summary
Modifier and TypeMethodDescriptionCreates an environment.Creates an environment.createEnvironment(String apiVersion, CreateEnvironmentRequest body, Options options) Creates an environment.Deletes an environment.Deletes an environment.deleteEnvironment(String apiVersion, String id, Options options) Deletes an environment.final AsyncFilesfiles()Gets an environment.getEnvironment(String id) Gets an environment.getEnvironment(String apiVersion, String id, Options options) Gets an environment.Lists environments.listEnvironments(String apiVersion, Integer pageSize, String pageToken, Options options) Lists environments.Lists environments.sync()Switches to the sync SDK.
-
Method Details
-
files
-
sync
Switches to the sync SDK.- Returns:
- The sync SDK
-
listEnvironments
Lists environments.- Returns:
- The async call builder
-
listEnvironmentsDirect
Lists environments.- Returns:
CompletableFuture<ListEnvironmentsResponse>- The async response
-
listEnvironments
public CompletableFuture<ListEnvironmentsResponse> listEnvironments(@Nullable String apiVersion, @Nullable Integer pageSize, @Nullable String pageToken, @Nullable Options options) Lists environments.- Parameters:
apiVersion- Which version of the API to use.pageSize- Optional. Maximum number of environments to return.\nIf unspecified, defaults to 50. Maximum is 1000.pageToken- Optional. Pagination token.options- additional options- Returns:
CompletableFuture<ListEnvironmentsResponse>- The async response
-
createEnvironment
Creates an environment.- Returns:
- The async call builder
-
createEnvironment
public CompletableFuture<CreateEnvironmentResponse> createEnvironment(@Nonnull CreateEnvironmentRequest body) Creates an environment.- Parameters:
body- Request for `CreateEnvironment`.- Returns:
CompletableFuture<CreateEnvironmentResponse>- The async response
-
createEnvironment
public CompletableFuture<CreateEnvironmentResponse> createEnvironment(@Nullable String apiVersion, @Nonnull CreateEnvironmentRequest body, @Nullable Options options) Creates an environment.- Parameters:
apiVersion- Which version of the API to use.body- Request for `CreateEnvironment`.options- additional options- Returns:
CompletableFuture<CreateEnvironmentResponse>- The async response
-
deleteEnvironment
Deletes an environment.- Returns:
- The async call builder
-
deleteEnvironment
Deletes an environment.- Parameters:
id- Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.- Returns:
CompletableFuture<DeleteEnvironmentResponse>- The async response
-
deleteEnvironment
public CompletableFuture<DeleteEnvironmentResponse> deleteEnvironment(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deletes an environment.- Parameters:
apiVersion- Which version of the API to use.id- Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.options- additional options- Returns:
CompletableFuture<DeleteEnvironmentResponse>- The async response
-
getEnvironment
Gets an environment.- Returns:
- The async call builder
-
getEnvironment
Gets an environment.- Parameters:
id- Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.- Returns:
CompletableFuture<GetEnvironmentResponse>- The async response
-
getEnvironment
public CompletableFuture<GetEnvironmentResponse> getEnvironment(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Gets an environment.- Parameters:
apiVersion- Which version of the API to use.id- Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.options- additional options- Returns:
CompletableFuture<GetEnvironmentResponse>- The async response
-