Skip to content

Commit

Permalink
[Librarian] Regenerated @ 78bf2bbef74e4846ca8353fbdee038a6b8080c59 22…
Browse files Browse the repository at this point in the history
…50ef3ba08540233f688bf6aaa55e9c94febf3b
  • Loading branch information
twilio-dx committed Sep 5, 2024
1 parent a83aa39 commit 9bab74e
Show file tree
Hide file tree
Showing 12 changed files with 903 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
twilio-ruby changelog
=====================

[2024-09-05] Version 7.3.0
--------------------------
**Iam**
- updated library_visibility public for new public apikeys

**Numbers**
- Add new field in Error Codes for Regulatory Compliance.
- Change typing of Port In Request date_created field to date_time instead of date **(breaking change)**


[2024-08-26] Version 7.2.4
--------------------------
**Library - Chore**
Expand Down
5 changes: 5 additions & 0 deletions lib/twilio-ruby/rest/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def frontline_api
@frontline_api ||= FrontlineApi.new self
end
##
# Access the Iam Twilio Domain
def iam
@iam ||= Iam.new self
end
##
# Access the Insights Twilio Domain
def insights
@insights ||= Insights.new self
Expand Down
109 changes: 103 additions & 6 deletions lib/twilio-ruby/rest/content/v1/content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ class CallToActionAction
# @param [title]: [String]
# @param [url]: [String]
# @param [phone]: [String]
# @param [id]: [String]
attr_accessor :type, :title, :url, :phone, :id
# @param [code]: [String]
attr_accessor :type, :title, :url, :phone, :code
def initialize(payload)
@type = payload["type"]
@title = payload["title"]
@url = payload["url"]
@phone = payload["phone"]
@id = payload["id"]
@code = payload["code"]
end
def to_json(options = {})
{
type: @type,
title: @title,
url: @url,
phone: @phone,
id: @id,
code: @code,
}.to_json(options)
end
end
Expand All @@ -66,13 +66,15 @@ class CardAction
# @param [url]: [String]
# @param [phone]: [String]
# @param [id]: [String]
attr_accessor :type, :title, :url, :phone, :id
# @param [code]: [String]
attr_accessor :type, :title, :url, :phone, :id, :code
def initialize(payload)
@type = payload["type"]
@title = payload["title"]
@url = payload["url"]
@phone = payload["phone"]
@id = payload["id"]
@code = payload["code"]
end
def to_json(options = {})
{
Expand All @@ -81,6 +83,7 @@ def to_json(options = {})
url: @url,
phone: @phone,
id: @id,
code: @code,
}.to_json(options)
end
end
Expand Down Expand Up @@ -182,6 +185,69 @@ def to_json(options = {})
end
end

class FlowsPage
# @param [id]: [String]
# @param [next_page_id]: [String]
# @param [title]: [String]
# @param [subtitle]: [String]
# @param [layout]: [Array<ContentList.FlowsPageComponent>]
attr_accessor :id, :next_page_id, :title, :subtitle, :layout
def initialize(payload)
@id = payload["id"]
@next_page_id = payload["next_page_id"]
@title = payload["title"]
@subtitle = payload["subtitle"]
@layout = payload["layout"]
end
def to_json(options = {})
{
id: @id,
next_page_id: @next_page_id,
title: @title,
subtitle: @subtitle,
layout: @layout,
}.to_json(options)
end
end

class FlowsPageComponent
# @param [label]: [String]
# @param [type]: [String]
# @param [text]: [String]
# @param [options]: [Array<ContentList.FlowsPageComponentSelectItem>]
attr_accessor :label, :type, :text, :options
def initialize(payload)
@label = payload["label"]
@type = payload["type"]
@text = payload["text"]
@options = payload["options"]
end
def to_json(options = {})
{
label: @label,
type: @type,
text: @text,
options: @options,
}.to_json(options)
end
end

class FlowsPageComponentSelectItem
# @param [id]: [String]
# @param [title]: [String]
attr_accessor :id, :title
def initialize(payload)
@id = payload["id"]
@title = payload["title"]
end
def to_json(options = {})
{
id: @id,
title: @title,
}.to_json(options)
end
end

class ListItem
# @param [id]: [String]
# @param [item]: [String]
Expand Down Expand Up @@ -302,6 +368,34 @@ def to_json(options = {})
end
end

