Class Environments

java.lang.Object
com.google.genai.gaos.Environments

public class Environments extends Object
  • Method Details

    • files

      public final Files files()
    • async

      public AsyncEnvironments async()
      Switches to the async SDK.
      Returns:
      The async SDK
    • listEnvironments

      public ListEnvironmentsRequestBuilder listEnvironments()
      Lists environments.
      Returns:
      The call builder
    • listEnvironmentsDirect

      public ListEnvironmentsResponse 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

      public CreateEnvironmentRequestBuilder createEnvironment()
      Creates an environment.
      Returns:
      The call builder
    • createEnvironment

      public CreateEnvironmentResponse createEnvironment(@Nonnull CreateEnvironmentRequest body)
      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

      public DeleteEnvironmentRequestBuilder deleteEnvironment()
      Deletes an environment.
      Returns:
      The call builder
    • deleteEnvironment

      public DeleteEnvironmentResponse deleteEnvironment(@Nonnull String id)
      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

      public GetEnvironmentRequestBuilder getEnvironment()
      Gets an environment.
      Returns:
      The call builder
    • getEnvironment

      public GetEnvironmentResponse getEnvironment(@Nonnull String id)
      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