strongdm 4.7.0 → 5.0.0

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.
data/lib/grpc/plumbing.rb CHANGED
@@ -58,10 +58,13 @@ require_relative "./roles_history_pb"
58
58
  require_relative "./secret_store_types_pb"
59
59
  require_relative "./secret_stores_pb"
60
60
  require_relative "./secret_stores_history_pb"
61
- require_relative "./workflows_pb"
61
+ require_relative "./workflow_approvers_pb"
62
62
  require_relative "./workflow_approvers_history_pb"
63
+ require_relative "./workflow_assignments_pb"
63
64
  require_relative "./workflow_assignments_history_pb"
65
+ require_relative "./workflow_roles_pb"
64
66
  require_relative "./workflow_roles_history_pb"
67
+ require_relative "./workflows_pb"
65
68
  require_relative "./workflows_history_pb"
66
69
  require_relative "../models/porcelain"
67
70
  require_relative "../errors/errors"
@@ -2444,6 +2447,68 @@ module SDM
2444
2447
  end
2445
2448
  items
2446
2449
  end
2450
+ def self.convert_aurora_postgres_iam_to_porcelain(plumbing)
2451
+ if plumbing == nil
2452
+ return nil
2453
+ end
2454
+ porcelain = AuroraPostgresIAM.new()
2455
+ porcelain.bind_interface = (plumbing.bind_interface)
2456
+ porcelain.database = (plumbing.database)
2457
+ porcelain.egress_filter = (plumbing.egress_filter)
2458
+ porcelain.healthy = (plumbing.healthy)
2459
+ porcelain.hostname = (plumbing.hostname)
2460
+ porcelain.id = (plumbing.id)
2461
+ porcelain.name = (plumbing.name)
2462
+ porcelain.override_database = (plumbing.override_database)
2463
+ porcelain.port = (plumbing.port)
2464
+ porcelain.port_override = (plumbing.port_override)
2465
+ porcelain.region = (plumbing.region)
2466
+ porcelain.secret_store_id = (plumbing.secret_store_id)
2467
+ porcelain.subdomain = (plumbing.subdomain)
2468
+ porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
2469
+ porcelain.username = (plumbing.username)
2470
+ porcelain
2471
+ end
2472
+
2473
+ def self.convert_aurora_postgres_iam_to_plumbing(porcelain)
2474
+ if porcelain == nil
2475
+ return nil
2476
+ end
2477
+ plumbing = V1::AuroraPostgresIAM.new()
2478
+ plumbing.bind_interface = (porcelain.bind_interface)
2479
+ plumbing.database = (porcelain.database)
2480
+ plumbing.egress_filter = (porcelain.egress_filter)
2481
+ plumbing.healthy = (porcelain.healthy)
2482
+ plumbing.hostname = (porcelain.hostname)
2483
+ plumbing.id = (porcelain.id)
2484
+ plumbing.name = (porcelain.name)
2485
+ plumbing.override_database = (porcelain.override_database)
2486
+ plumbing.port = (porcelain.port)
2487
+ plumbing.port_override = (porcelain.port_override)
2488
+ plumbing.region = (porcelain.region)
2489
+ plumbing.secret_store_id = (porcelain.secret_store_id)
2490
+ plumbing.subdomain = (porcelain.subdomain)
2491
+ plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
2492
+ plumbing.username = (porcelain.username)
2493
+ plumbing
2494
+ end
2495
+ def self.convert_repeated_aurora_postgres_iam_to_plumbing(porcelains)
2496
+ items = Array.new
2497
+ porcelains.each do |porcelain|
2498
+ plumbing = convert_aurora_postgres_iam_to_plumbing(porcelain)
2499
+ items.append(plumbing)
2500
+ end
2501
+ items
2502
+ end
2503
+
2504
+ def self.convert_repeated_aurora_postgres_iam_to_porcelain(plumbings)
2505
+ items = Array.new
2506
+ plumbings.each do |plumbing|
2507
+ porcelain = convert_aurora_postgres_iam_to_porcelain(plumbing)
2508
+ items.append(porcelain)
2509
+ end
2510
+ items
2511
+ end
2447
2512
  def self.convert_azure_to_porcelain(plumbing)
2448
2513
  if plumbing == nil
2449
2514
  return nil
@@ -6923,6 +6988,68 @@ module SDM
6923
6988
  end
6924
6989
  items
6925
6990
  end
6991
+ def self.convert_rds_postgres_iam_to_porcelain(plumbing)
6992
+ if plumbing == nil
6993
+ return nil
6994
+ end
6995
+ porcelain = RDSPostgresIAM.new()
6996
+ porcelain.bind_interface = (plumbing.bind_interface)
6997
+ porcelain.database = (plumbing.database)
6998
+ porcelain.egress_filter = (plumbing.egress_filter)
6999
+ porcelain.healthy = (plumbing.healthy)
7000
+ porcelain.hostname = (plumbing.hostname)
7001
+ porcelain.id = (plumbing.id)
7002
+ porcelain.name = (plumbing.name)
7003
+ porcelain.override_database = (plumbing.override_database)
7004
+ porcelain.port = (plumbing.port)
7005
+ porcelain.port_override = (plumbing.port_override)
7006
+ porcelain.region = (plumbing.region)
7007
+ porcelain.secret_store_id = (plumbing.secret_store_id)
7008
+ porcelain.subdomain = (plumbing.subdomain)
7009
+ porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
7010
+ porcelain.username = (plumbing.username)
7011
+ porcelain
7012
+ end
7013
+
7014
+ def self.convert_rds_postgres_iam_to_plumbing(porcelain)
7015
+ if porcelain == nil
7016
+ return nil
7017
+ end
7018
+ plumbing = V1::RDSPostgresIAM.new()
7019
+ plumbing.bind_interface = (porcelain.bind_interface)
7020
+ plumbing.database = (porcelain.database)
7021
+ plumbing.egress_filter = (porcelain.egress_filter)
7022
+ plumbing.healthy = (porcelain.healthy)
7023
+ plumbing.hostname = (porcelain.hostname)
7024
+ plumbing.id = (porcelain.id)
7025
+ plumbing.name = (porcelain.name)
7026
+ plumbing.override_database = (porcelain.override_database)
7027
+ plumbing.port = (porcelain.port)
7028
+ plumbing.port_override = (porcelain.port_override)
7029
+ plumbing.region = (porcelain.region)
7030
+ plumbing.secret_store_id = (porcelain.secret_store_id)
7031
+ plumbing.subdomain = (porcelain.subdomain)
7032
+ plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
7033
+ plumbing.username = (porcelain.username)
7034
+ plumbing
7035
+ end
7036
+ def self.convert_repeated_rds_postgres_iam_to_plumbing(porcelains)
7037
+ items = Array.new
7038
+ porcelains.each do |porcelain|
7039
+ plumbing = convert_rds_postgres_iam_to_plumbing(porcelain)
7040
+ items.append(plumbing)
7041
+ end
7042
+ items
7043
+ end
7044
+
7045
+ def self.convert_repeated_rds_postgres_iam_to_porcelain(plumbings)
7046
+ items = Array.new
7047
+ plumbings.each do |plumbing|
7048
+ porcelain = convert_rds_postgres_iam_to_porcelain(plumbing)
7049
+ items.append(porcelain)
7050
+ end
7051
+ items
7052
+ end
6926
7053
  def self.convert_rabbit_mqamqp_091_to_porcelain(plumbing)
