strongdm 1.0.1 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -7
  3. data/doc/LICENSE.html +1 -11
  4. data/doc/Object.html +1 -356
  5. data/doc/README_md.html +31 -20
  6. data/doc/SDM.html +1 -1
  7. data/doc/SDM/AKS.html +40 -4
  8. data/doc/SDM/AKSBasicAuth.html +40 -4
  9. data/doc/SDM/AKSServiceAccount.html +40 -4
  10. data/doc/SDM/AccountAttachment.html +3 -3
  11. data/doc/SDM/AccountAttachmentCreateResponse.html +3 -3
  12. data/doc/SDM/AccountAttachmentDeleteResponse.html +3 -3
  13. data/doc/SDM/AccountAttachmentGetResponse.html +3 -3
  14. data/doc/SDM/AccountAttachments.html +22 -24
  15. data/doc/SDM/AccountCreateResponse.html +3 -3
  16. data/doc/SDM/AccountDeleteResponse.html +3 -3
  17. data/doc/SDM/AccountGetResponse.html +3 -3
  18. data/doc/SDM/AccountGrant.html +3 -3
  19. data/doc/SDM/AccountGrantCreateResponse.html +3 -3
  20. data/doc/SDM/AccountGrantDeleteResponse.html +3 -3
  21. data/doc/SDM/AccountGrantGetResponse.html +3 -3
  22. data/doc/SDM/AccountGrants.html +24 -24
  23. data/doc/SDM/AccountUpdateResponse.html +3 -3
  24. data/doc/SDM/Accounts.html +30 -30
  25. data/doc/SDM/AlreadyExistsError.html +1 -1
  26. data/doc/SDM/AmazonEKS.html +58 -4
  27. data/doc/SDM/AmazonES.html +22 -4
  28. data/doc/SDM/Athena.html +22 -4
  29. data/doc/SDM/AuroraMysql.html +22 -4
  30. data/doc/SDM/AuroraPostgres.html +22 -4
  31. data/doc/SDM/AuthenticationError.html +1 -1
  32. data/doc/SDM/BadRequestError.html +1 -1
  33. data/doc/SDM/BigQuery.html +22 -4
  34. data/doc/SDM/Cassandra.html +22 -4
  35. data/doc/SDM/Citus.html +409 -0
  36. data/doc/SDM/Client.html +2 -2
  37. data/doc/SDM/Clustrix.html +22 -4
  38. data/doc/SDM/Cockroach.html +22 -4
  39. data/doc/SDM/CreateResponseMetadata.html +1 -1
  40. data/doc/SDM/DB2.html +391 -0
  41. data/doc/SDM/DB2LUW.html +391 -0
  42. data/doc/SDM/DB2i.html +391 -0
  43. data/doc/SDM/DeadlineExceededError.html +1 -1
  44. data/doc/SDM/DeleteResponseMetadata.html +1 -1
  45. data/doc/SDM/Druid.html +22 -4
  46. data/doc/SDM/DynamoDB.html +22 -4
  47. data/doc/SDM/Elastic.html +22 -4
  48. data/doc/SDM/ElasticacheRedis.html +22 -4
  49. data/doc/SDM/Gateway.html +22 -4
  50. data/doc/SDM/GetResponseMetadata.html +1 -1
  51. data/doc/SDM/GoogleGKE.html +40 -4
  52. data/doc/SDM/Greenplum.html +22 -4
  53. data/doc/SDM/HTTPAuth.html +22 -4
  54. data/doc/SDM/HTTPBasicAuth.html +22 -4
  55. data/doc/SDM/HTTPNoAuth.html +22 -4
  56. data/doc/SDM/InternalError.html +1 -1
  57. data/doc/SDM/Kubernetes.html +40 -4
  58. data/doc/SDM/KubernetesBasicAuth.html +40 -4
  59. data/doc/SDM/KubernetesServiceAccount.html +40 -4
  60. data/doc/SDM/Maria.html +22 -4
  61. data/doc/SDM/Memcached.html +22 -4
  62. data/doc/SDM/Memsql.html +22 -4
  63. data/doc/SDM/MongoHost.html +22 -4
  64. data/doc/SDM/MongoLegacyHost.html +22 -4
  65. data/doc/SDM/MongoLegacyReplicaset.html +22 -4
  66. data/doc/SDM/MongoReplicaSet.html +22 -4
  67. data/doc/SDM/Mysql.html +22 -4
  68. data/doc/SDM/NodeCreateResponse.html +3 -3
  69. data/doc/SDM/NodeDeleteResponse.html +3 -3
  70. data/doc/SDM/NodeGetResponse.html +3 -3
  71. data/doc/SDM/NodeUpdateResponse.html +3 -3
  72. data/doc/SDM/Nodes.html +30 -30
  73. data/doc/SDM/NotFoundError.html +1 -1
  74. data/doc/SDM/Oracle.html +22 -4
  75. data/doc/SDM/PermissionError.html +1 -1
  76. data/doc/SDM/Plumbing.html +4355 -3574
  77. data/doc/SDM/Postgres.html +22 -4
  78. data/doc/SDM/Presto.html +22 -4
  79. data/doc/SDM/RDP.html +22 -4
  80. data/doc/SDM/RPCError.html +1 -1
  81. data/doc/SDM/RateLimitError.html +1 -1
  82. data/doc/SDM/RateLimitMetadata.html +1 -1
  83. data/doc/SDM/Redis.html +22 -4
  84. data/doc/SDM/Redshift.html +22 -4
  85. data/doc/SDM/Relay.html +23 -5
  86. data/doc/SDM/ResourceCreateResponse.html +3 -3
  87. data/doc/SDM/ResourceDeleteResponse.html +3 -3
  88. data/doc/SDM/ResourceGetResponse.html +3 -3
  89. data/doc/SDM/ResourceUpdateResponse.html +3 -3
  90. data/doc/SDM/Resources.html +29 -29
  91. data/doc/SDM/Role.html +22 -4
  92. data/doc/SDM/RoleAttachment.html +3 -3
  93. data/doc/SDM/RoleAttachmentCreateResponse.html +3 -3
  94. data/doc/SDM/RoleAttachmentDeleteResponse.html +3 -3
  95. data/doc/SDM/RoleAttachmentGetResponse.html +3 -3
  96. data/doc/SDM/RoleAttachments.html +23 -23
  97. data/doc/SDM/RoleCreateResponse.html +3 -3
  98. data/doc/SDM/RoleDeleteResponse.html +3 -3
  99. data/doc/SDM/RoleGetResponse.html +3 -3
  100. data/doc/SDM/RoleGrant.html +3 -3
  101. data/doc/SDM/RoleGrantCreateResponse.html +3 -3
  102. data/doc/SDM/RoleGrantDeleteResponse.html +3 -3
  103. data/doc/SDM/RoleGrantGetResponse.html +3 -3
  104. data/doc/SDM/RoleGrants.html +23 -23
  105. data/doc/SDM/RoleUpdateResponse.html +3 -3
  106. data/doc/SDM/Roles.html +29 -29
  107. data/doc/SDM/SQLServer.html +22 -4
  108. data/doc/SDM/SSH.html +40 -4
  109. data/doc/SDM/SSHCert.html +373 -0
  110. data/doc/SDM/Service.html +22 -4
  111. data/doc/SDM/Snowflake.html +22 -4
  112. data/doc/SDM/Sybase.html +22 -4
  113. data/doc/SDM/SybaseIQ.html +22 -4
  114. data/doc/SDM/Teradata.html +22 -4
  115. data/doc/SDM/UpdateResponseMetadata.html +1 -1
  116. data/doc/SDM/User.html +22 -4
  117. data/doc/V1.html +31 -6
  118. data/doc/V1/AccountAttachments.html +1 -1
  119. data/doc/V1/AccountAttachments/Service.html +1 -1
  120. data/doc/V1/AccountGrants.html +1 -1
  121. data/doc/V1/AccountGrants/Service.html +2 -2
  122. data/doc/V1/Accounts.html +1 -1
  123. data/doc/V1/Accounts/Service.html +1 -1
  124. data/doc/V1/Nodes.html +1 -1
  125. data/doc/V1/Nodes/Service.html +1 -1
  126. data/doc/V1/Resources.html +1 -1
  127. data/doc/V1/Resources/Service.html +1 -1
  128. data/doc/V1/RoleAttachments.html +1 -1
  129. data/doc/V1/RoleAttachments/Service.html +1 -1
  130. data/doc/V1/RoleGrants.html +1 -1
  131. data/doc/V1/RoleGrants/Service.html +1 -1
  132. data/doc/V1/Roles.html +1 -1
  133. data/doc/V1/Roles/Service.html +1 -1
  134. data/doc/V1/Tags.html +113 -0
  135. data/doc/created.rid +35 -41
  136. data/doc/css/rdoc.css +13 -5
  137. data/doc/examples/Gemfile.html +1 -11
  138. data/doc/index.html +11 -13
  139. data/doc/js/navigation.js.gz +0 -0
  140. data/doc/js/search_index.js +1 -1
  141. data/doc/js/search_index.js.gz +0 -0
  142. data/doc/js/searcher.js.gz +0 -0
  143. data/doc/lib/version.html +3 -13
  144. data/doc/table_of_contents.html +1028 -933
  145. data/lib/grpc/account_attachments_pb.rb +0 -5
  146. data/lib/grpc/account_grants_services_pb.rb +1 -1
  147. data/lib/grpc/accounts_pb.rb +3 -0
  148. data/lib/grpc/drivers_pb.rb +111 -0
  149. data/lib/grpc/nodes_pb.rb +3 -0
  150. data/lib/grpc/options_pb.rb +11 -0
  151. data/lib/grpc/plumbing.rb +2024 -1682
  152. data/lib/grpc/roles_pb.rb +2 -0
  153. data/lib/grpc/spec_pb.rb +0 -1
  154. data/lib/grpc/tags_pb.rb +36 -0
  155. data/lib/models/porcelain.rb +670 -38
  156. data/lib/strongdm.rb +1 -1
  157. data/lib/svc.rb +159 -161
  158. data/lib/version +16 -2
  159. data/lib/version.rb +1 -1
  160. metadata +23 -24
  161. data/examples/Gemfile +0 -3
  162. data/examples/Gemfile.lock +0 -14
  163. data/examples/README.md +0 -5
  164. data/examples/listUsers.rb +0 -21
  165. data/examples/okta-sync/Gemfile +0 -4
  166. data/examples/okta-sync/Gemfile.lock +0 -38
  167. data/examples/okta-sync/matchers.yml +0 -11
  168. data/examples/okta-sync/oktaSync.rb +0 -173
  169. data/examples/panicButton.rb +0 -138
