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
@@ -37,18 +37,22 @@ module Openlayer
37
37
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Governance::RuleResultUpdateParams::Blocking] }
38
38
 
39
39
  # @!attribute deactivated
40
- # Whether this result is excluded from compliance calculations.
40
+ # Whether this result is excluded from compliance calculations. Excludes just this
41
+ # result, without deactivating the rule everywhere.
41
42
  #
42
43
  # @return [Boolean, nil]
43
44
  optional :deactivated, Openlayer::Internal::Type::Boolean
44
45
 
45
46
  # @!attribute deactivated_reason
46
- # Why the result was excluded.
47
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
47
48
  #
48
49
  # @return [String, nil]
49
50
  optional :deactivated_reason, String, api_name: :deactivatedReason, nil?: true
50
51
 
51
52
  # @!method initialize(rule_result_id:, assignee_id: nil, blocked_by: nil, blocking: nil, deactivated: nil, deactivated_reason: nil, request_options: {})
53
+ # Some parameter documentations has been truncated, see
54
+ # {Openlayer::Models::Governance::RuleResultUpdateParams} for more details.
55
+ #
52
56
  # @param rule_result_id [String]
53
57
  #
54
58
  # @param assignee_id [String, nil] The user responsible for this result.
@@ -57,9 +61,9 @@ module Openlayer
57
61
  #
58
62
  # @param blocking [Array<Openlayer::Models::Governance::RuleResultUpdateParams::Blocking>] Rule results that this one blocks.
59
63
  #
60
- # @param deactivated [Boolean] Whether this result is excluded from compliance calculations.
64
+ # @param deactivated [Boolean] Whether this result is excluded from compliance calculations. Excludes just this
61
65
  #
62
- # @param deactivated_reason [String, nil] Why the result was excluded.
66
+ # @param deactivated_reason [String, nil] Why the result was excluded. Required when setting `deactivated` to `true`.
63
67
  #
64
68
  # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
65
69
 
@@ -70,17 +74,23 @@ module Openlayer
70
74
  optional :id, String
71
75
 
72
76
  # @!attribute status
73
- # The compliance status of the rule for this entity.
77
+ # The compliance status of the rule for this entity. Computed by Openlayer and
78
+ # can't be set directly.
74
79
  #
75
80
  # @return [Symbol, Openlayer::Models::Governance::RuleResultUpdateParams::BlockedBy::Status, nil]
76
81
  optional :status, enum: -> { Openlayer::Governance::RuleResultUpdateParams::BlockedBy::Status }
77
82
 
78
83
  # @!method initialize(id: nil, status: nil)
84
+ # Some parameter documentations has been truncated, see
85
+ # {Openlayer::Models::Governance::RuleResultUpdateParams::BlockedBy} for more
86
+ # details.
87
+ #
79
88
  # @param id [String]
80
89
  #
81
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultUpdateParams::BlockedBy::Status] The compliance status of the rule for this entity.
90
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultUpdateParams::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
82
91
 
83
- # The compliance status of the rule for this entity.
92
+ # The compliance status of the rule for this entity. Computed by Openlayer and
93
+ # can't be set directly.
84
94
  #
85
95
  # @see Openlayer::Models::Governance::RuleResultUpdateParams::BlockedBy#status
86
96
  module Status
@@ -106,17 +116,23 @@ module Openlayer
106
116
  optional :id, String
107
117
 
108
118
  # @!attribute status
109
- # The compliance status of the rule for this entity.
119
+ # The compliance status of the rule for this entity. Computed by Openlayer and
120
+ # can't be set directly.
110
121
  #
111
122
  # @return [Symbol, Openlayer::Models::Governance::RuleResultUpdateParams::Blocking::Status, nil]
112
123
  optional :status, enum: -> { Openlayer::Governance::RuleResultUpdateParams::Blocking::Status }
113
124
 
114
125
  # @!method initialize(id: nil, status: nil)
126
+ # Some parameter documentations has been truncated, see
127
+ # {Openlayer::Models::Governance::RuleResultUpdateParams::Blocking} for more
128
+ # details.
129
+ #
115
130
  # @param id [String]