6927
7054
  if plumbing == nil
6928
7055
  return nil
@@ -7712,6 +7839,9 @@ module SDM
7712
7839
  if porcelain.instance_of? AuroraPostgres
7713
7840
  plumbing.aurora_postgres = convert_aurora_postgres_to_plumbing(porcelain)
7714
7841
  end
7842
+ if porcelain.instance_of? AuroraPostgresIAM
7843
+ plumbing.aurora_postgres_iam = convert_aurora_postgres_iam_to_plumbing(porcelain)
7844
+ end
7715
7845
  if porcelain.instance_of? AWS
7716
7846
  plumbing.aws = convert_aws_to_plumbing(porcelain)
7717
7847
  end
@@ -7868,6 +7998,9 @@ module SDM
7868
7998
  if porcelain.instance_of? RDP
7869
7999
  plumbing.rdp = convert_rdp_to_plumbing(porcelain)
7870
8000
  end
8001
+ if porcelain.instance_of? RDSPostgresIAM
8002
+ plumbing.rds_postgres_iam = convert_rds_postgres_iam_to_plumbing(porcelain)
8003
+ end
7871
8004
  if porcelain.instance_of? Redis
7872
8005
  plumbing.redis = convert_redis_to_plumbing(porcelain)
7873
8006
  end
@@ -7962,6 +8095,9 @@ module SDM
7962
8095
  if plumbing.aurora_postgres != nil
7963
8096
  return convert_aurora_postgres_to_porcelain(plumbing.aurora_postgres)
7964
8097
  end
8098
+ if plumbing.aurora_postgres_iam != nil
8099
+ return convert_aurora_postgres_iam_to_porcelain(plumbing.aurora_postgres_iam)
8100
+ end
7965
8101
  if plumbing.aws != nil
7966
8102
  return convert_aws_to_porcelain(plumbing.aws)
7967
8103
  end
@@ -8118,6 +8254,9 @@ module SDM
8118
8254
  if plumbing.rdp != nil
8119
8255
  return convert_rdp_to_porcelain(plumbing.rdp)
8120
8256
  end
8257
+ if plumbing.rds_postgres_iam != nil
8258
+ return convert_rds_postgres_iam_to_porcelain(plumbing.rds_postgres_iam)
8259
+ end
8121
8260
  if plumbing.redis != nil
8122
8261
  return convert_redis_to_porcelain(plumbing.redis)
8123
8262
  end
@@ -10115,6 +10254,7 @@ module SDM
10115
10254
  end
10116
10255
  porcelain = WorkflowApprover.new()
10117
10256
  porcelain.approver_id = (plumbing.approver_id)
10257
+ porcelain.id = (plumbing.id)
10118
10258
  porcelain.workflow_id = (plumbing.workflow_id)
10119
10259
  porcelain
10120
10260
  end
@@ -10125,6 +10265,7 @@ module SDM
10125
10265
  end
10126
10266
  plumbing = V1::WorkflowApprover.new()
10127
10267
  plumbing.approver_id = (porcelain.approver_id)
10268
+ plumbing.id = (porcelain.id)
10128
10269
  plumbing.workflow_id = (porcelain.workflow_id)
10129
10270
  plumbing
10130
10271
  end
@@ -10145,6 +10286,44 @@ module SDM
10145
10286
  end
10146
10287
  items
10147
10288
  end
10289
+ def self.convert_workflow_approver_get_response_to_porcelain(plumbing)
10290
+ if plumbing == nil
10291
+ return nil
10292
+ end
10293
+ porcelain = WorkflowApproverGetResponse.new()
10294
+ porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
10295
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10296
+ porcelain.workflow_approver = convert_workflow_approver_to_porcelain(plumbing.workflow_approver)
10297
+ porcelain
10298
+ end
10299
+
10300
+ def self.convert_workflow_approver_get_response_to_plumbing(porcelain)
10301
+ if porcelain == nil
10302
+ return nil
10303
+ end
10304
+ plumbing = V1::WorkflowApproverGetResponse.new()
10305
+ plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
10306
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10307
+ plumbing.workflow_approver = convert_workflow_approver_to_plumbing(porcelain.workflow_approver)
10308
+ plumbing
10309
+ end
10310
+ def self.convert_repeated_workflow_approver_get_response_to_plumbing(porcelains)
10311
+ items = Array.new
10312
+ porcelains.each do |porcelain|
10313
+ plumbing = convert_workflow_approver_get_response_to_plumbing(porcelain)
10314
+ items.append(plumbing)
10315
+ end
10316
+ items
10317
+ end
10318
+
10319
+ def self.convert_repeated_workflow_approver_get_response_to_porcelain(plumbings)
10320
+ items = Array.new
10321
+ plumbings.each do |plumbing|
10322
+ porcelain = convert_workflow_approver_get_response_to_porcelain(plumbing)
10323
+ items.append(porcelain)
10324
+ end
10325
+ items
10326
+ end
10148
10327
  def self.convert_workflow_approver_history_to_porcelain(plumbing)
10149
10328
  if plumbing == nil
10150
10329
  return nil
@@ -10185,250 +10364,662 @@ module SDM
10185
10364
  end
10186
10365
  items
10187
10366
  end
10188
- def self.convert_workflow_assignment_to_porcelain(plumbing)
10367
+ def self.convert_workflow_approvers_create_request_to_porcelain(plumbing)
10189
10368
  if plumbing == nil
10190
10369
  return nil
10191
10370
  end
10192
- porcelain = WorkflowAssignment.new()
10193
- porcelain.resource_id = (plumbing.resource_id)
10194
- porcelain.workflow_id = (plumbing.workflow_id)
10371
+ porcelain = WorkflowApproversCreateRequest.new()
10372
+ porcelain.meta = convert_create_request_metadata_to_porcelain(plumbing.meta)
10373
+ porcelain.workflow_approver = convert_workflow_approver_to_porcelain(plumbing.workflow_approver)
10195
10374
  porcelain
10196
10375
  end
10197
10376
 
10198
- def self.convert_workflow_assignment_to_plumbing(porcelain)
10377
+ def self.convert_workflow_approvers_create_request_to_plumbing(porcelain)
10199
10378
  if porcelain == nil
10200
10379
  return nil
10201
10380
  end
10202
- plumbing = V1::WorkflowAssignment.new()
10203
- plumbing.resource_id = (porcelain.resource_id)
10204
- plumbing.workflow_id = (porcelain.workflow_id)
10381
+ plumbing = V1::WorkflowApproversCreateRequest.new()
10382
+ plumbing.meta = convert_create_request_metadata_to_plumbing(porcelain.meta)
10383
+ plumbing.workflow_approver = convert_workflow_approver_to_plumbing(porcelain.workflow_approver)
10205
10384
  plumbing
10206
10385
  end
10207
- def self.convert_repeated_workflow_assignment_to_plumbing(porcelains)
10386
+ def self.convert_repeated_workflow_approvers_create_request_to_plumbing(porcelains)
10208
10387
  items = Array.new
10209
10388
  porcelains.each do |porcelain|
10210
- plumbing = convert_workflow_assignment_to_plumbing(porcelain)
10389
+ plumbing = convert_workflow_approvers_create_request_to_plumbing(porcelain)
10211
10390
  items.append(plumbing)
10212
10391
  end
10213
10392
  items
10214
10393
  end
10215
10394
 
