lib/twilio-ruby/rest/ip_messaging/v2/service.rb in twilio-ruby-5.2.3 vs lib/twilio-ruby/rest/ip_messaging/v2/service.rb in twilio-ruby-5.3.0
- old
+ new
@@ -260,12 +260,14 @@
# @param [String] webhook_method The webhook_method
# @param [String] webhook_filters The webhook_filters
# @param [String] limits_channel_members The limits.channel_members
# @param [String] limits_user_channels The limits.user_channels
# @param [String] media_compatibility_message The media.compatibility_message
+ # @param [String] pre_webhook_retry_count The pre_webhook_retry_count
+ # @param [String] post_webhook_retry_count The post_webhook_retry_count
# @return [ServiceInstance] Updated ServiceInstance
- def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_new_message_sound: :unset, notifications_new_message_badge_count_enabled: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_added_to_channel_sound: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_removed_from_channel_sound: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, notifications_invited_to_channel_sound: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, limits_channel_members: :unset, limits_user_channels: :unset, media_compatibility_message: :unset)
+ def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_new_message_sound: :unset, notifications_new_message_badge_count_enabled: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_added_to_channel_sound: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_removed_from_channel_sound: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, notifications_invited_to_channel_sound: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, limits_channel_members: :unset, limits_user_channels: :unset, media_compatibility_message: :unset, pre_webhook_retry_count: :unset, post_webhook_retry_count: :unset)
data = Twilio::Values.of({
'FriendlyName' => friendly_name,
'DefaultServiceRoleSid' => default_service_role_sid,
'DefaultChannelRoleSid' => default_channel_role_sid,
'DefaultChannelCreatorRoleSid' => default_channel_creator_role_sid,
@@ -291,10 +293,12 @@
'WebhookMethod' => webhook_method,
'WebhookFilters' => webhook_filters,
'Limits.ChannelMembers' => limits_channel_members,
'Limits.UserChannels' => limits_user_channels,
'Media.CompatibilityMessage' => media_compatibility_message,
+ 'PreWebhookRetryCount' => pre_webhook_retry_count,
+ 'PostWebhookRetryCount' => post_webhook_retry_count,
})
payload = @version.update(
'POST',
@uri,
@@ -418,10 +422,12 @@
'limits' => payload['limits'],
'pre_webhook_url' => payload['pre_webhook_url'],
'post_webhook_url' => payload['post_webhook_url'],
'webhook_method' => payload['webhook_method'],
'webhook_filters' => payload['webhook_filters'],
+ 'pre_webhook_retry_count' => payload['pre_webhook_retry_count'].to_i,
+ 'post_webhook_retry_count' => payload['post_webhook_retry_count'].to_i,
'notifications' => payload['notifications'],
'media' => payload['media'],
'url' => payload['url'],
'links' => payload['links'],
}
@@ -548,10 +554,22 @@
def webhook_filters
@properties['webhook_filters']
end
##
+ # @return [String] The pre_webhook_retry_count
+ def pre_webhook_retry_count
+ @properties['pre_webhook_retry_count']
+ end
+
+ ##
+ # @return [String] The post_webhook_retry_count
+ def post_webhook_retry_count
+ @properties['post_webhook_retry_count']
+ end
+
+ ##
# @return [Hash] The notifications
def notifications
@properties['notifications']
end
@@ -629,12 +647,14 @@
# @param [String] webhook_method The webhook_method
# @param [String] webhook_filters The webhook_filters
# @param [String] limits_channel_members The limits.channel_members
# @param [String] limits_user_channels The limits.user_channels
# @param [String] media_compatibility_message The media.compatibility_message
+ # @param [String] pre_webhook_retry_count The pre_webhook_retry_count
+ # @param [String] post_webhook_retry_count The post_webhook_retry_count
# @return [ServiceInstance] Updated ServiceInstance
- def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_new_message_sound: :unset, notifications_new_message_badge_count_enabled: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_added_to_channel_sound: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_removed_from_channel_sound: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, notifications_invited_to_channel_sound: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, limits_channel_members: :unset, limits_user_channels: :unset, media_compatibility_message: :unset)
+ def update(friendly_name: :unset, default_service_role_sid: :unset, default_channel_role_sid: :unset, default_channel_creator_role_sid: :unset, read_status_enabled: :unset, reachability_enabled: :unset, typing_indicator_timeout: :unset, consumption_report_interval: :unset, notifications_new_message_enabled: :unset, notifications_new_message_template: :unset, notifications_new_message_sound: :unset, notifications_new_message_badge_count_enabled: :unset, notifications_added_to_channel_enabled: :unset, notifications_added_to_channel_template: :unset, notifications_added_to_channel_sound: :unset, notifications_removed_from_channel_enabled: :unset, notifications_removed_from_channel_template: :unset, notifications_removed_from_channel_sound: :unset, notifications_invited_to_channel_enabled: :unset, notifications_invited_to_channel_template: :unset, notifications_invited_to_channel_sound: :unset, pre_webhook_url: :unset, post_webhook_url: :unset, webhook_method: :unset, webhook_filters: :unset, limits_channel_members: :unset, limits_user_channels: :unset, media_compatibility_message: :unset, pre_webhook_retry_count: :unset, post_webhook_retry_count: :unset)
context.update(
friendly_name: friendly_name,
default_service_role_sid: default_service_role_sid,
default_channel_role_sid: default_channel_role_sid,
default_channel_creator_role_sid: default_channel_creator_role_sid,
@@ -660,9 +680,11 @@
webhook_method: webhook_method,
webhook_filters: webhook_filters,
limits_channel_members: limits_channel_members,
limits_user_channels: limits_user_channels,
media_compatibility_message: media_compatibility_message,
+ pre_webhook_retry_count: pre_webhook_retry_count,
+ post_webhook_retry_count: post_webhook_retry_count,
)
end
##
# Access the channels
\ No newline at end of file