strongdm 4.7.0 → 4.8.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.
@@ -9564,7 +9564,9 @@ module SDM
9564
9564
  attr_accessor :description
9565
9565
  # Optional enabled state for workflow. This setting may be overridden by the system if
9566
9566
  # the workflow doesn't meet the requirements to be enabled or if other conditions prevent
9567
- # enabling the workflow.
9567
+ # enabling the workflow. The requirements to enable a workflow are that the workflow must be
9568
+ # either set up for with auto grant enabled or have one or more WorkflowApprovers created for
9569
+ # the workflow.
9568
9570
  attr_accessor :enabled
9569
9571
  # Unique identifier of the Workflow.
9570
9572
  attr_accessor :id
@@ -9604,14 +9606,18 @@ module SDM
9604
9606
  class WorkflowApprover
9605
9607
  # The approver id.
9606
9608
  attr_accessor :approver_id
9609
+ # Unique identifier of the WorkflowApprover.
9610
+ attr_accessor :id
9607
9611
  # The workflow id.
9608
9612
  attr_accessor :workflow_id
9609
9613
 
9610
9614
  def initialize(
9611
9615
  approver_id: nil,
9616
+ id: nil,
9612
9617
  workflow_id: nil
9613
9618
  )
9614
9619
  @approver_id = approver_id == nil ? "" : approver_id
9620
+ @id = id == nil ? "" : id
9615
9621
  @workflow_id = workflow_id == nil ? "" : workflow_id
9616
9622
  end
9617
9623
 
@@ -9624,16 +9630,42 @@ module SDM
9624
9630
  end
9625
9631
  end
9626
9632
 
9627
- # WorkflowApproverHistory records the state of a WorkflowApprover at a given point in time,
9628
- # where every change (create, update and delete) to a WorkflowApprover produces an
9629
- # WorkflowApproverHistory record.
9633
+ # WorkflowApproverGetResponse returns a requested WorkflowApprover.
9634
+ class WorkflowApproverGetResponse
9635
+ # Reserved for future use.
9636
+ attr_accessor :meta
9637
+ # Rate limit information.
9638
+ attr_accessor :rate_limit
9639
+ # The requested WorkflowApprover.
9640
+ attr_accessor :workflow_approver
9641
+
9642
+ def initialize(
9643
+ meta: nil,
9644
+ rate_limit: nil,
9645
+ workflow_approver: nil
9646
+ )
9647
+ @meta = meta == nil ? nil : meta
9648
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9649
+ @workflow_approver = workflow_approver == nil ? nil : workflow_approver
9650
+ end
9651
+
9652
+ def to_json(options = {})
9653
+ hash = {}
9654
+ self.instance_variables.each do |var|
9655
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9656
+ end
9657
+ hash.to_json
9658
+ end
9659
+ end
9660
+
9661
+ # WorkflowApproverHistory provides records of all changes to the state of a WorkflowApprover.
9630
9662
  class WorkflowApproverHistory
9631
- # The unique identifier of the Activity that produced this change to the Workflow.
9663
+ # The unique identifier of the Activity that produced this change to the WorkflowApprover.
9632
9664
  # May be empty for some system-initiated updates.
9633
9665
  attr_accessor :activity_id
9634
- # If this Workflow was deleted, the time it was deleted.
9666
+ # If this WorkflowApprover was deleted, the time it was deleted.
9635
9667
  attr_accessor :deleted_at
9636
- # The time at which the Workflow state was recorded.
9668
+ # The time at which the WorkflowApprover state was recorded.
9637
9669
  attr_accessor :timestamp
9638
9670
  # The complete WorkflowApprover state at this time.
9639
9671
  attr_accessor :workflow_approver
@@ -9659,7 +9691,135 @@ module SDM
9659
9691
  end
9660
9692
  end
9661
9693
 
