openlayer 0.16.0 → 0.17.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.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/openlayer/models/background_task_retrieve_response.rb +4 -0
  5. data/lib/openlayer/models/governance/framework_create_response.rb +7 -2
  6. data/lib/openlayer/models/governance/framework_export_params.rb +7 -2
  7. data/lib/openlayer/models/governance/framework_list_project_rule_stats_response.rb +2 -0
  8. data/lib/openlayer/models/governance/framework_list_response.rb +7 -2
  9. data/lib/openlayer/models/governance/framework_list_rules_response.rb +69 -29
  10. data/lib/openlayer/models/governance/framework_retrieve_response.rb +7 -2
  11. data/lib/openlayer/models/governance/framework_update_response.rb +7 -2
  12. data/lib/openlayer/models/governance/frameworks/document_list_response.rb +54 -28
  13. data/lib/openlayer/models/governance/frameworks/document_retrieve_response.rb +54 -28
  14. data/lib/openlayer/models/governance/frameworks/section_list_rules_response.rb +69 -29
  15. data/lib/openlayer/models/governance/frameworks/subsection_list_rules_response.rb +69 -29
  16. data/lib/openlayer/models/governance/rule_create_params.rb +21 -12
  17. data/lib/openlayer/models/governance/rule_create_response.rb +68 -29
  18. data/lib/openlayer/models/governance/rule_list_response.rb +69 -29
  19. data/lib/openlayer/models/governance/rule_result_create_evidence_params.rb +2 -1
  20. data/lib/openlayer/models/governance/rule_result_create_evidence_response.rb +6 -1
  21. data/lib/openlayer/models/governance/rule_result_list_evidence_response.rb +6 -1
  22. data/lib/openlayer/models/governance/rule_result_list_response.rb +34 -13
  23. data/lib/openlayer/models/governance/rule_result_retrieve_response.rb +34 -13
  24. data/lib/openlayer/models/governance/rule_result_update_params.rb +26 -10
  25. data/lib/openlayer/models/governance/rule_result_update_response.rb +34 -13
  26. data/lib/openlayer/models/governance/rule_retrieve_response.rb +68 -29
  27. data/lib/openlayer/models/governance/rule_stat_retrieve_response.rb +4 -0
  28. data/lib/openlayer/models/governance/rule_tag_list_response.rb +5 -2
  29. data/lib/openlayer/models/governance/rule_update_params.rb +2 -1
  30. data/lib/openlayer/models/governance/rule_update_response.rb +68 -29
  31. data/lib/openlayer/models/inference_pipeline_retrieve_sessions_response.rb +3 -0
  32. data/lib/openlayer/models/inference_pipeline_retrieve_users_response.rb +3 -0
  33. data/lib/openlayer/models/storage/presigned_url_retrieve_params.rb +6 -2
  34. data/lib/openlayer/models/workspaces/api_key_create_params.rb +17 -1
  35. data/lib/openlayer/models/workspaces/api_key_create_response.rb +73 -3
  36. data/lib/openlayer/models/workspaces/api_key_delete_params.rb +28 -0
  37. data/lib/openlayer/models/workspaces/api_key_list_params.rb +22 -0
  38. data/lib/openlayer/models/workspaces/api_key_list_response.rb +134 -0
  39. data/lib/openlayer/models/workspaces/api_key_retrieve_params.rb +28 -0
  40. data/lib/openlayer/models/workspaces/api_key_retrieve_response.rb +131 -0
  41. data/lib/openlayer/models/workspaces/api_key_rotate_params.rb +56 -0
  42. data/lib/openlayer/models/workspaces/api_key_rotate_response.rb +131 -0
  43. data/lib/openlayer/models/workspaces/api_key_update_params.rb +38 -0
  44. data/lib/openlayer/models/workspaces/api_key_update_response.rb +131 -0
  45. data/lib/openlayer/resources/background_tasks.rb +1 -5
  46. data/lib/openlayer/resources/commits.rb +1 -1
  47. data/lib/openlayer/resources/governance/frameworks/documents.rb +1 -9
  48. data/lib/openlayer/resources/governance/frameworks/sections.rb +1 -5
  49. data/lib/openlayer/resources/governance/frameworks/subsections.rb +1 -5
  50. data/lib/openlayer/resources/governance/frameworks.rb +10 -62
  51. data/lib/openlayer/resources/governance/rule_results.rb +8 -33
  52. data/lib/openlayer/resources/governance/rule_stats.rb +1 -5
  53. data/lib/openlayer/resources/governance/rule_tags.rb +0 -4
  54. data/lib/openlayer/resources/governance/rules.rb +7 -38
  55. data/lib/openlayer/resources/inference_pipelines/rows.rb +4 -5
  56. data/lib/openlayer/resources/inference_pipelines.rb +5 -14
  57. data/lib/openlayer/resources/projects/tests.rb +3 -3
  58. data/lib/openlayer/resources/storage/presigned_url.rb +5 -11
  59. data/lib/openlayer/resources/tests.rb +1 -4
  60. data/lib/openlayer/resources/workspaces/api_keys.rb +146 -2
  61. data/lib/openlayer/resources/workspaces/invites.rb +1 -1
  62. data/lib/openlayer/resources/workspaces.rb +1 -1
  63. data/lib/openlayer/version.rb +1 -1
  64. data/lib/openlayer.rb +9 -0
  65. data/rbi/openlayer/models/background_task_retrieve_response.rbi +3 -0
  66. data/rbi/openlayer/models/governance/framework_create_response.rbi +7 -2
  67. data/rbi/openlayer/models/governance/framework_export_params.rbi +6 -2
  68. data/rbi/openlayer/models/governance/framework_list_project_rule_stats_response.rbi +1 -0
  69. data/rbi/openlayer/models/governance/framework_list_response.rbi +7 -2
  70. data/rbi/openlayer/models/governance/framework_list_rules_response.rbi +70 -34
  71. data/rbi/openlayer/models/governance/framework_retrieve_response.rbi +7 -2
  72. data/rbi/openlayer/models/governance/framework_update_response.rbi +7 -2
  73. data/rbi/openlayer/models/governance/frameworks/document_list_response.rbi +76 -38
  74. data/rbi/openlayer/models/governance/frameworks/document_retrieve_response.rbi +76 -38
  75. data/rbi/openlayer/models/governance/frameworks/section_list_rules_response.rbi +70 -34
  76. data/rbi/openlayer/models/governance/frameworks/subsection_list_rules_response.rbi +70 -34
  77. data/rbi/openlayer/models/governance/rule_create_params.rbi +32 -17
  78. data/rbi/openlayer/models/governance/rule_create_response.rbi +70 -34
  79. data/rbi/openlayer/models/governance/rule_list_response.rbi +70 -34
  80. data/rbi/openlayer/models/governance/rule_result_create_evidence_params.rbi +4 -2
  81. data/rbi/openlayer/models/governance/rule_result_create_evidence_response.rbi +7 -2
  82. data/rbi/openlayer/models/governance/rule_result_list_evidence_response.rbi +7 -2
  83. data/rbi/openlayer/models/governance/rule_result_list_response.rbi +26 -13
  84. data/rbi/openlayer/models/governance/rule_result_retrieve_response.rbi +26 -13
  85. data/rbi/openlayer/models/governance/rule_result_update_params.rbi +18 -10
  86. data/rbi/openlayer/models/governance/rule_result_update_response.rbi +26 -13
  87. data/rbi/openlayer/models/governance/rule_retrieve_response.rbi +70 -34
  88. data/rbi/openlayer/models/governance/rule_stat_retrieve_response.rbi +3 -0
  89. data/rbi/openlayer/models/governance/rule_tag_list_response.rbi +4 -2
  90. data/rbi/openlayer/models/governance/rule_update_params.rbi +4 -2
  91. data/rbi/openlayer/models/governance/rule_update_response.rbi +70 -34
  92. data/rbi/openlayer/models/inference_pipeline_retrieve_sessions_response.rbi +2 -0
  93. data/rbi/openlayer/models/inference_pipeline_retrieve_users_response.rbi +2 -0
  94. data/rbi/openlayer/models/storage/presigned_url_retrieve_params.rbi +4 -2
  95. data/rbi/openlayer/models/workspaces/api_key_create_params.rbi +18 -0
  96. data/rbi/openlayer/models/workspaces/api_key_create_response.rbi +117 -5
  97. data/rbi/openlayer/models/workspaces/api_key_delete_params.rbi +48 -0
  98. data/rbi/openlayer/models/workspaces/api_key_list_params.rbi +40 -0
  99. data/rbi/openlayer/models/workspaces/api_key_list_response.rbi +202 -0
  100. data/rbi/openlayer/models/workspaces/api_key_retrieve_params.rbi +48 -0
  101. data/rbi/openlayer/models/workspaces/api_key_retrieve_response.rbi +194 -0
  102. data/rbi/openlayer/models/workspaces/api_key_rotate_params.rbi +85 -0
  103. data/rbi/openlayer/models/workspaces/api_key_rotate_response.rbi +194 -0
  104. data/rbi/openlayer/models/workspaces/api_key_update_params.rbi +60 -0
  105. data/rbi/openlayer/models/workspaces/api_key_update_response.rbi +194 -0
  106. data/rbi/openlayer/resources/background_tasks.rbi +1 -5
  107. data/rbi/openlayer/resources/commits.rbi +1 -1
  108. data/rbi/openlayer/resources/governance/frameworks/documents.rbi +1 -9
  109. data/rbi/openlayer/resources/governance/frameworks/sections.rbi +1 -5
  110. data/rbi/openlayer/resources/governance/frameworks/subsections.rbi +1 -5
  111. data/rbi/openlayer/resources/governance/frameworks.rbi +10 -63
  112. data/rbi/openlayer/resources/governance/rule_results.rbi +9 -35
  113. data/rbi/openlayer/resources/governance/rule_stats.rbi +1 -5
  114. data/rbi/openlayer/resources/governance/rule_tags.rbi +0 -4
  115. data/rbi/openlayer/resources/governance/rules.rbi +20 -44
  116. data/rbi/openlayer/resources/inference_pipelines/rows.rbi +4 -5
  117. data/rbi/openlayer/resources/inference_pipelines.rbi +5 -14
  118. data/rbi/openlayer/resources/projects/tests.rbi +3 -3
  119. data/rbi/openlayer/resources/storage/presigned_url.rbi +4 -12
  120. data/rbi/openlayer/resources/tests.rbi +1 -4
  121. data/rbi/openlayer/resources/workspaces/api_keys.rbi +110 -1
  122. data/rbi/openlayer/resources/workspaces/invites.rbi +1 -1
  123. data/rbi/openlayer/resources/workspaces.rbi +1 -1
  124. data/sig/openlayer/models/workspaces/api_key_create_params.rbs +5 -1
  125. data/sig/openlayer/models/workspaces/api_key_create_response.rbs +42 -3
  126. data/sig/openlayer/models/workspaces/api_key_delete_params.rbs +30 -0
  127. data/sig/openlayer/models/workspaces/api_key_list_params.rbs +25 -0
  128. data/sig/openlayer/models/workspaces/api_key_list_response.rbs +91 -0
  129. data/sig/openlayer/models/workspaces/api_key_retrieve_params.rbs +30 -0
  130. data/sig/openlayer/models/workspaces/api_key_retrieve_response.rbs +86 -0
  131. data/sig/openlayer/models/workspaces/api_key_rotate_params.rbs +45 -0
  132. data/sig/openlayer/models/workspaces/api_key_rotate_response.rbs +86 -0
  133. data/sig/openlayer/models/workspaces/api_key_update_params.rbs +34 -0
  134. data/sig/openlayer/models/workspaces/api_key_update_response.rbs +86 -0
  135. data/sig/openlayer/resources/workspaces/api_keys.rbs +33 -0
  136. metadata +29 -2