116
131
  #
117
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultUpdateParams::Blocking::Status] The compliance status of the rule for this entity.
132
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultUpdateParams::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
118
133
 
119
- # The compliance status of the rule for this entity.
134
+ # The compliance status of the rule for this entity. Computed by Openlayer and
135
+ # can't be set directly.
120
136
  #
121
137
  # @see Openlayer::Models::Governance::RuleResultUpdateParams::Blocking#status
122
138
  module Status
@@ -6,13 +6,15 @@ module Openlayer
6
6
  # @see Openlayer::Resources::Governance::RuleResults#update
7
7
  class RuleResultUpdateResponse < 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::RuleResultUpdateResponse::Status]
18
20
  required :status, enum: -> { Openlayer::Models::Governance::RuleResultUpdateResponse::Status }
@@ -39,7 +41,7 @@ module Openlayer
39
41
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleResultUpdateResponse::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::RuleResultUpdateResponse} 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::RuleResultUpdateResponse::Status] The compliance status of the rule for this entity.
134
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultUpdateResponse::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::RuleResultUpdateResponse#status
153
162
  module Status
@@ -172,17 +181,23 @@ 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::RuleResultUpdateResponse::BlockedBy::Status, nil]
178
188
  optional :status, enum: -> { Openlayer::Models::Governance::RuleResultUpdateResponse::BlockedBy::Status }
179
189
 
180
190
  # @!method initialize(id: nil, status: nil)
191
+ # Some parameter documentations has been truncated, see
192
+ # {Openlayer::Models::Governance::RuleResultUpdateResponse::BlockedBy} for more
193
+ # details.
194
+ #
181
195
  # @param id [String]
182
196
  #
183
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultUpdateResponse::BlockedBy::Status] The compliance status of the rule for this entity.
197
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultUpdateResponse::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
184
198
 
185
- # The compliance status of the rule for this entity.
199
+ # The compliance status of the rule for this entity. Computed by Openlayer and
200
+ # can't be set directly.
186
201
  #
187
202
  # @see Openlayer::Models::Governance::RuleResultUpdateResponse::BlockedBy#status
188
203
  module Status
@@ -208,17 +223,23 @@ module Openlayer
208
223
  optional :id, String
209
224
 
210
225
  # @!attribute status
211
- # The compliance status of the rule for this entity.
226
+ # The compliance status of the rule for this entity. Computed by Openlayer and
227
+ # can't be set directly.
212
228
  #
213
229
  # @return [Symbol, Openlayer::Models::Governance::RuleResultUpdateResponse::Blocking::Status, nil]
214
230
  optional :status, enum: -> { Openlayer::Models::Governance::RuleResultUpdateResponse::Blocking::Status }
215
231
 
216
232
  # @!method initialize(id: nil, status: nil)
233
+ # Some parameter documentations has been truncated, see
234
+ # {Openlayer::Models::Governance::RuleResultUpdateResponse::Blocking} for more
235
+ # details.
236
+ #
217
237
  # @param id [String]
218
238
  #
219
- # @param status [Symbol, Openlayer::Models::Governance::RuleResultUpdateResponse::Blocking::Status] The compliance status of the rule for this entity.
239
+ # @param status [Symbol, Openlayer::Models::Governance::RuleResultUpdateResponse::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
220
240
 
221
- # The compliance status of the rule for this entity.
241
+ # The compliance status of the rule for this entity. Computed by Openlayer and
242
+ # can't be set directly.
222
243
  #
223
244
  # @see Openlayer::Models::Governance::RuleResultUpdateResponse::Blocking#status
224
245
  module Status
@@ -13,14 +13,16 @@ module Openlayer
13
13
 
14
14
  # @!attribute scope
15
15
  # Whether the rule is evaluated once for the whole workspace, or once per project
16
- # the rule's frameworks apply to.
16
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
17
+ # the rule is created.
17
18
  #
18
19
  # @return [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Scope]
19
20
  required :scope, enum: -> { Openlayer::Models::Governance::RuleRetrieveResponse::Scope }
