Open Connector
所有 Tools

Google Drive Labels

Catalog 暂无描述。

google-drive-labelsv1.0.017 个 Tools

认证方式

方式底层类型状态说明
OAuth 2.0oauth2available

调用示例

import { createClient } from "@open-connector/sdk";const oc = createClient({  baseUrl: "https://api.openconnector.dev",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({  slug: "GOOGLE_DRIVE_LABELS_LABELS_CREATE",  connectedAccountId: "conn_...",  arguments: { /* match this tool's input schema */ },});
import Composio from "@composio/client";const composio = new Composio({  baseURL: "https://api.openconnector.dev/composio",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("GOOGLE_DRIVE_LABELS_LABELS_CREATE", {  connected_account_id: "conn_...",  arguments: { /* match this tool's input schema */ },});
oc tools execute GOOGLE_DRIVE_LABELS_LABELS_CREATE --data '{ }'

Tool 目录

可用 Tools

17 个可调用操作

Drivelabels Labels CreateGOOGLE_DRIVE_LABELS_LABELS_CREATECreates a label. For more information, see [Create and publish a label](https://developers.google.com/workspace/drive/labels/guides/create-label).

Creates a label. For more information, see [Create and publish a label](https://developers.google.com/workspace/drive/labels/guides/create-label).

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels DeltaGOOGLE_DRIVE_LABELS_LABELS_DELTAUpdates a single label by applying a set of update requests resulting in a new draft revision. For more information, see [Update a label](https://developers.google.com/workspace/drive/labels/guides/update-label). The batch update is all-or-nothing: If any of the update requests are invalid, no changes are applied. The resulting draft revision must be published before the changes may be used with Drive items.

Updates a single label by applying a set of update requests resulting in a new draft revision. For more information, see [Update a label](https://developers.google.com/workspace/drive/labels/guides/update-label). The batch update is all-or-nothing: If any of the update requests are invalid, no changes are applied. The resulting draft revision must be published before the changes may be used with Drive items.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels DisableGOOGLE_DRIVE_LABELS_LABELS_DISABLEDisable a published label. For more information, see [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). Disabling a label will result in a new disabled published revision based on the current published revision. If there's a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with `DeleteLabel`.

Disable a published label. For more information, see [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). Disabling a label will result in a new disabled published revision based on the current published revision. If there's a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with `DeleteLabel`.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels EnableGOOGLE_DRIVE_LABELS_LABELS_ENABLEEnable a disabled label and restore it to its published state. For more information, see [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). This will result in a new published revision based on the current disabled published revision. If there's an existing disabled draft revision, a new revision will be created based on that draft and will be enabled.

Enable a disabled label and restore it to its published state. For more information, see [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-delete-label). This will result in a new published revision based on the current disabled published revision. If there's an existing disabled draft revision, a new revision will be created based on that draft and will be enabled.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels GetGOOGLE_DRIVE_LABELS_LABELS_GETGet a label by its resource name. For more information, see [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label). Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the label. * `labels/{id}@published` - Gets the current published revision of the label. * `labels/{id}@{revision_id}` - Gets the label at the specified revision ID.

Get a label by its resource name. For more information, see [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label). Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` * `labels/{id}@latest` - Gets the latest revision of the label. * `labels/{id}@published` - Gets the current published revision of the label. * `labels/{id}@{revision_id}` - Gets the label at the specified revision ID.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.admin.labels.readonlyhttps://www.googleapis.com/auth/drive.labelshttps://www.googleapis.com/auth/drive.labels.readonly

Tags

labels
Drivelabels Labels ListGOOGLE_DRIVE_LABELS_LABELS_LISTList labels. For more information, see [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label).

List labels. For more information, see [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label).

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.admin.labels.readonlyhttps://www.googleapis.com/auth/drive.labelshttps://www.googleapis.com/auth/drive.labels.readonly

Tags

labels
Drivelabels Labels PublishGOOGLE_DRIVE_LABELS_LABELS_PUBLISHPublish all draft changes to the label. Once published, the label may not return to its draft state. For more information, see [Create and publish a label](https://developers.google.com/workspace/drive/labels/guides/create-label). Publishing a label will result in a new published revision. All previous draft revisions will be deleted. Previous published revisions will be kept but are subject to automated deletion as needed. For more information, see [Label lifecycle](https://developers.google.com/workspace/drive/labels/guides/label-lifecycle). Once published, some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label will be rejected. For example, the following changes to a label will be rejected after the label is published: * The label cannot be directly deleted. It must be disabled first, then deleted. * `Field.FieldType` cannot be changed. * Changes to field validation options cannot reject something that was previously accepted. * Reducing the maximum entries.

Publish all draft changes to the label. Once published, the label may not return to its draft state. For more information, see [Create and publish a label](https://developers.google.com/workspace/drive/labels/guides/create-label). Publishing a label will result in a new published revision. All previous draft revisions will be deleted. Previous published revisions will be kept but are subject to automated deletion as needed. For more information, see [Label lifecycle](https://developers.google.com/workspace/drive/labels/guides/label-lifecycle). Once published, some changes are no longer permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label will be rejected. For example, the following changes to a label will be rejected after the label is published: * The label cannot be directly deleted. It must be disabled first, then deleted. * `Field.FieldType` cannot be changed. * Changes to field validation options cannot reject something that was previously accepted. * Reducing the maximum entries.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels Revisions Locks ListGOOGLE_DRIVE_LABELS_LABELS_REVISIONS_LOCKS_LISTLists the label locks on a label.

Lists the label locks on a label.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.admin.labels.readonlyhttps://www.googleapis.com/auth/drive.labelshttps://www.googleapis.com/auth/drive.labels.readonly

Tags

labels
Drivelabels Labels Revisions Permissions BatchDeleteGOOGLE_DRIVE_LABELS_LABELS_REVISIONS_PERMISSIONS_BATCH_DELETEDeletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

Deletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels Revisions Permissions BatchUpdateGOOGLE_DRIVE_LABELS_LABELS_REVISIONS_PERMISSIONS_BATCH_UPDATEUpdates label permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

Updates label permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels Revisions Permissions CreateGOOGLE_DRIVE_LABELS_LABELS_REVISIONS_PERMISSIONS_CREATEUpdates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels Revisions Permissions DeleteGOOGLE_DRIVE_LABELS_LABELS_REVISIONS_PERMISSIONS_DELETEDeletes a label's permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

Deletes a label's permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels Revisions Permissions ListGOOGLE_DRIVE_LABELS_LABELS_REVISIONS_PERMISSIONS_LISTLists a label's permissions.

Lists a label's permissions.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.admin.labels.readonlyhttps://www.googleapis.com/auth/drive.labelshttps://www.googleapis.com/auth/drive.labels.readonly

Tags

labels
Drivelabels Labels Revisions UpdatePermissionsGOOGLE_DRIVE_LABELS_LABELS_REVISIONS_UPDATE_PERMISSIONSUpdates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels UpdateLabelCopyModeGOOGLE_DRIVE_LABELS_LABELS_UPDATE_LABEL_COPY_MODEUpdates a label's `CopyMode`. Changes to this policy aren't revisioned, don't require publishing, and take effect immediately.

Updates a label's `CopyMode`. Changes to this policy aren't revisioned, don't require publishing, and take effect immediately.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.labels

Tags

labels
Drivelabels Labels UpdateLabelEnabledAppSettingsGOOGLE_DRIVE_LABELS_LABELS_UPDATE_LABEL_ENABLED_APP_SETTINGSUpdates a label's `EnabledAppSettings`. Enabling a label in a Google Workspace app allows it to be used in that app. This change isn't revisioned, doesn't require publishing, and takes effect immediately.

Updates a label's `EnabledAppSettings`. Enabling a label in a Google Workspace app allows it to be used in that app. This change isn't revisioned, doesn't require publishing, and takes effect immediately.

认证

需要 Connected Account

Tags

labels
Drivelabels Limits GetLabelGOOGLE_DRIVE_LABELS_LIMITS_GET_LABELGet the constraints on the structure of a label; such as, the maximum number of fields allowed and maximum length of the label title.

Get the constraints on the structure of a label; such as, the maximum number of fields allowed and maximum length of the label title.

认证

需要 Connected Account

Scopes

https://www.googleapis.com/auth/drive.admin.labelshttps://www.googleapis.com/auth/drive.admin.labels.readonlyhttps://www.googleapis.com/auth/drive.labelshttps://www.googleapis.com/auth/drive.labels.readonly

Tags

limits