Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleAppsDriveLabelsV2Lifecycle

import type { GoogleAppsDriveLabelsV2Lifecycle } from "https://googleapis.deno.dev/v1/drivelabels:v2.ts";

The lifecycle state of an object, such as label, field, or choice. For more information, see 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: * Published: Some kinds of changes might be made to an object in this state, in which case has_unpublished_changes will be true. Also, some kinds of changes aren't permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected. * Disabled: When disabled, the configured DisabledPolicy takes effect.

interface GoogleAppsDriveLabelsV2Lifecycle {
readonly hasUnpublishedChanges?: boolean;
readonly state?:
| "STATE_UNSPECIFIED"
| "UNPUBLISHED_DRAFT"
| "PUBLISHED"
| "DISABLED"
| "DELETED";
}

§Properties

§

The policy that governs how to show a disabled label, field, or selection choice.

§
readonly hasUnpublishedChanges?: boolean
[src]

Output only. Whether the object associated with this lifecycle has unpublished changes.

§
readonly state?: "STATE_UNSPECIFIED" | "UNPUBLISHED_DRAFT" | "PUBLISHED" | "DISABLED" | "DELETED"
[src]

Output only. The state of the object associated with this lifecycle.