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