strongdm 1.0.0 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/LICENSE.html +45 -136
- data/doc/Object.html +623 -105
- data/doc/README_md.html +15 -7
- data/doc/SDM.html +16 -24
- data/doc/SDM/AKS.html +150 -52
- data/doc/SDM/AKSBasicAuth.html +130 -36
- data/doc/SDM/AKSServiceAccount.html +125 -32
- data/doc/SDM/AccountAttachment.html +77 -27
- data/doc/SDM/AccountAttachmentCreateOptions.html +62 -13
- data/doc/SDM/AccountAttachmentCreateResponse.html +75 -24
- data/doc/SDM/AccountAttachmentDeleteResponse.html +69 -19
- data/doc/SDM/AccountAttachmentGetResponse.html +75 -23
- data/doc/SDM/AccountAttachments.html +62 -61
- data/doc/SDM/AccountCreateResponse.html +80 -27
- data/doc/SDM/AccountDeleteResponse.html +69 -17
- data/doc/SDM/AccountGetResponse.html +74 -21
- data/doc/SDM/AccountGrant.html +89 -39
- data/doc/SDM/AccountGrantCreateResponse.html +75 -23
- data/doc/SDM/AccountGrantDeleteResponse.html +69 -18
- data/doc/SDM/AccountGrantGetResponse.html +75 -22
- data/doc/SDM/AccountGrants.html +63 -58
- data/doc/SDM/AccountUpdateResponse.html +74 -21
- data/doc/SDM/Accounts.html +74 -68
- data/doc/SDM/AlreadyExistsError.html +13 -10
- data/doc/SDM/AmazonEKS.html +163 -48
- data/doc/SDM/AmazonES.html +117 -40
- data/doc/SDM/Athena.html +117 -40
- data/doc/SDM/AuroraMysql.html +122 -44
- data/doc/SDM/AuroraPostgres.html +127 -48
- data/doc/SDM/AuthenticationError.html +13 -10
- data/doc/SDM/BadRequestError.html +13 -10
- data/doc/SDM/BigQuery.html +117 -40
- data/doc/SDM/Cassandra.html +122 -44
- data/doc/SDM/Citus.html +409 -0
- data/doc/SDM/Client.html +29 -48
- data/doc/SDM/Clustrix.html +122 -44
- data/doc/SDM/Cockroach.html +127 -48
- data/doc/SDM/CreateResponseMetadata.html +59 -9
- data/doc/SDM/DB2.html +391 -0
- data/doc/SDM/DeadlineExceededError.html +13 -10
- data/doc/SDM/DeleteResponseMetadata.html +60 -10
- data/doc/SDM/Druid.html +117 -40
- data/doc/SDM/DynamoDB.html +117 -40
- data/doc/SDM/Elastic.html +122 -44
- data/doc/SDM/ElasticacheRedis.html +117 -40
- data/doc/SDM/Gateway.html +108 -39
- data/doc/SDM/GetResponseMetadata.html +60 -10
- data/doc/SDM/GoogleGKE.html +135 -40
- data/doc/SDM/Greenplum.html +127 -48
- data/doc/SDM/HTTPAuth.html +122 -44
- data/doc/SDM/HTTPBasicAuth.html +127 -48
- data/doc/SDM/HTTPNoAuth.html +117 -40
- data/doc/SDM/InternalError.html +13 -10
- data/doc/SDM/Kubernetes.html +150 -52
- data/doc/SDM/KubernetesBasicAuth.html +130 -36
- data/doc/SDM/KubernetesServiceAccount.html +125 -32
- data/doc/SDM/Maria.html +122 -44
- data/doc/SDM/Memcached.html +107 -32
- data/doc/SDM/Memsql.html +122 -44
- data/doc/SDM/MongoHost.html +127 -48
- data/doc/SDM/MongoLegacyHost.html +132 -52
- data/doc/SDM/MongoLegacyReplicaset.html +137 -56
- data/doc/SDM/MongoReplicaSet.html +137 -56
- data/doc/SDM/Mysql.html +122 -44
- data/doc/SDM/NodeCreateResponse.html +80 -27
- data/doc/SDM/NodeDeleteResponse.html +69 -17
- data/doc/SDM/NodeGetResponse.html +74 -21
- data/doc/SDM/NodeUpdateResponse.html +74 -21
- data/doc/SDM/Nodes.html +75 -70
- data/doc/SDM/NotFoundError.html +13 -10
- data/doc/SDM/Oracle.html +127 -48
- data/doc/SDM/PermissionError.html +13 -10
- data/doc/SDM/Plumbing.html +4177 -3576
- data/doc/SDM/Postgres.html +127 -48
- data/doc/SDM/Presto.html +127 -48
- data/doc/SDM/RDP.html +117 -40
- data/doc/SDM/RPCError.html +12 -8
- data/doc/SDM/RateLimitError.html +13 -10
- data/doc/SDM/RateLimitMetadata.html +81 -29
- data/doc/SDM/Redis.html +112 -36
- data/doc/SDM/Redshift.html +127 -48
- data/doc/SDM/Relay.html +96 -27
- data/doc/SDM/ResourceCreateResponse.html +74 -21
- data/doc/SDM/ResourceDeleteResponse.html +69 -17
- data/doc/SDM/ResourceGetResponse.html +74 -21
- data/doc/SDM/ResourceUpdateResponse.html +74 -22
- data/doc/SDM/Resources.html +71 -63
- data/doc/SDM/Role.html +96 -27
- data/doc/SDM/RoleAttachment.html +77 -26
- data/doc/SDM/RoleAttachmentCreateResponse.html +75 -24
- data/doc/SDM/RoleAttachmentDeleteResponse.html +69 -19
- data/doc/SDM/RoleAttachmentGetResponse.html +75 -22
- data/doc/SDM/RoleAttachments.html +63 -60
- data/doc/SDM/RoleCreateResponse.html +75 -23
- data/doc/SDM/RoleDeleteResponse.html +69 -17
- data/doc/SDM/RoleGetResponse.html +75 -22
- data/doc/SDM/RoleGrant.html +77 -24
- data/doc/SDM/RoleGrantCreateResponse.html +75 -23
- data/doc/SDM/RoleGrantDeleteResponse.html +69 -18
- data/doc/SDM/RoleGrantGetResponse.html +75 -22
- data/doc/SDM/RoleGrants.html +63 -60
- data/doc/SDM/RoleUpdateResponse.html +75 -23
- data/doc/SDM/Roles.html +76 -74
- data/doc/SDM/SQLServer.html +132 -52
- data/doc/SDM/SSH.html +135 -40
- data/doc/SDM/SSHCert.html +373 -0
- data/doc/SDM/Service.html +95 -25
- data/doc/SDM/Snowflake.html +122 -44
- data/doc/SDM/Sybase.html +117 -40
- data/doc/SDM/SybaseIQ.html +117 -40
- data/doc/SDM/Teradata.html +117 -40
- data/doc/SDM/UpdateResponseMetadata.html +60 -10
- data/doc/SDM/User.html +104 -31
- data/doc/V1.html +35 -11
- data/doc/V1/AccountAttachments.html +10 -6
- data/doc/V1/AccountAttachments/Service.html +11 -8
- data/doc/V1/AccountGrants.html +10 -6
- data/doc/V1/AccountGrants/Service.html +11 -9
- data/doc/V1/Accounts.html +10 -6
- data/doc/V1/Accounts/Service.html +12 -10
- data/doc/V1/Nodes.html +10 -6
- data/doc/V1/Nodes/Service.html +13 -13
- data/doc/V1/Resources.html +10 -6
- data/doc/V1/Resources/Service.html +10 -6
- data/doc/V1/RoleAttachments.html +10 -6
- data/doc/V1/RoleAttachments/Service.html +11 -11
- data/doc/V1/RoleGrants.html +10 -6
- data/doc/V1/RoleGrants/Service.html +11 -11
- data/doc/V1/Roles.html +10 -6
- data/doc/V1/Roles/Service.html +11 -12
- data/doc/V1/Tags.html +113 -0
- data/doc/created.rid +45 -37
- data/doc/css/fonts.css +6 -6
- data/doc/css/rdoc.css +22 -1
- data/doc/examples/Gemfile.html +14 -4
- data/doc/examples/Gemfile_lock.html +14 -4
- data/doc/examples/README_md.html +14 -4
- data/doc/examples/okta-sync/Gemfile.html +105 -0
- data/doc/examples/okta-sync/Gemfile_lock.html +146 -0
- data/doc/index.html +23 -10
- data/doc/js/darkfish.js +23 -100
- data/doc/js/navigation.js +4 -41
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +32 -31
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +7 -6
- data/doc/js/searcher.js.gz +0 -0
- data/doc/lib/version.html +16 -6
- data/doc/strongdm_gemspec.html +15 -5
- data/doc/table_of_contents.html +1587 -771
- data/examples/Gemfile +2 -2
- data/examples/ldap-sync/ldapSync.rb +290 -0
- data/examples/listUsers.rb +8 -8
- data/examples/okta-sync/Gemfile +4 -0
- data/examples/okta-sync/Gemfile.lock +38 -0
- data/examples/okta-sync/matchers.yml +11 -0
- data/examples/okta-sync/oktaSync.rb +173 -0
- data/examples/panicButton.rb +103 -119
- data/lib/errors/errors.rb +55 -53
- data/lib/grpc/account_attachments_pb.rb +9 -14
- data/lib/grpc/account_attachments_services_pb.rb +7 -8
- data/lib/grpc/account_grants_pb.rb +10 -10
- data/lib/grpc/account_grants_services_pb.rb +8 -9
- data/lib/grpc/accounts_pb.rb +12 -9
- data/lib/grpc/accounts_services_pb.rb +7 -8
- data/lib/grpc/drivers_pb.rb +104 -7
- data/lib/grpc/nodes_pb.rb +12 -9
- data/lib/grpc/nodes_services_pb.rb +7 -8
- data/lib/grpc/options_pb.rb +16 -5
- data/lib/grpc/plumbing.rb +4367 -4084
- data/lib/grpc/protoc-gen-swagger/options/annotations_pb.rb +4 -4
- data/lib/grpc/resources_pb.rb +9 -9
- data/lib/grpc/resources_services_pb.rb +7 -8
- data/lib/grpc/role_attachments_pb.rb +9 -9
- data/lib/grpc/role_attachments_services_pb.rb +7 -8
- data/lib/grpc/role_grants_pb.rb +9 -9
- data/lib/grpc/role_grants_services_pb.rb +7 -8
- data/lib/grpc/roles_pb.rb +11 -9
- data/lib/grpc/roles_services_pb.rb +7 -8
- data/lib/grpc/spec_pb.rb +7 -8
- data/lib/grpc/tags_pb.rb +36 -0
- data/lib/models/porcelain.rb +4966 -4017
- data/lib/strongdm.rb +94 -95
- data/lib/svc.rb +1200 -1224
- data/lib/version +16 -2
- data/lib/version.rb +6 -6
- data/strongdm.gemspec +10 -10
- metadata +27 -15
data/doc/SDM/Redis.html
CHANGED
@@ -8,16 +8,21 @@
|
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
11
|
+
var index_rel_prefix = "../";
|
11
12
|
</script>
|
12
13
|
|
13
|
-
<script src="../js/
|
14
|
-
<script src="../js/
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
15
19
|
|
16
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
17
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
18
22
|
|
19
23
|
|
20
24
|
|
25
|
+
|
21
26
|
<body id="top" role="document" class="class">
|
22
27
|
<nav role="navigation">
|
23
28
|
<div id="project-navigation">
|
@@ -72,6 +77,8 @@
|
|
72
77
|
|
73
78
|
<li ><a href="#method-c-new">::new</a>
|
74
79
|
|
80
|
+
<li ><a href="#method-i-to_json">#to_json</a>
|
81
|
+
|
75
82
|
</ul>
|
76
83
|
</div>
|
77
84
|
|
@@ -88,8 +95,6 @@
|
|
88
95
|
</section>
|
89
96
|
|
90
97
|
|
91
|
-
|
92
|
-
|
93
98
|
<section id="5Buntitled-5D" class="documentation-section">
|
94
99
|
|
95
100
|
|
@@ -192,6 +197,19 @@
|
|
192
197
|
|
193
198
|
|
194
199
|
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<div id="attribute-i-tags" class="method-detail">
|
204
|
+
<div class="method-heading attribute-method-heading">
|
205
|
+
<span class="method-name">tags</span><span
|
206
|
+
class="attribute-access-type">[RW]</span>
|
207
|
+
</div>
|
208
|
+
|
209
|
+
<div class="method-description">
|
210
|
+
|
211
|
+
<p>Tags is a map of key, value pairs.</p>
|
212
|
+
|
195
213
|
</div>
|
196
214
|
</div>
|
197
215
|
|
@@ -209,7 +227,7 @@
|
|
209
227
|
|
210
228
|
<div class="method-heading">
|
211
229
|
<span class="method-name">new</span><span
|
212
|
-
class="method-args">( id:nil \ , name:nil \ , healthy:nil \ , hostname:nil \ , port_override:nil \ , password:nil \ , port:nil \ )</span>
|
230
|
+
class="method-args">( id:nil \ , name:nil \ , healthy:nil \ , tags:nil \ , hostname:nil \ , port_override:nil \ , password:nil \ , port:nil \ )</span>
|
213
231
|
|
214
232
|
<span class="method-click-advice">click to toggle source</span>
|
215
233
|
|
@@ -224,36 +242,93 @@
|
|
224
242
|
|
225
243
|
|
226
244
|
<div class="method-source-code" id="new-source">
|
227
|
-
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line
|
228
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
245
|
+
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line 3821</span>
|
246
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(
|
247
|
+
<span class="ruby-value">id:</span><span class="ruby-keyword">nil</span> \
|
248
|
+
,
|
249
|
+
<span class="ruby-value">name:</span><span class="ruby-keyword">nil</span> \
|
250
|
+
,
|
251
|
+
<span class="ruby-value">healthy:</span><span class="ruby-keyword">nil</span> \
|
252
|
+
,
|
253
|
+
<span class="ruby-value">tags:</span><span class="ruby-keyword">nil</span> \
|
254
|
+
,
|
255
|
+
<span class="ruby-value">hostname:</span><span class="ruby-keyword">nil</span> \
|
256
|
+
,
|
257
|
+
<span class="ruby-value">port_override:</span><span class="ruby-keyword">nil</span> \
|
258
|
+
,
|
259
|
+
<span class="ruby-value">password:</span><span class="ruby-keyword">nil</span> \
|
260
|
+
,
|
261
|
+
<span class="ruby-value">port:</span><span class="ruby-keyword">nil</span> \
|
262
|
+
)
|
263
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
264
|
+
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
265
|
+
<span class="ruby-keyword">end</span>
|
266
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
267
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
268
|
+
<span class="ruby-keyword">end</span>
|
269
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">healthy</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
270
|
+
<span class="ruby-ivar">@healthy</span> = <span class="ruby-identifier">healthy</span>
|
271
|
+
<span class="ruby-keyword">end</span>
|
272
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">tags</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
273
|
+
<span class="ruby-ivar">@tags</span> = <span class="ruby-identifier">tags</span>
|
274
|
+
<span class="ruby-keyword">end</span>
|
275
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">hostname</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
276
|
+
<span class="ruby-ivar">@hostname</span> = <span class="ruby-identifier">hostname</span>
|
277
|
+
<span class="ruby-keyword">end</span>
|
278
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">port_override</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
279
|
+
<span class="ruby-ivar">@port_override</span> = <span class="ruby-identifier">port_override</span>
|
280
|
+
<span class="ruby-keyword">end</span>
|
281
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">password</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
282
|
+
<span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
|
283
|
+
<span class="ruby-keyword">end</span>
|
284
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">port</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
285
|
+
<span class="ruby-ivar">@port</span> = <span class="ruby-identifier">port</span>
|
286
|
+
<span class="ruby-keyword">end</span>
|
287
|
+
<span class="ruby-keyword">end</span></pre>
|
288
|
+
</div>
|
289
|
+
|
290
|
+
</div>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
</div>
|
296
|
+
|
297
|
+
|
298
|
+
</section>
|
299
|
+
|
300
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
301
|
+
<header>
|
302
|
+
<h3>Public Instance Methods</h3>
|
303
|
+
</header>
|
304
|
+
|
305
|
+
|
306
|
+
<div id="method-i-to_json" class="method-detail ">
|
307
|
+
|
308
|
+
<div class="method-heading">
|
309
|
+
<span class="method-name">to_json</span><span
|
310
|
+
class="method-args">(options={})</span>
|
311
|
+
|
312
|
+
<span class="method-click-advice">click to toggle source</span>
|
313
|
+
|
314
|
+
</div>
|
315
|
+
|
316
|
+
|
317
|
+
<div class="method-description">
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
<div class="method-source-code" id="to_json-source">
|
325
|
+
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line 3863</span>
|
326
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_json</span>(<span class="ruby-identifier">options</span>={})
|
327
|
+
<span class="ruby-identifier">hash</span> = {}
|
328
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance_variables</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">var</span><span class="ruby-operator">|</span>
|
329
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">var</span>.<span class="ruby-identifier">id2name</span>.<span class="ruby-identifier">delete_prefix</span>(<span class="ruby-string">'@'</span>)] = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance_variable_get</span> <span class="ruby-identifier">var</span>
|
256
330
|
<span class="ruby-keyword">end</span>
|
331
|
+
<span class="ruby-identifier">hash</span>.<span class="ruby-identifier">to_json</span>
|
257
332
|
<span class="ruby-keyword">end</span></pre>
|
258
333
|
</div>
|
259
334
|
|
@@ -268,12 +343,13 @@
|
|
268
343
|
</section>
|
269
344
|
|
270
345
|
</section>
|
346
|
+
|
271
347
|
</main>
|
272
348
|
|
273
349
|
|
274
350
|
<footer id="validator-badges" role="contentinfo">
|
275
|
-
<p><a href="
|
276
|
-
<p>Generated by <a href="
|
351
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
352
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.2.
|
277
353
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
278
354
|
</footer>
|
279
355
|
|
data/doc/SDM/Redshift.html
CHANGED
@@ -8,16 +8,21 @@
|
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
11
|
+
var index_rel_prefix = "../";
|
11
12
|
</script>
|
12
13
|
|
13
|
-
<script src="../js/
|
14
|
-
<script src="../js/
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
15
19
|
|
16
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
17
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
18
22
|
|
19
23
|
|
20
24
|
|
25
|
+
|
21
26
|
<body id="top" role="document" class="class">
|
22
27
|
<nav role="navigation">
|
23
28
|
<div id="project-navigation">
|
@@ -72,6 +77,8 @@
|
|
72
77
|
|
73
78
|
<li ><a href="#method-c-new">::new</a>
|
74
79
|
|
80
|
+
<li ><a href="#method-i-to_json">#to_json</a>
|
81
|
+
|
75
82
|
</ul>
|
76
83
|
</div>
|
77
84
|
|
@@ -88,8 +95,6 @@
|
|
88
95
|
</section>
|
89
96
|
|
90
97
|
|
91
|
-
|
92
|
-
|
93
98
|
<section id="5Buntitled-5D" class="documentation-section">
|
94
99
|
|
95
100
|
|
@@ -221,6 +226,19 @@
|
|
221
226
|
</div>
|
222
227
|
</div>
|
223
228
|
|
229
|
+
<div id="attribute-i-tags" class="method-detail">
|
230
|
+
<div class="method-heading attribute-method-heading">
|
231
|
+
<span class="method-name">tags</span><span
|
232
|
+
class="attribute-access-type">[RW]</span>
|
233
|
+
</div>
|
234
|
+
|
235
|
+
<div class="method-description">
|
236
|
+
|
237
|
+
<p>Tags is a map of key, value pairs.</p>
|
238
|
+
|
239
|
+
</div>
|
240
|
+
</div>
|
241
|
+
|
224
242
|
<div id="attribute-i-username" class="method-detail">
|
225
243
|
<div class="method-heading attribute-method-heading">
|
226
244
|
<span class="method-name">username</span><span
|
@@ -248,7 +266,7 @@
|
|
248
266
|
|
249
267
|
<div class="method-heading">
|
250
268
|
<span class="method-name">new</span><span
|
251
|
-
class="method-args">( id:nil \ , name:nil \ , healthy:nil \ , hostname:nil \ , username:nil \ , password:nil \ , database:nil \ , port_override:nil \ , port:nil \ , override_database:nil \ )</span>
|
269
|
+
class="method-args">( id:nil \ , name:nil \ , healthy:nil \ , tags:nil \ , hostname:nil \ , username:nil \ , password:nil \ , database:nil \ , port_override:nil \ , port:nil \ , override_database:nil \ )</span>
|
252
270
|
|
253
271
|
<span class="method-click-advice">click to toggle source</span>
|
254
272
|
|
@@ -263,48 +281,108 @@
|
|
263
281
|
|
264
282
|
|
265
283
|
<div class="method-source-code" id="new-source">
|
266
|
-
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line
|
267
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
284
|
+
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line 3485</span>
|
285
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(
|
286
|
+
<span class="ruby-value">id:</span><span class="ruby-keyword">nil</span> \
|
287
|
+
,
|
288
|
+
<span class="ruby-value">name:</span><span class="ruby-keyword">nil</span> \
|
289
|
+
,
|
290
|
+
<span class="ruby-value">healthy:</span><span class="ruby-keyword">nil</span> \
|
291
|
+
,
|
292
|
+
<span class="ruby-value">tags:</span><span class="ruby-keyword">nil</span> \
|
293
|
+
,
|
294
|
+
<span class="ruby-value">hostname:</span><span class="ruby-keyword">nil</span> \
|
295
|
+
,
|
296
|
+
<span class="ruby-value">username:</span><span class="ruby-keyword">nil</span> \
|
297
|
+
,
|
298
|
+
<span class="ruby-value">password:</span><span class="ruby-keyword">nil</span> \
|
299
|
+
,
|
300
|
+
<span class="ruby-value">database:</span><span class="ruby-keyword">nil</span> \
|
301
|
+
,
|
302
|
+
<span class="ruby-value">port_override:</span><span class="ruby-keyword">nil</span> \
|
303
|
+
,
|
304
|
+
<span class="ruby-value">port:</span><span class="ruby-keyword">nil</span> \
|
305
|
+
,
|
306
|
+
<span class="ruby-value">override_database:</span><span class="ruby-keyword">nil</span> \
|
307
|
+
)
|
308
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
309
|
+
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
310
|
+
<span class="ruby-keyword">end</span>
|
311
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
312
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
313
|
+
<span class="ruby-keyword">end</span>
|
314
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">healthy</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
315
|
+
<span class="ruby-ivar">@healthy</span> = <span class="ruby-identifier">healthy</span>
|
316
|
+
<span class="ruby-keyword">end</span>
|
317
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">tags</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
318
|
+
<span class="ruby-ivar">@tags</span> = <span class="ruby-identifier">tags</span>
|
319
|
+
<span class="ruby-keyword">end</span>
|
320
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">hostname</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
321
|
+
<span class="ruby-ivar">@hostname</span> = <span class="ruby-identifier">hostname</span>
|
322
|
+
<span class="ruby-keyword">end</span>
|
323
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">username</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
324
|
+
<span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
|
325
|
+
<span class="ruby-keyword">end</span>
|
326
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">password</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
327
|
+
<span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
|
328
|
+
<span class="ruby-keyword">end</span>
|
329
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">database</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
330
|
+
<span class="ruby-ivar">@database</span> = <span class="ruby-identifier">database</span>
|
331
|
+
<span class="ruby-keyword">end</span>
|
332
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">port_override</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
333
|
+
<span class="ruby-ivar">@port_override</span> = <span class="ruby-identifier">port_override</span>
|
334
|
+
<span class="ruby-keyword">end</span>
|
335
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">port</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
336
|
+
<span class="ruby-ivar">@port</span> = <span class="ruby-identifier">port</span>
|
337
|
+
<span class="ruby-keyword">end</span>
|
338
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">override_database</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
339
|
+
<span class="ruby-ivar">@override_database</span> = <span class="ruby-identifier">override_database</span>
|
340
|
+
<span class="ruby-keyword">end</span>
|
341
|
+
<span class="ruby-keyword">end</span></pre>
|
342
|
+
</div>
|
343
|
+
|
344
|
+
</div>
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
</div>
|
350
|
+
|
351
|
+
|
352
|
+
</section>
|
353
|
+
|
354
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
355
|
+
<header>
|
356
|
+
<h3>Public Instance Methods</h3>
|
357
|
+
</header>
|
358
|
+
|
359
|
+
|
360
|
+
<div id="method-i-to_json" class="method-detail ">
|
361
|
+
|
362
|
+
<div class="method-heading">
|
363
|
+
<span class="method-name">to_json</span><span
|
364
|
+
class="method-args">(options={})</span>
|
365
|
+
|
366
|
+
<span class="method-click-advice">click to toggle source</span>
|
367
|
+
|
368
|
+
</div>
|
369
|
+
|
370
|
+
|
371
|
+
<div class="method-description">
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
<div class="method-source-code" id="to_json-source">
|
379
|
+
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line 3542</span>
|
380
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_json</span>(<span class="ruby-identifier">options</span>={})
|
381
|
+
<span class="ruby-identifier">hash</span> = {}
|
382
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance_variables</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">var</span><span class="ruby-operator">|</span>
|
383
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">var</span>.<span class="ruby-identifier">id2name</span>.<span class="ruby-identifier">delete_prefix</span>(<span class="ruby-string">'@'</span>)] = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance_variable_get</span> <span class="ruby-identifier">var</span>
|
307
384
|
<span class="ruby-keyword">end</span>
|
385
|
+
<span class="ruby-identifier">hash</span>.<span class="ruby-identifier">to_json</span>
|
308
386
|
<span class="ruby-keyword">end</span></pre>
|
309
387
|
</div>
|
310
388
|
|
@@ -319,12 +397,13 @@
|
|
319
397
|
</section>
|
320
398
|
|
321
399
|
</section>
|
400
|
+
|
322
401
|
</main>
|
323
402
|
|
324
403
|
|
325
404
|
<footer id="validator-badges" role="contentinfo">
|
326
|
-
<p><a href="
|
327
|
-
<p>Generated by <a href="
|
405
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
406
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.2.
|
328
407
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
329
408
|
</footer>
|
330
409
|
|
data/doc/SDM/Relay.html
CHANGED
@@ -8,16 +8,21 @@
|
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
11
|
+
var index_rel_prefix = "../";
|
11
12
|
</script>
|
12
13
|
|
13
|
-
<script src="../js/
|
14
|
-
<script src="../js/
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
15
19
|
|
16
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
17
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
18
22
|
|
19
23
|
|
20
24
|
|
25
|
+
|
21
26
|
<body id="top" role="document" class="class">
|
22
27
|
<nav role="navigation">
|
23
28
|
<div id="project-navigation">
|
@@ -72,6 +77,8 @@
|
|
72
77
|
|
73
78
|
<li ><a href="#method-c-new">::new</a>
|
74
79
|
|
80
|
+
<li ><a href="#method-i-to_json">#to_json</a>
|
81
|
+
|
75
82
|
</ul>
|
76
83
|
</div>
|
77
84
|
|
@@ -85,14 +92,11 @@
|
|
85
92
|
|
86
93
|
<section class="description">
|
87
94
|
|
88
|
-
<p><a href="Relay.html">Relay</a> represents a StrongDM CLI installation
|
89
|
-
running in relay mode.</p>
|
95
|
+
<p><a href="Relay.html"><code>Relay</code></a> represents a StrongDM CLI installation running in relay mode.</p>
|
90
96
|
|
91
97
|
</section>
|
92
98
|
|
93
99
|
|
94
|
-
|
95
|
-
|
96
100
|
<section id="5Buntitled-5D" class="documentation-section">
|
97
101
|
|
98
102
|
|
@@ -115,7 +119,7 @@ running in relay mode.
|
|
115
119
|
|
116
120
|
<div class="method-description">
|
117
121
|
|
118
|
-
<p>Unique identifier of the <a href="Relay.html">Relay</a>.</p>
|
122
|
+
<p>Unique identifier of the <a href="Relay.html"><code>Relay</code></a>.</p>
|
119
123
|
|
120
124
|
</div>
|
121
125
|
</div>
|
@@ -128,8 +132,7 @@ running in relay mode.
|
|
128
132
|
|
129
133
|
<div class="method-description">
|
130
134
|
|
131
|
-
<p>Unique human-readable name of the <a href="Relay.html">Relay</a>. Generated
|
132
|
-
if not provided on create.</p>
|
135
|
+
<p>Unique human-readable name of the <a href="Relay.html"><code>Relay</code></a>. Generated if not provided on create.</p>
|
133
136
|
|
134
137
|
</div>
|
135
138
|
</div>
|
@@ -142,8 +145,20 @@ if not provided on create.
|
|
142
145
|
|
143
146
|
<div class="method-description">
|
144
147
|
|
145
|
-
<p>The current state of the relay. One of: “new”, “verifying_restart”,
|
146
|
-
|
148
|
+
<p>The current state of the relay. One of: “new”, “verifying_restart”, “awaiting_restart”, “restarting”, “started”, “stopped”, “dead”, “unknown”.</p>
|
149
|
+
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
<div id="attribute-i-tags" class="method-detail">
|
154
|
+
<div class="method-heading attribute-method-heading">
|
155
|
+
<span class="method-name">tags</span><span
|
156
|
+
class="attribute-access-type">[RW]</span>
|
157
|
+
</div>
|
158
|
+
|
159
|
+
<div class="method-description">
|
160
|
+
|
161
|
+
<p>Tags is a map of key, value pairs.</p>
|
147
162
|
|
148
163
|
</div>
|
149
164
|
</div>
|
@@ -162,7 +177,7 @@ if not provided on create.
|
|
162
177
|
|
163
178
|
<div class="method-heading">
|
164
179
|
<span class="method-name">new</span><span
|
165
|
-
class="method-args">( id:nil \ , name:nil \ , state:nil \ )</span>
|
180
|
+
class="method-args">( id:nil \ , name:nil \ , state:nil \ , tags:nil \ )</span>
|
166
181
|
|
167
182
|
<span class="method-click-advice">click to toggle source</span>
|
168
183
|
|
@@ -177,20 +192,73 @@ if not provided on create.
|
|
177
192
|
|
178
193
|
|
179
194
|
<div class="method-source-code" id="new-source">
|
180
|
-
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line
|
181
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
195
|
+
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line 4652</span>
|
196
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(
|
197
|
+
<span class="ruby-value">id:</span><span class="ruby-keyword">nil</span> \
|
198
|
+
,
|
199
|
+
<span class="ruby-value">name:</span><span class="ruby-keyword">nil</span> \
|
200
|
+
,
|
201
|
+
<span class="ruby-value">state:</span><span class="ruby-keyword">nil</span> \
|
202
|
+
,
|
203
|
+
<span class="ruby-value">tags:</span><span class="ruby-keyword">nil</span> \
|
204
|
+
)
|
205
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
206
|
+
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
207
|
+
<span class="ruby-keyword">end</span>
|
208
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
209
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
210
|
+
<span class="ruby-keyword">end</span>
|
211
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">state</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
212
|
+
<span class="ruby-ivar">@state</span> = <span class="ruby-identifier">state</span>
|
213
|
+
<span class="ruby-keyword">end</span>
|
214
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">tags</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
|
215
|
+
<span class="ruby-ivar">@tags</span> = <span class="ruby-identifier">tags</span>
|
216
|
+
<span class="ruby-keyword">end</span>
|
217
|
+
<span class="ruby-keyword">end</span></pre>
|
218
|
+
</div>
|
219
|
+
|
220
|
+
</div>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</div>
|
226
|
+
|
227
|
+
|
228
|
+
</section>
|
229
|
+
|
230
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
231
|
+
<header>
|
232
|
+
<h3>Public Instance Methods</h3>
|
233
|
+
</header>
|
234
|
+
|
235
|
+
|
236
|
+
<div id="method-i-to_json" class="method-detail ">
|
237
|
+
|
238
|
+
<div class="method-heading">
|
239
|
+
<span class="method-name">to_json</span><span
|
240
|
+
class="method-args">(options={})</span>
|
241
|
+
|
242
|
+
<span class="method-click-advice">click to toggle source</span>
|
243
|
+
|
244
|
+
</div>
|
245
|
+
|
246
|
+
|
247
|
+
<div class="method-description">
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
<div class="method-source-code" id="to_json-source">
|
255
|
+
<pre><span class="ruby-comment"># File lib/models/porcelain.rb, line 4674</span>
|
256
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_json</span>(<span class="ruby-identifier">options</span>={})
|
257
|
+
<span class="ruby-identifier">hash</span> = {}
|
258
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance_variables</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">var</span><span class="ruby-operator">|</span>
|
259
|
+
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">var</span>.<span class="ruby-identifier">id2name</span>.<span class="ruby-identifier">delete_prefix</span>(<span class="ruby-string">'@'</span>)] = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance_variable_get</span> <span class="ruby-identifier">var</span>
|
193
260
|
<span class="ruby-keyword">end</span>
|
261
|
+
<span class="ruby-identifier">hash</span>.<span class="ruby-identifier">to_json</span>
|
194
262
|
<span class="ruby-keyword">end</span></pre>
|
195
263
|
</div>
|
196
264
|
|
@@ -205,12 +273,13 @@ if not provided on create.
|
|
205
273
|
</section>
|
206
274
|
|
207
275
|
</section>
|
276
|
+
|
208
277
|
</main>
|
209
278
|
|
210
279
|
|
211
280
|
<footer id="validator-badges" role="contentinfo">
|
212
|
-
<p><a href="
|
213
|
-
<p>Generated by <a href="
|
281
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
282
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.2.
|
214
283
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
215
284
|
</footer>
|
216
285
|
|