9662
- # WorkflowAssignment links a Resource to a Workflow.
9694
+ # WorkflowApproversCreateRequest specifies the workflowID and approverID of a new
9695
+ # workflow approver to be created.
9696
+ class WorkflowApproversCreateRequest
9697
+ # Parameters to define the new WorkflowApprover.
9698
+ attr_accessor :workflow_approver
9699
+
9700
+ def initialize(
9701
+ workflow_approver: nil
9702
+ )
9703
+ @workflow_approver = workflow_approver == nil ? nil : workflow_approver
9704
+ end
9705
+
9706
+ def to_json(options = {})
9707
+ hash = {}
9708
+ self.instance_variables.each do |var|
9709
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9710
+ end
9711
+ hash.to_json
9712
+ end
9713
+ end
9714
+
9715
+ # WorkflowApproversCreateResponse reports how the WorkflowApprover was created in the system.
9716
+ class WorkflowApproversCreateResponse
9717
+ # Rate limit information.
9718
+ attr_accessor :rate_limit
9719
+ # The created workflow approver.
9720
+ attr_accessor :workflow_approver
9721
+
9722
+ def initialize(
9723
+ rate_limit: nil,
9724
+ workflow_approver: nil
9725
+ )
9726
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9727
+ @workflow_approver = workflow_approver == nil ? nil : workflow_approver
9728
+ end
9729
+
9730
+ def to_json(options = {})
9731
+ hash = {}
9732
+ self.instance_variables.each do |var|
9733
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9734
+ end
9735
+ hash.to_json
9736
+ end
9737
+ end
9738
+
9739
+ # WorkflowApproversDeleteRequest specifies the ID of a WorkflowApprover to be deleted.
9740
+ class WorkflowApproversDeleteRequest
9741
+ # The unique identifier of the WorkflowApprover to delete.
9742
+ attr_accessor :id
9743
+
9744
+ def initialize(
9745
+ id: nil
9746
+ )
9747
+ @id = id == nil ? "" : id
9748
+ end
9749
+
9750
+ def to_json(options = {})
9751
+ hash = {}
9752
+ self.instance_variables.each do |var|
9753
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9754
+ end
9755
+ hash.to_json
9756
+ end
9757
+ end
9758
+
9759
+ # WorkflowApproversDeleteResponse reports how the WorkflowApprover was deleted in the system.
9760
+ class WorkflowApproversDeleteResponse
9761
+ # Rate limit information.
9762
+ attr_accessor :rate_limit
9763
+
9764
+ def initialize(
9765
+ rate_limit: nil
9766
+ )
9767
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9768
+ end
9769
+
9770
+ def to_json(options = {})
9771
+ hash = {}
9772
+ self.instance_variables.each do |var|
9773
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9774
+ end
9775
+ hash.to_json
9776
+ end
9777
+ end
9778
+
9779
+ # WorkflowApproversListRequest specifies criteria for retrieving a list of
9780
+ # WorkflowApprover records
9781
+ class WorkflowApproversListRequest
9782
+ # A human-readable filter query string.
9783
+ attr_accessor :filter
9784
+
9785
+ def initialize(
9786
+ filter: nil
9787
+ )
9788
+ @filter = filter == nil ? "" : filter
9789
+ end
9790
+
9791
+ def to_json(options = {})
9792
+ hash = {}
9793
+ self.instance_variables.each do |var|
9794
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9795
+ end
9796
+ hash.to_json
9797
+ end
9798
+ end
9799
+
9800
+ # WorkflowApproversListResponse returns a list of WorkflowApprover records that meet
9801
+ # the criteria of a WorkflowApproversListRequest.
9802
+ class WorkflowApproversListResponse
9803
+ # Rate limit information.
9804
+ attr_accessor :rate_limit
9805
+
9806
+ def initialize(
9807
+ rate_limit: nil
9808
+ )
9809
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9810
+ end
9811
+
9812
+ def to_json(options = {})
9813
+ hash = {}
9814
+ self.instance_variables.each do |var|
9815
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9816
+ end
9817
+ hash.to_json
9818
+ end
9819
+ end
9820
+
9821
+ # WorkflowAssignment links a Resource to a Workflow. The assigned resources are those that a user can request
9822
+ # access to via the workflow.
9663
9823
  class WorkflowAssignment
9664
9824
  # The resource id.
9665
9825
  attr_accessor :resource_id
@@ -9683,16 +9843,14 @@ module SDM
9683
9843
  end
9684
9844
  end
9685
9845
 
9686
- # WorkflowAssignmentHistory records the state of a WorkflowAssignment at a given point in time,
9687
- # where every change (create, update and delete) to a WorkflowAssignment produces an
9688
- # WorkflowAssignmentHistory record.
9846
+ # WorkflowAssignmentsHistory provides records of all changes to the state of a WorkflowAssignment.
9689
9847
  class WorkflowAssignmentHistory
9690
- # The unique identifier of the Activity that produced this change to the Workflow.
9848
+ # The unique identifier of the Activity that produced this change to the WorkflowAssignment.
9691
9849
  # May be empty for some system-initiated updates.
9692
9850
  attr_accessor :activity_id
9693
- # If this Workflow was deleted, the time it was deleted.
9851
+ # If this WorkflowAssignment was deleted, the time it was deleted.
9694
9852
  attr_accessor :deleted_at