@@ -92,7 +92,7 @@ module SDM
92
92
  attr_reader :api_access_key
93
93
  # AccountAttachments assign an account to a role.
94
94
  attr_reader :account_attachments
95
- # AccountGrants connect a resource directly to an account, giving the account the permission to connect to that resource.
95
+ # AccountGrants assign a resource directly to an account, giving the account the permission to connect to that resource.
96
96
  attr_reader :account_grants
97
97
  # Accounts are users that have access to strongDM.
98
98
  # There are two types of accounts:
data/lib/svc.rb CHANGED
@@ -35,7 +35,7 @@ module SDM
35
35
  @stub = V1::AccountAttachments::Stub.new(host, cred)
36
36
  end
37
37
  rescue => exception
38
- raise Plumbing::error_to_porcelain(exception)
38
+ raise Plumbing::convert_error_to_porcelain(exception)
39
39
  end
40
40
  @parent = parent
41
41
  end
@@ -43,13 +43,11 @@ module SDM
43
43
  # Create registers a new AccountAttachment.
44
44
  def create(
45
45
  account_attachment,
46
- options: nil,
47
46
  deadline: nil
48
47
  )
49
48
  req = V1::AccountAttachmentCreateRequest.new()
50
49
 
51
- req.account_attachment = Plumbing::account_attachment_to_plumbing(account_attachment)
52
- req.options = Plumbing::account_attachment_create_options_to_plumbing(options)
50
+ req.account_attachment = Plumbing::convert_account_attachment_to_plumbing(account_attachment)
53
51
  tries = 0
54
52
  plumbing_response = nil
55
53
  loop do
@@ -60,15 +58,15 @@ module SDM
60
58
  tries + +@parent.jitterSleep(tries)
61
59
  next
62
60
  end
63
- raise Plumbing::error_to_porcelain(exception)
61
+ raise Plumbing::convert_error_to_porcelain(exception)
64
62
  end
65
63
  break
66
64
  end
67
65
 
68
66
  resp = AccountAttachmentCreateResponse.new()
69
- resp.meta = Plumbing::create_response_metadata_to_porcelain(plumbing_response.meta)
70
- resp.account_attachment = Plumbing::account_attachment_to_porcelain(plumbing_response.account_attachment)
71
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
67
+ resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
68
+ resp.account_attachment = Plumbing::convert_account_attachment_to_porcelain(plumbing_response.account_attachment)
69
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
72
70
  resp
73
71
  end
74
72
 
