Class: Twilio::REST::Supersim::V1
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::Supersim::V1
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, EsimProfileInstanceMetadata, EsimProfileList, EsimProfileListResponse, EsimProfilePage, EsimProfilePageMetadata, FleetContext, FleetInstance, FleetInstanceMetadata, FleetList, FleetListResponse, FleetPage, FleetPageMetadata, IpCommandContext, IpCommandInstance, IpCommandInstanceMetadata, IpCommandList, IpCommandListResponse, IpCommandPage, IpCommandPageMetadata, NetworkAccessProfileContext, NetworkAccessProfileInstance, NetworkAccessProfileInstanceMetadata, NetworkAccessProfileList, NetworkAccessProfileListResponse, NetworkAccessProfilePage, NetworkAccessProfilePageMetadata, NetworkContext, NetworkInstance, NetworkInstanceMetadata, NetworkList, NetworkListResponse, NetworkPage, NetworkPageMetadata, SettingsUpdateInstance, SettingsUpdateList, SettingsUpdateListResponse, SettingsUpdatePage, SettingsUpdatePageMetadata, SimContext, SimInstance, SimInstanceMetadata, SimList, SimListResponse, SimPage, SimPageMetadata, SmsCommandContext, SmsCommandInstance, SmsCommandInstanceMetadata, SmsCommandList, SmsCommandListResponse, SmsCommandPage, SmsCommandPageMetadata, UsageRecordInstance, UsageRecordList, UsageRecordListResponse, UsageRecordPage, UsageRecordPageMetadata
Instance Attribute Summary
Attributes inherited from Version
#domain, #version
Instance Method Summary
collapse
Methods inherited from Version
#absolute_url, #create, #create_with_metadata, #delete, #delete_with_metadata, #exception, #fetch, #fetch_with_metadata, #page, #patch, #read_limits, #relative_uri, #request, #stream, #stream_with_metadata, #update, #update_with_metadata
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
39
40
41
42
43
44
45
46
47
48
49
|
# 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
|
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 54
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
|
69
70
71
72
73
74
75
76
77
78
79
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 69
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
|
99
100
101
102
103
104
105
106
107
108
109
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 99
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
|
84
85
86
87
88
89
90
91
92
93
94
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 84
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
|
112
113
114
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 112
def settings_updates
@settings_updates ||= SettingsUpdateList.new self
end
|
119
120
121
122
123
124
125
126
127
128
129
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 119
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
|
134
135
136
137
138
139
140
141
142
143
144
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 134
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_s ⇒ Object
Provide a user friendly representation
152
153
154
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 152
def to_s
'<Twilio::REST::Supersim::V1>';
end
|
147
148
149
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 147
def usage_records
@usage_records ||= UsageRecordList.new self
end
|