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
@@ -24,7 +24,8 @@ module Openlayer
24
24
 
25
25
  # @!attribute scope
26
26
  # Whether the rule is evaluated once for the whole workspace, or once per project
27
- # the rule's frameworks apply to.
27
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
28
+ # the rule is created.
28
29
  #
29
30
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Scope]
30
31
  required :scope,
@@ -32,7 +33,8 @@ module Openlayer
32
33
 
33
34
  # @!attribute type
34
35
  # `platform` rules are evaluated automatically from the state of your Openlayer
35
- # workspace. `evidence` rules are satisfied by attaching evidence.
36
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
37
+ # rule is created.
36
38
  #
37
39
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Type]
38
40
  required :type,
@@ -45,7 +47,8 @@ module Openlayer
45
47
  optional :assignee_id, String, api_name: :assigneeId, nil?: true
46
48
 
47
49
  # @!attribute automation_params
48
- # Configuration for the platform check, when the automation takes parameters.
50
+ # Configuration for the platform check, when the automation takes parameters. Omit
51
+ # or `null` for evidence rules. Fixed once the rule is created.
49
52
  #
50
53
  # @return [Hash{Symbol=>Object}, nil]
51
54
  optional :automation_params,
@@ -55,8 +58,9 @@ module Openlayer
55
58
 
56
59
  # @!attribute automation_type
57
60
  # Which workspace signal a platform rule checks, for example
58
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
59
- # evidence rules.
61
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
62
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
63
+ # created.
60
64
  #
61
65
  # @return [String, nil]
62
66
  optional :automation_type, String, api_name: :automationType, nil?: true
@@ -74,7 +78,8 @@ module Openlayer
74
78
  optional :description, String, nil?: true
75
79
 
76
80
  # @!attribute evidence_type
77
- # The kind of evidence that satisfies the rule. `null` for platform rules.
81
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
82
+ # `null` for platform rules. Fixed once the rule is created.
78
83
  #
79
84
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::EvidenceType, nil]
80
85
  optional :evidence_type,
@@ -84,7 +89,8 @@ module Openlayer
84
89
 
85
90
  # @!attribute renewal_cadence_days
86
91
  # How often evidence must be renewed, in days. Once evidence is older than this,
87
- # the rule result becomes `due_soon` and then `failing`.
92
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
93
+ # whenever evidence is attached. Omit or `null` for platform rules.
88
94
  #
89
95
  # @return [Integer, nil]
90
96
  optional :renewal_cadence_days, Integer, api_name: :renewalCadenceDays, nil?: true
@@ -122,7 +128,8 @@ module Openlayer
122
128
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Framework] }
123
129
 
124
130
  # @!attribute immutable
125
- # Whether the rule is managed by Openlayer and cannot be edited.
131
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
132
+ # deleted; set `deactivated` to exclude one from compliance instead.
126
133
  #
127
134
  # @return [Boolean, nil]
128
135
  optional :immutable, Openlayer::Internal::Type::Boolean
@@ -159,6 +166,11 @@ module Openlayer
159
166
  # {Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item} for
160
167
  # more details.
161
168
  #
169
+ # A single requirement Openlayer tracks. `platform` rules are evaluated
170
+ # automatically from the state of your workspace, and `evidence` rules are
171
+ # satisfied by attaching evidence. A rule can belong to several frameworks, or to
172
+ # none.
173
+ #
162
174
  # @param id [String] The rule id.
163
175
  #
164
176
  # @param date_created [Time] The creation date.
@@ -175,7 +187,7 @@ module Openlayer
175
187
  #
176
188
  # @param assignee_id [String, nil] The user responsible for satisfying the rule.
177
189
  #
178
- # @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters.
190
+ # @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters. Omit
179
191
  #
180
192
  # @param automation_type [String, nil] Which workspace signal a platform rule checks, for example `monitoring_mode_enab
181
193
  #
@@ -183,11 +195,11 @@ module Openlayer
183
195
  #
184
196
  # @param description [String, nil] What the rule requires.
185
197
  #
186
- # @param evidence_type [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::EvidenceType, nil] The kind of evidence that satisfies the rule. `null` for platform rules.
198
+ # @param evidence_type [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::EvidenceType, nil] The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
187
199
  #
