@swamp/gcp/drivelabels
v2026.04.23.1
Google Cloud drivelabels infrastructure models
Repository
https://github.com/systeminit/swamp-extensions
Labels
gcpgoogle-clouddrivelabelscloudinfrastructure
Contents
Quality score
Verified by SwampHow well-documented and verifiable this extension is.
Grade A
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Has description1/1earned
- At least one platform tag (or universal)1/1earned
- Two or more platform tags (or universal)1/1earned
- License declared1/1earned
- Verified public repository2/2earned
Install
$ swamp extension pull @swamp/gcp/drivelabels@swamp/gcp/drivelabels/labelsv2026.04.23.1labels.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| appliedCapabilities? | object | The capabilities a user has on this label's applied metadata. |
| appliedLabelPolicy? | object | Behavior of this label when it's applied to Drive items. |
| creator? | object | Information about a user. |
| disabler? | object | Information about a user. |
| displayHints? | object | The UI display hints for rendering the label. |
| enabledAppSettings? | object | Describes the Google Workspace apps in which the label can be used. |
| fields? | array | List of fields in descending priority order. |
| labelType? | enum | Required. The type of label. |
| learnMoreUri? | string | Custom URL to present to users to allow them to learn more about this label and how it should be used. |
| lifecycle? | object | The lifecycle state of an object, such as label, field, or choice. For more information, see [Label lifecycle](https://developers.google.com/workspace/drive/labels/guides/label-lifecycle). The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted) The published and disabled states have some distinct characteristics |
| lockStatus? | object | Contains information about whether a label component should be considered locked. |
| properties? | object | Basic properties of the label. |
| publisher? | object | Information about a user. |
| revisionCreator? | object | Information about a user. |
| schemaCapabilities? | object | The capabilities related to this label when editing the label. |
| languageCode? | string | The BCP-47 language code to use for evaluating localized field labels in response. When not specified, values in the default configured language will be used. |
| useAdminAccess? | string | Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin before allowing access. |
createCreate a labels
getGet a labels
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the labels |
deleteDelete the labels
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the labels |
syncSync labels state from GCP
deltadelta
| Argument | Type | Description |
|---|---|---|
| languageCode? | any | |
| requests? | any | |
| useAdminAccess? | any | |
| view? | any | |
| writeControl? | any |
disabledisable
| Argument | Type | Description |
|---|---|---|
| disabledPolicy? | any | |
| languageCode? | any | |
| updateMask? | any | |
| useAdminAccess? | any | |
| writeControl? | any |
enableenable
| Argument | Type | Description |
|---|---|---|
| languageCode? | any | |
| useAdminAccess? | any | |
| writeControl? | any |
publishpublish
| Argument | Type | Description |
|---|---|---|
| languageCode? | any | |
| useAdminAccess? | any | |
| writeControl? | any |
update_label_copy_modeupdate label copy mode
| Argument | Type | Description |
|---|---|---|
| copyMode? | any | |
| languageCode? | any | |
| useAdminAccess? | any | |
| view? | any |
update_label_enabled_app_settingsupdate label enabled app settings
| Argument | Type | Description |
|---|---|---|
| enabledAppSettings? | any | |
| languageCode? | any | |
| useAdminAccess? | any | |
| view? | any |
update_permissionsupdate permissions
| Argument | Type | Description |
|---|---|---|
| audience? | any | |
| email? | any | |
| group? | any | |
| name? | any | |
| person? | any | |
| role? | any |
Resources
state(infinite)— A label defines a taxonomy that can be applied to Drive items in order to org...
@swamp/gcp/drivelabels/labels-locksv2026.04.23.1labels_locks.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
getGet a locks
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the locks |
syncSync locks state from GCP
Resources
state(infinite)— A lock that can be applied to a label, field, or choice.
@swamp/gcp/drivelabels/labels-permissionsv2026.04.23.1labels_permissions.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| audience? | string | Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label. |
| email? | string | Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified. |
| group? | string | Group resource name. |
| name? | string | Resource name of this permission. |
| person? | string | Person resource name. |
| role? | enum | The role the principal should have. |
| useAdminAccess? | string | 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. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
createCreate a permissions
getGet a permissions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the permissions |
deleteDelete the permissions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the permissions |
syncSync permissions state from GCP
batch_deletebatch delete
| Argument | Type | Description |
|---|---|---|
| requests? | any | |
| useAdminAccess? | any |
batch_updatebatch update
| Argument | Type | Description |
|---|---|---|
| requests? | any | |
| useAdminAccess? | any |
Resources
state(infinite)— The permission that applies to a principal (user, group, audience) on a label.
@swamp/gcp/drivelabels/labels-revisions-locksv2026.04.23.1labels_revisions_locks.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
getGet a locks
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the locks |
syncSync locks state from GCP
Resources
state(infinite)— A lock that can be applied to a label, field, or choice.
@swamp/gcp/drivelabels/labels-revisions-permissionsv2026.04.23.1labels_revisions_permissions.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| audience? | string | Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label. |
| email? | string | Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified. |
| group? | string | Group resource name. |
| name? | string | Resource name of this permission. |
| person? | string | Person resource name. |
| role? | enum | The role the principal should have. |
| useAdminAccess? | string | 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. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
createCreate a permissions
getGet a permissions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the permissions |
deleteDelete the permissions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the permissions |
syncSync permissions state from GCP
batch_deletebatch delete
| Argument | Type | Description |
|---|---|---|
| requests? | any | |
| useAdminAccess? | any |
batch_updatebatch update
| Argument | Type | Description |
|---|---|---|
| requests? | any | |
| useAdminAccess? | any |
Resources
state(infinite)— The permission that applies to a principal (user, group, audience) on a label.
2026.04.04.131.8 KBApr 4, 2026
Google Cloud drivelabels infrastructure models
Release Notes
- Updated: labels
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddrivelabelscloudinfrastructure
2026.04.03.349.4 KBApr 3, 2026
Google Cloud drivelabels infrastructure models
Release Notes
- Updated: labels, labels_locks, labels_permissions, labels_revisions_locks, labels_revisions_permissions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddrivelabelscloudinfrastructure
2026.04.03.149.1 KBApr 3, 2026
Google Cloud drivelabels infrastructure models
Release Notes
- Updated: labels, labels_locks, labels_permissions, labels_revisions_locks, labels_revisions_permissions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddrivelabelscloudinfrastructure
2026.04.02.249.1 KBApr 2, 2026
Google Cloud drivelabels infrastructure models
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddrivelabelscloudinfrastructure
2026.03.27.151.5 KBMar 27, 2026
Google Cloud drivelabels infrastructure models
Release Notes
- Added: labels, labels_locks, labels_permissions, labels_revisions_locks, labels_revisions_permissions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-clouddrivelabelscloudinfrastructure