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
@@ -60,7 +60,8 @@ module Openlayer
60
60
  attr_accessor :name
61
61
 
62
62
  # Whether the rule is evaluated once for the whole workspace, or once per project
63
- # the rule's frameworks apply to.
63
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
64
+ # the rule is created.
64
65
  sig do
65
66
  returns(
66
67
  Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Scope::TaggedSymbol
@@ -69,7 +70,8 @@ module Openlayer
69
70
  attr_accessor :scope
70
71
 
71
72
  # `platform` rules are evaluated automatically from the state of your Openlayer
72
- # workspace. `evidence` rules are satisfied by attaching evidence.
73
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
74
+ # rule is created.
73
75
  sig do
74
76
  returns(
75
77
  Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Type::TaggedSymbol
@@ -81,13 +83,15 @@ module Openlayer
81
83
  sig { returns(T.nilable(String)) }
82
84
  attr_accessor :assignee_id
83
85
 
84
- # Configuration for the platform check, when the automation takes parameters.
86
+ # Configuration for the platform check, when the automation takes parameters. Omit
87
+ # or `null` for evidence rules. Fixed once the rule is created.
85
88
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
86
89
  attr_accessor :automation_params
87
90
 
88
91
  # Which workspace signal a platform rule checks, for example
89
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
90
- # evidence rules.
92
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
93
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
94
+ # created.
91
95
  sig { returns(T.nilable(String)) }
92
96
  attr_accessor :automation_type
93
97
 
@@ -102,7 +106,8 @@ module Openlayer
102
106
  sig { returns(T.nilable(String)) }
103
107
  attr_accessor :description
104
108
 
105
- # The kind of evidence that satisfies the rule. `null` for platform rules.
109
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
110
+ # `null` for platform rules. Fixed once the rule is created.
106
111
  sig do
107
112
  returns(
108
113
  T.nilable(
@@ -113,7 +118,8 @@ module Openlayer
113
118
  attr_accessor :evidence_type
114
119
 
115
120
  # How often evidence must be renewed, in days. Once evidence is older than this,
116
- # the rule result becomes `due_soon` and then `failing`.
121
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
122
+ # whenever evidence is attached. Omit or `null` for platform rules.
117
123
  sig { returns(T.nilable(Integer)) }
118
124
  attr_accessor :renewal_cadence_days
119
125
 
@@ -155,7 +161,8 @@ module Openlayer
155
161
  end
156
162
  attr_writer :frameworks
157
163
 
158
- # Whether the rule is managed by Openlayer and cannot be edited.
164
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
165
+ # deleted; set `deactivated` to exclude one from compliance instead.
159
166
  sig { returns(T.nilable(T::Boolean)) }
160
167
  attr_reader :immutable
161
168
 
@@ -218,6 +225,10 @@ module Openlayer
218
225
  end
219
226
  attr_accessor :tags
220
227
 
228
+ # A single requirement Openlayer tracks. `platform` rules are evaluated
229
+ # automatically from the state of your workspace, and `evidence` rules are
230
+ # satisfied by attaching evidence. A rule can belong to several frameworks, or to
231
+ # none.
221
232
  sig do
222
233
  params(
223
234
  id: String,
@@ -270,33 +281,40 @@ module Openlayer
270
281
  # The rule name.
271
282
  name:,
272
283
  # Whether the rule is evaluated once for the whole workspace, or once per project
273
- # the rule's frameworks apply to.
284
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
285
+ # the rule is created.
274
286
  scope:,
275
287
  # `platform` rules are evaluated automatically from the state of your Openlayer
276
- # workspace. `evidence` rules are satisfied by attaching evidence.
288
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
289
+ # rule is created.
277
290
  type:,
278
291
  # The id of the workspace the rule belongs to.
279
292
  workspace_id:,
280
293
  # The user responsible for satisfying the rule.
281
294
  assignee_id: nil,
282
- # Configuration for the platform check, when the automation takes parameters.
295
+ # Configuration for the platform check, when the automation takes parameters. Omit
296
+ # or `null` for evidence rules. Fixed once the rule is created.
283
297
  automation_params: nil,
284
298
  # Which workspace signal a platform rule checks, for example
285
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
286
- # evidence rules.
299
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
300
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
301
+ # created.
287
302
  automation_type: nil,
288
303
  # Whether the rule is excluded from compliance calculations.
289
304
  deactivated: nil,
290
305
  # What the rule requires.
291
306
  description: nil,
292
- # The kind of evidence that satisfies the rule. `null` for platform rules.
307
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
308
+ # `null` for platform rules. Fixed once the rule is created.
293
309
  evidence_type: nil,
294
310
  # The frameworks that include this rule.
295
311
  frameworks: nil,
296
- # Whether the rule is managed by Openlayer and cannot be edited.
312
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
313
+ # deleted; set `deactivated` to exclude one from compliance instead.
297
314
  immutable: nil,
298
315
  # How often evidence must be renewed, in days. Once evidence is older than this,
299
- # the rule result becomes `due_soon` and then `failing`.
316
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
317
+ # whenever evidence is attached. Omit or `null` for platform rules.
300
318
  renewal_cadence_days: nil,
301
319
  # The rule's results, one per entity the rule is evaluated against. Only returned
302
320
  # when `includeResults` is `true`.
@@ -358,7 +376,8 @@ module Openlayer
358
376
  end
359
377
 
360
378
  # Whether the rule is evaluated once for the whole workspace, or once per project
361
- # the rule's frameworks apply to.
379
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
380
+ # the rule is created.
362
381
  module Scope
363
382
  extend Openlayer::Internal::Type::Enum
364
383
 
@@ -394,7 +413,8 @@ module Openlayer
394
413
  end
395
414
 
396
415
  # `platform` rules are evaluated automatically from the state of your Openlayer
397
- # workspace. `evidence` rules are satisfied by attaching evidence.
416
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
417
+ # rule is created.
398
418
  module Type
399
419
  extend Openlayer::Internal::Type::Enum
400
420
 
@@ -429,7 +449,8 @@ module Openlayer
429
449
  end
430
450
  end
431
451
 
432
- # The kind of evidence that satisfies the rule. `null` for platform rules.
452
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
453
+ # `null` for platform rules. Fixed once the rule is created.
433
454
  module EvidenceType
434
455
  extend Openlayer::Internal::Type::Enum
435
456
 
@@ -660,11 +681,13 @@ module Openlayer
660
681
  )
661
682
  end
662
683
 
663
- # Whether this result is excluded from compliance calculations.
684
+ # Whether this result is excluded from compliance calculations. Excludes just this
685
+ # result, without deactivating the rule everywhere.
664
686
  sig { returns(T::Boolean) }
665
687
  attr_accessor :deactivated
666
688
 
667
- # The compliance status of the rule for this entity.
689
+ # The compliance status of the rule for this entity. Computed by Openlayer and
690
+ # can't be set directly.
668
691
  sig do
669
692
  returns(
670
693
  Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Status::TaggedSymbol
@@ -720,7 +743,7 @@ module Openlayer
720
743
  end
721
744
  attr_writer :blocking
722
745
 
723
- # Why the result was excluded.
746
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
724
747
  sig { returns(T.nilable(String)) }
725
748
  attr_accessor :deactivated_reason
726
749
 
@@ -768,6 +791,8 @@ module Openlayer
768
791
  sig { returns(T.nilable(String)) }
769
792
  attr_accessor :project_id
770
793
 
794
+ # The compliance status of one rule for one entity: a project for project-scoped
795
+ # rules, or the workspace for workspace-scoped rules.
771
796
  sig do
772
797
  params(
773
798
  id: String,
@@ -803,11 +828,13 @@ module Openlayer
803
828
  date_created:,
804
829
  # The last update date.
805
830
  date_updated:,
806
- # Whether this result is excluded from compliance calculations.
831
+ # Whether this result is excluded from compliance calculations. Excludes just this
832
+ # result, without deactivating the rule everywhere.
807
833
  deactivated:,
808
834
  # The rule this result belongs to.
809
835
  rule_id:,
810
- # The compliance status of the rule for this entity.
836
+ # The compliance status of the rule for this entity. Computed by Openlayer and
837
+ # can't be set directly.
811
838
  status:,
812
839
  # The id of the workspace the rule result belongs to.
813
840
  workspace_id:,
@@ -825,7 +852,7 @@ module Openlayer
825
852
  date_of_next_evaluation: nil,
826
853
  # When the evidence must be renewed. Evidence rules with a renewal cadence only.
827
854
  date_of_renewal: nil,
828
- # Why the result was excluded.
855
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
829
856
  deactivated_reason: nil,
830
857
  # The project this result was evaluated for. `null` for workspace-scoped rules.
831
858
  project_id: nil,
@@ -867,7 +894,8 @@ module Openlayer
867
894
  def to_hash
868
895
  end
869
896
 
870
- # The compliance status of the rule for this entity.
897
+ # The compliance status of the rule for this entity. Computed by Openlayer and
898
+ # can't be set directly.
871
899
  module Status
872
900
  extend Openlayer::Internal::Type::Enum
873
901
 
@@ -942,7 +970,8 @@ module Openlayer
942
970
  sig { params(id: String).void }
943
971
  attr_writer :id
944
972
 
945
- # The compliance status of the rule for this entity.
973
+ # The compliance status of the rule for this entity. Computed by Openlayer and
974
+ # can't be set directly.
946
975
  sig do
947
976
  returns(
948
977
  T.nilable(
@@ -969,7 +998,8 @@ module Openlayer
969
998
  end
970
999
  def self.new(
971
1000
  id: nil,
972
- # The compliance status of the rule for this entity.
1001
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1002
+ # can't be set directly.
973
1003
  status: nil
974
1004
  )
975
1005
  end
@@ -986,7 +1016,8 @@ module Openlayer
986
1016
  def to_hash
987
1017
  end
988
1018
 
989
- # The compliance status of the rule for this entity.
1019
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1020
+ # can't be set directly.
990
1021
  module Status
991
1022
  extend Openlayer::Internal::Type::Enum
992
1023
 
@@ -1062,7 +1093,8 @@ module Openlayer
1062
1093
  sig { params(id: String).void }
1063
1094
  attr_writer :id
1064
1095
 
1065
- # The compliance status of the rule for this entity.
1096
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1097
+ # can't be set directly.
1066
1098
  sig do
1067
1099
  returns(
1068
1100
  T.nilable(
@@ -1089,7 +1121,8 @@ module Openlayer
1089
1121
  end
1090
1122
  def self.new(
1091
1123
  id: nil,
1092
- # The compliance status of the rule for this entity.
1124
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1125
+ # can't be set directly.
1093
1126
  status: nil
1094
1127
  )
1095
1128
  end
@@ -1106,7 +1139,8 @@ module Openlayer
1106
1139
  def to_hash
1107
1140
  end
1108
1141
 
1109
- # The compliance status of the rule for this entity.
1142
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1143
+ # can't be set directly.
1110
1144
  module Status
1111
1145
  extend Openlayer::Internal::Type::Enum
1112
1146
 
@@ -1237,7 +1271,7 @@ module Openlayer
1237
1271
  sig { returns(Time) }
1238
1272
  attr_accessor :date_updated
1239
1273
 
1240
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
1274
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
1241
1275
  sig { returns(T::Boolean) }
1242
1276
  attr_accessor :immutable
1243
1277
 
@@ -1245,6 +1279,8 @@ module Openlayer
1245
1279
  sig { returns(String) }
1246
1280
  attr_accessor :workspace_id
1247
1281
 
1282
+ # A label that groups rules across frameworks, for example by team or control
1283
+ # family.
1248
1284
  sig do
1249
1285
  params(
1250
1286
  id: String,
@@ -1266,7 +1302,7 @@ module Openlayer
1266
1302
  date_created:,
1267
1303
  # The last update date.
1268
1304
  date_updated:,
1269
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
1305
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
1270
1306
  immutable:,
1271
1307
  # The tag name.
1272
1308
  name:,
@@ -60,7 +60,8 @@ module Openlayer
60
60
  attr_accessor :name
61
61
 
62
62
  # Whether the rule is evaluated once for the whole workspace, or once per project
63
- # the rule's frameworks apply to.
63
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
64
+ # the rule is created.
64
65
  sig do
65
66
  returns(
66
67
  Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Scope::TaggedSymbol
@@ -69,7 +70,8 @@ module Openlayer
69
70
  attr_accessor :scope
70
71
 
71
72
  # `platform` rules are evaluated automatically from the state of your Openlayer
72
- # workspace. `evidence` rules are satisfied by attaching evidence.
73
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
74
+ # rule is created.
73
75
  sig do
74
76
  returns(
75
77
  Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Type::TaggedSymbol
@@ -81,13 +83,15 @@ module Openlayer
81
83
  sig { returns(T.nilable(String)) }
82
84
  attr_accessor :assignee_id
83
85
 
84
- # Configuration for the platform check, when the automation takes parameters.
86
+ # Configuration for the platform check, when the automation takes parameters. Omit
87
+ # or `null` for evidence rules. Fixed once the rule is created.
85
88
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
86
89
  attr_accessor :automation_params
87
90
 
88
91
  # Which workspace signal a platform rule checks, for example
89
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
90
- # evidence rules.
92
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
93
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
94
+ # created.
91
95
  sig { returns(T.nilable(String)) }
92
96
  attr_accessor :automation_type
93
97
 
@@ -102,7 +106,8 @@ module Openlayer
102
106
  sig { returns(T.nilable(String)) }
103
107
  attr_accessor :description
104
108
 
105
- # The kind of evidence that satisfies the rule. `null` for platform rules.
109
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
110
+ # `null` for platform rules. Fixed once the rule is created.
106
111
  sig do
107
112
  returns(
108
113
  T.nilable(
@@ -113,7 +118,8 @@ module Openlayer
113
118
  attr_accessor :evidence_type
114
119
 
115
120
  # How often evidence must be renewed, in days. Once evidence is older than this,
116
- # the rule result becomes `due_soon` and then `failing`.
121
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
122
+ # whenever evidence is attached. Omit or `null` for platform rules.
117
123
  sig { returns(T.nilable(Integer)) }
118
124
  attr_accessor :renewal_cadence_days
119
125
 
@@ -155,7 +161,8 @@ module Openlayer
155
161
  end
156
162
  attr_writer :frameworks
157
163
 
158
- # Whether the rule is managed by Openlayer and cannot be edited.
164
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
165
+ # deleted; set `deactivated` to exclude one from compliance instead.
159
166
  sig { returns(T.nilable(T::Boolean)) }
160
167
  attr_reader :immutable
161
168
 
@@ -218,6 +225,10 @@ module Openlayer
218
225
  end
219
226
  attr_accessor :tags
220
227
 
228
+ # A single requirement Openlayer tracks. `platform` rules are evaluated
229
+ # automatically from the state of your workspace, and `evidence` rules are
230
+ # satisfied by attaching evidence. A rule can belong to several frameworks, or to
231
+ # none.
221
232
  sig do
222
233
  params(
223
234
  id: String,
@@ -270,33 +281,40 @@ module Openlayer
270
281
  # The rule name.
271
282
  name:,
272
283
  # Whether the rule is evaluated once for the whole workspace, or once per project
273
- # the rule's frameworks apply to.
284
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
285
+ # the rule is created.
274
286
  scope:,
275
287
  # `platform` rules are evaluated automatically from the state of your Openlayer
276
- # workspace. `evidence` rules are satisfied by attaching evidence.
288
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
289
+ # rule is created.
277
290
  type:,
278
291
  # The id of the workspace the rule belongs to.
279
292
  workspace_id:,
280
293
  # The user responsible for satisfying the rule.
281
294
  assignee_id: nil,
282
- # Configuration for the platform check, when the automation takes parameters.
295
+ # Configuration for the platform check, when the automation takes parameters. Omit
296
+ # or `null` for evidence rules. Fixed once the rule is created.
283
297
  automation_params: nil,
284
298
  # Which workspace signal a platform rule checks, for example
285
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
286
- # evidence rules.
299
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
300
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
301
+ # created.
287
302
  automation_type: nil,
288
303
  # Whether the rule is excluded from compliance calculations.
289
304
  deactivated: nil,
290
305
  # What the rule requires.
291
306
  description: nil,
292
- # The kind of evidence that satisfies the rule. `null` for platform rules.
307
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
308
+ # `null` for platform rules. Fixed once the rule is created.
293
309
  evidence_type: nil,
294
310
  # The frameworks that include this rule.
295
311
  frameworks: nil,
296
- # Whether the rule is managed by Openlayer and cannot be edited.
312
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
313
+ # deleted; set `deactivated` to exclude one from compliance instead.
297
314
  immutable: nil,
298
315
  # How often evidence must be renewed, in days. Once evidence is older than this,
299
- # the rule result becomes `due_soon` and then `failing`.
316
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
317
+ # whenever evidence is attached. Omit or `null` for platform rules.
300
318
  renewal_cadence_days: nil,
301
319
  # The rule's results, one per entity the rule is evaluated against. Only returned
302
320
  # when `includeResults` is `true`.
@@ -358,7 +376,8 @@ module Openlayer
358
376
  end
359
377
 
360
378
  # Whether the rule is evaluated once for the whole workspace, or once per project
361
- # the rule's frameworks apply to.
379
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
380
+ # the rule is created.
362
381
  module Scope
363
382
  extend Openlayer::Internal::Type::Enum
364
383
 
@@ -394,7 +413,8 @@ module Openlayer
394
413
  end
395
414
 
396
415
  # `platform` rules are evaluated automatically from the state of your Openlayer
397
- # workspace. `evidence` rules are satisfied by attaching evidence.
416
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
417
+ # rule is created.
398
418
  module Type
399
419
  extend Openlayer::Internal::Type::Enum
400
420
 
@@ -429,7 +449,8 @@ module Openlayer
429
449
  end
430
450
  end
431
451
 
432
- # The kind of evidence that satisfies the rule. `null` for platform rules.
452
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
453
+ # `null` for platform rules. Fixed once the rule is created.
433
454
  module EvidenceType
434
455
  extend Openlayer::Internal::Type::Enum
435
456
 
@@ -660,11 +681,13 @@ module Openlayer
660
681
  )
661
682
  end
662
683
 
663
- # Whether this result is excluded from compliance calculations.
684
+ # Whether this result is excluded from compliance calculations. Excludes just this
685
+ # result, without deactivating the rule everywhere.
664
686
  sig { returns(T::Boolean) }
665
687
  attr_accessor :deactivated
666
688
 
667
- # The compliance status of the rule for this entity.
689
+ # The compliance status of the rule for this entity. Computed by Openlayer and
690
+ # can't be set directly.
668
691
  sig do
669
692
  returns(
670
693
  Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Status::TaggedSymbol
@@ -720,7 +743,7 @@ module Openlayer
720
743
  end
721
744
  attr_writer :blocking
722
745
 
723
- # Why the result was excluded.
746
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
724
747
  sig { returns(T.nilable(String)) }
725
748
  attr_accessor :deactivated_reason
726
749
 
@@ -768,6 +791,8 @@ module Openlayer
768
791
  sig { returns(T.nilable(String)) }
769
792
  attr_accessor :project_id
770
793
 
794
+ # The compliance status of one rule for one entity: a project for project-scoped
795
+ # rules, or the workspace for workspace-scoped rules.
771
796
  sig do
772
797
  params(
773
798
  id: String,
@@ -803,11 +828,13 @@ module Openlayer
803
828
  date_created:,
804
829
  # The last update date.
805
830
  date_updated:,
806
- # Whether this result is excluded from compliance calculations.
831
+ # Whether this result is excluded from compliance calculations. Excludes just this
832
+ # result, without deactivating the rule everywhere.
807
833
  deactivated:,
808
834
  # The rule this result belongs to.
809
835
  rule_id:,
810
- # The compliance status of the rule for this entity.
836
+ # The compliance status of the rule for this entity. Computed by Openlayer and
837
+ # can't be set directly.
811
838
  status:,
812
839
  # The id of the workspace the rule result belongs to.
813
840
  workspace_id:,
@@ -825,7 +852,7 @@ module Openlayer
825
852
  date_of_next_evaluation: nil,
826
853
  # When the evidence must be renewed. Evidence rules with a renewal cadence only.
827
854
  date_of_renewal: nil,
828
- # Why the result was excluded.
855
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
829
856
  deactivated_reason: nil,
830
857
  # The project this result was evaluated for. `null` for workspace-scoped rules.
831
858
  project_id: nil,
@@ -867,7 +894,8 @@ module Openlayer
867
894
  def to_hash
868
895
  end
869
896
 
870
- # The compliance status of the rule for this entity.
897
+ # The compliance status of the rule for this entity. Computed by Openlayer and
898
+ # can't be set directly.
871
899
  module Status
872
900
  extend Openlayer::Internal::Type::Enum
873
901
 
@@ -942,7 +970,8 @@ module Openlayer
942
970
  sig { params(id: String).void }
943
971
  attr_writer :id
944
972
 
945
- # The compliance status of the rule for this entity.
973
+ # The compliance status of the rule for this entity. Computed by Openlayer and
974
+ # can't be set directly.
946
975
  sig do
947
976
  returns(
948
977
  T.nilable(
@@ -969,7 +998,8 @@ module Openlayer
969
998
  end
970
999
  def self.new(
971
1000
  id: nil,
972
- # The compliance status of the rule for this entity.
1001
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1002
+ # can't be set directly.
973
1003
  status: nil
974
1004
  )
975
1005
  end
@@ -986,7 +1016,8 @@ module Openlayer
986
1016
  def to_hash
987
1017
  end
988
1018
 
989
- # The compliance status of the rule for this entity.
1019
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1020
+ # can't be set directly.
990
1021
  module Status
991
1022
  extend Openlayer::Internal::Type::Enum
992
1023
 
@@ -1062,7 +1093,8 @@ module Openlayer
1062
1093
  sig { params(id: String).void }
1063
1094
  attr_writer :id
1064
1095
 
1065
- # The compliance status of the rule for this entity.
1096
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1097
+ # can't be set directly.
1066
1098
  sig do
1067
1099
  returns(
1068
1100
  T.nilable(
@@ -1089,7 +1121,8 @@ module Openlayer
1089
1121
  end
1090
1122
  def self.new(
1091
1123
  id: nil,
1092
- # The compliance status of the rule for this entity.
1124
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1125
+ # can't be set directly.
1093
1126
  status: nil
1094
1127
  )
1095
1128
  end
@@ -1106,7 +1139,8 @@ module Openlayer
1106
1139
  def to_hash
1107
1140
  end
1108
1141
 
1109
- # The compliance status of the rule for this entity.
1142
+ # The compliance status of the rule for this entity. Computed by Openlayer and
1143
+ # can't be set directly.
1110
1144
  module Status
1111
1145
  extend Openlayer::Internal::Type::Enum
1112
1146
 
@@ -1237,7 +1271,7 @@ module Openlayer
1237
1271
  sig { returns(Time) }
1238
1272
  attr_accessor :date_updated
1239
1273
 
1240
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
1274
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
1241
1275
  sig { returns(T::Boolean) }
1242
1276
  attr_accessor :immutable
1243
1277
 
@@ -1245,6 +1279,8 @@ module Openlayer
1245
1279
  sig { returns(String) }
1246
1280
  attr_accessor :workspace_id
1247
1281
 
1282
+ # A label that groups rules across frameworks, for example by team or control
1283
+ # family.
1248
1284
  sig do
1249
1285
  params(
1250
1286
  id: String,
@@ -1266,7 +1302,7 @@ module Openlayer
1266
1302
  date_created:,
1267
1303
  # The last update date.
1268
1304
  date_updated:,
1269
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
1305
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
1270
1306
  immutable:,
1271
1307
  # The tag name.
1272
1308
  name:,