strongdm 4.3.0 → 4.4.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.
- 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-e53248831c9814d011695b30ef6c9a23ab4fbf61.idx → pack-9c459884b97e0a33b1e10aa61914fa82820fa985.idx} +0 -0
- data/.git/objects/pack/{pack-e53248831c9814d011695b30ef6c9a23ab4fbf61.pack → pack-9c459884b97e0a33b1e10aa61914fa82820fa985.pack} +0 -0
- data/.git/packed-refs +3 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/access_request_events_history_pb.rb +48 -0
- data/lib/grpc/access_request_events_history_services_pb.rb +37 -0
- data/lib/grpc/access_requests_history_pb.rb +48 -0
- data/lib/grpc/access_requests_history_services_pb.rb +37 -0
- data/lib/grpc/access_requests_pb.rb +60 -0
- data/lib/grpc/access_requests_services_pb.rb +37 -0
- data/lib/grpc/plumbing.rb +496 -0
- data/lib/grpc/workflow_approvers_history_pb.rb +48 -0
- data/lib/grpc/workflow_approvers_history_services_pb.rb +37 -0
- data/lib/grpc/workflow_assignments_history_pb.rb +48 -0
- data/lib/grpc/workflow_assignments_history_services_pb.rb +37 -0
- data/lib/grpc/workflow_roles_history_pb.rb +48 -0
- data/lib/grpc/workflow_roles_history_services_pb.rb +37 -0
- data/lib/grpc/workflows_history_pb.rb +48 -0
- data/lib/grpc/workflows_history_services_pb.rb +37 -0
- data/lib/grpc/workflows_pb.rb +64 -0
- data/lib/grpc/workflows_services_pb.rb +39 -0
- data/lib/models/porcelain.rb +424 -0
- data/lib/strongdm.rb +63 -1
- data/lib/svc.rb +496 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +20 -4
data/lib/grpc/plumbing.rb
CHANGED
@@ -20,6 +20,9 @@ require "google/protobuf/well_known_types"
|
|
20
20
|
require "json"
|
21
21
|
require_relative "./options_pb"
|
22
22
|
require_relative "./spec_pb"
|
23
|
+
require_relative "./access_requests_pb"
|
24
|
+
require_relative "./access_request_events_history_pb"
|
25
|
+
require_relative "./access_requests_history_pb"
|
23
26
|
require_relative "./account_attachments_pb"
|
24
27
|
require_relative "./account_attachments_history_pb"
|
25
28
|
require_relative "./account_grants_pb"
|
@@ -55,6 +58,11 @@ require_relative "./roles_history_pb"
|
|
55
58
|
require_relative "./secret_store_types_pb"
|
56
59
|
require_relative "./secret_stores_pb"
|
57
60
|
require_relative "./secret_stores_history_pb"
|
61
|
+
require_relative "./workflows_pb"
|
62
|
+
require_relative "./workflow_approvers_history_pb"
|
63
|
+
require_relative "./workflow_assignments_history_pb"
|
64
|
+
require_relative "./workflow_roles_history_pb"
|
65
|
+
require_relative "./workflows_history_pb"
|
58
66
|
require_relative "../models/porcelain"
|
59
67
|
require_relative "../errors/errors"
|
60
68
|
require_relative "../constants"
|
@@ -685,6 +693,180 @@ module SDM
|
|
685
693
|
end
|
686
694
|
items
|
687
695
|
end
|
696
|
+
def self.convert_access_request_to_porcelain(plumbing)
|
697
|
+
if plumbing == nil
|
698
|
+
return nil
|
699
|
+
end
|
700
|
+
porcelain = AccessRequest.new()
|
701
|
+
porcelain.account_id = (plumbing.account_id)
|
702
|
+
porcelain.grant_id = (plumbing.grant_id)
|
703
|
+
porcelain.id = (plumbing.id)
|
704
|
+
porcelain.reason = (plumbing.reason)
|
705
|
+
porcelain.resource_id = (plumbing.resource_id)
|
706
|
+
porcelain.start_from = convert_timestamp_to_porcelain(plumbing.start_from)
|
707
|
+
porcelain.status = (plumbing.status)
|
708
|
+
porcelain.status_at = convert_timestamp_to_porcelain(plumbing.status_at)
|
709
|
+
porcelain.valid_until = convert_timestamp_to_porcelain(plumbing.valid_until)
|
710
|
+
porcelain.workflow_id = (plumbing.workflow_id)
|
711
|
+
porcelain
|
712
|
+
end
|
713
|
+
|
714
|
+
def self.convert_access_request_to_plumbing(porcelain)
|
715
|
+
if porcelain == nil
|
716
|
+
return nil
|
717
|
+
end
|
718
|
+
plumbing = V1::AccessRequest.new()
|
719
|
+
plumbing.account_id = (porcelain.account_id)
|
720
|
+
plumbing.grant_id = (porcelain.grant_id)
|
721
|
+
plumbing.id = (porcelain.id)
|
722
|
+
plumbing.reason = (porcelain.reason)
|
723
|
+
plumbing.resource_id = (porcelain.resource_id)
|
724
|
+
plumbing.start_from = convert_timestamp_to_plumbing(porcelain.start_from)
|
725
|
+
plumbing.status = (porcelain.status)
|
726
|
+
plumbing.status_at = convert_timestamp_to_plumbing(porcelain.status_at)
|
727
|
+
plumbing.valid_until = convert_timestamp_to_plumbing(porcelain.valid_until)
|
728
|
+
plumbing.workflow_id = (porcelain.workflow_id)
|
729
|
+
plumbing
|
730
|
+
end
|
731
|
+
def self.convert_repeated_access_request_to_plumbing(porcelains)
|
732
|
+
items = Array.new
|
733
|
+
porcelains.each do |porcelain|
|
734
|
+
plumbing = convert_access_request_to_plumbing(porcelain)
|
735
|
+
items.append(plumbing)
|
736
|
+
end
|
737
|
+
items
|
738
|
+
end
|
739
|
+
|
740
|
+
def self.convert_repeated_access_request_to_porcelain(plumbings)
|
741
|
+
items = Array.new
|
742
|
+
plumbings.each do |plumbing|
|
743
|
+
porcelain = convert_access_request_to_porcelain(plumbing)
|
744
|
+
items.append(porcelain)
|
745
|
+
end
|
746
|
+
items
|
747
|
+
end
|
748
|
+
def self.convert_access_request_event_to_porcelain(plumbing)
|
749
|
+
if plumbing == nil
|
750
|
+
return nil
|
751
|
+
end
|
752
|
+
porcelain = AccessRequestEvent.new()
|
753
|
+
porcelain.actor_id = (plumbing.actor_id)
|
754
|
+
porcelain.id = (plumbing.id)
|
755
|
+
porcelain.metadata = (plumbing.metadata)
|
756
|
+
porcelain.request_id = (plumbing.request_id)
|
757
|
+
porcelain.type = (plumbing.type)
|
758
|
+
porcelain
|
759
|
+
end
|
760
|
+
|
761
|
+
def self.convert_access_request_event_to_plumbing(porcelain)
|
762
|
+
if porcelain == nil
|
763
|
+
return nil
|
764
|
+
end
|
765
|
+
plumbing = V1::AccessRequestEvent.new()
|
766
|
+
plumbing.actor_id = (porcelain.actor_id)
|
767
|
+
plumbing.id = (porcelain.id)
|
768
|
+
plumbing.metadata = (porcelain.metadata)
|
769
|
+
plumbing.request_id = (porcelain.request_id)
|
770
|
+
plumbing.type = (porcelain.type)
|
771
|
+
plumbing
|
772
|
+
end
|
773
|
+
def self.convert_repeated_access_request_event_to_plumbing(porcelains)
|
774
|
+
items = Array.new
|
775
|
+
porcelains.each do |porcelain|
|
776
|
+
plumbing = convert_access_request_event_to_plumbing(porcelain)
|
777
|
+
items.append(plumbing)
|
778
|
+
end
|
779
|
+
items
|
780
|
+
end
|
781
|
+
|
782
|
+
def self.convert_repeated_access_request_event_to_porcelain(plumbings)
|
783
|
+
items = Array.new
|
784
|
+
plumbings.each do |plumbing|
|
785
|
+
porcelain = convert_access_request_event_to_porcelain(plumbing)
|
786
|
+
items.append(porcelain)
|
787
|
+
end
|
788
|
+
items
|
789
|
+
end
|
790
|
+
def self.convert_access_request_event_history_to_porcelain(plumbing)
|
791
|
+
if plumbing == nil
|
792
|
+
return nil
|
793
|
+
end
|
794
|
+
porcelain = AccessRequestEventHistory.new()
|
795
|
+
porcelain.access_request_event = convert_access_request_event_to_porcelain(plumbing.access_request_event)
|
796
|
+
porcelain.activity_id = (plumbing.activity_id)
|
797
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
798
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
799
|
+
porcelain
|
800
|
+
end
|
801
|
+
|
802
|
+
def self.convert_access_request_event_history_to_plumbing(porcelain)
|
803
|
+
if porcelain == nil
|
804
|
+
return nil
|
805
|
+
end
|
806
|
+
plumbing = V1::AccessRequestEventHistory.new()
|
807
|
+
plumbing.access_request_event = convert_access_request_event_to_plumbing(porcelain.access_request_event)
|
808
|
+
plumbing.activity_id = (porcelain.activity_id)
|
809
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
810
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
811
|
+
plumbing
|
812
|
+
end
|
813
|
+
def self.convert_repeated_access_request_event_history_to_plumbing(porcelains)
|
814
|
+
items = Array.new
|
815
|
+
porcelains.each do |porcelain|
|
816
|
+
plumbing = convert_access_request_event_history_to_plumbing(porcelain)
|
817
|
+
items.append(plumbing)
|
818
|
+
end
|
819
|
+
items
|
820
|
+
end
|
821
|
+
|
822
|
+
def self.convert_repeated_access_request_event_history_to_porcelain(plumbings)
|
823
|
+
items = Array.new
|
824
|
+
plumbings.each do |plumbing|
|
825
|
+
porcelain = convert_access_request_event_history_to_porcelain(plumbing)
|
826
|
+
items.append(porcelain)
|
827
|
+
end
|
828
|
+
items
|
829
|
+
end
|
830
|
+
def self.convert_access_request_history_to_porcelain(plumbing)
|
831
|
+
if plumbing == nil
|
832
|
+
return nil
|
833
|
+
end
|
834
|
+
porcelain = AccessRequestHistory.new()
|
835
|
+
porcelain.access_request = convert_access_request_to_porcelain(plumbing.access_request)
|
836
|
+
porcelain.activity_id = (plumbing.activity_id)
|
837
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
838
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
839
|
+
porcelain
|
840
|
+
end
|
841
|
+
|
842
|
+
def self.convert_access_request_history_to_plumbing(porcelain)
|
843
|
+
if porcelain == nil
|
844
|
+
return nil
|
845
|
+
end
|
846
|
+
plumbing = V1::AccessRequestHistory.new()
|
847
|
+
plumbing.access_request = convert_access_request_to_plumbing(porcelain.access_request)
|
848
|
+
plumbing.activity_id = (porcelain.activity_id)
|
849
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
850
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
851
|
+
plumbing
|
852
|
+
end
|
853
|
+
def self.convert_repeated_access_request_history_to_plumbing(porcelains)
|
854
|
+
items = Array.new
|
855
|
+
porcelains.each do |porcelain|
|
856
|
+
plumbing = convert_access_request_history_to_plumbing(porcelain)
|
857
|
+
items.append(plumbing)
|
858
|
+
end
|
859
|
+
items
|
860
|
+
end
|
861
|
+
|
862
|
+
def self.convert_repeated_access_request_history_to_porcelain(plumbings)
|
863
|
+
items = Array.new
|
864
|
+
plumbings.each do |plumbing|
|
865
|
+
porcelain = convert_access_request_history_to_porcelain(plumbing)
|
866
|
+
items.append(porcelain)
|
867
|
+
end
|
868
|
+
items
|
869
|
+
end
|
688
870
|
def self.convert_account_to_plumbing(porcelain)
|
689
871
|
if porcelain == nil
|
690
872
|
return nil
|
@@ -9799,6 +9981,320 @@ module SDM
|
|
9799
9981
|
end
|
9800
9982
|
items
|
9801
9983
|
end
|
9984
|
+
def self.convert_workflow_to_porcelain(plumbing)
|
9985
|
+
if plumbing == nil
|
9986
|
+
return nil
|
9987
|
+
end
|
9988
|
+
porcelain = Workflow.new()
|
9989
|
+
porcelain.access_rules = convert_access_rules_to_porcelain(plumbing.access_rules)
|
9990
|
+
porcelain.auto_grant = (plumbing.auto_grant)
|
9991
|
+
porcelain.description = (plumbing.description)
|
9992
|
+
porcelain.enabled = (plumbing.enabled)
|
9993
|
+
porcelain.id = (plumbing.id)
|
9994
|
+
porcelain.name = (plumbing.name)
|
9995
|
+
porcelain.weight = (plumbing.weight)
|
9996
|
+
porcelain
|
9997
|
+
end
|
9998
|
+
|
9999
|
+
def self.convert_workflow_to_plumbing(porcelain)
|
10000
|
+
if porcelain == nil
|
10001
|
+
return nil
|
10002
|
+
end
|
10003
|
+
plumbing = V1::Workflow.new()
|
10004
|
+
plumbing.access_rules = convert_access_rules_to_plumbing(porcelain.access_rules)
|
10005
|
+
plumbing.auto_grant = (porcelain.auto_grant)
|
10006
|
+
plumbing.description = (porcelain.description)
|
10007
|
+
plumbing.enabled = (porcelain.enabled)
|
10008
|
+
plumbing.id = (porcelain.id)
|
10009
|
+
plumbing.name = (porcelain.name)
|
10010
|
+
plumbing.weight = (porcelain.weight)
|
10011
|
+
plumbing
|
10012
|
+
end
|
10013
|
+
def self.convert_repeated_workflow_to_plumbing(porcelains)
|
10014
|
+
items = Array.new
|
10015
|
+
porcelains.each do |porcelain|
|
10016
|
+
plumbing = convert_workflow_to_plumbing(porcelain)
|
10017
|
+
items.append(plumbing)
|
10018
|
+
end
|
10019
|
+
items
|
10020
|
+
end
|
10021
|
+
|
10022
|
+
def self.convert_repeated_workflow_to_porcelain(plumbings)
|
10023
|
+
items = Array.new
|
10024
|
+
plumbings.each do |plumbing|
|
10025
|
+
porcelain = convert_workflow_to_porcelain(plumbing)
|
10026
|
+
items.append(porcelain)
|
10027
|
+
end
|
10028
|
+
items
|
10029
|
+
end
|
10030
|
+
def self.convert_workflow_approver_to_porcelain(plumbing)
|
10031
|
+
if plumbing == nil
|
10032
|
+
return nil
|
10033
|
+
end
|
10034
|
+
porcelain = WorkflowApprover.new()
|
10035
|
+
porcelain.approver_id = (plumbing.approver_id)
|
10036
|
+
porcelain.workflow_id = (plumbing.workflow_id)
|
10037
|
+
porcelain
|
10038
|
+
end
|
10039
|
+
|
10040
|
+
def self.convert_workflow_approver_to_plumbing(porcelain)
|
10041
|
+
if porcelain == nil
|
10042
|
+
return nil
|
10043
|
+
end
|
10044
|
+
plumbing = V1::WorkflowApprover.new()
|
10045
|
+
plumbing.approver_id = (porcelain.approver_id)
|
10046
|
+
plumbing.workflow_id = (porcelain.workflow_id)
|
10047
|
+
plumbing
|
10048
|
+
end
|
10049
|
+
def self.convert_repeated_workflow_approver_to_plumbing(porcelains)
|
10050
|
+
items = Array.new
|
10051
|
+
porcelains.each do |porcelain|
|
10052
|
+
plumbing = convert_workflow_approver_to_plumbing(porcelain)
|
10053
|
+
items.append(plumbing)
|
10054
|
+
end
|
10055
|
+
items
|
10056
|
+
end
|
10057
|
+
|
10058
|
+
def self.convert_repeated_workflow_approver_to_porcelain(plumbings)
|
10059
|
+
items = Array.new
|
10060
|
+
plumbings.each do |plumbing|
|
10061
|
+
porcelain = convert_workflow_approver_to_porcelain(plumbing)
|
10062
|
+
items.append(porcelain)
|
10063
|
+
end
|
10064
|
+
items
|
10065
|
+
end
|
10066
|
+
def self.convert_workflow_approver_history_to_porcelain(plumbing)
|
10067
|
+
if plumbing == nil
|
10068
|
+
return nil
|
10069
|
+
end
|
10070
|
+
porcelain = WorkflowApproverHistory.new()
|
10071
|
+
porcelain.activity_id = (plumbing.activity_id)
|
10072
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
10073
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
10074
|
+
porcelain.workflow_approver = convert_workflow_approver_to_porcelain(plumbing.workflow_approver)
|
10075
|
+
porcelain
|
10076
|
+
end
|
10077
|
+
|
10078
|
+
def self.convert_workflow_approver_history_to_plumbing(porcelain)
|
10079
|
+
if porcelain == nil
|
10080
|
+
return nil
|
10081
|
+
end
|
10082
|
+
plumbing = V1::WorkflowApproverHistory.new()
|
10083
|
+
plumbing.activity_id = (porcelain.activity_id)
|
10084
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
10085
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
10086
|
+
plumbing.workflow_approver = convert_workflow_approver_to_plumbing(porcelain.workflow_approver)
|
10087
|
+
plumbing
|
10088
|
+
end
|
10089
|
+
def self.convert_repeated_workflow_approver_history_to_plumbing(porcelains)
|
10090
|
+
items = Array.new
|
10091
|
+
porcelains.each do |porcelain|
|
10092
|
+
plumbing = convert_workflow_approver_history_to_plumbing(porcelain)
|
10093
|
+
items.append(plumbing)
|
10094
|
+
end
|
10095
|
+
items
|
10096
|
+
end
|
10097
|
+
|
10098
|
+
def self.convert_repeated_workflow_approver_history_to_porcelain(plumbings)
|
10099
|
+
items = Array.new
|
10100
|
+
plumbings.each do |plumbing|
|
10101
|
+
porcelain = convert_workflow_approver_history_to_porcelain(plumbing)
|
10102
|
+
items.append(porcelain)
|
10103
|
+
end
|
10104
|
+
items
|
10105
|
+
end
|
10106
|
+
def self.convert_workflow_assignment_to_porcelain(plumbing)
|
10107
|
+
if plumbing == nil
|
10108
|
+
return nil
|
10109
|
+
end
|
10110
|
+
porcelain = WorkflowAssignment.new()
|
10111
|
+
porcelain.resource_id = (plumbing.resource_id)
|
10112
|
+
porcelain.workflow_id = (plumbing.workflow_id)
|
10113
|
+
porcelain
|
10114
|
+
end
|
10115
|
+
|
10116
|
+
def self.convert_workflow_assignment_to_plumbing(porcelain)
|
10117
|
+
if porcelain == nil
|
10118
|
+
return nil
|
10119
|
+
end
|
10120
|
+
plumbing = V1::WorkflowAssignment.new()
|
10121
|
+
plumbing.resource_id = (porcelain.resource_id)
|
10122
|
+
plumbing.workflow_id = (porcelain.workflow_id)
|
10123
|
+
plumbing
|
10124
|
+
end
|
10125
|
+
def self.convert_repeated_workflow_assignment_to_plumbing(porcelains)
|
10126
|
+
items = Array.new
|
10127
|
+
porcelains.each do |porcelain|
|
10128
|
+
plumbing = convert_workflow_assignment_to_plumbing(porcelain)
|
10129
|
+
items.append(plumbing)
|
10130
|
+
end
|
10131
|
+
items
|
10132
|
+
end
|
10133
|
+
|
10134
|
+
def self.convert_repeated_workflow_assignment_to_porcelain(plumbings)
|
10135
|
+
items = Array.new
|
10136
|
+
plumbings.each do |plumbing|
|
10137
|
+
porcelain = convert_workflow_assignment_to_porcelain(plumbing)
|
10138
|
+
items.append(porcelain)
|
10139
|
+
end
|
10140
|
+
items
|
10141
|
+
end
|
10142
|
+
def self.convert_workflow_assignment_history_to_porcelain(plumbing)
|
10143
|
+
if plumbing == nil
|
10144
|
+
return nil
|
10145
|
+
end
|
10146
|
+
porcelain = WorkflowAssignmentHistory.new()
|
10147
|
+
porcelain.activity_id = (plumbing.activity_id)
|
10148
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
10149
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
10150
|
+
porcelain.workflow_assignment = convert_workflow_assignment_to_porcelain(plumbing.workflow_assignment)
|
10151
|
+
porcelain
|
10152
|
+
end
|
10153
|
+
|
10154
|
+
def self.convert_workflow_assignment_history_to_plumbing(porcelain)
|
10155
|
+
if porcelain == nil
|
10156
|
+
return nil
|
10157
|
+
end
|
10158
|
+
plumbing = V1::WorkflowAssignmentHistory.new()
|
10159
|
+
plumbing.activity_id = (porcelain.activity_id)
|
10160
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
10161
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
10162
|
+
plumbing.workflow_assignment = convert_workflow_assignment_to_plumbing(porcelain.workflow_assignment)
|
10163
|
+
plumbing
|
10164
|
+
end
|
10165
|
+
def self.convert_repeated_workflow_assignment_history_to_plumbing(porcelains)
|
10166
|
+
items = Array.new
|
10167
|
+
porcelains.each do |porcelain|
|
10168
|
+
plumbing = convert_workflow_assignment_history_to_plumbing(porcelain)
|
10169
|
+
items.append(plumbing)
|
10170
|
+
end
|
10171
|
+
items
|
10172
|
+
end
|
10173
|
+
|
10174
|
+
def self.convert_repeated_workflow_assignment_history_to_porcelain(plumbings)
|
10175
|
+
items = Array.new
|
10176
|
+
plumbings.each do |plumbing|
|
10177
|
+
porcelain = convert_workflow_assignment_history_to_porcelain(plumbing)
|
10178
|
+
items.append(porcelain)
|
10179
|
+
end
|
10180
|
+
items
|
10181
|
+
end
|
10182
|
+
def self.convert_workflow_history_to_porcelain(plumbing)
|
10183
|
+
if plumbing == nil
|
10184
|
+
return nil
|
10185
|
+
end
|
10186
|
+
porcelain = WorkflowHistory.new()
|
10187
|
+
porcelain.activity_id = (plumbing.activity_id)
|
10188
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
10189
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
10190
|
+
porcelain.workflow = convert_workflow_to_porcelain(plumbing.workflow)
|
10191
|
+
porcelain
|
10192
|
+
end
|
10193
|
+
|
10194
|
+
def self.convert_workflow_history_to_plumbing(porcelain)
|
10195
|
+
if porcelain == nil
|
10196
|
+
return nil
|
10197
|
+
end
|
10198
|
+
plumbing = V1::WorkflowHistory.new()
|
10199
|
+
plumbing.activity_id = (porcelain.activity_id)
|
10200
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
10201
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
10202
|
+
plumbing.workflow = convert_workflow_to_plumbing(porcelain.workflow)
|
10203
|
+
plumbing
|
10204
|
+
end
|
10205
|
+
def self.convert_repeated_workflow_history_to_plumbing(porcelains)
|
10206
|
+
items = Array.new
|
10207
|
+
porcelains.each do |porcelain|
|
10208
|
+
plumbing = convert_workflow_history_to_plumbing(porcelain)
|
10209
|
+
items.append(plumbing)
|
10210
|
+
end
|
10211
|
+
items
|
10212
|
+
end
|
10213
|
+
|
10214
|
+
def self.convert_repeated_workflow_history_to_porcelain(plumbings)
|
10215
|
+
items = Array.new
|
10216
|
+
plumbings.each do |plumbing|
|
10217
|
+
porcelain = convert_workflow_history_to_porcelain(plumbing)
|
10218
|
+
items.append(porcelain)
|
10219
|
+
end
|
10220
|
+
items
|
10221
|
+
end
|
10222
|
+
def self.convert_workflow_role_to_porcelain(plumbing)
|
10223
|
+
if plumbing == nil
|
10224
|
+
return nil
|
10225
|
+
end
|
10226
|
+
porcelain = WorkflowRole.new()
|
10227
|
+
porcelain.role_id = (plumbing.role_id)
|
10228
|
+
porcelain.workflow_id = (plumbing.workflow_id)
|
10229
|
+
porcelain
|
10230
|
+
end
|
10231
|
+
|
10232
|
+
def self.convert_workflow_role_to_plumbing(porcelain)
|
10233
|
+
if porcelain == nil
|
10234
|
+
return nil
|
10235
|
+
end
|
10236
|
+
plumbing = V1::WorkflowRole.new()
|
10237
|
+
plumbing.role_id = (porcelain.role_id)
|
10238
|
+
plumbing.workflow_id = (porcelain.workflow_id)
|
10239
|
+
plumbing
|
10240
|
+
end
|
10241
|
+
def self.convert_repeated_workflow_role_to_plumbing(porcelains)
|
10242
|
+
items = Array.new
|
10243
|
+
porcelains.each do |porcelain|
|
10244
|
+
plumbing = convert_workflow_role_to_plumbing(porcelain)
|
10245
|
+
items.append(plumbing)
|
10246
|
+
end
|
10247
|
+
items
|
10248
|
+
end
|
10249
|
+
|
10250
|
+
def self.convert_repeated_workflow_role_to_porcelain(plumbings)
|
10251
|
+
items = Array.new
|
10252
|
+
plumbings.each do |plumbing|
|
10253
|
+
porcelain = convert_workflow_role_to_porcelain(plumbing)
|
10254
|
+
items.append(porcelain)
|
10255
|
+
end
|
10256
|
+
items
|
10257
|
+
end
|
10258
|
+
def self.convert_workflow_role_history_to_porcelain(plumbing)
|
10259
|
+
if plumbing == nil
|
10260
|
+
return nil
|
10261
|
+
end
|
10262
|
+
porcelain = WorkflowRoleHistory.new()
|
10263
|
+
porcelain.activity_id = (plumbing.activity_id)
|
10264
|
+
porcelain.deleted_at = convert_timestamp_to_porcelain(plumbing.deleted_at)
|
10265
|
+
porcelain.timestamp = convert_timestamp_to_porcelain(plumbing.timestamp)
|
10266
|
+
porcelain.workflow_role = convert_workflow_role_to_porcelain(plumbing.workflow_role)
|
10267
|
+
porcelain
|
10268
|
+
end
|
10269
|
+
|
10270
|
+
def self.convert_workflow_role_history_to_plumbing(porcelain)
|
10271
|
+
if porcelain == nil
|
10272
|
+
return nil
|
10273
|
+
end
|
10274
|
+
plumbing = V1::WorkflowRoleHistory.new()
|
10275
|
+
plumbing.activity_id = (porcelain.activity_id)
|
10276
|
+
plumbing.deleted_at = convert_timestamp_to_plumbing(porcelain.deleted_at)
|
10277
|
+
plumbing.timestamp = convert_timestamp_to_plumbing(porcelain.timestamp)
|
10278
|
+
plumbing.workflow_role = convert_workflow_role_to_plumbing(porcelain.workflow_role)
|
10279
|
+
plumbing
|
10280
|
+
end
|
10281
|
+
def self.convert_repeated_workflow_role_history_to_plumbing(porcelains)
|
10282
|
+
items = Array.new
|
10283
|
+
porcelains.each do |porcelain|
|
10284
|
+
plumbing = convert_workflow_role_history_to_plumbing(porcelain)
|
10285
|
+
items.append(plumbing)
|
10286
|
+
end
|
10287
|
+
items
|
10288
|
+
end
|
10289
|
+
|
10290
|
+
def self.convert_repeated_workflow_role_history_to_porcelain(plumbings)
|
10291
|
+
items = Array.new
|
10292
|
+
plumbings.each do |plumbing|
|
10293
|
+
porcelain = convert_workflow_role_history_to_porcelain(plumbing)
|
10294
|
+
items.append(porcelain)
|
10295
|
+
end
|
10296
|
+
items
|
10297
|
+
end
|
9802
10298
|
def self.convert_error_to_porcelain(err)
|
9803
10299
|
if not err.is_a? GRPC::BadStatus
|
9804
10300
|
return UnknownError.new(err.message)
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# source: workflow_approvers_history.proto
|
17
|
+
|
18
|
+
require "google/protobuf"
|
19
|
+
|
20
|
+
require "google/protobuf/timestamp_pb"
|
21
|
+
require "workflows_pb"
|
22
|
+
require "options_pb"
|
23
|
+
require "spec_pb"
|
24
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
25
|
+
add_file("workflow_approvers_history.proto", :syntax => :proto3) do
|
26
|
+
add_message "v1.WorkflowApproversHistoryListRequest" do
|
27
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
28
|
+
optional :filter, :string, 2
|
29
|
+
end
|
30
|
+
add_message "v1.WorkflowApproversHistoryListResponse" do
|
31
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
32
|
+
repeated :history, :message, 2, "v1.WorkflowApproverHistory"
|
33
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
34
|
+
end
|
35
|
+
add_message "v1.WorkflowApproverHistory" do
|
36
|
+
optional :activity_id, :string, 1
|
37
|
+
optional :timestamp, :message, 2, "google.protobuf.Timestamp"
|
38
|
+
optional :workflow_approver, :message, 3, "v1.WorkflowApprover"
|
39
|
+
optional :deleted_at, :message, 4, "google.protobuf.Timestamp"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
module V1
|
45
|
+
WorkflowApproversHistoryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.WorkflowApproversHistoryListRequest").msgclass
|
46
|
+
WorkflowApproversHistoryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.WorkflowApproversHistoryListResponse").msgclass
|
47
|
+
WorkflowApproverHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.WorkflowApproverHistory").msgclass
|
48
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# Source: workflow_approvers_history.proto for package 'v1'
|
17
|
+
|
18
|
+
require "grpc"
|
19
|
+
require "workflow_approvers_history_pb"
|
20
|
+
|
21
|
+
module V1
|
22
|
+
module WorkflowApproversHistory
|
23
|
+
# WorkflowApproversHistory provides records of all changes to the state of a WorkflowApprover.
|
24
|
+
class Service
|
25
|
+
include GRPC::GenericService
|
26
|
+
|
27
|
+
self.marshal_class_method = :encode
|
28
|
+
self.unmarshal_class_method = :decode
|
29
|
+
self.service_name = "v1.WorkflowApproversHistory"
|
30
|
+
|
31
|
+
# List gets a list of WorkflowApproversHistory records matching a given set of criteria.
|
32
|
+
rpc :List, V1::WorkflowApproversHistoryListRequest, V1::WorkflowApproversHistoryListResponse
|
33
|
+
end
|
34
|
+
|
35
|
+
Stub = Service.rpc_stub_class
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# source: workflow_assignments_history.proto
|
17
|
+
|
18
|
+
require "google/protobuf"
|
19
|
+
|
20
|
+
require "google/protobuf/timestamp_pb"
|
21
|
+
require "workflows_pb"
|
22
|
+
require "options_pb"
|
23
|
+
require "spec_pb"
|
24
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
25
|
+
add_file("workflow_assignments_history.proto", :syntax => :proto3) do
|
26
|
+
add_message "v1.WorkflowAssignmentsHistoryListRequest" do
|
27
|
+
optional :meta, :message, 1, "v1.ListRequestMetadata"
|
28
|
+
optional :filter, :string, 2
|
29
|
+
end
|
30
|
+
add_message "v1.WorkflowAssignmentsHistoryListResponse" do
|
31
|
+
optional :meta, :message, 1, "v1.ListResponseMetadata"
|
32
|
+
repeated :history, :message, 2, "v1.WorkflowAssignmentHistory"
|
33
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
34
|
+
end
|
35
|
+
add_message "v1.WorkflowAssignmentHistory" do
|
36
|
+
optional :activity_id, :string, 1
|
37
|
+
optional :timestamp, :message, 2, "google.protobuf.Timestamp"
|
38
|
+
optional :workflow_assignment, :message, 3, "v1.WorkflowAssignment"
|
39
|
+
optional :deleted_at, :message, 4, "google.protobuf.Timestamp"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
module V1
|
45
|
+
WorkflowAssignmentsHistoryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.WorkflowAssignmentsHistoryListRequest").msgclass
|
46
|
+
WorkflowAssignmentsHistoryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.WorkflowAssignmentsHistoryListResponse").msgclass
|
47
|
+
WorkflowAssignmentHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.WorkflowAssignmentHistory").msgclass
|
48
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Copyright 2020 StrongDM Inc
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
16
|
+
# Source: workflow_assignments_history.proto for package 'v1'
|
17
|
+
|
18
|
+
require "grpc"
|
19
|
+
require "workflow_assignments_history_pb"
|
20
|
+
|
21
|
+
module V1
|
22
|
+
module WorkflowAssignmentsHistory
|
23
|
+
# WorkflowAssignmentsHistory provides records of all changes to the state of a WorkflowAssignment.
|
24
|
+
class Service
|
25
|
+
include GRPC::GenericService
|
26
|
+
|
27
|
+
self.marshal_class_method = :encode
|
28
|
+
self.unmarshal_class_method = :decode
|
29
|
+
self.service_name = "v1.WorkflowAssignmentsHistory"
|
30
|
+
|
31
|
+
# List gets a list of WorkflowAssignmentsHistory records matching a given set of criteria.
|
32
|
+
rpc :List, V1::WorkflowAssignmentsHistoryListRequest, V1::WorkflowAssignmentsHistoryListResponse
|
33
|
+
end
|
34
|
+
|
35
|
+
Stub = Service.rpc_stub_class
|
36
|
+
end
|
37
|
+
end
|