Class: Google::Apis::FormsV1::SetPublishSettingsRequest

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

Updates the publish settings of a Form.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SetPublishSettingsRequest

Returns a new instance of SetPublishSettingsRequest.



1518
1519
1520
# File 'lib/google/apis/forms_v1/classes.rb', line 1518

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

Instance Attribute Details

#publish_settingsGoogle::Apis::FormsV1::PublishSettings

The publishing settings of a form. Corresponds to the JSON property publishSettings



1509
1510
1511
# File 'lib/google/apis/forms_v1/classes.rb', line 1509

def publish_settings
  @publish_settings
end

#update_maskString

Optional. The publish_settings fields to update. This field mask accepts the following values: * publish_state: Updates or replaces all publish_state settings. * "*": Updates or replaces all publish_settings fields. Corresponds to the JSON property updateMask

Returns:

  • (String)


1516
1517
1518
# File 'lib/google/apis/forms_v1/classes.rb', line 1516

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1523
1524
1525
1526
# File 'lib/google/apis/forms_v1/classes.rb', line 1523

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