@@ -79,7 +77,7 @@ module SDM
79
77
  )
80
78
  req = V1::AccountAttachmentGetRequest.new()
81
79
 
82
- req.id = id
80
+ req.id = (id)
83
81
  tries = 0
84
82
  plumbing_response = nil
85
83
  loop do
@@ -90,15 +88,15 @@ module SDM
90
88
  tries + +@parent.jitterSleep(tries)
91
89
  next
92
90
  end
93
- raise Plumbing::error_to_porcelain(exception)
91
+ raise Plumbing::convert_error_to_porcelain(exception)
94
92
  end
95
93
  break
96
94
  end
97
95
 
98
96
  resp = AccountAttachmentGetResponse.new()
99
- resp.meta = Plumbing::get_response_metadata_to_porcelain(plumbing_response.meta)
100
- resp.account_attachment = Plumbing::account_attachment_to_porcelain(plumbing_response.account_attachment)
101
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
97
+ resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
98
+ resp.account_attachment = Plumbing::convert_account_attachment_to_porcelain(plumbing_response.account_attachment)
99
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
102
100
  resp
103
101
  end
104
102
 
@@ -109,7 +107,7 @@ module SDM
109
107
  )
110
108
  req = V1::AccountAttachmentDeleteRequest.new()
111
109
 
112
- req.id = id
110
+ req.id = (id)
113
111
  tries = 0
114
112
  plumbing_response = nil
115
113
  loop do
@@ -120,14 +118,14 @@ module SDM
120
118
  tries + +@parent.jitterSleep(tries)
121
119
  next
122
120
  end
123
- raise Plumbing::error_to_porcelain(exception)
121
+ raise Plumbing::convert_error_to_porcelain(exception)
124
122
  end
125
123
  break
126
124
  end
127
125
 
128
126
  resp = AccountAttachmentDeleteResponse.new()
129
- resp.meta = Plumbing::delete_response_metadata_to_porcelain(plumbing_response.meta)
130
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
127
+ resp.meta = Plumbing::convert_delete_response_metadata_to_porcelain(plumbing_response.meta)
128
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
131
129
  resp
132
130
  end
133
131
 
@@ -155,11 +153,11 @@ module SDM
155
153
  tries + +@parent.jitterSleep(tries)
156
154
  next
157
155
  end
158
- raise Plumbing::error_to_porcelain(exception)
156
+ raise Plumbing::convert_error_to_porcelain(exception)
159
157
  end
160
158
  tries = 0
161
159
  plumbing_response.account_attachments.each do |plumbing_item|
162
- g.yield Plumbing::account_attachment_to_porcelain(plumbing_item)
160
+ g.yield Plumbing::convert_account_attachment_to_porcelain(plumbing_item)
163
161
  end
164
162
  break if plumbing_response.meta.next_cursor == ""
165
163
  req.meta.cursor = plumbing_response.meta.next_cursor
@@ -169,7 +167,7 @@ module SDM
169
167
  end
170
168
  end
171
169
 
172
- # AccountGrants connect a resource directly to an account, giving the account the permission to connect to that resource.
170
+ # AccountGrants assign a resource directly to an account, giving the account the permission to connect to that resource.
173
171
  class AccountGrants
174
172
  def initialize(host, insecure, parent)
175
173
  begin
@@ -180,7 +178,7 @@ module SDM
180
178
  @stub = V1::AccountGrants::Stub.new(host, cred)
181
179
  end
182
180
  rescue => exception
183
- raise Plumbing::error_to_porcelain(exception)
181
+ raise Plumbing::convert_error_to_porcelain(exception)
184
182
  end
185
183
  @parent = parent
186
184
  end
@@ -192,7 +190,7 @@ module SDM
192
190
  )
193
191
  req = V1::AccountGrantCreateRequest.new()
194
192
 
195
- req.account_grant = Plumbing::account_grant_to_plumbing(account_grant)
193
+ req.account_grant = Plumbing::convert_account_grant_to_plumbing(account_grant)
196
194
  tries = 0
197
195
  plumbing_response = nil
198
196
  loop do
@@ -203,15 +201,15 @@ module SDM
203
201
  tries + +@parent.jitterSleep(tries)
204
202
  next
205
203
  end
206
- raise Plumbing::error_to_porcelain(exception)
204
+ raise Plumbing::convert_error_to_porcelain(exception)
207
205
  end
208
206
  break
209
207
  end
210
208
 
211
209
  resp = AccountGrantCreateResponse.new()
212
- resp.meta = Plumbing::create_response_metadata_to_porcelain(plumbing_response.meta)
213
- resp.account_grant = Plumbing::account_grant_to_porcelain(plumbing_response.account_grant)
214
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
210
+ resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
211
+ resp.account_grant = Plumbing::convert_account_grant_to_porcelain(plumbing_response.account_grant)
212
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
215
213
  resp
216
214
  end
217
215
 
@@ -222,7 +220,7 @@ module SDM
222
220
  )
223
221
  req = V1::AccountGrantGetRequest.new()
224
222
 
225
- req.id = id
223
+ req.id = (id)
226
224
  tries = 0
227
225
  plumbing_response = nil
228
226
  loop do
@@ -233,15 +231,15 @@ module SDM
233
231
  tries + +@parent.jitterSleep(tries)
234
232
  next
235
233
  end
236
- raise Plumbing::error_to_porcelain(exception)
234
+ raise Plumbing::convert_error_to_porcelain(exception)
237
235
  end
238
236
  break
239
237
  end
240
238
 
241
239
  resp = AccountGrantGetResponse.new()
242
- resp.meta = Plumbing::get_response_metadata_to_porcelain(plumbing_response.meta)
243
- resp.account_grant = Plumbing::account_grant_to_porcelain(plumbing_response.account_grant)
244
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
240
+ resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
241
+ resp.account_grant = Plumbing::convert_account_grant_to_porcelain(plumbing_response.account_grant)
242
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
245
243
  resp
246
244
  end
247
245
 
@@ -252,7 +250,7 @@ module SDM
252
250
  )
253
251
  req = V1::AccountGrantDeleteRequest.new()
254
252
 
255
- req.id = id
253
+ req.id = (id)
256
254
  tries = 0
257
255
  plumbing_response = nil
258
256
  loop do
@@ -263,14 +261,14 @@ module SDM
263
261
  tries + +@parent.jitterSleep(tries)
264
262
  next
265
263
  end
266
- raise Plumbing::error_to_porcelain(exception)
264
+ raise Plumbing::convert_error_to_porcelain(exception)
267
265
  end
268
266
  break
269
267
  end
270
268
 
271
269
  resp = AccountGrantDeleteResponse.new()
