strongdm 3.6.1 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git/ORIG_HEAD +1 -1
- data/.git/index +0 -0
- data/.git/logs/HEAD +3 -3
- data/.git/logs/refs/heads/master +2 -2
- data/.git/logs/refs/remotes/origin/HEAD +1 -1
- data/.git/objects/pack/{pack-c0eff6575c38c9865988c2b59ce4060fff518355.idx → pack-6ff24cd25221e788819ff2b8012b5e54f3c5d426.idx} +0 -0
- data/.git/objects/pack/{pack-c0eff6575c38c9865988c2b59ce4060fff518355.pack → pack-6ff24cd25221e788819ff2b8012b5e54f3c5d426.pack} +0 -0
- data/.git/packed-refs +3 -2
- data/.git/refs/heads/master +1 -1
- data/lib/constants.rb +311 -0
- data/lib/grpc/account_attachments_history_pb.rb +48 -0
- data/lib/grpc/account_attachments_history_services_pb.rb +37 -0
- data/lib/grpc/account_grants_history_pb.rb +48 -0
- data/lib/grpc/account_grants_history_services_pb.rb +37 -0
- data/lib/grpc/account_permissions_pb.rb +48 -0
- data/lib/grpc/account_permissions_services_pb.rb +38 -0
- data/lib/grpc/account_resources_pb.rb +49 -0
- data/lib/grpc/account_resources_services_pb.rb +38 -0
- data/lib/grpc/accounts_history_pb.rb +48 -0
- data/lib/grpc/accounts_history_services_pb.rb +37 -0
- data/lib/grpc/activities_pb.rb +77 -0
- data/lib/grpc/activities_services_pb.rb +41 -0
- data/lib/grpc/nodes_history_pb.rb +48 -0
- data/lib/grpc/nodes_history_services_pb.rb +37 -0
- data/lib/grpc/organization_history_pb.rb +74 -0
- data/lib/grpc/organization_history_services_pb.rb +37 -0
- data/lib/grpc/plumbing.rb +977 -4
- data/lib/grpc/queries_pb.rb +67 -0
- data/lib/grpc/queries_services_pb.rb +39 -0
- data/lib/grpc/remote_identities_history_pb.rb +48 -0
- data/lib/grpc/remote_identities_history_services_pb.rb +37 -0
- data/lib/grpc/remote_identity_groups_history_pb.rb +48 -0
- data/lib/grpc/remote_identity_groups_history_services_pb.rb +37 -0
- data/lib/grpc/replays_pb.rb +50 -0
- data/lib/grpc/replays_services_pb.rb +38 -0
- data/lib/grpc/resources_history_pb.rb +48 -0
- data/lib/grpc/resources_history_services_pb.rb +37 -0
- data/lib/grpc/role_resources_history_pb.rb +48 -0
- data/lib/grpc/role_resources_history_services_pb.rb +37 -0
- data/lib/grpc/role_resources_pb.rb +46 -0
- data/lib/grpc/role_resources_services_pb.rb +38 -0
- data/lib/grpc/roles_history_pb.rb +48 -0
- data/lib/grpc/roles_history_services_pb.rb +37 -0
- data/lib/grpc/secret_stores_history_pb.rb +48 -0
- data/lib/grpc/secret_stores_history_services_pb.rb +37 -0
- data/lib/models/porcelain.rb +912 -0
- data/lib/strongdm.rb +219 -1
- data/lib/svc.rb +1555 -120
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +38 -4
data/lib/grpc/plumbing.rb
CHANGED
@@ -21,18 +21,35 @@ require "json"
|
|
21
21
|
require_relative "./options_pb"
|
22
22
|
require_relative "./spec_pb"
|
23
23
|
require_relative "./account_attachments_pb"
|
24
|
+
require_relative "./account_attachments_history_pb"
|
24
25
|
require_relative "./account_grants_pb"
|
26
|
+
require_relative "./account_grants_history_pb"
|
27
|
+
require_relative "./account_permissions_pb"
|
28
|
+
require_relative "./account_resources_pb"
|
25
29
|
require_relative "./tags_pb"
|
26
30
|
require_relative "./accounts_pb"
|
31
|
+
require_relative "./accounts_history_pb"
|
32
|
+
require_relative "./activities_pb"
|
27
33
|
require_relative "./control_panel_pb"
|
28
34
|
require_relative "./drivers_pb"
|
29
35
|
require_relative "./nodes_pb"
|
36
|
+
require_relative "./nodes_history_pb"
|
37
|
+
require_relative "./organization_history_pb"
|
38
|
+
require_relative "./queries_pb"
|
30
39
|
require_relative "./remote_identities_pb"
|
40
|
+
require_relative "./remote_identities_history_pb"
|
31
41
|
require_relative "./remote_identity_groups_pb"
|
42
|
+
require_relative "./remote_identity_groups_history_pb"
|
43
|
+
require_relative "./replays_pb"
|
32
44
|
require_relative "./resources_pb"
|
45
|
+
require_relative "./resources_history_pb"
|
46
|
+
require_relative "./role_resources_pb"
|
47
|
+
require_relative "./role_resources_history_pb"
|
33
48
|
require_relative "./roles_pb"
|
49
|
+
require_relative "./roles_history_pb"
|
34
50
|
require_relative "./secret_store_types_pb"
|
35
51
|
require_relative "./secret_stores_pb"
|
52
|
+
require_relative "./secret_stores_history_pb"
|
36
53
|
require_relative "../models/porcelain"
|
37
54
|
require_relative "../errors/errors"
|
38
55
|
require_relative "../constants"
|
@@ -842,6 +859,46 @@ module SDM
|
|
842
859
|
end
|
843
860
|
items
|
844
861
|
end
|
862
|
+
def self.convert_account_attachment_history_to_porcelain(plumbing)
|
863
|
+
if plumbing == nil
|
864
|
+
return nil
|
865
|
+
end
|
866
|
+
porcelain = AccountAttachmentHistory.new()
|
867
|
+
porcelain.account_attachment = convert_account_attachment_to_porcelain(plumbing.account_attachment)
|
868
|
+
porcelain.activity_id = (plumbing.activity_id)
|
869
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
870
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
871
|
+
porcelain
|
872
|
+
end
|
873
|
+
|
874
|
+
def self.convert_account_attachment_history_to_plumbing(porcelain)
|
875
|
+
if porcelain == nil
|
876
|
+
return nil
|
877
|
+
end
|
878
|
+
plumbing = V1::AccountAttachmentHistory.new()
|
879
|
+
plumbing.account_attachment = convert_account_attachment_to_plumbing(porcelain.account_attachment)
|
880
|
+
plumbing.activity_id = (porcelain.activity_id)
|
881
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
882
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
883
|
+
plumbing
|
884
|
+
end
|
885
|
+
def self.convert_repeated_account_attachment_history_to_plumbing(porcelains)
|
886
|
+
items = Array.new
|
887
|
+
porcelains.each do |porcelain|
|
888
|
+
plumbing = convert_account_attachment_history_to_plumbing(porcelain)
|
889
|
+
items.append(plumbing)
|
890
|
+
end
|
891
|
+
items
|
892
|
+
end
|
893
|
+
|
894
|
+
def self.convert_repeated_account_attachment_history_to_porcelain(plumbings)
|
895
|
+
items = Array.new
|
896
|
+
plumbings.each do |plumbing|
|
897
|
+
porcelain = convert_account_attachment_history_to_porcelain(plumbing)
|
898
|
+
items.append(porcelain)
|
899
|
+
end
|
900
|
+
items
|
901
|
+
end
|
845
902
|
def self.convert_account_create_response_to_porcelain(plumbing)
|
846
903
|
if plumbing == nil
|
847
904
|
return nil
|
@@ -1110,6 +1167,172 @@ module SDM
|
|
1110
1167
|
end
|
1111
1168
|
items
|
1112
1169
|
end
|
1170
|
+
def self.convert_account_grant_history_to_porcelain(plumbing)
|
1171
|
+
if plumbing == nil
|
1172
|
+
return nil
|
1173
|
+
end
|
1174
|
+
porcelain = AccountGrantHistory.new()
|
1175
|
+
porcelain.account_grant = convert_account_grant_to_porcelain(plumbing.account_grant)
|
1176
|
+
porcelain.activity_id = (plumbing.activity_id)
|
1177
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
1178
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
1179
|
+
porcelain
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
def self.convert_account_grant_history_to_plumbing(porcelain)
|
1183
|
+
if porcelain == nil
|
1184
|
+
return nil
|
1185
|
+
end
|
1186
|
+
plumbing = V1::AccountGrantHistory.new()
|
1187
|
+
plumbing.account_grant = convert_account_grant_to_plumbing(porcelain.account_grant)
|
1188
|
+
plumbing.activity_id = (porcelain.activity_id)
|
1189
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
1190
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
1191
|
+
plumbing
|
1192
|
+
end
|
1193
|
+
def self.convert_repeated_account_grant_history_to_plumbing(porcelains)
|
1194
|
+
items = Array.new
|
1195
|
+
porcelains.each do |porcelain|
|
1196
|
+
plumbing = convert_account_grant_history_to_plumbing(porcelain)
|
1197
|
+
items.append(plumbing)
|
1198
|
+
end
|
1199
|
+
items
|
1200
|
+
end
|
1201
|
+
|
1202
|
+
def self.convert_repeated_account_grant_history_to_porcelain(plumbings)
|
1203
|
+
items = Array.new
|
1204
|
+
plumbings.each do |plumbing|
|
1205
|
+
porcelain = convert_account_grant_history_to_porcelain(plumbing)
|
1206
|
+
items.append(porcelain)
|
1207
|
+
end
|
1208
|
+
items
|
1209
|
+
end
|
1210
|
+
def self.convert_account_history_to_porcelain(plumbing)
|
1211
|
+
if plumbing == nil
|
1212
|
+
return nil
|
1213
|
+
end
|
1214
|
+
porcelain = AccountHistory.new()
|
1215
|
+
porcelain.account = convert_account_to_porcelain(plumbing.account)
|
1216
|
+
porcelain.activity_id = (plumbing.activity_id)
|
1217
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
1218
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
1219
|
+
porcelain
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
def self.convert_account_history_to_plumbing(porcelain)
|
1223
|
+
if porcelain == nil
|
1224
|
+
return nil
|
1225
|
+
end
|
1226
|
+
plumbing = V1::AccountHistory.new()
|
1227
|
+
plumbing.account = convert_account_to_plumbing(porcelain.account)
|
1228
|
+
plumbing.activity_id = (porcelain.activity_id)
|
1229
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
1230
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
1231
|
+
plumbing
|
1232
|
+
end
|
1233
|
+
def self.convert_repeated_account_history_to_plumbing(porcelains)
|
1234
|
+
items = Array.new
|
1235
|
+
porcelains.each do |porcelain|
|
1236
|
+
plumbing = convert_account_history_to_plumbing(porcelain)
|
1237
|
+
items.append(plumbing)
|
1238
|
+
end
|
1239
|
+
items
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
def self.convert_repeated_account_history_to_porcelain(plumbings)
|
1243
|
+
items = Array.new
|
1244
|
+
plumbings.each do |plumbing|
|
1245
|
+
porcelain = convert_account_history_to_porcelain(plumbing)
|
1246
|
+
items.append(porcelain)
|
1247
|
+
end
|
1248
|
+
items
|
1249
|
+
end
|
1250
|
+
def self.convert_account_permission_to_porcelain(plumbing)
|
1251
|
+
if plumbing == nil
|
1252
|
+
return nil
|
1253
|
+
end
|
1254
|
+
porcelain = AccountPermission.new()
|
1255
|
+
porcelain.account_id = (plumbing.account_id)
|
1256
|
+
porcelain.granted_at = convert_timestamp_to_porcelain(plumbing.granted_at)
|
1257
|
+
porcelain.permission = (plumbing.permission)
|
1258
|
+
porcelain.scope = (plumbing.scope)
|
1259
|
+
porcelain.scoped_id = (plumbing.scoped_id)
|
1260
|
+
porcelain
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
def self.convert_account_permission_to_plumbing(porcelain)
|
1264
|
+
if porcelain == nil
|
1265
|
+
return nil
|
1266
|
+
end
|
1267
|
+
plumbing = V1::AccountPermission.new()
|
1268
|
+
plumbing.account_id = (porcelain.account_id)
|
1269
|
+
plumbing.granted_at = convert_timestamp_to_plumbing(porcelain.granted_at)
|
1270
|
+
plumbing.permission = (porcelain.permission)
|
1271
|
+
plumbing.scope = (porcelain.scope)
|
1272
|
+
plumbing.scoped_id = (porcelain.scoped_id)
|
1273
|
+
plumbing
|
1274
|
+
end
|
1275
|
+
def self.convert_repeated_account_permission_to_plumbing(porcelains)
|
1276
|
+
items = Array.new
|
1277
|
+
porcelains.each do |porcelain|
|
1278
|
+
plumbing = convert_account_permission_to_plumbing(porcelain)
|
1279
|
+
items.append(plumbing)
|
1280
|
+
end
|
1281
|
+
items
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
def self.convert_repeated_account_permission_to_porcelain(plumbings)
|
1285
|
+
items = Array.new
|
1286
|
+
plumbings.each do |plumbing|
|
1287
|
+
porcelain = convert_account_permission_to_porcelain(plumbing)
|
1288
|
+
items.append(porcelain)
|
1289
|
+
end
|
1290
|
+
items
|
1291
|
+
end
|
1292
|
+
def self.convert_account_resource_to_porcelain(plumbing)
|
1293
|
+
if plumbing == nil
|
1294
|
+
return nil
|
1295
|
+
end
|
1296
|
+
porcelain = AccountResource.new()
|
1297
|
+
porcelain.account_grant_id = (plumbing.account_grant_id)
|
1298
|
+
porcelain.account_id = (plumbing.account_id)
|
1299
|
+
porcelain.expires_at = convert_timestamp_to_porcelain(plumbing.expires_at)
|
1300
|
+
porcelain.granted_at = convert_timestamp_to_porcelain(plumbing.granted_at)
|
1301
|
+
porcelain.resource_id = (plumbing.resource_id)
|
1302
|
+
porcelain.role_id = (plumbing.role_id)
|
1303
|
+
porcelain
|
1304
|
+
end
|
1305
|
+
|
1306
|
+
def self.convert_account_resource_to_plumbing(porcelain)
|
1307
|
+
if porcelain == nil
|
1308
|
+
return nil
|
1309
|
+
end
|
1310
|
+
plumbing = V1::AccountResource.new()
|
1311
|
+
plumbing.account_grant_id = (porcelain.account_grant_id)
|
1312
|
+
plumbing.account_id = (porcelain.account_id)
|
1313
|
+
plumbing.expires_at = convert_timestamp_to_plumbing(porcelain.expires_at)
|
1314
|
+
plumbing.granted_at = convert_timestamp_to_plumbing(porcelain.granted_at)
|
1315
|
+
plumbing.resource_id = (porcelain.resource_id)
|
1316
|
+
plumbing.role_id = (porcelain.role_id)
|
1317
|
+
plumbing
|
1318
|
+
end
|
1319
|
+
def self.convert_repeated_account_resource_to_plumbing(porcelains)
|
1320
|
+
items = Array.new
|
1321
|
+
porcelains.each do |porcelain|
|
1322
|
+
plumbing = convert_account_resource_to_plumbing(porcelain)
|
1323
|
+
items.append(plumbing)
|
1324
|
+
end
|
1325
|
+
items
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
def self.convert_repeated_account_resource_to_porcelain(plumbings)
|
1329
|
+
items = Array.new
|
1330
|
+
plumbings.each do |plumbing|
|
1331
|
+
porcelain = convert_account_resource_to_porcelain(plumbing)
|
1332
|
+
items.append(porcelain)
|
1333
|
+
end
|
1334
|
+
items
|
1335
|
+
end
|
1113
1336
|
def self.convert_account_update_response_to_porcelain(plumbing)
|
1114
1337
|
if plumbing == nil
|
1115
1338
|
return nil
|
@@ -1148,6 +1371,174 @@ module SDM
|
|
1148
1371
|
end
|
1149
1372
|
items
|
1150
1373
|
end
|
1374
|
+
def self.convert_activity_to_porcelain(plumbing)
|
1375
|
+
if plumbing == nil
|
1376
|
+
return nil
|
1377
|
+
end
|
1378
|
+
porcelain = Activity.new()
|
1379
|
+
porcelain.actor = convert_activity_actor_to_porcelain(plumbing.actor)
|
1380
|
+
porcelain.completed_at = convert_timestamp_to_porcelain(plumbing.completed_at)
|
1381
|
+
porcelain.description = (plumbing.description)
|
1382
|
+
porcelain.entities = convert_repeated_activity_entity_to_porcelain(plumbing.entities)
|
1383
|
+
porcelain.id = (plumbing.id)
|
1384
|
+
porcelain.ip_address = (plumbing.ip_address)
|
1385
|
+
porcelain.verb = (plumbing.verb)
|
1386
|
+
porcelain
|
1387
|
+
end
|
1388
|
+
|
1389
|
+
def self.convert_activity_to_plumbing(porcelain)
|
1390
|
+
if porcelain == nil
|
1391
|
+
return nil
|
1392
|
+
end
|
1393
|
+
plumbing = V1::Activity.new()
|
1394
|
+
plumbing.actor = convert_activity_actor_to_plumbing(porcelain.actor)
|
1395
|
+
plumbing.completed_at = convert_timestamp_to_plumbing(porcelain.completed_at)
|
1396
|
+
plumbing.description = (porcelain.description)
|
1397
|
+
plumbing.entities += convert_repeated_activity_entity_to_plumbing(porcelain.entities)
|
1398
|
+
plumbing.id = (porcelain.id)
|
1399
|
+
plumbing.ip_address = (porcelain.ip_address)
|
1400
|
+
plumbing.verb = (porcelain.verb)
|
1401
|
+
plumbing
|
1402
|
+
end
|
1403
|
+
def self.convert_repeated_activity_to_plumbing(porcelains)
|
1404
|
+
items = Array.new
|
1405
|
+
porcelains.each do |porcelain|
|
1406
|
+
plumbing = convert_activity_to_plumbing(porcelain)
|
1407
|
+
items.append(plumbing)
|
1408
|
+
end
|
1409
|
+
items
|
1410
|
+
end
|
1411
|
+
|
1412
|
+
def self.convert_repeated_activity_to_porcelain(plumbings)
|
1413
|
+
items = Array.new
|
1414
|
+
plumbings.each do |plumbing|
|
1415
|
+
porcelain = convert_activity_to_porcelain(plumbing)
|
1416
|
+
items.append(porcelain)
|
1417
|
+
end
|
1418
|
+
items
|
1419
|
+
end
|
1420
|
+
def self.convert_activity_actor_to_porcelain(plumbing)
|
1421
|
+
if plumbing == nil
|
1422
|
+
return nil
|
1423
|
+
end
|
1424
|
+
porcelain = ActivityActor.new()
|
1425
|
+
porcelain.activity_external_id = (plumbing.activity_external_id)
|
1426
|
+
porcelain.email = (plumbing.email)
|
1427
|
+
porcelain.first_name = (plumbing.first_name)
|
1428
|
+
porcelain.id = (plumbing.id)
|
1429
|
+
porcelain.last_name = (plumbing.last_name)
|
1430
|
+
porcelain
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
def self.convert_activity_actor_to_plumbing(porcelain)
|
1434
|
+
if porcelain == nil
|
1435
|
+
return nil
|
1436
|
+
end
|
1437
|
+
plumbing = V1::ActivityActor.new()
|
1438
|
+
plumbing.activity_external_id = (porcelain.activity_external_id)
|
1439
|
+
plumbing.email = (porcelain.email)
|
1440
|
+
plumbing.first_name = (porcelain.first_name)
|
1441
|
+
plumbing.id = (porcelain.id)
|
1442
|
+
plumbing.last_name = (porcelain.last_name)
|
1443
|
+
plumbing
|
1444
|
+
end
|
1445
|
+
def self.convert_repeated_activity_actor_to_plumbing(porcelains)
|
1446
|
+
items = Array.new
|
1447
|
+
porcelains.each do |porcelain|
|
1448
|
+
plumbing = convert_activity_actor_to_plumbing(porcelain)
|
1449
|
+
items.append(plumbing)
|
1450
|
+
end
|
1451
|
+
items
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
def self.convert_repeated_activity_actor_to_porcelain(plumbings)
|
1455
|
+
items = Array.new
|
1456
|
+
plumbings.each do |plumbing|
|
1457
|
+
porcelain = convert_activity_actor_to_porcelain(plumbing)
|
1458
|
+
items.append(porcelain)
|
1459
|
+
end
|
1460
|
+
items
|
1461
|
+
end
|
1462
|
+
def self.convert_activity_entity_to_porcelain(plumbing)
|
1463
|
+
if plumbing == nil
|
1464
|
+
return nil
|
1465
|
+
end
|
1466
|
+
porcelain = ActivityEntity.new()
|
1467
|
+
porcelain.email = (plumbing.email)
|
1468
|
+
porcelain.external_id = (plumbing.external_id)
|
1469
|
+
porcelain.id = (plumbing.id)
|
1470
|
+
porcelain.name = (plumbing.name)
|
1471
|
+
porcelain.type = (plumbing.type)
|
1472
|
+
porcelain
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
def self.convert_activity_entity_to_plumbing(porcelain)
|
1476
|
+
if porcelain == nil
|
1477
|
+
return nil
|
1478
|
+
end
|
1479
|
+
plumbing = V1::ActivityEntity.new()
|
1480
|
+
plumbing.email = (porcelain.email)
|
1481
|
+
plumbing.external_id = (porcelain.external_id)
|
1482
|
+
plumbing.id = (porcelain.id)
|
1483
|
+
plumbing.name = (porcelain.name)
|
1484
|
+
plumbing.type = (porcelain.type)
|
1485
|
+
plumbing
|
1486
|
+
end
|
1487
|
+
def self.convert_repeated_activity_entity_to_plumbing(porcelains)
|
1488
|
+
items = Array.new
|
1489
|
+
porcelains.each do |porcelain|
|
1490
|
+
plumbing = convert_activity_entity_to_plumbing(porcelain)
|
1491
|
+
items.append(plumbing)
|
1492
|
+
end
|
1493
|
+
items
|
1494
|
+
end
|
1495
|
+
|
1496
|
+
def self.convert_repeated_activity_entity_to_porcelain(plumbings)
|
1497
|
+
items = Array.new
|
1498
|
+
plumbings.each do |plumbing|
|
1499
|
+
porcelain = convert_activity_entity_to_porcelain(plumbing)
|
1500
|
+
items.append(porcelain)
|
1501
|
+
end
|
1502
|
+
items
|
1503
|
+
end
|
1504
|
+
def self.convert_activity_get_response_to_porcelain(plumbing)
|
1505
|
+
if plumbing == nil
|
1506
|
+
return nil
|
1507
|
+
end
|
1508
|
+
porcelain = ActivityGetResponse.new()
|
1509
|
+
porcelain.activity = convert_activity_to_porcelain(plumbing.activity)
|
1510
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
1511
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
1512
|
+
porcelain
|
1513
|
+
end
|
1514
|
+
|
1515
|
+
def self.convert_activity_get_response_to_plumbing(porcelain)
|
1516
|
+
if porcelain == nil
|
1517
|
+
return nil
|
1518
|
+
end
|
1519
|
+
plumbing = V1::ActivityGetResponse.new()
|
1520
|
+
plumbing.activity = convert_activity_to_plumbing(porcelain.activity)
|
1521
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
|
1522
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
1523
|
+
plumbing
|
1524
|
+
end
|
1525
|
+
def self.convert_repeated_activity_get_response_to_plumbing(porcelains)
|
1526
|
+
items = Array.new
|
1527
|
+
porcelains.each do |porcelain|
|
1528
|
+
plumbing = convert_activity_get_response_to_plumbing(porcelain)
|
1529
|
+
items.append(plumbing)
|
1530
|
+
end
|
1531
|
+
items
|
1532
|
+
end
|
1533
|
+
|
1534
|
+
def self.convert_repeated_activity_get_response_to_porcelain(plumbings)
|
1535
|
+
items = Array.new
|
1536
|
+
plumbings.each do |plumbing|
|
1537
|
+
porcelain = convert_activity_get_response_to_porcelain(plumbing)
|
1538
|
+
items.append(porcelain)
|
1539
|
+
end
|
1540
|
+
items
|
1541
|
+
end
|
1151
1542
|
def self.convert_amazon_eks_to_porcelain(plumbing)
|
1152
1543
|
if plumbing == nil
|
1153
1544
|
return nil
|
@@ -4725,14 +5116,54 @@ module SDM
|
|
4725
5116
|
end
|
4726
5117
|
items
|
4727
5118
|
end
|
4728
|
-
def self.
|
5119
|
+
def self.convert_node_history_to_porcelain(plumbing)
|
4729
5120
|
if plumbing == nil
|
4730
5121
|
return nil
|
4731
5122
|
end
|
4732
|
-
porcelain =
|
4733
|
-
porcelain.
|
5123
|
+
porcelain = NodeHistory.new()
|
5124
|
+
porcelain.activity_id = (plumbing.activity_id)
|
5125
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
4734
5126
|
porcelain.node = convert_node_to_porcelain(plumbing.node)
|
4735
|
-
porcelain.
|
5127
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
5128
|
+
porcelain
|
5129
|
+
end
|
5130
|
+
|
5131
|
+
def self.convert_node_history_to_plumbing(porcelain)
|
5132
|
+
if porcelain == nil
|
5133
|
+
return nil
|
5134
|
+
end
|
5135
|
+
plumbing = V1::NodeHistory.new()
|
5136
|
+
plumbing.activity_id = (porcelain.activity_id)
|
5137
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
5138
|
+
plumbing.node = convert_node_to_plumbing(porcelain.node)
|
5139
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
5140
|
+
plumbing
|
5141
|
+
end
|
5142
|
+
def self.convert_repeated_node_history_to_plumbing(porcelains)
|
5143
|
+
items = Array.new
|
5144
|
+
porcelains.each do |porcelain|
|
5145
|
+
plumbing = convert_node_history_to_plumbing(porcelain)
|
5146
|
+
items.append(plumbing)
|
5147
|
+
end
|
5148
|
+
items
|
5149
|
+
end
|
5150
|
+
|
5151
|
+
def self.convert_repeated_node_history_to_porcelain(plumbings)
|
5152
|
+
items = Array.new
|
5153
|
+
plumbings.each do |plumbing|
|
5154
|
+
porcelain = convert_node_history_to_porcelain(plumbing)
|
5155
|
+
items.append(porcelain)
|
5156
|
+
end
|
5157
|
+
items
|
5158
|
+
end
|
5159
|
+
def self.convert_node_update_response_to_porcelain(plumbing)
|
5160
|
+
if plumbing == nil
|
5161
|
+
return nil
|
5162
|
+
end
|
5163
|
+
porcelain = NodeUpdateResponse.new()
|
5164
|
+
porcelain.meta = convert_update_response_metadata_to_porcelain(plumbing.meta)
|
5165
|
+
porcelain.node = convert_node_to_porcelain(plumbing.node)
|
5166
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
4736
5167
|
porcelain
|
4737
5168
|
end
|
4738
5169
|
|
@@ -4823,6 +5254,124 @@ module SDM
|
|
4823
5254
|
end
|
4824
5255
|
items
|
4825
5256
|
end
|
5257
|
+
def self.convert_organization_to_porcelain(plumbing)
|
5258
|
+
if plumbing == nil
|
5259
|
+
return nil
|
5260
|
+
end
|
5261
|
+
porcelain = Organization.new()
|
5262
|
+
porcelain.auth_provider = (plumbing.auth_provider)
|
5263
|
+
porcelain.created_at = convert_timestamp_to_porcelain(plumbing.created_at)
|
5264
|
+
porcelain.idle_timeout = convert_duration_to_porcelain(plumbing.idle_timeout)
|
5265
|
+
porcelain.idle_timeout_enabled = (plumbing.idle_timeout_enabled)
|
5266
|
+
porcelain.kind = (plumbing.kind)
|
5267
|
+
porcelain.log_local_encoder = (plumbing.log_local_encoder)
|
5268
|
+
porcelain.log_local_format = (plumbing.log_local_format)
|
5269
|
+
porcelain.log_local_storage = (plumbing.log_local_storage)
|
5270
|
+
porcelain.log_remote_encoder = (plumbing.log_remote_encoder)
|
5271
|
+
porcelain.log_socket_path = (plumbing.log_socket_path)
|
5272
|
+
porcelain.log_tcp_address = (plumbing.log_tcp_address)
|
5273
|
+
porcelain.mfa_enabled = (plumbing.mfa_enabled)
|
5274
|
+
porcelain.mfa_provider = (plumbing.mfa_provider)
|
5275
|
+
porcelain.name = (plumbing.name)
|
5276
|
+
porcelain.require_secret_store = (plumbing.require_secret_store)
|
5277
|
+
porcelain.saml_metadata_url = (plumbing.saml_metadata_url)
|
5278
|
+
porcelain.scim_provider = (plumbing.scim_provider)
|
5279
|
+
porcelain.sensitive_label = (plumbing.sensitive_label)
|
5280
|
+
porcelain.session_timeout = convert_duration_to_porcelain(plumbing.session_timeout)
|
5281
|
+
porcelain.session_timeout_enabled = (plumbing.session_timeout_enabled)
|
5282
|
+
porcelain.ssh_certificate_authority_public_key = (plumbing.ssh_certificate_authority_public_key)
|
5283
|
+
porcelain.ssh_certificate_authority_updated_at = convert_timestamp_to_porcelain(plumbing.ssh_certificate_authority_updated_at)
|
5284
|
+
porcelain.updated_at = convert_timestamp_to_porcelain(plumbing.updated_at)
|
5285
|
+
porcelain.websites_subdomain = (plumbing.websites_subdomain)
|
5286
|
+
porcelain
|
5287
|
+
end
|
5288
|
+
|
5289
|
+
def self.convert_organization_to_plumbing(porcelain)
|
5290
|
+
if porcelain == nil
|
5291
|
+
return nil
|
5292
|
+
end
|
5293
|
+
plumbing = V1::Organization.new()
|
5294
|
+
plumbing.auth_provider = (porcelain.auth_provider)
|
5295
|
+
plumbing.created_at = convert_timestamp_to_plumbing(porcelain.created_at)
|
5296
|
+
plumbing.idle_timeout = convert_duration_to_plumbing(porcelain.idle_timeout)
|
5297
|
+
plumbing.idle_timeout_enabled = (porcelain.idle_timeout_enabled)
|
5298
|
+
plumbing.kind = (porcelain.kind)
|
5299
|
+
plumbing.log_local_encoder = (porcelain.log_local_encoder)
|
5300
|
+
plumbing.log_local_format = (porcelain.log_local_format)
|
5301
|
+
plumbing.log_local_storage = (porcelain.log_local_storage)
|
5302
|
+
plumbing.log_remote_encoder = (porcelain.log_remote_encoder)
|
5303
|
+
plumbing.log_socket_path = (porcelain.log_socket_path)
|
5304
|
+
plumbing.log_tcp_address = (porcelain.log_tcp_address)
|
5305
|
+
plumbing.mfa_enabled = (porcelain.mfa_enabled)
|
5306
|
+
plumbing.mfa_provider = (porcelain.mfa_provider)
|
5307
|
+
plumbing.name = (porcelain.name)
|
5308
|
+
plumbing.require_secret_store = (porcelain.require_secret_store)
|
5309
|
+
plumbing.saml_metadata_url = (porcelain.saml_metadata_url)
|
5310
|
+
plumbing.scim_provider = (porcelain.scim_provider)
|
5311
|
+
plumbing.sensitive_label = (porcelain.sensitive_label)
|
5312
|
+
plumbing.session_timeout = convert_duration_to_plumbing(porcelain.session_timeout)
|
5313
|
+
plumbing.session_timeout_enabled = (porcelain.session_timeout_enabled)
|
5314
|
+
plumbing.ssh_certificate_authority_public_key = (porcelain.ssh_certificate_authority_public_key)
|
5315
|
+
plumbing.ssh_certificate_authority_updated_at = convert_timestamp_to_plumbing(porcelain.ssh_certificate_authority_updated_at)
|
5316
|
+
plumbing.updated_at = convert_timestamp_to_plumbing(porcelain.updated_at)
|
5317
|
+
plumbing.websites_subdomain = (porcelain.websites_subdomain)
|
5318
|
+
plumbing
|
5319
|
+
end
|
5320
|
+
def self.convert_repeated_organization_to_plumbing(porcelains)
|
5321
|
+
items = Array.new
|
5322
|
+
porcelains.each do |porcelain|
|
5323
|
+
plumbing = convert_organization_to_plumbing(porcelain)
|
5324
|
+
items.append(plumbing)
|
5325
|
+
end
|
5326
|
+
items
|
5327
|
+
end
|
5328
|
+
|
5329
|
+
def self.convert_repeated_organization_to_porcelain(plumbings)
|
5330
|
+
items = Array.new
|
5331
|
+
plumbings.each do |plumbing|
|
5332
|
+
porcelain = convert_organization_to_porcelain(plumbing)
|
5333
|
+
items.append(porcelain)
|
5334
|
+
end
|
5335
|
+
items
|
5336
|
+
end
|
5337
|
+
def self.convert_organization_history_record_to_porcelain(plumbing)
|
5338
|
+
if plumbing == nil
|
5339
|
+
return nil
|
5340
|
+
end
|
5341
|
+
porcelain = OrganizationHistoryRecord.new()
|
5342
|
+
porcelain.activity_id = (plumbing.activity_id)
|
5343
|
+
porcelain.organization = convert_organization_to_porcelain(plumbing.organization)
|
5344
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
5345
|
+
porcelain
|
5346
|
+
end
|
5347
|
+
|
5348
|
+
def self.convert_organization_history_record_to_plumbing(porcelain)
|
5349
|
+
if porcelain == nil
|
5350
|
+
return nil
|
5351
|
+
end
|
5352
|
+
plumbing = V1::OrganizationHistoryRecord.new()
|
5353
|
+
plumbing.activity_id = (porcelain.activity_id)
|
5354
|
+
plumbing.organization = convert_organization_to_plumbing(porcelain.organization)
|
5355
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
5356
|
+
plumbing
|
5357
|
+
end
|
5358
|
+
def self.convert_repeated_organization_history_record_to_plumbing(porcelains)
|
5359
|
+
items = Array.new
|
5360
|
+
porcelains.each do |porcelain|
|
5361
|
+
plumbing = convert_organization_history_record_to_plumbing(porcelain)
|
5362
|
+
items.append(plumbing)
|
5363
|
+
end
|
5364
|
+
items
|
5365
|
+
end
|
5366
|
+
|
5367
|
+
def self.convert_repeated_organization_history_record_to_porcelain(plumbings)
|
5368
|
+
items = Array.new
|
5369
|
+
plumbings.each do |plumbing|
|
5370
|
+
porcelain = convert_organization_history_record_to_porcelain(plumbing)
|
5371
|
+
items.append(porcelain)
|
5372
|
+
end
|
5373
|
+
items
|
5374
|
+
end
|
4826
5375
|
def self.convert_postgres_to_porcelain(plumbing)
|
4827
5376
|
if plumbing == nil
|
4828
5377
|
return nil
|
@@ -4943,6 +5492,80 @@ module SDM
|
|
4943
5492
|
end
|
4944
5493
|
items
|
4945
5494
|
end
|
5495
|
+
def self.convert_query_to_porcelain(plumbing)
|
5496
|
+
if plumbing == nil
|
5497
|
+
return nil
|
5498
|
+
end
|
5499
|
+
porcelain = Query.new()
|
5500
|
+
porcelain.account_email = (plumbing.account_email)
|
5501
|
+
porcelain.account_first_name = (plumbing.account_first_name)
|
5502
|
+
porcelain.account_id = (plumbing.account_id)
|
5503
|
+
porcelain.account_last_name = (plumbing.account_last_name)
|
5504
|
+
porcelain.account_tags = convert_tags_to_porcelain(plumbing.account_tags)
|
5505
|
+
porcelain.duration = convert_duration_to_porcelain(plumbing.duration)
|
5506
|
+
porcelain.egress_node_id = (plumbing.egress_node_id)
|
5507
|
+
porcelain.encrypted = (plumbing.encrypted)
|
5508
|
+
porcelain.id = (plumbing.id)
|
5509
|
+
porcelain.query_body = (plumbing.query_body)
|
5510
|
+
porcelain.query_category = (plumbing.query_category)
|
5511
|
+
porcelain.query_hash = (plumbing.query_hash)
|
5512
|
+
porcelain.query_key = (plumbing.query_key)
|
5513
|
+
porcelain.record_count = (plumbing.record_count)
|
5514
|
+
porcelain.remote_identity_username = (plumbing.remote_identity_username)
|
5515
|
+
porcelain.replayable = (plumbing.replayable)
|
5516
|
+
porcelain.resource_id = (plumbing.resource_id)
|
5517
|
+
porcelain.resource_name = (plumbing.resource_name)
|
5518
|
+
porcelain.resource_tags = convert_tags_to_porcelain(plumbing.resource_tags)
|
5519
|
+
porcelain.resource_type = (plumbing.resource_type)
|
5520
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
5521
|
+
porcelain
|
5522
|
+
end
|
5523
|
+
|
5524
|
+
def self.convert_query_to_plumbing(porcelain)
|
5525
|
+
if porcelain == nil
|
5526
|
+
return nil
|
5527
|
+
end
|
5528
|
+
plumbing = V1::Query.new()
|
5529
|
+
plumbing.account_email = (porcelain.account_email)
|
5530
|
+
plumbing.account_first_name = (porcelain.account_first_name)
|
5531
|
+
plumbing.account_id = (porcelain.account_id)
|
5532
|
+
plumbing.account_last_name = (porcelain.account_last_name)
|
5533
|
+
plumbing.account_tags = convert_tags_to_plumbing(porcelain.account_tags)
|
5534
|
+
plumbing.duration = convert_duration_to_plumbing(porcelain.duration)
|
5535
|
+
plumbing.egress_node_id = (porcelain.egress_node_id)
|
5536
|
+
plumbing.encrypted = (porcelain.encrypted)
|
5537
|
+
plumbing.id = (porcelain.id)
|
5538
|
+
plumbing.query_body = (porcelain.query_body)
|
5539
|
+
plumbing.query_category = (porcelain.query_category)
|
5540
|
+
plumbing.query_hash = (porcelain.query_hash)
|
5541
|
+
plumbing.query_key = (porcelain.query_key)
|
5542
|
+
plumbing.record_count = (porcelain.record_count)
|
5543
|
+
plumbing.remote_identity_username = (porcelain.remote_identity_username)
|
5544
|
+
plumbing.replayable = (porcelain.replayable)
|
5545
|
+
plumbing.resource_id = (porcelain.resource_id)
|
5546
|
+
plumbing.resource_name = (porcelain.resource_name)
|
5547
|
+
plumbing.resource_tags = convert_tags_to_plumbing(porcelain.resource_tags)
|
5548
|
+
plumbing.resource_type = (porcelain.resource_type)
|
5549
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
5550
|
+
plumbing
|
5551
|
+
end
|
5552
|
+
def self.convert_repeated_query_to_plumbing(porcelains)
|
5553
|
+
items = Array.new
|
5554
|
+
porcelains.each do |porcelain|
|
5555
|
+
plumbing = convert_query_to_plumbing(porcelain)
|
5556
|
+
items.append(plumbing)
|
5557
|
+
end
|
5558
|
+
items
|
5559
|
+
end
|
5560
|
+
|
5561
|
+
def self.convert_repeated_query_to_porcelain(plumbings)
|
5562
|
+
items = Array.new
|
5563
|
+
plumbings.each do |plumbing|
|
5564
|
+
porcelain = convert_query_to_porcelain(plumbing)
|
5565
|
+
items.append(porcelain)
|
5566
|
+
end
|
5567
|
+
items
|
5568
|
+
end
|
4946
5569
|
def self.convert_rdp_to_porcelain(plumbing)
|
4947
5570
|
if plumbing == nil
|
4948
5571
|
return nil
|
@@ -5543,6 +6166,86 @@ module SDM
|
|
5543
6166
|
end
|
5544
6167
|
items
|
5545
6168
|
end
|
6169
|
+
def self.convert_remote_identity_group_history_to_porcelain(plumbing)
|
6170
|
+
if plumbing == nil
|
6171
|
+
return nil
|
6172
|
+
end
|
6173
|
+
porcelain = RemoteIdentityGroupHistory.new()
|
6174
|
+
porcelain.activity_id = (plumbing.activity_id)
|
6175
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
6176
|
+
porcelain.remote_identity_group = convert_remote_identity_group_to_porcelain(plumbing.remote_identity_group)
|
6177
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
6178
|
+
porcelain
|
6179
|
+
end
|
6180
|
+
|
6181
|
+
def self.convert_remote_identity_group_history_to_plumbing(porcelain)
|
6182
|
+
if porcelain == nil
|
6183
|
+
return nil
|
6184
|
+
end
|
6185
|
+
plumbing = V1::RemoteIdentityGroupHistory.new()
|
6186
|
+
plumbing.activity_id = (porcelain.activity_id)
|
6187
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
6188
|
+
plumbing.remote_identity_group = convert_remote_identity_group_to_plumbing(porcelain.remote_identity_group)
|
6189
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
6190
|
+
plumbing
|
6191
|
+
end
|
6192
|
+
def self.convert_repeated_remote_identity_group_history_to_plumbing(porcelains)
|
6193
|
+
items = Array.new
|
6194
|
+
porcelains.each do |porcelain|
|
6195
|
+
plumbing = convert_remote_identity_group_history_to_plumbing(porcelain)
|
6196
|
+
items.append(plumbing)
|
6197
|
+
end
|
6198
|
+
items
|
6199
|
+
end
|
6200
|
+
|
6201
|
+
def self.convert_repeated_remote_identity_group_history_to_porcelain(plumbings)
|
6202
|
+
items = Array.new
|
6203
|
+
plumbings.each do |plumbing|
|
6204
|
+
porcelain = convert_remote_identity_group_history_to_porcelain(plumbing)
|
6205
|
+
items.append(porcelain)
|
6206
|
+
end
|
6207
|
+
items
|
6208
|
+
end
|
6209
|
+
def self.convert_remote_identity_history_to_porcelain(plumbing)
|
6210
|
+
if plumbing == nil
|
6211
|
+
return nil
|
6212
|
+
end
|
6213
|
+
porcelain = RemoteIdentityHistory.new()
|
6214
|
+
porcelain.activity_id = (plumbing.activity_id)
|
6215
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
6216
|
+
porcelain.remote_identity = convert_remote_identity_to_porcelain(plumbing.remote_identity)
|
6217
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
6218
|
+
porcelain
|
6219
|
+
end
|
6220
|
+
|
6221
|
+
def self.convert_remote_identity_history_to_plumbing(porcelain)
|
6222
|
+
if porcelain == nil
|
6223
|
+
return nil
|
6224
|
+
end
|
6225
|
+
plumbing = V1::RemoteIdentityHistory.new()
|
6226
|
+
plumbing.activity_id = (porcelain.activity_id)
|
6227
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
6228
|
+
plumbing.remote_identity = convert_remote_identity_to_plumbing(porcelain.remote_identity)
|
6229
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
6230
|
+
plumbing
|
6231
|
+
end
|
6232
|
+
def self.convert_repeated_remote_identity_history_to_plumbing(porcelains)
|
6233
|
+
items = Array.new
|
6234
|
+
porcelains.each do |porcelain|
|
6235
|
+
plumbing = convert_remote_identity_history_to_plumbing(porcelain)
|
6236
|
+
items.append(plumbing)
|
6237
|
+
end
|
6238
|
+
items
|
6239
|
+
end
|
6240
|
+
|
6241
|
+
def self.convert_repeated_remote_identity_history_to_porcelain(plumbings)
|
6242
|
+
items = Array.new
|
6243
|
+
plumbings.each do |plumbing|
|
6244
|
+
porcelain = convert_remote_identity_history_to_porcelain(plumbing)
|
6245
|
+
items.append(porcelain)
|
6246
|
+
end
|
6247
|
+
items
|
6248
|
+
end
|
5546
6249
|
def self.convert_remote_identity_update_response_to_porcelain(plumbing)
|
5547
6250
|
if plumbing == nil
|
5548
6251
|
return nil
|
@@ -5581,6 +6284,78 @@ module SDM
|
|
5581
6284
|
end
|
5582
6285
|
items
|
5583
6286
|
end
|
6287
|
+
def self.convert_replay_chunk_to_porcelain(plumbing)
|
6288
|
+
if plumbing == nil
|
6289
|
+
return nil
|
6290
|
+
end
|
6291
|
+
porcelain = ReplayChunk.new()
|
6292
|
+
porcelain.data = (plumbing.data)
|
6293
|
+
porcelain.events = convert_repeated_replay_chunk_event_to_porcelain(plumbing.events)
|
6294
|
+
porcelain
|
6295
|
+
end
|
6296
|
+
|
6297
|
+
def self.convert_replay_chunk_to_plumbing(porcelain)
|
6298
|
+
if porcelain == nil
|
6299
|
+
return nil
|
6300
|
+
end
|
6301
|
+
plumbing = V1::ReplayChunk.new()
|
6302
|
+
plumbing.data = (porcelain.data)
|
6303
|
+
plumbing.events += convert_repeated_replay_chunk_event_to_plumbing(porcelain.events)
|
6304
|
+
plumbing
|
6305
|
+
end
|
6306
|
+
def self.convert_repeated_replay_chunk_to_plumbing(porcelains)
|
6307
|
+
items = Array.new
|
6308
|
+
porcelains.each do |porcelain|
|
6309
|
+
plumbing = convert_replay_chunk_to_plumbing(porcelain)
|
6310
|
+
items.append(plumbing)
|
6311
|
+
end
|
6312
|
+
items
|
6313
|
+
end
|
6314
|
+
|
6315
|
+
def self.convert_repeated_replay_chunk_to_porcelain(plumbings)
|
6316
|
+
items = Array.new
|
6317
|
+
plumbings.each do |plumbing|
|
6318
|
+
porcelain = convert_replay_chunk_to_porcelain(plumbing)
|
6319
|
+
items.append(porcelain)
|
6320
|
+
end
|
6321
|
+
items
|
6322
|
+
end
|
6323
|
+
def self.convert_replay_chunk_event_to_porcelain(plumbing)
|
6324
|
+
if plumbing == nil
|
6325
|
+
return nil
|
6326
|
+
end
|
6327
|
+
porcelain = ReplayChunkEvent.new()
|
6328
|
+
porcelain.data = (plumbing.data)
|
6329
|
+
porcelain.duration = convert_duration_to_porcelain(plumbing.duration)
|
6330
|
+
porcelain
|
6331
|
+
end
|
6332
|
+
|
6333
|
+
def self.convert_replay_chunk_event_to_plumbing(porcelain)
|
6334
|
+
if porcelain == nil
|
6335
|
+
return nil
|
6336
|
+
end
|
6337
|
+
plumbing = V1::ReplayChunkEvent.new()
|
6338
|
+
plumbing.data = (porcelain.data)
|
6339
|
+
plumbing.duration = convert_duration_to_plumbing(porcelain.duration)
|
6340
|
+
plumbing
|
6341
|
+
end
|
6342
|
+
def self.convert_repeated_replay_chunk_event_to_plumbing(porcelains)
|
6343
|
+
items = Array.new
|
6344
|
+
porcelains.each do |porcelain|
|
6345
|
+
plumbing = convert_replay_chunk_event_to_plumbing(porcelain)
|
6346
|
+
items.append(plumbing)
|
6347
|
+
end
|
6348
|
+
items
|
6349
|
+
end
|
6350
|
+
|
6351
|
+
def self.convert_repeated_replay_chunk_event_to_porcelain(plumbings)
|
6352
|
+
items = Array.new
|
6353
|
+
plumbings.each do |plumbing|
|
6354
|
+
porcelain = convert_replay_chunk_event_to_porcelain(plumbing)
|
6355
|
+
items.append(porcelain)
|
6356
|
+
end
|
6357
|
+
items
|
6358
|
+
end
|
5584
6359
|
def self.convert_resource_to_plumbing(porcelain)
|
5585
6360
|
if porcelain == nil
|
5586
6361
|
return nil
|
@@ -6180,6 +6955,46 @@ module SDM
|
|
6180
6955
|
end
|
6181
6956
|
items
|
6182
6957
|
end
|
6958
|
+
def self.convert_resource_history_to_porcelain(plumbing)
|
6959
|
+
if plumbing == nil
|
6960
|
+
return nil
|
6961
|
+
end
|
6962
|
+
porcelain = ResourceHistory.new()
|
6963
|
+
porcelain.activity_id = (plumbing.activity_id)
|
6964
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
6965
|
+
porcelain.resource = convert_resource_to_porcelain(plumbing.resource)
|
6966
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
6967
|
+
porcelain
|
6968
|
+
end
|
6969
|
+
|
6970
|
+
def self.convert_resource_history_to_plumbing(porcelain)
|
6971
|
+
if porcelain == nil
|
6972
|
+
return nil
|
6973
|
+
end
|
6974
|
+
plumbing = V1::ResourceHistory.new()
|
6975
|
+
plumbing.activity_id = (porcelain.activity_id)
|
6976
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
6977
|
+
plumbing.resource = convert_resource_to_plumbing(porcelain.resource)
|
6978
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
6979
|
+
plumbing
|
6980
|
+
end
|
6981
|
+
def self.convert_repeated_resource_history_to_plumbing(porcelains)
|
6982
|
+
items = Array.new
|
6983
|
+
porcelains.each do |porcelain|
|
6984
|
+
plumbing = convert_resource_history_to_plumbing(porcelain)
|
6985
|
+
items.append(plumbing)
|
6986
|
+
end
|
6987
|
+
items
|
6988
|
+
end
|
6989
|
+
|
6990
|
+
def self.convert_repeated_resource_history_to_porcelain(plumbings)
|
6991
|
+
items = Array.new
|
6992
|
+
plumbings.each do |plumbing|
|
6993
|
+
porcelain = convert_resource_history_to_porcelain(plumbing)
|
6994
|
+
items.append(porcelain)
|
6995
|
+
end
|
6996
|
+
items
|
6997
|
+
end
|
6183
6998
|
def self.convert_resource_update_response_to_porcelain(plumbing)
|
6184
6999
|
if plumbing == nil
|
6185
7000
|
return nil
|
@@ -6372,6 +7187,124 @@ module SDM
|
|
6372
7187
|
end
|
6373
7188
|
items
|
6374
7189
|
end
|
7190
|
+
def self.convert_role_history_to_porcelain(plumbing)
|
7191
|
+
if plumbing == nil
|
7192
|
+
return nil
|
7193
|
+
end
|
7194
|
+
porcelain = RoleHistory.new()
|
7195
|
+
porcelain.activity_id = (plumbing.activity_id)
|
7196
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
7197
|
+
porcelain.role = convert_role_to_porcelain(plumbing.role)
|
7198
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
7199
|
+
porcelain
|
7200
|
+
end
|
7201
|
+
|
7202
|
+
def self.convert_role_history_to_plumbing(porcelain)
|
7203
|
+
if porcelain == nil
|
7204
|
+
return nil
|
7205
|
+
end
|
7206
|
+
plumbing = V1::RoleHistory.new()
|
7207
|
+
plumbing.activity_id = (porcelain.activity_id)
|
7208
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
7209
|
+
plumbing.role = convert_role_to_plumbing(porcelain.role)
|
7210
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
7211
|
+
plumbing
|
7212
|
+
end
|
7213
|
+
def self.convert_repeated_role_history_to_plumbing(porcelains)
|
7214
|
+
items = Array.new
|
7215
|
+
porcelains.each do |porcelain|
|
7216
|
+
plumbing = convert_role_history_to_plumbing(porcelain)
|
7217
|
+
items.append(plumbing)
|
7218
|
+
end
|
7219
|
+
items
|
7220
|
+
end
|
7221
|
+
|
7222
|
+
def self.convert_repeated_role_history_to_porcelain(plumbings)
|
7223
|
+
items = Array.new
|
7224
|
+
plumbings.each do |plumbing|
|
7225
|
+
porcelain = convert_role_history_to_porcelain(plumbing)
|
7226
|
+
items.append(porcelain)
|
7227
|
+
end
|
7228
|
+
items
|
7229
|
+
end
|
7230
|
+
def self.convert_role_resource_to_porcelain(plumbing)
|
7231
|
+
if plumbing == nil
|
7232
|
+
return nil
|
7233
|
+
end
|
7234
|
+
porcelain = RoleResource.new()
|
7235
|
+
porcelain.granted_at = convert_timestamp_to_porcelain(plumbing.granted_at)
|
7236
|
+
porcelain.resource_id = (plumbing.resource_id)
|
7237
|
+
porcelain.role_id = (plumbing.role_id)
|
7238
|
+
porcelain
|
7239
|
+
end
|
7240
|
+
|
7241
|
+
def self.convert_role_resource_to_plumbing(porcelain)
|
7242
|
+
if porcelain == nil
|
7243
|
+
return nil
|
7244
|
+
end
|
7245
|
+
plumbing = V1::RoleResource.new()
|
7246
|
+
plumbing.granted_at = convert_timestamp_to_plumbing(porcelain.granted_at)
|
7247
|
+
plumbing.resource_id = (porcelain.resource_id)
|
7248
|
+
plumbing.role_id = (porcelain.role_id)
|
7249
|
+
plumbing
|
7250
|
+
end
|
7251
|
+
def self.convert_repeated_role_resource_to_plumbing(porcelains)
|
7252
|
+
items = Array.new
|
7253
|
+
porcelains.each do |porcelain|
|
7254
|
+
plumbing = convert_role_resource_to_plumbing(porcelain)
|
7255
|
+
items.append(plumbing)
|
7256
|
+
end
|
7257
|
+
items
|
7258
|
+
end
|
7259
|
+
|
7260
|
+
def self.convert_repeated_role_resource_to_porcelain(plumbings)
|
7261
|
+
items = Array.new
|
7262
|
+
plumbings.each do |plumbing|
|
7263
|
+
porcelain = convert_role_resource_to_porcelain(plumbing)
|
7264
|
+
items.append(porcelain)
|
7265
|
+
end
|
7266
|
+
items
|
7267
|
+
end
|
7268
|
+
def self.convert_role_resource_history_to_porcelain(plumbing)
|
7269
|
+
if plumbing == nil
|
7270
|
+
return nil
|
7271
|
+
end
|
7272
|
+
porcelain = RoleResourceHistory.new()
|
7273
|
+
porcelain.activity_id = (plumbing.activity_id)
|
7274
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
7275
|
+
porcelain.role_resource = convert_role_resource_to_porcelain(plumbing.role_resource)
|
7276
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
7277
|
+
porcelain
|
7278
|
+
end
|
7279
|
+
|
7280
|
+
def self.convert_role_resource_history_to_plumbing(porcelain)
|
7281
|
+
if porcelain == nil
|
7282
|
+
return nil
|
7283
|
+
end
|
7284
|
+
plumbing = V1::RoleResourceHistory.new()
|
7285
|
+
plumbing.activity_id = (porcelain.activity_id)
|
7286
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
7287
|
+
plumbing.role_resource = convert_role_resource_to_plumbing(porcelain.role_resource)
|
7288
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
7289
|
+
plumbing
|
7290
|
+
end
|
7291
|
+
def self.convert_repeated_role_resource_history_to_plumbing(porcelains)
|
7292
|
+
items = Array.new
|
7293
|
+
porcelains.each do |porcelain|
|
7294
|
+
plumbing = convert_role_resource_history_to_plumbing(porcelain)
|
7295
|
+
items.append(plumbing)
|
7296
|
+
end
|
7297
|
+
items
|
7298
|
+
end
|
7299
|
+
|
7300
|
+
def self.convert_repeated_role_resource_history_to_porcelain(plumbings)
|
7301
|
+
items = Array.new
|
7302
|
+
plumbings.each do |plumbing|
|
7303
|
+
porcelain = convert_role_resource_history_to_porcelain(plumbing)
|
7304
|
+
items.append(porcelain)
|
7305
|
+
end
|
7306
|
+
items
|
7307
|
+
end
|
6375
7308
|
def self.convert_role_update_response_to_porcelain(plumbing)
|
6376
7309
|
if plumbing == nil
|
6377
7310
|
return nil
|
@@ -6861,6 +7794,46 @@ module SDM
|
|
6861
7794
|
end
|
6862
7795
|
items
|
6863
7796
|
end
|
7797
|
+
def self.convert_secret_store_history_to_porcelain(plumbing)
|
7798
|
+
if plumbing == nil
|
7799
|
+
return nil
|
7800
|
+
end
|
7801
|
+
porcelain = SecretStoreHistory.new()
|
7802
|
+
porcelain.activity_id = (plumbing.activity_id)
|
7803
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
7804
|
+
porcelain.secret_store = convert_secret_store_to_porcelain(plumbing.secret_store)
|
7805
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
7806
|
+
porcelain
|
7807
|
+
end
|
7808
|
+
|
7809
|
+
def self.convert_secret_store_history_to_plumbing(porcelain)
|
7810
|
+
if porcelain == nil
|
7811
|
+
return nil
|
7812
|
+
end
|
7813
|
+
plumbing = V1::SecretStoreHistory.new()
|
7814
|
+
plumbing.activity_id = (porcelain.activity_id)
|
7815
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
7816
|
+
plumbing.secret_store = convert_secret_store_to_plumbing(porcelain.secret_store)
|
7817
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
7818
|
+
plumbing
|
7819
|
+
end
|
7820
|
+
def self.convert_repeated_secret_store_history_to_plumbing(porcelains)
|
7821
|
+
items = Array.new
|
7822
|
+
porcelains.each do |porcelain|
|
7823
|
+
plumbing = convert_secret_store_history_to_plumbing(porcelain)
|
7824
|
+
items.append(plumbing)
|
7825
|
+
end
|
7826
|
+
items
|
7827
|
+
end
|
7828
|
+
|
7829
|
+
def self.convert_repeated_secret_store_history_to_porcelain(plumbings)
|
7830
|
+
items = Array.new
|
7831
|
+
plumbings.each do |plumbing|
|
7832
|
+
porcelain = convert_secret_store_history_to_porcelain(plumbing)
|
7833
|
+
items.append(porcelain)
|
7834
|
+
end
|
7835
|
+
items
|
7836
|
+
end
|
6864
7837
|
def self.convert_secret_store_update_response_to_porcelain(plumbing)
|
6865
7838
|
if plumbing == nil
|
6866
7839
|
return nil
|