This document describes how to access and use the
Gemini Code Assist administrator controls.

Gemini Code Assist subscriptions are subject to
Google Cloud [Service Specific Terms](https://cloud.google.com/terms/service-terms)
regarding Pricing and Billing for Committed Units.

## Grant IAM permissions

In order to get the required permissions for editing
Gemini Code Assist subscriptions, ask your administrator to grant
you the [`roles/billing.admin` IAM role](https://docs.cloud.google.com/billing/docs/how-to/billing-access.md.txt#billing.admin)
on the billing account.

Alternatively, ask your administrator to grant you the
[`roles/consumerprocurement.orderAdmin` role](https://docs.cloud.google.com/marketplace/docs/access-control.md.txt#consumerprocurement.orderAdmin)
*and* the
[`roles/billing.viewer` role](https://docs.cloud.google.com/billing/docs/how-to/billing-access.md.txt#billing.viewer).

These roles contain the permissions required to modify
Gemini Code Assist subscriptions. To see the exact permissions
that are required, expand the **Required permissions** section.

#### Required permissions

- `consumerprocurement.orders.place`
- `billing.billingAccountPrices.list`

## Edit a Gemini Code Assist subscription

> [!IMPORTANT]
> **Important:** New Gemini Code Assist subscriptions are [no longer available for purchase](https://docs.cloud.google.com/gemini/docs/codeassist/sunset.md.txt), and subscriptions can't be transferred between billing accounts.

1. In the Google Cloud console, go to the **Admin for Gemini** page.

   [Go to **Admin for Gemini**](https://console.cloud.google.com/gemini-admin)

   The **Admin for Gemini** page loads.
2. Use the project picker at the top of the page to ensure you are scoped to the
   project or folder that has an existing Gemini Code Assist
   subscription.

3. Locate the **Gemini Code Assist** product tile, and then click
   **Manage Gemini Code Assist**.

4. Select **Manage subscription**.

   The **Manage subscription** page appears.
5. Select **Manage subscription** to edit the subscription, including:

   - **Manage edition** - If you're editing your Gemini Code Assist
     subscription, then you can upgrade from Standard edition to Enterprise
     edition, which takes effect immediately. Alternatively, you can downgrade
     from Enterprise edition to Standard edition, which takes effect at end of
     the current subscription term. To see a list of features available in each
     edition, see
     [Supported features](https://docs.cloud.google.com/gemini/docs/codeassist/overview.md.txt#supported-features).

     > [!NOTE]
     > **Note:** Gemini Code Assist Standard licenses obtained using the Gemini Enterprise bundle cannot be upgraded in the Google Cloud console because they are licenses, not a standalone subscription. To obtain Enterprise features in this scenario, you must purchase a separate Gemini Code Assist Enterprise subscription.

   - **Increase or decrease the number of licenses in the subscription** -
     Adding licenses makes them available to you almost immediately.
     However, if you reduce the number of licenses, then the changes won't take
     effect until the end of the subscription term. Additionally, the original
     license count is still reflected in your bill until the changes are
     applied.

   - **Change the subscription period** - You can set the subscription to bill
     monthly or annually. With an annual subscription, you are given a
     discounted rate that is charged on a monthly basis rather than a one-time
     payment. If you change from an annual subscription to a monthly
     subscription, then the change won't take effect until the end of the
     annual term. Additionally, you cannot change the subscription period
     unless you have enabled subscription auto-renewal.

   - **Enable or disable auto-renewal** - If you disable auto-renewal, the
     subscription expires at the end of the subscription term and all the
     licenses in the subscription become invalid. You cannot re-enable a
     subscription after it expires. Additionally, if auto-renewal
     is disabled, then you can't make the following changes:

     - Reduce number of licenses
     - Change from annual to monthly subscription period
     - Change from Enterprise edition to Standard edition
6. Select **Continue** , and then select **Confirm changes**.

> [!NOTE]
> **Note:** Changes to a subscription that decrease the number of licenses, downgrade the edition, or reduce the subscription period don't take effect immediately; instead, they take effect at the end of the current subscription term. Similarly, you can't cancel a subscription during its term. If you want to end your subscription, make sure that you have auto-renewal disabled. For more information, see [Turn off Gemini Code Assist](https://docs.cloud.google.com/gemini/docs/codeassist/turn-off.md.txt).

## What's next

- Learn more about [Gemini Code Assist billing](https://docs.cloud.google.com/gemini/docs/billing-questions.md.txt).
- [Manage your Gemini Code Assist licenses](https://docs.cloud.google.com/gemini/docs/codeassist/manage-licenses.md.txt).
- [Turn off Gemini Code Assist](https://docs.cloud.google.com/gemini/docs/codeassist/turn-off.md.txt).