272
- resp.meta = Plumbing::delete_response_metadata_to_porcelain(plumbing_response.meta)
273
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
270
+ resp.meta = Plumbing::convert_delete_response_metadata_to_porcelain(plumbing_response.meta)
271
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
274
272
  resp
275
273
  end
276
274
 
@@ -298,11 +296,11 @@ module SDM
298
296
  tries + +@parent.jitterSleep(tries)
299
297
  next
300
298
  end
301
- raise Plumbing::error_to_porcelain(exception)
299
+ raise Plumbing::convert_error_to_porcelain(exception)
302
300
  end
303
301
  tries = 0
304
302
  plumbing_response.account_grants.each do |plumbing_item|
305
- g.yield Plumbing::account_grant_to_porcelain(plumbing_item)
303
+ g.yield Plumbing::convert_account_grant_to_porcelain(plumbing_item)
306
304
  end
307
305
  break if plumbing_response.meta.next_cursor == ""
308
306
  req.meta.cursor = plumbing_response.meta.next_cursor
@@ -326,7 +324,7 @@ module SDM
326
324
  @stub = V1::Accounts::Stub.new(host, cred)
327
325
  end
328
326
  rescue => exception
329
- raise Plumbing::error_to_porcelain(exception)
327
+ raise Plumbing::convert_error_to_porcelain(exception)
330
328
  end
331
329
  @parent = parent
332
330
  end
@@ -338,7 +336,7 @@ module SDM
338
336
  )
339
337
  req = V1::AccountCreateRequest.new()
340
338
 
341
- req.account = Plumbing::account_to_plumbing(account)
339
+ req.account = Plumbing::convert_account_to_plumbing(account)
342
340
  tries = 0
343
341
  plumbing_response = nil
344
342
  loop do
@@ -349,16 +347,16 @@ module SDM
349
347
  tries + +@parent.jitterSleep(tries)
350
348
  next
351
349
  end
352
- raise Plumbing::error_to_porcelain(exception)
350
+ raise Plumbing::convert_error_to_porcelain(exception)
353
351
  end
354
352
  break
355
353
  end
356
354
 
357
355
  resp = AccountCreateResponse.new()
358
- resp.meta = Plumbing::create_response_metadata_to_porcelain(plumbing_response.meta)
359
- resp.account = Plumbing::account_to_porcelain(plumbing_response.account)
360
- resp.token = plumbing_response.token
361
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
356
+ resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
357
+ resp.account = Plumbing::convert_account_to_porcelain(plumbing_response.account)
358
+ resp.token = (plumbing_response.token)
359
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
362
360
  resp
363
361
  end
364
362
 
@@ -369,7 +367,7 @@ module SDM
369
367
  )
370
368
  req = V1::AccountGetRequest.new()
371
369
 
372
- req.id = id
370
+ req.id = (id)
373
371
  tries = 0
374
372
  plumbing_response = nil
375
373
  loop do
@@ -380,15 +378,15 @@ module SDM
380
378
  tries + +@parent.jitterSleep(tries)
381
379
  next
382
380
  end
383
- raise Plumbing::error_to_porcelain(exception)
381
+ raise Plumbing::convert_error_to_porcelain(exception)
384
382
  end
385
383
  break
386
384
  end
387
385
 
388
386
  resp = AccountGetResponse.new()
389
- resp.meta = Plumbing::get_response_metadata_to_porcelain(plumbing_response.meta)
390
- resp.account = Plumbing::account_to_porcelain(plumbing_response.account)
391
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
387
+ resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
388
+ resp.account = Plumbing::convert_account_to_porcelain(plumbing_response.account)
389
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
392
390
  resp
393
391
  end
394
392
 
@@ -399,7 +397,7 @@ module SDM
399
397
  )
400
398
  req = V1::AccountUpdateRequest.new()
401
399
 
402
- req.account = Plumbing::account_to_plumbing(account)
400
+ req.account = Plumbing::convert_account_to_plumbing(account)
403
401
  tries = 0
404
402
  plumbing_response = nil
405
403
  loop do
@@ -410,15 +408,15 @@ module SDM
410
408
  tries + +@parent.jitterSleep(tries)
411
409
  next
412
410
  end
413
- raise Plumbing::error_to_porcelain(exception)
411
+ raise Plumbing::convert_error_to_porcelain(exception)
414
412
  end
415
413
  break
416
414
  end
417
415
 
418
416
  resp = AccountUpdateResponse.new()
419
- resp.meta = Plumbing::update_response_metadata_to_porcelain(plumbing_response.meta)
420
- resp.account = Plumbing::account_to_porcelain(plumbing_response.account)
421
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
417
+ resp.meta = Plumbing::convert_update_response_metadata_to_porcelain(plumbing_response.meta)
418
+ resp.account = Plumbing::convert_account_to_porcelain(plumbing_response.account)
419
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
422
420
  resp
423
421
  end
424
422
 
@@ -429,7 +427,7 @@ module SDM
429
427
  )
430
428
  req = V1::AccountDeleteRequest.new()
431
429
 
432
- req.id = id
430
+ req.id = (id)
433
431
  tries = 0
434
432
  plumbing_response = nil
435
433
  loop do
@@ -440,14 +438,14 @@ module SDM
440
438
  tries + +@parent.jitterSleep(tries)
441
439
  next
442
440
  end
443
- raise Plumbing::error_to_porcelain(exception)
441
+ raise Plumbing::convert_error_to_porcelain(exception)
444
442
  end
445
443
  break
446
444
  end
447
445
 
448
446
  resp = AccountDeleteResponse.new()
449
- resp.meta = Plumbing::delete_response_metadata_to_porcelain(plumbing_response.meta)
450
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
447
+ resp.meta = Plumbing::convert_delete_response_metadata_to_porcelain(plumbing_response.meta)
448
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
451
449
  resp
452
450
  end
453
451
 
@@ -475,11 +473,11 @@ module SDM
475
473
  tries + +@parent.jitterSleep(tries)
476
474
  next
477
475
  end
478
- raise Plumbing::error_to_porcelain(exception)
476
+ raise Plumbing::convert_error_to_porcelain(exception)
479
477
  end
480
478
  tries = 0
481
479
  plumbing_response.accounts.each do |plumbing_item|
482
- g.yield Plumbing::account_to_porcelain(plumbing_item)
480
+ g.yield Plumbing::convert_account_to_porcelain(plumbing_item)
483
481
  end
484
482
  break if plumbing_response.meta.next_cursor == ""
485
483
  req.meta.cursor = plumbing_response.meta.next_cursor
@@ -503,7 +501,7 @@ module SDM
503
501
  @stub = V1::Nodes::Stub.new(host, cred)
