{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UpdateGcpCredentialDTO",
  "title": "UpdateGcpCredentialDTO",
  "type": "object",
  "properties": {
    "fallbackIndex": {
      "type": "number",
      "description": "This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.",
      "minimum": 1
    },
    "name": {
      "type": "string",
      "description": "This is the name of credential. This is just for your reference.",
      "minLength": 1,
      "maxLength": 40
    },
    "gcpKey": {
      "description": "This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details/<service-account-id>/keys.\n\nThe schema is identical to the JSON that GCP outputs.",
      "allOf": [
        {
          "$ref": "#/components/schemas/GcpKey"
        }
      ]
    },
    "region": {
      "type": "string",
      "description": "This is the region of the GCP resource.",
      "maxLength": 40
    },
    "bucketPlan": {
      "$ref": "#/components/schemas/BucketPlan"
    }
  }
}