188
200
  # @param frameworks [Array<Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Framework>] The frameworks that include this rule.
189
201
  #
190
- # @param immutable [Boolean] Whether the rule is managed by Openlayer and cannot be edited.
202
+ # @param immutable [Boolean] Whether the rule is managed by Openlayer. These rules can't be renamed or delete
191
203
  #
192
204
  # @param renewal_cadence_days [Integer, nil] How often evidence must be renewed, in days. Once evidence is older than this, t
193
205
  #
@@ -198,7 +210,8 @@ module Openlayer
198
210
  # @param tags [Array<Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Tag>, nil] The rule tags associated with the rule.
199
211
 
200
212
  # Whether the rule is evaluated once for the whole workspace, or once per project
201
- # the rule's frameworks apply to.
213
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
214
+ # the rule is created.
202
215
  #
203
216
  # @see Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item#scope
204
217
  module Scope
@@ -212,7 +225,8 @@ module Openlayer
212
225
  end
213
226
 
214
227
  # `platform` rules are evaluated automatically from the state of your Openlayer
215
- # workspace. `evidence` rules are satisfied by attaching evidence.
228
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
229
+ # rule is created.
216
230
  #
217
231
  # @see Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item#type
218
232
  module Type
@@ -225,7 +239,8 @@ module Openlayer
225
239
  # @return [Array<Symbol>]
226
240
  end
227
241
 
228
- # The kind of evidence that satisfies the rule. `null` for platform rules.
242
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
243
+ # `null` for platform rules. Fixed once the rule is created.
229
244
  #
230
245
  # @see Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item#evidence_type
231
246
  module EvidenceType
@@ -329,13 +344,15 @@ module Openlayer
329
344
 
330
345
  class Result < Openlayer::Internal::Type::BaseModel
331
346
  # @!attribute deactivated
332
- # Whether this result is excluded from compliance calculations.
347
+ # Whether this result is excluded from compliance calculations. Excludes just this
348
+ # result, without deactivating the rule everywhere.
333
349
  #
334
350
  # @return [Boolean]
335
351
  required :deactivated, Openlayer::Internal::Type::Boolean
336
352
 
337
353
  # @!attribute status
338
- # The compliance status of the rule for this entity.
354
+ # The compliance status of the rule for this entity. Computed by Openlayer and
355
+ # can't be set directly.
339
356
  #
340
357
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Status]
341
358
  required :status,
@@ -363,7 +380,7 @@ module Openlayer
363
380
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Blocking] }
364
381
 
365
382
  # @!attribute deactivated_reason
366
- # Why the result was excluded.
383
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
367
384
  #
368
385
  # @return [String, nil]
369
386
  optional :deactivated_reason, String, api_name: :deactivatedReason, nil?: true
@@ -437,17 +454,24 @@ module Openlayer
437
454
  end
438
455
 
439
456
  # @!method initialize(id:, date_created:, date_updated:, deactivated:, rule_id:, status:, workspace_id:, assignee_id: nil, blocked_by: nil, blocking: nil, date_last_evaluated: nil, date_of_latest_evidence: nil, date_of_next_evaluation: nil, date_of_renewal: nil, deactivated_reason: nil, project_id: nil, status_message: nil)
457
+ # Some parameter documentations has been truncated, see
458
+ # {Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result}
459
+ # for more details.
460
+ #
461
+ # The compliance status of one rule for one entity: a project for project-scoped
462
+ # rules, or the workspace for workspace-scoped rules.
463
+ #
440
464
  # @param id [String] The rule result id.
441
465
  #
442
466
  # @param date_created [Time] The creation date.
443
467
  #
444
468
  # @param date_updated [Time] The last update date.
445
469
  #
446
- # @param deactivated [Boolean] Whether this result is excluded from compliance calculations.
470
+ # @param deactivated [Boolean] Whether this result is excluded from compliance calculations. Excludes just this
447
471
  #
448
472
  # @param rule_id [String] The rule this result belongs to.
449
473
  #
450
- # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Status] The compliance status of the rule for this entity.
474
+ # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
451
475
  #
452
476
  # @param workspace_id [String] The id of the workspace the rule result belongs to.
453
477
  #
@@ -465,13 +489,14 @@ module Openlayer
465
489
  #
