strongdm 3.6.1__zip → 3.7.0__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {strongdm-3.6.1 → strongdm-3.7.0}/PKG-INFO +2 -2
- {strongdm-3.6.1 → strongdm-3.7.0}/setup.py +2 -2
- strongdm-3.7.0/strongdm/account_attachments_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/account_attachments_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/account_grants_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/account_grants_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/account_permissions_pb2.py +97 -0
- strongdm-3.7.0/strongdm/account_permissions_pb2_grpc.py +87 -0
- strongdm-3.7.0/strongdm/account_resources_pb2.py +99 -0
- strongdm-3.7.0/strongdm/account_resources_pb2_grpc.py +87 -0
- strongdm-3.7.0/strongdm/accounts_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/accounts_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/activities_pb2.py +177 -0
- strongdm-3.7.0/strongdm/activities_pb2_grpc.py +124 -0
- strongdm-3.7.0/strongdm/client.py +432 -0
- strongdm-3.7.0/strongdm/constants.py +377 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/drivers_pb2.py +6 -6
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/models.py +1872 -132
- strongdm-3.7.0/strongdm/nodes_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/nodes_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/organization_history_pb2.py +154 -0
- strongdm-3.7.0/strongdm/organization_history_pb2_grpc.py +84 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/plumbing.py +935 -0
- strongdm-3.7.0/strongdm/queries_pb2.py +133 -0
- strongdm-3.7.0/strongdm/queries_pb2_grpc.py +90 -0
- strongdm-3.7.0/strongdm/remote_identities_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/remote_identities_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/remote_identity_groups_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/remote_identity_groups_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/replays_pb2.py +107 -0
- strongdm-3.7.0/strongdm/replays_pb2_grpc.py +87 -0
- strongdm-3.7.0/strongdm/resources_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/resources_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/role_resources_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/role_resources_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/role_resources_pb2.py +93 -0
- strongdm-3.7.0/strongdm/role_resources_pb2_grpc.py +87 -0
- strongdm-3.7.0/strongdm/roles_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/roles_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/secret_stores_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/secret_stores_history_pb2_grpc.py +84 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/svc.py +1199 -12
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/PKG-INFO +2 -2
- strongdm-3.7.0/strongdm.egg-info/SOURCES.txt +78 -0
- strongdm-3.6.1/strongdm/client.py +0 -199
- strongdm-3.6.1/strongdm/constants.py +0 -66
- strongdm-3.6.1/strongdm.egg-info/SOURCES.txt +0 -44
- {strongdm-3.6.1 → strongdm-3.7.0}/README.md +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/setup.cfg +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/__init__.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_attachments_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_attachments_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_grants_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_grants_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/accounts_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/accounts_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/control_panel_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/control_panel_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/drivers_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/errors.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/nodes_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/nodes_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/options_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/options_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identities_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identities_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/resources_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/resources_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/roles_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/roles_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_store_types_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_store_types_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_stores_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_stores_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/spec_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/spec_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/tags_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/tags_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/dependency_links.txt +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/requires.txt +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/top_level.txt +0 -0
@@ -27,18 +27,35 @@ import datetime
|
|
27
27
|
from .options_pb2 import *
|
28
28
|
from .spec_pb2 import *
|
29
29
|
from .account_attachments_pb2 import *
|
30
|
+
from .account_attachments_history_pb2 import *
|
30
31
|
from .account_grants_pb2 import *
|
32
|
+
from .account_grants_history_pb2 import *
|
33
|
+
from .account_permissions_pb2 import *
|
34
|
+
from .account_resources_pb2 import *
|
31
35
|
from .tags_pb2 import *
|
32
36
|
from .accounts_pb2 import *
|
37
|
+
from .accounts_history_pb2 import *
|
38
|
+
from .activities_pb2 import *
|
33
39
|
from .control_panel_pb2 import *
|
34
40
|
from .drivers_pb2 import *
|
35
41
|
from .nodes_pb2 import *
|
42
|
+
from .nodes_history_pb2 import *
|
43
|
+
from .organization_history_pb2 import *
|
44
|
+
from .queries_pb2 import *
|
36
45
|
from .remote_identities_pb2 import *
|
46
|
+
from .remote_identities_history_pb2 import *
|
37
47
|
from .remote_identity_groups_pb2 import *
|
48
|
+
from .remote_identity_groups_history_pb2 import *
|
49
|
+
from .replays_pb2 import *
|
38
50
|
from .resources_pb2 import *
|
51
|
+
from .resources_history_pb2 import *
|
52
|
+
from .role_resources_pb2 import *
|
53
|
+
from .role_resources_history_pb2 import *
|
39
54
|
from .roles_pb2 import *
|
55
|
+
from .roles_history_pb2 import *
|
40
56
|
from .secret_store_types_pb2 import *
|
41
57
|
from .secret_stores_pb2 import *
|
58
|
+
from .secret_stores_history_pb2 import *
|
42
59
|
|
43
60
|
|
44
61
|
def quote_filter_args(filter, *args):
|
@@ -774,6 +791,46 @@ def convert_repeated_account_attachment_get_response_to_porcelain(plumbings):
|
|
774
791
|
]
|
775
792
|
|
776
793
|
|
794
|
+
def convert_account_attachment_history_to_porcelain(plumbing):
|
795
|
+
if plumbing is None:
|
796
|
+
return None
|
797
|
+
porcelain = models.AccountAttachmentHistory()
|
798
|
+
porcelain.account_attachment = convert_account_attachment_to_porcelain(
|
799
|
+
plumbing.account_attachment)
|
800
|
+
porcelain.activity_id = (plumbing.activity_id)
|
801
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
802
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
803
|
+
return porcelain
|
804
|
+
|
805
|
+
|
806
|
+
def convert_account_attachment_history_to_plumbing(porcelain):
|
807
|
+
plumbing = AccountAttachmentHistory()
|
808
|
+
if porcelain is None:
|
809
|
+
return plumbing
|
810
|
+
plumbing.account_attachment.CopyFrom(
|
811
|
+
convert_account_attachment_to_plumbing(porcelain.account_attachment))
|
812
|
+
plumbing.activity_id = (porcelain.activity_id)
|
813
|
+
plumbing.deleted_at.CopyFrom(
|
814
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
815
|
+
plumbing.timestamp.CopyFrom(
|
816
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
817
|
+
return plumbing
|
818
|
+
|
819
|
+
|
820
|
+
def convert_repeated_account_attachment_history_to_plumbing(porcelains):
|
821
|
+
return [
|
822
|
+
convert_account_attachment_history_to_plumbing(porcelain)
|
823
|
+
for porcelain in porcelains
|
824
|
+
]
|
825
|
+
|
826
|
+
|
827
|
+
def convert_repeated_account_attachment_history_to_porcelain(plumbings):
|
828
|
+
return [
|
829
|
+
convert_account_attachment_history_to_porcelain(plumbing)
|
830
|
+
for plumbing in plumbings
|
831
|
+
]
|
832
|
+
|
833
|
+
|
777
834
|
def convert_account_create_response_to_porcelain(plumbing):
|
778
835
|
if plumbing is None:
|
779
836
|
return None
|
@@ -1042,6 +1099,165 @@ def convert_repeated_account_grant_get_response_to_porcelain(plumbings):
|
|
1042
1099
|
]
|
1043
1100
|
|
1044
1101
|
|
1102
|
+
def convert_account_grant_history_to_porcelain(plumbing):
|
1103
|
+
if plumbing is None:
|
1104
|
+
return None
|
1105
|
+
porcelain = models.AccountGrantHistory()
|
1106
|
+
porcelain.account_grant = convert_account_grant_to_porcelain(
|
1107
|
+
plumbing.account_grant)
|
1108
|
+
porcelain.activity_id = (plumbing.activity_id)
|
1109
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
1110
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
1111
|
+
return porcelain
|
1112
|
+
|
1113
|
+
|
1114
|
+
def convert_account_grant_history_to_plumbing(porcelain):
|
1115
|
+
plumbing = AccountGrantHistory()
|
1116
|
+
if porcelain is None:
|
1117
|
+
return plumbing
|
1118
|
+
plumbing.account_grant.CopyFrom(
|
1119
|
+
convert_account_grant_to_plumbing(porcelain.account_grant))
|
1120
|
+
plumbing.activity_id = (porcelain.activity_id)
|
1121
|
+
plumbing.deleted_at.CopyFrom(
|
1122
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
1123
|
+
plumbing.timestamp.CopyFrom(
|
1124
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
1125
|
+
return plumbing
|
1126
|
+
|
1127
|
+
|
1128
|
+
def convert_repeated_account_grant_history_to_plumbing(porcelains):
|
1129
|
+
return [
|
1130
|
+
convert_account_grant_history_to_plumbing(porcelain)
|
1131
|
+
for porcelain in porcelains
|
1132
|
+
]
|
1133
|
+
|
1134
|
+
|
1135
|
+
def convert_repeated_account_grant_history_to_porcelain(plumbings):
|
1136
|
+
return [
|
1137
|
+
convert_account_grant_history_to_porcelain(plumbing)
|
1138
|
+
for plumbing in plumbings
|
1139
|
+
]
|
1140
|
+
|
1141
|
+
|
1142
|
+
def convert_account_history_to_porcelain(plumbing):
|
1143
|
+
if plumbing is None:
|
1144
|
+
return None
|
1145
|
+
porcelain = models.AccountHistory()
|
1146
|
+
porcelain.account = convert_account_to_porcelain(plumbing.account)
|
1147
|
+
porcelain.activity_id = (plumbing.activity_id)
|
1148
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
1149
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
1150
|
+
return porcelain
|
1151
|
+
|
1152
|
+
|
1153
|
+
def convert_account_history_to_plumbing(porcelain):
|
1154
|
+
plumbing = AccountHistory()
|
1155
|
+
if porcelain is None:
|
1156
|
+
return plumbing
|
1157
|
+
plumbing.account.CopyFrom(convert_account_to_plumbing(porcelain.account))
|
1158
|
+
plumbing.activity_id = (porcelain.activity_id)
|
1159
|
+
plumbing.deleted_at.CopyFrom(
|
1160
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
1161
|
+
plumbing.timestamp.CopyFrom(
|
1162
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
1163
|
+
return plumbing
|
1164
|
+
|
1165
|
+
|
1166
|
+
def convert_repeated_account_history_to_plumbing(porcelains):
|
1167
|
+
return [
|
1168
|
+
convert_account_history_to_plumbing(porcelain)
|
1169
|
+
for porcelain in porcelains
|
1170
|
+
]
|
1171
|
+
|
1172
|
+
|
1173
|
+
def convert_repeated_account_history_to_porcelain(plumbings):
|
1174
|
+
return [
|
1175
|
+
convert_account_history_to_porcelain(plumbing)
|
1176
|
+
for plumbing in plumbings
|
1177
|
+
]
|
1178
|
+
|
1179
|
+
|
1180
|
+
def convert_account_permission_to_porcelain(plumbing):
|
1181
|
+
if plumbing is None:
|
1182
|
+
return None
|
1183
|
+
porcelain = models.AccountPermission()
|
1184
|
+
porcelain.account_id = (plumbing.account_id)
|
1185
|
+
porcelain.granted_at = convert_timestamp_to_porcelain(plumbing.granted_at)
|
1186
|
+
porcelain.permission = (plumbing.permission)
|
1187
|
+
porcelain.scope = (plumbing.scope)
|
1188
|
+
porcelain.scoped_id = (plumbing.scoped_id)
|
1189
|
+
return porcelain
|
1190
|
+
|
1191
|
+
|
1192
|
+
def convert_account_permission_to_plumbing(porcelain):
|
1193
|
+
plumbing = AccountPermission()
|
1194
|
+
if porcelain is None:
|
1195
|
+
return plumbing
|
1196
|
+
plumbing.account_id = (porcelain.account_id)
|
1197
|
+
plumbing.granted_at.CopyFrom(
|
1198
|
+
convert_timestamp_to_plumbing(porcelain.granted_at))
|
1199
|
+
plumbing.permission = (porcelain.permission)
|
1200
|
+
plumbing.scope = (porcelain.scope)
|
1201
|
+
plumbing.scoped_id = (porcelain.scoped_id)
|
1202
|
+
return plumbing
|
1203
|
+
|
1204
|
+
|
1205
|
+
def convert_repeated_account_permission_to_plumbing(porcelains):
|
1206
|
+
return [
|
1207
|
+
convert_account_permission_to_plumbing(porcelain)
|
1208
|
+
for porcelain in porcelains
|
1209
|
+
]
|
1210
|
+
|
1211
|
+
|
1212
|
+
def convert_repeated_account_permission_to_porcelain(plumbings):
|
1213
|
+
return [
|
1214
|
+
convert_account_permission_to_porcelain(plumbing)
|
1215
|
+
for plumbing in plumbings
|
1216
|
+
]
|
1217
|
+
|
1218
|
+
|
1219
|
+
def convert_account_resource_to_porcelain(plumbing):
|
1220
|
+
if plumbing is None:
|
1221
|
+
return None
|
1222
|
+
porcelain = models.AccountResource()
|
1223
|
+
porcelain.account_grant_id = (plumbing.account_grant_id)
|
1224
|
+
porcelain.account_id = (plumbing.account_id)
|
1225
|
+
porcelain.expires_at = convert_timestamp_to_porcelain(plumbing.expires_at)
|
1226
|
+
porcelain.granted_at = convert_timestamp_to_porcelain(plumbing.granted_at)
|
1227
|
+
porcelain.resource_id = (plumbing.resource_id)
|
1228
|
+
porcelain.role_id = (plumbing.role_id)
|
1229
|
+
return porcelain
|
1230
|
+
|
1231
|
+
|
1232
|
+
def convert_account_resource_to_plumbing(porcelain):
|
1233
|
+
plumbing = AccountResource()
|
1234
|
+
if porcelain is None:
|
1235
|
+
return plumbing
|
1236
|
+
plumbing.account_grant_id = (porcelain.account_grant_id)
|
1237
|
+
plumbing.account_id = (porcelain.account_id)
|
1238
|
+
plumbing.expires_at.CopyFrom(
|
1239
|
+
convert_timestamp_to_plumbing(porcelain.expires_at))
|
1240
|
+
plumbing.granted_at.CopyFrom(
|
1241
|
+
convert_timestamp_to_plumbing(porcelain.granted_at))
|
1242
|
+
plumbing.resource_id = (porcelain.resource_id)
|
1243
|
+
plumbing.role_id = (porcelain.role_id)
|
1244
|
+
return plumbing
|
1245
|
+
|
1246
|
+
|
1247
|
+
def convert_repeated_account_resource_to_plumbing(porcelains):
|
1248
|
+
return [
|
1249
|
+
convert_account_resource_to_plumbing(porcelain)
|
1250
|
+
for porcelain in porcelains
|
1251
|
+
]
|
1252
|
+
|
1253
|
+
|
1254
|
+
def convert_repeated_account_resource_to_porcelain(plumbings):
|
1255
|
+
return [
|
1256
|
+
convert_account_resource_to_porcelain(plumbing)
|
1257
|
+
for plumbing in plumbings
|
1258
|
+
]
|
1259
|
+
|
1260
|
+
|
1045
1261
|
def convert_account_update_response_to_porcelain(plumbing):
|
1046
1262
|
if plumbing is None:
|
1047
1263
|
return None
|
@@ -1080,6 +1296,163 @@ def convert_repeated_account_update_response_to_porcelain(plumbings):
|
|
1080
1296
|
]
|
1081
1297
|
|
1082
1298
|
|
1299
|
+
def convert_activity_to_porcelain(plumbing):
|
1300
|
+
if plumbing is None:
|
1301
|
+
return None
|
1302
|
+
porcelain = models.Activity()
|
1303
|
+
porcelain.actor = convert_activity_actor_to_porcelain(plumbing.actor)
|
1304
|
+
porcelain.completed_at = convert_timestamp_to_porcelain(
|
1305
|
+
plumbing.completed_at)
|
1306
|
+
porcelain.description = (plumbing.description)
|
1307
|
+
porcelain.entities = convert_repeated_activity_entity_to_porcelain(
|
1308
|
+
plumbing.entities)
|
1309
|
+
porcelain.id = (plumbing.id)
|
1310
|
+
porcelain.ip_address = (plumbing.ip_address)
|
1311
|
+
porcelain.verb = (plumbing.verb)
|
1312
|
+
return porcelain
|
1313
|
+
|
1314
|
+
|
1315
|
+
def convert_activity_to_plumbing(porcelain):
|
1316
|
+
plumbing = Activity()
|
1317
|
+
if porcelain is None:
|
1318
|
+
return plumbing
|
1319
|
+
plumbing.actor.CopyFrom(convert_activity_actor_to_plumbing(
|
1320
|
+
porcelain.actor))
|
1321
|
+
plumbing.completed_at.CopyFrom(
|
1322
|
+
convert_timestamp_to_plumbing(porcelain.completed_at))
|
1323
|
+
plumbing.description = (porcelain.description)
|
1324
|
+
del plumbing.entities[:]
|
1325
|
+
plumbing.entities.extend(
|
1326
|
+
convert_repeated_activity_entity_to_plumbing(porcelain.entities))
|
1327
|
+
plumbing.id = (porcelain.id)
|
1328
|
+
plumbing.ip_address = (porcelain.ip_address)
|
1329
|
+
plumbing.verb = (porcelain.verb)
|
1330
|
+
return plumbing
|
1331
|
+
|
1332
|
+
|
1333
|
+
def convert_repeated_activity_to_plumbing(porcelains):
|
1334
|
+
return [
|
1335
|
+
convert_activity_to_plumbing(porcelain) for porcelain in porcelains
|
1336
|
+
]
|
1337
|
+
|
1338
|
+
|
1339
|
+
def convert_repeated_activity_to_porcelain(plumbings):
|
1340
|
+
return [convert_activity_to_porcelain(plumbing) for plumbing in plumbings]
|
1341
|
+
|
1342
|
+
|
1343
|
+
def convert_activity_actor_to_porcelain(plumbing):
|
1344
|
+
if plumbing is None:
|
1345
|
+
return None
|
1346
|
+
porcelain = models.ActivityActor()
|
1347
|
+
porcelain.activity_external_id = (plumbing.activity_external_id)
|
1348
|
+
porcelain.email = (plumbing.email)
|
1349
|
+
porcelain.first_name = (plumbing.first_name)
|
1350
|
+
porcelain.id = (plumbing.id)
|
1351
|
+
porcelain.last_name = (plumbing.last_name)
|
1352
|
+
return porcelain
|
1353
|
+
|
1354
|
+
|
1355
|
+
def convert_activity_actor_to_plumbing(porcelain):
|
1356
|
+
plumbing = ActivityActor()
|
1357
|
+
if porcelain is None:
|
1358
|
+
return plumbing
|
1359
|
+
plumbing.activity_external_id = (porcelain.activity_external_id)
|
1360
|
+
plumbing.email = (porcelain.email)
|
1361
|
+
plumbing.first_name = (porcelain.first_name)
|
1362
|
+
plumbing.id = (porcelain.id)
|
1363
|
+
plumbing.last_name = (porcelain.last_name)
|
1364
|
+
return plumbing
|
1365
|
+
|
1366
|
+
|
1367
|
+
def convert_repeated_activity_actor_to_plumbing(porcelains):
|
1368
|
+
return [
|
1369
|
+
convert_activity_actor_to_plumbing(porcelain)
|
1370
|
+
for porcelain in porcelains
|
1371
|
+
]
|
1372
|
+
|
1373
|
+
|
1374
|
+
def convert_repeated_activity_actor_to_porcelain(plumbings):
|
1375
|
+
return [
|
1376
|
+
convert_activity_actor_to_porcelain(plumbing) for plumbing in plumbings
|
1377
|
+
]
|
1378
|
+
|
1379
|
+
|
1380
|
+
def convert_activity_entity_to_porcelain(plumbing):
|
1381
|
+
if plumbing is None:
|
1382
|
+
return None
|
1383
|
+
porcelain = models.ActivityEntity()
|
1384
|
+
porcelain.email = (plumbing.email)
|
1385
|
+
porcelain.external_id = (plumbing.external_id)
|
1386
|
+
porcelain.id = (plumbing.id)
|
1387
|
+
porcelain.name = (plumbing.name)
|
1388
|
+
porcelain.type = (plumbing.type)
|
1389
|
+
return porcelain
|
1390
|
+
|
1391
|
+
|
1392
|
+
def convert_activity_entity_to_plumbing(porcelain):
|
1393
|
+
plumbing = ActivityEntity()
|
1394
|
+
if porcelain is None:
|
1395
|
+
return plumbing
|
1396
|
+
plumbing.email = (porcelain.email)
|
1397
|
+
plumbing.external_id = (porcelain.external_id)
|
1398
|
+
plumbing.id = (porcelain.id)
|
1399
|
+
plumbing.name = (porcelain.name)
|
1400
|
+
plumbing.type = (porcelain.type)
|
1401
|
+
return plumbing
|
1402
|
+
|
1403
|
+
|
1404
|
+
def convert_repeated_activity_entity_to_plumbing(porcelains):
|
1405
|
+
return [
|
1406
|
+
convert_activity_entity_to_plumbing(porcelain)
|
1407
|
+
for porcelain in porcelains
|
1408
|
+
]
|
1409
|
+
|
1410
|
+
|
1411
|
+
def convert_repeated_activity_entity_to_porcelain(plumbings):
|
1412
|
+
return [
|
1413
|
+
convert_activity_entity_to_porcelain(plumbing)
|
1414
|
+
for plumbing in plumbings
|
1415
|
+
]
|
1416
|
+
|
1417
|
+
|
1418
|
+
def convert_activity_get_response_to_porcelain(plumbing):
|
1419
|
+
if plumbing is None:
|
1420
|
+
return None
|
1421
|
+
porcelain = models.ActivityGetResponse()
|
1422
|
+
porcelain.activity = convert_activity_to_porcelain(plumbing.activity)
|
1423
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
1424
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(
|
1425
|
+
plumbing.rate_limit)
|
1426
|
+
return porcelain
|
1427
|
+
|
1428
|
+
|
1429
|
+
def convert_activity_get_response_to_plumbing(porcelain):
|
1430
|
+
plumbing = ActivityGetResponse()
|
1431
|
+
if porcelain is None:
|
1432
|
+
return plumbing
|
1433
|
+
plumbing.activity.CopyFrom(convert_activity_to_plumbing(
|
1434
|
+
porcelain.activity))
|
1435
|
+
plumbing.meta.CopyFrom(
|
1436
|
+
convert_get_response_metadata_to_plumbing(porcelain.meta))
|
1437
|
+
plumbing.rate_limit.CopyFrom(
|
1438
|
+
convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit))
|
1439
|
+
return plumbing
|
1440
|
+
|
1441
|
+
|
1442
|
+
def convert_repeated_activity_get_response_to_plumbing(porcelains):
|
1443
|
+
return [
|
1444
|
+
convert_activity_get_response_to_plumbing(porcelain)
|
1445
|
+
for porcelain in porcelains
|
1446
|
+
]
|
1447
|
+
|
1448
|
+
|
1449
|
+
def convert_repeated_activity_get_response_to_porcelain(plumbings):
|
1450
|
+
return [
|
1451
|
+
convert_activity_get_response_to_porcelain(plumbing)
|
1452
|
+
for plumbing in plumbings
|
1453
|
+
]
|
1454
|
+
|
1455
|
+
|
1083
1456
|
def convert_amazon_eks_to_porcelain(plumbing):
|
1084
1457
|
if plumbing is None:
|
1085
1458
|
return None
|
@@ -4278,6 +4651,42 @@ def convert_repeated_node_get_response_to_porcelain(plumbings):
|
|
4278
4651
|
]
|
4279
4652
|
|
4280
4653
|
|
4654
|
+
def convert_node_history_to_porcelain(plumbing):
|
4655
|
+
if plumbing is None:
|
4656
|
+
return None
|
4657
|
+
porcelain = models.NodeHistory()
|
4658
|
+
porcelain.activity_id = (plumbing.activity_id)
|
4659
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
4660
|
+
porcelain.node = convert_node_to_porcelain(plumbing.node)
|
4661
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
4662
|
+
return porcelain
|
4663
|
+
|
4664
|
+
|
4665
|
+
def convert_node_history_to_plumbing(porcelain):
|
4666
|
+
plumbing = NodeHistory()
|
4667
|
+
if porcelain is None:
|
4668
|
+
return plumbing
|
4669
|
+
plumbing.activity_id = (porcelain.activity_id)
|
4670
|
+
plumbing.deleted_at.CopyFrom(
|
4671
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
4672
|
+
plumbing.node.CopyFrom(convert_node_to_plumbing(porcelain.node))
|
4673
|
+
plumbing.timestamp.CopyFrom(
|
4674
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
4675
|
+
return plumbing
|
4676
|
+
|
4677
|
+
|
4678
|
+
def convert_repeated_node_history_to_plumbing(porcelains):
|
4679
|
+
return [
|
4680
|
+
convert_node_history_to_plumbing(porcelain) for porcelain in porcelains
|
4681
|
+
]
|
4682
|
+
|
4683
|
+
|
4684
|
+
def convert_repeated_node_history_to_porcelain(plumbings):
|
4685
|
+
return [
|
4686
|
+
convert_node_history_to_porcelain(plumbing) for plumbing in plumbings
|
4687
|
+
]
|
4688
|
+
|
4689
|
+
|
4281
4690
|
def convert_node_update_response_to_porcelain(plumbing):
|
4282
4691
|
if plumbing is None:
|
4283
4692
|
return None
|
@@ -4366,6 +4775,128 @@ def convert_repeated_oracle_to_porcelain(plumbings):
|
|
4366
4775
|
return [convert_oracle_to_porcelain(plumbing) for plumbing in plumbings]
|
4367
4776
|
|
4368
4777
|
|
4778
|
+
def convert_organization_to_porcelain(plumbing):
|
4779
|
+
if plumbing is None:
|
4780
|
+
return None
|
4781
|
+
porcelain = models.Organization()
|
4782
|
+
porcelain.auth_provider = (plumbing.auth_provider)
|
4783
|
+
porcelain.created_at = convert_timestamp_to_porcelain(plumbing.created_at)
|
4784
|
+
porcelain.idle_timeout = convert_duration_to_porcelain(
|
4785
|
+
plumbing.idle_timeout)
|
4786
|
+
porcelain.idle_timeout_enabled = (plumbing.idle_timeout_enabled)
|
4787
|
+
porcelain.kind = (plumbing.kind)
|
4788
|
+
porcelain.log_local_encoder = (plumbing.log_local_encoder)
|
4789
|
+
porcelain.log_local_format = (plumbing.log_local_format)
|
4790
|
+
porcelain.log_local_storage = (plumbing.log_local_storage)
|
4791
|
+
porcelain.log_remote_encoder = (plumbing.log_remote_encoder)
|
4792
|
+
porcelain.log_socket_path = (plumbing.log_socket_path)
|
4793
|
+
porcelain.log_tcp_address = (plumbing.log_tcp_address)
|
4794
|
+
porcelain.mfa_enabled = (plumbing.mfa_enabled)
|
4795
|
+
porcelain.mfa_provider = (plumbing.mfa_provider)
|
4796
|
+
porcelain.name = (plumbing.name)
|
4797
|
+
porcelain.require_secret_store = (plumbing.require_secret_store)
|
4798
|
+
porcelain.saml_metadata_url = (plumbing.saml_metadata_url)
|
4799
|
+
porcelain.scim_provider = (plumbing.scim_provider)
|
4800
|
+
porcelain.sensitive_label = (plumbing.sensitive_label)
|
4801
|
+
porcelain.session_timeout = convert_duration_to_porcelain(
|
4802
|
+
plumbing.session_timeout)
|
4803
|
+
porcelain.session_timeout_enabled = (plumbing.session_timeout_enabled)
|
4804
|
+
porcelain.ssh_certificate_authority_public_key = (
|
4805
|
+
plumbing.ssh_certificate_authority_public_key)
|
4806
|
+
porcelain.ssh_certificate_authority_updated_at = convert_timestamp_to_porcelain(
|
4807
|
+
plumbing.ssh_certificate_authority_updated_at)
|
4808
|
+
porcelain.updated_at = convert_timestamp_to_porcelain(plumbing.updated_at)
|
4809
|
+
porcelain.websites_subdomain = (plumbing.websites_subdomain)
|
4810
|
+
return porcelain
|
4811
|
+
|
4812
|
+
|
4813
|
+
def convert_organization_to_plumbing(porcelain):
|
4814
|
+
plumbing = Organization()
|
4815
|
+
if porcelain is None:
|
4816
|
+
return plumbing
|
4817
|
+
plumbing.auth_provider = (porcelain.auth_provider)
|
4818
|
+
plumbing.created_at.CopyFrom(
|
4819
|
+
convert_timestamp_to_plumbing(porcelain.created_at))
|
4820
|
+
plumbing.idle_timeout.CopyFrom(
|
4821
|
+
convert_duration_to_plumbing(porcelain.idle_timeout))
|
4822
|
+
plumbing.idle_timeout_enabled = (porcelain.idle_timeout_enabled)
|
4823
|
+
plumbing.kind = (porcelain.kind)
|
4824
|
+
plumbing.log_local_encoder = (porcelain.log_local_encoder)
|
4825
|
+
plumbing.log_local_format = (porcelain.log_local_format)
|
4826
|
+
plumbing.log_local_storage = (porcelain.log_local_storage)
|
4827
|
+
plumbing.log_remote_encoder = (porcelain.log_remote_encoder)
|
4828
|
+
plumbing.log_socket_path = (porcelain.log_socket_path)
|
4829
|
+
plumbing.log_tcp_address = (porcelain.log_tcp_address)
|
4830
|
+
plumbing.mfa_enabled = (porcelain.mfa_enabled)
|
4831
|
+
plumbing.mfa_provider = (porcelain.mfa_provider)
|
4832
|
+
plumbing.name = (porcelain.name)
|
4833
|
+
plumbing.require_secret_store = (porcelain.require_secret_store)
|
4834
|
+
plumbing.saml_metadata_url = (porcelain.saml_metadata_url)
|
4835
|
+
plumbing.scim_provider = (porcelain.scim_provider)
|
4836
|
+
plumbing.sensitive_label = (porcelain.sensitive_label)
|
4837
|
+
plumbing.session_timeout.CopyFrom(
|
4838
|
+
convert_duration_to_plumbing(porcelain.session_timeout))
|
4839
|
+
plumbing.session_timeout_enabled = (porcelain.session_timeout_enabled)
|
4840
|
+
plumbing.ssh_certificate_authority_public_key = (
|
4841
|
+
porcelain.ssh_certificate_authority_public_key)
|
4842
|
+
plumbing.ssh_certificate_authority_updated_at.CopyFrom(
|
4843
|
+
convert_timestamp_to_plumbing(
|
4844
|
+
porcelain.ssh_certificate_authority_updated_at))
|
4845
|
+
plumbing.updated_at.CopyFrom(
|
4846
|
+
convert_timestamp_to_plumbing(porcelain.updated_at))
|
4847
|
+
plumbing.websites_subdomain = (porcelain.websites_subdomain)
|
4848
|
+
return plumbing
|
4849
|
+
|
4850
|
+
|
4851
|
+
def convert_repeated_organization_to_plumbing(porcelains):
|
4852
|
+
return [
|
4853
|
+
convert_organization_to_plumbing(porcelain) for porcelain in porcelains
|
4854
|
+
]
|
4855
|
+
|
4856
|
+
|
4857
|
+
def convert_repeated_organization_to_porcelain(plumbings):
|
4858
|
+
return [
|
4859
|
+
convert_organization_to_porcelain(plumbing) for plumbing in plumbings
|
4860
|
+
]
|
4861
|
+
|
4862
|
+
|
4863
|
+
def convert_organization_history_record_to_porcelain(plumbing):
|
4864
|
+
if plumbing is None:
|
4865
|
+
return None
|
4866
|
+
porcelain = models.OrganizationHistoryRecord()
|
4867
|
+
porcelain.activity_id = (plumbing.activity_id)
|
4868
|
+
porcelain.organization = convert_organization_to_porcelain(
|
4869
|
+
plumbing.organization)
|
4870
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
4871
|
+
return porcelain
|
4872
|
+
|
4873
|
+
|
4874
|
+
def convert_organization_history_record_to_plumbing(porcelain):
|
4875
|
+
plumbing = OrganizationHistoryRecord()
|
4876
|
+
if porcelain is None:
|
4877
|
+
return plumbing
|
4878
|
+
plumbing.activity_id = (porcelain.activity_id)
|
4879
|
+
plumbing.organization.CopyFrom(
|
4880
|
+
convert_organization_to_plumbing(porcelain.organization))
|
4881
|
+
plumbing.timestamp.CopyFrom(
|
4882
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
4883
|
+
return plumbing
|
4884
|
+
|
4885
|
+
|
4886
|
+
def convert_repeated_organization_history_record_to_plumbing(porcelains):
|
4887
|
+
return [
|
4888
|
+
convert_organization_history_record_to_plumbing(porcelain)
|
4889
|
+
for porcelain in porcelains
|
4890
|
+
]
|
4891
|
+
|
4892
|
+
|
4893
|
+
def convert_repeated_organization_history_record_to_porcelain(plumbings):
|
4894
|
+
return [
|
4895
|
+
convert_organization_history_record_to_porcelain(plumbing)
|
4896
|
+
for plumbing in plumbings
|
4897
|
+
]
|
4898
|
+
|
4899
|
+
|
4369
4900
|
def convert_postgres_to_porcelain(plumbing):
|
4370
4901
|
if plumbing is None:
|
4371
4902
|
return None
|
@@ -4468,6 +4999,74 @@ def convert_repeated_presto_to_porcelain(plumbings):
|
|
4468
4999
|
return [convert_presto_to_porcelain(plumbing) for plumbing in plumbings]
|
4469
5000
|
|
4470
5001
|
|
5002
|
+
def convert_query_to_porcelain(plumbing):
|
5003
|
+
if plumbing is None:
|
5004
|
+
return None
|
5005
|
+
porcelain = models.Query()
|
5006
|
+
porcelain.account_email = (plumbing.account_email)
|
5007
|
+
porcelain.account_first_name = (plumbing.account_first_name)
|
5008
|
+
porcelain.account_id = (plumbing.account_id)
|
5009
|
+
porcelain.account_last_name = (plumbing.account_last_name)
|
5010
|
+
porcelain.account_tags = convert_tags_to_porcelain(plumbing.account_tags)
|
5011
|
+
porcelain.duration = convert_duration_to_porcelain(plumbing.duration)
|
5012
|
+
porcelain.egress_node_id = (plumbing.egress_node_id)
|
5013
|
+
porcelain.encrypted = (plumbing.encrypted)
|
5014
|
+
porcelain.id = (plumbing.id)
|
5015
|
+
porcelain.query_body = (plumbing.query_body)
|
5016
|
+
porcelain.query_category = (plumbing.query_category)
|
5017
|
+
porcelain.query_hash = (plumbing.query_hash)
|
5018
|
+
porcelain.query_key = (plumbing.query_key)
|
5019
|
+
porcelain.record_count = (plumbing.record_count)
|
5020
|
+
porcelain.remote_identity_username = (plumbing.remote_identity_username)
|
5021
|
+
porcelain.replayable = (plumbing.replayable)
|
5022
|
+
porcelain.resource_id = (plumbing.resource_id)
|
5023
|
+
porcelain.resource_name = (plumbing.resource_name)
|
5024
|
+
porcelain.resource_tags = convert_tags_to_porcelain(plumbing.resource_tags)
|
5025
|
+
porcelain.resource_type = (plumbing.resource_type)
|
5026
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
5027
|
+
return porcelain
|
5028
|
+
|
5029
|
+
|
5030
|
+
def convert_query_to_plumbing(porcelain):
|
5031
|
+
plumbing = Query()
|
5032
|
+
if porcelain is None:
|
5033
|
+
return plumbing
|
5034
|
+
plumbing.account_email = (porcelain.account_email)
|
5035
|
+
plumbing.account_first_name = (porcelain.account_first_name)
|
5036
|
+
plumbing.account_id = (porcelain.account_id)
|
5037
|
+
plumbing.account_last_name = (porcelain.account_last_name)
|
5038
|
+
plumbing.account_tags.CopyFrom(
|
5039
|
+
convert_tags_to_plumbing(porcelain.account_tags))
|
5040
|
+
plumbing.duration.CopyFrom(convert_duration_to_plumbing(
|
5041
|
+
porcelain.duration))
|
5042
|
+
plumbing.egress_node_id = (porcelain.egress_node_id)
|
5043
|
+
plumbing.encrypted = (porcelain.encrypted)
|
5044
|
+
plumbing.id = (porcelain.id)
|
5045
|
+
plumbing.query_body = (porcelain.query_body)
|
5046
|
+
plumbing.query_category = (porcelain.query_category)
|
5047
|
+
plumbing.query_hash = (porcelain.query_hash)
|
5048
|
+
plumbing.query_key = (porcelain.query_key)
|
5049
|
+
plumbing.record_count = (porcelain.record_count)
|
5050
|
+
plumbing.remote_identity_username = (porcelain.remote_identity_username)
|
5051
|
+
plumbing.replayable = (porcelain.replayable)
|
5052
|
+
plumbing.resource_id = (porcelain.resource_id)
|
5053
|
+
plumbing.resource_name = (porcelain.resource_name)
|
5054
|
+
plumbing.resource_tags.CopyFrom(
|
5055
|
+
convert_tags_to_plumbing(porcelain.resource_tags))
|
5056
|
+
plumbing.resource_type = (porcelain.resource_type)
|
5057
|
+
plumbing.timestamp.CopyFrom(
|
5058
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
5059
|
+
return plumbing
|
5060
|
+
|
5061
|
+
|
5062
|
+
def convert_repeated_query_to_plumbing(porcelains):
|
5063
|
+
return [convert_query_to_plumbing(porcelain) for porcelain in porcelains]
|
5064
|
+
|
5065
|
+
|
5066
|
+
def convert_repeated_query_to_porcelain(plumbings):
|
5067
|
+
return [convert_query_to_porcelain(plumbing) for plumbing in plumbings]
|
5068
|
+
|
5069
|
+
|
4471
5070
|
def convert_rdp_to_porcelain(plumbing):
|
4472
5071
|
if plumbing is None:
|
4473
5072
|
return None
|
@@ -5012,6 +5611,87 @@ def convert_repeated_remote_identity_group_get_response_to_porcelain(
|
|
5012
5611
|
]
|
5013
5612
|
|
5014
5613
|
|
5614
|
+
def convert_remote_identity_group_history_to_porcelain(plumbing):
|
5615
|
+
if plumbing is None:
|
5616
|
+
return None
|
5617
|
+
porcelain = models.RemoteIdentityGroupHistory()
|
5618
|
+
porcelain.activity_id = (plumbing.activity_id)
|
5619
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
5620
|
+
porcelain.remote_identity_group = convert_remote_identity_group_to_porcelain(
|
5621
|
+
plumbing.remote_identity_group)
|
5622
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
5623
|
+
return porcelain
|
5624
|
+
|
5625
|
+
|
5626
|
+
def convert_remote_identity_group_history_to_plumbing(porcelain):
|
5627
|
+
plumbing = RemoteIdentityGroupHistory()
|
5628
|
+
if porcelain is None:
|
5629
|
+
return plumbing
|
5630
|
+
plumbing.activity_id = (porcelain.activity_id)
|
5631
|
+
plumbing.deleted_at.CopyFrom(
|
5632
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
5633
|
+
plumbing.remote_identity_group.CopyFrom(
|
5634
|
+
convert_remote_identity_group_to_plumbing(
|
5635
|
+
porcelain.remote_identity_group))
|
5636
|
+
plumbing.timestamp.CopyFrom(
|
5637
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
5638
|
+
return plumbing
|
5639
|
+
|
5640
|
+
|
5641
|
+
def convert_repeated_remote_identity_group_history_to_plumbing(porcelains):
|
5642
|
+
return [
|
5643
|
+
convert_remote_identity_group_history_to_plumbing(porcelain)
|
5644
|
+
for porcelain in porcelains
|
5645
|
+
]
|
5646
|
+
|
5647
|
+
|
5648
|
+
def convert_repeated_remote_identity_group_history_to_porcelain(plumbings):
|
5649
|
+
return [
|
5650
|
+
convert_remote_identity_group_history_to_porcelain(plumbing)
|
5651
|
+
for plumbing in plumbings
|
5652
|
+
]
|
5653
|
+
|
5654
|
+
|
5655
|
+
def convert_remote_identity_history_to_porcelain(plumbing):
|
5656
|
+
if plumbing is None:
|
5657
|
+
return None
|
5658
|
+
porcelain = models.RemoteIdentityHistory()
|
5659
|
+
porcelain.activity_id = (plumbing.activity_id)
|
5660
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
5661
|
+
porcelain.remote_identity = convert_remote_identity_to_porcelain(
|
5662
|
+
plumbing.remote_identity)
|
5663
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
5664
|
+
return porcelain
|
5665
|
+
|
5666
|
+
|
5667
|
+
def convert_remote_identity_history_to_plumbing(porcelain):
|
5668
|
+
plumbing = RemoteIdentityHistory()
|
5669
|
+
if porcelain is None:
|
5670
|
+
return plumbing
|
5671
|
+
plumbing.activity_id = (porcelain.activity_id)
|
5672
|
+
plumbing.deleted_at.CopyFrom(
|
5673
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
5674
|
+
plumbing.remote_identity.CopyFrom(
|
5675
|
+
convert_remote_identity_to_plumbing(porcelain.remote_identity))
|
5676
|
+
plumbing.timestamp.CopyFrom(
|
5677
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
5678
|
+
return plumbing
|
5679
|
+
|
5680
|
+
|
5681
|
+
def convert_repeated_remote_identity_history_to_plumbing(porcelains):
|
5682
|
+
return [
|
5683
|
+
convert_remote_identity_history_to_plumbing(porcelain)
|
5684
|
+
for porcelain in porcelains
|
5685
|
+
]
|
5686
|
+
|
5687
|
+
|
5688
|
+
def convert_repeated_remote_identity_history_to_porcelain(plumbings):
|
5689
|
+
return [
|
5690
|
+
convert_remote_identity_history_to_porcelain(plumbing)
|
5691
|
+
for plumbing in plumbings
|
5692
|
+
]
|
5693
|
+
|
5694
|
+
|
5015
5695
|
def convert_remote_identity_update_response_to_porcelain(plumbing):
|
5016
5696
|
if plumbing is None:
|
5017
5697
|
return None
|
@@ -5052,6 +5732,72 @@ def convert_repeated_remote_identity_update_response_to_porcelain(plumbings):
|
|
5052
5732
|
]
|
5053
5733
|
|
5054
5734
|
|
5735
|
+
def convert_replay_chunk_to_porcelain(plumbing):
|
5736
|
+
if plumbing is None:
|
5737
|
+
return None
|
5738
|
+
porcelain = models.ReplayChunk()
|
5739
|
+
porcelain.data = (plumbing.data)
|
5740
|
+
porcelain.events = convert_repeated_replay_chunk_event_to_porcelain(
|
5741
|
+
plumbing.events)
|
5742
|
+
return porcelain
|
5743
|
+
|
5744
|
+
|
5745
|
+
def convert_replay_chunk_to_plumbing(porcelain):
|
5746
|
+
plumbing = ReplayChunk()
|
5747
|
+
if porcelain is None:
|
5748
|
+
return plumbing
|
5749
|
+
plumbing.data = (porcelain.data)
|
5750
|
+
del plumbing.events[:]
|
5751
|
+
plumbing.events.extend(
|
5752
|
+
convert_repeated_replay_chunk_event_to_plumbing(porcelain.events))
|
5753
|
+
return plumbing
|
5754
|
+
|
5755
|
+
|
5756
|
+
def convert_repeated_replay_chunk_to_plumbing(porcelains):
|
5757
|
+
return [
|
5758
|
+
convert_replay_chunk_to_plumbing(porcelain) for porcelain in porcelains
|
5759
|
+
]
|
5760
|
+
|
5761
|
+
|
5762
|
+
def convert_repeated_replay_chunk_to_porcelain(plumbings):
|
5763
|
+
return [
|
5764
|
+
convert_replay_chunk_to_porcelain(plumbing) for plumbing in plumbings
|
5765
|
+
]
|
5766
|
+
|
5767
|
+
|
5768
|
+
def convert_replay_chunk_event_to_porcelain(plumbing):
|
5769
|
+
if plumbing is None:
|
5770
|
+
return None
|
5771
|
+
porcelain = models.ReplayChunkEvent()
|
5772
|
+
porcelain.data = (plumbing.data)
|
5773
|
+
porcelain.duration = convert_duration_to_porcelain(plumbing.duration)
|
5774
|
+
return porcelain
|
5775
|
+
|
5776
|
+
|
5777
|
+
def convert_replay_chunk_event_to_plumbing(porcelain):
|
5778
|
+
plumbing = ReplayChunkEvent()
|
5779
|
+
if porcelain is None:
|
5780
|
+
return plumbing
|
5781
|
+
plumbing.data = (porcelain.data)
|
5782
|
+
plumbing.duration.CopyFrom(convert_duration_to_plumbing(
|
5783
|
+
porcelain.duration))
|
5784
|
+
return plumbing
|
5785
|
+
|
5786
|
+
|
5787
|
+
def convert_repeated_replay_chunk_event_to_plumbing(porcelains):
|
5788
|
+
return [
|
5789
|
+
convert_replay_chunk_event_to_plumbing(porcelain)
|
5790
|
+
for porcelain in porcelains
|
5791
|
+
]
|
5792
|
+
|
5793
|
+
|
5794
|
+
def convert_repeated_replay_chunk_event_to_porcelain(plumbings):
|
5795
|
+
return [
|
5796
|
+
convert_replay_chunk_event_to_porcelain(plumbing)
|
5797
|
+
for plumbing in plumbings
|
5798
|
+
]
|
5799
|
+
|
5800
|
+
|
5055
5801
|
def convert_resource_to_plumbing(porcelain):
|
5056
5802
|
plumbing = Resource()
|
5057
5803
|
if porcelain is None:
|
@@ -5548,6 +6294,45 @@ def convert_repeated_resource_get_response_to_porcelain(plumbings):
|
|
5548
6294
|
]
|
5549
6295
|
|
5550
6296
|
|
6297
|
+
def convert_resource_history_to_porcelain(plumbing):
|
6298
|
+
if plumbing is None:
|
6299
|
+
return None
|
6300
|
+
porcelain = models.ResourceHistory()
|
6301
|
+
porcelain.activity_id = (plumbing.activity_id)
|
6302
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
6303
|
+
porcelain.resource = convert_resource_to_porcelain(plumbing.resource)
|
6304
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
6305
|
+
return porcelain
|
6306
|
+
|
6307
|
+
|
6308
|
+
def convert_resource_history_to_plumbing(porcelain):
|
6309
|
+
plumbing = ResourceHistory()
|
6310
|
+
if porcelain is None:
|
6311
|
+
return plumbing
|
6312
|
+
plumbing.activity_id = (porcelain.activity_id)
|
6313
|
+
plumbing.deleted_at.CopyFrom(
|
6314
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
6315
|
+
plumbing.resource.CopyFrom(convert_resource_to_plumbing(
|
6316
|
+
porcelain.resource))
|
6317
|
+
plumbing.timestamp.CopyFrom(
|
6318
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
6319
|
+
return plumbing
|
6320
|
+
|
6321
|
+
|
6322
|
+
def convert_repeated_resource_history_to_plumbing(porcelains):
|
6323
|
+
return [
|
6324
|
+
convert_resource_history_to_plumbing(porcelain)
|
6325
|
+
for porcelain in porcelains
|
6326
|
+
]
|
6327
|
+
|
6328
|
+
|
6329
|
+
def convert_repeated_resource_history_to_porcelain(plumbings):
|
6330
|
+
return [
|
6331
|
+
convert_resource_history_to_porcelain(plumbing)
|
6332
|
+
for plumbing in plumbings
|
6333
|
+
]
|
6334
|
+
|
6335
|
+
|
5551
6336
|
def convert_resource_update_response_to_porcelain(plumbing):
|
5552
6337
|
if plumbing is None:
|
5553
6338
|
return None
|
@@ -5732,6 +6517,116 @@ def convert_repeated_role_get_response_to_porcelain(plumbings):
|
|
5732
6517
|
]
|
5733
6518
|
|
5734
6519
|
|
6520
|
+
def convert_role_history_to_porcelain(plumbing):
|
6521
|
+
if plumbing is None:
|
6522
|
+
return None
|
6523
|
+
porcelain = models.RoleHistory()
|
6524
|
+
porcelain.activity_id = (plumbing.activity_id)
|
6525
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
6526
|
+
porcelain.role = convert_role_to_porcelain(plumbing.role)
|
6527
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
6528
|
+
return porcelain
|
6529
|
+
|
6530
|
+
|
6531
|
+
def convert_role_history_to_plumbing(porcelain):
|
6532
|
+
plumbing = RoleHistory()
|
6533
|
+
if porcelain is None:
|
6534
|
+
return plumbing
|
6535
|
+
plumbing.activity_id = (porcelain.activity_id)
|
6536
|
+
plumbing.deleted_at.CopyFrom(
|
6537
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
6538
|
+
plumbing.role.CopyFrom(convert_role_to_plumbing(porcelain.role))
|
6539
|
+
plumbing.timestamp.CopyFrom(
|
6540
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
6541
|
+
return plumbing
|
6542
|
+
|
6543
|
+
|
6544
|
+
def convert_repeated_role_history_to_plumbing(porcelains):
|
6545
|
+
return [
|
6546
|
+
convert_role_history_to_plumbing(porcelain) for porcelain in porcelains
|
6547
|
+
]
|
6548
|
+
|
6549
|
+
|
6550
|
+
def convert_repeated_role_history_to_porcelain(plumbings):
|
6551
|
+
return [
|
6552
|
+
convert_role_history_to_porcelain(plumbing) for plumbing in plumbings
|
6553
|
+
]
|
6554
|
+
|
6555
|
+
|
6556
|
+
def convert_role_resource_to_porcelain(plumbing):
|
6557
|
+
if plumbing is None:
|
6558
|
+
return None
|
6559
|
+
porcelain = models.RoleResource()
|
6560
|
+
porcelain.granted_at = convert_timestamp_to_porcelain(plumbing.granted_at)
|
6561
|
+
porcelain.resource_id = (plumbing.resource_id)
|
6562
|
+
porcelain.role_id = (plumbing.role_id)
|
6563
|
+
return porcelain
|
6564
|
+
|
6565
|
+
|
6566
|
+
def convert_role_resource_to_plumbing(porcelain):
|
6567
|
+
plumbing = RoleResource()
|
6568
|
+
if porcelain is None:
|
6569
|
+
return plumbing
|
6570
|
+
plumbing.granted_at.CopyFrom(
|
6571
|
+
convert_timestamp_to_plumbing(porcelain.granted_at))
|
6572
|
+
plumbing.resource_id = (porcelain.resource_id)
|
6573
|
+
plumbing.role_id = (porcelain.role_id)
|
6574
|
+
return plumbing
|
6575
|
+
|
6576
|
+
|
6577
|
+
def convert_repeated_role_resource_to_plumbing(porcelains):
|
6578
|
+
return [
|
6579
|
+
convert_role_resource_to_plumbing(porcelain)
|
6580
|
+
for porcelain in porcelains
|
6581
|
+
]
|
6582
|
+
|
6583
|
+
|
6584
|
+
def convert_repeated_role_resource_to_porcelain(plumbings):
|
6585
|
+
return [
|
6586
|
+
convert_role_resource_to_porcelain(plumbing) for plumbing in plumbings
|
6587
|
+
]
|
6588
|
+
|
6589
|
+
|
6590
|
+
def convert_role_resource_history_to_porcelain(plumbing):
|
6591
|
+
if plumbing is None:
|
6592
|
+
return None
|
6593
|
+
porcelain = models.RoleResourceHistory()
|
6594
|
+
porcelain.activity_id = (plumbing.activity_id)
|
6595
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
6596
|
+
porcelain.role_resource = convert_role_resource_to_porcelain(
|
6597
|
+
plumbing.role_resource)
|
6598
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
6599
|
+
return porcelain
|
6600
|
+
|
6601
|
+
|
6602
|
+
def convert_role_resource_history_to_plumbing(porcelain):
|
6603
|
+
plumbing = RoleResourceHistory()
|
6604
|
+
if porcelain is None:
|
6605
|
+
return plumbing
|
6606
|
+
plumbing.activity_id = (porcelain.activity_id)
|
6607
|
+
plumbing.deleted_at.CopyFrom(
|
6608
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
6609
|
+
plumbing.role_resource.CopyFrom(
|
6610
|
+
convert_role_resource_to_plumbing(porcelain.role_resource))
|
6611
|
+
plumbing.timestamp.CopyFrom(
|
6612
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
6613
|
+
return plumbing
|
6614
|
+
|
6615
|
+
|
6616
|
+
def convert_repeated_role_resource_history_to_plumbing(porcelains):
|
6617
|
+
return [
|
6618
|
+
convert_role_resource_history_to_plumbing(porcelain)
|
6619
|
+
for porcelain in porcelains
|
6620
|
+
]
|
6621
|
+
|
6622
|
+
|
6623
|
+
def convert_repeated_role_resource_history_to_porcelain(plumbings):
|
6624
|
+
return [
|
6625
|
+
convert_role_resource_history_to_porcelain(plumbing)
|
6626
|
+
for plumbing in plumbings
|
6627
|
+
]
|
6628
|
+
|
6629
|
+
|
5735
6630
|
def convert_role_update_response_to_porcelain(plumbing):
|
5736
6631
|
if plumbing is None:
|
5737
6632
|
return None
|
@@ -6188,6 +7083,46 @@ def convert_repeated_secret_store_get_response_to_porcelain(plumbings):
|
|
6188
7083
|
]
|
6189
7084
|
|
6190
7085
|
|
7086
|
+
def convert_secret_store_history_to_porcelain(plumbing):
|
7087
|
+
if plumbing is None:
|
7088
|
+
return None
|
7089
|
+
porcelain = models.SecretStoreHistory()
|
7090
|
+
porcelain.activity_id = (plumbing.activity_id)
|
7091
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
7092
|
+
porcelain.secret_store = convert_secret_store_to_porcelain(
|
7093
|
+
plumbing.secret_store)
|
7094
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
7095
|
+
return porcelain
|
7096
|
+
|
7097
|
+
|
7098
|
+
def convert_secret_store_history_to_plumbing(porcelain):
|
7099
|
+
plumbing = SecretStoreHistory()
|
7100
|
+
if porcelain is None:
|
7101
|
+
return plumbing
|
7102
|
+
plumbing.activity_id = (porcelain.activity_id)
|
7103
|
+
plumbing.deleted_at.CopyFrom(
|
7104
|
+
convert_timestamp_to_plumbing(porcelain.deleted_at))
|
7105
|
+
plumbing.secret_store.CopyFrom(
|
7106
|
+
convert_secret_store_to_plumbing(porcelain.secret_store))
|
7107
|
+
plumbing.timestamp.CopyFrom(
|
7108
|
+
convert_timestamp_to_plumbing(porcelain.timestamp))
|
7109
|
+
return plumbing
|
7110
|
+
|
7111
|
+
|
7112
|
+
def convert_repeated_secret_store_history_to_plumbing(porcelains):
|
7113
|
+
return [
|
7114
|
+
convert_secret_store_history_to_plumbing(porcelain)
|
7115
|
+
for porcelain in porcelains
|
7116
|
+
]
|
7117
|
+
|
7118
|
+
|
7119
|
+
def convert_repeated_secret_store_history_to_porcelain(plumbings):
|
7120
|
+
return [
|
7121
|
+
convert_secret_store_history_to_porcelain(plumbing)
|
7122
|
+
for plumbing in plumbings
|
7123
|
+
]
|
7124
|
+
|
7125
|
+
|
6191
7126
|
def convert_secret_store_update_response_to_porcelain(plumbing):
|
6192
7127
|
if plumbing is None:
|
6193
7128
|
return None
|