{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-drive/json-schema/google-drive-google-apps-drive-labels-v2-update-label-enabled-app-settings-request-schema.json",
  "title": "GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest",
  "description": "Request to update the `EnabledAppSettings` of the given label. This change is not revisioned, doesn't require publishing, and takes effect immediately. \\",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-drive-drivelabels-labels-api-openapi.yml#/components/schemas/GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest",
  "properties": {
    "useAdminAccess": {
      "type": "boolean",
      "description": "Optional. Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access."
    },
    "languageCode": {
      "description": "Optional. The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.",
      "type": "string"
    },
    "enabledAppSettings": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2LabelEnabledAppSettings",
      "description": "Required. The new `EnabledAppSettings` value for the label."
    },
    "view": {
      "type": "string",
      "description": "Optional. When specified, only certain fields belonging to the indicated view will be returned.",
      "enum": [
        "LABEL_VIEW_BASIC",
        "LABEL_VIEW_FULL"
      ]
    }
  },
  "type": "object",
  "$defs": {
    "GoogleAppsDriveLabelsV2LabelEnabledAppSettings": {
      "type": "object",
      "properties": {
        "enabledApps": {
          "items": {
            "$ref": "#/$defs/GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp"
          },
          "type": "array",
          "description": "Optional. The list of apps where the label can be used."
        }
      },
      "description": "Describes the Google Workspace apps in which the label can be used."
    },
    "GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp": {
      "type": "object",
      "description": "An app where the label can be used.",
      "properties": {
        "app": {
          "enum": [
            "APP_UNSPECIFIED",
            "DRIVE",
            "GMAIL"
          ],
          "description": "Optional. The name of the app.",
          "type": "string"
        }
      }
    }
  }
}