466
490
  # @param date_of_renewal [Time, nil] When the evidence must be renewed. Evidence rules with a renewal cadence only.
467
491
  #
468
- # @param deactivated_reason [String, nil] Why the result was excluded.
492
+ # @param deactivated_reason [String, nil] Why the result was excluded. Required when setting `deactivated` to `true`.
469
493
  #
470
494
  # @param project_id [String, nil] The project this result was evaluated for. `null` for workspace-scoped rules.
471
495
  #
472
496
  # @param status_message [String, nil] A human-readable explanation of the status.
473
497
 
474
- # The compliance status of the rule for this entity.
498
+ # The compliance status of the rule for this entity. Computed by Openlayer and
499
+ # can't be set directly.
475
500
  #
476
501
  # @see Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result#status
477
502
  module Status
@@ -496,18 +521,24 @@ module Openlayer
496
521
  optional :id, String
497
522
 
498
523
  # @!attribute status
499
- # The compliance status of the rule for this entity.
524
+ # The compliance status of the rule for this entity. Computed by Openlayer and
525
+ # can't be set directly.
500
526
  #
501
527
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::BlockedBy::Status, nil]
502
528
  optional :status,
503
529
  enum: -> { Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::BlockedBy::Status }
504
530
 
505
531
  # @!method initialize(id: nil, status: nil)
532
+ # Some parameter documentations has been truncated, see
533
+ # {Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::BlockedBy}
534
+ # for more details.
535
+ #
506
536
  # @param id [String]
507
537
  #
508
- # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::BlockedBy::Status] The compliance status of the rule for this entity.
538
+ # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
509
539
 
510
- # The compliance status of the rule for this entity.
540
+ # The compliance status of the rule for this entity. Computed by Openlayer and
541
+ # can't be set directly.
511
542
  #
512
543
  # @see Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::BlockedBy#status
513
544
  module Status
@@ -533,18 +564,24 @@ module Openlayer
533
564
  optional :id, String
534
565
 
535
566
  # @!attribute status
536
- # The compliance status of the rule for this entity.
567
+ # The compliance status of the rule for this entity. Computed by Openlayer and
568
+ # can't be set directly.
537
569
  #
538
570
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Blocking::Status, nil]
539
571
  optional :status,
540
572
  enum: -> { Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Blocking::Status }
541
573
 
542
574
  # @!method initialize(id: nil, status: nil)
575
+ # Some parameter documentations has been truncated, see
576
+ # {Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Blocking}
577
+ # for more details.
578
+ #
543
579
  # @param id [String]
544
580
  #
545
- # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Blocking::Status] The compliance status of the rule for this entity.
581
+ # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
546
582
 
547
- # The compliance status of the rule for this entity.
583
+ # The compliance status of the rule for this entity. Computed by Openlayer and
584
+ # can't be set directly.
548
585
  #
549
586
  # @see Openlayer::Models::Governance::Frameworks::SectionListRulesResponse::Item::Result::Blocking#status
550
587
  module Status
@@ -623,7 +660,7 @@ module Openlayer
623
660
  required :date_updated, Time, api_name: :dateUpdated
624
661
 
625
662
  # @!attribute immutable
626
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
663
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
627
664
  #
628
665
  # @return [Boolean]
629
666
  required :immutable, Openlayer::Internal::Type::Boolean
@@ -636,6 +673,9 @@ module Openlayer
636
673
  end
637
674
 
638
675
  # @!method initialize(id:, creator_id:, date_created:, date_updated:, immutable:, name:, workspace_id:, color: nil)
676
+ # A label that groups rules across frameworks, for example by team or control
677
+ # family.
678
+ #
639
679
  # @param id [String] The rule tag id.
640
680
  #
641
681
  # @param creator_id [String, nil] The user who created the tag. `null` for tags that ship with Openlayer.
@@ -644,7 +684,7 @@ module Openlayer
644
684
  #
645
685
  # @param date_updated [Time] The last update date.
646
686
  #
647
- # @param immutable [Boolean] Whether the tag is managed by Openlayer and cannot be edited or deleted.
687
+ # @param immutable [Boolean] Whether the tag is managed by Openlayer. These tags can't be deleted.
648
688
  #
649
689
  # @param name [String] The tag name.
650
690
  #
