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.



1412
1413
1414
# File 'lib/google/apis/forms_v1/classes.rb', line 1412

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



1385
1386
1387
# File 'lib/google/apis/forms_v1/classes.rb', line 1385

def create_item
  @create_item
end

#delete_itemGoogle::Apis::FormsV1::DeleteItemRequest

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



1390
1391
1392
# File 'lib/google/apis/forms_v1/classes.rb', line 1390

def delete_item
  @delete_item
end

#move_itemGoogle::Apis::FormsV1::MoveItemRequest

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



1395
1396
1397
# File 'lib/google/apis/forms_v1/classes.rb', line 1395

def move_item
  @move_item
end

#update_form_infoGoogle::Apis::FormsV1::UpdateFormInfoRequest

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



1400
1401
1402
# File 'lib/google/apis/forms_v1/classes.rb', line 1400

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



1405
1406
1407
# File 'lib/google/apis/forms_v1/classes.rb', line 1405

def update_item
  @update_item
end

#update_settingsGoogle::Apis::FormsV1::UpdateSettingsRequest

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



1410
1411
1412
# File 'lib/google/apis/forms_v1/classes.rb', line 1410

def update_settings
  @update_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1417
1418
1419
1420
1421
1422
1423
1424
# File 'lib/google/apis/forms_v1/classes.rb', line 1417

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