Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2WriteControl
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2WriteControl
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drivelabels_v2/classes.rb,
lib/google/apis/drivelabels_v2/representations.rb,
lib/google/apis/drivelabels_v2/representations.rb
Overview
Provides control over how write requests are executed. When not specified, the last write wins.
Instance Attribute Summary collapse
-
#required_revision_id ⇒ String
The revision_id of the label that the write request will be applied to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2WriteControl
constructor
A new instance of GoogleAppsDriveLabelsV2WriteControl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2WriteControl
Returns a new instance of GoogleAppsDriveLabelsV2WriteControl.
3172 3173 3174 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 3172 def initialize(**args) update!(**args) end |
Instance Attribute Details
#required_revision_id ⇒ String
The revision_id of the label that the write request will be applied to. If
this is not the latest revision of the label, the request will not be
processed and will return a 400 Bad Request error.
Corresponds to the JSON property requiredRevisionId
3170 3171 3172 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 3170 def required_revision_id @required_revision_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3177 3178 3179 |
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 3177 def update!(**args) @required_revision_id = args[:required_revision_id] if args.key?(:required_revision_id) end |