@@ -24,7 +24,8 @@ module Openlayer
24
24
 
25
25
  # @!attribute scope
26
26
  # Whether the rule is evaluated once for the whole workspace, or once per project
27
- # the rule's frameworks apply to.
27
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
28
+ # the rule is created.
28
29
  #
29
30
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Scope]
30
31
  required :scope,
@@ -32,7 +33,8 @@ module Openlayer
32
33
 
33
34
  # @!attribute type
34
35
  # `platform` rules are evaluated automatically from the state of your Openlayer
35
- # workspace. `evidence` rules are satisfied by attaching evidence.
36
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
37
+ # rule is created.
36
38
  #
37
39
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Type]
38
40
  required :type,
@@ -45,7 +47,8 @@ module Openlayer
45
47
  optional :assignee_id, String, api_name: :assigneeId, nil?: true
46
48
 
47
49
  # @!attribute automation_params
48
- # Configuration for the platform check, when the automation takes parameters.
50
+ # Configuration for the platform check, when the automation takes parameters. Omit
51
+ # or `null` for evidence rules. Fixed once the rule is created.
49
52
  #
50
53
  # @return [Hash{Symbol=>Object}, nil]
51
54
  optional :automation_params,
@@ -55,8 +58,9 @@ module Openlayer
55
58
 
56
59
  # @!attribute automation_type
57
60
  # Which workspace signal a platform rule checks, for example
58
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
59
- # evidence rules.
61
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
62
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
63
+ # created.
60
64
  #
61
65
  # @return [String, nil]
62
66
  optional :automation_type, String, api_name: :automationType, nil?: true
@@ -74,7 +78,8 @@ module Openlayer
74
78
  optional :description, String, nil?: true
75
79
 
76
80
  # @!attribute evidence_type
77
- # The kind of evidence that satisfies the rule. `null` for platform rules.
81
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
82
+ # `null` for platform rules. Fixed once the rule is created.
78
83
  #
79
84
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::EvidenceType, nil]
80
85
  optional :evidence_type,
@@ -84,7 +89,8 @@ module Openlayer
84
89
 
85
90
  # @!attribute renewal_cadence_days
86
91
  # How often evidence must be renewed, in days. Once evidence is older than this,
87
- # the rule result becomes `due_soon` and then `failing`.
92
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
93
+ # whenever evidence is attached. Omit or `null` for platform rules.
88
94
  #
89
95
  # @return [Integer, nil]
90
96
  optional :renewal_cadence_days, Integer, api_name: :renewalCadenceDays, nil?: true
@@ -122,7 +128,8 @@ module Openlayer
122
128
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Framework] }
123
129
 
124
130
  # @!attribute immutable
125
- # Whether the rule is managed by Openlayer and cannot be edited.
131
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
132
+ # deleted; set `deactivated` to exclude one from compliance instead.
126
133
  #
127
134
  # @return [Boolean, nil]
128
135
  optional :immutable, Openlayer::Internal::Type::Boolean
@@ -159,6 +166,11 @@ module Openlayer
159
166
  # {Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item}
160
167
  # for more details.
161
168
  #
169
+ # A single requirement Openlayer tracks. `platform` rules are evaluated
170
+ # automatically from the state of your workspace, and `evidence` rules are
171
+ # satisfied by attaching evidence. A rule can belong to several frameworks, or to
172
+ # none.
173
+ #
162
174
  # @param id [String] The rule id.
163
175
  #
164
176
  # @param date_created [Time] The creation date.
@@ -175,7 +187,7 @@ module Openlayer
175
187
  #
176
188
  # @param assignee_id [String, nil] The user responsible for satisfying the rule.
177
189
  #
178
- # @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters.
190
+ # @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters. Omit
179
191
  #
180
192
  # @param automation_type [String, nil] Which workspace signal a platform rule checks, for example `monitoring_mode_enab
181
193
  #
@@ -183,11 +195,11 @@ module Openlayer
183
195
  #
184
196
  # @param description [String, nil] What the rule requires.
185
197
  #
186
- # @param evidence_type [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::EvidenceType, nil] The kind of evidence that satisfies the rule. `null` for platform rules.
198
+ # @param evidence_type [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::EvidenceType, nil] The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
187
199
  #