20
21
 
21
22
  # @!attribute type
22
23
  # `platform` rules are evaluated automatically from the state of your Openlayer
23
- # workspace. `evidence` rules are satisfied by attaching evidence.
24
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
25
+ # rule is created.
24
26
  #
25
27
  # @return [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Type]
26
28
  required :type, enum: -> { Openlayer::Models::Governance::RuleRetrieveResponse::Type }
@@ -32,7 +34,8 @@ module Openlayer
32
34
  optional :assignee_id, String, api_name: :assigneeId, nil?: true
33
35
 
34
36
  # @!attribute automation_params
35
- # Configuration for the platform check, when the automation takes parameters.
37
+ # Configuration for the platform check, when the automation takes parameters. Omit
38
+ # or `null` for evidence rules. Fixed once the rule is created.
36
39
  #
37
40
  # @return [Hash{Symbol=>Object}, nil]
38
41
  optional :automation_params,
@@ -42,8 +45,9 @@ module Openlayer
42
45
 
43
46
  # @!attribute automation_type
44
47
  # Which workspace signal a platform rule checks, for example
45
- # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. `null` for
46
- # evidence rules.
48
+ # `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
49
+ # platform rules; omit or `null` for evidence rules. Fixed once the rule is
50
+ # created.
47
51
  #
48
52
  # @return [String, nil]
49
53
  optional :automation_type, String, api_name: :automationType, nil?: true
@@ -61,7 +65,8 @@ module Openlayer
61
65
  optional :description, String, nil?: true
62
66
 
63
67
  # @!attribute evidence_type
64
- # The kind of evidence that satisfies the rule. `null` for platform rules.
68
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
69
+ # `null` for platform rules. Fixed once the rule is created.
65
70
  #
66
71
  # @return [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::EvidenceType, nil]
67
72
  optional :evidence_type,
@@ -71,7 +76,8 @@ module Openlayer
71
76
 
72
77
  # @!attribute renewal_cadence_days
73
78
  # How often evidence must be renewed, in days. Once evidence is older than this,
74
- # the rule result becomes `due_soon` and then `failing`.
79
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
80
+ # whenever evidence is attached. Omit or `null` for platform rules.
75
81
  #
76
82
  # @return [Integer, nil]
77
83
  optional :renewal_cadence_days, Integer, api_name: :renewalCadenceDays, nil?: true
@@ -109,7 +115,8 @@ module Openlayer
109
115
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleRetrieveResponse::Framework] }
110
116
 
111
117
  # @!attribute immutable
112
- # Whether the rule is managed by Openlayer and cannot be edited.
118
+ # Whether the rule is managed by Openlayer. These rules can't be renamed or
119
+ # deleted; set `deactivated` to exclude one from compliance instead.
113
120
  #
114
121
  # @return [Boolean, nil]
115
122
  optional :immutable, Openlayer::Internal::Type::Boolean
@@ -145,6 +152,11 @@ module Openlayer
145
152
  # Some parameter documentations has been truncated, see
146
153
  # {Openlayer::Models::Governance::RuleRetrieveResponse} for more details.
147
154
  #
155
+ # A single requirement Openlayer tracks. `platform` rules are evaluated
156
+ # automatically from the state of your workspace, and `evidence` rules are
157
+ # satisfied by attaching evidence. A rule can belong to several frameworks, or to
158
+ # none.
159
+ #
148
160
  # @param id [String] The rule id.
149
161
  #
150
162
  # @param date_created [Time] The creation date.
@@ -161,7 +173,7 @@ module Openlayer
161
173
  #
162
174
  # @param assignee_id [String, nil] The user responsible for satisfying the rule.
163
175
  #
164
- # @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters.
176
+ # @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters. Omit
165
177
  #
166
178
  # @param automation_type [String, nil] Which workspace signal a platform rule checks, for example `monitoring_mode_enab
167
179
  #
@@ -169,11 +181,11 @@ module Openlayer
169
181
  #
170
182
  # @param description [String, nil] What the rule requires.
171
183
  #