class TwilioFlows
# @param [body]: [String]
# @param [button_text]: [String]
# @param [subtitle]: [String]
# @param [media_url]: [String]
# @param [pages]: [Array<ContentList.FlowsPage>]
# @param [type]: [String]
attr_accessor :body, :button_text, :subtitle, :media_url, :pages, :type
def initialize(payload)
@body = payload["body"]
@button_text = payload["button_text"]
@subtitle = payload["subtitle"]
@media_url = payload["media_url"]
@pages = payload["pages"]
@type = payload["type"]
end
def to_json(options = {})
{
body: @body,
button_text: @button_text,
subtitle: @subtitle,
media_url: @media_url,
pages: @pages,
type: @type,
}.to_json(options)
end
end

class TwilioListPicker
# @param [body]: [String]
# @param [button]: [String]
Expand Down Expand Up @@ -395,9 +489,10 @@ class Types
# @param [twilio_card]: [ContentList.TwilioCard]
# @param [twilio_catalog]: [ContentList.TwilioCatalog]
# @param [twilio_carousel]: [ContentList.TwilioCarousel]
# @param [twilio_flows]: [ContentList.TwilioFlows]
# @param [whatsapp_card]: [ContentList.WhatsappCard]
# @param [whatsapp_authentication]: [ContentList.WhatsappAuthentication]
attr_accessor :twilio_text, :twilio_media, :twilio_location, :twilio_list_picker, :twilio_call_to_action, :twilio_quick_reply, :twilio_card, :twilio_catalog, :twilio_carousel, :whatsapp_card, :whatsapp_authentication
attr_accessor :twilio_text, :twilio_media, :twilio_location, :twilio_list_picker, :twilio_call_to_action, :twilio_quick_reply, :twilio_card, :twilio_catalog, :twilio_carousel, :twilio_flows, :whatsapp_card, :whatsapp_authentication
def initialize(payload)
@twilio_text = payload["twilio_text"]
@twilio_media = payload["twilio_media"]
Expand All @@ -408,6 +503,7 @@ def initialize(payload)
@twilio_card = payload["twilio_card"]
@twilio_catalog = payload["twilio_catalog"]
@twilio_carousel = payload["twilio_carousel"]
@twilio_flows = payload["twilio_flows"]
@whatsapp_card = payload["whatsapp_card"]
@whatsapp_authentication = payload["whatsapp_authentication"]
end
Expand All @@ -422,6 +518,7 @@ def to_json(options = {})
twilio_card: @twilio_card,
twilio_catalog: @twilio_catalog,
twilio_carousel: @twilio_carousel,
twilio_flows: @twilio_flows,
whatsapp_card: @whatsapp_card,
whatsapp_authentication: @whatsapp_authentication,
}.to_json(options)
Expand Down
6 changes: 6 additions & 0 deletions lib/twilio-ruby/rest/iam.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Twilio
module REST
class Iam < IamBase;
end
end
end
61 changes: 61 additions & 0 deletions lib/twilio-ruby/rest/iam/v1.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# Twilio - Iam
# This is the public Twilio REST API.
#
# NOTE: This class is auto generated by OpenAPI Generator.
# https://openapi-generator.tech
# Do not edit the class manually.
#

module Twilio
module REST
class Iam
class V1 < Version
##
# Initialize the V1 version of Iam
def initialize(domain)
super
@version = 'v1'
@api_key = nil
@get_api_keys = nil
@new_api_key = nil
end

##
# @param [String] sid The Twilio-provided string that uniquely identifies the Key resource to fetch.
# @return [Twilio::REST::Iam::V1::ApiKeyContext] if sid was passed.
# @return [Twilio::REST::Iam::V1::ApiKeyList]
def api_key(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@api_key ||= ApiKeyList.new self
else
ApiKeyContext.new(self, sid)
end
end
##
# @return [Twilio::REST::Iam::V1::GetApiKeysList]
def get_api_keys
@get_api_keys ||= GetApiKeysList.new self
end
##
# @return [Twilio::REST::Iam::V1::NewApiKeyList]
def new_api_key
@new_api_key ||= NewApiKeyList.new self
end
##
# Provide a user friendly representation
def to_s
'<Twilio::REST::Iam::V1>';
end
end
end
end
end
Loading

0 comments on commit 9bab74e

Please sign in to comment.