Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLifecycle

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drivelabels_v2beta/classes.rb,
lib/google/apis/drivelabels_v2beta/representations.rb,
lib/google/apis/drivelabels_v2beta/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_changes will 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 configured DisabledPolicy takes effect.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLifecycle

Returns a new instance of GoogleAppsDriveLabelsV2betaLifecycle.



2706
2707
2708
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2706

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#disabled_policyGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLifecycleDisabledPolicy

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_v2beta/classes.rb', line 2692

def disabled_policy
  @disabled_policy
end

#has_unpublished_changesBoolean Also known as: has_unpublished_changes?

Output only. Whether the object associated with this lifecycle has unpublished changes. Corresponds to the JSON property hasUnpublishedChanges

Returns:

  • (Boolean)


2698
2699
2700
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2698

def has_unpublished_changes
  @has_unpublished_changes
end

#stateString

Output only. The state of the object associated with this lifecycle. Corresponds to the JSON property state

Returns:

  • (String)


2704
2705
2706
# File 'lib/google/apis/drivelabels_v2beta/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_v2beta/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