9695
- # The time at which the Workflow state was recorded.
9853
+ # The time at which the WorkflowAssignment state was recorded.
9696
9854
  attr_accessor :timestamp
9697
9855
  # The complete WorkflowAssignment state at this time.
9698
9856
  attr_accessor :workflow_assignment
@@ -9718,9 +9876,125 @@ module SDM
9718
9876
  end
9719
9877
  end
9720
9878
 
9721
- # WorkflowHistory records the state of a Workflow at a given point in time,
9722
- # where every change (create, update and delete) to a Workflow produces an
9723
- # WorkflowHistory record.
9879
+ # WorkflowAssignmentsListRequest specifies criteria for retrieving a list of
9880
+ # WorkflowAssignment records
9881
+ class WorkflowAssignmentsListRequest
9882
+ # A human-readable filter query string.
9883
+ attr_accessor :filter
9884
+
9885
+ def initialize(
9886
+ filter: nil
9887
+ )
9888
+ @filter = filter == nil ? "" : filter
9889
+ end
9890
+
9891
+ def to_json(options = {})
9892
+ hash = {}
9893
+ self.instance_variables.each do |var|
9894
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9895
+ end
9896
+ hash.to_json
9897
+ end
9898
+ end
9899
+
9900
+ # WorkflowAssignmentsListResponse returns a list of WorkflowAssignment records that meet
9901
+ # the criteria of a WorkflowAssignmentsListRequest.
9902
+ class WorkflowAssignmentsListResponse
9903
+ # Rate limit information.
9904
+ attr_accessor :rate_limit
9905
+
9906
+ def initialize(
9907
+ rate_limit: nil
9908
+ )
9909
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9910
+ end
9911
+
9912
+ def to_json(options = {})
9913
+ hash = {}
9914
+ self.instance_variables.each do |var|
9915
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9916
+ end
9917
+ hash.to_json
9918
+ end
9919
+ end
9920
+
9921
+ # WorkflowCreateResponse reports how the Workflow was created in the system.
9922
+ class WorkflowCreateResponse
9923
+ # Rate limit information.
9924
+ attr_accessor :rate_limit
9925
+ # The created workflow.
9926
+ attr_accessor :workflow
9927
+
9928
+ def initialize(
9929
+ rate_limit: nil,
9930
+ workflow: nil
9931
+ )
9932
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9933
+ @workflow = workflow == nil ? nil : workflow
9934
+ end
9935
+
9936
+ def to_json(options = {})
9937
+ hash = {}
9938
+ self.instance_variables.each do |var|
9939
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9940
+ end
9941
+ hash.to_json
9942
+ end
9943
+ end
9944
+
9945
+ # WorkflowDeleteResponse returns information about a Workflow that was deleted.
9946
+ class WorkflowDeleteResponse
9947
+ # The deleted workflow id.
9948
+ attr_accessor :id
9949
+ # Rate limit information.
9950
+ attr_accessor :rate_limit
9951
+
9952
+ def initialize(
9953
+ id: nil,
9954
+ rate_limit: nil
9955
+ )
9956
+ @id = id == nil ? "" : id
9957
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9958
+ end
9959
+
9960
+ def to_json(options = {})
9961
+ hash = {}
9962
+ self.instance_variables.each do |var|
9963
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9964
+ end
9965
+ hash.to_json
9966
+ end
9967
+ end
9968
+
9969
+ # WorkflowGetResponse returns a requested Workflow.
9970
+ class WorkflowGetResponse
9971
+ # Reserved for future use.
9972
+ attr_accessor :meta
9973
+ # Rate limit information.
9974
+ attr_accessor :rate_limit
9975
+ # The requested Workflow.
9976
+ attr_accessor :workflow
9977
+
9978
+ def initialize(
9979
+ meta: nil,
9980
+ rate_limit: nil,
9981
+ workflow: nil
9982
+ )
9983
+ @meta = meta == nil ? nil : meta
9984
+ @rate_limit = rate_limit == nil ? nil : rate_limit
9985
+ @workflow = workflow == nil ? nil : workflow
9986
+ end
9987
+
9988
+ def to_json(options = {})
9989
+ hash = {}
9990
+ self.instance_variables.each do |var|
9991
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9992
+ end
9993
+ hash.to_json
9994
+ end
9995
+ end
9996
+
9997
+ # WorkflowsHistory provides records of all changes to the state of a Workflow.
9724
9998
  class WorkflowHistory
9725
9999
  # The unique identifier of the Activity that produced this change to the Workflow.