504
502
  end
505
503
  rescue => exception
506
- raise Plumbing::error_to_porcelain(exception)
504
+ raise Plumbing::convert_error_to_porcelain(exception)
507
505
  end
508
506
  @parent = parent
509
507
  end
@@ -515,7 +513,7 @@ module SDM
515
513
  )
516
514
  req = V1::NodeCreateRequest.new()
517
515
 
518
- req.node = Plumbing::node_to_plumbing(node)
516
+ req.node = Plumbing::convert_node_to_plumbing(node)
519
517
  tries = 0
520
518
  plumbing_response = nil
521
519
  loop do
@@ -526,16 +524,16 @@ module SDM
526
524
  tries + +@parent.jitterSleep(tries)
527
525
  next
528
526
  end
529
- raise Plumbing::error_to_porcelain(exception)
527
+ raise Plumbing::convert_error_to_porcelain(exception)
530
528
  end
531
529
  break
532
530
  end
533
531
 
534
532
  resp = NodeCreateResponse.new()
535
- resp.meta = Plumbing::create_response_metadata_to_porcelain(plumbing_response.meta)
536
- resp.node = Plumbing::node_to_porcelain(plumbing_response.node)
537
- resp.token = plumbing_response.token
538
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
533
+ resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
534
+ resp.node = Plumbing::convert_node_to_porcelain(plumbing_response.node)
535
+ resp.token = (plumbing_response.token)
536
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
539
537
  resp
540
538
  end
541
539
 
@@ -546,7 +544,7 @@ module SDM
546
544
  )
547
545
  req = V1::NodeGetRequest.new()
548
546
 
549
- req.id = id
547
+ req.id = (id)
550
548
  tries = 0
551
549
  plumbing_response = nil
552
550
  loop do
@@ -557,15 +555,15 @@ module SDM
557
555
  tries + +@parent.jitterSleep(tries)
558
556
  next
559
557
  end
560
- raise Plumbing::error_to_porcelain(exception)
558
+ raise Plumbing::convert_error_to_porcelain(exception)
561
559
  end
562
560
  break
563
561
  end
564
562
 
565
563
  resp = NodeGetResponse.new()
566
- resp.meta = Plumbing::get_response_metadata_to_porcelain(plumbing_response.meta)
567
- resp.node = Plumbing::node_to_porcelain(plumbing_response.node)
568
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
564
+ resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
565
+ resp.node = Plumbing::convert_node_to_porcelain(plumbing_response.node)
566
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
569
567
  resp
570
568
  end
571
569
 
@@ -576,7 +574,7 @@ module SDM
576
574
  )
577
575
  req = V1::NodeUpdateRequest.new()
578
576
 
579
- req.node = Plumbing::node_to_plumbing(node)
577
+ req.node = Plumbing::convert_node_to_plumbing(node)
580
578
  tries = 0
581
579
  plumbing_response = nil
582
580
  loop do
@@ -587,15 +585,15 @@ module SDM
587
585
  tries + +@parent.jitterSleep(tries)
588
586
  next
589
587
  end
590
- raise Plumbing::error_to_porcelain(exception)
588
+ raise Plumbing::convert_error_to_porcelain(exception)
591
589
  end
592
590
  break
593
591
  end
594
592
 
595
593
  resp = NodeUpdateResponse.new()
596
- resp.meta = Plumbing::update_response_metadata_to_porcelain(plumbing_response.meta)
597
- resp.node = Plumbing::node_to_porcelain(plumbing_response.node)
598
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
594
+ resp.meta = Plumbing::convert_update_response_metadata_to_porcelain(plumbing_response.meta)
595
+ resp.node = Plumbing::convert_node_to_porcelain(plumbing_response.node)
596
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
599
597
  resp
600
598
  end
601
599
 
@@ -606,7 +604,7 @@ module SDM
606
604
  )
607
605
  req = V1::NodeDeleteRequest.new()
608
606
 
609
- req.id = id
607
+ req.id = (id)
610
608
  tries = 0
611
609
  plumbing_response = nil
612
610
  loop do
@@ -617,14 +615,14 @@ module SDM
617
615
  tries + +@parent.jitterSleep(tries)
618
616
  next
619
617
  end
620
- raise Plumbing::error_to_porcelain(exception)
618
+ raise Plumbing::convert_error_to_porcelain(exception)
621
619
  end
622
620
  break
623
621
  end
624
622
 
625
623
  resp = NodeDeleteResponse.new()
626
- resp.meta = Plumbing::delete_response_metadata_to_porcelain(plumbing_response.meta)
627
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
624
+ resp.meta = Plumbing::convert_delete_response_metadata_to_porcelain(plumbing_response.meta)
625
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
628
626
  resp
629
627
  end
630
628
 
@@ -652,11 +650,11 @@ module SDM
652
650
  tries + +@parent.jitterSleep(tries)
653
651
  next
654
652
  end
655
- raise Plumbing::error_to_porcelain(exception)
653
+ raise Plumbing::convert_error_to_porcelain(exception)
656
654
  end
657
655
  tries = 0
658
656
  plumbing_response.nodes.each do |plumbing_item|
659
- g.yield Plumbing::node_to_porcelain(plumbing_item)
657
+ g.yield Plumbing::convert_node_to_porcelain(plumbing_item)
660
658
  end
661
659
  break if plumbing_response.meta.next_cursor == ""
662
660
  req.meta.cursor = plumbing_response.meta.next_cursor
@@ -676,7 +674,7 @@ module SDM
676
674
  @stub = V1::Resources::Stub.new(host, cred)
677
675
  end
678
676
  rescue => exception
679
- raise Plumbing::error_to_porcelain(exception)
677
+ raise Plumbing::convert_error_to_porcelain(exception)
680
678
  end
681
679
  @parent = parent
682
680
  end
@@ -688,7 +686,7 @@ module SDM
688
686
  )
689
687
  req = V1::ResourceCreateRequest.new()
690
688
 
691
- req.resource = Plumbing::resource_to_plumbing(resource)
689
+ req.resource = Plumbing::convert_resource_to_plumbing(resource)
692
690
  tries = 0
693
691
  plumbing_response = nil
694
692
  loop do
@@ -699,15 +697,15 @@ module SDM
699
697
  tries + +@parent.jitterSleep(tries)
700
698
  next
701
699
  end
702
- raise Plumbing::error_to_porcelain(exception)
700
+ raise Plumbing::convert_error_to_porcelain(exception)
703
701
  end
704
702
  break
705
703
  end
706
704
 
707
705
  resp = ResourceCreateResponse.new()
