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
@@ -23,14 +23,16 @@ module Openlayer
23
23
 
24
24
  # @!attribute scope
25
25
  # Whether the rule is evaluated once for the whole workspace, or once per project
26
- # the rule's frameworks apply to.
26
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
27
+ # the rule is created.
27
28
  #
28
29
  # @return [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Scope]
29
30
  required :scope, enum: -> { Openlayer::Models::Governance::RuleListResponse::Item::Scope }
30
31
 
31
32
  # @!attribute type
32
33
  # `platform` rules are evaluated automatically from the state of your Openlayer
33
- # workspace. `evidence` rules are satisfied by attaching evidence.
34
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
35
+ # rule is created.
34
36
  #
35
37
  # @return [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Type]
36
38
  required :type, enum: -> { Openlayer::Models::Governance::RuleListResponse::Item::Type }
@@ -42,7 +44,8 @@ module Openlayer
42
44
  optional :assignee_id, String, api_name: :assigneeId, nil?: true
43
45
 
44
46
  # @!attribute automation_params
45
- # Configuration for the platform check, when the automation takes parameters.
47
+ # Configuration for the platform check, when the automation takes parameters. Omit
48
+ # or `null` for evidence rules. Fixed once the rule is created.
46
49
  #
47
50
  # @return [Hash{Symbol=>Object}, nil]
48
51
  optional :automation_params,
@@ -52,8 +55,9 @@ module Openlayer
52
55
 
53
56
  # @!attribute automation_type
54
57
  # Which workspace signal a platform rule checks, for example
55
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
56
- # evidence rules.
58
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
59
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
60
+ # created.
57
61
  #
58
62
  # @return [String, nil]
59
63
  optional :automation_type, String, api_name: :automationType, nil?: true
@@ -71,7 +75,8 @@ module Openlayer
71
75
  optional :description, String, nil?: true
72
76
 
73
77
  # @!attribute evidence_type
74
- # The kind of evidence that satisfies the rule. `null` for platform rules.
78
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
79
+ # `null` for platform rules. Fixed once the rule is created.
75
80
  #
76
81
  # @return [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::EvidenceType, nil]
77
82
  optional :evidence_type,
@@ -81,7 +86,8 @@ module Openlayer
81
86
 
82
87
  # @!attribute renewal_cadence_days
83
88
  # How often evidence must be renewed, in days. Once evidence is older than this,
84
- # the rule result becomes `due_soon` and then `failing`.
89
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
90
+ # whenever evidence is attached. Omit or `null` for platform rules.
85
91
  #
86
92
  # @return [Integer, nil]
87
93
  optional :renewal_cadence_days, Integer, api_name: :renewalCadenceDays, nil?: true
@@ -119,7 +125,8 @@ module Openlayer
119
125
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleListResponse::Item::Framework] }
120
126
 
121
127
  # @!attribute immutable
122
- # Whether the rule is managed by Openlayer and cannot be edited.
128
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
129
+ # deleted; set `deactivated` to exclude one from compliance instead.
123
130
  #
124
131
  # @return [Boolean, nil]
125
132
  optional :immutable, Openlayer::Internal::Type::Boolean
@@ -155,6 +162,11 @@ module Openlayer
155
162
  # Some parameter documentations has been truncated, see
156
163
  # {Openlayer::Models::Governance::RuleListResponse::Item} for more details.
157
164
  #
165
+ # A single requirement Openlayer tracks. `platform` rules are evaluated
166
+ # automatically from the state of your workspace, and `evidence` rules are
167
+ # satisfied by attaching evidence. A rule can belong to several frameworks, or to
168
+ # none.
169
+ #
158
170
  # @param id [String] The rule id.
159
171
  #
160
172
  # @param date_created [Time] The creation date.
@@ -171,7 +183,7 @@ module Openlayer
171
183
  #
172
184
  # @param assignee_id [String, nil] The user responsible for satisfying the rule.
173
185
  #
174
- # @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters.
186
+ # @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters. Omit
175
187
  #
