Class: Google::Apis::FormsV1::Request

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

The kinds of update requests that can be made.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Request

Returns a new instance of Request.



1317
1318
1319
# File 'lib/google/apis/forms_v1/classes.rb', line 1317

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

Instance Attribute Details

#create_itemGoogle::Apis::FormsV1::CreateItemRequest

Create an item in a form. Corresponds to the JSON property createItem



1290
1291
1292
# File 'lib/google/apis/forms_v1/classes.rb', line 1290

def create_item
  @create_item
end

#delete_itemGoogle::Apis::FormsV1::DeleteItemRequest

Delete an item in a form. Corresponds to the JSON property deleteItem



1295
1296
1297
# File 'lib/google/apis/forms_v1/classes.rb', line 1295

def delete_item
  @delete_item
end

#move_itemGoogle::Apis::FormsV1::MoveItemRequest

Move an item in a form. Corresponds to the JSON property moveItem



1300
1301
1302
# File 'lib/google/apis/forms_v1/classes.rb', line 1300

def move_item
  @move_item
end

#update_form_infoGoogle::Apis::FormsV1::UpdateFormInfoRequest

Update Form's Info. Corresponds to the JSON property updateFormInfo



1305
1306
1307
# File 'lib/google/apis/forms_v1/classes.rb', line 1305

def update_form_info
  @update_form_info
end

#update_itemGoogle::Apis::FormsV1::UpdateItemRequest

Update an item in a form. Corresponds to the JSON property updateItem



1310
1311
1312
# File 'lib/google/apis/forms_v1/classes.rb', line 1310

def update_item
  @update_item
end

#update_settingsGoogle::Apis::FormsV1::UpdateSettingsRequest

Update Form's FormSettings. Corresponds to the JSON property updateSettings



1315
1316
1317
# File 'lib/google/apis/forms_v1/classes.rb', line 1315

def update_settings
  @update_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1322
1323
1324
1325
1326
1327
1328
1329
# File 'lib/google/apis/forms_v1/classes.rb', line 1322

def update!(**args)
  @create_item = args[:create_item] if args.key?(:create_item)
  @delete_item = args[:delete_item] if args.key?(:delete_item)
  @move_item = args[:move_item] if args.key?(:move_item)
  @update_form_info = args[:update_form_info] if args.key?(:update_form_info)
  @update_item = args[:update_item] if args.key?(:update_item)
  @update_settings = args[:update_settings] if args.key?(:update_settings)
end