172
- # @param evidence_type [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::EvidenceType, nil] The kind of evidence that satisfies the rule. `null` for platform rules.
184
+ # @param evidence_type [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::EvidenceType, nil] The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
173
185
  #
174
186
  # @param frameworks [Array<Openlayer::Models::Governance::RuleRetrieveResponse::Framework>] The frameworks that include this rule.
175
187
  #
176
- # @param immutable [Boolean] Whether the rule is managed by Openlayer and cannot be edited.
188
+ # @param immutable [Boolean] Whether the rule is managed by Openlayer. These rules can't be renamed or delete
177
189
  #
178
190
  # @param renewal_cadence_days [Integer, nil] How often evidence must be renewed, in days. Once evidence is older than this, t
179
191
  #
@@ -184,7 +196,8 @@ module Openlayer
184
196
  # @param tags [Array<Openlayer::Models::Governance::RuleRetrieveResponse::Tag>, nil] The rule tags associated with the rule.
185
197
 
186
198
  # Whether the rule is evaluated once for the whole workspace, or once per project
187
- # the rule's frameworks apply to.
199
+ # the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
200
+ # the rule is created.
188
201
  #
189
202
  # @see Openlayer::Models::Governance::RuleRetrieveResponse#scope
190
203
  module Scope
@@ -198,7 +211,8 @@ module Openlayer
198
211
  end
199
212
 
200
213
  # `platform` rules are evaluated automatically from the state of your Openlayer
201
- # workspace. `evidence` rules are satisfied by attaching evidence.
214
+ # workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
215
+ # rule is created.
202
216
  #
203
217
  # @see Openlayer::Models::Governance::RuleRetrieveResponse#type
204
218
  module Type
@@ -211,7 +225,8 @@ module Openlayer
211
225
  # @return [Array<Symbol>]
212
226
  end
213
227
 
214
- # The kind of evidence that satisfies the rule. `null` for platform rules.
228
+ # The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
229
+ # `null` for platform rules. Fixed once the rule is created.
215
230
  #
216
231
  # @see Openlayer::Models::Governance::RuleRetrieveResponse#evidence_type
217
232
  module EvidenceType
@@ -314,13 +329,15 @@ module Openlayer
314
329
 
315
330
  class Result < Openlayer::Internal::Type::BaseModel
316
331
  # @!attribute deactivated
317
- # Whether this result is excluded from compliance calculations.
332
+ # Whether this result is excluded from compliance calculations. Excludes just this
333
+ # result, without deactivating the rule everywhere.
318
334
  #
319
335
  # @return [Boolean]
320
336
  required :deactivated, Openlayer::Internal::Type::Boolean
321
337
 
322
338
  # @!attribute status
323
- # The compliance status of the rule for this entity.
339
+ # The compliance status of the rule for this entity. Computed by Openlayer and
340
+ # can't be set directly.
324
341
  #
325
342
  # @return [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Result::Status]
326
343
  required :status, enum: -> { Openlayer::Models::Governance::RuleRetrieveResponse::Result::Status }
@@ -347,7 +364,7 @@ module Openlayer
347
364
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleRetrieveResponse::Result::Blocking] }
348
365
 
349
366
  # @!attribute deactivated_reason
350
- # Why the result was excluded.
367
+ # Why the result was excluded. Required when setting `deactivated` to `true`.
351
368
  #
352
369
  # @return [String, nil]
353
370
  optional :deactivated_reason, String, api_name: :deactivatedReason, nil?: true
@@ -421,17 +438,23 @@ module Openlayer
421
438
  end
422
439
 
423
440
  # @!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)
441
+ # Some parameter documentations has been truncated, see
442
+ # {Openlayer::Models::Governance::RuleRetrieveResponse::Result} for more details.
443
+ #
444
+ # The compliance status of one rule for one entity: a project for project-scoped
445
+ # rules, or the workspace for workspace-scoped rules.
446
+ #
424
447
  # @param id [String] The rule result id.
425
448
  #
426
449
  # @param date_created [Time] The creation date.
427
450
  #
428
451
  # @param date_updated [Time] The last update date.
429
452
  #