10216
- def self.convert_repeated_workflow_assignment_to_porcelain(plumbings)
10395
+ def self.convert_repeated_workflow_approvers_create_request_to_porcelain(plumbings)
10217
10396
  items = Array.new
10218
10397
  plumbings.each do |plumbing|
10219
- porcelain = convert_workflow_assignment_to_porcelain(plumbing)
10398
+ porcelain = convert_workflow_approvers_create_request_to_porcelain(plumbing)
10220
10399
  items.append(porcelain)
10221
10400
  end
10222
10401
  items
10223
10402
  end
10224
- def self.convert_workflow_assignment_history_to_porcelain(plumbing)
10403
+ def self.convert_workflow_approvers_create_response_to_porcelain(plumbing)
10225
10404
  if plumbing == nil
10226
10405
  return nil
10227
10406
  end
10228
- porcelain = WorkflowAssignmentHistory.new()
10229
- porcelain.activity_id = (plumbing.activity_id)
10230
- porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
10231
- porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
10232
- porcelain.workflow_assignment = convert_workflow_assignment_to_porcelain(plumbing.workflow_assignment)
10407
+ porcelain = WorkflowApproversCreateResponse.new()
10408
+ porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
10409
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10410
+ porcelain.workflow_approver = convert_workflow_approver_to_porcelain(plumbing.workflow_approver)
10233
10411
  porcelain
10234
10412
  end
10235
10413
 
10236
- def self.convert_workflow_assignment_history_to_plumbing(porcelain)
10414
+ def self.convert_workflow_approvers_create_response_to_plumbing(porcelain)
10237
10415
  if porcelain == nil
10238
10416
  return nil
10239
10417
  end
10240
- plumbing = V1::WorkflowAssignmentHistory.new()
10241
- plumbing.activity_id = (porcelain.activity_id)
10242
- plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
10243
- plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
10244
- plumbing.workflow_assignment = convert_workflow_assignment_to_plumbing(porcelain.workflow_assignment)
10418
+ plumbing = V1::WorkflowApproversCreateResponse.new()
10419
+ plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta)
10420
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10421
+ plumbing.workflow_approver = convert_workflow_approver_to_plumbing(porcelain.workflow_approver)
10245
10422
  plumbing
10246
10423
  end
10247
- def self.convert_repeated_workflow_assignment_history_to_plumbing(porcelains)
10424
+ def self.convert_repeated_workflow_approvers_create_response_to_plumbing(porcelains)
10248
10425
  items = Array.new
10249
10426
  porcelains.each do |porcelain|
10250
- plumbing = convert_workflow_assignment_history_to_plumbing(porcelain)
10427
+ plumbing = convert_workflow_approvers_create_response_to_plumbing(porcelain)
10251
10428
  items.append(plumbing)
10252
10429
  end
10253
10430
  items
10254
10431
  end
10255
10432
 
10256
- def self.convert_repeated_workflow_assignment_history_to_porcelain(plumbings)
10433
+ def self.convert_repeated_workflow_approvers_create_response_to_porcelain(plumbings)
10257
10434
  items = Array.new
10258
10435
  plumbings.each do |plumbing|
10259
- porcelain = convert_workflow_assignment_history_to_porcelain(plumbing)
10436
+ porcelain = convert_workflow_approvers_create_response_to_porcelain(plumbing)
10260
10437
  items.append(porcelain)
10261
10438
  end
10262
10439
  items
10263
10440
  end
10264
- def self.convert_workflow_history_to_porcelain(plumbing)
10441
+ def self.convert_workflow_approvers_delete_request_to_porcelain(plumbing)
10265
10442
  if plumbing == nil
10266
10443
  return nil
10267
10444
  end
10268
- porcelain = WorkflowHistory.new()
10269
- porcelain.activity_id = (plumbing.activity_id)
10270
- porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
10271
- porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
10272
- porcelain.workflow = convert_workflow_to_porcelain(plumbing.workflow)
10445
+ porcelain = WorkflowApproversDeleteRequest.new()
10446
+ porcelain.id = (plumbing.id)
10447
+ porcelain.meta = convert_delete_request_metadata_to_porcelain(plumbing.meta)
10273
10448
  porcelain
10274
10449
  end
10275
10450
 
10276
- def self.convert_workflow_history_to_plumbing(porcelain)
10451
+ def self.convert_workflow_approvers_delete_request_to_plumbing(porcelain)
10277
10452
  if porcelain == nil
10278
10453
  return nil
10279
10454
  end
10280
- plumbing = V1::WorkflowHistory.new()
10281
- plumbing.activity_id = (porcelain.activity_id)
10282
- plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
10283
- plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
10284
- plumbing.workflow = convert_workflow_to_plumbing(porcelain.workflow)
10455
+ plumbing = V1::WorkflowApproversDeleteRequest.new()
10456
+ plumbing.id = (porcelain.id)
10457
+ plumbing.meta = convert_delete_request_metadata_to_plumbing(porcelain.meta)
10285
10458
  plumbing
10286
10459
  end
10287
- def self.convert_repeated_workflow_history_to_plumbing(porcelains)
10460
+ def self.convert_repeated_workflow_approvers_delete_request_to_plumbing(porcelains)
10288
10461
  items = Array.new
10289
10462
  porcelains.each do |porcelain|
10290
- plumbing = convert_workflow_history_to_plumbing(porcelain)
10463
+ plumbing = convert_workflow_approvers_delete_request_to_plumbing(porcelain)
10291
10464
  items.append(plumbing)
10292
10465
  end
10293
10466
  items
10294
10467
  end
10295
10468
 
10296
- def self.convert_repeated_workflow_history_to_porcelain(plumbings)
10469
+ def self.convert_repeated_workflow_approvers_delete_request_to_porcelain(plumbings)
10297
10470
  items = Array.new
10298
10471
  plumbings.each do |plumbing|
10299
- porcelain = convert_workflow_history_to_porcelain(plumbing)
10472
+ porcelain = convert_workflow_approvers_delete_request_to_porcelain(plumbing)
10300
10473
  items.append(porcelain)
10301
10474
  end
10302
10475
  items
10303
10476
  end
10304
- def self.convert_workflow_list_request_to_porcelain(plumbing)
10477
+ def self.convert_workflow_approvers_delete_response_to_porcelain(plumbing)
10305
10478
  if plumbing == nil
10306
10479
  return nil
10307
10480
  end
10308
- porcelain = WorkflowListRequest.new()
10309
- porcelain.filter = (plumbing.filter)
10310
- porcelain.meta = convert_list_request_metadata_to_porcelain(plumbing.meta)
10481
+ porcelain = WorkflowApproversDeleteResponse.new()
10482
+ porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
10483
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10311
10484
  porcelain
10312
10485
  end
10313
10486
 
10314
- def self.convert_workflow_list_request_to_plumbing(porcelain)
10487
+ def self.convert_workflow_approvers_delete_response_to_plumbing(porcelain)
10315
10488
  if porcelain == nil
10316
10489
  return nil
10317
10490
  end
10318
- plumbing = V1::WorkflowListRequest.new()
10319
- plumbing.filter = (porcelain.filter)
10320
- plumbing.meta = convert_list_request_metadata_to_plumbing(porcelain.meta)
10491
+ plumbing = V1::WorkflowApproversDeleteResponse.new()
10492
+ plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta)
10493
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10321
10494
  plumbing
10322
10495
  end
