strongdm 4.7.0 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
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.7.0"
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
- @workflows = Workflows.new(@channel, self)
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
- # Workflows are the collection of rules that define the resources to which access can be requested,
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 {Workflows}.
349
- attr_reader :workflows
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
- @workflows = Workflows.new(@channel, self)
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
- # but automatic approval or a set of users authorized to approve the requests.
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