430
- # @param deactivated [Boolean] Whether this result is excluded from compliance calculations.
453
+ # @param deactivated [Boolean] Whether this result is excluded from compliance calculations. Excludes just this
431
454
  #
432
455
  # @param rule_id [String] The rule this result belongs to.
433
456
  #
434
- # @param status [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Result::Status] The compliance status of the rule for this entity.
457
+ # @param status [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Result::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
435
458
  #
436
459
  # @param workspace_id [String] The id of the workspace the rule result belongs to.
437
460
  #
@@ -449,13 +472,14 @@ module Openlayer
449
472
  #
450
473
  # @param date_of_renewal [Time, nil] When the evidence must be renewed. Evidence rules with a renewal cadence only.
451
474
  #
452
- # @param deactivated_reason [String, nil] Why the result was excluded.
475
+ # @param deactivated_reason [String, nil] Why the result was excluded. Required when setting `deactivated` to `true`.
453
476
  #
454
477
  # @param project_id [String, nil] The project this result was evaluated for. `null` for workspace-scoped rules.
455
478
  #
456
479
  # @param status_message [String, nil] A human-readable explanation of the status.
457
480
 
458
- # The compliance status of the rule for this entity.
481
+ # The compliance status of the rule for this entity. Computed by Openlayer and
482
+ # can't be set directly.
459
483
  #
460
484
  # @see Openlayer::Models::Governance::RuleRetrieveResponse::Result#status
461
485
  module Status
@@ -480,18 +504,24 @@ module Openlayer
480
504
  optional :id, String
481
505
 
482
506
  # @!attribute status
483
- # The compliance status of the rule for this entity.
507
+ # The compliance status of the rule for this entity. Computed by Openlayer and
508
+ # can't be set directly.
484
509
  #
485
510
  # @return [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Result::BlockedBy::Status, nil]
486
511
  optional :status,
487
512
  enum: -> { Openlayer::Models::Governance::RuleRetrieveResponse::Result::BlockedBy::Status }
488
513
 
489
514
  # @!method initialize(id: nil, status: nil)
515
+ # Some parameter documentations has been truncated, see
516
+ # {Openlayer::Models::Governance::RuleRetrieveResponse::Result::BlockedBy} for
517
+ # more details.
518
+ #
490
519
  # @param id [String]
491
520
  #
492
- # @param status [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Result::BlockedBy::Status] The compliance status of the rule for this entity.
521
+ # @param status [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Result::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
493
522
 
494
- # The compliance status of the rule for this entity.
523
+ # The compliance status of the rule for this entity. Computed by Openlayer and
524
+ # can't be set directly.
495
525
  #
496
526
  # @see Openlayer::Models::Governance::RuleRetrieveResponse::Result::BlockedBy#status
497
527
  module Status
@@ -517,18 +547,24 @@ module Openlayer
517
547
  optional :id, String
518
548
 
519
549
  # @!attribute status
520
- # The compliance status of the rule for this entity.
550
+ # The compliance status of the rule for this entity. Computed by Openlayer and
551
+ # can't be set directly.
521
552
  #
522
553
  # @return [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Result::Blocking::Status, nil]
523
554
  optional :status,
524
555
  enum: -> { Openlayer::Models::Governance::RuleRetrieveResponse::Result::Blocking::Status }
525
556
 
526
557
  # @!method initialize(id: nil, status: nil)
558
+ # Some parameter documentations has been truncated, see
559
+ # {Openlayer::Models::Governance::RuleRetrieveResponse::Result::Blocking} for more
560
+ # details.
561
+ #
527
562
  # @param id [String]
528
563
  #
529
- # @param status [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Result::Blocking::Status] The compliance status of the rule for this entity.
564
+ # @param status [Symbol, Openlayer::Models::Governance::RuleRetrieveResponse::Result::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
530
565
 
531
- # The compliance status of the rule for this entity.
566
+ # The compliance status of the rule for this entity. Computed by Openlayer and
567
+ # can't be set directly.
532
568
  #
533
569
  # @see Openlayer::Models::Governance::RuleRetrieveResponse::Result::Blocking#status
