strongdm 1.0.32 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/.git/ORIG_HEAD +1 -1
  3. data/.git/config +0 -3
  4. data/.git/index +0 -0
  5. data/.git/logs/HEAD +3 -4
  6. data/.git/logs/refs/heads/master +2 -2
  7. data/.git/logs/refs/remotes/origin/HEAD +1 -1
  8. data/.git/objects/pack/pack-799dc839a811c2fbe50b5281a9266fcc3a8f5154.idx +0 -0
  9. data/.git/objects/pack/{pack-760024d2d3e635c44bfe6b54af80a8b21674032d.pack → pack-799dc839a811c2fbe50b5281a9266fcc3a8f5154.pack} +0 -0
  10. data/.git/packed-refs +5 -2
  11. data/.git/refs/heads/master +1 -1
  12. data/.yardopts +9 -0
  13. data/README.md +18 -6
  14. data/lib/errors/errors.rb +1 -1
  15. data/lib/grpc/account_attachments_services_pb.rb +1 -1
  16. data/lib/grpc/accounts_services_pb.rb +2 -2
  17. data/lib/grpc/drivers_pb.rb +38 -0
  18. data/lib/grpc/nodes_services_pb.rb +1 -1
  19. data/lib/grpc/options_pb.rb +35 -40
  20. data/lib/grpc/plumbing.rb +1258 -965
  21. data/lib/grpc/resources_services_pb.rb +3 -1
  22. data/lib/grpc/role_attachments_services_pb.rb +10 -0
  23. data/lib/grpc/role_grants_services_pb.rb +10 -0
  24. data/lib/grpc/roles_services_pb.rb +4 -6
  25. data/lib/grpc/secret_store_types_pb.rb +25 -0
  26. data/lib/grpc/secret_stores_services_pb.rb +1 -1
  27. data/lib/models/porcelain.rb +1243 -2897
  28. data/lib/strongdm.rb +39 -15
  29. data/lib/svc.rb +162 -14
  30. data/lib/version +1 -1
  31. data/lib/version.rb +1 -1
  32. metadata +5 -222
  33. data/.git/FETCH_HEAD +0 -2
  34. data/.git/logs/refs/heads/development +0 -1
  35. data/.git/objects/pack/pack-760024d2d3e635c44bfe6b54af80a8b21674032d.idx +0 -0
  36. data/.git/refs/heads/development +0 -1
  37. data/doc/LICENSE.html +0 -187
  38. data/doc/Object.html +0 -114
  39. data/doc/README_md.html +0 -146
  40. data/doc/SDM/AKS.html +0 -352
  41. data/doc/SDM/AKSBasicAuth.html +0 -337
  42. data/doc/SDM/AKSServiceAccount.html +0 -322
  43. data/doc/SDM/AKSServiceAccountUserImpersonation.html +0 -322
  44. data/doc/SDM/AKSUserImpersonation.html +0 -352
  45. data/doc/SDM/AWS.html +0 -337
  46. data/doc/SDM/AWSStore.html +0 -232
  47. data/doc/SDM/AccountAttachment.html +0 -219
  48. data/doc/SDM/AccountAttachmentCreateResponse.html +0 -219
  49. data/doc/SDM/AccountAttachmentDeleteResponse.html +0 -204
  50. data/doc/SDM/AccountAttachmentGetResponse.html +0 -219
  51. data/doc/SDM/AccountAttachments.html +0 -354
  52. data/doc/SDM/AccountCreateResponse.html +0 -234
  53. data/doc/SDM/AccountDeleteResponse.html +0 -204
  54. data/doc/SDM/AccountGetResponse.html +0 -219
  55. data/doc/SDM/AccountGrant.html +0 -249
  56. data/doc/SDM/AccountGrantCreateResponse.html +0 -219
  57. data/doc/SDM/AccountGrantDeleteResponse.html +0 -204
  58. data/doc/SDM/AccountGrantGetResponse.html +0 -219
  59. data/doc/SDM/AccountGrants.html +0 -354
  60. data/doc/SDM/AccountUpdateResponse.html +0 -219
  61. data/doc/SDM/Accounts.html +0 -409
  62. data/doc/SDM/AlreadyExistsError.html +0 -140
  63. data/doc/SDM/AmazonEKS.html +0 -397
  64. data/doc/SDM/AmazonEKSUserImpersonation.html +0 -397
  65. data/doc/SDM/AmazonES.html +0 -367
  66. data/doc/SDM/AmazonMQAMQP091.html +0 -352
  67. data/doc/SDM/Athena.html +0 -367
  68. data/doc/SDM/AuroraMysql.html +0 -352
  69. data/doc/SDM/AuroraPostgres.html +0 -367
  70. data/doc/SDM/AuthenticationError.html +0 -140
  71. data/doc/SDM/Azure.html +0 -307
  72. data/doc/SDM/AzureCertificate.html +0 -307
  73. data/doc/SDM/AzurePostgres.html +0 -367
  74. data/doc/SDM/BadRequestError.html +0 -140
  75. data/doc/SDM/BigQuery.html +0 -337
  76. data/doc/SDM/Cassandra.html +0 -352
  77. data/doc/SDM/Citus.html +0 -367
  78. data/doc/SDM/Client.html +0 -443
  79. data/doc/SDM/Clustrix.html +0 -352
  80. data/doc/SDM/Cockroach.html +0 -367
  81. data/doc/SDM/ControlPanel.html +0 -248
  82. data/doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html +0 -219
  83. data/doc/SDM/ControlPanelVerifyJWTResponse.html +0 -219
  84. data/doc/SDM/CreateResponseMetadata.html +0 -169
  85. data/doc/SDM/DB2LUW.html +0 -352
  86. data/doc/SDM/DB2i.html +0 -352
  87. data/doc/SDM/DeadlineExceededError.html +0 -140
  88. data/doc/SDM/DeleteResponseMetadata.html +0 -169
  89. data/doc/SDM/DocumentDBHost.html +0 -352
  90. data/doc/SDM/DocumentDBReplicaSet.html +0 -367
  91. data/doc/SDM/Druid.html +0 -337
  92. data/doc/SDM/DynamoDB.html +0 -367
  93. data/doc/SDM/Elastic.html +0 -352
  94. data/doc/SDM/ElasticacheRedis.html +0 -337
  95. data/doc/SDM/GCP.html +0 -292
  96. data/doc/SDM/Gateway.html +0 -279
  97. data/doc/SDM/GetResponseMetadata.html +0 -169
  98. data/doc/SDM/GoogleGKE.html +0 -322
  99. data/doc/SDM/GoogleGKEUserImpersonation.html +0 -322
  100. data/doc/SDM/Greenplum.html +0 -367
  101. data/doc/SDM/HTTPAuth.html +0 -352
  102. data/doc/SDM/HTTPBasicAuth.html +0 -367
  103. data/doc/SDM/HTTPNoAuth.html +0 -337
  104. data/doc/SDM/InternalError.html +0 -140
  105. data/doc/SDM/Kubernetes.html +0 -352
  106. data/doc/SDM/KubernetesBasicAuth.html +0 -337
  107. data/doc/SDM/KubernetesServiceAccount.html +0 -322
  108. data/doc/SDM/KubernetesServiceAccountUserImpersonation.html +0 -322
  109. data/doc/SDM/KubernetesUserImpersonation.html +0 -352
  110. data/doc/SDM/Maria.html +0 -352
  111. data/doc/SDM/Memcached.html +0 -307
  112. data/doc/SDM/Memsql.html +0 -352
  113. data/doc/SDM/MongoHost.html +0 -367
  114. data/doc/SDM/MongoLegacyHost.html +0 -382
  115. data/doc/SDM/MongoLegacyReplicaset.html +0 -397
  116. data/doc/SDM/MongoReplicaSet.html +0 -397
  117. data/doc/SDM/Mysql.html +0 -352
  118. data/doc/SDM/Neptune.html +0 -307
  119. data/doc/SDM/NeptuneIAM.html +0 -382
  120. data/doc/SDM/NodeCreateResponse.html +0 -234
  121. data/doc/SDM/NodeDeleteResponse.html +0 -204
  122. data/doc/SDM/NodeGetResponse.html +0 -219
  123. data/doc/SDM/NodeUpdateResponse.html +0 -219
  124. data/doc/SDM/Nodes.html +0 -409
  125. data/doc/SDM/NotFoundError.html +0 -140
  126. data/doc/SDM/Oracle.html +0 -367
  127. data/doc/SDM/PermissionError.html +0 -140
  128. data/doc/SDM/Plumbing.html +0 -15828
  129. data/doc/SDM/Postgres.html +0 -367
  130. data/doc/SDM/Presto.html +0 -367
  131. data/doc/SDM/RDP.html +0 -337
  132. data/doc/SDM/RPCError.html +0 -157
  133. data/doc/SDM/RabbitMQAMQP091.html +0 -352
  134. data/doc/SDM/RateLimitError.html +0 -157
  135. data/doc/SDM/RateLimitMetadata.html +0 -234
  136. data/doc/SDM/RawTCP.html +0 -307
  137. data/doc/SDM/Redis.html +0 -322
  138. data/doc/SDM/Redshift.html +0 -367
  139. data/doc/SDM/Relay.html +0 -249
  140. data/doc/SDM/ResourceCreateResponse.html +0 -219
  141. data/doc/SDM/ResourceDeleteResponse.html +0 -204
  142. data/doc/SDM/ResourceGetResponse.html +0 -219
  143. data/doc/SDM/ResourceUpdateResponse.html +0 -219
  144. data/doc/SDM/Resources.html +0 -456
  145. data/doc/SDM/Role.html +0 -249
  146. data/doc/SDM/RoleAttachment.html +0 -219
  147. data/doc/SDM/RoleAttachmentCreateResponse.html +0 -219
  148. data/doc/SDM/RoleAttachmentDeleteResponse.html +0 -204
  149. data/doc/SDM/RoleAttachmentGetResponse.html +0 -219
  150. data/doc/SDM/RoleAttachments.html +0 -354
  151. data/doc/SDM/RoleCreateResponse.html +0 -219
  152. data/doc/SDM/RoleDeleteResponse.html +0 -204
  153. data/doc/SDM/RoleGetResponse.html +0 -219
  154. data/doc/SDM/RoleGrant.html +0 -219
  155. data/doc/SDM/RoleGrantCreateResponse.html +0 -219
  156. data/doc/SDM/RoleGrantDeleteResponse.html +0 -204
  157. data/doc/SDM/RoleGrantGetResponse.html +0 -219
  158. data/doc/SDM/RoleGrants.html +0 -354
  159. data/doc/SDM/RoleUpdateResponse.html +0 -219
  160. data/doc/SDM/Roles.html +0 -403
  161. data/doc/SDM/SQLServer.html +0 -382
  162. data/doc/SDM/SSH.html +0 -352
  163. data/doc/SDM/SSHCert.html +0 -337
  164. data/doc/SDM/SSHCustomerKey.html +0 -352
  165. data/doc/SDM/SecretStoreCreateResponse.html +0 -219
  166. data/doc/SDM/SecretStoreDeleteResponse.html +0 -204
  167. data/doc/SDM/SecretStoreGetResponse.html +0 -219
  168. data/doc/SDM/SecretStoreUpdateResponse.html +0 -219
  169. data/doc/SDM/SecretStores.html +0 -403
  170. data/doc/SDM/Service.html +0 -234
  171. data/doc/SDM/SingleStore.html +0 -352
  172. data/doc/SDM/Snowflake.html +0 -352
  173. data/doc/SDM/Sybase.html +0 -337
  174. data/doc/SDM/SybaseIQ.html +0 -337
  175. data/doc/SDM/Tag.html +0 -202
  176. data/doc/SDM/Teradata.html +0 -337
  177. data/doc/SDM/UpdateResponseMetadata.html +0 -169
  178. data/doc/SDM/User.html +0 -264
  179. data/doc/SDM/VaultTLSStore.html +0 -292
  180. data/doc/SDM/VaultTokenStore.html +0 -247
  181. data/doc/SDM.html +0 -122
  182. data/doc/V1/AccountAttachments/Service.html +0 -107
  183. data/doc/V1/AccountAttachments.html +0 -100
  184. data/doc/V1/AccountGrants/Service.html +0 -107
  185. data/doc/V1/AccountGrants.html +0 -100
  186. data/doc/V1/Accounts/Service.html +0 -112
  187. data/doc/V1/Accounts.html +0 -100
  188. data/doc/V1/ControlPanel/Service.html +0 -107
  189. data/doc/V1/ControlPanel.html +0 -100
  190. data/doc/V1/Nodes/Service.html +0 -112
  191. data/doc/V1/Nodes.html +0 -100
  192. data/doc/V1/Resources/Service.html +0 -105
  193. data/doc/V1/Resources.html +0 -100
  194. data/doc/V1/RoleAttachments/Service.html +0 -107
  195. data/doc/V1/RoleAttachments.html +0 -100
  196. data/doc/V1/RoleGrants/Service.html +0 -107
  197. data/doc/V1/RoleGrants.html +0 -100
  198. data/doc/V1/Roles/Service.html +0 -107
  199. data/doc/V1/Roles.html +0 -100
  200. data/doc/V1/SecretStores/Service.html +0 -107
  201. data/doc/V1/SecretStores.html +0 -100
  202. data/doc/V1/Tags.html +0 -100
  203. data/doc/V1.html +0 -502
  204. data/doc/created.rid +0 -37
  205. data/doc/css/fonts.css +0 -167
  206. data/doc/css/rdoc.css +0 -639
  207. data/doc/examples/Gemfile.html +0 -89
  208. data/doc/fonts/Lato-Light.ttf +0 -0
  209. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  210. data/doc/fonts/Lato-Regular.ttf +0 -0
  211. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  212. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  213. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  214. data/doc/images/add.png +0 -0
  215. data/doc/images/arrow_up.png +0 -0
  216. data/doc/images/brick.png +0 -0
  217. data/doc/images/brick_link.png +0 -0
  218. data/doc/images/bug.png +0 -0
  219. data/doc/images/bullet_black.png +0 -0
  220. data/doc/images/bullet_toggle_minus.png +0 -0
  221. data/doc/images/bullet_toggle_plus.png +0 -0
  222. data/doc/images/date.png +0 -0
  223. data/doc/images/delete.png +0 -0
  224. data/doc/images/find.png +0 -0
  225. data/doc/images/loadingAnimation.gif +0 -0
  226. data/doc/images/macFFBgHack.png +0 -0
  227. data/doc/images/package.png +0 -0
  228. data/doc/images/page_green.png +0 -0
  229. data/doc/images/page_white_text.png +0 -0
  230. data/doc/images/page_white_width.png +0 -0
  231. data/doc/images/plugin.png +0 -0
  232. data/doc/images/ruby.png +0 -0
  233. data/doc/images/tag_blue.png +0 -0
  234. data/doc/images/tag_green.png +0 -0
  235. data/doc/images/transparent.png +0 -0
  236. data/doc/images/wrench.png +0 -0
  237. data/doc/images/wrench_orange.png +0 -0
  238. data/doc/images/zoom.png +0 -0
  239. data/doc/index.html +0 -255
  240. data/doc/js/darkfish.js +0 -84
  241. data/doc/js/navigation.js +0 -105
  242. data/doc/js/navigation.js.gz +0 -0
  243. data/doc/js/search.js +0 -110
  244. data/doc/js/search_index.js +0 -1
  245. data/doc/js/search_index.js.gz +0 -0
  246. data/doc/js/searcher.js +0 -229
  247. data/doc/js/searcher.js.gz +0 -0
  248. data/doc/lib/version.html +0 -92
  249. data/doc/table_of_contents.html +0 -4614
  250. data/examples/Gemfile +0 -3
  251. data/examples/listUsers.rb +0 -21
