Package com.google.genai.gaos
Class AsyncEnvironments
java.lang.Object
com.google.genai.gaos.AsyncEnvironments
-
Method Summary
Modifier and TypeMethodDescriptionCreates an environment.Deprecated.Creates an environment.createEnvironment(CreateEnvironmentRequest request, Options options) Creates an environment.createEnvironment(String apiVersion, CreateEnvironmentRequest body, Options options) Deprecated.Deletes an environment.Deletes an environment.deleteEnvironment(DeleteEnvironmentRequest request, Options options) Deletes an environment.Deprecated.deleteEnvironment(String apiVersion, String id, Options options) Deprecated.final AsyncFilesfiles()Gets an environment.getEnvironment(GetEnvironmentRequest request) Gets an environment.getEnvironment(GetEnvironmentRequest request, Options options) Gets an environment.getEnvironment(String id) Deprecated.getEnvironment(String apiVersion, String id, Options options) Deprecated.final AsyncInternalinternal()Lists environments.listEnvironments(ListEnvironmentsRequest request) Lists environments.listEnvironments(ListEnvironmentsRequest request, Options options) Lists environments.listEnvironments(String apiVersion, EnvironmentMode mode, Integer pageSize, String pageToken, Options options) Deprecated.listEnvironments(String apiVersion, Integer pageSize, String pageToken, Options options) Deprecated.Deprecated.sync()Switches to the sync SDK.
-
Method Details
-
internal
-
files
-
sync
Switches to the sync SDK.- Returns:
- The sync SDK
-
listEnvironments
Lists environments.- Returns:
- The async call builder
-
listEnvironments
public CompletableFuture<ListEnvironmentsResponse> listEnvironments(@Nonnull ListEnvironmentsRequest request) Lists environments.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<ListEnvironmentsResponse>- The async response
-
listEnvironments
public CompletableFuture<ListEnvironmentsResponse> listEnvironments(@Nonnull ListEnvironmentsRequest request, @Nullable Options options) Lists environments.- Parameters:
request- The request object containing all the parameters for the API call.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 request) Creates an environment.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<CreateEnvironmentResponse>- The async response
-
createEnvironment
public CompletableFuture<CreateEnvironmentResponse> createEnvironment(@Nonnull CreateEnvironmentRequest request, @Nullable Options options) Creates an environment.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<CreateEnvironmentResponse>- The async response
-
deleteEnvironment
Deletes an environment.- Returns:
- The async call builder
-
deleteEnvironment
public CompletableFuture<DeleteEnvironmentResponse> deleteEnvironment(@Nonnull DeleteEnvironmentRequest request) Deletes an environment.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<DeleteEnvironmentResponse>- The async response
-
deleteEnvironment
public CompletableFuture<DeleteEnvironmentResponse> deleteEnvironment(@Nonnull DeleteEnvironmentRequest request, @Nullable Options options) Deletes an environment.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<DeleteEnvironmentResponse>- The async response
-
getEnvironment
Gets an environment.- Returns:
- The async call builder
-
getEnvironment
public CompletableFuture<GetEnvironmentResponse> getEnvironment(@Nonnull GetEnvironmentRequest request) Gets an environment.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<GetEnvironmentResponse>- The async response
-
getEnvironment
public CompletableFuture<GetEnvironmentResponse> getEnvironment(@Nonnull GetEnvironmentRequest request, @Nullable Options options) Gets an environment.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<GetEnvironmentResponse>- The async response
-
listEnvironmentsDirect
Deprecated. -
listEnvironments
@Deprecated public CompletableFuture<ListEnvironmentsResponse> listEnvironments(@Nullable String apiVersion, @Nullable Integer pageSize, @Nullable String pageToken, @Nullable Options options) Deprecated. -
listEnvironments
@Deprecated public CompletableFuture<ListEnvironmentsResponse> listEnvironments(@Nullable String apiVersion, @Nullable EnvironmentMode mode, @Nullable Integer pageSize, @Nullable String pageToken, @Nullable Options options) Deprecated. -
createEnvironment
@Deprecated public CompletableFuture<CreateEnvironmentResponse> createEnvironment(@Nonnull CreateEnvironmentRequest body) Deprecated. -
createEnvironment
@Deprecated public CompletableFuture<CreateEnvironmentResponse> createEnvironment(@Nullable String apiVersion, @Nonnull CreateEnvironmentRequest body, @Nullable Options options) Deprecated. -
deleteEnvironment
@Deprecated public CompletableFuture<DeleteEnvironmentResponse> deleteEnvironment(@Nonnull String id) Deprecated. -
deleteEnvironment
@Deprecated public CompletableFuture<DeleteEnvironmentResponse> deleteEnvironment(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
getEnvironment
Deprecated. -
getEnvironment
@Deprecated public CompletableFuture<GetEnvironmentResponse> getEnvironment(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated.
-
createEnvironment(com.google.genai.gaos.models.operations.CreateEnvironmentRequest)withCreateEnvironmentRequest.builder()instead.