176
188
  # @param automation_type [String, nil] Which workspace signal a platform rule checks, for example `monitoring_mode_enab
177
189
  #
@@ -179,11 +191,11 @@ module Openlayer
179
191
  #
180
192
  # @param description [String, nil] What the rule requires.
181
193
  #
182
- # @param evidence_type [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::EvidenceType, nil] The kind of evidence that satisfies the rule. `null` for platform rules.
194
+ # @param evidence_type [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::EvidenceType, nil] The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
183
195
  #
184
196
  # @param frameworks [Array<Openlayer::Models::Governance::RuleListResponse::Item::Framework>] The frameworks that include this rule.
185
197
  #
186
- # @param immutable [Boolean] Whether the rule is managed by Openlayer and cannot be edited.
198
+ # @param immutable [Boolean] Whether the rule is managed by Openlayer. These rules can't be renamed or delete
187
199
  #
188
200
  # @param renewal_cadence_days [Integer, nil] How often evidence must be renewed, in days. Once evidence is older than this, t
189
201
  #
@@ -194,7 +206,8 @@ module Openlayer
194
206
  # @param tags [Array<Openlayer::Models::Governance::RuleListResponse::Item::Tag>, nil] The rule tags associated with the rule.
195
207
 
196
208
  # Whether the rule is evaluated once for the whole workspace, or once per project
197
- # the rule's frameworks apply to.
209
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
210
+ # the rule is created.
198
211
  #
199
212
  # @see Openlayer::Models::Governance::RuleListResponse::Item#scope
200
213
  module Scope
@@ -208,7 +221,8 @@ module Openlayer
208
221
  end
209
222
 
210
223
  # `platform` rules are evaluated automatically from the state of your Openlayer
211
- # workspace. `evidence` rules are satisfied by attaching evidence.
224
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
225
+ # rule is created.
212
226
  #
213
227
  # @see Openlayer::Models::Governance::RuleListResponse::Item#type
214
228
  module Type
@@ -221,7 +235,8 @@ module Openlayer
221
235
  # @return [Array<Symbol>]
222
236
  end
223
237
 
224
- # The kind of evidence that satisfies the rule. `null` for platform rules.
238
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
239
+ # `null` for platform rules. Fixed once the rule is created.
225
240
  #
226
241
  # @see Openlayer::Models::Governance::RuleListResponse::Item#evidence_type
227
242
  module EvidenceType
@@ -325,13 +340,15 @@ module Openlayer
325
340
 
326
341
  class Result < Openlayer::Internal::Type::BaseModel
327
342
  # @!attribute deactivated
328
- # Whether this result is excluded from compliance calculations.
343
+ # Whether this result is excluded from compliance calculations. Excludes just this
344
+ # result, without deactivating the rule everywhere.
329
345
  #
330
346
  # @return [Boolean]
331
347
  required :deactivated, Openlayer::Internal::Type::Boolean
332
348
 
333
349
  # @!attribute status
334
- # 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.
335
352
  #
336
353
  # @return [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Result::Status]
337
354
  required :status, enum: -> { Openlayer::Models::Governance::RuleListResponse::Item::Result::Status }
@@ -358,7 +375,7 @@ module Openlayer
358
375
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleListResponse::Item::Result::Blocking] }
359
376
 
360
377
  # @!attribute deactivated_reason
361
- # Why the result was excluded.
378
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
362
379
  #
363
380
  # @return [String, nil]
364
381
  optional :deactivated_reason, String, api_name: :deactivatedReason, nil?: true
@@ -432,17 +449,24 @@ module Openlayer
432
449
  end
433
450
 
434
451
  # @!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)
452
+ # Some parameter documentations has been truncated, see
453
+ # {Openlayer::Models::Governance::RuleListResponse::Item::Result} for more
454
+ # details.
455
+ #
456
+ # The compliance status of one rule for one entity: a project for project-scoped
457
+ # rules, or the workspace for workspace-scoped rules.
458
+ #
435
459
  # @param id [String] The rule result id.
436
460
  #
437
461
  # @param date_created [Time] The creation date.
