Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelLock

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

A Lock that can be applied to a Label, Field, or Choice.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelLock

Returns a new instance of GoogleAppsDriveLabelsV2betaLabelLock.



2515
2516
2517
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2515

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

Instance Attribute Details

#capabilitiesGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelLockCapabilities

A description of a user's capabilities on a LabelLock. Corresponds to the JSON property capabilities



2475
2476
2477
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2475

def capabilities
  @capabilities
end

#choice_idString

The ID of the Selection Field Choice that should be locked. If present, field_id must also be present. Corresponds to the JSON property choiceId

Returns:

  • (String)


2481
2482
2483
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2481

def choice_id
  @choice_id
end

#create_timeString

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

Returns:

  • (String)


2486
2487
2488
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2486

def create_time
  @create_time
end

#creatorGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserInfo

Information about a user. Corresponds to the JSON property creator



2491
2492
2493
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2491

def creator
  @creator
end

#delete_timeString

Output only. A timestamp indicating when this LabelLock was scheduled for deletion. This will be present only if this LabelLock is in the DELETING state. Corresponds to the JSON property deleteTime

Returns:

  • (String)


2497
2498
2499
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2497

def delete_time
  @delete_time
end

#field_idString

The ID of the Field that should be locked. Empty if the whole Label should be locked. Corresponds to the JSON property fieldId

Returns:

  • (String)


2503
2504
2505
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2503

def field_id
  @field_id
end

#nameString

Output only. Resource name of this LabelLock. Corresponds to the JSON property name

Returns:

  • (String)


2508
2509
2510
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2508

def name
  @name
end

#stateString

Output only. This LabelLock's state. Corresponds to the JSON property state

Returns:

  • (String)


2513
2514
2515
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2513

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2520

def update!(**args)
  @capabilities = args[:capabilities] if args.key?(:capabilities)
  @choice_id = args[:choice_id] if args.key?(:choice_id)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creator = args[:creator] if args.key?(:creator)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @field_id = args[:field_id] if args.key?(:field_id)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end