Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Lifecycle
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2Lifecycle
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drivelabels_v2/classes.rb,
lib/google/apis/drivelabels_v2/representations.rb,
lib/google/apis/drivelabels_v2/representations.rb
Overview
The lifecycle state of an object, such as label, field, or choice. 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_changeswill be true. Also, some kinds of changes are not permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected. * Disabled—When disabled, the configuredDisabledPolicytakes effect.
Instance Attribute Summary collapse
-
#disabled_policy ⇒ Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
The policy that governs how to treat a disabled label, field, or selection choice in different contexts.
-
#has_unpublished_changes ⇒ Boolean
(also: #has_unpublished_changes?)
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2Lifecycle
constructor
A new instance of GoogleAppsDriveLabelsV2Lifecycle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2Lifecycle
Returns a new instance of GoogleAppsDriveLabelsV2Lifecycle.
2706 2707 2708 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2706 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disabled_policy ⇒ Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
The policy that governs how to treat a disabled label, field, or selection
choice in different contexts.
Corresponds to the JSON property disabledPolicy
2692 2693 2694 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2692 def disabled_policy @disabled_policy end |
#has_unpublished_changes ⇒ Boolean Also known as: has_unpublished_changes?
Output only. Whether the object associated with this lifecycle has unpublished
changes.
Corresponds to the JSON property hasUnpublishedChanges
2698 2699 2700 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2698 def has_unpublished_changes @has_unpublished_changes end |
#state ⇒ String
Output only. The state of the object associated with this lifecycle.
Corresponds to the JSON property state
2704 2705 2706 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2704 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2711 2712 2713 2714 2715 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 2711 def update!(**args) @disabled_policy = args[:disabled_policy] if args.key?(:disabled_policy) @has_unpublished_changes = args[:has_unpublished_changes] if args.key?(:has_unpublished_changes) @state = args[:state] if args.key?(:state) end |