Class: Google::Apis::DocsV1::WriteControl

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb

Overview

Provides control over how write requests are executed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WriteControl

Returns a new instance of WriteControl



5372
5373
5374
# File 'generated/google/apis/docs_v1/classes.rb', line 5372

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

Instance Attribute Details

#required_revision_idString

The ID of the revision of the document that the write request will be applied to. If this is not the latest revision of the document, the request will not be processed and will return a 400 bad request error. When a required revision ID is returned in a response, it indicates the revision ID of the document after the request was applied. Corresponds to the JSON property requiredRevisionId

Returns:

  • (String)


5370
5371
5372
# File 'generated/google/apis/docs_v1/classes.rb', line 5370

def required_revision_id
  @required_revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5377
5378
5379
# File 'generated/google/apis/docs_v1/classes.rb', line 5377

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