Class: Twilio::REST::Webhooks::V1::SettingList::PostSetting

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/webhooks/v1/setting.rb,
lib/twilio-ruby/rest/webhooks/v1/setting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ PostSetting

Returns a new instance of PostSetting.



139
140
141
142
143
144
145
146
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 139

def initialize(payload)
        @friendly_name = payload["friendly_name"]
        @description = payload["description"]
        @auth = payload["auth"]
        @signature = payload["signature"]
        @connection = payload["connection"]
        @edge_zones = payload["edge_zones"]
end

Instance Attribute Details

#auth ⇒ Object

Parameters:

  • : (friendly_name) —

    [String] Human-readable name (optional, defaults to blank)

  • : (description) —

    [String] Optional description of the Setting's purpose and usage

  • : (auth) —

    [SettingList.PostAuthSetting]

  • : (signature) —

    [SettingList.SignatureSetting]

  • : (connection) —

    [SettingList.ConnectionSetting] HTTP connection settings. If omitted, system defaults are applied.

  • : (edge_zones) —

    [SettingList.EdgeZones] Edge zone configuration for webhook delivery. When omitted, all zones are eligible and Twilio selects freely. When set, zones lists preferred zones in priority order.



138
139
140
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 138

def auth
  @auth
end

#connection ⇒ Object

Parameters:

  • : (friendly_name) —

    [String] Human-readable name (optional, defaults to blank)

  • : (description) —

    [String] Optional description of the Setting's purpose and usage

  • : (auth) —

    [SettingList.PostAuthSetting]

  • : (signature) —

    [SettingList.SignatureSetting]

  • : (connection) —

    [SettingList.ConnectionSetting] HTTP connection settings. If omitted, system defaults are applied.

  • : (edge_zones) —

    [SettingList.EdgeZones] Edge zone configuration for webhook delivery. When omitted, all zones are eligible and Twilio selects freely. When set, zones lists preferred zones in priority order.



138
139
140
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 138

def connection
  @connection
end

#description ⇒ Object

Parameters:

  • : (friendly_name) —

    [String] Human-readable name (optional, defaults to blank)

  • : (description) —

    [String] Optional description of the Setting's purpose and usage

  • : (auth) —

    [SettingList.PostAuthSetting]

  • : (signature) —

    [SettingList.SignatureSetting]

  • : (connection) —

    [SettingList.ConnectionSetting] HTTP connection settings. If omitted, system defaults are applied.

  • : (edge_zones) —

    [SettingList.EdgeZones] Edge zone configuration for webhook delivery. When omitted, all zones are eligible and Twilio selects freely. When set, zones lists preferred zones in priority order.



138
139
140
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 138

def description
  @description
end

#edge_zones ⇒ Object

Parameters:

  • : (friendly_name) —

    [String] Human-readable name (optional, defaults to blank)

  • : (description) —

    [String] Optional description of the Setting's purpose and usage

  • : (auth) —

    [SettingList.PostAuthSetting]

  • : (signature) —

    [SettingList.SignatureSetting]

  • : (connection) —

    [SettingList.ConnectionSetting] HTTP connection settings. If omitted, system defaults are applied.

  • : (edge_zones) —

    [SettingList.EdgeZones] Edge zone configuration for webhook delivery. When omitted, all zones are eligible and Twilio selects freely. When set, zones lists preferred zones in priority order.



138
139
140
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 138

def edge_zones
  @edge_zones
end

#friendly_name ⇒ Object

Parameters:

  • : (friendly_name) —

    [String] Human-readable name (optional, defaults to blank)

  • : (description) —

    [String] Optional description of the Setting's purpose and usage

  • : (auth) —

    [SettingList.PostAuthSetting]

  • : (signature) —

    [SettingList.SignatureSetting]

  • : (connection) —

    [SettingList.ConnectionSetting] HTTP connection settings. If omitted, system defaults are applied.

  • : (edge_zones) —

    [SettingList.EdgeZones] Edge zone configuration for webhook delivery. When omitted, all zones are eligible and Twilio selects freely. When set, zones lists preferred zones in priority order.



138
139
140
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 138

def friendly_name
  @friendly_name
end

#signature ⇒ Object

Parameters:

  • : (friendly_name) —

    [String] Human-readable name (optional, defaults to blank)

  • : (description) —

    [String] Optional description of the Setting's purpose and usage

  • : (auth) —

    [SettingList.PostAuthSetting]

  • : (signature) —

    [SettingList.SignatureSetting]

  • : (connection) —

    [SettingList.ConnectionSetting] HTTP connection settings. If omitted, system defaults are applied.

  • : (edge_zones) —

    [SettingList.EdgeZones] Edge zone configuration for webhook delivery. When omitted, all zones are eligible and Twilio selects freely. When set, zones lists preferred zones in priority order.



138
139
140
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 138

def signature
  @signature
end

Instance Method Details

#to_json(options = {}) ⇒ Object



147
148
149
150
151
152
153
154
155
156
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 147

def to_json(options = {})
{
        "friendlyName": @friendly_name,
        "description": @description,
        "auth": @auth,
        "signature": @signature,
        "connection": @connection,
        "edgeZones": @edge_zones,
}.to_json(options)
end