strongdm 4.2.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-ab429bd34d8703aafaf2a617c2c9379839382f37.idx → pack-9c459884b97e0a33b1e10aa61914fa82820fa985.idx} +0 -0
- data/.git/objects/pack/{pack-ab429bd34d8703aafaf2a617c2c9379839382f37.pack → pack-9c459884b97e0a33b1e10aa61914fa82820fa985.pack} +0 -0
- data/.git/packed-refs +4 -2
- data/.git/refs/heads/master +1 -1
- data/lib/constants.rb +2 -0
- 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/drivers_pb.rb +2 -0
- data/lib/grpc/options_pb.rb +1 -0
- data/lib/grpc/plumbing.rb +500 -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 +432 -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/svc.rb
CHANGED
@@ -24,6 +24,197 @@ Dir[File.join(__dir__, "grpc", "*.rb")].each { |file| require file }
|
|
24
24
|
Dir[File.join(__dir__, "models", "*.rb")].each { |file| require file }
|
25
25
|
|
26
26
|
module SDM #:nodoc:
|
27
|
+
# AccessRequests are requests for access to a resource that may match a Workflow.
|
28
|
+
#
|
29
|
+
# See {AccessRequest}.
|
30
|
+
class AccessRequests
|
31
|
+
extend Gem::Deprecate
|
32
|
+
|
33
|
+
def initialize(channel, parent)
|
34
|
+
begin
|
35
|
+
@stub = V1::AccessRequests::Stub.new(nil, nil, channel_override: channel)
|
36
|
+
rescue => exception
|
37
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
38
|
+
end
|
39
|
+
@parent = parent
|
40
|
+
end
|
41
|
+
|
42
|
+
# Lists existing workflows.
|
43
|
+
def list(
|
44
|
+
filter,
|
45
|
+
*args,
|
46
|
+
deadline: nil
|
47
|
+
)
|
48
|
+
req = V1::AccessRequestListRequest.new()
|
49
|
+
req.meta = V1::ListRequestMetadata.new()
|
50
|
+
page_size_option = @parent._test_options["PageSize"]
|
51
|
+
if page_size_option.is_a? Integer
|
52
|
+
req.meta.limit = page_size_option
|
53
|
+
end
|
54
|
+
if not @parent.snapshot_time.nil?
|
55
|
+
req.meta.snapshot_at = @parent.snapshot_time
|
56
|
+
end
|
57
|
+
|
58
|
+
req.filter = Plumbing::quote_filter_args(filter, *args)
|
59
|
+
resp = Enumerator::Generator.new { |g|
|
60
|
+
tries = 0
|
61
|
+
loop do
|
62
|
+
begin
|
63
|
+
plumbing_response = @stub.list(req, metadata: @parent.get_metadata("AccessRequests.List", req), deadline: deadline)
|
64
|
+
rescue => exception
|
65
|
+
if (@parent.shouldRetry(tries, exception))
|
66
|
+
tries + +@parent.jitterSleep(tries)
|
67
|
+
next
|
68
|
+
end
|
69
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
70
|
+
end
|
71
|
+
tries = 0
|
72
|
+
plumbing_response.access_requests.each do |plumbing_item|
|
73
|
+
g.yield Plumbing::convert_access_request_to_porcelain(plumbing_item)
|
74
|
+
end
|
75
|
+
break if plumbing_response.meta.next_cursor == ""
|
76
|
+
req.meta.cursor = plumbing_response.meta.next_cursor
|
77
|
+
end
|
78
|
+
}
|
79
|
+
resp
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# SnapshotAccessRequests exposes the read only methods of the AccessRequests
|
84
|
+
# service for historical queries.
|
85
|
+
class SnapshotAccessRequests
|
86
|
+
extend Gem::Deprecate
|
87
|
+
|
88
|
+
def initialize(access_requests)
|
89
|
+
@access_requests = access_requests
|
90
|
+
end
|
91
|
+
|
92
|
+
# Lists existing workflows.
|
93
|
+
def list(
|
94
|
+
filter,
|
95
|
+
*args,
|
96
|
+
deadline: nil
|
97
|
+
)
|
98
|
+
return @access_requests.list(
|
99
|
+
filter,
|
100
|
+
*args,
|
101
|
+
deadline: deadline,
|
102
|
+
)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# AccessRequestEventsHistory provides records of all changes to the state of an AccessRequest.
|
107
|
+
#
|
108
|
+
# See {AccessRequestEventHistory}.
|
109
|
+
class AccessRequestEventsHistory
|
110
|
+
extend Gem::Deprecate
|
111
|
+
|
112
|
+
def initialize(channel, parent)
|
113
|
+
begin
|
114
|
+
@stub = V1::AccessRequestEventsHistory::Stub.new(nil, nil, channel_override: channel)
|
115
|
+
rescue => exception
|
116
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
117
|
+
end
|
118
|
+
@parent = parent
|
119
|
+
end
|
120
|
+
|
121
|
+
# List gets a list of AccessRequestEventHistory records matching a given set of criteria.
|
122
|
+
def list(
|
123
|
+
filter,
|
124
|
+
*args,
|
125
|
+
deadline: nil
|
126
|
+
)
|
127
|
+
req = V1::AccessRequestEventHistoryListRequest.new()
|
128
|
+
req.meta = V1::ListRequestMetadata.new()
|
129
|
+
page_size_option = @parent._test_options["PageSize"]
|
130
|
+
if page_size_option.is_a? Integer
|
131
|
+
req.meta.limit = page_size_option
|
132
|
+
end
|
133
|
+
if not @parent.snapshot_time.nil?
|
134
|
+
req.meta.snapshot_at = @parent.snapshot_time
|
135
|
+
end
|
136
|
+
|
137
|
+
req.filter = Plumbing::quote_filter_args(filter, *args)
|
138
|
+
resp = Enumerator::Generator.new { |g|
|
139
|
+
tries = 0
|
140
|
+
loop do
|
141
|
+
begin
|
142
|
+
plumbing_response = @stub.list(req, metadata: @parent.get_metadata("AccessRequestEventsHistory.List", req), deadline: deadline)
|
143
|
+
rescue => exception
|
144
|
+
if (@parent.shouldRetry(tries, exception))
|
145
|
+
tries + +@parent.jitterSleep(tries)
|
146
|
+
next
|
147
|
+
end
|
148
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
149
|
+
end
|
150
|
+
tries = 0
|
151
|
+
plumbing_response.history.each do |plumbing_item|
|
152
|
+
g.yield Plumbing::convert_access_request_event_history_to_porcelain(plumbing_item)
|
153
|
+
end
|
154
|
+
break if plumbing_response.meta.next_cursor == ""
|
155
|
+
req.meta.cursor = plumbing_response.meta.next_cursor
|
156
|
+
end
|
157
|
+
}
|
158
|
+
resp
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# AccessRequestsHistory provides records of all changes to the state of an AccessRequest.
|
163
|
+
#
|
164
|
+
# See {AccessRequestHistory}.
|
165
|
+
class AccessRequestsHistory
|
166
|
+
extend Gem::Deprecate
|
167
|
+
|
168
|
+
def initialize(channel, parent)
|
169
|
+
begin
|
170
|
+
@stub = V1::AccessRequestsHistory::Stub.new(nil, nil, channel_override: channel)
|
171
|
+
rescue => exception
|
172
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
173
|
+
end
|
174
|
+
@parent = parent
|
175
|
+
end
|
176
|
+
|
177
|
+
# List gets a list of AccessRequestHistory records matching a given set of criteria.
|
178
|
+
def list(
|
179
|
+
filter,
|
180
|
+
*args,
|
181
|
+
deadline: nil
|
182
|
+
)
|
183
|
+
req = V1::AccessRequestHistoryListRequest.new()
|
184
|
+
req.meta = V1::ListRequestMetadata.new()
|
185
|
+
page_size_option = @parent._test_options["PageSize"]
|
186
|
+
if page_size_option.is_a? Integer
|
187
|
+
req.meta.limit = page_size_option
|
188
|
+
end
|
189
|
+
if not @parent.snapshot_time.nil?
|
190
|
+
req.meta.snapshot_at = @parent.snapshot_time
|
191
|
+
end
|
192
|
+
|
193
|
+
req.filter = Plumbing::quote_filter_args(filter, *args)
|
194
|
+
resp = Enumerator::Generator.new { |g|
|
195
|
+
tries = 0
|
196
|
+
loop do
|
197
|
+
begin
|
198
|
+
plumbing_response = @stub.list(req, metadata: @parent.get_metadata("AccessRequestsHistory.List", req), deadline: deadline)
|
199
|
+
rescue => exception
|
200
|
+
if (@parent.shouldRetry(tries, exception))
|
201
|
+
tries + +@parent.jitterSleep(tries)
|
202
|
+
next
|
203
|
+
end
|
204
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
205
|
+
end
|
206
|
+
tries = 0
|
207
|
+
plumbing_response.history.each do |plumbing_item|
|
208
|
+
g.yield Plumbing::convert_access_request_history_to_porcelain(plumbing_item)
|
209
|
+
end
|
210
|
+
break if plumbing_response.meta.next_cursor == ""
|
211
|
+
req.meta.cursor = plumbing_response.meta.next_cursor
|
212
|
+
end
|
213
|
+
}
|
214
|
+
resp
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
27
218
|
# AccountAttachments assign an account to a role.
|
28
219
|
#
|
29
220
|
# See {AccountAttachment}.
|
@@ -3858,4 +4049,309 @@ module SDM #:nodoc:
|
|
3858
4049
|
resp
|
3859
4050
|
end
|
3860
4051
|
end
|
4052
|
+
|
4053
|
+
# Workflows are the collection of rules that define the resources to which access can be requested,
|
4054
|
+
# the users that can request that access, and the mechanism for approving those requests which can either
|
4055
|
+
# but automatic approval or a set of users authorized to approve the requests.
|
4056
|
+
#
|
4057
|
+
# See {Workflow}.
|
4058
|
+
class Workflows
|
4059
|
+
extend Gem::Deprecate
|
4060
|
+
|
4061
|
+
def initialize(channel, parent)
|
4062
|
+
begin
|
4063
|
+
@stub = V1::Workflows::Stub.new(nil, nil, channel_override: channel)
|
4064
|
+
rescue => exception
|
4065
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4066
|
+
end
|
4067
|
+
@parent = parent
|
4068
|
+
end
|
4069
|
+
|
4070
|
+
# Lists existing workflows.
|
4071
|
+
def list(
|
4072
|
+
filter,
|
4073
|
+
*args,
|
4074
|
+
deadline: nil
|
4075
|
+
)
|
4076
|
+
req = V1::WorkflowListRequest.new()
|
4077
|
+
req.meta = V1::ListRequestMetadata.new()
|
4078
|
+
page_size_option = @parent._test_options["PageSize"]
|
4079
|
+
if page_size_option.is_a? Integer
|
4080
|
+
req.meta.limit = page_size_option
|
4081
|
+
end
|
4082
|
+
if not @parent.snapshot_time.nil?
|
4083
|
+
req.meta.snapshot_at = @parent.snapshot_time
|
4084
|
+
end
|
4085
|
+
|
4086
|
+
req.filter = Plumbing::quote_filter_args(filter, *args)
|
4087
|
+
resp = Enumerator::Generator.new { |g|
|
4088
|
+
tries = 0
|
4089
|
+
loop do
|
4090
|
+
begin
|
4091
|
+
plumbing_response = @stub.list(req, metadata: @parent.get_metadata("Workflows.List", req), deadline: deadline)
|
4092
|
+
rescue => exception
|
4093
|
+
if (@parent.shouldRetry(tries, exception))
|
4094
|
+
tries + +@parent.jitterSleep(tries)
|
4095
|
+
next
|
4096
|
+
end
|
4097
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4098
|
+
end
|
4099
|
+
tries = 0
|
4100
|
+
plumbing_response.workflows.each do |plumbing_item|
|
4101
|
+
g.yield Plumbing::convert_workflow_to_porcelain(plumbing_item)
|
4102
|
+
end
|
4103
|
+
break if plumbing_response.meta.next_cursor == ""
|
4104
|
+
req.meta.cursor = plumbing_response.meta.next_cursor
|
4105
|
+
end
|
4106
|
+
}
|
4107
|
+
resp
|
4108
|
+
end
|
4109
|
+
end
|
4110
|
+
|
4111
|
+
# SnapshotWorkflows exposes the read only methods of the Workflows
|
4112
|
+
# service for historical queries.
|
4113
|
+
class SnapshotWorkflows
|
4114
|
+
extend Gem::Deprecate
|
4115
|
+
|
4116
|
+
def initialize(workflows)
|
4117
|
+
@workflows = workflows
|
4118
|
+
end
|
4119
|
+
|
4120
|
+
# Lists existing workflows.
|
4121
|
+
def list(
|
4122
|
+
filter,
|
4123
|
+
*args,
|
4124
|
+
deadline: nil
|
4125
|
+
)
|
4126
|
+
return @workflows.list(
|
4127
|
+
filter,
|
4128
|
+
*args,
|
4129
|
+
deadline: deadline,
|
4130
|
+
)
|
4131
|
+
end
|
4132
|
+
end
|
4133
|
+
|
4134
|
+
# WorkflowApproversHistory provides records of all changes to the state of a WorkflowApprover.
|
4135
|
+
#
|
4136
|
+
# See {WorkflowApproverHistory}.
|
4137
|
+
class WorkflowApproversHistory
|
4138
|
+
extend Gem::Deprecate
|
4139
|
+
|
4140
|
+
def initialize(channel, parent)
|
4141
|
+
begin
|
4142
|
+
@stub = V1::WorkflowApproversHistory::Stub.new(nil, nil, channel_override: channel)
|
4143
|
+
rescue => exception
|
4144
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4145
|
+
end
|
4146
|
+
@parent = parent
|
4147
|
+
end
|
4148
|
+
|
4149
|
+
# List gets a list of WorkflowApproversHistory records matching a given set of criteria.
|
4150
|
+
def list(
|
4151
|
+
filter,
|
4152
|
+
*args,
|
4153
|
+
deadline: nil
|
4154
|
+
)
|
4155
|
+
req = V1::WorkflowApproversHistoryListRequest.new()
|
4156
|
+
req.meta = V1::ListRequestMetadata.new()
|
4157
|
+
page_size_option = @parent._test_options["PageSize"]
|
4158
|
+
if page_size_option.is_a? Integer
|
4159
|
+
req.meta.limit = page_size_option
|
4160
|
+
end
|
4161
|
+
if not @parent.snapshot_time.nil?
|
4162
|
+
req.meta.snapshot_at = @parent.snapshot_time
|
4163
|
+
end
|
4164
|
+
|
4165
|
+
req.filter = Plumbing::quote_filter_args(filter, *args)
|
4166
|
+
resp = Enumerator::Generator.new { |g|
|
4167
|
+
tries = 0
|
4168
|
+
loop do
|
4169
|
+
begin
|
4170
|
+
plumbing_response = @stub.list(req, metadata: @parent.get_metadata("WorkflowApproversHistory.List", req), deadline: deadline)
|
4171
|
+
rescue => exception
|
4172
|
+
if (@parent.shouldRetry(tries, exception))
|
4173
|
+
tries + +@parent.jitterSleep(tries)
|
4174
|
+
next
|
4175
|
+
end
|
4176
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4177
|
+
end
|
4178
|
+
tries = 0
|
4179
|
+
plumbing_response.history.each do |plumbing_item|
|
4180
|
+
g.yield Plumbing::convert_workflow_approver_history_to_porcelain(plumbing_item)
|
4181
|
+
end
|
4182
|
+
break if plumbing_response.meta.next_cursor == ""
|
4183
|
+
req.meta.cursor = plumbing_response.meta.next_cursor
|
4184
|
+
end
|
4185
|
+
}
|
4186
|
+
resp
|
4187
|
+
end
|
4188
|
+
end
|
4189
|
+
|
4190
|
+
# WorkflowAssignmentsHistory provides records of all changes to the state of a WorkflowAssignment.
|
4191
|
+
#
|
4192
|
+
# See {WorkflowAssignmentHistory}.
|
4193
|
+
class WorkflowAssignmentsHistory
|
4194
|
+
extend Gem::Deprecate
|
4195
|
+
|
4196
|
+
def initialize(channel, parent)
|
4197
|
+
begin
|
4198
|
+
@stub = V1::WorkflowAssignmentsHistory::Stub.new(nil, nil, channel_override: channel)
|
4199
|
+
rescue => exception
|
4200
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4201
|
+
end
|
4202
|
+
@parent = parent
|
4203
|
+
end
|
4204
|
+
|
4205
|
+
# List gets a list of WorkflowAssignmentsHistory records matching a given set of criteria.
|
4206
|
+
def list(
|
4207
|
+
filter,
|
4208
|
+
*args,
|
4209
|
+
deadline: nil
|
4210
|
+
)
|
4211
|
+
req = V1::WorkflowAssignmentsHistoryListRequest.new()
|
4212
|
+
req.meta = V1::ListRequestMetadata.new()
|
4213
|
+
page_size_option = @parent._test_options["PageSize"]
|
4214
|
+
if page_size_option.is_a? Integer
|
4215
|
+
req.meta.limit = page_size_option
|
4216
|
+
end
|
4217
|
+
if not @parent.snapshot_time.nil?
|
4218
|
+
req.meta.snapshot_at = @parent.snapshot_time
|
4219
|
+
end
|
4220
|
+
|
4221
|
+
req.filter = Plumbing::quote_filter_args(filter, *args)
|
4222
|
+
resp = Enumerator::Generator.new { |g|
|
4223
|
+
tries = 0
|
4224
|
+
loop do
|
4225
|
+
begin
|
4226
|
+
plumbing_response = @stub.list(req, metadata: @parent.get_metadata("WorkflowAssignmentsHistory.List", req), deadline: deadline)
|
4227
|
+
rescue => exception
|
4228
|
+
if (@parent.shouldRetry(tries, exception))
|
4229
|
+
tries + +@parent.jitterSleep(tries)
|
4230
|
+
next
|
4231
|
+
end
|
4232
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4233
|
+
end
|
4234
|
+
tries = 0
|
4235
|
+
plumbing_response.history.each do |plumbing_item|
|
4236
|
+
g.yield Plumbing::convert_workflow_assignment_history_to_porcelain(plumbing_item)
|
4237
|
+
end
|
4238
|
+
break if plumbing_response.meta.next_cursor == ""
|
4239
|
+
req.meta.cursor = plumbing_response.meta.next_cursor
|
4240
|
+
end
|
4241
|
+
}
|
4242
|
+
resp
|
4243
|
+
end
|
4244
|
+
end
|
4245
|
+
|
4246
|
+
# WorkflowRolesHistory provides records of all changes to the state of a WorkflowRole
|
4247
|
+
#
|
4248
|
+
# See {WorkflowRoleHistory}.
|
4249
|
+
class WorkflowRolesHistory
|
4250
|
+
extend Gem::Deprecate
|
4251
|
+
|
4252
|
+
def initialize(channel, parent)
|
4253
|
+
begin
|
4254
|
+
@stub = V1::WorkflowRolesHistory::Stub.new(nil, nil, channel_override: channel)
|
4255
|
+
rescue => exception
|
4256
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4257
|
+
end
|
4258
|
+
@parent = parent
|
4259
|
+
end
|
4260
|
+
|
4261
|
+
# List gets a list of WorkflowRolesHistory records matching a given set of criteria.
|
4262
|
+
def list(
|
4263
|
+
filter,
|
4264
|
+
*args,
|
4265
|
+
deadline: nil
|
4266
|
+
)
|
4267
|
+
req = V1::WorkflowRolesHistoryListRequest.new()
|
4268
|
+
req.meta = V1::ListRequestMetadata.new()
|
4269
|
+
page_size_option = @parent._test_options["PageSize"]
|
4270
|
+
if page_size_option.is_a? Integer
|
4271
|
+
req.meta.limit = page_size_option
|
4272
|
+
end
|
4273
|
+
if not @parent.snapshot_time.nil?
|
4274
|
+
req.meta.snapshot_at = @parent.snapshot_time
|
4275
|
+
end
|
4276
|
+
|
4277
|
+
req.filter = Plumbing::quote_filter_args(filter, *args)
|
4278
|
+
resp = Enumerator::Generator.new { |g|
|
4279
|
+
tries = 0
|
4280
|
+
loop do
|
4281
|
+
begin
|
4282
|
+
plumbing_response = @stub.list(req, metadata: @parent.get_metadata("WorkflowRolesHistory.List", req), deadline: deadline)
|
4283
|
+
rescue => exception
|
4284
|
+
if (@parent.shouldRetry(tries, exception))
|
4285
|
+
tries + +@parent.jitterSleep(tries)
|
4286
|
+
next
|
4287
|
+
end
|
4288
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4289
|
+
end
|
4290
|
+
tries = 0
|
4291
|
+
plumbing_response.history.each do |plumbing_item|
|
4292
|
+
g.yield Plumbing::convert_workflow_role_history_to_porcelain(plumbing_item)
|
4293
|
+
end
|
4294
|
+
break if plumbing_response.meta.next_cursor == ""
|
4295
|
+
req.meta.cursor = plumbing_response.meta.next_cursor
|
4296
|
+
end
|
4297
|
+
}
|
4298
|
+
resp
|
4299
|
+
end
|
4300
|
+
end
|
4301
|
+
|
4302
|
+
# WorkflowsHistory provides records of all changes to the state of a Workflow.
|
4303
|
+
#
|
4304
|
+
# See {WorkflowHistory}.
|
4305
|
+
class WorkflowsHistory
|
4306
|
+
extend Gem::Deprecate
|
4307
|
+
|
4308
|
+
def initialize(channel, parent)
|
4309
|
+
begin
|
4310
|
+
@stub = V1::WorkflowsHistory::Stub.new(nil, nil, channel_override: channel)
|
4311
|
+
rescue => exception
|
4312
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4313
|
+
end
|
4314
|
+
@parent = parent
|
4315
|
+
end
|
4316
|
+
|
4317
|
+
# List gets a list of WorkflowHistory records matching a given set of criteria.
|
4318
|
+
def list(
|
4319
|
+
filter,
|
4320
|
+
*args,
|
4321
|
+
deadline: nil
|
4322
|
+
)
|
4323
|
+
req = V1::WorkflowHistoryListRequest.new()
|
4324
|
+
req.meta = V1::ListRequestMetadata.new()
|
4325
|
+
page_size_option = @parent._test_options["PageSize"]
|
4326
|
+
if page_size_option.is_a? Integer
|
4327
|
+
req.meta.limit = page_size_option
|
4328
|
+
end
|
4329
|
+
if not @parent.snapshot_time.nil?
|
4330
|
+
req.meta.snapshot_at = @parent.snapshot_time
|
4331
|
+
end
|
4332
|
+
|
4333
|
+
req.filter = Plumbing::quote_filter_args(filter, *args)
|
4334
|
+
resp = Enumerator::Generator.new { |g|
|
4335
|
+
tries = 0
|
4336
|
+
loop do
|
4337
|
+
begin
|
4338
|
+
plumbing_response = @stub.list(req, metadata: @parent.get_metadata("WorkflowsHistory.List", req), deadline: deadline)
|
4339
|
+
rescue => exception
|
4340
|
+
if (@parent.shouldRetry(tries, exception))
|
4341
|
+
tries + +@parent.jitterSleep(tries)
|
4342
|
+
next
|
4343
|
+
end
|
4344
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
4345
|
+
end
|
4346
|
+
tries = 0
|
4347
|
+
plumbing_response.history.each do |plumbing_item|
|
4348
|
+
g.yield Plumbing::convert_workflow_history_to_porcelain(plumbing_item)
|
4349
|
+
end
|
4350
|
+
break if plumbing_response.meta.next_cursor == ""
|
4351
|
+
req.meta.cursor = plumbing_response.meta.next_cursor
|
4352
|
+
end
|
4353
|
+
}
|
4354
|
+
resp
|
4355
|
+
end
|
4356
|
+
end
|
3861
4357
|
end
|
data/lib/version
CHANGED
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongdm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- strongDM Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -81,8 +81,8 @@ files:
|
|
81
81
|
- "./.git/logs/HEAD"
|
82
82
|
- "./.git/logs/refs/heads/master"
|
83
83
|
- "./.git/logs/refs/remotes/origin/HEAD"
|
84
|
-
- "./.git/objects/pack/pack-
|
85
|
-
- "./.git/objects/pack/pack-
|
84
|
+
- "./.git/objects/pack/pack-9c459884b97e0a33b1e10aa61914fa82820fa985.idx"
|
85
|
+
- "./.git/objects/pack/pack-9c459884b97e0a33b1e10aa61914fa82820fa985.pack"
|
86
86
|
- "./.git/packed-refs"
|
87
87
|
- "./.git/refs/heads/master"
|
88
88
|
- "./.git/refs/remotes/origin/HEAD"
|
@@ -92,6 +92,12 @@ files:
|
|
92
92
|
- "./README.md"
|
93
93
|
- "./lib/constants.rb"
|
94
94
|
- "./lib/errors/errors.rb"
|
95
|
+
- "./lib/grpc/access_request_events_history_pb.rb"
|
96
|
+
- "./lib/grpc/access_request_events_history_services_pb.rb"
|
97
|
+
- "./lib/grpc/access_requests_history_pb.rb"
|
98
|
+
- "./lib/grpc/access_requests_history_services_pb.rb"
|
99
|
+
- "./lib/grpc/access_requests_pb.rb"
|
100
|
+
- "./lib/grpc/access_requests_services_pb.rb"
|
95
101
|
- "./lib/grpc/account_attachments_history_pb.rb"
|
96
102
|
- "./lib/grpc/account_attachments_history_services_pb.rb"
|
97
103
|
- "./lib/grpc/account_attachments_pb.rb"
|
@@ -162,6 +168,16 @@ files:
|
|
162
168
|
- "./lib/grpc/secret_stores_services_pb.rb"
|
163
169
|
- "./lib/grpc/spec_pb.rb"
|
164
170
|
- "./lib/grpc/tags_pb.rb"
|
171
|
+
- "./lib/grpc/workflow_approvers_history_pb.rb"
|
172
|
+
- "./lib/grpc/workflow_approvers_history_services_pb.rb"
|
173
|
+
- "./lib/grpc/workflow_assignments_history_pb.rb"
|
174
|
+
- "./lib/grpc/workflow_assignments_history_services_pb.rb"
|
175
|
+
- "./lib/grpc/workflow_roles_history_pb.rb"
|
176
|
+
- "./lib/grpc/workflow_roles_history_services_pb.rb"
|
177
|
+
- "./lib/grpc/workflows_history_pb.rb"
|
178
|
+
- "./lib/grpc/workflows_history_services_pb.rb"
|
179
|
+
- "./lib/grpc/workflows_pb.rb"
|
180
|
+
- "./lib/grpc/workflows_services_pb.rb"
|
165
181
|
- "./lib/models/porcelain.rb"
|
166
182
|
- "./lib/strongdm.rb"
|
167
183
|
- "./lib/svc.rb"
|