Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaWriteControl

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

Provides control over how write requests are executed. When not specified, the last write wins.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaWriteControl

Returns a new instance of GoogleAppsDriveLabelsV2betaWriteControl.



3203
3204
3205
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3203

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

Instance Attribute Details

#required_revision_idString

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

Returns:

  • (String)


3201
3202
3203
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3201

def required_revision_id
  @required_revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3208
3209
3210
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3208

def update!(**args)
  @required_revision_id = args[:required_revision_id] if args.key?(:required_revision_id)
end