data/doc/SDM/Roles.html DELETED
@@ -1,403 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class SDM::Roles - RDoc Documentation</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- var index_rel_prefix = "../";
12
- </script>
13
-
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>
19
-
20
- <link href="../css/fonts.css" rel="stylesheet">
21
- <link href="../css/rdoc.css" rel="stylesheet">
22
-
23
-
24
- <body id="top" role="document" class="class">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="../index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="../table_of_contents.html#pages">Pages</a>
34
- <a href="../table_of_contents.html#classes">Classes</a>
35
- <a href="../table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
-
58
- <div id="class-metadata">
59
-
60
-
61
- <div id="parent-class-section" class="nav-section">
62
- <h3>Parent</h3>
63
-
64
- <p class="link"><a href="../Object.html">Object</a>
65
- </div>
66
-
67
-
68
-
69
-
70
- <!-- Method Quickref -->
71
- <div id="method-list-section" class="nav-section">
72
- <h3>Methods</h3>
73
-
74
- <ul class="link-list" role="directory">
75
- <li ><a href="#method-c-new">::new</a>
76
- <li ><a href="#method-i-create">#create</a>
77
- <li ><a href="#method-i-delete">#delete</a>
78
- <li ><a href="#method-i-get">#get</a>
79
- <li ><a href="#method-i-list">#list</a>
80
- <li ><a href="#method-i-update">#update</a>
81
- </ul>
82
- </div>
83
-
84
- </div>
85
- </nav>
86
-
87
- <main role="main" aria-labelledby="class-SDM::Roles">
88
- <h1 id="class-SDM::Roles" class="class">
89
- class SDM::Roles
90
- </h1>
91
-
92
- <section class="description">
93
-
94
- <p><a href="Roles.html"><code>Roles</code></a> are tools for controlling user access to resources. Each <a href="Role.html"><code>Role</code></a> holds a list of resources which they grant access to. Composite roles are a special type of <a href="Role.html"><code>Role</code></a> which have no resource associations of their own, but instead grant access to the combined resources associated with a set of child roles. Each user can be a member of one <a href="Role.html"><code>Role</code></a> or composite role.</p>
95
-
96
- </section>
97
-
98
- <section id="5Buntitled-5D" class="documentation-section">
99
-
100
-
101
-
102
-
103
-
104
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
105
- <header>
106
- <h3>Public Class Methods</h3>
107
- </header>
108
-
109
- <div id="method-c-new" class="method-detail ">
110
- <div class="method-heading">
111
- <span class="method-name">new</span><span
112
- class="method-args">(host, insecure, parent)</span>
113
- <span class="method-click-advice">click to toggle source</span>
114
- </div>
115
-
116
- <div class="method-description">
117
-
118
-
119
- <div class="method-source-code" id="new-source">
120
- <pre><span class="ruby-comment"># File lib/svc.rb, line 1265</span>
121
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">host</span>, <span class="ruby-identifier">insecure</span>, <span class="ruby-identifier">parent</span>)
122
- <span class="ruby-keyword">begin</span>
123
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">insecure</span>
124
- <span class="ruby-ivar">@stub</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">Roles</span><span class="ruby-operator">::</span><span class="ruby-constant">Stub</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">host</span>, <span class="ruby-value">:this_channel_is_insecure</span>)
125
- <span class="ruby-keyword">else</span>
126
- <span class="ruby-identifier">cred</span> = <span class="ruby-constant">GRPC</span><span class="ruby-operator">::</span><span class="ruby-constant">Core</span><span class="ruby-operator">::</span><span class="ruby-constant">ChannelCredentials</span>.<span class="ruby-identifier">new</span>()
127
- <span class="ruby-ivar">@stub</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">Roles</span><span class="ruby-operator">::</span><span class="ruby-constant">Stub</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">host</span>, <span class="ruby-identifier">cred</span>)
128
- <span class="ruby-keyword">end</span>
129
- <span class="ruby-keyword">rescue</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">exception</span>
130
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
131
- <span class="ruby-keyword">end</span>
132
- <span class="ruby-ivar">@parent</span> = <span class="ruby-identifier">parent</span>
133
- <span class="ruby-keyword">end</span></pre>
134
- </div>
135
- </div>
136
-
137
-
138
- </div>
139
-
140
- </section>
141
-
142
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
143
- <header>
144
- <h3>Public Instance Methods</h3>
145
- </header>
146
-
147
- <div id="method-i-create" class="method-detail ">
148
- <div class="method-heading">
149
- <span class="method-name">create</span><span
150
- class="method-args">( role \ , deadline:nil)</span>
151
- <span class="method-click-advice">click to toggle source</span>
152
- </div>
153
-
154
- <div class="method-description">
155
- <p>Create registers a new <a href="Role.html"><code>Role</code></a>.</p>
156
-
157
- <div class="method-source-code" id="create-source">
158
- <pre><span class="ruby-comment"># File lib/svc.rb, line 1279</span>
159
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">create</span>(
160
- <span class="ruby-identifier">role</span> \
161
- ,
162
- <span class="ruby-value">deadline:</span><span class="ruby-keyword">nil</span>)
163
- <span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">RoleCreateRequest</span>.<span class="ruby-identifier">new</span>()
164
-
165
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">role</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_role_to_plumbing</span>(<span class="ruby-identifier">role</span>)
166
- <span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
167
- <span class="ruby-identifier">plumbing_response</span> = <span class="ruby-keyword">nil</span>
168
- <span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
169
- <span class="ruby-keyword">begin</span>
170
- <span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">req</span>, <span class="ruby-value">metadata:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">&#39;Roles.Create&#39;</span>, <span class="ruby-identifier">req</span>), <span class="ruby-value">deadline:</span><span class="ruby-identifier">deadline</span>)
171
- <span class="ruby-keyword">rescue</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">exception</span>
172
- <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
173
- <span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
174
- <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
175
- <span class="ruby-keyword">next</span>
176
- <span class="ruby-keyword">end</span>
177
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
178
- <span class="ruby-keyword">end</span>
179
- <span class="ruby-keyword">break</span>
180
- <span class="ruby-keyword">end</span>
181
-
182
-
183
- <span class="ruby-identifier">resp</span> = <span class="ruby-constant">RoleCreateResponse</span>.<span class="ruby-identifier">new</span>()
184
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_create_response_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>)
185
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">rate_limit</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_rate_limit_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">rate_limit</span>)
186
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">role</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_role_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">role</span>)
187
- <span class="ruby-identifier">resp</span>
188
- <span class="ruby-keyword">end</span></pre>
189
- </div>
190
- </div>
191
-
192
-
193
- </div>
194
-
195
- <div id="method-i-delete" class="method-detail ">
196
- <div class="method-heading">
197
- <span class="method-name">delete</span><span
198
- class="method-args">( id \ , deadline:nil)</span>
199
- <span class="method-click-advice">click to toggle source</span>
200
- </div>
201
-
202
- <div class="method-description">
203
- <p>Delete removes a <a href="Role.html"><code>Role</code></a> by ID.</p>
204
-
205
- <div class="method-source-code" id="delete-source">
206
- <pre><span class="ruby-comment"># File lib/svc.rb, line 1372</span>
207
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">delete</span>(
208
- <span class="ruby-identifier">id</span> \
209
- ,
210
- <span class="ruby-value">deadline:</span><span class="ruby-keyword">nil</span>)
211
- <span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">RoleDeleteRequest</span>.<span class="ruby-identifier">new</span>()
212
-
213
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">id</span> = (<span class="ruby-identifier">id</span>)
214
- <span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
215
- <span class="ruby-identifier">plumbing_response</span> = <span class="ruby-keyword">nil</span>
216
- <span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
217
- <span class="ruby-keyword">begin</span>
218
- <span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">req</span>, <span class="ruby-value">metadata:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">&#39;Roles.Delete&#39;</span>, <span class="ruby-identifier">req</span>), <span class="ruby-value">deadline:</span><span class="ruby-identifier">deadline</span>)
219
- <span class="ruby-keyword">rescue</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">exception</span>
220
- <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
221
- <span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
222
- <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
223
- <span class="ruby-keyword">next</span>
224
- <span class="ruby-keyword">end</span>
225
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
226
- <span class="ruby-keyword">end</span>
227
- <span class="ruby-keyword">break</span>
228
- <span class="ruby-keyword">end</span>
229
-
230
-
231
- <span class="ruby-identifier">resp</span> = <span class="ruby-constant">RoleDeleteResponse</span>.<span class="ruby-identifier">new</span>()
232
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_delete_response_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>)
233
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">rate_limit</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_rate_limit_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">rate_limit</span>)
234
- <span class="ruby-identifier">resp</span>
235
- <span class="ruby-keyword">end</span></pre>
236
- </div>
237
- </div>
238
-
239
-
240
- </div>
241
-
242
- <div id="method-i-get" class="method-detail ">
243
- <div class="method-heading">
244
- <span class="method-name">get</span><span
245
- class="method-args">( id \ , deadline:nil)</span>
246
- <span class="method-click-advice">click to toggle source</span>
247
- </div>
248
-
249
- <div class="method-description">
250
- <p>Get reads one <a href="Role.html"><code>Role</code></a> by ID.</p>
251
-
252
- <div class="method-source-code" id="get-source">
253
- <pre><span class="ruby-comment"># File lib/svc.rb, line 1310</span>
254
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get</span>(
255
- <span class="ruby-identifier">id</span> \
256
- ,
257
- <span class="ruby-value">deadline:</span><span class="ruby-keyword">nil</span>)
258
- <span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">RoleGetRequest</span>.<span class="ruby-identifier">new</span>()
259
-
260
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">id</span> = (<span class="ruby-identifier">id</span>)
261
- <span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
262
- <span class="ruby-identifier">plumbing_response</span> = <span class="ruby-keyword">nil</span>
263
- <span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
264
- <span class="ruby-keyword">begin</span>
265
- <span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">req</span>, <span class="ruby-value">metadata:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">&#39;Roles.Get&#39;</span>, <span class="ruby-identifier">req</span>), <span class="ruby-value">deadline:</span><span class="ruby-identifier">deadline</span>)
266
- <span class="ruby-keyword">rescue</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">exception</span>
267
- <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
268
- <span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
269
- <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
270
- <span class="ruby-keyword">next</span>
271
- <span class="ruby-keyword">end</span>
272
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
273
- <span class="ruby-keyword">end</span>
274
- <span class="ruby-keyword">break</span>
275
- <span class="ruby-keyword">end</span>
276
-
277
-
278
- <span class="ruby-identifier">resp</span> = <span class="ruby-constant">RoleGetResponse</span>.<span class="ruby-identifier">new</span>()
279
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_get_response_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>)
280
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">rate_limit</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_rate_limit_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">rate_limit</span>)
281
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">role</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_role_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">role</span>)
282
- <span class="ruby-identifier">resp</span>
283
- <span class="ruby-keyword">end</span></pre>
284
- </div>
285
- </div>
286
-
287
-
288
- </div>
289
-
290
- <div id="method-i-list" class="method-detail ">
291
- <div class="method-heading">
292
- <span class="method-name">list</span><span
293
- class="method-args">( filter \ , *args, deadline:nil)</span>
294
- <span class="method-click-advice">click to toggle source</span>
295
- </div>
296
-
297
- <div class="method-description">
298
- <p>List gets a list of <a href="Roles.html"><code>Roles</code></a> matching a given set of criteria.</p>
299
-
300
- <div class="method-source-code" id="list-source">
301
- <pre><span class="ruby-comment"># File lib/svc.rb, line 1402</span>
302
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">list</span>(
303
- <span class="ruby-identifier">filter</span> \
304
- ,
305
- <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,
306
- <span class="ruby-value">deadline:</span><span class="ruby-keyword">nil</span>)
307
- <span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">RoleListRequest</span>.<span class="ruby-identifier">new</span>()
308
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">ListRequestMetadata</span>.<span class="ruby-identifier">new</span>()
309
- <span class="ruby-identifier">page_size_option</span> = <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">_test_options</span>[<span class="ruby-string">&#39;PageSize&#39;</span>]
310
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">page_size_option</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Integer</span>
311
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">meta</span>.<span class="ruby-identifier">limit</span> = <span class="ruby-identifier">page_size_option</span>
312
- <span class="ruby-keyword">end</span>
313
-
314
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">filter</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">quote_filter_args</span>(<span class="ruby-identifier">filter</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
315
- <span class="ruby-identifier">resp</span> = <span class="ruby-constant">Enumerator</span><span class="ruby-operator">::</span><span class="ruby-constant">Generator</span>.<span class="ruby-identifier">new</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">g</span><span class="ruby-operator">|</span>
316
- <span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
317
- <span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
318
- <span class="ruby-keyword">begin</span>
319
- <span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">list</span>(<span class="ruby-identifier">req</span>, <span class="ruby-value">metadata:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">&#39;Roles.List&#39;</span>, <span class="ruby-identifier">req</span>), <span class="ruby-value">deadline:</span><span class="ruby-identifier">deadline</span>)
320
- <span class="ruby-keyword">rescue</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">exception</span>
321
- <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
322
- <span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
323
- <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
324
- <span class="ruby-keyword">next</span>
325
- <span class="ruby-keyword">end</span>
326
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
327
- <span class="ruby-keyword">end</span>
328
- <span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
329
- <span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">roles</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">plumbing_item</span><span class="ruby-operator">|</span>
330
- <span class="ruby-identifier">g</span>.<span class="ruby-identifier">yield</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_role_to_porcelain</span>(<span class="ruby-identifier">plumbing_item</span>)
331
- <span class="ruby-keyword">end</span>
332
- <span class="ruby-keyword">break</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>.<span class="ruby-identifier">next_cursor</span> <span class="ruby-operator">==</span> <span class="ruby-string">&quot;&quot;</span>
333
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">meta</span>.<span class="ruby-identifier">cursor</span> = <span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>.<span class="ruby-identifier">next_cursor</span>
334
- <span class="ruby-keyword">end</span>
335
- }
336
- <span class="ruby-identifier">resp</span>
337
- <span class="ruby-keyword">end</span></pre>
338
- </div>
339
- </div>
340
-
341
-
342
- </div>
343
-
344
- <div id="method-i-update" class="method-detail ">
345
- <div class="method-heading">
346
- <span class="method-name">update</span><span
347
- class="method-args">( role \ , deadline:nil)</span>
348
- <span class="method-click-advice">click to toggle source</span>
349
- </div>
350
-
351
- <div class="method-description">
352
- <p>Update patches a <a href="Role.html"><code>Role</code></a> by ID.</p>
353
-
354
- <div class="method-source-code" id="update-source">
355
- <pre><span class="ruby-comment"># File lib/svc.rb, line 1341</span>
356
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">update</span>(
357
- <span class="ruby-identifier">role</span> \
358
- ,
359
- <span class="ruby-value">deadline:</span><span class="ruby-keyword">nil</span>)
360
- <span class="ruby-identifier">req</span> = <span class="ruby-constant">V1</span><span class="ruby-operator">::</span><span class="ruby-constant">RoleUpdateRequest</span>.<span class="ruby-identifier">new</span>()
361
-
362
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">role</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_role_to_plumbing</span>(<span class="ruby-identifier">role</span>)
363
- <span class="ruby-identifier">tries</span> = <span class="ruby-value">0</span>
364
- <span class="ruby-identifier">plumbing_response</span> = <span class="ruby-keyword">nil</span>
365
- <span class="ruby-identifier">loop</span> <span class="ruby-keyword">do</span>
366
- <span class="ruby-keyword">begin</span>
367
- <span class="ruby-identifier">plumbing_response</span> = <span class="ruby-ivar">@stub</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">req</span>, <span class="ruby-value">metadata:</span> <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">get_metadata</span>(<span class="ruby-string">&#39;Roles.Update&#39;</span>, <span class="ruby-identifier">req</span>), <span class="ruby-value">deadline:</span><span class="ruby-identifier">deadline</span>)
368
- <span class="ruby-keyword">rescue</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">exception</span>
369
- <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">shouldRetry</span>(<span class="ruby-identifier">tries</span>, <span class="ruby-identifier">exception</span>))
370
- <span class="ruby-identifier">tries</span><span class="ruby-operator">+</span><span class="ruby-operator">+</span>
371
- <span class="ruby-ivar">@parent</span>.<span class="ruby-identifier">jitterSleep</span>(<span class="ruby-identifier">tries</span>)
372
- <span class="ruby-keyword">next</span>
373
- <span class="ruby-keyword">end</span>
374
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_error_to_porcelain</span>(<span class="ruby-identifier">exception</span>)
375
- <span class="ruby-keyword">end</span>
376
- <span class="ruby-keyword">break</span>
377
- <span class="ruby-keyword">end</span>
378
-
379
-
380
- <span class="ruby-identifier">resp</span> = <span class="ruby-constant">RoleUpdateResponse</span>.<span class="ruby-identifier">new</span>()
381
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">meta</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_update_response_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">meta</span>)
382
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">rate_limit</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_rate_limit_metadata_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">rate_limit</span>)
383
- <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">role</span> = <span class="ruby-constant">Plumbing</span><span class="ruby-operator">::</span><span class="ruby-identifier">convert_role_to_porcelain</span>(<span class="ruby-identifier">plumbing_response</span>.<span class="ruby-identifier">role</span>)
384
- <span class="ruby-identifier">resp</span>
385
- <span class="ruby-keyword">end</span></pre>
386
- </div>
387
- </div>
388
-
389
-
390
- </div>
391
-
392
- </section>
393
-
394
- </section>
395
- </main>
396
-
397
-
398
- <footer id="validator-badges" role="contentinfo">
399
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
400
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.1.
401
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
402
- </footer>
403
-