10323
- def self.convert_repeated_workflow_list_request_to_plumbing(porcelains)
10496
+ def self.convert_repeated_workflow_approvers_delete_response_to_plumbing(porcelains)
10324
10497
  items = Array.new
10325
10498
  porcelains.each do |porcelain|
10326
- plumbing = convert_workflow_list_request_to_plumbing(porcelain)
10499
+ plumbing = convert_workflow_approvers_delete_response_to_plumbing(porcelain)
10327
10500
  items.append(plumbing)
10328
10501
  end
10329
10502
  items
10330
10503
  end
10331
10504
 
10332
- def self.convert_repeated_workflow_list_request_to_porcelain(plumbings)
10505
+ def self.convert_repeated_workflow_approvers_delete_response_to_porcelain(plumbings)
10333
10506
  items = Array.new
10334
10507
  plumbings.each do |plumbing|
10335
- porcelain = convert_workflow_list_request_to_porcelain(plumbing)
10508
+ porcelain = convert_workflow_approvers_delete_response_to_porcelain(plumbing)
10336
10509
  items.append(porcelain)
10337
10510
  end
10338
10511
  items
10339
10512
  end
10340
- def self.convert_workflow_list_response_to_porcelain(plumbing)
10513
+ def self.convert_workflow_approvers_list_request_to_porcelain(plumbing)
10341
10514
  if plumbing == nil
10342
10515
  return nil
10343
10516
  end
10344
- porcelain = WorkflowListResponse.new()
10345
- porcelain.meta = convert_list_response_metadata_to_porcelain(plumbing.meta)
10346
- porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10347
- porcelain.workflows = convert_repeated_workflow_to_porcelain(plumbing.workflows)
10517
+ porcelain = WorkflowApproversListRequest.new()
10518
+ porcelain.filter = (plumbing.filter)
10519
+ porcelain.meta = convert_list_request_metadata_to_porcelain(plumbing.meta)
10348
10520
  porcelain
10349
10521
  end
10350
10522
 
10351
- def self.convert_workflow_list_response_to_plumbing(porcelain)
10523
+ def self.convert_workflow_approvers_list_request_to_plumbing(porcelain)
10352
10524
  if porcelain == nil
10353
10525
  return nil
10354
10526
  end
10355
- plumbing = V1::WorkflowListResponse.new()
10356
- plumbing.meta = convert_list_response_metadata_to_plumbing(porcelain.meta)
10357
- plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10358
- plumbing.workflows += convert_repeated_workflow_to_plumbing(porcelain.workflows)
10527
+ plumbing = V1::WorkflowApproversListRequest.new()
10528
+ plumbing.filter = (porcelain.filter)
10529
+ plumbing.meta = convert_list_request_metadata_to_plumbing(porcelain.meta)
10359
10530
  plumbing
10360
10531
  end
10361
- def self.convert_repeated_workflow_list_response_to_plumbing(porcelains)
10532
+ def self.convert_repeated_workflow_approvers_list_request_to_plumbing(porcelains)
10362
10533
  items = Array.new
10363
10534
  porcelains.each do |porcelain|
10364
- plumbing = convert_workflow_list_response_to_plumbing(porcelain)
10535
+ plumbing = convert_workflow_approvers_list_request_to_plumbing(porcelain)
10365
10536
  items.append(plumbing)
10366
10537
  end
10367
10538
  items
10368
10539
  end
10369
10540
 
10370
- def self.convert_repeated_workflow_list_response_to_porcelain(plumbings)
10541
+ def self.convert_repeated_workflow_approvers_list_request_to_porcelain(plumbings)
10371
10542
  items = Array.new
10372
10543
  plumbings.each do |plumbing|
10373
- porcelain = convert_workflow_list_response_to_porcelain(plumbing)
10544
+ porcelain = convert_workflow_approvers_list_request_to_porcelain(plumbing)
10374
10545
  items.append(porcelain)
10375
10546
  end
10376
10547
  items
10377
10548
  end
10378
- def self.convert_workflow_role_to_porcelain(plumbing)
10549
+ def self.convert_workflow_approvers_list_response_to_porcelain(plumbing)
10379
10550
  if plumbing == nil
10380
10551
  return nil
10381
10552
  end
10382
- porcelain = WorkflowRole.new()
10383
- porcelain.role_id = (plumbing.role_id)
10384
- porcelain.workflow_id = (plumbing.workflow_id)
10553
+ porcelain = WorkflowApproversListResponse.new()
10554
+ porcelain.meta = convert_list_response_metadata_to_porcelain(plumbing.meta)
10555
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10556
+ porcelain.workflow_approvers = convert_repeated_workflow_approver_to_porcelain(plumbing.workflow_approvers)
10385
10557
  porcelain
10386
10558
  end
10387
10559
 
10388
- def self.convert_workflow_role_to_plumbing(porcelain)
10560
+ def self.convert_workflow_approvers_list_response_to_plumbing(porcelain)
10389
10561
  if porcelain == nil
10390
10562
  return nil
10391
10563
  end
10392
- plumbing = V1::WorkflowRole.new()
10393
- plumbing.role_id = (porcelain.role_id)
10394
- plumbing.workflow_id = (porcelain.workflow_id)
10564
+ plumbing = V1::WorkflowApproversListResponse.new()
10565
+ plumbing.meta = convert_list_response_metadata_to_plumbing(porcelain.meta)
10566
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10567
+ plumbing.workflow_approvers += convert_repeated_workflow_approver_to_plumbing(porcelain.workflow_approvers)
10395
10568
  plumbing
10396
10569
  end
10397
- def self.convert_repeated_workflow_role_to_plumbing(porcelains)
10570
+ def self.convert_repeated_workflow_approvers_list_response_to_plumbing(porcelains)
10398
10571
  items = Array.new
10399
10572
  porcelains.each do |porcelain|
10400
- plumbing = convert_workflow_role_to_plumbing(porcelain)
10573
+ plumbing = convert_workflow_approvers_list_response_to_plumbing(porcelain)
10401
10574
  items.append(plumbing)
10402
10575
  end
10403
10576
  items
10404
10577
  end
10405
10578
 
10406
- def self.convert_repeated_workflow_role_to_porcelain(plumbings)
10579
+ def self.convert_repeated_workflow_approvers_list_response_to_porcelain(plumbings)
10407
10580
  items = Array.new
10408
10581
  plumbings.each do |plumbing|
10409
- porcelain = convert_workflow_role_to_porcelain(plumbing)
10582
+ porcelain = convert_workflow_approvers_list_response_to_porcelain(plumbing)
10410
10583
  items.append(porcelain)
10411
10584
  end
10412
10585
  items
10413
10586
  end
10414
- def self.convert_workflow_role_history_to_porcelain(plumbing)
10587
+ def self.convert_workflow_assignment_to_porcelain(plumbing)
10415
10588
  if plumbing == nil
10416
10589
  return nil
10417
10590
  end
10418
- porcelain = WorkflowRoleHistory.new()
10419
- porcelain.activity_id = (plumbing.activity_id)
10420
- porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
10421
- porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
10422
- porcelain.workflow_role = convert_workflow_role_to_porcelain(plumbing.workflow_role)
10591
+ porcelain = WorkflowAssignment.new()
10592
+ porcelain.resource_id = (plumbing.resource_id)
10593
+ porcelain.workflow_id = (plumbing.workflow_id)
10423
10594
  porcelain
10424
10595
  end
10425
10596
 