188
200
  # @param frameworks [Array<Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Framework>] The frameworks that include this rule.
189
201
  #
190
- # @param immutable [Boolean] Whether the rule is managed by Openlayer and cannot be edited.
202
+ # @param immutable [Boolean] Whether the rule is managed by Openlayer. These rules can't be renamed or delete
191
203
  #
192
204
  # @param renewal_cadence_days [Integer, nil] How often evidence must be renewed, in days. Once evidence is older than this, t
193
205
  #
@@ -198,7 +210,8 @@ module Openlayer
198
210
  # @param tags [Array<Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Tag>, nil] The rule tags associated with the rule.
199
211
 
200
212
  # Whether the rule is evaluated once for the whole workspace, or once per project
201
- # the rule's frameworks apply to.
213
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
214
+ # the rule is created.
202
215
  #
203
216
  # @see Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item#scope
204
217
  module Scope
@@ -212,7 +225,8 @@ module Openlayer
212
225
  end
213
226
 
214
227
  # `platform` rules are evaluated automatically from the state of your Openlayer
215
- # workspace. `evidence` rules are satisfied by attaching evidence.
228
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
229
+ # rule is created.
216
230
  #
217
231
  # @see Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item#type
218
232
  module Type
@@ -225,7 +239,8 @@ module Openlayer
225
239
  # @return [Array<Symbol>]
226
240
  end
227
241
 
228
- # The kind of evidence that satisfies the rule. `null` for platform rules.
242
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
243
+ # `null` for platform rules. Fixed once the rule is created.
229
244
  #
230
245
  # @see Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item#evidence_type
231
246
  module EvidenceType
@@ -329,13 +344,15 @@ module Openlayer
329
344
 
330
345
  class Result < Openlayer::Internal::Type::BaseModel
331
346
  # @!attribute deactivated
332
- # Whether this result is excluded from compliance calculations.
347
+ # Whether this result is excluded from compliance calculations. Excludes just this
348
+ # result, without deactivating the rule everywhere.
333
349
  #
334
350
  # @return [Boolean]
335
351
  required :deactivated, Openlayer::Internal::Type::Boolean
336
352
 
337
353
  # @!attribute status
338
- # The compliance status of the rule for this entity.
354
+ # The compliance status of the rule for this entity. Computed by Openlayer and
355
+ # can't be set directly.
339
356
  #
340
357
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Status]
341
358
  required :status,
@@ -363,7 +380,7 @@ module Openlayer
363
380
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Blocking] }
364
381
 
365
382
  # @!attribute deactivated_reason
366
- # Why the result was excluded.
383
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
367
384
  #
368
385
  # @return [String, nil]
369
386
  optional :deactivated_reason, String, api_name: :deactivatedReason, nil?: true
@@ -437,17 +454,24 @@ module Openlayer
437
454
  end
438
455
 
439
456
  # @!method initialize(id:, date_created:, date_updated:, deactivated:, rule_id:, status:, workspace_id:, assignee_id: nil, blocked_by: nil, blocking: nil, date_last_evaluated: nil, date_of_latest_evidence: nil, date_of_next_evaluation: nil, date_of_renewal: nil, deactivated_reason: nil, project_id: nil, status_message: nil)
457
+ # Some parameter documentations has been truncated, see
458
+ # {Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result}
459
+ # for more details.
460
+ #
461
+ # The compliance status of one rule for one entity: a project for project-scoped
462
+ # rules, or the workspace for workspace-scoped rules.
463
+ #
440
464
  # @param id [String] The rule result id.
441
465
  #
442
466
  # @param date_created [Time] The creation date.
443
467
  #
444
468
  # @param date_updated [Time] The last update date.
445
469
  #
446
- # @param deactivated [Boolean] Whether this result is excluded from compliance calculations.
470
+ # @param deactivated [Boolean] Whether this result is excluded from compliance calculations. Excludes just this
447
471
  #
448
472
  # @param rule_id [String] The rule this result belongs to.
449
473
  #
450
- # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Status] The compliance status of the rule for this entity.
474
+ # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
451
475
  #
452
476
  # @param workspace_id [String] The id of the workspace the rule result belongs to.
453
477
  #
@@ -465,13 +489,14 @@ module Openlayer
465
489
  #
