Class: Google::Apis::FormsV1::UpdateItemRequest
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::UpdateItemRequest
- 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
-
#item ⇒ Google::Apis::FormsV1::Item
A single item of the form.
-
#location ⇒ Google::Apis::FormsV1::Location
A specific location in a form.
-
#update_mask ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateItemRequest
constructor
A new instance of UpdateItemRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#item ⇒ Google::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 |
#location ⇒ Google::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_mask ⇒ String
Required. Only values named in this mask are changed.
Corresponds to the JSON property updateMask
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 |