534
570
  module Status
@@ -607,7 +643,7 @@ module Openlayer
607
643
  required :date_updated, Time, api_name: :dateUpdated
608
644
 
609
645
  # @!attribute immutable
610
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
646
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
611
647
  #
612
648
  # @return [Boolean]
613
649
  required :immutable, Openlayer::Internal::Type::Boolean
@@ -620,6 +656,9 @@ module Openlayer
620
656
  end
621
657
 
622
658
  # @!method initialize(id:, creator_id:, date_created:, date_updated:, immutable:, name:, workspace_id:, color: nil)
659
+ # A label that groups rules across frameworks, for example by team or control
660
+ # family.
661
+ #
623
662
  # @param id [String] The rule tag id.
624
663
  #
625
664
  # @param creator_id [String, nil] The user who created the tag. `null` for tags that ship with Openlayer.
@@ -628,7 +667,7 @@ module Openlayer
628
667
  #
629
668
  # @param date_updated [Time] The last update date.
630
669
  #
631
- # @param immutable [Boolean] Whether the tag is managed by Openlayer and cannot be edited or deleted.
670
+ # @param immutable [Boolean] Whether the tag is managed by Openlayer. These tags can't be deleted.
632
671
  #
633
672
  # @param name [String] The tag name.
634
673
  #
@@ -24,6 +24,10 @@ module Openlayer
24
24
  # Some parameter documentations has been truncated, see
25
25
  # {Openlayer::Models::Governance::RuleStatRetrieveResponse} for more details.
26
26
  #
27
+ # Counts of rules and their results by status. Narrowed by the request's filters,
28
+ # so `frameworkId` gives one framework's compliance and `projectId` gives one
29
+ # project's.
30
+ #
27
31
  # @param rule_results [Openlayer::Models::Governance::RuleStatRetrieveResponse::RuleResults] Counts of rule results, after any filters in the request, with breakdowns by the
28
32
  #
29
33
  # @param rules [Openlayer::Models::Governance::RuleStatRetrieveResponse::Rules] Counts of the rules themselves, after any filters in the request.
@@ -53,7 +53,7 @@ module Openlayer
53
53
  required :date_updated, Time, api_name: :dateUpdated
54
54
 
55
55
  # @!attribute immutable
56
- # Whether the tag is managed by Openlayer and cannot be edited or deleted.
56
+ # Whether the tag is managed by Openlayer. These tags can't be deleted.
57
57
  #
58
58
  # @return [Boolean]
59
59
  required :immutable, Openlayer::Internal::Type::Boolean
@@ -66,6 +66,9 @@ module Openlayer
66
66
  end
67
67
 
68
68
  # @!method initialize(id:, creator_id:, date_created:, date_updated:, immutable:, name:, workspace_id:, color: nil)
69
+ # A label that groups rules across frameworks, for example by team or control
70
+ # family.
71
+ #
69
72
  # @param id [String] The rule tag id.
70
73
  #
71
74
  # @param creator_id [String, nil] The user who created the tag. `null` for tags that ship with Openlayer.
@@ -74,7 +77,7 @@ module Openlayer
74
77
  #
75
78
  # @param date_updated [Time] The last update date.
76
79
  #
77
- # @param immutable [Boolean] Whether the tag is managed by Openlayer and cannot be edited or deleted.
80
+ # @param immutable [Boolean] Whether the tag is managed by Openlayer. These tags can't be deleted.
78
81
  #
79
82
  # @param name [String] The tag name.
80
83
  #
@@ -39,7 +39,8 @@ module Openlayer
39
39
 
40
40
  # @!attribute renewal_cadence_days
41
41
  # How often evidence must be renewed, in days. Once evidence is older than this,
42
- # the rule result becomes `due_soon` and then `failing`.
42
+ # the rule result becomes `due_soon` and then `failing`. The window restarts
43
+ # whenever evidence is attached. Omit or `null` for platform rules.
43
44
  #
44
45
  # @return [Integer, nil]
45
46
  optional :renewal_cadence_days, Integer, api_name: :renewalCadenceDays, nil?: true