438
462
  #
439
463
  # @param date_updated [Time] The last update date.
440
464
  #
441
- # @param deactivated [Boolean] Whether this result is excluded from compliance calculations.
465
+ # @param deactivated [Boolean] Whether this result is excluded from compliance calculations. Excludes just this
442
466
  #
443
467
  # @param rule_id [String] The rule this result belongs to.
444
468
  #
445
- # @param status [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Result::Status] The compliance status of the rule for this entity.
469
+ # @param status [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Result::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
446
470
  #
447
471
  # @param workspace_id [String] The id of the workspace the rule result belongs to.
448
472
  #
@@ -460,13 +484,14 @@ module Openlayer
460
484
  #
461
485
  # @param date_of_renewal [Time, nil] When the evidence must be renewed. Evidence rules with a renewal cadence only.
462
486
  #
463
- # @param deactivated_reason [String, nil] Why the result was excluded.
487
+ # @param deactivated_reason [String, nil] Why the result was excluded. Required when setting `deactivated` to `true`.
464
488
  #
465
489
  # @param project_id [String, nil] The project this result was evaluated for. `null` for workspace-scoped rules.
466
490
  #
467
491
  # @param status_message [String, nil] A human-readable explanation of the status.
468
492
 
469
- # The compliance status of the rule for this entity.
493
+ # The compliance status of the rule for this entity. Computed by Openlayer and
494
+ # can't be set directly.
470
495
  #
471
496
  # @see Openlayer::Models::Governance::RuleListResponse::Item::Result#status
472
497
  module Status
@@ -491,18 +516,24 @@ module Openlayer
491
516
  optional :id, String
492
517
 
493
518
  # @!attribute status
494
- # The compliance status of the rule for this entity.
519
+ # The compliance status of the rule for this entity. Computed by Openlayer and
520
+ # can't be set directly.
495
521
  #
496
522
  # @return [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Result::BlockedBy::Status, nil]
497
523
  optional :status,
498
524
  enum: -> { Openlayer::Models::Governance::RuleListResponse::Item::Result::BlockedBy::Status }
499
525
 
500
526
  # @!method initialize(id: nil, status: nil)
527
+ # Some parameter documentations has been truncated, see
528
+ # {Openlayer::Models::Governance::RuleListResponse::Item::Result::BlockedBy} for
529
+ # more details.
530
+ #
501
531
  # @param id [String]
502
532
  #
503
- # @param status [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Result::BlockedBy::Status] The compliance status of the rule for this entity.
533
+ # @param status [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Result::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
504
534
 
505
- # The compliance status of the rule for this entity.
535
+ # The compliance status of the rule for this entity. Computed by Openlayer and
536
+ # can't be set directly.
506
537
  #
507
538
  # @see Openlayer::Models::Governance::RuleListResponse::Item::Result::BlockedBy#status
508
539
  module Status
@@ -528,18 +559,24 @@ module Openlayer
528
559
  optional :id, String
529
560
 
530
561
  # @!attribute status
531
- # The compliance status of the rule for this entity.
562
+ # The compliance status of the rule for this entity. Computed by Openlayer and
563
+ # can't be set directly.
532
564
  #
533
565
  # @return [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Result::Blocking::Status, nil]
534
566
  optional :status,
535
567
  enum: -> { Openlayer::Models::Governance::RuleListResponse::Item::Result::Blocking::Status }
536
568
 
537
569
  # @!method initialize(id: nil, status: nil)
570
+ # Some parameter documentations has been truncated, see
571
+ # {Openlayer::Models::Governance::RuleListResponse::Item::Result::Blocking} for
572
+ # more details.
573
+ #
538
574
  # @param id [String]
539
575
  #
540
- # @param status [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Result::Blocking::Status] The compliance status of the rule for this entity.
576
+ # @param status [Symbol, Openlayer::Models::Governance::RuleListResponse::Item::Result::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
541
577
 
542
- # The compliance status of the rule for this entity.
578
+ # The compliance status of the rule for this entity. Computed by Openlayer and
579
+ # can't be set directly.
543
580
  #
