Class: Google::Apis::FormsV1::BatchUpdateFormResponse
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::BatchUpdateFormResponse
- 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
Response to a BatchUpdateFormRequest.
Instance Attribute Summary collapse
-
#form ⇒ Google::Apis::FormsV1::Form
A Google Forms document.
-
#replies ⇒ Array<Google::Apis::FormsV1::Response>
The reply of the updates.
-
#write_control ⇒ Google::Apis::FormsV1::WriteControl
Provides control over how write requests are executed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchUpdateFormResponse
constructor
A new instance of BatchUpdateFormResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BatchUpdateFormResponse
Returns a new instance of BatchUpdateFormResponse.
117 118 119 |
# File 'lib/google/apis/forms_v1/classes.rb', line 117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#form ⇒ Google::Apis::FormsV1::Form
A Google Forms document. A form is created in Drive, and deleting a form or
changing its access protections is done via the Drive API.
Corresponds to the JSON property form
104 105 106 |
# File 'lib/google/apis/forms_v1/classes.rb', line 104 def form @form end |
#replies ⇒ Array<Google::Apis::FormsV1::Response>
The reply of the updates. This maps 1:1 with the update requests, although
replies to some requests may be empty.
Corresponds to the JSON property replies
110 111 112 |
# File 'lib/google/apis/forms_v1/classes.rb', line 110 def replies @replies end |
#write_control ⇒ Google::Apis::FormsV1::WriteControl
Provides control over how write requests are executed.
Corresponds to the JSON property writeControl
115 116 117 |
# File 'lib/google/apis/forms_v1/classes.rb', line 115 def write_control @write_control end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
122 123 124 125 126 |
# File 'lib/google/apis/forms_v1/classes.rb', line 122 def update!(**args) @form = args[:form] if args.key?(:form) @replies = args[:replies] if args.key?(:replies) @write_control = args[:write_control] if args.key?(:write_control) end |