9726
10000
  # May be empty for some system-initiated updates.
@@ -9753,27 +10027,6 @@ module SDM
9753
10027
  end
9754
10028
  end
9755
10029
 
9756
- # WorkflowListRequest specifies criteria for retrieving a list of
9757
- # Workflow records
9758
- class WorkflowListRequest
9759
- # A human-readable filter query string.
9760
- attr_accessor :filter
9761
-
9762
- def initialize(
9763
- filter: nil
9764
- )
9765
- @filter = filter == nil ? "" : filter
9766
- end
9767
-
9768
- def to_json(options = {})
9769
- hash = {}
9770
- self.instance_variables.each do |var|
9771
- hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
9772
- end
9773
- hash.to_json
9774
- end
9775
- end
9776
-
9777
10030
  # WorkflowListResponse returns a list of Workflow records that meet
9778
10031
  # the criteria of a WorkflowListRequest.
9779
10032
  class WorkflowListResponse
@@ -9795,17 +10048,22 @@ module SDM
9795
10048
  end
9796
10049
  end
9797
10050
 
9798
- # WorkflowRole links a Role to a Workflow.
10051
+ # WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of
10052
+ # to request access to a resource via the workflow.
9799
10053
  class WorkflowRole
10054
+ # Unique identifier of the WorkflowRole.
10055
+ attr_accessor :id
9800
10056
  # The role id.
9801
10057
  attr_accessor :role_id
9802
10058
  # The workflow id.
9803
10059
  attr_accessor :workflow_id
9804
10060
 
9805
10061
  def initialize(
10062
+ id: nil,
9806
10063
  role_id: nil,
9807
10064
  workflow_id: nil
9808
10065
  )
10066
+ @id = id == nil ? "" : id
9809
10067
  @role_id = role_id == nil ? "" : role_id
9810
10068
  @workflow_id = workflow_id == nil ? "" : workflow_id
9811
10069
  end
@@ -9819,16 +10077,42 @@ module SDM
9819
10077
  end
9820
10078
  end
9821
10079
 
9822
- # WorkflowRolesHistory records the state of a Workflow at a given point in time,
9823
- # where every change (create, update and delete) to a WorkflowRole produces a
9824
- # WorkflowRoleHistory record.
10080
+ # WorkflowRoleGetResponse returns a requested WorkflowRole.
10081
+ class WorkflowRoleGetResponse
10082
+ # Reserved for future use.
10083
+ attr_accessor :meta
10084
+ # Rate limit information.
10085
+ attr_accessor :rate_limit
10086
+ # The requested WorkflowRole.
10087
+ attr_accessor :workflow_role
10088
+
10089
+ def initialize(
10090
+ meta: nil,
10091
+ rate_limit: nil,
10092
+ workflow_role: nil
10093
+ )
10094
+ @meta = meta == nil ? nil : meta
10095
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10096
+ @workflow_role = workflow_role == nil ? nil : workflow_role
10097
+ end
10098
+
10099
+ def to_json(options = {})
10100
+ hash = {}
10101
+ self.instance_variables.each do |var|
10102
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10103
+ end
10104
+ hash.to_json
10105
+ end
10106
+ end
10107
+
10108
+ # WorkflowRolesHistory provides records of all changes to the state of a WorkflowRole
9825
10109
  class WorkflowRoleHistory
9826
- # The unique identifier of the Activity that produced this change to the Workflow.
10110
+ # The unique identifier of the Activity that produced this change to the WorkflowRole.
9827
10111
  # May be empty for some system-initiated updates.
9828
10112
  attr_accessor :activity_id
9829
10113
  # If this WorkflowRole was deleted, the time it was deleted.
9830
10114
  attr_accessor :deleted_at
9831
- # The time at which the Workflow state was recorded.
10115
+ # The time at which the WorkflowRole state was recorded.
9832
10116
  attr_accessor :timestamp
9833
10117
  # The complete WorkflowRole state at this time.
9834
10118
  attr_accessor :workflow_role
@@ -9854,6 +10138,158 @@ module SDM
9854
10138
  end
9855
10139
  end
9856
10140
 