544
581
  # @see Openlayer::Models::Governance::RuleListResponse::Item::Result::Blocking#status
545
582
  module Status
@@ -618,7 +655,7 @@ module Openlayer
618
655
  required :date_updated, Time, api_name: :dateUpdated
619
656
 
620
657
  # @!attribute immutable
621
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
658
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
622
659
  #
623
660
  # @return [Boolean]
624
661
  required :immutable, Openlayer::Internal::Type::Boolean
@@ -631,6 +668,9 @@ module Openlayer
631
668
  end
632
669
 
633
670
  # @!method initialize(id:, creator_id:, date_created:, date_updated:, immutable:, name:, workspace_id:, color: nil)
671
+ # A label that groups rules across frameworks, for example by team or control
672
+ # family.
673
+ #
634
674
  # @param id [String] The rule tag id.
635
675
  #
636
676
  # @param creator_id [String, nil] The user who created the tag. `null` for tags that ship with Openlayer.
@@ -639,7 +679,7 @@ module Openlayer
639
679
  #
640
680
  # @param date_updated [Time] The last update date.
641
681
  #
642
- # @param immutable [Boolean] Whether the tag is managed by Openlayer and cannot be edited or deleted.
682
+ # @param immutable [Boolean] Whether the tag is managed by Openlayer. These tags can't be deleted.
643
683
  #
644
684
  # @param name [String] The tag name.
645
685
  #
@@ -27,7 +27,8 @@ module Openlayer
27
27
 
28
28
  # @!attribute storage_uri
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
  #
32
33
  # @return [String, nil]
33
34
  optional :storage_uri, String, api_name: :storageUri, nil?: true
@@ -19,7 +19,8 @@ module Openlayer
19
19
 
20
20
  # @!attribute storage_uri
21
21
  # Where the uploaded file is stored. Set when the rule's `evidenceType` is
22
- # `document`.
22
+ # `document`. Upload the file first with `POST /storage/presigned-url` and send
23
+ # the storage URI it returns.
23
24
  #
24
25
  # @return [String, nil]
25
26
  optional :storage_uri, String, api_name: :storageUri, nil?: true
@@ -67,6 +68,10 @@ module Openlayer
67
68
  # {Openlayer::Models::Governance::RuleResultCreateEvidenceResponse} for more
68
69
  # details.
69
70
  #
71
+ # Evidence attached to a rule result to satisfy an evidence rule. Which field
72
+ # holds it depends on the rule's `evidenceType`: `storageUri` for a document,
73
+ # `text` for a written statement, or `url` for a link.
74
+ #
70
75
  # @param id [String] The evidence id.
71
76
  #
72
77
  # @param creator_id [String, nil] The user who attached the evidence.
@@ -29,7 +29,8 @@ module Openlayer
29
29
 
30
30
  # @!attribute storage_uri
31
31
  # Where the uploaded file is stored. Set when the rule's `evidenceType` is
32
- # `document`.
32
+ # `document`. Upload the file first with `POST /storage/presigned-url` and send
33
+ # the storage URI it returns.
33
34
  #
34
35
  # @return [String, nil]
35
36
  optional :storage_uri, String, api_name: :storageUri, nil?: true
@@ -77,6 +78,10 @@ module Openlayer
77
78
  # {Openlayer::Models::Governance::RuleResultListEvidenceResponse::Item} for more
78
79
  # details.
79
80
  #
81
+ # Evidence attached to a rule result to satisfy an evidence rule. Which field
82
+ # holds it depends on the rule's `evidenceType`: `storageUri` for a document,
83
+ # `text` for a written statement, or `url` for a link.
84
+ #
80
85
  # @param id [String] The evidence id.
81
86
  #
82
87
  # @param creator_id [String, nil] The user who attached the evidence.
@@ -16,13 +16,15 @@ module Openlayer
16
16
 
17
17
  class Item < Openlayer::Internal::Type::BaseModel
18
18
  # @!attribute deactivated