10426
- def self.convert_workflow_role_history_to_plumbing(porcelain)
10597
+ def self.convert_workflow_assignment_to_plumbing(porcelain)
10427
10598
  if porcelain == nil
10428
10599
  return nil
10429
10600
  end
10430
- plumbing = V1::WorkflowRoleHistory.new()
10431
- plumbing.activity_id = (porcelain.activity_id)
10601
+ plumbing = V1::WorkflowAssignment.new()
10602
+ plumbing.resource_id = (porcelain.resource_id)
10603
+ plumbing.workflow_id = (porcelain.workflow_id)
10604
+ plumbing
10605
+ end
10606
+ def self.convert_repeated_workflow_assignment_to_plumbing(porcelains)
10607
+ items = Array.new
10608
+ porcelains.each do |porcelain|
10609
+ plumbing = convert_workflow_assignment_to_plumbing(porcelain)
10610
+ items.append(plumbing)
10611
+ end
10612
+ items
10613
+ end
10614
+
10615
+ def self.convert_repeated_workflow_assignment_to_porcelain(plumbings)
10616
+ items = Array.new
10617
+ plumbings.each do |plumbing|
10618
+ porcelain = convert_workflow_assignment_to_porcelain(plumbing)
10619
+ items.append(porcelain)
10620
+ end
10621
+ items
10622
+ end
10623
+ def self.convert_workflow_assignment_history_to_porcelain(plumbing)
10624
+ if plumbing == nil
10625
+ return nil
10626
+ end
10627
+ porcelain = WorkflowAssignmentHistory.new()
10628
+ porcelain.activity_id = (plumbing.activity_id)
10629
+ porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
10630
+ porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
10631
+ porcelain.workflow_assignment = convert_workflow_assignment_to_porcelain(plumbing.workflow_assignment)
10632
+ porcelain
10633
+ end
10634
+
10635
+ def self.convert_workflow_assignment_history_to_plumbing(porcelain)
10636
+ if porcelain == nil
10637
+ return nil
10638
+ end
10639
+ plumbing = V1::WorkflowAssignmentHistory.new()
10640
+ plumbing.activity_id = (porcelain.activity_id)
10641
+ plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
10642
+ plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
10643
+ plumbing.workflow_assignment = convert_workflow_assignment_to_plumbing(porcelain.workflow_assignment)
10644
+ plumbing
10645
+ end
10646
+ def self.convert_repeated_workflow_assignment_history_to_plumbing(porcelains)
10647
+ items = Array.new
10648
+ porcelains.each do |porcelain|
10649
+ plumbing = convert_workflow_assignment_history_to_plumbing(porcelain)
10650
+ items.append(plumbing)
10651
+ end
10652
+ items
10653
+ end
10654
+
10655
+ def self.convert_repeated_workflow_assignment_history_to_porcelain(plumbings)
10656
+ items = Array.new
10657
+ plumbings.each do |plumbing|
10658
+ porcelain = convert_workflow_assignment_history_to_porcelain(plumbing)
10659
+ items.append(porcelain)
10660
+ end
10661
+ items
10662
+ end
10663
+ def self.convert_workflow_assignments_list_request_to_porcelain(plumbing)
10664
+ if plumbing == nil
10665
+ return nil
10666
+ end
10667
+ porcelain = WorkflowAssignmentsListRequest.new()
10668
+ porcelain.filter = (plumbing.filter)
10669
+ porcelain.meta = convert_list_request_metadata_to_porcelain(plumbing.meta)
10670
+ porcelain
10671
+ end
10672
+
10673
+ def self.convert_workflow_assignments_list_request_to_plumbing(porcelain)
10674
+ if porcelain == nil
10675
+ return nil
10676
+ end
10677
+ plumbing = V1::WorkflowAssignmentsListRequest.new()
10678
+ plumbing.filter = (porcelain.filter)
10679
+ plumbing.meta = convert_list_request_metadata_to_plumbing(porcelain.meta)
10680
+ plumbing
10681
+ end
10682
+ def self.convert_repeated_workflow_assignments_list_request_to_plumbing(porcelains)
10683
+ items = Array.new
10684
+ porcelains.each do |porcelain|
10685
+ plumbing = convert_workflow_assignments_list_request_to_plumbing(porcelain)
10686
+ items.append(plumbing)
10687
+ end
10688
+ items
10689
+ end
10690
+
10691
+ def self.convert_repeated_workflow_assignments_list_request_to_porcelain(plumbings)
10692
+ items = Array.new
10693
+ plumbings.each do |plumbing|
10694
+ porcelain = convert_workflow_assignments_list_request_to_porcelain(plumbing)
10695
+ items.append(porcelain)
10696
+ end
10697
+ items
10698
+ end
10699
+ def self.convert_workflow_assignments_list_response_to_porcelain(plumbing)
10700
+ if plumbing == nil
10701
+ return nil
10702
+ end
10703
+ porcelain = WorkflowAssignmentsListResponse.new()
10704
+ porcelain.meta = convert_list_response_metadata_to_porcelain(plumbing.meta)
10705
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10706
+ porcelain.workflow_assignments = convert_repeated_workflow_assignment_to_porcelain(plumbing.workflow_assignments)
10707
+ porcelain
10708
+ end
10709
+
10710
+ def self.convert_workflow_assignments_list_response_to_plumbing(porcelain)
10711
+ if porcelain == nil
10712
+ return nil
10713
+ end
10714
+ plumbing = V1::WorkflowAssignmentsListResponse.new()
10715
+ plumbing.meta = convert_list_response_metadata_to_plumbing(porcelain.meta)
10716
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10717
+ plumbing.workflow_assignments += convert_repeated_workflow_assignment_to_plumbing(porcelain.workflow_assignments)
10718
+ plumbing
10719
+ end
10720
+ def self.convert_repeated_workflow_assignments_list_response_to_plumbing(porcelains)
10721
+ items = Array.new
10722
+ porcelains.each do |porcelain|
10723
+ plumbing = convert_workflow_assignments_list_response_to_plumbing(porcelain)
10724
+ items.append(plumbing)
10725
+ end
10726
+ items
10727
+ end
10728
+
10729
+ def self.convert_repeated_workflow_assignments_list_response_to_porcelain(plumbings)
10730
+ items = Array.new
10731
+ plumbings.each do |plumbing|
10732
+ porcelain = convert_workflow_assignments_list_response_to_porcelain(plumbing)
10733
+ items.append(porcelain)
10734
+ end
10735
+ items
10736
+ end
10737
+ def self.convert_workflow_create_response_to_porcelain(plumbing)
10738
+ if plumbing == nil
10739
+ return nil
10740
+ end
10741
+ porcelain = WorkflowCreateResponse.new()
10742
+ porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
10743
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10744
+ porcelain.workflow = convert_workflow_to_porcelain(plumbing.workflow)
10745
+ porcelain
10746
+ end
10747
+
10748
+ def self.convert_workflow_create_response_to_plumbing(porcelain)
10749
+ if porcelain == nil
10750
+ return nil
10751
+ end
10752
+ plumbing = V1::WorkflowCreateResponse.new()
10753
+ plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta)
10754
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10755
+ plumbing.workflow = convert_workflow_to_plumbing(porcelain.workflow)
10756
+ plumbing
10757
+ end
10758
+ def self.convert_repeated_workflow_create_response_to_plumbing(porcelains)
10759
+ items = Array.new
10760
+ porcelains.each do |porcelain|
10761
+ plumbing = convert_workflow_create_response_to_plumbing(porcelain)
10762
+ items.append(plumbing)
10763
+ end
10764
+ items
10765
+ end
10766
+
10767
+ def self.convert_repeated_workflow_create_response_to_porcelain(plumbings)
10768
+ items = Array.new
10769
+ plumbings.each do |plumbing|
10770
+ porcelain = convert_workflow_create_response_to_porcelain(plumbing)
10771
+ items.append(porcelain)
10772
+ end
10773
+ items
10774
+ end
10775
+ def self.convert_workflow_delete_response_to_porcelain(plumbing)
10776
+ if plumbing == nil
10777
+ return nil
10778
+ end
10779
+ porcelain = WorkflowDeleteResponse.new()
10780
+ porcelain.id = (plumbing.id)
10781
+ porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
10782
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10783
+ porcelain
10784
+ end
10785
+
10786
+ def self.convert_workflow_delete_response_to_plumbing(porcelain)
10787
+ if porcelain == nil
10788
+ return nil
10789
+ end
10790
+ plumbing = V1::WorkflowDeleteResponse.new()
10791
+ plumbing.id = (porcelain.id)
10792
+ plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta)
10793
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10794
+ plumbing
10795
+ end
10796
+ def self.convert_repeated_workflow_delete_response_to_plumbing(porcelains)
10797
+ items = Array.new
10798
+ porcelains.each do |porcelain|
10799
+ plumbing = convert_workflow_delete_response_to_plumbing(porcelain)
10800
+ items.append(plumbing)
10801
+ end
10802
+ items
10803
+ end
10804
+
10805
+ def self.convert_repeated_workflow_delete_response_to_porcelain(plumbings)
10806
+ items = Array.new
10807
+ plumbings.each do |plumbing|
10808
+ porcelain = convert_workflow_delete_response_to_porcelain(plumbing)
10809
+ items.append(porcelain)
10810
+ end
10811
+ items
10812
+ end
10813
+ def self.convert_workflow_get_response_to_porcelain(plumbing)
10814
+ if plumbing == nil
10815
+ return nil
10816
+ end
10817
+ porcelain = WorkflowGetResponse.new()
10818
+ porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
10819
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10820
+ porcelain.workflow = convert_workflow_to_porcelain(plumbing.workflow)
10821
+ porcelain
10822
+ end
10823
+
10824
+ def self.convert_workflow_get_response_to_plumbing(porcelain)
10825
+ if porcelain == nil
10826
+ return nil
10827
+ end
10828
+ plumbing = V1::WorkflowGetResponse.new()
10829
+ plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
10830
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10831
+ plumbing.workflow = convert_workflow_to_plumbing(porcelain.workflow)
10832
+ plumbing
10833
+ end
10834
+ def self.convert_repeated_workflow_get_response_to_plumbing(porcelains)
10835
+ items = Array.new
10836
+ porcelains.each do |porcelain|
10837
+ plumbing = convert_workflow_get_response_to_plumbing(porcelain)
10838
+ items.append(plumbing)
10839
+ end
10840
+ items
10841
+ end
10842
+
10843
+ def self.convert_repeated_workflow_get_response_to_porcelain(plumbings)
10844
+ items = Array.new
10845
+ plumbings.each do |plumbing|
10846
+ porcelain = convert_workflow_get_response_to_porcelain(plumbing)
10847
+ items.append(porcelain)
10848
+ end
10849
+ items
10850
+ end
10851
+ def self.convert_workflow_history_to_porcelain(plumbing)
10852
+ if plumbing == nil
10853
+ return nil
10854
+ end
10855
+ porcelain = WorkflowHistory.new()
10856
+ porcelain.activity_id = (plumbing.activity_id)
10857
+ porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
10858
+ porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
10859
+ porcelain.workflow = convert_workflow_to_porcelain(plumbing.workflow)
10860
+ porcelain
10861
+ end
10862
+
10863
+ def self.convert_workflow_history_to_plumbing(porcelain)
10864
+ if porcelain == nil
10865
+ return nil
10866
+ end
10867
+ plumbing = V1::WorkflowHistory.new()
10868
+ plumbing.activity_id = (porcelain.activity_id)
10869
+ plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
10870
+ plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
10871
+ plumbing.workflow = convert_workflow_to_plumbing(porcelain.workflow)
10872
+ plumbing
10873
+ end
10874
+ def self.convert_repeated_workflow_history_to_plumbing(porcelains)
10875
+ items = Array.new
10876
+ porcelains.each do |porcelain|
10877
+ plumbing = convert_workflow_history_to_plumbing(porcelain)
10878
+ items.append(plumbing)
10879
+ end
10880
+ items
10881
+ end
10882
+
10883
+ def self.convert_repeated_workflow_history_to_porcelain(plumbings)
10884
+ items = Array.new
10885
+ plumbings.each do |plumbing|
10886
+ porcelain = convert_workflow_history_to_porcelain(plumbing)
10887
+ items.append(porcelain)
10888
+ end
10889
+ items
10890
+ end
10891
+ def self.convert_workflow_list_response_to_porcelain(plumbing)
10892
+ if plumbing == nil
10893
+ return nil
10894
+ end
10895
+ porcelain = WorkflowListResponse.new()
10896
+ porcelain.meta = convert_list_response_metadata_to_porcelain(plumbing.meta)
10897
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10898
+ porcelain.workflows = convert_repeated_workflow_to_porcelain(plumbing.workflows)
10899
+ porcelain
10900
+ end
10901
+
10902
+ def self.convert_workflow_list_response_to_plumbing(porcelain)
10903
+ if porcelain == nil
10904
+ return nil
10905
+ end
10906
+ plumbing = V1::WorkflowListResponse.new()
10907
+ plumbing.meta = convert_list_response_metadata_to_plumbing(porcelain.meta)
10908
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10909
+ plumbing.workflows += convert_repeated_workflow_to_plumbing(porcelain.workflows)
10910
+ plumbing
10911
+ end
10912
+ def self.convert_repeated_workflow_list_response_to_plumbing(porcelains)
10913
+ items = Array.new
10914
+ porcelains.each do |porcelain|
10915
+ plumbing = convert_workflow_list_response_to_plumbing(porcelain)
10916
+ items.append(plumbing)
10917
+ end
10918
+ items
10919
+ end
10920
+
10921
+ def self.convert_repeated_workflow_list_response_to_porcelain(plumbings)
10922
+ items = Array.new
10923
+ plumbings.each do |plumbing|
10924
+ porcelain = convert_workflow_list_response_to_porcelain(plumbing)
10925
+ items.append(porcelain)
10926
+ end
10927
+ items
10928
+ end
10929
+ def self.convert_workflow_role_to_porcelain(plumbing)
10930
+ if plumbing == nil
10931
+ return nil
10932
+ end
10933
+ porcelain = WorkflowRole.new()
10934
+ porcelain.id = (plumbing.id)
10935
+ porcelain.role_id = (plumbing.role_id)
10936
+ porcelain.workflow_id = (plumbing.workflow_id)
10937
+ porcelain
10938
+ end
10939
+
10940
+ def self.convert_workflow_role_to_plumbing(porcelain)
10941
+ if porcelain == nil
10942
+ return nil
10943
+ end
10944
+ plumbing = V1::WorkflowRole.new()
10945
+ plumbing.id = (porcelain.id)
10946
+ plumbing.role_id = (porcelain.role_id)
10947
+ plumbing.workflow_id = (porcelain.workflow_id)
10948
+ plumbing
10949
+ end
10950
+ def self.convert_repeated_workflow_role_to_plumbing(porcelains)
10951
+ items = Array.new
10952
+ porcelains.each do |porcelain|
10953
+ plumbing = convert_workflow_role_to_plumbing(porcelain)
10954
+ items.append(plumbing)
10955
+ end
10956
+ items
10957
+ end
10958
+
10959
+ def self.convert_repeated_workflow_role_to_porcelain(plumbings)
10960
+ items = Array.new
10961
+ plumbings.each do |plumbing|
10962
+ porcelain = convert_workflow_role_to_porcelain(plumbing)
10963
+ items.append(porcelain)
10964
+ end
10965
+ items
10966
+ end
10967
+ def self.convert_workflow_role_get_response_to_porcelain(plumbing)
10968
+ if plumbing == nil
10969
+ return nil
10970
+ end
10971
+ porcelain = WorkflowRoleGetResponse.new()
10972
+ porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
10973
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
10974
+ porcelain.workflow_role = convert_workflow_role_to_porcelain(plumbing.workflow_role)
10975
+ porcelain
10976
+ end
10977
+
10978
+ def self.convert_workflow_role_get_response_to_plumbing(porcelain)
10979
+ if porcelain == nil
10980
+ return nil
10981
+ end
10982
+ plumbing = V1::WorkflowRoleGetResponse.new()
10983
+ plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
10984
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
10985
+ plumbing.workflow_role = convert_workflow_role_to_plumbing(porcelain.workflow_role)
10986
+ plumbing
10987
+ end
10988
+ def self.convert_repeated_workflow_role_get_response_to_plumbing(porcelains)
10989
+ items = Array.new
10990
+ porcelains.each do |porcelain|
10991
+ plumbing = convert_workflow_role_get_response_to_plumbing(porcelain)
10992
+ items.append(plumbing)
10993
+ end
10994
+ items
10995
+ end
10996
+
10997
+ def self.convert_repeated_workflow_role_get_response_to_porcelain(plumbings)
10998
+ items = Array.new
10999
+ plumbings.each do |plumbing|
11000
+ porcelain = convert_workflow_role_get_response_to_porcelain(plumbing)
11001
+ items.append(porcelain)
11002
+ end
11003
+ items
11004
+ end
11005
+ def self.convert_workflow_role_history_to_porcelain(plumbing)
11006
+ if plumbing == nil
11007
+ return nil
11008
+ end
11009
+ porcelain = WorkflowRoleHistory.new()
11010
+ porcelain.activity_id = (plumbing.activity_id)
11011
+ porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
11012
+ porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
11013
+ porcelain.workflow_role = convert_workflow_role_to_porcelain(plumbing.workflow_role)
11014
+ porcelain
11015
+ end
11016
+
11017
+ def self.convert_workflow_role_history_to_plumbing(porcelain)
11018
+ if porcelain == nil
11019
+ return nil
11020
+ end
11021
+ plumbing = V1::WorkflowRoleHistory.new()
11022
+ plumbing.activity_id = (porcelain.activity_id)
10432
11023
  plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
