Package com.google.genai.gaos
Class AsyncCredentials
java.lang.Object
com.google.genai.gaos.AsyncCredentials
-
Method Summary
Modifier and TypeMethodDescriptioncreate()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.sync()Switches to the sync SDK.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
-
sync
Switches to the sync SDK.- Returns:
- The sync SDK
-
list
Lists credentials.- Returns:
- The async call builder
-
list
Lists credentials.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<ListCredentialsResponse>- The async response
-
list
public CompletableFuture<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:
CompletableFuture<ListCredentialsResponse>- The async response
-
create
Creates a new credential.- Returns:
- The async call builder
-
create
Creates a new credential.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<CreateCredentialResponse>- The async response
-
create
public CompletableFuture<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:
CompletableFuture<CreateCredentialResponse>- The async response
-
delete
Deletes a credential.- Returns:
- The async call builder
-
delete
Deletes a credential.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<DeleteCredentialResponse>- The async response
-
delete
public CompletableFuture<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:
CompletableFuture<DeleteCredentialResponse>- The async response
-
get
Gets a credential by ID.- Returns:
- The async call builder
-
get
Gets a credential by ID.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<GetCredentialResponse>- The async response
-
get
public CompletableFuture<GetCredentialResponse> get(@Nonnull GetCredentialRequest request, @Nullable Options options) Gets a credential by ID.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<GetCredentialResponse>- The async response
-
update
Updates a credential.- Returns:
- The async call builder
-
update
Updates a credential.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<UpdateCredentialResponse>- The async response
-
update
public CompletableFuture<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:
CompletableFuture<UpdateCredentialResponse>- The async response
-
listDirect
Deprecated. -
list
@Deprecated public CompletableFuture<ListCredentialsResponse> list(@Nullable String apiVersion, @Nullable Integer pageSize, @Nullable String pageToken, @Nullable Options options) Deprecated. -
create
@Deprecated public CompletableFuture<CreateCredentialResponse> create(@Nonnull CredentialCreateParams body) Deprecated. -
create
@Deprecated public CompletableFuture<CreateCredentialResponse> create(@Nullable String apiVersion, @Nonnull CredentialCreateParams body, @Nullable Options options) Deprecated. -
delete
Deprecated. -
delete
@Deprecated public CompletableFuture<DeleteCredentialResponse> delete(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
get
Deprecated. -
get
@Deprecated public CompletableFuture<GetCredentialResponse> get(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
update
@Deprecated public CompletableFuture<UpdateCredentialResponse> update(@Nonnull String id, @Nonnull CredentialUpdate body) Deprecated. -
update
@Deprecated public CompletableFuture<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.