This document describes how to use the advanced configuration options for Developer Connect account connectors in Gemini Code Assist tools.
Account connectors are a Developer Connect feature that helps establish authentication, authorization, and permissions settings between Gemini Code Assist and tools you can use in the IDE.
Platform administrators setting up Gemini Code Assist tools in the Gemini Code Assist Google Cloud console can manage advanced configuration settings for their Developer Connect account connectors. This document explains the steps in the Edit advanced configuration process.
To learn more about Gemini Code Assist tools, read the Gemini Code Assist tools overview.
Before you begin
Ask your administrator to do the following
Required roles
To get the permissions that you need to use Gemini Code Assist tools, ask your administrator to grant you the following IAM roles on the Google Cloud project:
-
Developer Connect OAuth User (
roles/developerconnect.oauthUser
) -
Gemini for Google Cloud Settings User (
roles/cloudaicompanion.settingsUser
)
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
Create an account connector
This section describes how to create an account connector connection between Developer Connect and Gemini Code Assist tools.
To create a new account connector, do the following:
In the Google Cloud console, open Developer Connect.
Developer Connect displays the Git repositories page.
Select Account connectors.
Click Create connector.
Select the Region in which to create this account connector.
Give the account connector a Name.
Select the provider.
Select the scopes to be granted to Developer Connect for this connection.
Scopes determine what actions Developer Connect can perform in the selected provider's service. Scopes differ according to each provider. You must select at least one scope unless the provider has no scopes.
Click Create to finish creating this account connector.
Connect your account
After you've created an account connector, you still need to connect Developer Connect to your account with the provider before you can use the account connector.
In the Google Cloud console, open Developer Connect.
Developer Connect displays the Git repositories page.
Select Account connectors.
The Account connectors page lists all the account connectors you have in your project.
Click the name of the account connector for which you want to connect your provider account.
The Connector details page is displayed.
Click Connect your account.
An Oauth authentication dialog is shown.
Provide the information in the dialog to authenticate to your provider.
Click Authorize.
You can now use the Gemini Code Assist tools from your IDE.
Update an account connector
You can update an existing account connector. But you can only update the scopes for that connector.
In the Google Cloud console, open Developer Connect.
Developer Connect displays the Git repositories page.
Select Account connectors.
The Account connectors page lists all the account connectors you have in your project.
Click the name of the account connector you want to update.
The Connector details page is displayed.
Click Edit.
From the Scopes list, select the scopes you want to allow for this account connector.
Click Save.
Delete an account connector
In the Google Cloud console, open Developer Connect.
Developer Connect displays the Git repositories page.
Select Account connectors.
The Account connectors page lists all the account connectors you have in your project.
From the More menu, select Delete.
The Connector details page is displayed.
Click Edit.