19
- # Whether this result is excluded from compliance calculations.
19
+ # Whether this result is excluded from compliance calculations. Excludes just this
20
+ # result, without deactivating the rule everywhere.
20
21
  #
21
22
  # @return [Boolean]
22
23
  required :deactivated, Openlayer::Internal::Type::Boolean
23
24
 
24
25
  # @!attribute status
25
- # The compliance status of the rule for this entity.
26
+ # The compliance status of the rule for this entity. Computed by Openlayer and
27
+ # can't be set directly.
26
28
  #
27
29
  # @return [Symbol, Openlayer::Models::Governance::RuleResultListResponse::Item::Status]
28
30
  required :status, enum: -> { Openlayer::Models::Governance::RuleResultListResponse::Item::Status }
@@ -49,7 +51,7 @@ module Openlayer
49
51
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleResultListResponse::Item::Blocking] }
50
52
 
51
53
  # @!attribute deactivated_reason
52
- # Why the result was excluded.
54
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
53
55
  #
54
56
  # @return [String, nil]
55
57
  optional :deactivated_reason, String, api_name: :deactivatedReason, nil?: true
@@ -123,17 +125,23 @@ module Openlayer
123
125
  end
124
126
 
125
127
  # @!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)
128
+ # Some parameter documentations has been truncated, see
129
+ # {Openlayer::Models::Governance::RuleResultListResponse::Item} for more details.
130
+ #
131
+ # The compliance status of one rule for one entity: a project for project-scoped
132
+ # rules, or the workspace for workspace-scoped rules.
133
+ #
126
134
  # @param id [String] The rule result id.
127
135
  #
128
136
  # @param date_created [Time] The creation date.
129
137
  #
130
138
  # @param date_updated [Time] The last update date.
131
139
  #
132
- # @param deactivated [Boolean] Whether this result is excluded from compliance calculations.
140
+ # @param deactivated [Boolean] Whether this result is excluded from compliance calculations. Excludes just this
133
141
  #
134
142
  # @param rule_id [String] The rule this result belongs to.
135
143
  #
136
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultListResponse::Item::Status] The compliance status of the rule for this entity.
144
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultListResponse::Item::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
137
145
  #
138
146
  # @param workspace_id [String] The id of the workspace the rule result belongs to.
139
147
  #
@@ -151,13 +159,14 @@ module Openlayer
151
159
  #
152
160
  # @param date_of_renewal [Time, nil] When the evidence must be renewed. Evidence rules with a renewal cadence only.
153
161
  #
154
- # @param deactivated_reason [String, nil] Why the result was excluded.
162
+ # @param deactivated_reason [String, nil] Why the result was excluded. Required when setting `deactivated` to `true`.
155
163
  #
156
164
  # @param project_id [String, nil] The project this result was evaluated for. `null` for workspace-scoped rules.
157
165
  #
158
166
  # @param status_message [String, nil] A human-readable explanation of the status.
159
167
 
160
- # The compliance status of the rule for this entity.
168
+ # The compliance status of the rule for this entity. Computed by Openlayer and
169
+ # can't be set directly.
161
170
  #
162
171
  # @see Openlayer::Models::Governance::RuleResultListResponse::Item#status
163
172
  module Status
@@ -182,18 +191,24 @@ module Openlayer
182
191
  optional :id, String
183
192
 
184
193
  # @!attribute status
185
- # The compliance status of the rule for this entity.
194
+ # The compliance status of the rule for this entity. Computed by Openlayer and
195
+ # can't be set directly.
186
196
  #
187
197
  # @return [Symbol, Openlayer::Models::Governance::RuleResultListResponse::Item::BlockedBy::Status, nil]
188
198
  optional :status,
189
199
  enum: -> { Openlayer::Models::Governance::RuleResultListResponse::Item::BlockedBy::Status }
190
200
 
191
201
  # @!method initialize(id: nil, status: nil)
202
+ # Some parameter documentations has been truncated, see
203
+ # {Openlayer::Models::Governance::RuleResultListResponse::Item::BlockedBy} for
204
+ # more details.
205
+ #
192
206
  # @param id [String]
