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.
1583 1584 1585 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1583 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
1571 1572 1573 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1571 def item @item end |
#location ⇒ Google::Apis::FormsV1::Location
A specific location in a form.
Corresponds to the JSON property location
1576 1577 1578 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1576 def location @location end |
#update_mask ⇒ String
Required. Only values named in this mask are changed.
Corresponds to the JSON property updateMask
1581 1582 1583 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1581 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1588 1589 1590 1591 1592 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1588 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 |