466
490
  # @param date_of_renewal [Time, nil] When the evidence must be renewed. Evidence rules with a renewal cadence only.
467
491
  #
468
- # @param deactivated_reason [String, nil] Why the result was excluded.
492
+ # @param deactivated_reason [String, nil] Why the result was excluded. Required when setting `deactivated` to `true`.
469
493
  #
470
494
  # @param project_id [String, nil] The project this result was evaluated for. `null` for workspace-scoped rules.
471
495
  #
472
496
  # @param status_message [String, nil] A human-readable explanation of the status.
473
497
 
474
- # The compliance status of the rule for this entity.
498
+ # The compliance status of the rule for this entity. Computed by Openlayer and
499
+ # can't be set directly.
475
500
  #
476
501
  # @see Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result#status
477
502
  module Status
@@ -496,18 +521,24 @@ module Openlayer
496
521
  optional :id, String
497
522
 
498
523
  # @!attribute status
499
- # The compliance status of the rule for this entity.
524
+ # The compliance status of the rule for this entity. Computed by Openlayer and
525
+ # can't be set directly.
500
526
  #
501
527
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::BlockedBy::Status, nil]
502
528
  optional :status,
503
529
  enum: -> { Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::BlockedBy::Status }
504
530
 
505
531
  # @!method initialize(id: nil, status: nil)
532
+ # Some parameter documentations has been truncated, see
533
+ # {Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::BlockedBy}
534
+ # for more details.
535
+ #
506
536
  # @param id [String]
507
537
  #
508
- # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::BlockedBy::Status] The compliance status of the rule for this entity.
538
+ # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
509
539
 
510
- # The compliance status of the rule for this entity.
540
+ # The compliance status of the rule for this entity. Computed by Openlayer and
541
+ # can't be set directly.
511
542
  #
512
543
  # @see Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::BlockedBy#status
513
544
  module Status
@@ -533,18 +564,24 @@ module Openlayer
533
564
  optional :id, String
534
565
 
535
566
  # @!attribute status
536
- # The compliance status of the rule for this entity.
567
+ # The compliance status of the rule for this entity. Computed by Openlayer and
568
+ # can't be set directly.
537
569
  #
538
570
  # @return [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Blocking::Status, nil]
539
571
  optional :status,
540
572
  enum: -> { Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Blocking::Status }
541
573
 
542
574
  # @!method initialize(id: nil, status: nil)
575
+ # Some parameter documentations has been truncated, see
576
+ # {Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Blocking}
577
+ # for more details.
578
+ #
543
579
  # @param id [String]
544
580
  #
545
- # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Blocking::Status] The compliance status of the rule for this entity.
581
+ # @param status [Symbol, Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
546
582
 
547
- # The compliance status of the rule for this entity.
583
+ # The compliance status of the rule for this entity. Computed by Openlayer and
584
+ # can't be set directly.
548
585
  #
549
586
  # @see Openlayer::Models::Governance::Frameworks::SubsectionListRulesResponse::Item::Result::Blocking#status
550
587
  module Status
@@ -623,7 +660,7 @@ module Openlayer
623
660
  required :date_updated, Time, api_name: :dateUpdated
624
661
 
625
662
  # @!attribute immutable
626
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
663
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
627
664
  #
628
665
  # @return [Boolean]
629
666
  required :immutable, Openlayer::Internal::Type::Boolean
@@ -636,6 +673,9 @@ module Openlayer
636
673
  end
637
674
 
638
675
  # @!method initialize(id:, creator_id:, date_created:, date_updated:, immutable:, name:, workspace_id:, color: nil)
676
+ # A label that groups rules across frameworks, for example by team or control
677
+ # family.
678
+ #
639
679
  # @param id [String] The rule tag id.
640
680
  #
641
681
  # @param creator_id [String, nil] The user who created the tag. `null` for tags that ship with Openlayer.
@@ -644,7 +684,7 @@ module Openlayer
644
684
  #
645
685
  # @param date_updated [Time] The last update date.
646
686
  #
647
- # @param immutable [Boolean] Whether the tag is managed by Openlayer and cannot be edited or deleted.
687
+ # @param immutable [Boolean] Whether the tag is managed by Openlayer. These tags can't be deleted.
648
688
  #
649
689
  # @param name [String] The tag name.
650
690
  #