708
- resp.meta = Plumbing::create_response_metadata_to_porcelain(plumbing_response.meta)
709
- resp.resource = Plumbing::resource_to_porcelain(plumbing_response.resource)
710
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
706
+ resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
707
+ resp.resource = Plumbing::convert_resource_to_porcelain(plumbing_response.resource)
708
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
711
709
  resp
712
710
  end
713
711
 
@@ -718,7 +716,7 @@ module SDM
718
716
  )
719
717
  req = V1::ResourceGetRequest.new()
720
718
 
721
- req.id = id
719
+ req.id = (id)
722
720
  tries = 0
723
721
  plumbing_response = nil
724
722
  loop do
@@ -729,15 +727,15 @@ module SDM
729
727
  tries + +@parent.jitterSleep(tries)
730
728
  next
731
729
  end
732
- raise Plumbing::error_to_porcelain(exception)
730
+ raise Plumbing::convert_error_to_porcelain(exception)
733
731
  end
734
732
  break
735
733
  end
736
734
 
737
735
  resp = ResourceGetResponse.new()
738
- resp.meta = Plumbing::get_response_metadata_to_porcelain(plumbing_response.meta)
739
- resp.resource = Plumbing::resource_to_porcelain(plumbing_response.resource)
740
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
736
+ resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
737
+ resp.resource = Plumbing::convert_resource_to_porcelain(plumbing_response.resource)
738
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
741
739
  resp
742
740
  end
743
741
 
@@ -748,7 +746,7 @@ module SDM
748
746
  )
749
747
  req = V1::ResourceUpdateRequest.new()
750
748
 
751
- req.resource = Plumbing::resource_to_plumbing(resource)
749
+ req.resource = Plumbing::convert_resource_to_plumbing(resource)
752
750
  tries = 0
753
751
  plumbing_response = nil
754
752
  loop do
@@ -759,15 +757,15 @@ module SDM
759
757
  tries + +@parent.jitterSleep(tries)
760
758
  next
761
759
  end
762
- raise Plumbing::error_to_porcelain(exception)
760
+ raise Plumbing::convert_error_to_porcelain(exception)
763
761
  end
764
762
  break
765
763
  end
766
764
 
767
765
  resp = ResourceUpdateResponse.new()
768
- resp.meta = Plumbing::update_response_metadata_to_porcelain(plumbing_response.meta)
769
- resp.resource = Plumbing::resource_to_porcelain(plumbing_response.resource)
770
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
766
+ resp.meta = Plumbing::convert_update_response_metadata_to_porcelain(plumbing_response.meta)
767
+ resp.resource = Plumbing::convert_resource_to_porcelain(plumbing_response.resource)
768
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
771
769
  resp
772
770
  end
773
771
 
@@ -778,7 +776,7 @@ module SDM
778
776
  )
779
777
  req = V1::ResourceDeleteRequest.new()
780
778
 
781
- req.id = id
779
+ req.id = (id)
782
780
  tries = 0
783
781
  plumbing_response = nil
784
782
  loop do
@@ -789,14 +787,14 @@ module SDM
789
787
  tries + +@parent.jitterSleep(tries)
790
788
  next
791
789
  end
792
- raise Plumbing::error_to_porcelain(exception)
790
+ raise Plumbing::convert_error_to_porcelain(exception)
793
791
  end
794
792
  break
795
793
  end
796
794
 
797
795
  resp = ResourceDeleteResponse.new()
798
- resp.meta = Plumbing::delete_response_metadata_to_porcelain(plumbing_response.meta)
799
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
796
+ resp.meta = Plumbing::convert_delete_response_metadata_to_porcelain(plumbing_response.meta)
797
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
800
798
  resp
801
799
  end
802
800
 
@@ -824,11 +822,11 @@ module SDM
824
822
  tries + +@parent.jitterSleep(tries)
825
823
  next
826
824
  end
827
- raise Plumbing::error_to_porcelain(exception)
825
+ raise Plumbing::convert_error_to_porcelain(exception)
828
826
  end
829
827
  tries = 0
830
828
  plumbing_response.resources.each do |plumbing_item|
831
- g.yield Plumbing::resource_to_porcelain(plumbing_item)
829
+ g.yield Plumbing::convert_resource_to_porcelain(plumbing_item)
832
830
  end
833
831
  break if plumbing_response.meta.next_cursor == ""
834
832
  req.meta.cursor = plumbing_response.meta.next_cursor
@@ -852,7 +850,7 @@ module SDM
852
850
  @stub = V1::RoleAttachments::Stub.new(host, cred)
853
851
  end
854
852
  rescue => exception
855
- raise Plumbing::error_to_porcelain(exception)
853
+ raise Plumbing::convert_error_to_porcelain(exception)
856
854
  end
857
855
  @parent = parent
858
856
  end
@@ -864,7 +862,7 @@ module SDM
864
862
  )
865
863
  req = V1::RoleAttachmentCreateRequest.new()
866
864
 
867
- req.role_attachment = Plumbing::role_attachment_to_plumbing(role_attachment)
865
+ req.role_attachment = Plumbing::convert_role_attachment_to_plumbing(role_attachment)
868
866
  tries = 0
869
867
  plumbing_response = nil
870
868
  loop do
@@ -875,15 +873,15 @@ module SDM
875
873
  tries + +@parent.jitterSleep(tries)
876
874
  next
877
875
  end
878
- raise Plumbing::error_to_porcelain(exception)
876
+ raise Plumbing::convert_error_to_porcelain(exception)
879
877
  end
880
878
  break
881
879
  end
882
880
 
883
881
  resp = RoleAttachmentCreateResponse.new()
884
- resp.meta = Plumbing::create_response_metadata_to_porcelain(plumbing_response.meta)
885
- resp.role_attachment = Plumbing::role_attachment_to_porcelain(plumbing_response.role_attachment)
886
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
882
+ resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
883
+ resp.role_attachment = Plumbing::convert_role_attachment_to_porcelain(plumbing_response.role_attachment)
884
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
887
885
  resp
888
886
  end
889
887
 
@@ -894,7 +892,7 @@ module SDM
894
892
  )
895
893
  req = V1::RoleAttachmentGetRequest.new()
896
894
 
897
- req.id = id
895
+ req.id = (id)
898
896
  tries = 0
899
897
  plumbing_response = nil
900
898
  loop do
@@ -905,15 +903,15 @@ module SDM
905
903
  tries + +@parent.jitterSleep(tries)
906
904
  next
907
905
  end
908
- raise Plumbing::error_to_porcelain(exception)
906
+ raise Plumbing::convert_error_to_porcelain(exception)
909
907
  end
