Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,65 +205,6 @@ def to_s
end
end

class AuthTokenPromotionPageMetadata < PageMetadata
attr_reader :auth_token_promotion_page

def initialize(version, response, solution, limit)
super(version, response)
@auth_token_promotion_page = []
@limit = limit
key = get_key(response.body)
records = 0
while( limit != :unset && records < limit )
@auth_token_promotion_page << AuthTokenPromotionListResponse.new(version, @payload, key, limit - records)
@payload = self.next_page
break unless @payload
records += (@payload.body[key] || []).size
end
# Path Solution
@solution = solution
end

def each
@auth_token_promotion_page.each do |record|
yield record
end
end

def to_s
'<Twilio::REST::Accounts::V1PageMetadata>';
end
end
class AuthTokenPromotionListResponse < InstanceListResource

# @param [Array<AuthTokenPromotionInstance>] instance
# @param [Hash{String => Object}] headers
# @param [Integer] status_code
def initialize(version, payload, key, limit = :unset)
data_list = payload.body[key] || []
if limit != :unset
data_list = data_list[0, limit]
end
@auth_token_promotion = data_list.map do |data|
AuthTokenPromotionInstance.new(version, data)
end
@headers = payload.headers
@status_code = payload.status_code
end

def auth_token_promotion
@auth_token_promotion
end

def headers
@headers
end

def status_code
@status_code
end
end

class AuthTokenPromotionInstance < InstanceResource
##
# Initialize the AuthTokenPromotionInstance
Expand Down
59 changes: 0 additions & 59 deletions lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,65 +126,6 @@ def to_s
end
end

class BulkConsentsPageMetadata < PageMetadata
attr_reader :bulk_consents_page

def initialize(version, response, solution, limit)
super(version, response)
@bulk_consents_page = []
@limit = limit
key = get_key(response.body)
records = 0
while( limit != :unset && records < limit )
@bulk_consents_page << BulkConsentsListResponse.new(version, @payload, key, limit - records)
@payload = self.next_page
break unless @payload
records += (@payload.body[key] || []).size
end
# Path Solution
@solution = solution
end

def each
@bulk_consents_page.each do |record|
yield record
end
end

def to_s
'<Twilio::REST::Accounts::V1PageMetadata>';
end
end
class BulkConsentsListResponse < InstanceListResource

# @param [Array<BulkConsentsInstance>] instance
# @param [Hash{String => Object}] headers
# @param [Integer] status_code
def initialize(version, payload, key, limit = :unset)
data_list = payload.body[key] || []
if limit != :unset
data_list = data_list[0, limit]
end
@bulk_consents = data_list.map do |data|
BulkConsentsInstance.new(version, data)
end
@headers = payload.headers
@status_code = payload.status_code
end

def bulk_consents
@bulk_consents
end

def headers
@headers
end

def status_code
@status_code
end
end

class BulkConsentsInstance < InstanceResource
##
# Initialize the BulkConsentsInstance
Expand Down
59 changes: 0 additions & 59 deletions lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,65 +126,6 @@ def to_s
end
end

class BulkContactsPageMetadata < PageMetadata
attr_reader :bulk_contacts_page

def initialize(version, response, solution, limit)
super(version, response)
@bulk_contacts_page = []
@limit = limit
key = get_key(response.body)
records = 0
while( limit != :unset && records < limit )
@bulk_contacts_page << BulkContactsListResponse.new(version, @payload, key, limit - records)
@payload = self.next_page
break unless @payload
records += (@payload.body[key] || []).size
end
# Path Solution
@solution = solution
end

def each
@bulk_contacts_page.each do |record|
yield record
end
end

def to_s
'<Twilio::REST::Accounts::V1PageMetadata>';
end
end
class BulkContactsListResponse < InstanceListResource

# @param [Array<BulkContactsInstance>] instance
# @param [Hash{String => Object}] headers
# @param [Integer] status_code
def initialize(version, payload, key, limit = :unset)
data_list = payload.body[key] || []
if limit != :unset
data_list = data_list[0, limit]
end
@bulk_contacts = data_list.map do |data|
BulkContactsInstance.new(version, data)
end
@headers = payload.headers
@status_code = payload.status_code
end

def bulk_contacts
@bulk_contacts
end

def headers
@headers
end

def status_code
@status_code
end
end

class BulkContactsInstance < InstanceResource
##
# Initialize the BulkContactsInstance
Expand Down
59 changes: 0 additions & 59 deletions lib/twilio-ruby/rest/accounts/v1/credential.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,65 +98,6 @@ def to_s
end
end

