Created
January 17, 2023 08:58
-
-
Save shrutiburman/43d39ba9c77cd3edd491038dab52f4c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# This code was generated by | |
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | |
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | |
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | |
# | |
# Twilio - Api | |
# 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 Api | |
class V2010 < Version | |
## | |
# Initialize the V2010 version of Api | |
def initialize(domain) | |
super | |
@version = '2010-04-01' | |
@accounts = nil | |
@account = nil | |
end | |
## | |
# @param [String] Sid The Account Sid that uniquely identifies the account to update | |
# @return [Twilio::REST::Api::V2010::accountContext] if Sid was passed. | |
# @return [Twilio::REST::Api::V2010::accountList] | |
def accounts(sid=:unset) | |
if Sid.nil? | |
raise ArgumentError, 'sid cannot be nil' | |
end | |
if sid == :unset | |
@accounts ||= accountsList.new self | |
else | |
accountsContext.new(self, Sid) | |
end | |
end | |
## | |
# @return [Twilio::REST::Api::V2010::accountContext] | |
def account | |
@account ||= accountList.new self | |
end | |
## | |
# Setter to override the primary account | |
def account=(value) | |
@account = value | |
end | |
def accounts(sid =:unset) | |
self.account.accounts(sid) | |
end | |
def addresses(sid =:unset) | |
self.account.addresses(sid) | |
end | |
def applications(sid =:unset) | |
self.account.applications(sid) | |
end | |
def authorized_connect_apps(connectAppSid =:unset) | |
self.account.authorized_connect_apps(connectAppSid) | |
end | |
def available_phone_numbers(countryCode =:unset) | |
self.account.available_phone_numbers(countryCode) | |
end | |
def calls(sid =:unset) | |
self.account.calls(sid) | |
end | |
def conferences(sid =:unset) | |
self.account.conferences(sid) | |
end | |
def connect_apps(sid =:unset) | |
self.account.connect_apps(sid) | |
end | |
def incoming_phone_numbers(sid =:unset) | |
self.account.incoming_phone_numbers(sid) | |
end | |
def keys(sid =:unset) | |
self.account.keys(sid) | |
end | |
def messages(sid =:unset) | |
self.account.messages(sid) | |
end | |
def notifications(sid =:unset) | |
self.account.notifications(sid) | |
end | |
def outgoing_caller_ids(sid =:unset) | |
self.account.outgoing_caller_ids(sid) | |
end | |
def queues(sid =:unset) | |
self.account.queues(sid) | |
end | |
def recordings(sid =:unset) | |
self.account.recordings(sid) | |
end | |
def short_codes(sid =:unset) | |
self.account.short_codes(sid) | |
end | |
def signing_keys(sid =:unset) | |
self.account.signing_keys(sid) | |
end | |
def transcriptions(sid =:unset) | |
self.account.transcriptions(sid) | |
end | |
## | |
# Provide a user friendly representation | |
def to_s | |
'<Twilio::REST::Api::V2010>'; | |
end | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# This code was generated by | |
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | |
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | |
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ | |
# | |
# Twilio - Wireless | |
# 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 Wireless | |
class V1 < Version | |
## | |
# Initialize the V1 version of Wireless | |
def initialize(domain) | |
super | |
@version = 'v1' | |
@commands = nil | |
@rate_plans = nil | |
@sims = nil | |
@usage_records = nil | |
end | |
## | |
# @return [Twilio::REST::Wireless::V1::commandsContext] | |
def commands | |
@commands ||= commandsList.new self | |
end | |
## | |
# @param [String] Sid The SID of the RatePlan resource to delete. | |
# @return [Twilio::REST::Wireless::V1::ratePlanContext] if Sid was passed. | |
# @return [Twilio::REST::Wireless::V1::ratePlanList] | |
def rate_plans(sid=:unset) | |
if Sid.nil? | |
raise ArgumentError, 'sid cannot be nil' | |
end | |
if sid == :unset | |
@rate_plans ||= ratePlansList.new self | |
else | |
ratePlansContext.new(self, Sid) | |
end | |
end | |
## | |
# @return [Twilio::REST::Wireless::V1::simsContext] | |
def sims | |
@sims ||= simsList.new self | |
end | |
## | |
# @return [Twilio::REST::Wireless::V1::usageRecordsContext] | |
def usage_records | |
@usage_records ||= usageRecordsList.new self | |
end | |
## | |
# Provide a user friendly representation | |
def to_s | |
'<Twilio::REST::Wireless::V1>'; | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment