Package com.google.genai.gaos
Class Credentials
java.lang.Object
com.google.genai.gaos.Credentials
-
Method Summary
Modifier and TypeMethodDescriptionasync()Switches to the async SDK.create()Creates a new credential.create(CredentialCreateParams body) Deprecated.create(CreateCredentialRequest request) Creates a new credential.create(CreateCredentialRequest request, Options options) Creates a new credential.create(String apiVersion, CredentialCreateParams body, Options options) Deprecated.delete()Deletes a credential.delete(DeleteCredentialRequest request) Deletes a credential.delete(DeleteCredentialRequest request, Options options) Deletes a credential.Deprecated.Deprecated.get()Gets a credential by ID.get(GetCredentialRequest request) Gets a credential by ID.get(GetCredentialRequest request, Options options) Gets a credential by ID.Deprecated.Deprecated.list()Lists credentials.list(ListCredentialsRequest request) Lists credentials.list(ListCredentialsRequest request, Options options) Lists credentials.Deprecated.Deprecated.update()Updates a credential.update(UpdateCredentialRequest request) Updates a credential.update(UpdateCredentialRequest request, Options options) Updates a credential.update(String id, CredentialUpdate body) Deprecated.Deprecated.
-
Method Details
-
async
Switches to the async SDK.- Returns:
- The async SDK
-
list
Lists credentials.- Returns:
- The call builder
-
list
Lists credentials.- 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
-
list
public ListCredentialsResponse list(@Nonnull ListCredentialsRequest request, @Nullable Options options) Lists credentials.- 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
-
create
Creates a new credential.- Returns:
- The call builder
-
create
Creates a new credential.- 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
-
create
public CreateCredentialResponse create(@Nonnull CreateCredentialRequest request, @Nullable Options options) Creates a new credential.- 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
-
delete
Deletes a credential.- Returns:
- The call builder
-
delete
Deletes a credential.- 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
-
delete
public DeleteCredentialResponse delete(@Nonnull DeleteCredentialRequest request, @Nullable Options options) Deletes a credential.- 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
-
get
Gets a credential by ID.- Returns:
- The call builder
-
get
Gets a credential by ID.- 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
-
get
Gets a credential by ID.- 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
-
update
Updates a credential.- Returns:
- The call builder
-
update
Updates a credential.- 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
-
update
public UpdateCredentialResponse update(@Nonnull UpdateCredentialRequest request, @Nullable Options options) Updates a credential.- 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
-
listDirect
Deprecated. -
list
@Deprecated public ListCredentialsResponse list(@Nullable String apiVersion, @Nullable Integer pageSize, @Nullable String pageToken, @Nullable Options options) Deprecated. -
create
Deprecated. -
create
@Deprecated public CreateCredentialResponse create(@Nullable String apiVersion, @Nonnull CredentialCreateParams body, @Nullable Options options) Deprecated. -
delete
Deprecated. -
delete
@Deprecated public DeleteCredentialResponse delete(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
get
Deprecated. -
get
@Deprecated public GetCredentialResponse get(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
update
@Deprecated public UpdateCredentialResponse update(@Nonnull String id, @Nonnull CredentialUpdate body) Deprecated. -
update
@Deprecated public UpdateCredentialResponse update(@Nullable String apiVersion, @Nonnull String id, @Nullable String updateMask, @Nonnull CredentialUpdate body, @Nullable Options options) Deprecated.
-
create(com.google.genai.gaos.models.operations.CreateCredentialRequest)withCreateCredentialRequest.builder()instead.