Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelLock
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelLock
- 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
-
#capabilities ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelLockCapabilities
A description of a user's capabilities on a LabelLock.
-
#choice_id ⇒ String
The ID of the Selection Field Choice that should be locked.
-
#create_time ⇒ String
Output only.
-
#creator ⇒ Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserInfo
Information about a user.
-
#delete_time ⇒ String
Output only.
-
#field_id ⇒ String
The ID of the Field that should be locked.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelLock
constructor
A new instance of GoogleAppsDriveLabelsV2betaLabelLock.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#capabilities ⇒ Google::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_id ⇒ String
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
2481 2482 2483 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2481 def choice_id @choice_id end |
#create_time ⇒ String
Output only. The time this LabelLock was created.
Corresponds to the JSON property createTime
2486 2487 2488 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2486 def create_time @create_time end |
#creator ⇒ Google::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_time ⇒ String
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
2497 2498 2499 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2497 def delete_time @delete_time end |
#field_id ⇒ String
The ID of the Field that should be locked. Empty if the whole Label should be
locked.
Corresponds to the JSON property fieldId
2503 2504 2505 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2503 def field_id @field_id end |
#name ⇒ String
Output only. Resource name of this LabelLock.
Corresponds to the JSON property name
2508 2509 2510 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2508 def name @name end |
#state ⇒ String
Output only. This LabelLock's state.
Corresponds to the JSON property state
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 |