910
908
  break
911
909
  end
912
910
 
913
911
  resp = RoleAttachmentGetResponse.new()
914
- resp.meta = Plumbing::get_response_metadata_to_porcelain(plumbing_response.meta)
915
- resp.role_attachment = Plumbing::role_attachment_to_porcelain(plumbing_response.role_attachment)
916
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
912
+ resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
913
+ resp.role_attachment = Plumbing::convert_role_attachment_to_porcelain(plumbing_response.role_attachment)
914
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
917
915
  resp
918
916
  end
919
917
 
@@ -924,7 +922,7 @@ module SDM
924
922
  )
925
923
  req = V1::RoleAttachmentDeleteRequest.new()
926
924
 
927
- req.id = id
925
+ req.id = (id)
928
926
  tries = 0
929
927
  plumbing_response = nil
930
928
  loop do
@@ -935,14 +933,14 @@ module SDM
935
933
  tries + +@parent.jitterSleep(tries)
936
934
  next
937
935
  end
938
- raise Plumbing::error_to_porcelain(exception)
936
+ raise Plumbing::convert_error_to_porcelain(exception)
939
937
  end
940
938
  break
941
939
  end
942
940
 
943
941
  resp = RoleAttachmentDeleteResponse.new()
944
- resp.meta = Plumbing::delete_response_metadata_to_porcelain(plumbing_response.meta)
945
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
942
+ resp.meta = Plumbing::convert_delete_response_metadata_to_porcelain(plumbing_response.meta)
943
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
946
944
  resp
947
945
  end
948
946
 
@@ -970,11 +968,11 @@ module SDM
970
968
  tries + +@parent.jitterSleep(tries)
971
969
  next
972
970
  end
973
- raise Plumbing::error_to_porcelain(exception)
971
+ raise Plumbing::convert_error_to_porcelain(exception)
974
972
  end
975
973
  tries = 0
976
974
  plumbing_response.role_attachments.each do |plumbing_item|
977
- g.yield Plumbing::role_attachment_to_porcelain(plumbing_item)
975
+ g.yield Plumbing::convert_role_attachment_to_porcelain(plumbing_item)
978
976
  end
979
977
  break if plumbing_response.meta.next_cursor == ""
980
978
  req.meta.cursor = plumbing_response.meta.next_cursor
@@ -998,7 +996,7 @@ module SDM
998
996
  @stub = V1::RoleGrants::Stub.new(host, cred)
999
997
  end
1000
998
  rescue => exception
1001
- raise Plumbing::error_to_porcelain(exception)
999
+ raise Plumbing::convert_error_to_porcelain(exception)
1002
1000
  end
1003
1001
  @parent = parent
1004
1002
  end
@@ -1010,7 +1008,7 @@ module SDM
1010
1008
  )
1011
1009
  req = V1::RoleGrantCreateRequest.new()
1012
1010
 
1013
- req.role_grant = Plumbing::role_grant_to_plumbing(role_grant)
1011
+ req.role_grant = Plumbing::convert_role_grant_to_plumbing(role_grant)
1014
1012
  tries = 0
1015
1013
  plumbing_response = nil
1016
1014
  loop do
@@ -1021,15 +1019,15 @@ module SDM
1021
1019
  tries + +@parent.jitterSleep(tries)
1022
1020
  next
1023
1021
  end
1024
- raise Plumbing::error_to_porcelain(exception)
1022
+ raise Plumbing::convert_error_to_porcelain(exception)
1025
1023
  end
1026
1024
  break
1027
1025
  end
1028
1026
 
1029
1027
  resp = RoleGrantCreateResponse.new()
1030
- resp.meta = Plumbing::create_response_metadata_to_porcelain(plumbing_response.meta)
1031
- resp.role_grant = Plumbing::role_grant_to_porcelain(plumbing_response.role_grant)
1032
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1028
+ resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
1029
+ resp.role_grant = Plumbing::convert_role_grant_to_porcelain(plumbing_response.role_grant)
1030
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1033
1031
  resp
1034
1032
  end
1035
1033
 
@@ -1040,7 +1038,7 @@ module SDM
1040
1038
  )
1041
1039
  req = V1::RoleGrantGetRequest.new()
1042
1040
 
1043
- req.id = id
1041
+ req.id = (id)
1044
1042
  tries = 0
1045
1043
  plumbing_response = nil
1046
1044
  loop do
@@ -1051,15 +1049,15 @@ module SDM
1051
1049
  tries + +@parent.jitterSleep(tries)
1052
1050
  next
1053
1051
  end
1054
- raise Plumbing::error_to_porcelain(exception)
1052
+ raise Plumbing::convert_error_to_porcelain(exception)
1055
1053
  end
1056
1054
  break
1057
1055
  end
1058
1056
 
1059
1057
  resp = RoleGrantGetResponse.new()
1060
- resp.meta = Plumbing::get_response_metadata_to_porcelain(plumbing_response.meta)
1061
- resp.role_grant = Plumbing::role_grant_to_porcelain(plumbing_response.role_grant)
1062
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1058
+ resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
1059
+ resp.role_grant = Plumbing::convert_role_grant_to_porcelain(plumbing_response.role_grant)
1060
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1063
1061
  resp
1064
1062
  end
1065
1063
 
@@ -1070,7 +1068,7 @@ module SDM
1070
1068
  )
1071
1069
  req = V1::RoleGrantDeleteRequest.new()
1072
1070
 
1073
- req.id = id
1071
+ req.id = (id)
1074
1072
  tries = 0
1075
1073
  plumbing_response = nil
1076
1074
  loop do
@@ -1081,14 +1079,14 @@ module SDM
1081
1079
  tries + +@parent.jitterSleep(tries)
1082
1080
  next
1083
1081
  end
1084
- raise Plumbing::error_to_porcelain(exception)
1082
+ raise Plumbing::convert_error_to_porcelain(exception)
1085
1083
  end
1086
1084
  break
1087
1085
  end
1088
1086
 
1089
1087
  resp = RoleGrantDeleteResponse.new()
1090
- resp.meta = Plumbing::delete_response_metadata_to_porcelain(plumbing_response.meta)
1091
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1088
+ resp.meta = Plumbing::convert_delete_response_metadata_to_porcelain(plumbing_response.meta)
1089
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1092
1090
  resp
1093
1091
  end
1094
1092
 
@@ -1116,11 +1114,11 @@ module SDM
1116
1114
  tries + +@parent.jitterSleep(tries)
1117
1115
  next
1118
1116
  end
1119
- raise Plumbing::error_to_porcelain(exception)
1117
+ raise Plumbing::convert_error_to_porcelain(exception)
1120
1118
  end
