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.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 Filesfiles()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.
-
Method Details
-
files
-
async
Switches to the async SDK.- Returns:
- The async SDK
-
listEnvironments
Lists environments.- Returns:
- The call builder
-
listEnvironmentsDirect
Lists environments.- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
listEnvironments
public 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:
- 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:
body- Request for `CreateEnvironment`.- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
createEnvironment
public 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:
- 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:
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:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
deleteEnvironment
public 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:
- 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:
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:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
getEnvironment
public 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:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-