Class: Twilio::REST::Supersim::V1

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/supersim/v1.rb,
lib/twilio-ruby/rest/supersim/v1/sim.rb,
lib/twilio-ruby/rest/supersim/v1/fleet.rb,
lib/twilio-ruby/rest/supersim/v1/network.rb,
lib/twilio-ruby/rest/supersim/v1/ip_command.rb,
lib/twilio-ruby/rest/supersim/v1/sms_command.rb,
lib/twilio-ruby/rest/supersim/v1/esim_profile.rb,
lib/twilio-ruby/rest/supersim/v1/usage_record.rb,
lib/twilio-ruby/rest/supersim/v1/settings_update.rb,
lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb,
lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb,
lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb,
lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb

Defined Under Namespace

Classes: EsimProfileContext, EsimProfileInstance, EsimProfileList, EsimProfilePage, FleetContext, FleetInstance, FleetList, FleetPage, IpCommandContext, IpCommandInstance, IpCommandList, IpCommandPage, NetworkAccessProfileContext, NetworkAccessProfileInstance, NetworkAccessProfileList, NetworkAccessProfilePage, NetworkContext, NetworkInstance, NetworkList, NetworkPage, SettingsUpdateInstance, SettingsUpdateList, SettingsUpdatePage, SimContext, SimInstance, SimList, SimPage, SmsCommandContext, SmsCommandInstance, SmsCommandList, SmsCommandPage, UsageRecordInstance, UsageRecordList, UsageRecordPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ V1

Initialize the V1 version of Supersim



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 21

def initialize(domain)
    super
    @version = 'v1'
    @esim_profiles = nil
    @fleets = nil
    @ip_commands = nil
    @networks = nil
    @network_access_profiles = nil
    @settings_updates = nil
    @sims = nil
    @sms_commands = nil
    @usage_records = nil
end

Instance Method Details

#esim_profiles(sid = :unset) ⇒ Twilio::REST::Supersim::V1::EsimProfileContext, Twilio::REST::Supersim::V1::EsimProfileList

Parameters:

  • sid (String) (defaults to: :unset)

    The SID of the eSIM Profile resource to fetch.

Returns:



39
40
41
42
43
44
45
46
47
48
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 39

def esim_profiles(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @esim_profiles ||= EsimProfileList.new self
    else
        EsimProfileContext.new(self, sid)
    end
end

#fleets(sid = :unset) ⇒ Twilio::REST::Supersim::V1::FleetContext, Twilio::REST::Supersim::V1::FleetList

Parameters:

  • sid (String) (defaults to: :unset)

    The SID of the Fleet resource to fetch.

Returns:



53
54
55
56
57
58
59
60
61
62
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 53

def fleets(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @fleets ||= FleetList.new self
    else
        FleetContext.new(self, sid)
    end
end

#ip_commands(sid = :unset) ⇒ Twilio::REST::Supersim::V1::IpCommandContext, Twilio::REST::Supersim::V1::IpCommandList

Parameters:

  • sid (String) (defaults to: :unset)

    The SID of the IP Command resource to fetch.

Returns:



67
68
69
70
71
72
73
74
75
76
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 67

def ip_commands(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @ip_commands ||= IpCommandList.new self
    else
        IpCommandContext.new(self, sid)
    end
end

#network_access_profiles(sid = :unset) ⇒ Twilio::REST::Supersim::V1::NetworkAccessProfileContext, Twilio::REST::Supersim::V1::NetworkAccessProfileList

Parameters:

  • sid (String) (defaults to: :unset)

    The SID of the Network Access Profile resource to fetch.

Returns:



95
96
97
98
99
100
101
102
103
104
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 95

def network_access_profiles(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @network_access_profiles ||= NetworkAccessProfileList.new self
    else
        NetworkAccessProfileContext.new(self, sid)
    end
end

#networks(sid = :unset) ⇒ Twilio::REST::Supersim::V1::NetworkContext, Twilio::REST::Supersim::V1::NetworkList

Parameters:

  • sid (String) (defaults to: :unset)

    The SID of the Network resource to fetch.

Returns:



81
82
83
84
85
86
87
88
89
90
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 81

def networks(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @networks ||= NetworkList.new self
    else
        NetworkContext.new(self, sid)
    end
end

#settings_updatesTwilio::REST::Supersim::V1::SettingsUpdateList



107
108
109
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 107

def settings_updates
    @settings_updates ||= SettingsUpdateList.new self
end

#sims(sid = :unset) ⇒ Twilio::REST::Supersim::V1::SimContext, Twilio::REST::Supersim::V1::SimList

Parameters:

  • sid (String) (defaults to: :unset)

    The SID of the Sim resource to fetch.

Returns:



114
115
116
117
118
119
120
121
122
123
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 114

def sims(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @sims ||= SimList.new self
    else
        SimContext.new(self, sid)
    end
end

#sms_commands(sid = :unset) ⇒ Twilio::REST::Supersim::V1::SmsCommandContext, Twilio::REST::Supersim::V1::SmsCommandList

Parameters:

  • sid (String) (defaults to: :unset)

    The SID of the SMS Command resource to fetch.

Returns:



128
129
130
131
132
133
134
135
136
137
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 128

def sms_commands(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @sms_commands ||= SmsCommandList.new self
    else
        SmsCommandContext.new(self, sid)
    end
end

#to_sObject

Provide a user friendly representation



145
146
147
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 145

def to_s
    '<Twilio::REST::Supersim::V1>';
end

#usage_recordsTwilio::REST::Supersim::V1::UsageRecordList



140
141
142
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 140

def usage_records
    @usage_records ||= UsageRecordList.new self
end