strongdm 4.7.0 → 4.8.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-6d23e6ad791049e78227daefa7417770d86857ca.idx → pack-b1dfafcd7b8c6b715aaf6a4fee0c32ac367fdfef.idx} +0 -0
- data/.git/objects/pack/{pack-6d23e6ad791049e78227daefa7417770d86857ca.pack → pack-b1dfafcd7b8c6b715aaf6a4fee0c32ac367fdfef.pack} +0 -0
- data/.git/packed-refs +3 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/plumbing.rb +796 -83
- data/lib/grpc/workflow_approvers_history_pb.rb +1 -1
- data/lib/grpc/workflow_approvers_pb.rb +77 -0
- data/lib/grpc/workflow_approvers_services_pb.rb +43 -0
- data/lib/grpc/workflow_assignments_history_pb.rb +1 -1
- data/lib/grpc/workflow_assignments_pb.rb +44 -0
- data/lib/grpc/workflow_assignments_services_pb.rb +38 -0
- data/lib/grpc/workflow_roles_history_pb.rb +1 -1
- data/lib/grpc/workflow_roles_pb.rb +77 -0
- data/lib/grpc/workflow_roles_services_pb.rb +44 -0
- data/lib/grpc/workflows_pb.rb +44 -15
- data/lib/grpc/workflows_services_pb.rb +9 -1
- data/lib/models/porcelain.rb +480 -44
- data/lib/strongdm.rb +46 -9
- data/lib/svc.rb +589 -17
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +10 -4
data/lib/strongdm.rb
CHANGED
@@ -29,7 +29,7 @@ module SDM #:nodoc:
|
|
29
29
|
DEFAULT_BASE_RETRY_DELAY = 0.0030 # 30 ms
|
30
30
|
DEFAULT_MAX_RETRY_DELAY = 300 # 300 seconds
|
31
31
|
API_VERSION = "2021-08-23"
|
32
|
-
USER_AGENT = "strongdm-sdk-ruby/4.
|
32
|
+
USER_AGENT = "strongdm-sdk-ruby/4.8.0"
|
33
33
|
private_constant :DEFAULT_MAX_RETRIES, :DEFAULT_BASE_RETRY_DELAY, :DEFAULT_MAX_RETRY_DELAY, :API_VERSION, :USER_AGENT
|
34
34
|
|
35
35
|
# Creates a new strongDM API client.
|
@@ -90,10 +90,13 @@ module SDM #:nodoc:
|
|
90
90
|
@roles_history = RolesHistory.new(@channel, self)
|
91
91
|
@secret_stores = SecretStores.new(@channel, self)
|
92
92
|
@secret_stores_history = SecretStoresHistory.new(@channel, self)
|
93
|
-
@
|
93
|
+
@workflow_approvers = WorkflowApprovers.new(@channel, self)
|
94
94
|
@workflow_approvers_history = WorkflowApproversHistory.new(@channel, self)
|
95
|
+
@workflow_assignments = WorkflowAssignments.new(@channel, self)
|
95
96
|
@workflow_assignments_history = WorkflowAssignmentsHistory.new(@channel, self)
|
97
|
+
@workflow_roles = WorkflowRoles.new(@channel, self)
|
96
98
|
@workflow_roles_history = WorkflowRolesHistory.new(@channel, self)
|
99
|
+
@workflows = Workflows.new(@channel, self)
|
97
100
|
@workflows_history = WorkflowsHistory.new(@channel, self)
|
98
101
|
end
|
99
102
|
|
@@ -341,24 +344,38 @@ module SDM #:nodoc:
|
|
341
344
|
#
|
342
345
|
# See {SecretStoresHistory}.
|
343
346
|
attr_reader :secret_stores_history
|
344
|
-
#
|
345
|
-
# the users that can request that access, and the mechanism for approving those requests which can either
|
346
|
-
# but automatic approval or a set of users authorized to approve the requests.
|
347
|
+
# WorkflowApprovers is an account with the ability to approve requests bound to a workflow.
|
347
348
|
#
|
348
|
-
# See {
|
349
|
-
attr_reader :
|
349
|
+
# See {WorkflowApprovers}.
|
350
|
+
attr_reader :workflow_approvers
|
350
351
|
# WorkflowApproversHistory provides records of all changes to the state of a WorkflowApprover.
|
351
352
|
#
|
352
353
|
# See {WorkflowApproversHistory}.
|
353
354
|
attr_reader :workflow_approvers_history
|
355
|
+
# WorkflowAssignments links a Resource to a Workflow. The assigned resources are those that a user can request
|
356
|
+
# access to via the workflow.
|
357
|
+
#
|
358
|
+
# See {WorkflowAssignments}.
|
359
|
+
attr_reader :workflow_assignments
|
354
360
|
# WorkflowAssignmentsHistory provides records of all changes to the state of a WorkflowAssignment.
|
355
361
|
#
|
356
362
|
# See {WorkflowAssignmentsHistory}.
|
357
363
|
attr_reader :workflow_assignments_history
|
364
|
+
# WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of
|
365
|
+
# to request access to a resource via the workflow.
|
366
|
+
#
|
367
|
+
# See {WorkflowRoles}.
|
368
|
+
attr_reader :workflow_roles
|
358
369
|
# WorkflowRolesHistory provides records of all changes to the state of a WorkflowRole
|
359
370
|
#
|
360
371
|
# See {WorkflowRolesHistory}.
|
361
372
|
attr_reader :workflow_roles_history
|
373
|
+
# Workflows are the collection of rules that define the resources to which access can be requested,
|
374
|
+
# the users that can request that access, and the mechanism for approving those requests which can either
|
375
|
+
# be automatic approval or a set of users authorized to approve the requests.
|
376
|
+
#
|
377
|
+
# See {Workflows}.
|
378
|
+
attr_reader :workflows
|
362
379
|
# WorkflowsHistory provides records of all changes to the state of a Workflow.
|
363
380
|
#
|
364
381
|
# See {WorkflowsHistory}.
|
@@ -406,10 +423,13 @@ module SDM #:nodoc:
|
|
406
423
|
@roles_history = RolesHistory.new(@channel, self)
|
407
424
|
@secret_stores = SecretStores.new(@channel, self)
|
408
425
|
@secret_stores_history = SecretStoresHistory.new(@channel, self)
|
409
|
-
@
|
426
|
+
@workflow_approvers = WorkflowApprovers.new(@channel, self)
|
410
427
|
@workflow_approvers_history = WorkflowApproversHistory.new(@channel, self)
|
428
|
+
@workflow_assignments = WorkflowAssignments.new(@channel, self)
|
411
429
|
@workflow_assignments_history = WorkflowAssignmentsHistory.new(@channel, self)
|
430
|
+
@workflow_roles = WorkflowRoles.new(@channel, self)
|
412
431
|
@workflow_roles_history = WorkflowRolesHistory.new(@channel, self)
|
432
|
+
@workflows = Workflows.new(@channel, self)
|
413
433
|
@workflows_history = WorkflowsHistory.new(@channel, self)
|
414
434
|
end
|
415
435
|
end
|
@@ -434,6 +454,9 @@ module SDM #:nodoc:
|
|
434
454
|
@role_resources = SnapshotRoleResources.new(client.role_resources)
|
435
455
|
@roles = SnapshotRoles.new(client.roles)
|
436
456
|
@secret_stores = SnapshotSecretStores.new(client.secret_stores)
|
457
|
+
@workflow_approvers = SnapshotWorkflowApprovers.new(client.workflow_approvers)
|
458
|
+
@workflow_assignments = SnapshotWorkflowAssignments.new(client.workflow_assignments)
|
459
|
+
@workflow_roles = SnapshotWorkflowRoles.new(client.workflow_roles)
|
437
460
|
@workflows = SnapshotWorkflows.new(client.workflows)
|
438
461
|
end
|
439
462
|
|
@@ -516,9 +539,23 @@ module SDM #:nodoc:
|
|
516
539
|
#
|
517
540
|
# See {SnapshotSecretStores}.
|
518
541
|
attr_reader :secret_stores
|
542
|
+
# WorkflowApprovers is an account with the ability to approve requests bound to a workflow.
|
543
|
+
#
|
544
|
+
# See {SnapshotWorkflowApprovers}.
|
545
|
+
attr_reader :workflow_approvers
|
546
|
+
# WorkflowAssignments links a Resource to a Workflow. The assigned resources are those that a user can request
|
547
|
+
# access to via the workflow.
|
548
|
+
#
|
549
|
+
# See {SnapshotWorkflowAssignments}.
|
550
|
+
attr_reader :workflow_assignments
|
551
|
+
# WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of
|
552
|
+
# to request access to a resource via the workflow.
|
553
|
+
#
|
554
|
+
# See {SnapshotWorkflowRoles}.
|
555
|
+
attr_reader :workflow_roles
|
519
556
|
# Workflows are the collection of rules that define the resources to which access can be requested,
|
520
557
|
# the users that can request that access, and the mechanism for approving those requests which can either
|
521
|
-
#
|
558
|
+
# be automatic approval or a set of users authorized to approve the requests.
|
522
559
|
#
|
523
560
|
# See {SnapshotWorkflows}.
|
524
561
|
attr_reader :workflows
|