193
207
  #
194
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultListResponse::Item::BlockedBy::Status] The compliance status of the rule for this entity.
208
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultListResponse::Item::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
195
209
 
196
- # The compliance status of the rule for this entity.
210
+ # The compliance status of the rule for this entity. Computed by Openlayer and
211
+ # can't be set directly.
197
212
  #
198
213
  # @see Openlayer::Models::Governance::RuleResultListResponse::Item::BlockedBy#status
199
214
  module Status
@@ -219,18 +234,24 @@ module Openlayer
219
234
  optional :id, String
220
235
 
221
236
  # @!attribute status
222
- # The compliance status of the rule for this entity.
237
+ # The compliance status of the rule for this entity. Computed by Openlayer and
238
+ # can't be set directly.
223
239
  #
224
240
  # @return [Symbol, Openlayer::Models::Governance::RuleResultListResponse::Item::Blocking::Status, nil]
225
241
  optional :status,
226
242
  enum: -> { Openlayer::Models::Governance::RuleResultListResponse::Item::Blocking::Status }
227
243
 
228
244
  # @!method initialize(id: nil, status: nil)
245
+ # Some parameter documentations has been truncated, see
246
+ # {Openlayer::Models::Governance::RuleResultListResponse::Item::Blocking} for more
247
+ # details.
248
+ #
229
249
  # @param id [String]
230
250
  #
231
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultListResponse::Item::Blocking::Status] The compliance status of the rule for this entity.
251
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultListResponse::Item::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
232
252
 
233
- # The compliance status of the rule for this entity.
253
+ # The compliance status of the rule for this entity. Computed by Openlayer and
254
+ # can't be set directly.
234
255
  #
235
256
  # @see Openlayer::Models::Governance::RuleResultListResponse::Item::Blocking#status
236
257
  module Status
@@ -6,13 +6,15 @@ module Openlayer
6
6
  # @see Openlayer::Resources::Governance::RuleResults#retrieve
7
7
  class RuleResultRetrieveResponse < Openlayer::Internal::Type::BaseModel
8
8
  # @!attribute deactivated
9
- # Whether this result is excluded from compliance calculations.
9
+ # Whether this result is excluded from compliance calculations. Excludes just this
10
+ # result, without deactivating the rule everywhere.
10
11
  #
11
12
  # @return [Boolean]
12
13
  required :deactivated, Openlayer::Internal::Type::Boolean
13
14
 
14
15
  # @!attribute status
15
- # The compliance status of the rule for this entity.
16
+ # The compliance status of the rule for this entity. Computed by Openlayer and
17
+ # can't be set directly.
16
18
  #
17
19
  # @return [Symbol, Openlayer::Models::Governance::RuleResultRetrieveResponse::Status]
18
20
  required :status, enum: -> { Openlayer::Models::Governance::RuleResultRetrieveResponse::Status }
@@ -39,7 +41,7 @@ module Openlayer
39
41
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleResultRetrieveResponse::Blocking] }
40
42
 
41
43
  # @!attribute deactivated_reason
42
- # Why the result was excluded.
44
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
43
45
  #
44
46
  # @return [String, nil]
45
47
  optional :deactivated_reason, String, api_name: :deactivatedReason, nil?: true
@@ -113,17 +115,23 @@ module Openlayer
113
115
  end
114
116
 
115
117
  # @!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)
118
+ # Some parameter documentations has been truncated, see
119
+ # {Openlayer::Models::Governance::RuleResultRetrieveResponse} for more details.
120
+ #
121
+ # The compliance status of one rule for one entity: a project for project-scoped
122
+ # rules, or the workspace for workspace-scoped rules.
123
+ #
116
124
  # @param id [String] The rule result id.
117
125
  #
118
126
  # @param date_created [Time] The creation date.
119
127
  #
120
128
  # @param date_updated [Time] The last update date.
121
129
  #
122
- # @param deactivated [Boolean] Whether this result is excluded from compliance calculations.
130
+ # @param deactivated [Boolean] Whether this result is excluded from compliance calculations. Excludes just this
123
131
  #