class CredentialPageMetadata < PageMetadata
attr_reader :credential_page

def initialize(version, response, solution, limit)
super(version, response)
@credential_page = []
@limit = limit
key = get_key(response.body)
records = 0
while( limit != :unset && records < limit )
@credential_page << CredentialListResponse.new(version, @payload, key, limit - records)
@payload = self.next_page
break unless @payload
records += (@payload.body[key] || []).size
end
# Path Solution
@solution = solution
end

def each
@credential_page.each do |record|
yield record
end
end

def to_s
'<Twilio::REST::Accounts::V1PageMetadata>';
end
end
class CredentialListResponse < InstanceListResource

# @param [Array<CredentialInstance>] instance
# @param [Hash{String => Object}] headers
# @param [Integer] status_code
def initialize(version, payload, key, limit = :unset)
data_list = payload.body[key] || []
if limit != :unset
data_list = data_list[0, limit]
end
@credential = data_list.map do |data|
CredentialInstance.new(version, data)
end
@headers = payload.headers
@status_code = payload.status_code
end

def credential
@credential
end

def headers
@headers
end

def status_code
@status_code
end
end

class CredentialInstance < InstanceResource
##
# Initialize the CredentialInstance
Expand Down
59 changes: 0 additions & 59 deletions lib/twilio-ruby/rest/accounts/v1/messaging_geopermissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,65 +180,6 @@ def to_s
end
end

class MessagingGeopermissionsPageMetadata < PageMetadata
attr_reader :messaging_geopermissions_page

def initialize(version, response, solution, limit)
super(version, response)
@messaging_geopermissions_page = []
@limit = limit
key = get_key(response.body)
records = 0
while( limit != :unset && records < limit )
@messaging_geopermissions_page << MessagingGeopermissionsListResponse.new(version, @payload, key, limit - records)
@payload = self.next_page
break unless @payload
records += (@payload.body[key] || []).size
end
# Path Solution
@solution = solution
end

def each
@messaging_geopermissions_page.each do |record|
yield record
end
end

def to_s
'<Twilio::REST::Accounts::V1PageMetadata>';
end
end
class MessagingGeopermissionsListResponse < InstanceListResource

# @param [Array<MessagingGeopermissionsInstance>] instance
# @param [Hash{String => Object}] headers
# @param [Integer] status_code
def initialize(version, payload, key, limit = :unset)
data_list = payload.body[key] || []
if limit != :unset
data_list = data_list[0, limit]
end
@messaging_geopermissions = data_list.map do |data|
MessagingGeopermissionsInstance.new(version, data)
end
@headers = payload.headers
@status_code = payload.status_code
end

def messaging_geopermissions
@messaging_geopermissions
end

def headers
@headers
end

def status_code
@status_code
end
end

class MessagingGeopermissionsInstance < InstanceResource
##
# Initialize the MessagingGeopermissionsInstance
Expand Down
59 changes: 0 additions & 59 deletions lib/twilio-ruby/rest/accounts/v1/safelist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,65 +224,6 @@ def to_s
end
end

class SafelistPageMetadata < PageMetadata
attr_reader :safelist_page

def initialize(version, response, solution, limit)
super(version, response)
@safelist_page = []
@limit = limit
key = get_key(response.body)
records = 0
while( limit != :unset && records < limit )
@safelist_page << SafelistListResponse.new(version, @payload, key, limit - records)
@payload = self.next_page
break unless @payload
records += (@payload.body[key] || []).size
end
# Path Solution
@solution = solution
end

def each
@safelist_page.each do |record|
yield record
end
end

def to_s
'<Twilio::REST::Accounts::V1PageMetadata>';
end
end
class SafelistListResponse < InstanceListResource

# @param [Array<SafelistInstance>] instance
# @param [Hash{String => Object}] headers
# @param [Integer] status_code
def initialize(version, payload, key, limit = :unset)
data_list = payload.body[key] || []
if limit != :unset
data_list = data_list[0, limit]
end
@safelist = data_list.map do |data|
SafelistInstance.new(version, data)
end
@headers = payload.headers
@status_code = payload.status_code
end

def safelist
@safelist
end

def headers
@headers
end

def status_code
@status_code
end
end

class SafelistInstance < InstanceResource
##
# Initialize the SafelistInstance
Expand Down
Loading
Loading