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.
2546 2547 2548 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2546 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
2506 2507 2508 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2506 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
2512 2513 2514 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2512 def choice_id @choice_id end |
#create_time ⇒ String
Output only. The time this LabelLock was created.
Corresponds to the JSON property createTime
2517 2518 2519 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2517 def create_time @create_time end |
#creator ⇒ Google::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_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
2528 2529 2530 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2528 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
2534 2535 2536 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2534 def field_id @field_id end |
#name ⇒ String
Output only. Resource name of this LabelLock.
Corresponds to the JSON property name
2539 2540 2541 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2539 def name @name end |
#state ⇒ String
Output only. This LabelLock's state.
Corresponds to the JSON property state
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 |