Class: Google::Apis::FormsV1::BatchUpdateFormRequest

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

Overview

A batch of updates to perform on a form. All the specified updates are made or none of them are.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchUpdateFormRequest

Returns a new instance of BatchUpdateFormRequest.



83
84
85
# File 'lib/google/apis/forms_v1/classes.rb', line 83

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

Instance Attribute Details

#include_form_in_responseBoolean Also known as: include_form_in_response?

Whether to return an updated version of the model in the response. Corresponds to the JSON property includeFormInResponse

Returns:

  • (Boolean)


70
71
72
# File 'lib/google/apis/forms_v1/classes.rb', line 70

def include_form_in_response
  @include_form_in_response
end

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

Required. The update requests of this batch. Corresponds to the JSON property requests

Returns:



76
77
78
# File 'lib/google/apis/forms_v1/classes.rb', line 76

def requests
  @requests
end

#write_controlGoogle::Apis::FormsV1::WriteControl

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



81
82
83
# File 'lib/google/apis/forms_v1/classes.rb', line 81

def write_control
  @write_control
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



88
89
90
91
92
# File 'lib/google/apis/forms_v1/classes.rb', line 88

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