Class: Google::Apis::FormsV1::UpdateItemRequest

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

Update an item in a form.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateItemRequest

Returns a new instance of UpdateItemRequest.



1584
1585
1586
# File 'lib/google/apis/forms_v1/classes.rb', line 1584

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

Instance Attribute Details

#itemGoogle::Apis::FormsV1::Item

A single item of the form. kind defines which kind of item it is. Corresponds to the JSON property item



1572
1573
1574
# File 'lib/google/apis/forms_v1/classes.rb', line 1572

def item
  @item
end

#locationGoogle::Apis::FormsV1::Location

A specific location in a form. Corresponds to the JSON property location



1577
1578
1579
# File 'lib/google/apis/forms_v1/classes.rb', line 1577

def location
  @location
end

#update_maskString

Required. Only values named in this mask are changed. Corresponds to the JSON property updateMask

Returns:

  • (String)


1582
1583
1584
# File 'lib/google/apis/forms_v1/classes.rb', line 1582

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1589
1590
1591
1592
1593
# File 'lib/google/apis/forms_v1/classes.rb', line 1589

def update!(**args)
  @item = args[:item] if args.key?(:item)
  @location = args[:location] if args.key?(:location)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end