124
132
  # @param rule_id [String] The rule this result belongs to.
125
133
  #
126
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultRetrieveResponse::Status] The compliance status of the rule for this entity.
134
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultRetrieveResponse::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
127
135
  #
128
136
  # @param workspace_id [String] The id of the workspace the rule result belongs to.
129
137
  #
@@ -141,13 +149,14 @@ module Openlayer
141
149
  #
142
150
  # @param date_of_renewal [Time, nil] When the evidence must be renewed. Evidence rules with a renewal cadence only.
143
151
  #
144
- # @param deactivated_reason [String, nil] Why the result was excluded.
152
+ # @param deactivated_reason [String, nil] Why the result was excluded. Required when setting `deactivated` to `true`.
145
153
  #
146
154
  # @param project_id [String, nil] The project this result was evaluated for. `null` for workspace-scoped rules.
147
155
  #
148
156
  # @param status_message [String, nil] A human-readable explanation of the status.
149
157
 
150
- # The compliance status of the rule for this entity.
158
+ # The compliance status of the rule for this entity. Computed by Openlayer and
159
+ # can't be set directly.
151
160
  #
152
161
  # @see Openlayer::Models::Governance::RuleResultRetrieveResponse#status
153
162
  module Status
@@ -172,18 +181,24 @@ module Openlayer
172
181
  optional :id, String
173
182
 
174
183
  # @!attribute status
175
- # The compliance status of the rule for this entity.
184
+ # The compliance status of the rule for this entity. Computed by Openlayer and
185
+ # can't be set directly.
176
186
  #
177
187
  # @return [Symbol, Openlayer::Models::Governance::RuleResultRetrieveResponse::BlockedBy::Status, nil]
178
188
  optional :status,
179
189
  enum: -> { Openlayer::Models::Governance::RuleResultRetrieveResponse::BlockedBy::Status }
180
190
 
181
191
  # @!method initialize(id: nil, status: nil)
192
+ # Some parameter documentations has been truncated, see
193
+ # {Openlayer::Models::Governance::RuleResultRetrieveResponse::BlockedBy} for more
194
+ # details.
195
+ #
182
196
  # @param id [String]
183
197
  #
184
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultRetrieveResponse::BlockedBy::Status] The compliance status of the rule for this entity.
198
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultRetrieveResponse::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
185
199
 
186
- # The compliance status of the rule for this entity.
200
+ # The compliance status of the rule for this entity. Computed by Openlayer and
201
+ # can't be set directly.
187
202
  #
188
203
  # @see Openlayer::Models::Governance::RuleResultRetrieveResponse::BlockedBy#status
189
204
  module Status
@@ -209,17 +224,23 @@ module Openlayer
209
224
  optional :id, String
210
225
 
211
226
  # @!attribute status
212
- # The compliance status of the rule for this entity.
227
+ # The compliance status of the rule for this entity. Computed by Openlayer and
228
+ # can't be set directly.
213
229
  #
214
230
  # @return [Symbol, Openlayer::Models::Governance::RuleResultRetrieveResponse::Blocking::Status, nil]
215
231
  optional :status, enum: -> { Openlayer::Models::Governance::RuleResultRetrieveResponse::Blocking::Status }
216
232
 
217
233
  # @!method initialize(id: nil, status: nil)
234
+ # Some parameter documentations has been truncated, see
235
+ # {Openlayer::Models::Governance::RuleResultRetrieveResponse::Blocking} for more
236
+ # details.
237
+ #
218
238
  # @param id [String]
219
239
  #
220
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultRetrieveResponse::Blocking::Status] The compliance status of the rule for this entity.
240
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultRetrieveResponse::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
221
241
 
222
- # The compliance status of the rule for this entity.
242
+ # The compliance status of the rule for this entity. Computed by Openlayer and
243
+ # can't be set directly.
223
244
  #
224
245
  # @see Openlayer::Models::Governance::RuleResultRetrieveResponse::Blocking#status
225
246
  module Status