Class: Google::Apis::DocsV1::BatchUpdateDocumentRequest

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

Request message for BatchUpdateDocument.

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) ⇒ BatchUpdateDocumentRequest

Returns a new instance of BatchUpdateDocumentRequest



142
143
144
# File 'generated/google/apis/docs_v1/classes.rb', line 142

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

Instance Attribute Details

#requestsArray<Google::Apis::DocsV1::Request>

A list of updates to apply to the document. Corresponds to the JSON property requests

Returns:



135
136
137
# File 'generated/google/apis/docs_v1/classes.rb', line 135

def requests
  @requests
end

#write_controlGoogle::Apis::DocsV1::WriteControl

Provides control over how write requests are executed. Corresponds to the JSON property writeControl



140
141
142
# File 'generated/google/apis/docs_v1/classes.rb', line 140

def write_control
  @write_control
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



147
148
149
150
# File 'generated/google/apis/docs_v1/classes.rb', line 147

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