10141
+ # WorkflowRolesCreateRequest specifies the workflowID and roleID of a new
10142
+ # workflow role to be created.
10143
+ class WorkflowRolesCreateRequest
10144
+ # Parameters to define the new WorkflowRole.
10145
+ attr_accessor :workflow_role
10146
+
10147
+ def initialize(
10148
+ workflow_role: nil
10149
+ )
10150
+ @workflow_role = workflow_role == nil ? nil : workflow_role
10151
+ end
10152
+
10153
+ def to_json(options = {})
10154
+ hash = {}
10155
+ self.instance_variables.each do |var|
10156
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10157
+ end
10158
+ hash.to_json
10159
+ end
10160
+ end
10161
+
10162
+ # WorkflowRolesCreateResponse reports how the WorkflowRole was created in the system.
10163
+ class WorkflowRolesCreateResponse
10164
+ # Rate limit information.
10165
+ attr_accessor :rate_limit
10166
+ # The created workflow role.
10167
+ attr_accessor :workflow_role
10168
+
10169
+ def initialize(
10170
+ rate_limit: nil,
10171
+ workflow_role: nil
10172
+ )
10173
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10174
+ @workflow_role = workflow_role == nil ? nil : workflow_role
10175
+ end
10176
+
10177
+ def to_json(options = {})
10178
+ hash = {}
10179
+ self.instance_variables.each do |var|
10180
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10181
+ end
10182
+ hash.to_json
10183
+ end
10184
+ end
10185
+
10186
+ # WorkflowRolesDeleteRequest specifies the ID of a WorkflowRole to be deleted.
10187
+ class WorkflowRolesDeleteRequest
10188
+ # The unique identifier of the WorkflowRole to delete.
10189
+ attr_accessor :id
10190
+
10191
+ def initialize(
10192
+ id: nil
10193
+ )
10194
+ @id = id == nil ? "" : id
10195
+ end
10196
+
10197
+ def to_json(options = {})
10198
+ hash = {}
10199
+ self.instance_variables.each do |var|
10200
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10201
+ end
10202
+ hash.to_json
10203
+ end
10204
+ end
10205
+
10206
+ # WorkflowRolesDeleteResponse reports how the WorkflowRole was deleted in the system.
10207
+ class WorkflowRolesDeleteResponse
10208
+ # Rate limit information.
10209
+ attr_accessor :rate_limit
10210
+
10211
+ def initialize(
10212
+ rate_limit: nil
10213
+ )
10214
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10215
+ end
10216
+
10217
+ def to_json(options = {})
10218
+ hash = {}
10219
+ self.instance_variables.each do |var|
10220
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10221
+ end
10222
+ hash.to_json
10223
+ end
10224
+ end
10225
+
10226
+ # WorkflowRolesListRequest specifies criteria for retrieving a list of
10227
+ # WorkflowRole records
10228
+ class WorkflowRolesListRequest
10229
+ # A human-readable filter query string.
10230
+ attr_accessor :filter
10231
+
10232
+ def initialize(
10233
+ filter: nil
10234
+ )
10235
+ @filter = filter == nil ? "" : filter
10236
+ end
10237
+
10238
+ def to_json(options = {})
10239
+ hash = {}
10240
+ self.instance_variables.each do |var|
10241
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10242
+ end
10243
+ hash.to_json
10244
+ end
10245
+ end
10246
+
10247
+ # WorkflowRolesListResponse returns a list of WorkflowRole records that meet
10248
+ # the criteria of a WorkflowRolesListRequest.
10249
+ class WorkflowRolesListResponse
10250
+ # Rate limit information.
10251
+ attr_accessor :rate_limit
10252
+
10253
+ def initialize(
10254
+ rate_limit: nil
10255
+ )
10256
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10257
+ end
10258
+
10259
+ def to_json(options = {})
10260
+ hash = {}
10261
+ self.instance_variables.each do |var|
10262
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10263
+ end
10264
+ hash.to_json
10265
+ end
10266
+ end
10267
+
10268
+ # WorkflowUpdateResponse returns the fields of a Workflow after it has been updated by
10269
+ # a WorkflowUpdateRequest.
10270
+ class WorkflowUpdateResponse
10271
+ # Rate limit information.
10272
+ attr_accessor :rate_limit
10273
+ # The updated workflow.
10274
+ attr_accessor :workflow
10275
+
10276
+ def initialize(
10277
+ rate_limit: nil,
10278
+ workflow: nil
10279
+ )
10280
+ @rate_limit = rate_limit == nil ? nil : rate_limit
10281
+ @workflow = workflow == nil ? nil : workflow
10282
+ end
10283
+
10284
+ def to_json(options = {})
10285
+ hash = {}
10286
+ self.instance_variables.each do |var|
10287
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
10288
+ end
10289
+ hash.to_json
10290
+ end
10291
+ end
10292
+
9857
10293
  # @private
9858
10294
  def self._porcelain_zero_value_tags()
9859
10295
  {}