1121
1119
  tries = 0
1122
1120
  plumbing_response.role_grants.each do |plumbing_item|
1123
- g.yield Plumbing::role_grant_to_porcelain(plumbing_item)
1121
+ g.yield Plumbing::convert_role_grant_to_porcelain(plumbing_item)
1124
1122
  end
1125
1123
  break if plumbing_response.meta.next_cursor == ""
1126
1124
  req.meta.cursor = plumbing_response.meta.next_cursor
@@ -1145,7 +1143,7 @@ module SDM
1145
1143
  @stub = V1::Roles::Stub.new(host, cred)
1146
1144
  end
1147
1145
  rescue => exception
1148
- raise Plumbing::error_to_porcelain(exception)
1146
+ raise Plumbing::convert_error_to_porcelain(exception)
1149
1147
  end
1150
1148
  @parent = parent
1151
1149
  end
@@ -1157,7 +1155,7 @@ module SDM
1157
1155
  )
1158
1156
  req = V1::RoleCreateRequest.new()
1159
1157
 
1160
- req.role = Plumbing::role_to_plumbing(role)
1158
+ req.role = Plumbing::convert_role_to_plumbing(role)
1161
1159
  tries = 0
1162
1160
  plumbing_response = nil
1163
1161
  loop do
@@ -1168,15 +1166,15 @@ module SDM
1168
1166
  tries + +@parent.jitterSleep(tries)
1169
1167
  next
1170
1168
  end
1171
- raise Plumbing::error_to_porcelain(exception)
1169
+ raise Plumbing::convert_error_to_porcelain(exception)
1172
1170
  end
1173
1171
  break
1174
1172
  end
1175
1173
 
1176
1174
  resp = RoleCreateResponse.new()
1177
- resp.meta = Plumbing::create_response_metadata_to_porcelain(plumbing_response.meta)
1178
- resp.role = Plumbing::role_to_porcelain(plumbing_response.role)
1179
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1175
+ resp.meta = Plumbing::convert_create_response_metadata_to_porcelain(plumbing_response.meta)
1176
+ resp.role = Plumbing::convert_role_to_porcelain(plumbing_response.role)
1177
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1180
1178
  resp
1181
1179
  end
1182
1180
 
@@ -1187,7 +1185,7 @@ module SDM
1187
1185
  )
1188
1186
  req = V1::RoleGetRequest.new()
1189
1187
 
1190
- req.id = id
1188
+ req.id = (id)
1191
1189
  tries = 0
1192
1190
  plumbing_response = nil
1193
1191
  loop do
@@ -1198,15 +1196,15 @@ module SDM
1198
1196
  tries + +@parent.jitterSleep(tries)
1199
1197
  next
1200
1198
  end
1201
- raise Plumbing::error_to_porcelain(exception)
1199
+ raise Plumbing::convert_error_to_porcelain(exception)
1202
1200
  end
1203
1201
  break
1204
1202
  end
1205
1203
 
1206
1204
  resp = RoleGetResponse.new()
1207
- resp.meta = Plumbing::get_response_metadata_to_porcelain(plumbing_response.meta)
1208
- resp.role = Plumbing::role_to_porcelain(plumbing_response.role)
1209
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1205
+ resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
1206
+ resp.role = Plumbing::convert_role_to_porcelain(plumbing_response.role)
1207
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1210
1208
  resp
1211
1209
  end
1212
1210
 
@@ -1217,7 +1215,7 @@ module SDM
1217
1215
  )
1218
1216
  req = V1::RoleUpdateRequest.new()
1219
1217
 
1220
- req.role = Plumbing::role_to_plumbing(role)
1218
+ req.role = Plumbing::convert_role_to_plumbing(role)
1221
1219
  tries = 0
1222
1220
  plumbing_response = nil
1223
1221
  loop do
@@ -1228,15 +1226,15 @@ module SDM
1228
1226
  tries + +@parent.jitterSleep(tries)
1229
1227
  next
1230
1228
  end
1231
- raise Plumbing::error_to_porcelain(exception)
1229
+ raise Plumbing::convert_error_to_porcelain(exception)
1232
1230
  end
1233
1231
  break
1234
1232
  end
1235
1233
 
1236
1234
  resp = RoleUpdateResponse.new()
1237
- resp.meta = Plumbing::update_response_metadata_to_porcelain(plumbing_response.meta)
1238
- resp.role = Plumbing::role_to_porcelain(plumbing_response.role)
1239
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1235
+ resp.meta = Plumbing::convert_update_response_metadata_to_porcelain(plumbing_response.meta)
1236
+ resp.role = Plumbing::convert_role_to_porcelain(plumbing_response.role)
1237
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1240
1238
  resp
1241
1239
  end
1242
1240
 
@@ -1247,7 +1245,7 @@ module SDM
1247
1245
  )
1248
1246
  req = V1::RoleDeleteRequest.new()
1249
1247
 
1250
- req.id = id
1248
+ req.id = (id)
1251
1249
  tries = 0
1252
1250
  plumbing_response = nil
1253
1251
  loop do
@@ -1258,14 +1256,14 @@ module SDM
1258
1256
  tries + +@parent.jitterSleep(tries)
1259
1257
  next
1260
1258
  end
1261
- raise Plumbing::error_to_porcelain(exception)
1259
+ raise Plumbing::convert_error_to_porcelain(exception)
1262
1260
  end
1263
1261
  break
1264
1262
  end
1265
1263
 
1266
1264
  resp = RoleDeleteResponse.new()
1267
- resp.meta = Plumbing::delete_response_metadata_to_porcelain(plumbing_response.meta)
1268
- resp.rate_limit = Plumbing::rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1265
+ resp.meta = Plumbing::convert_delete_response_metadata_to_porcelain(plumbing_response.meta)
1266
+ resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
1269
1267
  resp
1270
1268
  end
1271
1269
 
@@ -1293,11 +1291,11 @@ module SDM
1293
1291
  tries + +@parent.jitterSleep(tries)
1294
1292
  next
1295
1293
  end
1296
- raise Plumbing::error_to_porcelain(exception)
1294
+ raise Plumbing::convert_error_to_porcelain(exception)
1297
1295
  end
1298
1296
  tries = 0
1299
1297
  plumbing_response.roles.each do |plumbing_item|
1300
- g.yield Plumbing::role_to_porcelain(plumbing_item)
1298
+ g.yield Plumbing::convert_role_to_porcelain(plumbing_item)
1301
1299
  end
1302
1300
  break if plumbing_response.meta.next_cursor == ""
1303
1301
  req.meta.cursor = plumbing_response.meta.next_cursor