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.



1730
1731
1732
# File 'lib/google/apis/forms_v1/classes.rb', line 1730

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



1718
1719
1720
# File 'lib/google/apis/forms_v1/classes.rb', line 1718

def item
  @item
end

#locationGoogle::Apis::FormsV1::Location

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



1723
1724
1725
# File 'lib/google/apis/forms_v1/classes.rb', line 1723

def location
  @location
end

#update_maskString

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

Returns:

  • (String)


1728
1729
1730
# File 'lib/google/apis/forms_v1/classes.rb', line 1728

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1735
1736
1737
1738
1739
# File 'lib/google/apis/forms_v1/classes.rb', line 1735

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