Files
genai-toolbox/docs/en/resources/sources/cloud-sql-admin.md
prernakakkar-google 4f46782927 feat(source/cloudsqladmin): Add cloud sql admin source (#1408)
## Description

---
This PR introduces the `cloud-sql-admin` source, which provides a client
for the Google Cloud SQL Admin API.

```

sources:
  my-cloud-sql-admin:
    kind: cloud-sql-admin
```



## PR Checklist

---
> Thank you for opening a Pull Request! Before submitting your PR, there
are a
> few things you can do to make sure it goes smoothly:

- [x] Make sure you reviewed

[CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose)
before writing your code! That way we can discuss the change, evaluate
  designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)
- [ ] Make sure to add `!` if this involve a breaking change

🛠️ Fixes #<issue_number_goes_here>
2025-09-10 23:34:07 +00:00

1.8 KiB

title, type, weight, description, aliases
title type weight description aliases
Cloud SQL Admin docs 1 A "cloud-sql-admin" source provides a client for the Cloud SQL Admin API.
/resources/sources/cloud-sql-admin

About

The cloud-sql-admin source provides a client to interact with the Google Cloud SQL Admin API. This allows tools to perform administrative tasks on Cloud SQL instances, such as creating users and databases.

Authentication can be handled in two ways:

  1. Application Default Credentials (ADC): By default, the source uses ADC to authenticate with the API.
  2. Client-side OAuth: If useClientOAuth is set to true, the source will expect an OAuth 2.0 access token to be provided by the client (e.g., a web browser) for each request.

Example

sources:
    my-cloud-sql-admin:
        kind: cloud-sql-admin

    my-oauth-cloud-sql-admin:
        kind: cloud-sql-admin
        useClientOAuth: true

Reference

field type required description
kind string true Must be "cloud-sql-admin".
useClientOAuth boolean false If true, the source will use client-side OAuth for authorization. Otherwise, it will use Application Default Credentials. Defaults to false.