@@ -55,7 +55,8 @@ module Openlayer
55
55
  attr_accessor :name
56
56
 
57
57
  # Whether the rule is evaluated once for the whole workspace, or once per project
58
- # the rule's frameworks apply to.
58
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
59
+ # the rule is created.
59
60
  sig do
60
61
  returns(
61
62
  Openlayer::Models::Governance::RuleListResponse::Item::Scope::TaggedSymbol
@@ -64,7 +65,8 @@ module Openlayer
64
65
  attr_accessor :scope
65
66
 
66
67
  # `platform` rules are evaluated automatically from the state of your Openlayer
67
- # workspace. `evidence` rules are satisfied by attaching evidence.
68
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
69
+ # rule is created.
68
70
  sig do
69
71
  returns(
70
72
  Openlayer::Models::Governance::RuleListResponse::Item::Type::TaggedSymbol
@@ -76,13 +78,15 @@ module Openlayer
76
78
  sig { returns(T.nilable(String)) }
77
79
  attr_accessor :assignee_id
78
80
 
79
- # Configuration for the platform check, when the automation takes parameters.
81
+ # Configuration for the platform check, when the automation takes parameters. Omit
82
+ # or `null` for evidence rules. Fixed once the rule is created.
80
83
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
81
84
  attr_accessor :automation_params
82
85
 
83
86
  # Which workspace signal a platform rule checks, for example
84
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
85
- # evidence rules.
87
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
88
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
89
+ # created.
86
90
  sig { returns(T.nilable(String)) }
87
91
  attr_accessor :automation_type
88
92
 
@@ -97,7 +101,8 @@ module Openlayer
97
101
  sig { returns(T.nilable(String)) }
98
102
  attr_accessor :description
99
103
 
100
- # The kind of evidence that satisfies the rule. `null` for platform rules.
104
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
105
+ # `null` for platform rules. Fixed once the rule is created.
101
106
  sig do
102
107
  returns(
103
108
  T.nilable(
@@ -108,7 +113,8 @@ module Openlayer
108
113
  attr_accessor :evidence_type
109
114
 
110
115
  # How often evidence must be renewed, in days. Once evidence is older than this,
111
- # the rule result becomes `due_soon` and then `failing`.
116
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
117
+ # whenever evidence is attached. Omit or `null` for platform rules.
112
118
  sig { returns(T.nilable(Integer)) }
113
119
  attr_accessor :renewal_cadence_days
114
120
 
@@ -150,7 +156,8 @@ module Openlayer
150
156
  end
151
157
  attr_writer :frameworks
152
158
 
153
- # Whether the rule is managed by Openlayer and cannot be edited.
159
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
160
+ # deleted; set `deactivated` to exclude one from compliance instead.
154
161
  sig { returns(T.nilable(T::Boolean)) }
155
162
  attr_reader :immutable
156
163
 
@@ -213,6 +220,10 @@ module Openlayer
213
220
  end
214
221
  attr_accessor :tags
215
222
 
223
+ # A single requirement Openlayer tracks. `platform` rules are evaluated
224
+ # automatically from the state of your workspace, and `evidence` rules are
225
+ # satisfied by attaching evidence. A rule can belong to several frameworks, or to
226
+ # none.
216
227
  sig do
217
228
  params(
218
229
  id: String,
@@ -265,33 +276,40 @@ module Openlayer
265
276
  # The rule name.
266
277
  name:,
267
278
  # Whether the rule is evaluated once for the whole workspace, or once per project
268
- # the rule's frameworks apply to.
279
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
280
+ # the rule is created.
269
281
  scope:,
270
282
  # `platform` rules are evaluated automatically from the state of your Openlayer
271
- # workspace. `evidence` rules are satisfied by attaching evidence.
283
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
284
+ # rule is created.
272
285
  type:,
273
286
  # The id of the workspace the rule belongs to.
274
287
  workspace_id:,
275
288
  # The user responsible for satisfying the rule.
276
289
  assignee_id: nil,
277
- # Configuration for the platform check, when the automation takes parameters.
290
+ # Configuration for the platform check, when the automation takes parameters. Omit
291
+ # or `null` for evidence rules. Fixed once the rule is created.
278
292
  automation_params: nil,
279
293
  # Which workspace signal a platform rule checks, for example
280
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
281
- # evidence rules.
294
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
295
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
296
+ # created.
282
297
  automation_type: nil,
283
298
  # Whether the rule is excluded from compliance calculations.
284
299
  deactivated: nil,
285
300
  # What the rule requires.
286
301
  description: nil,
287
- # The kind of evidence that satisfies the rule. `null` for platform rules.
302
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
303
+ # `null` for platform rules. Fixed once the rule is created.
288
304
  evidence_type: nil,
289
305
  # The frameworks that include this rule.
290
306
  frameworks: nil,
291
- # Whether the rule is managed by Openlayer and cannot be edited.
307
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
308
+ # deleted; set `deactivated` to exclude one from compliance instead.
292
309
  immutable: nil,
293
310
  # How often evidence must be renewed, in days. Once evidence is older than this,
294
- # the rule result becomes `due_soon` and then `failing`.
311
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
312
+ # whenever evidence is attached. Omit or `null` for platform rules.
295
313
  renewal_cadence_days: nil,
296
314
  # The rule's results, one per entity the rule is evaluated against. Only returned
297
315
  # when `includeResults` is `true`.
@@ -353,7 +371,8 @@ module Openlayer
353
371
  end
354
372
 
355
373
  # Whether the rule is evaluated once for the whole workspace, or once per project
356
- # the rule's frameworks apply to.
374
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
375
+ # the rule is created.
357
376
  module Scope
358
377
  extend Openlayer::Internal::Type::Enum
359
378
 
@@ -389,7 +408,8 @@ module Openlayer
389
408
  end
390
409
 
391
410
  # `platform` rules are evaluated automatically from the state of your Openlayer
392
- # workspace. `evidence` rules are satisfied by attaching evidence.
411
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
412
+ # rule is created.
393
413
  module Type
394
414
  extend Openlayer::Internal::Type::Enum
395
415
 
@@ -424,7 +444,8 @@ module Openlayer
424
444
  end
425
445
  end
426
446
 
427
- # The kind of evidence that satisfies the rule. `null` for platform rules.
447
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
448
+ # `null` for platform rules. Fixed once the rule is created.
428
449
  module EvidenceType
429
450
  extend Openlayer::Internal::Type::Enum
430
451
 
@@ -655,11 +676,13 @@ module Openlayer
655
676
  )
656
677
  end
657
678
 
658
- # Whether this result is excluded from compliance calculations.
679
+ # Whether this result is excluded from compliance calculations. Excludes just this
680
+ # result, without deactivating the rule everywhere.
659
681
  sig { returns(T::Boolean) }
660
682
  attr_accessor :deactivated
661
683
 
662
- # The compliance status of the rule for this entity.
684
+ # The compliance status of the rule for this entity. Computed by Openlayer and
685
+ # can't be set directly.
663
686
  sig do
664
687
  returns(
665
688
  Openlayer::Models::Governance::RuleListResponse::Item::Result::Status::TaggedSymbol
@@ -715,7 +738,7 @@ module Openlayer
715
738
  end
716
739
  attr_writer :blocking
717
740
 
718
- # Why the result was excluded.
741
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
719
742
  sig { returns(T.nilable(String)) }
720
743
  attr_accessor :deactivated_reason
721
744
 
@@ -763,6 +786,8 @@ module Openlayer
763
786
  sig { returns(T.nilable(String)) }
764
787
  attr_accessor :project_id
765
788
 
789
+ # The compliance status of one rule for one entity: a project for project-scoped
790
+ # rules, or the workspace for workspace-scoped rules.
766
791
  sig do
767
792
  params(
768
793
  id: String,
@@ -798,11 +823,13 @@ module Openlayer
798
823
  date_created:,
799
824
  # The last update date.
800
825
  date_updated:,
801
- # Whether this result is excluded from compliance calculations.
826
+ # Whether this result is excluded from compliance calculations. Excludes just this
827
+ # result, without deactivating the rule everywhere.
802
828
  deactivated:,
803
829
  # The rule this result belongs to.
804
830
  rule_id:,
805
- # The compliance status of the rule for this entity.
831
+ # The compliance status of the rule for this entity. Computed by Openlayer and
832
+ # can't be set directly.
806
833
  status:,
807
834
  # The id of the workspace the rule result belongs to.
808
835
  workspace_id:,
@@ -820,7 +847,7 @@ module Openlayer
820
847
  date_of_next_evaluation: nil,
821
848
  # When the evidence must be renewed. Evidence rules with a renewal cadence only.
822
849
  date_of_renewal: nil,
823
- # Why the result was excluded.
850
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
824
851
  deactivated_reason: nil,
825
852
  # The project this result was evaluated for. `null` for workspace-scoped rules.
826
853
  project_id: nil,
@@ -862,7 +889,8 @@ module Openlayer
862
889
  def to_hash
863
890
  end
864
891
 
865
- # The compliance status of the rule for this entity.
892
+ # The compliance status of the rule for this entity. Computed by Openlayer and
893
+ # can't be set directly.
866
894
  module Status
867
895
  extend Openlayer::Internal::Type::Enum
868
896
 
@@ -937,7 +965,8 @@ module Openlayer
937
965
  sig { params(id: String).void }
938
966
  attr_writer :id
939
967
 
940
- # The compliance status of the rule for this entity.
968
+ # The compliance status of the rule for this entity. Computed by Openlayer and
969
+ # can't be set directly.
941
970
  sig do
942
971
  returns(
943
972
  T.nilable(
@@ -964,7 +993,8 @@ module Openlayer
964
993
  end
965
994
  def self.new(
966
995
  id: nil,
967
- # The compliance status of the rule for this entity.
996
+ # The compliance status of the rule for this entity. Computed by Openlayer and
997
+ # can't be set directly.
968
998
  status: nil
969
999
  )
970
1000
  end
@@ -981,7 +1011,8 @@ module Openlayer
981
1011
  def to_hash
982
1012
  end
983
1013
 
984
- # The compliance status of the rule for this entity.
1014
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1015
+ # can't be set directly.
985
1016
  module Status
986
1017
  extend Openlayer::Internal::Type::Enum
987
1018
 
@@ -1057,7 +1088,8 @@ module Openlayer
1057
1088
  sig { params(id: String).void }
1058
1089
  attr_writer :id
1059
1090
 
1060
- # The compliance status of the rule for this entity.
1091
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1092
+ # can't be set directly.
1061
1093
  sig do
1062
1094
  returns(
1063
1095
  T.nilable(
@@ -1084,7 +1116,8 @@ module Openlayer
1084
1116
  end
1085
1117
  def self.new(
1086
1118
  id: nil,
1087
- # The compliance status of the rule for this entity.
1119
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1120
+ # can't be set directly.
1088
1121
  status: nil
1089
1122
  )
1090
1123
  end
@@ -1101,7 +1134,8 @@ module Openlayer
1101
1134
  def to_hash
1102
1135
  end
1103
1136
 
1104
- # The compliance status of the rule for this entity.
1137
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1138
+ # can't be set directly.
1105
1139
  module Status
1106
1140
  extend Openlayer::Internal::Type::Enum
1107
1141
 
@@ -1230,7 +1264,7 @@ module Openlayer
1230
1264
  sig { returns(Time) }
1231
1265
  attr_accessor :date_updated
1232
1266
 
1233
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
1267
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
1234
1268
  sig { returns(T::Boolean) }
1235
1269
  attr_accessor :immutable
1236
1270
 
@@ -1238,6 +1272,8 @@ module Openlayer
1238
1272
  sig { returns(String) }
1239
1273
  attr_accessor :workspace_id
1240
1274
 
1275
+ # A label that groups rules across frameworks, for example by team or control
1276
+ # family.
1241
1277
  sig do
1242
1278
  params(
1243
1279
  id: String,
@@ -1259,7 +1295,7 @@ module Openlayer
1259
1295
  date_created:,
1260
1296
  # The last update date.
1261
1297
  date_updated:,
1262
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
1298
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
1263
1299
  immutable:,
1264
1300
  # The tag name.
1265
1301
  name:,
@@ -27,7 +27,8 @@ module Openlayer
27
27
  attr_accessor :name
28
28
 
29
29
  # Where the uploaded file is stored. Set when the rule's `evidenceType` is
30
- # `document`.
30
+ # `document`. Upload the file first with `POST /storage/presigned-url` and send
31
+ # the storage URI it returns.
31
32
  sig { returns(T.nilable(String)) }
32
33
  attr_accessor :storage_uri
33
34
 
@@ -57,7 +58,8 @@ module Openlayer
57
58
  # The evidence name.
58
59
  name: nil,
59
60
  # Where the uploaded file is stored. Set when the rule's `evidenceType` is
60
- # `document`.
61
+ # `document`. Upload the file first with `POST /storage/presigned-url` and send
62
+ # the storage URI it returns.
61
63
  storage_uri: nil,
62
64
  # The evidence text. Set when the rule's `evidenceType` is `text`.
63
65
  text: nil,
@@ -21,7 +21,8 @@ module Openlayer
21
21
  attr_accessor :name
22
22
 
23
23
  # Where the uploaded file is stored. Set when the rule's `evidenceType` is
24
- # `document`.
24
+ # `document`. Upload the file first with `POST /storage/presigned-url` and send
25
+ # the storage URI it returns.
25
26
  sig { returns(T.nilable(String)) }
26
27
  attr_accessor :storage_uri
27
28
 
@@ -49,6 +50,9 @@ module Openlayer
49
50
  sig { returns(Time) }
50
51
  attr_accessor :date_updated
51
52
 
53
+ # Evidence attached to a rule result to satisfy an evidence rule. Which field
54
+ # holds it depends on the rule's `evidenceType`: `storageUri` for a document,
55
+ # `text` for a written statement, or `url` for a link.
52
56
  sig do
53
57
  params(
54
58
  id: String,
@@ -76,7 +80,8 @@ module Openlayer
76
80
  # The evidence name.
77
81
  name: nil,
78
82
  # Where the uploaded file is stored. Set when the rule's `evidenceType` is
79
- # `document`.
83
+ # `document`. Upload the file first with `POST /storage/presigned-url` and send
84
+ # the storage URI it returns.
80
85
  storage_uri: nil,
81
86
  # The evidence text. Set when the rule's `evidenceType` is `text`.
82
87
  text: nil,
@@ -63,7 +63,8 @@ module Openlayer
63
63
  attr_accessor :name
64
64
 
65
65
  # Where the uploaded file is stored. Set when the rule's `evidenceType` is
66
- # `document`.
66
+ # `document`. Upload the file first with `POST /storage/presigned-url` and send
67
+ # the storage URI it returns.
67
68
  sig { returns(T.nilable(String)) }
68
69
  attr_accessor :storage_uri
69
70
 
@@ -91,6 +92,9 @@ module Openlayer
91
92
  sig { returns(Time) }
92
93
  attr_accessor :date_updated
93
94
 
95
+ # Evidence attached to a rule result to satisfy an evidence rule. Which field
96
+ # holds it depends on the rule's `evidenceType`: `storageUri` for a document,
97
+ # `text` for a written statement, or `url` for a link.
94
98
  sig do
95
99
  params(
96
100
  id: String,
@@ -118,7 +122,8 @@ module Openlayer
118
122
  # The evidence name.
119
123
  name: nil,
120
124
  # Where the uploaded file is stored. Set when the rule's `evidenceType` is
121
- # `document`.
125
+ # `document`. Upload the file first with `POST /storage/presigned-url` and send
126
+ # the storage URI it returns.
122
127
  storage_uri: nil,
123
128
  # The evidence text. Set when the rule's `evidenceType` is `text`.
124
129
  text: nil,
@@ -54,11 +54,13 @@ module Openlayer
54
54
  )
55
55
  end
56
56
 
57
- # Whether this result is excluded from compliance calculations.
57
+ # Whether this result is excluded from compliance calculations. Excludes just this
58
+ # result, without deactivating the rule everywhere.
58
59
  sig { returns(T::Boolean) }
59
60
  attr_accessor :deactivated
60
61
 
61
- # The compliance status of the rule for this entity.
62
+ # The compliance status of the rule for this entity. Computed by Openlayer and
63
+ # can't be set directly.
62
64
  sig do
63
65
  returns(
64
66
  Openlayer::Models::Governance::RuleResultListResponse::Item::Status::TaggedSymbol
@@ -114,7 +116,7 @@ module Openlayer
114
116
  end
115
117
  attr_writer :blocking
116
118
 
117
- # Why the result was excluded.
119
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
118
120
  sig { returns(T.nilable(String)) }
119
121
  attr_accessor :deactivated_reason
120
122
 
@@ -162,6 +164,8 @@ module Openlayer
162
164
  sig { returns(T.nilable(String)) }
163
165
  attr_accessor :project_id
164
166
 
167
+ # The compliance status of one rule for one entity: a project for project-scoped
168
+ # rules, or the workspace for workspace-scoped rules.
165
169
  sig do
166
170
  params(
167
171
  id: String,
@@ -197,11 +201,13 @@ module Openlayer
197
201
  date_created:,
198
202
  # The last update date.
199
203
  date_updated:,
200
- # Whether this result is excluded from compliance calculations.
204
+ # Whether this result is excluded from compliance calculations. Excludes just this
205
+ # result, without deactivating the rule everywhere.
201
206
  deactivated:,
202
207
  # The rule this result belongs to.
203
208
  rule_id:,
204
- # The compliance status of the rule for this entity.
209
+ # The compliance status of the rule for this entity. Computed by Openlayer and
210
+ # can't be set directly.
205
211
  status:,
206
212
  # The id of the workspace the rule result belongs to.
207
213
  workspace_id:,
@@ -219,7 +225,7 @@ module Openlayer
219
225
  date_of_next_evaluation: nil,
220
226
  # When the evidence must be renewed. Evidence rules with a renewal cadence only.
221
227
  date_of_renewal: nil,
222
- # Why the result was excluded.
228
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
223
229
  deactivated_reason: nil,
224
230
  # The project this result was evaluated for. `null` for workspace-scoped rules.
225
231
  project_id: nil,
@@ -261,7 +267,8 @@ module Openlayer
261
267
  def to_hash
262
268
  end
263
269
 
264
- # The compliance status of the rule for this entity.
270
+ # The compliance status of the rule for this entity. Computed by Openlayer and
271
+ # can't be set directly.
265
272
  module Status
266
273
  extend Openlayer::Internal::Type::Enum
267
274
 
@@ -336,7 +343,8 @@ module Openlayer
336
343
  sig { params(id: String).void }
337
344
  attr_writer :id
338
345
 
339
- # The compliance status of the rule for this entity.
346
+ # The compliance status of the rule for this entity. Computed by Openlayer and
347
+ # can't be set directly.
340
348
  sig do
341
349
  returns(
342
350
  T.nilable(
@@ -363,7 +371,8 @@ module Openlayer
363
371
  end
364
372
  def self.new(
365
373
  id: nil,
366
- # The compliance status of the rule for this entity.
374
+ # The compliance status of the rule for this entity. Computed by Openlayer and
375
+ # can't be set directly.
367
376
  status: nil
368
377
  )
369
378
  end
@@ -380,7 +389,8 @@ module Openlayer
380
389
  def to_hash
381
390
  end
382
391
 
383
- # The compliance status of the rule for this entity.
392
+ # The compliance status of the rule for this entity. Computed by Openlayer and
393
+ # can't be set directly.
384
394
  module Status
385
395
  extend Openlayer::Internal::Type::Enum
386
396
 
@@ -456,7 +466,8 @@ module Openlayer
456
466
  sig { params(id: String).void }
457
467
  attr_writer :id
458
468
 
459
- # The compliance status of the rule for this entity.
469
+ # The compliance status of the rule for this entity. Computed by Openlayer and
470
+ # can't be set directly.
460
471
  sig do
461
472
  returns(
462
473
  T.nilable(
@@ -483,7 +494,8 @@ module Openlayer
483
494
  end
484
495
  def self.new(
485
496
  id: nil,
486
- # The compliance status of the rule for this entity.
497
+ # The compliance status of the rule for this entity. Computed by Openlayer and
498
+ # can't be set directly.
487
499
  status: nil
488
500
  )
489
501
  end
@@ -500,7 +512,8 @@ module Openlayer
500
512
  def to_hash
501
513
  end
502
514
 
503
- # The compliance status of the rule for this entity.
515
+ # The compliance status of the rule for this entity. Computed by Openlayer and
516
+ # can't be set directly.
504
517
  module Status
505
518
  extend Openlayer::Internal::Type::Enum
506
519
 
@@ -12,11 +12,13 @@ module Openlayer
12
12
  )
13
13
  end
14
14
 
15
- # Whether this result is excluded from compliance calculations.
15
+ # Whether this result is excluded from compliance calculations. Excludes just this
16
+ # result, without deactivating the rule everywhere.
16
17
  sig { returns(T::Boolean) }
17
18
  attr_accessor :deactivated
18
19
 
19
- # The compliance status of the rule for this entity.
20
+ # The compliance status of the rule for this entity. Computed by Openlayer and
21
+ # can't be set directly.
20
22
  sig do
21
23
  returns(
22
24
  Openlayer::Models::Governance::RuleResultRetrieveResponse::Status::TaggedSymbol
@@ -72,7 +74,7 @@ module Openlayer
72
74
  end
73
75
  attr_writer :blocking
74
76
 
75
- # Why the result was excluded.
77
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
76
78
  sig { returns(T.nilable(String)) }
77
79
  attr_accessor :deactivated_reason
78
80
 
@@ -120,6 +122,8 @@ module Openlayer
120
122
  sig { returns(T.nilable(String)) }
121
123
  attr_accessor :project_id
122
124
 
125
+ # The compliance status of one rule for one entity: a project for project-scoped
126
+ # rules, or the workspace for workspace-scoped rules.
123
127
  sig do
124
128
  params(
125
129
  id: String,
@@ -155,11 +159,13 @@ module Openlayer
155
159
  date_created:,
156
160
  # The last update date.
157
161
  date_updated:,
158
- # Whether this result is excluded from compliance calculations.
162
+ # Whether this result is excluded from compliance calculations. Excludes just this
163
+ # result, without deactivating the rule everywhere.
159
164
  deactivated:,
160
165
  # The rule this result belongs to.
161
166
  rule_id:,
162
- # The compliance status of the rule for this entity.
167
+ # The compliance status of the rule for this entity. Computed by Openlayer and
168
+ # can't be set directly.
163
169
  status:,
164
170
  # The id of the workspace the rule result belongs to.
165
171
  workspace_id:,
@@ -177,7 +183,7 @@ module Openlayer
177
183
  date_of_next_evaluation: nil,
178
184
  # When the evidence must be renewed. Evidence rules with a renewal cadence only.
179
185
  date_of_renewal: nil,
180
- # Why the result was excluded.
186
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
181
187
  deactivated_reason: nil,
182
188
  # The project this result was evaluated for. `null` for workspace-scoped rules.
183
189
  project_id: nil,
@@ -219,7 +225,8 @@ module Openlayer
219
225
  def to_hash
220
226
  end
221
227
 
222
- # The compliance status of the rule for this entity.
228
+ # The compliance status of the rule for this entity. Computed by Openlayer and
229
+ # can't be set directly.
223
230
  module Status
224
231
  extend Openlayer::Internal::Type::Enum
225
232
 
@@ -294,7 +301,8 @@ module Openlayer
294
301
  sig { params(id: String).void }
295
302
  attr_writer :id
296
303
 
297
- # The compliance status of the rule for this entity.
304
+ # The compliance status of the rule for this entity. Computed by Openlayer and
305
+ # can't be set directly.
298
306
  sig do
299
307
  returns(
300
308
  T.nilable(
@@ -321,7 +329,8 @@ module Openlayer
321
329
  end
322
330
  def self.new(
323
331
  id: nil,
324
- # The compliance status of the rule for this entity.
332
+ # The compliance status of the rule for this entity. Computed by Openlayer and
333
+ # can't be set directly.
325
334
  status: nil
326
335
  )
327
336
  end
@@ -338,7 +347,8 @@ module Openlayer
338
347
  def to_hash
339
348
  end
340
349
 
341
- # The compliance status of the rule for this entity.
350
+ # The compliance status of the rule for this entity. Computed by Openlayer and
351
+ # can't be set directly.
342
352
  module Status
343
353
  extend Openlayer::Internal::Type::Enum
344
354
 
@@ -414,7 +424,8 @@ module Openlayer
414
424
  sig { params(id: String).void }
415
425
  attr_writer :id
416
426
 
417
- # The compliance status of the rule for this entity.
427
+ # The compliance status of the rule for this entity. Computed by Openlayer and
428
+ # can't be set directly.
418
429
  sig do
419
430
  returns(
420
431
  T.nilable(
@@ -441,7 +452,8 @@ module Openlayer
441
452
  end
442
453
  def self.new(
443
454
  id: nil,
444
- # The compliance status of the rule for this entity.
455
+ # The compliance status of the rule for this entity. Computed by Openlayer and
456
+ # can't be set directly.
445
457
  status: nil
446
458
  )
447
459
  end
@@ -458,7 +470,8 @@ module Openlayer
458
470
  def to_hash
459
471
  end
460
472
 
461
- # The compliance status of the rule for this entity.
473
+ # The compliance status of the rule for this entity. Computed by Openlayer and
474
+ # can't be set directly.
462
475
  module Status
463
476
  extend Openlayer::Internal::Type::Enum
464
477