auth0-ruby 0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.bundle/config +2 -0
- data/.gitignore +8 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +68 -0
- data/README.md +27 -0
- data/Rakefile +9 -0
- data/auth0.gemspec +29 -0
- data/doc/Auth0.html +153 -0
- data/doc/Auth0/Api.html +128 -0
- data/doc/Auth0/Api/AuthenticationEndpoints.html +596 -0
- data/doc/Auth0/Api/V1.html +192 -0
- data/doc/Auth0/Api/V1/Clients.html +440 -0
- data/doc/Auth0/Api/V1/Connections.html +506 -0
- data/doc/Auth0/Api/V1/Logs.html +366 -0
- data/doc/Auth0/Api/V1/Rules.html +439 -0
- data/doc/Auth0/Api/V1/Users.html +1617 -0
- data/doc/Auth0/BadRequest.html +142 -0
- data/doc/Auth0/Client.html +236 -0
- data/doc/Auth0/Exception.html +140 -0
- data/doc/Auth0/Mixins.html +225 -0
- data/doc/Auth0/Mixins/HTTPartyProxy.html +121 -0
- data/doc/Auth0/Mixins/Initializer.html +298 -0
- data/doc/Auth0/NotFound.html +143 -0
- data/doc/Auth0/ServerError.html +142 -0
- data/doc/Auth0/Unauthorized.html +143 -0
- data/doc/Auth0/Unsupported.html +142 -0
- data/doc/Auth0/UserIdIsBlank.html +143 -0
- data/doc/Auth0Client.html +235 -0
- data/doc/_index.html +347 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +103 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +103 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +327 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/auth0.rb +8 -0
- data/lib/auth0/api/authentication_endpoints.rb +71 -0
- data/lib/auth0/api/v1.rb +19 -0
- data/lib/auth0/api/v1/clients.rb +48 -0
- data/lib/auth0/api/v1/connections.rb +51 -0
- data/lib/auth0/api/v1/logs.rb +41 -0
- data/lib/auth0/api/v1/rules.rb +44 -0
- data/lib/auth0/api/v1/users.rb +163 -0
- data/lib/auth0/client.rb +7 -0
- data/lib/auth0/exception.rb +18 -0
- data/lib/auth0/mixins.rb +13 -0
- data/lib/auth0/mixins/httparty_proxy.rb +29 -0
- data/lib/auth0/mixins/initializer.rb +25 -0
- data/lib/auth0/version.rb +4 -0
- data/lib/auth0_client.rb +3 -0
- data/spec/lib/auth0/api/authentication_endpoints_spec.rb +56 -0
- data/spec/lib/auth0/api/v1/clients_spec.rb +62 -0
- data/spec/lib/auth0/api/v1/connections_spec.rb +62 -0
- data/spec/lib/auth0/api/v1/logs_spec.rb +46 -0
- data/spec/lib/auth0/api/v1/rules_spec.rb +40 -0
- data/spec/lib/auth0/api/v1/users_spec.rb +215 -0
- data/spec/lib/auth0/client_spec.rb +19 -0
- data/spec/lib/auth0/mixins/httparty_proxy_spec.rb +60 -0
- data/spec/lib/auth0_client_spec.rb +8 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/support/dummy_class.rb +7 -0
- data/spec/support/dummy_class_for_proxy.rb +4 -0
- data/spec/support/stub_response.rb +2 -0
- metadata +253 -0
@@ -0,0 +1,366 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: Auth0::Api::V1::Logs
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../../';
|
20
|
+
framesUrl = "../../../frames.html#!Auth0/Api/V1/Logs.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../../_index.html">Index (L)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../../Auth0.html" title="Auth0 (module)">Auth0</a></span></span> » <span class='title'><span class='object_link'><a href="../../Api.html" title="Auth0::Api (module)">Api</a></span></span> » <span class='title'><span class='object_link'><a href="../V1.html" title="Auth0::Api::V1 (module)">V1</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Logs</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Module: Auth0::Api::V1::Logs
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<dt class="r1">Included in:</dt>
|
81
|
+
<dd class="r1"><span class='object_link'><a href="../V1.html" title="Auth0::Api::V1 (module)">Auth0::Api::V1</a></span></dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/auth0/api/v1/logs.rb</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
<h2>Overview</h2><div class="docstring">
|
92
|
+
<div class="discussion">
|
93
|
+
|
94
|
+
<p><a href="https://auth0.com/docs/api#logs" target="_parent" title="https://auth0.com/docs/api#logs">https://auth0.com/docs/api#logs</a></p>
|
95
|
+
|
96
|
+
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
<div class="tags">
|
100
|
+
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>
|
111
|
+
Instance Method Summary
|
112
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
113
|
+
</h2>
|
114
|
+
|
115
|
+
<ul class="summary">
|
116
|
+
|
117
|
+
<li class="public ">
|
118
|
+
<span class="summary_signature">
|
119
|
+
|
120
|
+
<a href="#log-instance_method" title="#log (instance method)">- (Object) <strong>log</strong>(id) </a>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
</span>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
<span class="summary_desc"><div class='inline'>
|
135
|
+
<p><a href="https://auth0.com/docs/api#!#get–api-logs–_id-" target="_parent" title="https://auth0.com/docs/api#!#get–api-logs–_id-">https://auth0.com/docs/api#!#get–api-logs–_id-</a>.</p>
|
136
|
+
</div></span>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
|
140
|
+
|
141
|
+
<li class="public ">
|
142
|
+
<span class="summary_signature">
|
143
|
+
|
144
|
+
<a href="#logs-instance_method" title="#logs (instance method)">- (Object) <strong>logs</strong>(options = {}) </a>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
(also: #search_logs)
|
149
|
+
|
150
|
+
</span>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<span class="summary_desc"><div class='inline'>
|
161
|
+
<p><a href="https://auth0.com/docs/api#!#get–api-logs-page–number–per_page–items–sort–field—-1-1–fields–fields–exclude_fields-true-false-" target="_parent" title="https://auth0.com/docs/api#!#get–api-logs-page–number–per_page–items–sort–field—-1-1–fields–fields–exclude_fields-true-false-">https://auth0.com/docs/api#!#get–api-logs-page–number–per_page–items–sort–field—-1-1–fields–fields–exclude_fields-true-false-</a>.</p>
|
162
|
+
</div></span>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
<li class="public ">
|
168
|
+
<span class="summary_signature">
|
169
|
+
|
170
|
+
<a href="#user_logs-instance_method" title="#user_logs (instance method)">- (Object) <strong>user_logs</strong>(user_id, page = 0, per_page = 50) </a>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</span>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
<span class="summary_desc"><div class='inline'>
|
185
|
+
<p><a href="https://auth0.com/docs/api#!#get–api-users–user_id–logs-page–number–per_page–items-" target="_parent" title="https://auth0.com/docs/api#!#get–api-users–user_id–logs-page–number–per_page–items-">https://auth0.com/docs/api#!#get–api-users–user_id–logs-page–number–per_page–items-</a>.</p>
|
186
|
+
</div></span>
|
187
|
+
|
188
|
+
</li>
|
189
|
+
|
190
|
+
|
191
|
+
</ul>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<div id="instance_method_details" class="method_details_list">
|
197
|
+
<h2>Instance Method Details</h2>
|
198
|
+
|
199
|
+
|
200
|
+
<div class="method_details first">
|
201
|
+
<h3 class="signature first" id="log-instance_method">
|
202
|
+
|
203
|
+
- (<tt>Object</tt>) <strong>log</strong>(id)
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
</h3><div class="docstring">
|
210
|
+
<div class="discussion">
|
211
|
+
|
212
|
+
<p><a href="https://auth0.com/docs/api#!#get–api-logs–_id-" target="_parent" title="https://auth0.com/docs/api#!#get–api-logs–_id-">https://auth0.com/docs/api#!#get–api-logs–_id-</a></p>
|
213
|
+
|
214
|
+
|
215
|
+
</div>
|
216
|
+
</div>
|
217
|
+
<div class="tags">
|
218
|
+
|
219
|
+
|
220
|
+
</div><table class="source_code">
|
221
|
+
<tr>
|
222
|
+
<td>
|
223
|
+
<pre class="lines">
|
224
|
+
|
225
|
+
|
226
|
+
28
|
227
|
+
29
|
228
|
+
30
|
229
|
+
31</pre>
|
230
|
+
</td>
|
231
|
+
<td>
|
232
|
+
<pre class="code"><span class="info file"># File 'lib/auth0/api/v1/logs.rb', line 28</span>
|
233
|
+
|
234
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_log'>log</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
|
235
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/api/logs/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
236
|
+
<span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
237
|
+
<span class='kw'>end</span></pre>
|
238
|
+
</td>
|
239
|
+
</tr>
|
240
|
+
</table>
|
241
|
+
</div>
|
242
|
+
|
243
|
+
<div class="method_details ">
|
244
|
+
<h3 class="signature " id="logs-instance_method">
|
245
|
+
|
246
|
+
- (<tt>Object</tt>) <strong>logs</strong>(options = {})
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
<span class="aliases">Also known as:
|
251
|
+
<span class="names"><span id='search_logs-instance_method'>search_logs</span></span>
|
252
|
+
</span>
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
</h3><div class="docstring">
|
257
|
+
<div class="discussion">
|
258
|
+
|
259
|
+
<p><a href="https://auth0.com/docs/api#!#get–api-logs-page–number–per_page–items–sort–field—-1-1–fields–fields–exclude_fields-true-false-" target="_parent" title="https://auth0.com/docs/api#!#get–api-logs-page–number–per_page–items–sort–field—-1-1–fields–fields–exclude_fields-true-false-">https://auth0.com/docs/api#!#get–api-logs-page–number–per_page–items–sort–field—-1-1–fields–fields–exclude_fields-true-false-</a></p>
|
260
|
+
|
261
|
+
<p><a href="https://auth0.com/docs/api#!#get–api-logs-search–criteria-" target="_parent" title="https://auth0.com/docs/api#!#get–api-logs-search–criteria-">https://auth0.com/docs/api#!#get–api-logs-search–criteria-</a></p>
|
262
|
+
|
263
|
+
<p><a href="https://auth0.com/docs/api#!#get–api-logs-from–checkpointId–take–count-" target="_parent" title="https://auth0.com/docs/api#!#get–api-logs-from–checkpointId–take–count-">https://auth0.com/docs/api#!#get–api-logs-from–checkpointId–take–count-</a></p>
|
264
|
+
|
265
|
+
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
<div class="tags">
|
269
|
+
|
270
|
+
|
271
|
+
</div><table class="source_code">
|
272
|
+
<tr>
|
273
|
+
<td>
|
274
|
+
<pre class="lines">
|
275
|
+
|
276
|
+
|
277
|
+
11
|
278
|
+
12
|
279
|
+
13
|
280
|
+
14
|
281
|
+
15
|
282
|
+
16
|
283
|
+
17
|
284
|
+
18
|
285
|
+
19
|
286
|
+
20
|
287
|
+
21
|
288
|
+
22
|
289
|
+
23</pre>
|
290
|
+
</td>
|
291
|
+
<td>
|
292
|
+
<pre class="code"><span class="info file"># File 'lib/auth0/api/v1/logs.rb', line 11</span>
|
293
|
+
|
294
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_logs'>logs</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
295
|
+
<span class='id identifier rubyid_acceptable_params'>acceptable_params</span> <span class='op'>=</span> <span class='qsymbols_beg'>%i(</span><span class='tstring_content'>take</span><span class='words_sep'> </span><span class='tstring_content'>from</span><span class='words_sep'> </span><span class='tstring_content'>search_criteria</span><span class='words_sep'> </span><span class='tstring_content'>page</span><span class='words_sep'> </span><span class='tstring_content'>per_page</span><span class='words_sep'> </span><span class='tstring_content'>sort</span><span class='words_sep'> </span><span class='tstring_content'>fields</span><span class='words_sep'> </span><span class='tstring_content'>exclude_fields</span><span class='words_sep'>)</span>
|
296
|
+
<span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_reject!'>reject!</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
|
297
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span>\
|
298
|
+
<span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span>\
|
299
|
+
<span class='op'>!</span><span class='id identifier rubyid_acceptable_params'>acceptable_params</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
|
300
|
+
<span class='id identifier rubyid_warn'>warn</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='embexpr_end'>}</span><span class='tstring_content'> is not in acceptable params list: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_acceptable_params'>acceptable_params</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
301
|
+
<span class='kw'>true</span>
|
302
|
+
<span class='kw'>end</span>
|
303
|
+
<span class='kw'>end</span>
|
304
|
+
<span class='id identifier rubyid_path'>path</span><span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/api/logs?</span><span class='tstring_end'>"</span></span><span class='op'>+</span><span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_encode_www_form'>encode_www_form</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
305
|
+
<span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
306
|
+
<span class='kw'>end</span></pre>
|
307
|
+
</td>
|
308
|
+
</tr>
|
309
|
+
</table>
|
310
|
+
</div>
|
311
|
+
|
312
|
+
<div class="method_details ">
|
313
|
+
<h3 class="signature " id="user_logs-instance_method">
|
314
|
+
|
315
|
+
- (<tt>Object</tt>) <strong>user_logs</strong>(user_id, page = 0, per_page = 50)
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
</h3><div class="docstring">
|
322
|
+
<div class="discussion">
|
323
|
+
|
324
|
+
<p><a href="https://auth0.com/docs/api#!#get–api-users–user_id–logs-page–number–per_page–items-" target="_parent" title="https://auth0.com/docs/api#!#get–api-users–user_id–logs-page–number–per_page–items-">https://auth0.com/docs/api#!#get–api-users–user_id–logs-page–number–per_page–items-</a></p>
|
325
|
+
|
326
|
+
|
327
|
+
</div>
|
328
|
+
</div>
|
329
|
+
<div class="tags">
|
330
|
+
|
331
|
+
|
332
|
+
</div><table class="source_code">
|
333
|
+
<tr>
|
334
|
+
<td>
|
335
|
+
<pre class="lines">
|
336
|
+
|
337
|
+
|
338
|
+
34
|
339
|
+
35
|
340
|
+
36
|
341
|
+
37</pre>
|
342
|
+
</td>
|
343
|
+
<td>
|
344
|
+
<pre class="code"><span class="info file"># File 'lib/auth0/api/v1/logs.rb', line 34</span>
|
345
|
+
|
346
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_user_logs'>user_logs</span><span class='lparen'>(</span><span class='id identifier rubyid_user_id'>user_id</span><span class='comma'>,</span> <span class='id identifier rubyid_page'>page</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_per_page'>per_page</span><span class='op'>=</span><span class='int'>50</span><span class='rparen'>)</span>
|
347
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/api/users/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_user_id'>user_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/logs?page=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_page'>page</span><span class='embexpr_end'>}</span><span class='tstring_content'>&per_page=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_per_page'>per_page</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
348
|
+
<span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
349
|
+
<span class='kw'>end</span></pre>
|
350
|
+
</td>
|
351
|
+
</tr>
|
352
|
+
</table>
|
353
|
+
</div>
|
354
|
+
|
355
|
+
</div>
|
356
|
+
|
357
|
+
</div>
|
358
|
+
|
359
|
+
<div id="footer">
|
360
|
+
Generated on Mon Jan 26 03:18:46 2015 by
|
361
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
362
|
+
0.8.7.6 (ruby-2.0.0).
|
363
|
+
</div>
|
364
|
+
|
365
|
+
</body>
|
366
|
+
</html>
|
@@ -0,0 +1,439 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: Auth0::Api::V1::Rules
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../../';
|
20
|
+
framesUrl = "../../../frames.html#!Auth0/Api/V1/Rules.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../../_index.html">Index (R)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../../Auth0.html" title="Auth0 (module)">Auth0</a></span></span> » <span class='title'><span class='object_link'><a href="../../Api.html" title="Auth0::Api (module)">Api</a></span></span> » <span class='title'><span class='object_link'><a href="../V1.html" title="Auth0::Api::V1 (module)">V1</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Rules</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Module: Auth0::Api::V1::Rules
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<dt class="r1">Included in:</dt>
|
81
|
+
<dd class="r1"><span class='object_link'><a href="../V1.html" title="Auth0::Api::V1 (module)">Auth0::Api::V1</a></span></dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/auth0/api/v1/rules.rb</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
<h2>Overview</h2><div class="docstring">
|
92
|
+
<div class="discussion">
|
93
|
+
|
94
|
+
<p><a href="https://auth0.com/docs/api#rules">auth0.com/docs/api#rules</a></p>
|
95
|
+
|
96
|
+
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
<div class="tags">
|
100
|
+
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>
|
111
|
+
Instance Method Summary
|
112
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
113
|
+
</h2>
|
114
|
+
|
115
|
+
<ul class="summary">
|
116
|
+
|
117
|
+
<li class="public ">
|
118
|
+
<span class="summary_signature">
|
119
|
+
|
120
|
+
<a href="#create_rule-instance_method" title="#create_rule (instance method)">- (Object) <strong>create_rule</strong>(name, script, order = nil, status = true) </a>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
</span>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
<span class="summary_desc"><div class='inline'>
|
135
|
+
<p><a
|
136
|
+
href="https://auth0.com/docs/api#!#post--api-rules">auth0.com/docs/api#!#post–api-rules</a>.</p>
|
137
|
+
</div></span>
|
138
|
+
|
139
|
+
</li>
|
140
|
+
|
141
|
+
|
142
|
+
<li class="public ">
|
143
|
+
<span class="summary_signature">
|
144
|
+
|
145
|
+
<a href="#delete_rule-instance_method" title="#delete_rule (instance method)">- (Object) <strong>delete_rule</strong>(name) </a>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
</span>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<span class="summary_desc"><div class='inline'>
|
160
|
+
<p><a
|
161
|
+
href="https://auth0.com/docs/api#!#delete--api-rules--rule-name">auth0.com/docs/api#!#delete–api-rules–rule-name</a>-.</p>
|
162
|
+
</div></span>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
<li class="public ">
|
168
|
+
<span class="summary_signature">
|
169
|
+
|
170
|
+
<a href="#rules-instance_method" title="#rules (instance method)">- (Object) <strong>rules</strong> </a>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
(also: #get_rules)
|
175
|
+
|
176
|
+
</span>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
<span class="summary_desc"><div class='inline'>
|
187
|
+
<p><a
|
188
|
+
href="https://auth0.com/docs/api#!#get--api-rules">auth0.com/docs/api#!#get–api-rules</a>.</p>
|
189
|
+
</div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature">
|
196
|
+
|
197
|
+
<a href="#update_rule-instance_method" title="#update_rule (instance method)">- (Object) <strong>update_rule</strong>(name, script, order = nil, status = true) </a>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</span>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<span class="summary_desc"><div class='inline'>
|
212
|
+
<p><a
|
213
|
+
href="https://auth0.com/docs/api#!#put--api-rules--rule-name">auth0.com/docs/api#!#put–api-rules–rule-name</a>-.</p>
|
214
|
+
</div></span>
|
215
|
+
|
216
|
+
</li>
|
217
|
+
|
218
|
+
|
219
|
+
</ul>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
<div id="instance_method_details" class="method_details_list">
|
225
|
+
<h2>Instance Method Details</h2>
|
226
|
+
|
227
|
+
|
228
|
+
<div class="method_details first">
|
229
|
+
<h3 class="signature first" id="create_rule-instance_method">
|
230
|
+
|
231
|
+
- (<tt>Object</tt>) <strong>create_rule</strong>(name, script, order = nil, status = true)
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
</h3><div class="docstring">
|
238
|
+
<div class="discussion">
|
239
|
+
|
240
|
+
<p><a
|
241
|
+
href="https://auth0.com/docs/api#!#post--api-rules">auth0.com/docs/api#!#post–api-rules</a></p>
|
242
|
+
|
243
|
+
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
<div class="tags">
|
247
|
+
|
248
|
+
|
249
|
+
</div><table class="source_code">
|
250
|
+
<tr>
|
251
|
+
<td>
|
252
|
+
<pre class="lines">
|
253
|
+
|
254
|
+
|
255
|
+
15
|
256
|
+
16
|
257
|
+
17
|
258
|
+
18
|
259
|
+
19
|
260
|
+
20
|
261
|
+
21
|
262
|
+
22
|
263
|
+
23</pre>
|
264
|
+
</td>
|
265
|
+
<td>
|
266
|
+
<pre class="code"><span class="info file"># File 'lib/auth0/api/v1/rules.rb', line 15</span>
|
267
|
+
|
268
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create_rule'>create_rule</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='comma'>,</span> <span class='id identifier rubyid_order'>order</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span><span class='id identifier rubyid_status'>status</span><span class='op'>=</span><span class='kw'>true</span><span class='rparen'>)</span>
|
269
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/api/rules</span><span class='tstring_end'>"</span></span>
|
270
|
+
<span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>name:</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span>
|
271
|
+
<span class='label'>status:</span> <span class='id identifier rubyid_status'>status</span><span class='comma'>,</span>
|
272
|
+
<span class='label'>script:</span> <span class='id identifier rubyid_script'>script</span><span class='comma'>,</span>
|
273
|
+
<span class='label'>order:</span> <span class='id identifier rubyid_order'>order</span>
|
274
|
+
<span class='rbrace'>}</span>
|
275
|
+
<span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
|
276
|
+
<span class='kw'>end</span></pre>
|
277
|
+
</td>
|
278
|
+
</tr>
|
279
|
+
</table>
|
280
|
+
</div>
|
281
|
+
|
282
|
+
<div class="method_details ">
|
283
|
+
<h3 class="signature " id="delete_rule-instance_method">
|
284
|
+
|
285
|
+
- (<tt>Object</tt>) <strong>delete_rule</strong>(name)
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
</h3><div class="docstring">
|
292
|
+
<div class="discussion">
|
293
|
+
|
294
|
+
<p><a
|
295
|
+
href="https://auth0.com/docs/api#!#delete--api-rules--rule-name">auth0.com/docs/api#!#delete–api-rules–rule-name</a>-</p>
|
296
|
+
|
297
|
+
|
298
|
+
</div>
|
299
|
+
</div>
|
300
|
+
<div class="tags">
|
301
|
+
|
302
|
+
|
303
|
+
</div><table class="source_code">
|
304
|
+
<tr>
|
305
|
+
<td>
|
306
|
+
<pre class="lines">
|
307
|
+
|
308
|
+
|
309
|
+
37
|
310
|
+
38
|
311
|
+
39
|
312
|
+
40</pre>
|
313
|
+
</td>
|
314
|
+
<td>
|
315
|
+
<pre class="code"><span class="info file"># File 'lib/auth0/api/v1/rules.rb', line 37</span>
|
316
|
+
|
317
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_delete_rule'>delete_rule</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
318
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/api/rules/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
319
|
+
<span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
320
|
+
<span class='kw'>end</span></pre>
|
321
|
+
</td>
|
322
|
+
</tr>
|
323
|
+
</table>
|
324
|
+
</div>
|
325
|
+
|
326
|
+
<div class="method_details ">
|
327
|
+
<h3 class="signature " id="rules-instance_method">
|
328
|
+
|
329
|
+
- (<tt>Object</tt>) <strong>rules</strong>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
<span class="aliases">Also known as:
|
334
|
+
<span class="names"><span id='get_rules-instance_method'>get_rules</span></span>
|
335
|
+
</span>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
</h3><div class="docstring">
|
340
|
+
<div class="discussion">
|
341
|
+
|
342
|
+
<p><a
|
343
|
+
href="https://auth0.com/docs/api#!#get--api-rules">auth0.com/docs/api#!#get–api-rules</a></p>
|
344
|
+
|
345
|
+
|
346
|
+
</div>
|
347
|
+
</div>
|
348
|
+
<div class="tags">
|
349
|
+
|
350
|
+
|
351
|
+
</div><table class="source_code">
|
352
|
+
<tr>
|
353
|
+
<td>
|
354
|
+
<pre class="lines">
|
355
|
+
|
356
|
+
|
357
|
+
7
|
358
|
+
8
|
359
|
+
9
|
360
|
+
10</pre>
|
361
|
+
</td>
|
362
|
+
<td>
|
363
|
+
<pre class="code"><span class="info file"># File 'lib/auth0/api/v1/rules.rb', line 7</span>
|
364
|
+
|
365
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rules'>rules</span>
|
366
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/api/rules</span><span class='tstring_end'>"</span></span>
|
367
|
+
<span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
368
|
+
<span class='kw'>end</span></pre>
|
369
|
+
</td>
|
370
|
+
</tr>
|
371
|
+
</table>
|
372
|
+
</div>
|
373
|
+
|
374
|
+
<div class="method_details ">
|
375
|
+
<h3 class="signature " id="update_rule-instance_method">
|
376
|
+
|
377
|
+
- (<tt>Object</tt>) <strong>update_rule</strong>(name, script, order = nil, status = true)
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
</h3><div class="docstring">
|
384
|
+
<div class="discussion">
|
385
|
+
|
386
|
+
<p><a
|
387
|
+
href="https://auth0.com/docs/api#!#put--api-rules--rule-name">auth0.com/docs/api#!#put–api-rules–rule-name</a>-</p>
|
388
|
+
|
389
|
+
|
390
|
+
</div>
|
391
|
+
</div>
|
392
|
+
<div class="tags">
|
393
|
+
|
394
|
+
|
395
|
+
</div><table class="source_code">
|
396
|
+
<tr>
|
397
|
+
<td>
|
398
|
+
<pre class="lines">
|
399
|
+
|
400
|
+
|
401
|
+
26
|
402
|
+
27
|
403
|
+
28
|
404
|
+
29
|
405
|
+
30
|
406
|
+
31
|
407
|
+
32
|
408
|
+
33
|
409
|
+
34</pre>
|
410
|
+
</td>
|
411
|
+
<td>
|
412
|
+
<pre class="code"><span class="info file"># File 'lib/auth0/api/v1/rules.rb', line 26</span>
|
413
|
+
|
414
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update_rule'>update_rule</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='comma'>,</span> <span class='id identifier rubyid_order'>order</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span><span class='id identifier rubyid_status'>status</span><span class='op'>=</span><span class='kw'>true</span><span class='rparen'>)</span>
|
415
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/api/rules/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
416
|
+
<span class='id identifier rubyid_request_params'>request_params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
417
|
+
<span class='label'>status:</span> <span class='id identifier rubyid_status'>status</span><span class='comma'>,</span>
|
418
|
+
<span class='label'>script:</span> <span class='id identifier rubyid_script'>script</span><span class='comma'>,</span>
|
419
|
+
<span class='label'>order:</span> <span class='id identifier rubyid_order'>order</span>
|
420
|
+
<span class='rbrace'>}</span>
|
421
|
+
<span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_request_params'>request_params</span><span class='rparen'>)</span>
|
422
|
+
<span class='kw'>end</span></pre>
|
423
|
+
</td>
|
424
|
+
</tr>
|
425
|
+
</table>
|
426
|
+
</div>
|
427
|
+
|
428
|
+
</div>
|
429
|
+
|
430
|
+
</div>
|
431
|
+
|
432
|
+
<div id="footer">
|
433
|
+
Generated on Mon Jan 26 03:18:46 2015 by
|
434
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
435
|
+
0.8.7.6 (ruby-2.0.0).
|
436
|
+
</div>
|
437
|
+
|
438
|
+
</body>
|
439
|
+
</html>
|