lib/twilio-ruby/rest/messaging/v1/domain_config.rb in twilio-ruby-5.76.0 vs lib/twilio-ruby/rest/messaging/v1/domain_config.rb in twilio-ruby-5.77.0

- old
+ new

@@ -79,28 +79,19 @@ @uri = "/LinkShortening/Domains/#{@solution[:domain_sid]}/Config" end ## # Update the DomainConfigInstance - # @param [Array[String]] messaging_service_sids A list of messagingServiceSids - # (with prefix MG) # @param [String] fallback_url Any requests we receive to this domain that do not # match an existing shortened message will be redirected to the fallback url. # These will likely be either expired messages, random misdirected traffic, or # intentional scraping. # @param [String] callback_url URL to receive click events to your webhook # whenever the recipients click on the shortened links - # @param [String] messaging_service_sids_action An action type for - # messaging_service_sids operation (ADD, DELETE, REPLACE) # @return [DomainConfigInstance] Updated DomainConfigInstance - def update(messaging_service_sids: nil, fallback_url: :unset, callback_url: :unset, messaging_service_sids_action: :unset) - data = Twilio::Values.of({ - 'MessagingServiceSids' => Twilio.serialize_list(messaging_service_sids) { |e| e }, - 'FallbackUrl' => fallback_url, - 'CallbackUrl' => callback_url, - 'MessagingServiceSidsAction' => messaging_service_sids_action, - }) + def update(fallback_url: :unset, callback_url: :unset) + data = Twilio::Values.of({'FallbackUrl' => fallback_url, 'CallbackUrl' => callback_url, }) payload = @version.update('POST', @uri, data: data) DomainConfigInstance.new(@version, payload, domain_sid: @solution[:domain_sid], ) end @@ -144,11 +135,10 @@ # Marshaled Properties @properties = { 'domain_sid' => payload['domain_sid'], 'config_sid' => payload['config_sid'], - 'messaging_service_sids' => payload['messaging_service_sids'], 'fallback_url' => payload['fallback_url'], 'callback_url' => payload['callback_url'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'url' => payload['url'], @@ -181,16 +171,10 @@ def config_sid @properties['config_sid'] end ## - # @return [Array[String]] A list of messagingServiceSids (with prefix MG). - def messaging_service_sids - @properties['messaging_service_sids'] - end - - ## # @return [String] We will redirect requests to urls we are unable to identify to this url. def fallback_url @properties['fallback_url'] end @@ -218,27 +202,18 @@ @properties['url'] end ## # Update the DomainConfigInstance - # @param [Array[String]] messaging_service_sids A list of messagingServiceSids - # (with prefix MG) # @param [String] fallback_url Any requests we receive to this domain that do not # match an existing shortened message will be redirected to the fallback url. # These will likely be either expired messages, random misdirected traffic, or # intentional scraping. # @param [String] callback_url URL to receive click events to your webhook # whenever the recipients click on the shortened links - # @param [String] messaging_service_sids_action An action type for - # messaging_service_sids operation (ADD, DELETE, REPLACE) # @return [DomainConfigInstance] Updated DomainConfigInstance - def update(messaging_service_sids: nil, fallback_url: :unset, callback_url: :unset, messaging_service_sids_action: :unset) - context.update( - messaging_service_sids: messaging_service_sids, - fallback_url: fallback_url, - callback_url: callback_url, - messaging_service_sids_action: messaging_service_sids_action, - ) + def update(fallback_url: :unset, callback_url: :unset) + context.update(fallback_url: fallback_url, callback_url: callback_url, ) end ## # Fetch the DomainConfigInstance # @return [DomainConfigInstance] Fetched DomainConfigInstance \ No newline at end of file