Class: Google::Apis::FormsV1::UpdateSettingsRequest

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 Form's FormSettings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateSettingsRequest

Returns a new instance of UpdateSettingsRequest.



1611
1612
1613
# File 'lib/google/apis/forms_v1/classes.rb', line 1611

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

Instance Attribute Details

#settingsGoogle::Apis::FormsV1::FormSettings

A form's settings. Corresponds to the JSON property settings



1602
1603
1604
# File 'lib/google/apis/forms_v1/classes.rb', line 1602

def settings
  @settings
end

#update_maskString

Required. Only values named in this mask are changed. At least one field must be specified. The root settings is implied and should not be specified. A single "*" can be used as short-hand for updating every field. Corresponds to the JSON property updateMask

Returns:

  • (String)


1609
1610
1611
# File 'lib/google/apis/forms_v1/classes.rb', line 1609

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1616
1617
1618
1619
# File 'lib/google/apis/forms_v1/classes.rb', line 1616

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