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.



2546
2547
2548
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2546

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



2506
2507
2508
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2506

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)


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

def choice_id
  @choice_id
end

#create_timeString

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

Returns:

  • (String)


2517
2518
2519
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2517

def create_time
  @create_time
end

#creatorGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserInfo

Information about a user. Corresponds to the JSON property creator



2522
2523
2524
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2522

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)


2528
2529
2530
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2528

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)


2534
2535
2536
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2534

def field_id
  @field_id
end

#nameString

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

Returns:

  • (String)


2539
2540
2541
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2539

def name
  @name
end

#stateString

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

Returns:

  • (String)


2544
2545
2546
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2544

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2551

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