10433
11024
  plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
10434
11025
  plumbing.workflow_role = convert_workflow_role_to_plumbing(porcelain.workflow_role)
@@ -10451,6 +11042,264 @@ module SDM
10451
11042
  end
10452
11043
  items
10453
11044
  end
11045
+ def self.convert_workflow_roles_create_request_to_porcelain(plumbing)
11046
+ if plumbing == nil
11047
+ return nil
11048
+ end
11049
+ porcelain = WorkflowRolesCreateRequest.new()
11050
+ porcelain.meta = convert_create_request_metadata_to_porcelain(plumbing.meta)
11051
+ porcelain.workflow_role = convert_workflow_role_to_porcelain(plumbing.workflow_role)
11052
+ porcelain
11053
+ end
11054
+
11055
+ def self.convert_workflow_roles_create_request_to_plumbing(porcelain)
11056
+ if porcelain == nil
11057
+ return nil
11058
+ end
11059
+ plumbing = V1::WorkflowRolesCreateRequest.new()
11060
+ plumbing.meta = convert_create_request_metadata_to_plumbing(porcelain.meta)
11061
+ plumbing.workflow_role = convert_workflow_role_to_plumbing(porcelain.workflow_role)
11062
+ plumbing
11063
+ end
11064
+ def self.convert_repeated_workflow_roles_create_request_to_plumbing(porcelains)
11065
+ items = Array.new
11066
+ porcelains.each do |porcelain|
11067
+ plumbing = convert_workflow_roles_create_request_to_plumbing(porcelain)
11068
+ items.append(plumbing)
11069
+ end
11070
+ items
11071
+ end
11072
+
11073
+ def self.convert_repeated_workflow_roles_create_request_to_porcelain(plumbings)
11074
+ items = Array.new
11075
+ plumbings.each do |plumbing|
11076
+ porcelain = convert_workflow_roles_create_request_to_porcelain(plumbing)
11077
+ items.append(porcelain)
11078
+ end
11079
+ items
11080
+ end
11081
+ def self.convert_workflow_roles_create_response_to_porcelain(plumbing)
11082
+ if plumbing == nil
11083
+ return nil
11084
+ end
11085
+ porcelain = WorkflowRolesCreateResponse.new()
11086
+ porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
11087
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
11088
+ porcelain.workflow_role = convert_workflow_role_to_porcelain(plumbing.workflow_role)
11089
+ porcelain
11090
+ end
11091
+
11092
+ def self.convert_workflow_roles_create_response_to_plumbing(porcelain)
11093
+ if porcelain == nil
11094
+ return nil
11095
+ end
11096
+ plumbing = V1::WorkflowRolesCreateResponse.new()
11097
+ plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta)
11098
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
11099
+ plumbing.workflow_role = convert_workflow_role_to_plumbing(porcelain.workflow_role)
11100
+ plumbing
11101
+ end
11102
+ def self.convert_repeated_workflow_roles_create_response_to_plumbing(porcelains)
11103
+ items = Array.new
11104
+ porcelains.each do |porcelain|
11105
+ plumbing = convert_workflow_roles_create_response_to_plumbing(porcelain)
11106
+ items.append(plumbing)
11107
+ end
11108
+ items
11109
+ end
11110
+
11111
+ def self.convert_repeated_workflow_roles_create_response_to_porcelain(plumbings)
11112
+ items = Array.new
11113
+ plumbings.each do |plumbing|
11114
+ porcelain = convert_workflow_roles_create_response_to_porcelain(plumbing)
11115
+ items.append(porcelain)
11116
+ end
11117
+ items
11118
+ end
11119
+ def self.convert_workflow_roles_delete_request_to_porcelain(plumbing)
11120
+ if plumbing == nil
11121
+ return nil
11122
+ end
11123
+ porcelain = WorkflowRolesDeleteRequest.new()
11124
+ porcelain.id = (plumbing.id)
11125
+ porcelain.meta = convert_delete_request_metadata_to_porcelain(plumbing.meta)
11126
+ porcelain
11127
+ end
11128
+
11129
+ def self.convert_workflow_roles_delete_request_to_plumbing(porcelain)
11130
+ if porcelain == nil
11131
+ return nil
11132
+ end
11133
+ plumbing = V1::WorkflowRolesDeleteRequest.new()
11134
+ plumbing.id = (porcelain.id)
11135
+ plumbing.meta = convert_delete_request_metadata_to_plumbing(porcelain.meta)
11136
+ plumbing
11137
+ end
11138
+ def self.convert_repeated_workflow_roles_delete_request_to_plumbing(porcelains)
11139
+ items = Array.new
11140
+ porcelains.each do |porcelain|
11141
+ plumbing = convert_workflow_roles_delete_request_to_plumbing(porcelain)
11142
+ items.append(plumbing)
11143
+ end
11144
+ items
11145
+ end
11146
+
11147
+ def self.convert_repeated_workflow_roles_delete_request_to_porcelain(plumbings)
11148
+ items = Array.new
11149
+ plumbings.each do |plumbing|
11150
+ porcelain = convert_workflow_roles_delete_request_to_porcelain(plumbing)
11151
+ items.append(porcelain)
11152
+ end
11153
+ items
11154
+ end
11155
+ def self.convert_workflow_roles_delete_response_to_porcelain(plumbing)
11156
+ if plumbing == nil
11157
+ return nil
11158
+ end
11159
+ porcelain = WorkflowRolesDeleteResponse.new()
11160
+ porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
11161
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
11162
+ porcelain
11163
+ end
11164
+
11165
+ def self.convert_workflow_roles_delete_response_to_plumbing(porcelain)
11166
+ if porcelain == nil
11167
+ return nil
11168
+ end
11169
+ plumbing = V1::WorkflowRolesDeleteResponse.new()
11170
+ plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta)
11171
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
11172
+ plumbing
11173
+ end
11174
+ def self.convert_repeated_workflow_roles_delete_response_to_plumbing(porcelains)
11175
+ items = Array.new
11176
+ porcelains.each do |porcelain|
11177
+ plumbing = convert_workflow_roles_delete_response_to_plumbing(porcelain)
11178
+ items.append(plumbing)
11179
+ end
11180
+ items
11181
+ end
11182
+
11183
+ def self.convert_repeated_workflow_roles_delete_response_to_porcelain(plumbings)
11184
+ items = Array.new
11185
+ plumbings.each do |plumbing|
11186
+ porcelain = convert_workflow_roles_delete_response_to_porcelain(plumbing)
11187
+ items.append(porcelain)
11188
+ end
11189
+ items
11190
+ end
11191
+ def self.convert_workflow_roles_list_request_to_porcelain(plumbing)
11192
+ if plumbing == nil
11193
+ return nil
11194
+ end
11195
+ porcelain = WorkflowRolesListRequest.new()
11196
+ porcelain.filter = (plumbing.filter)
11197
+ porcelain.meta = convert_list_request_metadata_to_porcelain(plumbing.meta)
11198
+ porcelain
11199
+ end
11200
+
11201
+ def self.convert_workflow_roles_list_request_to_plumbing(porcelain)
11202
+ if porcelain == nil
11203
+ return nil
11204
+ end
11205
+ plumbing = V1::WorkflowRolesListRequest.new()
11206
+ plumbing.filter = (porcelain.filter)
11207
+ plumbing.meta = convert_list_request_metadata_to_plumbing(porcelain.meta)
11208
+ plumbing
11209
+ end
11210
+ def self.convert_repeated_workflow_roles_list_request_to_plumbing(porcelains)
11211
+ items = Array.new
11212
+ porcelains.each do |porcelain|
11213
+ plumbing = convert_workflow_roles_list_request_to_plumbing(porcelain)
11214
+ items.append(plumbing)
11215
+ end
11216
+ items
11217
+ end
11218
+
11219
+ def self.convert_repeated_workflow_roles_list_request_to_porcelain(plumbings)
11220
+ items = Array.new
11221
+ plumbings.each do |plumbing|
11222
+ porcelain = convert_workflow_roles_list_request_to_porcelain(plumbing)
11223
+ items.append(porcelain)
11224
+ end
11225
+ items
11226
+ end
11227
+ def self.convert_workflow_roles_list_response_to_porcelain(plumbing)
11228
+ if plumbing == nil
11229
+ return nil
11230
+ end
11231
+ porcelain = WorkflowRolesListResponse.new()
11232
+ porcelain.meta = convert_list_response_metadata_to_porcelain(plumbing.meta)
11233
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
11234
+ porcelain.workflow_role = convert_repeated_workflow_role_to_porcelain(plumbing.workflow_role)
11235
+ porcelain
11236
+ end
11237
+
11238
+ def self.convert_workflow_roles_list_response_to_plumbing(porcelain)
11239
+ if porcelain == nil
11240
+ return nil
11241
+ end
11242
+ plumbing = V1::WorkflowRolesListResponse.new()
11243
+ plumbing.meta = convert_list_response_metadata_to_plumbing(porcelain.meta)
11244
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
11245
+ plumbing.workflow_role += convert_repeated_workflow_role_to_plumbing(porcelain.workflow_role)
11246
+ plumbing
11247
+ end
11248
+ def self.convert_repeated_workflow_roles_list_response_to_plumbing(porcelains)
11249
+ items = Array.new
11250
+ porcelains.each do |porcelain|
11251
+ plumbing = convert_workflow_roles_list_response_to_plumbing(porcelain)
11252
+ items.append(plumbing)
11253
+ end
11254
+ items
11255
+ end
11256
+
11257
+ def self.convert_repeated_workflow_roles_list_response_to_porcelain(plumbings)
11258
+ items = Array.new
11259
+ plumbings.each do |plumbing|
11260
+ porcelain = convert_workflow_roles_list_response_to_porcelain(plumbing)
11261
+ items.append(porcelain)
11262
+ end
11263
+ items
11264
+ end
11265
+ def self.convert_workflow_update_response_to_porcelain(plumbing)
11266
+ if plumbing == nil
11267
+ return nil
11268
+ end
11269
+ porcelain = WorkflowUpdateResponse.new()
11270
+ porcelain.meta = convert_update_response_metadata_to_porcelain(plumbing.meta)
11271
+ porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
11272
+ porcelain.workflow = convert_workflow_to_porcelain(plumbing.workflow)
11273
+ porcelain
11274
+ end
11275
+
11276
+ def self.convert_workflow_update_response_to_plumbing(porcelain)
11277
+ if porcelain == nil
11278
+ return nil
11279
+ end
11280
+ plumbing = V1::WorkflowUpdateResponse.new()
11281
+ plumbing.meta = convert_update_response_metadata_to_plumbing(porcelain.meta)
11282
+ plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
11283
+ plumbing.workflow = convert_workflow_to_plumbing(porcelain.workflow)
11284
+ plumbing
11285
+ end
11286
+ def self.convert_repeated_workflow_update_response_to_plumbing(porcelains)
11287
+ items = Array.new
11288
+ porcelains.each do |porcelain|
11289
+ plumbing = convert_workflow_update_response_to_plumbing(porcelain)
11290
+ items.append(plumbing)
11291
+ end
11292
+ items
11293
+ end
11294
+
11295
+ def self.convert_repeated_workflow_update_response_to_porcelain(plumbings)
11296
+ items = Array.new
11297
+ plumbings.each do |plumbing|
11298
+ porcelain = convert_workflow_update_response_to_porcelain(plumbing)
11299
+ items.append(porcelain)
11300
+ end
11301
+ items
11302
+ end
10454
11303
  def self.convert_error_to_porcelain(err)
10455
11304
  if not err.is_a? GRPC::BadStatus
10456
11305
  return UnknownError.new(err.message)