Class: Google::Apis::DocsV1::BatchUpdateDocumentResponse

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

Overview

Response message from a BatchUpdateDocument request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchUpdateDocumentResponse

Returns a new instance of BatchUpdateDocumentResponse.



167
168
169
# File 'lib/google/apis/docs_v1/classes.rb', line 167

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

Instance Attribute Details

#document_idString

The ID of the document to which the updates were applied to. Corresponds to the JSON property documentId

Returns:

  • (String)


154
155
156
# File 'lib/google/apis/docs_v1/classes.rb', line 154

def document_id
  @document_id
end

#repliesArray<Google::Apis::DocsV1::Response>

The reply of the updates. This maps 1:1 with the updates, although replies to some requests may be empty. Corresponds to the JSON property replies

Returns:



160
161
162
# File 'lib/google/apis/docs_v1/classes.rb', line 160

def replies
  @replies
end

#write_controlGoogle::Apis::DocsV1::WriteControl

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



165
166
167
# File 'lib/google/apis/docs_v1/classes.rb', line 165

def write_control
  @write_control
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



172
173
174
175
176
# File 'lib/google/apis/docs_v1/classes.rb', line 172

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