strongdm 6.8.0 → 6.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git/ORIG_HEAD +1 -1
- data/.git/index +0 -0
- data/.git/logs/HEAD +3 -3
- data/.git/logs/refs/heads/master +2 -2
- data/.git/logs/refs/remotes/origin/HEAD +1 -1
- data/.git/objects/pack/{pack-8e713d387f255f0ec0181dce3e2a505478deb064.idx → pack-0dcf1b734229e84f3c3baa668d79743a0683c5e4.idx} +0 -0
- data/.git/objects/pack/{pack-8e713d387f255f0ec0181dce3e2a505478deb064.pack → pack-0dcf1b734229e84f3c3baa668d79743a0683c5e4.pack} +0 -0
- data/.git/packed-refs +3 -2
- data/.git/refs/heads/master +1 -1
- data/lib/constants.rb +1 -0
- data/lib/grpc/approval_workflow_approvers_history_pb.rb +49 -0
- data/lib/grpc/approval_workflow_approvers_history_services_pb.rb +37 -0
- data/lib/grpc/approval_workflow_approvers_pb.rb +81 -0
- data/lib/grpc/approval_workflow_approvers_services_pb.rb +43 -0
- data/lib/grpc/approval_workflow_steps_history_pb.rb +49 -0
- data/lib/grpc/approval_workflow_steps_history_services_pb.rb +37 -0
- data/lib/grpc/approval_workflow_steps_pb.rb +78 -0
- data/lib/grpc/approval_workflow_steps_services_pb.rb +43 -0
- data/lib/grpc/approval_workflows_history_pb.rb +49 -0
- data/lib/grpc/approval_workflows_history_services_pb.rb +37 -0
- data/lib/grpc/approval_workflows_pb.rb +91 -0
- data/lib/grpc/approval_workflows_services_pb.rb +46 -0
- data/lib/grpc/plumbing.rb +738 -0
- data/lib/models/porcelain.rb +514 -0
- data/lib/strongdm.rb +54 -1
- data/lib/svc.rb +738 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +15 -3
data/lib/grpc/plumbing.rb
CHANGED
@@ -34,6 +34,12 @@ require_relative "./account_resources_history_pb"
|
|
34
34
|
require_relative "./accounts_pb"
|
35
35
|
require_relative "./accounts_history_pb"
|
36
36
|
require_relative "./activities_pb"
|
37
|
+
require_relative "./approval_workflow_approvers_pb"
|
38
|
+
require_relative "./approval_workflow_approvers_history_pb"
|
39
|
+
require_relative "./approval_workflow_steps_pb"
|
40
|
+
require_relative "./approval_workflow_steps_history_pb"
|
41
|
+
require_relative "./approval_workflows_pb"
|
42
|
+
require_relative "./approval_workflows_history_pb"
|
37
43
|
require_relative "./control_panel_pb"
|
38
44
|
require_relative "./drivers_pb"
|
39
45
|
require_relative "./nodes_pb"
|
@@ -2388,6 +2394,738 @@ module SDM
|
|
2388
2394
|
end
|
2389
2395
|
items
|
2390
2396
|
end
|
2397
|
+
def self.convert_approval_workflow_to_porcelain(plumbing)
|
2398
|
+
if plumbing == nil
|
2399
|
+
return nil
|
2400
|
+
end
|
2401
|
+
porcelain = ApprovalWorkflow.new()
|
2402
|
+
porcelain.approval_mode = (plumbing.approval_mode)
|
2403
|
+
porcelain.description = (plumbing.description)
|
2404
|
+
porcelain.id = (plumbing.id)
|
2405
|
+
porcelain.name = (plumbing.name)
|
2406
|
+
porcelain
|
2407
|
+
end
|
2408
|
+
|
2409
|
+
def self.convert_approval_workflow_to_plumbing(porcelain)
|
2410
|
+
if porcelain == nil
|
2411
|
+
return nil
|
2412
|
+
end
|
2413
|
+
plumbing = V1::ApprovalWorkflow.new()
|
2414
|
+
plumbing.approval_mode = (porcelain.approval_mode)
|
2415
|
+
plumbing.description = (porcelain.description)
|
2416
|
+
plumbing.id = (porcelain.id)
|
2417
|
+
plumbing.name = (porcelain.name)
|
2418
|
+
plumbing
|
2419
|
+
end
|
2420
|
+
def self.convert_repeated_approval_workflow_to_plumbing(porcelains)
|
2421
|
+
items = Array.new
|
2422
|
+
porcelains.each do |porcelain|
|
2423
|
+
plumbing = convert_approval_workflow_to_plumbing(porcelain)
|
2424
|
+
items.append(plumbing)
|
2425
|
+
end
|
2426
|
+
items
|
2427
|
+
end
|
2428
|
+
|
2429
|
+
def self.convert_repeated_approval_workflow_to_porcelain(plumbings)
|
2430
|
+
items = Array.new
|
2431
|
+
plumbings.each do |plumbing|
|
2432
|
+
porcelain = convert_approval_workflow_to_porcelain(plumbing)
|
2433
|
+
items.append(porcelain)
|
2434
|
+
end
|
2435
|
+
items
|
2436
|
+
end
|
2437
|
+
def self.convert_approval_workflow_approver_to_porcelain(plumbing)
|
2438
|
+
if plumbing == nil
|
2439
|
+
return nil
|
2440
|
+
end
|
2441
|
+
porcelain = ApprovalWorkflowApprover.new()
|
2442
|
+
porcelain.account_id = (plumbing.account_id)
|
2443
|
+
porcelain.approval_flow_id = (plumbing.approval_flow_id)
|
2444
|
+
porcelain.approval_step_id = (plumbing.approval_step_id)
|
2445
|
+
porcelain.id = (plumbing.id)
|
2446
|
+
porcelain.role_id = (plumbing.role_id)
|
2447
|
+
porcelain
|
2448
|
+
end
|
2449
|
+
|
2450
|
+
def self.convert_approval_workflow_approver_to_plumbing(porcelain)
|
2451
|
+
if porcelain == nil
|
2452
|
+
return nil
|
2453
|
+
end
|
2454
|
+
plumbing = V1::ApprovalWorkflowApprover.new()
|
2455
|
+
plumbing.account_id = (porcelain.account_id)
|
2456
|
+
plumbing.approval_flow_id = (porcelain.approval_flow_id)
|
2457
|
+
plumbing.approval_step_id = (porcelain.approval_step_id)
|
2458
|
+
plumbing.id = (porcelain.id)
|
2459
|
+
plumbing.role_id = (porcelain.role_id)
|
2460
|
+
plumbing
|
2461
|
+
end
|
2462
|
+
def self.convert_repeated_approval_workflow_approver_to_plumbing(porcelains)
|
2463
|
+
items = Array.new
|
2464
|
+
porcelains.each do |porcelain|
|
2465
|
+
plumbing = convert_approval_workflow_approver_to_plumbing(porcelain)
|
2466
|
+
items.append(plumbing)
|
2467
|
+
end
|
2468
|
+
items
|
2469
|
+
end
|
2470
|
+
|
2471
|
+
def self.convert_repeated_approval_workflow_approver_to_porcelain(plumbings)
|
2472
|
+
items = Array.new
|
2473
|
+
plumbings.each do |plumbing|
|
2474
|
+
porcelain = convert_approval_workflow_approver_to_porcelain(plumbing)
|
2475
|
+
items.append(porcelain)
|
2476
|
+
end
|
2477
|
+
items
|
2478
|
+
end
|
2479
|
+
def self.convert_approval_workflow_approver_create_response_to_porcelain(plumbing)
|
2480
|
+
if plumbing == nil
|
2481
|
+
return nil
|
2482
|
+
end
|
2483
|
+
porcelain = ApprovalWorkflowApproverCreateResponse.new()
|
2484
|
+
porcelain.approval_workflow_approver = convert_approval_workflow_approver_to_porcelain(plumbing.approval_workflow_approver)
|
2485
|
+
porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
|
2486
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2487
|
+
porcelain
|
2488
|
+
end
|
2489
|
+
|
2490
|
+
def self.convert_approval_workflow_approver_create_response_to_plumbing(porcelain)
|
2491
|
+
if porcelain == nil
|
2492
|
+
return nil
|
2493
|
+
end
|
2494
|
+
plumbing = V1::ApprovalWorkflowApproverCreateResponse.new()
|
2495
|
+
plumbing.approval_workflow_approver = convert_approval_workflow_approver_to_plumbing(porcelain.approval_workflow_approver)
|
2496
|
+
plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta)
|
2497
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2498
|
+
plumbing
|
2499
|
+
end
|
2500
|
+
def self.convert_repeated_approval_workflow_approver_create_response_to_plumbing(porcelains)
|
2501
|
+
items = Array.new
|
2502
|
+
porcelains.each do |porcelain|
|
2503
|
+
plumbing = convert_approval_workflow_approver_create_response_to_plumbing(porcelain)
|
2504
|
+
items.append(plumbing)
|
2505
|
+
end
|
2506
|
+
items
|
2507
|
+
end
|
2508
|
+
|
2509
|
+
def self.convert_repeated_approval_workflow_approver_create_response_to_porcelain(plumbings)
|
2510
|
+
items = Array.new
|
2511
|
+
plumbings.each do |plumbing|
|
2512
|
+
porcelain = convert_approval_workflow_approver_create_response_to_porcelain(plumbing)
|
2513
|
+
items.append(porcelain)
|
2514
|
+
end
|
2515
|
+
items
|
2516
|
+
end
|
2517
|
+
def self.convert_approval_workflow_approver_delete_response_to_porcelain(plumbing)
|
2518
|
+
if plumbing == nil
|
2519
|
+
return nil
|
2520
|
+
end
|
2521
|
+
porcelain = ApprovalWorkflowApproverDeleteResponse.new()
|
2522
|
+
porcelain.id = (plumbing.id)
|
2523
|
+
porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
|
2524
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2525
|
+
porcelain
|
2526
|
+
end
|
2527
|
+
|
2528
|
+
def self.convert_approval_workflow_approver_delete_response_to_plumbing(porcelain)
|
2529
|
+
if porcelain == nil
|
2530
|
+
return nil
|
2531
|
+
end
|
2532
|
+
plumbing = V1::ApprovalWorkflowApproverDeleteResponse.new()
|
2533
|
+
plumbing.id = (porcelain.id)
|
2534
|
+
plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta)
|
2535
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2536
|
+
plumbing
|
2537
|
+
end
|
2538
|
+
def self.convert_repeated_approval_workflow_approver_delete_response_to_plumbing(porcelains)
|
2539
|
+
items = Array.new
|
2540
|
+
porcelains.each do |porcelain|
|
2541
|
+
plumbing = convert_approval_workflow_approver_delete_response_to_plumbing(porcelain)
|
2542
|
+
items.append(plumbing)
|
2543
|
+
end
|
2544
|
+
items
|
2545
|
+
end
|
2546
|
+
|
2547
|
+
def self.convert_repeated_approval_workflow_approver_delete_response_to_porcelain(plumbings)
|
2548
|
+
items = Array.new
|
2549
|
+
plumbings.each do |plumbing|
|
2550
|
+
porcelain = convert_approval_workflow_approver_delete_response_to_porcelain(plumbing)
|
2551
|
+
items.append(porcelain)
|
2552
|
+
end
|
2553
|
+
items
|
2554
|
+
end
|
2555
|
+
def self.convert_approval_workflow_approver_get_response_to_porcelain(plumbing)
|
2556
|
+
if plumbing == nil
|
2557
|
+
return nil
|
2558
|
+
end
|
2559
|
+
porcelain = ApprovalWorkflowApproverGetResponse.new()
|
2560
|
+
porcelain.approval_workflow_approver = convert_approval_workflow_approver_to_porcelain(plumbing.approval_workflow_approver)
|
2561
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
2562
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2563
|
+
porcelain
|
2564
|
+
end
|
2565
|
+
|
2566
|
+
def self.convert_approval_workflow_approver_get_response_to_plumbing(porcelain)
|
2567
|
+
if porcelain == nil
|
2568
|
+
return nil
|
2569
|
+
end
|
2570
|
+
plumbing = V1::ApprovalWorkflowApproverGetResponse.new()
|
2571
|
+
plumbing.approval_workflow_approver = convert_approval_workflow_approver_to_plumbing(porcelain.approval_workflow_approver)
|
2572
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
|
2573
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2574
|
+
plumbing
|
2575
|
+
end
|
2576
|
+
def self.convert_repeated_approval_workflow_approver_get_response_to_plumbing(porcelains)
|
2577
|
+
items = Array.new
|
2578
|
+
porcelains.each do |porcelain|
|
2579
|
+
plumbing = convert_approval_workflow_approver_get_response_to_plumbing(porcelain)
|
2580
|
+
items.append(plumbing)
|
2581
|
+
end
|
2582
|
+
items
|
2583
|
+
end
|
2584
|
+
|
2585
|
+
def self.convert_repeated_approval_workflow_approver_get_response_to_porcelain(plumbings)
|
2586
|
+
items = Array.new
|
2587
|
+
plumbings.each do |plumbing|
|
2588
|
+
porcelain = convert_approval_workflow_approver_get_response_to_porcelain(plumbing)
|
2589
|
+
items.append(porcelain)
|
2590
|
+
end
|
2591
|
+
items
|
2592
|
+
end
|
2593
|
+
def self.convert_approval_workflow_approver_history_to_porcelain(plumbing)
|
2594
|
+
if plumbing == nil
|
2595
|
+
return nil
|
2596
|
+
end
|
2597
|
+
porcelain = ApprovalWorkflowApproverHistory.new()
|
2598
|
+
porcelain.activity_id = (plumbing.activity_id)
|
2599
|
+
porcelain.approval_workflow_approver = convert_approval_workflow_approver_to_porcelain(plumbing.approval_workflow_approver)
|
2600
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
2601
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
2602
|
+
porcelain
|
2603
|
+
end
|
2604
|
+
|
2605
|
+
def self.convert_approval_workflow_approver_history_to_plumbing(porcelain)
|
2606
|
+
if porcelain == nil
|
2607
|
+
return nil
|
2608
|
+
end
|
2609
|
+
plumbing = V1::ApprovalWorkflowApproverHistory.new()
|
2610
|
+
plumbing.activity_id = (porcelain.activity_id)
|
2611
|
+
plumbing.approval_workflow_approver = convert_approval_workflow_approver_to_plumbing(porcelain.approval_workflow_approver)
|
2612
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
2613
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
2614
|
+
plumbing
|
2615
|
+
end
|
2616
|
+
def self.convert_repeated_approval_workflow_approver_history_to_plumbing(porcelains)
|
2617
|
+
items = Array.new
|
2618
|
+
porcelains.each do |porcelain|
|
2619
|
+
plumbing = convert_approval_workflow_approver_history_to_plumbing(porcelain)
|
2620
|
+
items.append(plumbing)
|
2621
|
+
end
|
2622
|
+
items
|
2623
|
+
end
|
2624
|
+
|
2625
|
+
def self.convert_repeated_approval_workflow_approver_history_to_porcelain(plumbings)
|
2626
|
+
items = Array.new
|
2627
|
+
plumbings.each do |plumbing|
|
2628
|
+
porcelain = convert_approval_workflow_approver_history_to_porcelain(plumbing)
|
2629
|
+
items.append(porcelain)
|
2630
|
+
end
|
2631
|
+
items
|
2632
|
+
end
|
2633
|
+
def self.convert_approval_workflow_approver_list_response_to_porcelain(plumbing)
|
2634
|
+
if plumbing == nil
|
2635
|
+
return nil
|
2636
|
+
end
|
2637
|
+
porcelain = ApprovalWorkflowApproverListResponse.new()
|
2638
|
+
porcelain.approval_workflow_approvers = convert_repeated_approval_workflow_approver_to_porcelain(plumbing.approval_workflow_approvers)
|
2639
|
+
porcelain.meta = convert_list_response_metadata_to_porcelain(plumbing.meta)
|
2640
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2641
|
+
porcelain
|
2642
|
+
end
|
2643
|
+
|
2644
|
+
def self.convert_approval_workflow_approver_list_response_to_plumbing(porcelain)
|
2645
|
+
if porcelain == nil
|
2646
|
+
return nil
|
2647
|
+
end
|
2648
|
+
plumbing = V1::ApprovalWorkflowApproverListResponse.new()
|
2649
|
+
plumbing.approval_workflow_approvers += convert_repeated_approval_workflow_approver_to_plumbing(porcelain.approval_workflow_approvers)
|
2650
|
+
plumbing.meta = convert_list_response_metadata_to_plumbing(porcelain.meta)
|
2651
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2652
|
+
plumbing
|
2653
|
+
end
|
2654
|
+
def self.convert_repeated_approval_workflow_approver_list_response_to_plumbing(porcelains)
|
2655
|
+
items = Array.new
|
2656
|
+
porcelains.each do |porcelain|
|
2657
|
+
plumbing = convert_approval_workflow_approver_list_response_to_plumbing(porcelain)
|
2658
|
+
items.append(plumbing)
|
2659
|
+
end
|
2660
|
+
items
|
2661
|
+
end
|
2662
|
+
|
2663
|
+
def self.convert_repeated_approval_workflow_approver_list_response_to_porcelain(plumbings)
|
2664
|
+
items = Array.new
|
2665
|
+
plumbings.each do |plumbing|
|
2666
|
+
porcelain = convert_approval_workflow_approver_list_response_to_porcelain(plumbing)
|
2667
|
+
items.append(porcelain)
|
2668
|
+
end
|
2669
|
+
items
|
2670
|
+
end
|
2671
|
+
def self.convert_approval_workflow_create_response_to_porcelain(plumbing)
|
2672
|
+
if plumbing == nil
|
2673
|
+
return nil
|
2674
|
+
end
|
2675
|
+
porcelain = ApprovalWorkflowCreateResponse.new()
|
2676
|
+
porcelain.approval_workflow = convert_approval_workflow_to_porcelain(plumbing.approval_workflow)
|
2677
|
+
porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
|
2678
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2679
|
+
porcelain
|
2680
|
+
end
|
2681
|
+
|
2682
|
+
def self.convert_approval_workflow_create_response_to_plumbing(porcelain)
|
2683
|
+
if porcelain == nil
|
2684
|
+
return nil
|
2685
|
+
end
|
2686
|
+
plumbing = V1::ApprovalWorkflowCreateResponse.new()
|
2687
|
+
plumbing.approval_workflow = convert_approval_workflow_to_plumbing(porcelain.approval_workflow)
|
2688
|
+
plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta)
|
2689
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2690
|
+
plumbing
|
2691
|
+
end
|
2692
|
+
def self.convert_repeated_approval_workflow_create_response_to_plumbing(porcelains)
|
2693
|
+
items = Array.new
|
2694
|
+
porcelains.each do |porcelain|
|
2695
|
+
plumbing = convert_approval_workflow_create_response_to_plumbing(porcelain)
|
2696
|
+
items.append(plumbing)
|
2697
|
+
end
|
2698
|
+
items
|
2699
|
+
end
|
2700
|
+
|
2701
|
+
def self.convert_repeated_approval_workflow_create_response_to_porcelain(plumbings)
|
2702
|
+
items = Array.new
|
2703
|
+
plumbings.each do |plumbing|
|
2704
|
+
porcelain = convert_approval_workflow_create_response_to_porcelain(plumbing)
|
2705
|
+
items.append(porcelain)
|
2706
|
+
end
|
2707
|
+
items
|
2708
|
+
end
|
2709
|
+
def self.convert_approval_workflow_delete_response_to_porcelain(plumbing)
|
2710
|
+
if plumbing == nil
|
2711
|
+
return nil
|
2712
|
+
end
|
2713
|
+
porcelain = ApprovalWorkflowDeleteResponse.new()
|
2714
|
+
porcelain.id = (plumbing.id)
|
2715
|
+
porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
|
2716
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2717
|
+
porcelain
|
2718
|
+
end
|
2719
|
+
|
2720
|
+
def self.convert_approval_workflow_delete_response_to_plumbing(porcelain)
|
2721
|
+
if porcelain == nil
|
2722
|
+
return nil
|
2723
|
+
end
|
2724
|
+
plumbing = V1::ApprovalWorkflowDeleteResponse.new()
|
2725
|
+
plumbing.id = (porcelain.id)
|
2726
|
+
plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta)
|
2727
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2728
|
+
plumbing
|
2729
|
+
end
|
2730
|
+
def self.convert_repeated_approval_workflow_delete_response_to_plumbing(porcelains)
|
2731
|
+
items = Array.new
|
2732
|
+
porcelains.each do |porcelain|
|
2733
|
+
plumbing = convert_approval_workflow_delete_response_to_plumbing(porcelain)
|
2734
|
+
items.append(plumbing)
|
2735
|
+
end
|
2736
|
+
items
|
2737
|
+
end
|
2738
|
+
|
2739
|
+
def self.convert_repeated_approval_workflow_delete_response_to_porcelain(plumbings)
|
2740
|
+
items = Array.new
|
2741
|
+
plumbings.each do |plumbing|
|
2742
|
+
porcelain = convert_approval_workflow_delete_response_to_porcelain(plumbing)
|
2743
|
+
items.append(porcelain)
|
2744
|
+
end
|
2745
|
+
items
|
2746
|
+
end
|
2747
|
+
def self.convert_approval_workflow_get_response_to_porcelain(plumbing)
|
2748
|
+
if plumbing == nil
|
2749
|
+
return nil
|
2750
|
+
end
|
2751
|
+
porcelain = ApprovalWorkflowGetResponse.new()
|
2752
|
+
porcelain.approval_workflow = convert_approval_workflow_to_porcelain(plumbing.approval_workflow)
|
2753
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
2754
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2755
|
+
porcelain
|
2756
|
+
end
|
2757
|
+
|
2758
|
+
def self.convert_approval_workflow_get_response_to_plumbing(porcelain)
|
2759
|
+
if porcelain == nil
|
2760
|
+
return nil
|
2761
|
+
end
|
2762
|
+
plumbing = V1::ApprovalWorkflowGetResponse.new()
|
2763
|
+
plumbing.approval_workflow = convert_approval_workflow_to_plumbing(porcelain.approval_workflow)
|
2764
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
|
2765
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2766
|
+
plumbing
|
2767
|
+
end
|
2768
|
+
def self.convert_repeated_approval_workflow_get_response_to_plumbing(porcelains)
|
2769
|
+
items = Array.new
|
2770
|
+
porcelains.each do |porcelain|
|
2771
|
+
plumbing = convert_approval_workflow_get_response_to_plumbing(porcelain)
|
2772
|
+
items.append(plumbing)
|
2773
|
+
end
|
2774
|
+
items
|
2775
|
+
end
|
2776
|
+
|
2777
|
+
def self.convert_repeated_approval_workflow_get_response_to_porcelain(plumbings)
|
2778
|
+
items = Array.new
|
2779
|
+
plumbings.each do |plumbing|
|
2780
|
+
porcelain = convert_approval_workflow_get_response_to_porcelain(plumbing)
|
2781
|
+
items.append(porcelain)
|
2782
|
+
end
|
2783
|
+
items
|
2784
|
+
end
|
2785
|
+
def self.convert_approval_workflow_history_to_porcelain(plumbing)
|
2786
|
+
if plumbing == nil
|
2787
|
+
return nil
|
2788
|
+
end
|
2789
|
+
porcelain = ApprovalWorkflowHistory.new()
|
2790
|
+
porcelain.activity_id = (plumbing.activity_id)
|
2791
|
+
porcelain.approval_workflow = convert_approval_workflow_to_porcelain(plumbing.approval_workflow)
|
2792
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
2793
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
2794
|
+
porcelain
|
2795
|
+
end
|
2796
|
+
|
2797
|
+
def self.convert_approval_workflow_history_to_plumbing(porcelain)
|
2798
|
+
if porcelain == nil
|
2799
|
+
return nil
|
2800
|
+
end
|
2801
|
+
plumbing = V1::ApprovalWorkflowHistory.new()
|
2802
|
+
plumbing.activity_id = (porcelain.activity_id)
|
2803
|
+
plumbing.approval_workflow = convert_approval_workflow_to_plumbing(porcelain.approval_workflow)
|
2804
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
2805
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
2806
|
+
plumbing
|
2807
|
+
end
|
2808
|
+
def self.convert_repeated_approval_workflow_history_to_plumbing(porcelains)
|
2809
|
+
items = Array.new
|
2810
|
+
porcelains.each do |porcelain|
|
2811
|
+
plumbing = convert_approval_workflow_history_to_plumbing(porcelain)
|
2812
|
+
items.append(plumbing)
|
2813
|
+
end
|
2814
|
+
items
|
2815
|
+
end
|
2816
|
+
|
2817
|
+
def self.convert_repeated_approval_workflow_history_to_porcelain(plumbings)
|
2818
|
+
items = Array.new
|
2819
|
+
plumbings.each do |plumbing|
|
2820
|
+
porcelain = convert_approval_workflow_history_to_porcelain(plumbing)
|
2821
|
+
items.append(porcelain)
|
2822
|
+
end
|
2823
|
+
items
|
2824
|
+
end
|
2825
|
+
def self.convert_approval_workflow_list_response_to_porcelain(plumbing)
|
2826
|
+
if plumbing == nil
|
2827
|
+
return nil
|
2828
|
+
end
|
2829
|
+
porcelain = ApprovalWorkflowListResponse.new()
|
2830
|
+
porcelain.approval_workflows = convert_repeated_approval_workflow_to_porcelain(plumbing.approval_workflows)
|
2831
|
+
porcelain.meta = convert_list_response_metadata_to_porcelain(plumbing.meta)
|
2832
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2833
|
+
porcelain
|
2834
|
+
end
|
2835
|
+
|
2836
|
+
def self.convert_approval_workflow_list_response_to_plumbing(porcelain)
|
2837
|
+
if porcelain == nil
|
2838
|
+
return nil
|
2839
|
+
end
|
2840
|
+
plumbing = V1::ApprovalWorkflowListResponse.new()
|
2841
|
+
plumbing.approval_workflows += convert_repeated_approval_workflow_to_plumbing(porcelain.approval_workflows)
|
2842
|
+
plumbing.meta = convert_list_response_metadata_to_plumbing(porcelain.meta)
|
2843
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2844
|
+
plumbing
|
2845
|
+
end
|
2846
|
+
def self.convert_repeated_approval_workflow_list_response_to_plumbing(porcelains)
|
2847
|
+
items = Array.new
|
2848
|
+
porcelains.each do |porcelain|
|
2849
|
+
plumbing = convert_approval_workflow_list_response_to_plumbing(porcelain)
|
2850
|
+
items.append(plumbing)
|
2851
|
+
end
|
2852
|
+
items
|
2853
|
+
end
|
2854
|
+
|
2855
|
+
def self.convert_repeated_approval_workflow_list_response_to_porcelain(plumbings)
|
2856
|
+
items = Array.new
|
2857
|
+
plumbings.each do |plumbing|
|
2858
|
+
porcelain = convert_approval_workflow_list_response_to_porcelain(plumbing)
|
2859
|
+
items.append(porcelain)
|
2860
|
+
end
|
2861
|
+
items
|
2862
|
+
end
|
2863
|
+
def self.convert_approval_workflow_step_to_porcelain(plumbing)
|
2864
|
+
if plumbing == nil
|
2865
|
+
return nil
|
2866
|
+
end
|
2867
|
+
porcelain = ApprovalWorkflowStep.new()
|
2868
|
+
porcelain.approval_flow_id = (plumbing.approval_flow_id)
|
2869
|
+
porcelain.id = (plumbing.id)
|
2870
|
+
porcelain
|
2871
|
+
end
|
2872
|
+
|
2873
|
+
def self.convert_approval_workflow_step_to_plumbing(porcelain)
|
2874
|
+
if porcelain == nil
|
2875
|
+
return nil
|
2876
|
+
end
|
2877
|
+
plumbing = V1::ApprovalWorkflowStep.new()
|
2878
|
+
plumbing.approval_flow_id = (porcelain.approval_flow_id)
|
2879
|
+
plumbing.id = (porcelain.id)
|
2880
|
+
plumbing
|
2881
|
+
end
|
2882
|
+
def self.convert_repeated_approval_workflow_step_to_plumbing(porcelains)
|
2883
|
+
items = Array.new
|
2884
|
+
porcelains.each do |porcelain|
|
2885
|
+
plumbing = convert_approval_workflow_step_to_plumbing(porcelain)
|
2886
|
+
items.append(plumbing)
|
2887
|
+
end
|
2888
|
+
items
|
2889
|
+
end
|
2890
|
+
|
2891
|
+
def self.convert_repeated_approval_workflow_step_to_porcelain(plumbings)
|
2892
|
+
items = Array.new
|
2893
|
+
plumbings.each do |plumbing|
|
2894
|
+
porcelain = convert_approval_workflow_step_to_porcelain(plumbing)
|
2895
|
+
items.append(porcelain)
|
2896
|
+
end
|
2897
|
+
items
|
2898
|
+
end
|
2899
|
+
def self.convert_approval_workflow_step_create_response_to_porcelain(plumbing)
|
2900
|
+
if plumbing == nil
|
2901
|
+
return nil
|
2902
|
+
end
|
2903
|
+
porcelain = ApprovalWorkflowStepCreateResponse.new()
|
2904
|
+
porcelain.approval_workflow_step = convert_approval_workflow_step_to_porcelain(plumbing.approval_workflow_step)
|
2905
|
+
porcelain.meta = convert_create_response_metadata_to_porcelain(plumbing.meta)
|
2906
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2907
|
+
porcelain
|
2908
|
+
end
|
2909
|
+
|
2910
|
+
def self.convert_approval_workflow_step_create_response_to_plumbing(porcelain)
|
2911
|
+
if porcelain == nil
|
2912
|
+
return nil
|
2913
|
+
end
|
2914
|
+
plumbing = V1::ApprovalWorkflowStepCreateResponse.new()
|
2915
|
+
plumbing.approval_workflow_step = convert_approval_workflow_step_to_plumbing(porcelain.approval_workflow_step)
|
2916
|
+
plumbing.meta = convert_create_response_metadata_to_plumbing(porcelain.meta)
|
2917
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2918
|
+
plumbing
|
2919
|
+
end
|
2920
|
+
def self.convert_repeated_approval_workflow_step_create_response_to_plumbing(porcelains)
|
2921
|
+
items = Array.new
|
2922
|
+
porcelains.each do |porcelain|
|
2923
|
+
plumbing = convert_approval_workflow_step_create_response_to_plumbing(porcelain)
|
2924
|
+
items.append(plumbing)
|
2925
|
+
end
|
2926
|
+
items
|
2927
|
+
end
|
2928
|
+
|
2929
|
+
def self.convert_repeated_approval_workflow_step_create_response_to_porcelain(plumbings)
|
2930
|
+
items = Array.new
|
2931
|
+
plumbings.each do |plumbing|
|
2932
|
+
porcelain = convert_approval_workflow_step_create_response_to_porcelain(plumbing)
|
2933
|
+
items.append(porcelain)
|
2934
|
+
end
|
2935
|
+
items
|
2936
|
+
end
|
2937
|
+
def self.convert_approval_workflow_step_delete_response_to_porcelain(plumbing)
|
2938
|
+
if plumbing == nil
|
2939
|
+
return nil
|
2940
|
+
end
|
2941
|
+
porcelain = ApprovalWorkflowStepDeleteResponse.new()
|
2942
|
+
porcelain.id = (plumbing.id)
|
2943
|
+
porcelain.meta = convert_delete_response_metadata_to_porcelain(plumbing.meta)
|
2944
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2945
|
+
porcelain
|
2946
|
+
end
|
2947
|
+
|
2948
|
+
def self.convert_approval_workflow_step_delete_response_to_plumbing(porcelain)
|
2949
|
+
if porcelain == nil
|
2950
|
+
return nil
|
2951
|
+
end
|
2952
|
+
plumbing = V1::ApprovalWorkflowStepDeleteResponse.new()
|
2953
|
+
plumbing.id = (porcelain.id)
|
2954
|
+
plumbing.meta = convert_delete_response_metadata_to_plumbing(porcelain.meta)
|
2955
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2956
|
+
plumbing
|
2957
|
+
end
|
2958
|
+
def self.convert_repeated_approval_workflow_step_delete_response_to_plumbing(porcelains)
|
2959
|
+
items = Array.new
|
2960
|
+
porcelains.each do |porcelain|
|
2961
|
+
plumbing = convert_approval_workflow_step_delete_response_to_plumbing(porcelain)
|
2962
|
+
items.append(plumbing)
|
2963
|
+
end
|
2964
|
+
items
|
2965
|
+
end
|
2966
|
+
|
2967
|
+
def self.convert_repeated_approval_workflow_step_delete_response_to_porcelain(plumbings)
|
2968
|
+
items = Array.new
|
2969
|
+
plumbings.each do |plumbing|
|
2970
|
+
porcelain = convert_approval_workflow_step_delete_response_to_porcelain(plumbing)
|
2971
|
+
items.append(porcelain)
|
2972
|
+
end
|
2973
|
+
items
|
2974
|
+
end
|
2975
|
+
def self.convert_approval_workflow_step_get_response_to_porcelain(plumbing)
|
2976
|
+
if plumbing == nil
|
2977
|
+
return nil
|
2978
|
+
end
|
2979
|
+
porcelain = ApprovalWorkflowStepGetResponse.new()
|
2980
|
+
porcelain.approval_workflow_step = convert_approval_workflow_step_to_porcelain(plumbing.approval_workflow_step)
|
2981
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
2982
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
2983
|
+
porcelain
|
2984
|
+
end
|
2985
|
+
|
2986
|
+
def self.convert_approval_workflow_step_get_response_to_plumbing(porcelain)
|
2987
|
+
if porcelain == nil
|
2988
|
+
return nil
|
2989
|
+
end
|
2990
|
+
plumbing = V1::ApprovalWorkflowStepGetResponse.new()
|
2991
|
+
plumbing.approval_workflow_step = convert_approval_workflow_step_to_plumbing(porcelain.approval_workflow_step)
|
2992
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
|
2993
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
2994
|
+
plumbing
|
2995
|
+
end
|
2996
|
+
def self.convert_repeated_approval_workflow_step_get_response_to_plumbing(porcelains)
|
2997
|
+
items = Array.new
|
2998
|
+
porcelains.each do |porcelain|
|
2999
|
+
plumbing = convert_approval_workflow_step_get_response_to_plumbing(porcelain)
|
3000
|
+
items.append(plumbing)
|
3001
|
+
end
|
3002
|
+
items
|
3003
|
+
end
|
3004
|
+
|
3005
|
+
def self.convert_repeated_approval_workflow_step_get_response_to_porcelain(plumbings)
|
3006
|
+
items = Array.new
|
3007
|
+
plumbings.each do |plumbing|
|
3008
|
+
porcelain = convert_approval_workflow_step_get_response_to_porcelain(plumbing)
|
3009
|
+
items.append(porcelain)
|
3010
|
+
end
|
3011
|
+
items
|
3012
|
+
end
|
3013
|
+
def self.convert_approval_workflow_step_history_to_porcelain(plumbing)
|
3014
|
+
if plumbing == nil
|
3015
|
+
return nil
|
3016
|
+
end
|
3017
|
+
porcelain = ApprovalWorkflowStepHistory.new()
|
3018
|
+
porcelain.activity_id = (plumbing.activity_id)
|
3019
|
+
porcelain.approval_workflow_step = convert_approval_workflow_step_to_porcelain(plumbing.approval_workflow_step)
|
3020
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
3021
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
3022
|
+
porcelain
|
3023
|
+
end
|
3024
|
+
|
3025
|
+
def self.convert_approval_workflow_step_history_to_plumbing(porcelain)
|
3026
|
+
if porcelain == nil
|
3027
|
+
return nil
|
3028
|
+
end
|
3029
|
+
plumbing = V1::ApprovalWorkflowStepHistory.new()
|
3030
|
+
plumbing.activity_id = (porcelain.activity_id)
|
3031
|
+
plumbing.approval_workflow_step = convert_approval_workflow_step_to_plumbing(porcelain.approval_workflow_step)
|
3032
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
3033
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
3034
|
+
plumbing
|
3035
|
+
end
|
3036
|
+
def self.convert_repeated_approval_workflow_step_history_to_plumbing(porcelains)
|
3037
|
+
items = Array.new
|
3038
|
+
porcelains.each do |porcelain|
|
3039
|
+
plumbing = convert_approval_workflow_step_history_to_plumbing(porcelain)
|
3040
|
+
items.append(plumbing)
|
3041
|
+
end
|
3042
|
+
items
|
3043
|
+
end
|
3044
|
+
|
3045
|
+
def self.convert_repeated_approval_workflow_step_history_to_porcelain(plumbings)
|
3046
|
+
items = Array.new
|
3047
|
+
plumbings.each do |plumbing|
|
3048
|
+
porcelain = convert_approval_workflow_step_history_to_porcelain(plumbing)
|
3049
|
+
items.append(porcelain)
|
3050
|
+
end
|
3051
|
+
items
|
3052
|
+
end
|
3053
|
+
def self.convert_approval_workflow_step_list_response_to_porcelain(plumbing)
|
3054
|
+
if plumbing == nil
|
3055
|
+
return nil
|
3056
|
+
end
|
3057
|
+
porcelain = ApprovalWorkflowStepListResponse.new()
|
3058
|
+
porcelain.approval_workflow_steps = convert_repeated_approval_workflow_step_to_porcelain(plumbing.approval_workflow_steps)
|
3059
|
+
porcelain.meta = convert_list_response_metadata_to_porcelain(plumbing.meta)
|
3060
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3061
|
+
porcelain
|
3062
|
+
end
|
3063
|
+
|
3064
|
+
def self.convert_approval_workflow_step_list_response_to_plumbing(porcelain)
|
3065
|
+
if porcelain == nil
|
3066
|
+
return nil
|
3067
|
+
end
|
3068
|
+
plumbing = V1::ApprovalWorkflowStepListResponse.new()
|
3069
|
+
plumbing.approval_workflow_steps += convert_repeated_approval_workflow_step_to_plumbing(porcelain.approval_workflow_steps)
|
3070
|
+
plumbing.meta = convert_list_response_metadata_to_plumbing(porcelain.meta)
|
3071
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
3072
|
+
plumbing
|
3073
|
+
end
|
3074
|
+
def self.convert_repeated_approval_workflow_step_list_response_to_plumbing(porcelains)
|
3075
|
+
items = Array.new
|
3076
|
+
porcelains.each do |porcelain|
|
3077
|
+
plumbing = convert_approval_workflow_step_list_response_to_plumbing(porcelain)
|
3078
|
+
items.append(plumbing)
|
3079
|
+
end
|
3080
|
+
items
|
3081
|
+
end
|
3082
|
+
|
3083
|
+
def self.convert_repeated_approval_workflow_step_list_response_to_porcelain(plumbings)
|
3084
|
+
items = Array.new
|
3085
|
+
plumbings.each do |plumbing|
|
3086
|
+
porcelain = convert_approval_workflow_step_list_response_to_porcelain(plumbing)
|
3087
|
+
items.append(porcelain)
|
3088
|
+
end
|
3089
|
+
items
|
3090
|
+
end
|
3091
|
+
def self.convert_approval_workflow_update_response_to_porcelain(plumbing)
|
3092
|
+
if plumbing == nil
|
3093
|
+
return nil
|
3094
|
+
end
|
3095
|
+
porcelain = ApprovalWorkflowUpdateResponse.new()
|
3096
|
+
porcelain.approval_workflow = convert_approval_workflow_to_porcelain(plumbing.approval_workflow)
|
3097
|
+
porcelain.meta = convert_update_response_metadata_to_porcelain(plumbing.meta)
|
3098
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
3099
|
+
porcelain
|
3100
|
+
end
|
3101
|
+
|
3102
|
+
def self.convert_approval_workflow_update_response_to_plumbing(porcelain)
|
3103
|
+
if porcelain == nil
|
3104
|
+
return nil
|
3105
|
+
end
|
3106
|
+
plumbing = V1::ApprovalWorkflowUpdateResponse.new()
|
3107
|
+
plumbing.approval_workflow = convert_approval_workflow_to_plumbing(porcelain.approval_workflow)
|
3108
|
+
plumbing.meta = convert_update_response_metadata_to_plumbing(porcelain.meta)
|
3109
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
3110
|
+
plumbing
|
3111
|
+
end
|
3112
|
+
def self.convert_repeated_approval_workflow_update_response_to_plumbing(porcelains)
|
3113
|
+
items = Array.new
|
3114
|
+
porcelains.each do |porcelain|
|
3115
|
+
plumbing = convert_approval_workflow_update_response_to_plumbing(porcelain)
|
3116
|
+
items.append(plumbing)
|
3117
|
+
end
|
3118
|
+
items
|
3119
|
+
end
|
3120
|
+
|
3121
|
+
def self.convert_repeated_approval_workflow_update_response_to_porcelain(plumbings)
|
3122
|
+
items = Array.new
|
3123
|
+
plumbings.each do |plumbing|
|
3124
|
+
porcelain = convert_approval_workflow_update_response_to_porcelain(plumbing)
|
3125
|
+
items.append(porcelain)
|
3126
|
+
end
|
3127
|
+
items
|
3128
|
+
end
|
2391
3129
|
def self.convert_athena_to_porcelain(plumbing)
|
2392
3130
|
if plumbing == nil
|
2393
3131
|
return nil
|