Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice

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

Selection field choice.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice.



1912
1913
1914
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1912

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

Instance Attribute Details

#applied_capabilitiesGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceAppliedCapabilities

The capabilities related to this choice on applied metadata. Corresponds to the JSON property appliedCapabilities



1827
1828
1829
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1827

def applied_capabilities
  @applied_capabilities
end

#create_timeString

Output only. The time this choice was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1832
1833
1834
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1832

def create_time
  @create_time
end

#creatorGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserInfo

Information about a user. Corresponds to the JSON property creator



1837
1838
1839
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1837

def creator
  @creator
end

#disable_timeString

Output only. The time this choice was disabled. This value has no meaning when the choice is not disabled. Corresponds to the JSON property disableTime

Returns:

  • (String)


1843
1844
1845
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1843

def disable_time
  @disable_time
end

#disablerGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserInfo

Information about a user. Corresponds to the JSON property disabler



1848
1849
1850
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1848

def disabler
  @disabler
end

#display_hintsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints

UI display hints for rendering an option. Corresponds to the JSON property displayHints



1853
1854
1855
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1853

def display_hints
  @display_hints
end

#idString

The unique value of the choice. This ID is autogenerated. Matches the regex: ( [a-zA-Z0-9_])+. Corresponds to the JSON property id

Returns:

  • (String)


1859
1860
1861
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1859

def id
  @id
end

#lifecycleGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLifecycle

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. Corresponds to the JSON property lifecycle


1873
1874
1875
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1873

def lifecycle
  @lifecycle
end

#lock_statusGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLockStatus

Contains information about whether a label component should be considered locked. Corresponds to the JSON property lockStatus



1879
1880
1881
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1879

def lock_status
  @lock_status
end

#propertiesGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceProperties

Basic properties of the choice. Corresponds to the JSON property properties



1884
1885
1886
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1884

def properties
  @properties
end

#publish_timeString

Output only. The time this choice was published. This value has no meaning when the choice is not published. Corresponds to the JSON property publishTime

Returns:

  • (String)


1890
1891
1892
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1890

def publish_time
  @publish_time
end

#publisherGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserInfo

Information about a user. Corresponds to the JSON property publisher



1895
1896
1897
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1895

def publisher
  @publisher
end

#schema_capabilitiesGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceSchemaCapabilities

The capabilities related to this choice when editing the choice. Corresponds to the JSON property schemaCapabilities



1900
1901
1902
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1900

def schema_capabilities
  @schema_capabilities
end

#update_timeString

Output only. The time this choice was updated last. Corresponds to the JSON property updateTime

Returns:

  • (String)


1905
1906
1907
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1905

def update_time
  @update_time
end

#updaterGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserInfo

Information about a user. Corresponds to the JSON property updater



1910
1911
1912
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1910

def updater
  @updater
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1917

def update!(**args)
  @applied_capabilities = args[:applied_capabilities] if args.key?(:applied_capabilities)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creator = args[:creator] if args.key?(:creator)
  @disable_time = args[:disable_time] if args.key?(:disable_time)
  @disabler = args[:disabler] if args.key?(:disabler)
  @display_hints = args[:display_hints] if args.key?(:display_hints)
  @id = args[:id] if args.key?(:id)
  @lifecycle = args[:lifecycle] if args.key?(:lifecycle)
  @lock_status = args[:lock_status] if args.key?(:lock_status)
  @properties = args[:properties] if args.key?(:properties)
  @publish_time = args[:publish_time] if args.key?(:publish_time)
  @publisher = args[:publisher] if args.key?(:publisher)
  @schema_capabilities = args[:schema_capabilities] if args.key?(:schema_capabilities)
  @update_time = args[:update_time] if args.key?(:update_time)
  @updater = args[:updater] if args.key?(:updater)
end