disableServiceAccount method

ResponseFuture<Empty> disableServiceAccount(
  1. DisableServiceAccountRequest request, {
  2. CallOptions? options,
})

Disables a google.iam.admin.v1.ServiceAccount immediately.

If an application uses the service account to authenticate, that application can no longer call Google APIs or access Google Cloud resources. Existing access tokens for the service account are rejected, and requests for new access tokens will fail.

To re-enable the service account, use google.iam.admin.v1.IAM.EnableServiceAccount. After you re-enable the service account, its existing access tokens will be accepted, and you can request new access tokens.

To help avoid unplanned outages, we recommend that you disable the service account before you delete it. Use this method to disable the service account, then wait at least 24 hours and watch for unintended consequences. If there are no unintended consequences, you can delete the service account with google.iam.admin.v1.IAM.DeleteServiceAccount.

Implementation

$grpc.ResponseFuture<$1.Empty> disableServiceAccount(
  $0.DisableServiceAccountRequest request, {
  $grpc.CallOptions? options,
}) {
  return $createUnaryCall(_$disableServiceAccount, request, options: options);
}