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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +1 -1
- data/lib/openlayer/models/background_task_retrieve_response.rb +4 -0
- data/lib/openlayer/models/governance/framework_create_response.rb +7 -2
- data/lib/openlayer/models/governance/framework_export_params.rb +7 -2
- data/lib/openlayer/models/governance/framework_list_project_rule_stats_response.rb +2 -0
- data/lib/openlayer/models/governance/framework_list_response.rb +7 -2
- data/lib/openlayer/models/governance/framework_list_rules_response.rb +69 -29
- data/lib/openlayer/models/governance/framework_retrieve_response.rb +7 -2
- data/lib/openlayer/models/governance/framework_update_response.rb +7 -2
- data/lib/openlayer/models/governance/frameworks/document_list_response.rb +54 -28
- data/lib/openlayer/models/governance/frameworks/document_retrieve_response.rb +54 -28
- data/lib/openlayer/models/governance/frameworks/section_list_rules_response.rb +69 -29
- data/lib/openlayer/models/governance/frameworks/subsection_list_rules_response.rb +69 -29
- data/lib/openlayer/models/governance/rule_create_params.rb +21 -12
- data/lib/openlayer/models/governance/rule_create_response.rb +68 -29
- data/lib/openlayer/models/governance/rule_list_response.rb +69 -29
- data/lib/openlayer/models/governance/rule_result_create_evidence_params.rb +2 -1
- data/lib/openlayer/models/governance/rule_result_create_evidence_response.rb +6 -1
- data/lib/openlayer/models/governance/rule_result_list_evidence_response.rb +6 -1
- data/lib/openlayer/models/governance/rule_result_list_response.rb +34 -13
- data/lib/openlayer/models/governance/rule_result_retrieve_response.rb +34 -13
- data/lib/openlayer/models/governance/rule_result_update_params.rb +26 -10
- data/lib/openlayer/models/governance/rule_result_update_response.rb +34 -13
- data/lib/openlayer/models/governance/rule_retrieve_response.rb +68 -29
- data/lib/openlayer/models/governance/rule_stat_retrieve_response.rb +4 -0
- data/lib/openlayer/models/governance/rule_tag_list_response.rb +5 -2
- data/lib/openlayer/models/governance/rule_update_params.rb +2 -1
- data/lib/openlayer/models/governance/rule_update_response.rb +68 -29
- data/lib/openlayer/models/inference_pipeline_retrieve_sessions_response.rb +3 -0
- data/lib/openlayer/models/inference_pipeline_retrieve_users_response.rb +3 -0
- data/lib/openlayer/models/storage/presigned_url_retrieve_params.rb +6 -2
- data/lib/openlayer/models/workspaces/api_key_create_params.rb +17 -1
- data/lib/openlayer/models/workspaces/api_key_create_response.rb +73 -3
- data/lib/openlayer/models/workspaces/api_key_delete_params.rb +28 -0
- data/lib/openlayer/models/workspaces/api_key_list_params.rb +22 -0
- data/lib/openlayer/models/workspaces/api_key_list_response.rb +134 -0
- data/lib/openlayer/models/workspaces/api_key_retrieve_params.rb +28 -0
- data/lib/openlayer/models/workspaces/api_key_retrieve_response.rb +131 -0
- data/lib/openlayer/models/workspaces/api_key_rotate_params.rb +56 -0
- data/lib/openlayer/models/workspaces/api_key_rotate_response.rb +131 -0
- data/lib/openlayer/models/workspaces/api_key_update_params.rb +38 -0
- data/lib/openlayer/models/workspaces/api_key_update_response.rb +131 -0
- data/lib/openlayer/resources/background_tasks.rb +1 -5
- data/lib/openlayer/resources/commits.rb +1 -1
- data/lib/openlayer/resources/governance/frameworks/documents.rb +1 -9
- data/lib/openlayer/resources/governance/frameworks/sections.rb +1 -5
- data/lib/openlayer/resources/governance/frameworks/subsections.rb +1 -5
- data/lib/openlayer/resources/governance/frameworks.rb +10 -62
- data/lib/openlayer/resources/governance/rule_results.rb +8 -33
- data/lib/openlayer/resources/governance/rule_stats.rb +1 -5
- data/lib/openlayer/resources/governance/rule_tags.rb +0 -4
- data/lib/openlayer/resources/governance/rules.rb +7 -38
- data/lib/openlayer/resources/inference_pipelines/rows.rb +4 -5
- data/lib/openlayer/resources/inference_pipelines.rb +5 -14
- data/lib/openlayer/resources/projects/tests.rb +3 -3
- data/lib/openlayer/resources/storage/presigned_url.rb +5 -11
- data/lib/openlayer/resources/tests.rb +1 -4
- data/lib/openlayer/resources/workspaces/api_keys.rb +146 -2
- data/lib/openlayer/resources/workspaces/invites.rb +1 -1
- data/lib/openlayer/resources/workspaces.rb +1 -1
- data/lib/openlayer/version.rb +1 -1
- data/lib/openlayer.rb +9 -0
- data/rbi/openlayer/models/background_task_retrieve_response.rbi +3 -0
- data/rbi/openlayer/models/governance/framework_create_response.rbi +7 -2
- data/rbi/openlayer/models/governance/framework_export_params.rbi +6 -2
- data/rbi/openlayer/models/governance/framework_list_project_rule_stats_response.rbi +1 -0
- data/rbi/openlayer/models/governance/framework_list_response.rbi +7 -2
- data/rbi/openlayer/models/governance/framework_list_rules_response.rbi +70 -34
- data/rbi/openlayer/models/governance/framework_retrieve_response.rbi +7 -2
- data/rbi/openlayer/models/governance/framework_update_response.rbi +7 -2
- data/rbi/openlayer/models/governance/frameworks/document_list_response.rbi +76 -38
- data/rbi/openlayer/models/governance/frameworks/document_retrieve_response.rbi +76 -38
- data/rbi/openlayer/models/governance/frameworks/section_list_rules_response.rbi +70 -34
- data/rbi/openlayer/models/governance/frameworks/subsection_list_rules_response.rbi +70 -34
- data/rbi/openlayer/models/governance/rule_create_params.rbi +32 -17
- data/rbi/openlayer/models/governance/rule_create_response.rbi +70 -34
- data/rbi/openlayer/models/governance/rule_list_response.rbi +70 -34
- data/rbi/openlayer/models/governance/rule_result_create_evidence_params.rbi +4 -2
- data/rbi/openlayer/models/governance/rule_result_create_evidence_response.rbi +7 -2
- data/rbi/openlayer/models/governance/rule_result_list_evidence_response.rbi +7 -2
- data/rbi/openlayer/models/governance/rule_result_list_response.rbi +26 -13
- data/rbi/openlayer/models/governance/rule_result_retrieve_response.rbi +26 -13
- data/rbi/openlayer/models/governance/rule_result_update_params.rbi +18 -10
- data/rbi/openlayer/models/governance/rule_result_update_response.rbi +26 -13
- data/rbi/openlayer/models/governance/rule_retrieve_response.rbi +70 -34
- data/rbi/openlayer/models/governance/rule_stat_retrieve_response.rbi +3 -0
- data/rbi/openlayer/models/governance/rule_tag_list_response.rbi +4 -2
- data/rbi/openlayer/models/governance/rule_update_params.rbi +4 -2
- data/rbi/openlayer/models/governance/rule_update_response.rbi +70 -34
- data/rbi/openlayer/models/inference_pipeline_retrieve_sessions_response.rbi +2 -0
- data/rbi/openlayer/models/inference_pipeline_retrieve_users_response.rbi +2 -0
- data/rbi/openlayer/models/storage/presigned_url_retrieve_params.rbi +4 -2
- data/rbi/openlayer/models/workspaces/api_key_create_params.rbi +18 -0
- data/rbi/openlayer/models/workspaces/api_key_create_response.rbi +117 -5
- data/rbi/openlayer/models/workspaces/api_key_delete_params.rbi +48 -0
- data/rbi/openlayer/models/workspaces/api_key_list_params.rbi +40 -0
- data/rbi/openlayer/models/workspaces/api_key_list_response.rbi +202 -0
- data/rbi/openlayer/models/workspaces/api_key_retrieve_params.rbi +48 -0
- data/rbi/openlayer/models/workspaces/api_key_retrieve_response.rbi +194 -0
- data/rbi/openlayer/models/workspaces/api_key_rotate_params.rbi +85 -0
- data/rbi/openlayer/models/workspaces/api_key_rotate_response.rbi +194 -0
- data/rbi/openlayer/models/workspaces/api_key_update_params.rbi +60 -0
- data/rbi/openlayer/models/workspaces/api_key_update_response.rbi +194 -0
- data/rbi/openlayer/resources/background_tasks.rbi +1 -5
- data/rbi/openlayer/resources/commits.rbi +1 -1
- data/rbi/openlayer/resources/governance/frameworks/documents.rbi +1 -9
- data/rbi/openlayer/resources/governance/frameworks/sections.rbi +1 -5
- data/rbi/openlayer/resources/governance/frameworks/subsections.rbi +1 -5
- data/rbi/openlayer/resources/governance/frameworks.rbi +10 -63
- data/rbi/openlayer/resources/governance/rule_results.rbi +9 -35
- data/rbi/openlayer/resources/governance/rule_stats.rbi +1 -5
- data/rbi/openlayer/resources/governance/rule_tags.rbi +0 -4
- data/rbi/openlayer/resources/governance/rules.rbi +20 -44
- data/rbi/openlayer/resources/inference_pipelines/rows.rbi +4 -5
- data/rbi/openlayer/resources/inference_pipelines.rbi +5 -14
- data/rbi/openlayer/resources/projects/tests.rbi +3 -3
- data/rbi/openlayer/resources/storage/presigned_url.rbi +4 -12
- data/rbi/openlayer/resources/tests.rbi +1 -4
- data/rbi/openlayer/resources/workspaces/api_keys.rbi +110 -1
- data/rbi/openlayer/resources/workspaces/invites.rbi +1 -1
- data/rbi/openlayer/resources/workspaces.rbi +1 -1
- data/sig/openlayer/models/workspaces/api_key_create_params.rbs +5 -1
- data/sig/openlayer/models/workspaces/api_key_create_response.rbs +42 -3
- data/sig/openlayer/models/workspaces/api_key_delete_params.rbs +30 -0
- data/sig/openlayer/models/workspaces/api_key_list_params.rbs +25 -0
- data/sig/openlayer/models/workspaces/api_key_list_response.rbs +91 -0
- data/sig/openlayer/models/workspaces/api_key_retrieve_params.rbs +30 -0
- data/sig/openlayer/models/workspaces/api_key_retrieve_response.rbs +86 -0
- data/sig/openlayer/models/workspaces/api_key_rotate_params.rbs +45 -0
- data/sig/openlayer/models/workspaces/api_key_rotate_response.rbs +86 -0
- data/sig/openlayer/models/workspaces/api_key_update_params.rbs +34 -0
- data/sig/openlayer/models/workspaces/api_key_update_response.rbs +86 -0
- data/sig/openlayer/resources/workspaces/api_keys.rbs +33 -0
- metadata +29 -2
|
@@ -62,14 +62,15 @@ module Openlayer
|
|
|
62
62
|
end
|
|
63
63
|
attr_writer :blocking
|
|
64
64
|
|
|
65
|
-
# Whether this result is excluded from compliance calculations.
|
|
65
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
66
|
+
# result, without deactivating the rule everywhere.
|
|
66
67
|
sig { returns(T.nilable(T::Boolean)) }
|
|
67
68
|
attr_reader :deactivated
|
|
68
69
|
|
|
69
70
|
sig { params(deactivated: T::Boolean).void }
|
|
70
71
|
attr_writer :deactivated
|
|
71
72
|
|
|
72
|
-
# Why the result was excluded.
|
|
73
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
73
74
|
sig { returns(T.nilable(String)) }
|
|
74
75
|
attr_accessor :deactivated_reason
|
|
75
76
|
|
|
@@ -98,9 +99,10 @@ module Openlayer
|
|
|
98
99
|
blocked_by: nil,
|
|
99
100
|
# Rule results that this one blocks.
|
|
100
101
|
blocking: nil,
|
|
101
|
-
# Whether this result is excluded from compliance calculations.
|
|
102
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
103
|
+
# result, without deactivating the rule everywhere.
|
|
102
104
|
deactivated: nil,
|
|
103
|
-
# Why the result was excluded.
|
|
105
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
104
106
|
deactivated_reason: nil,
|
|
105
107
|
request_options: {}
|
|
106
108
|
)
|
|
@@ -143,7 +145,8 @@ module Openlayer
|
|
|
143
145
|
sig { params(id: String).void }
|
|
144
146
|
attr_writer :id
|
|
145
147
|
|
|
146
|
-
# The compliance status of the rule for this entity.
|
|
148
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
149
|
+
# can't be set directly.
|
|
147
150
|
sig do
|
|
148
151
|
returns(
|
|
149
152
|
T.nilable(
|
|
@@ -170,7 +173,8 @@ module Openlayer
|
|
|
170
173
|
end
|
|
171
174
|
def self.new(
|
|
172
175
|
id: nil,
|
|
173
|
-
# The compliance status of the rule for this entity.
|
|
176
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
177
|
+
# can't be set directly.
|
|
174
178
|
status: nil
|
|
175
179
|
)
|
|
176
180
|
end
|
|
@@ -187,7 +191,8 @@ module Openlayer
|
|
|
187
191
|
def to_hash
|
|
188
192
|
end
|
|
189
193
|
|
|
190
|
-
# 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.
|
|
191
196
|
module Status
|
|
192
197
|
extend Openlayer::Internal::Type::Enum
|
|
193
198
|
|
|
@@ -263,7 +268,8 @@ module Openlayer
|
|
|
263
268
|
sig { params(id: String).void }
|
|
264
269
|
attr_writer :id
|
|
265
270
|
|
|
266
|
-
# The compliance status of the rule for this entity.
|
|
271
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
272
|
+
# can't be set directly.
|
|
267
273
|
sig do
|
|
268
274
|
returns(
|
|
269
275
|
T.nilable(
|
|
@@ -290,7 +296,8 @@ module Openlayer
|
|
|
290
296
|
end
|
|
291
297
|
def self.new(
|
|
292
298
|
id: nil,
|
|
293
|
-
# The compliance status of the rule for this entity.
|
|
299
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
300
|
+
# can't be set directly.
|
|
294
301
|
status: nil
|
|
295
302
|
)
|
|
296
303
|
end
|
|
@@ -307,7 +314,8 @@ module Openlayer
|
|
|
307
314
|
def to_hash
|
|
308
315
|
end
|
|
309
316
|
|
|
310
|
-
# The compliance status of the rule for this entity.
|
|
317
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
318
|
+
# can't be set directly.
|
|
311
319
|
module Status
|
|
312
320
|
extend Openlayer::Internal::Type::Enum
|
|
313
321
|
|
|
@@ -12,11 +12,13 @@ module Openlayer
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
# Whether this result is excluded from compliance calculations.
|
|
15
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
16
|
+
# result, without deactivating the rule everywhere.
|
|
16
17
|
sig { returns(T::Boolean) }
|
|
17
18
|
attr_accessor :deactivated
|
|
18
19
|
|
|
19
|
-
# The compliance status of the rule for this entity.
|
|
20
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
21
|
+
# can't be set directly.
|
|
20
22
|
sig do
|
|
21
23
|
returns(
|
|
22
24
|
Openlayer::Models::Governance::RuleResultUpdateResponse::Status::TaggedSymbol
|
|
@@ -72,7 +74,7 @@ module Openlayer
|
|
|
72
74
|
end
|
|
73
75
|
attr_writer :blocking
|
|
74
76
|
|
|
75
|
-
# Why the result was excluded.
|
|
77
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
76
78
|
sig { returns(T.nilable(String)) }
|
|
77
79
|
attr_accessor :deactivated_reason
|
|
78
80
|
|
|
@@ -120,6 +122,8 @@ module Openlayer
|
|
|
120
122
|
sig { returns(T.nilable(String)) }
|
|
121
123
|
attr_accessor :project_id
|
|
122
124
|
|
|
125
|
+
# The compliance status of one rule for one entity: a project for project-scoped
|
|
126
|
+
# rules, or the workspace for workspace-scoped rules.
|
|
123
127
|
sig do
|
|
124
128
|
params(
|
|
125
129
|
id: String,
|
|
@@ -155,11 +159,13 @@ module Openlayer
|
|
|
155
159
|
date_created:,
|
|
156
160
|
# The last update date.
|
|
157
161
|
date_updated:,
|
|
158
|
-
# Whether this result is excluded from compliance calculations.
|
|
162
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
163
|
+
# result, without deactivating the rule everywhere.
|
|
159
164
|
deactivated:,
|
|
160
165
|
# The rule this result belongs to.
|
|
161
166
|
rule_id:,
|
|
162
|
-
# The compliance status of the rule for this entity.
|
|
167
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
168
|
+
# can't be set directly.
|
|
163
169
|
status:,
|
|
164
170
|
# The id of the workspace the rule result belongs to.
|
|
165
171
|
workspace_id:,
|
|
@@ -177,7 +183,7 @@ module Openlayer
|
|
|
177
183
|
date_of_next_evaluation: nil,
|
|
178
184
|
# When the evidence must be renewed. Evidence rules with a renewal cadence only.
|
|
179
185
|
date_of_renewal: nil,
|
|
180
|
-
# Why the result was excluded.
|
|
186
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
181
187
|
deactivated_reason: nil,
|
|
182
188
|
# The project this result was evaluated for. `null` for workspace-scoped rules.
|
|
183
189
|
project_id: nil,
|
|
@@ -219,7 +225,8 @@ module Openlayer
|
|
|
219
225
|
def to_hash
|
|
220
226
|
end
|
|
221
227
|
|
|
222
|
-
# The compliance status of the rule for this entity.
|
|
228
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
229
|
+
# can't be set directly.
|
|
223
230
|
module Status
|
|
224
231
|
extend Openlayer::Internal::Type::Enum
|
|
225
232
|
|
|
@@ -294,7 +301,8 @@ module Openlayer
|
|
|
294
301
|
sig { params(id: String).void }
|
|
295
302
|
attr_writer :id
|
|
296
303
|
|
|
297
|
-
# The compliance status of the rule for this entity.
|
|
304
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
305
|
+
# can't be set directly.
|
|
298
306
|
sig do
|
|
299
307
|
returns(
|
|
300
308
|
T.nilable(
|
|
@@ -321,7 +329,8 @@ module Openlayer
|
|
|
321
329
|
end
|
|
322
330
|
def self.new(
|
|
323
331
|
id: nil,
|
|
324
|
-
# The compliance status of the rule for this entity.
|
|
332
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
333
|
+
# can't be set directly.
|
|
325
334
|
status: nil
|
|
326
335
|
)
|
|
327
336
|
end
|
|
@@ -338,7 +347,8 @@ module Openlayer
|
|
|
338
347
|
def to_hash
|
|
339
348
|
end
|
|
340
349
|
|
|
341
|
-
# The compliance status of the rule for this entity.
|
|
350
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
351
|
+
# can't be set directly.
|
|
342
352
|
module Status
|
|
343
353
|
extend Openlayer::Internal::Type::Enum
|
|
344
354
|
|
|
@@ -414,7 +424,8 @@ module Openlayer
|
|
|
414
424
|
sig { params(id: String).void }
|
|
415
425
|
attr_writer :id
|
|
416
426
|
|
|
417
|
-
# The compliance status of the rule for this entity.
|
|
427
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
428
|
+
# can't be set directly.
|
|
418
429
|
sig do
|
|
419
430
|
returns(
|
|
420
431
|
T.nilable(
|
|
@@ -441,7 +452,8 @@ module Openlayer
|
|
|
441
452
|
end
|
|
442
453
|
def self.new(
|
|
443
454
|
id: nil,
|
|
444
|
-
# The compliance status of the rule for this entity.
|
|
455
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
456
|
+
# can't be set directly.
|
|
445
457
|
status: nil
|
|
446
458
|
)
|
|
447
459
|
end
|
|
@@ -458,7 +470,8 @@ module Openlayer
|
|
|
458
470
|
def to_hash
|
|
459
471
|
end
|
|
460
472
|
|
|
461
|
-
# The compliance status of the rule for this entity.
|
|
473
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
474
|
+
# can't be set directly.
|
|
462
475
|
module Status
|
|
463
476
|
extend Openlayer::Internal::Type::Enum
|
|
464
477
|
|
|
@@ -17,7 +17,8 @@ module Openlayer
|
|
|
17
17
|
attr_accessor :name
|
|
18
18
|
|
|
19
19
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
20
|
-
# the rule's frameworks apply to.
|
|
20
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
21
|
+
# the rule is created.
|
|
21
22
|
sig do
|
|
22
23
|
returns(
|
|
23
24
|
Openlayer::Models::Governance::RuleRetrieveResponse::Scope::TaggedSymbol
|
|
@@ -26,7 +27,8 @@ module Openlayer
|
|
|
26
27
|
attr_accessor :scope
|
|
27
28
|
|
|
28
29
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
29
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
30
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
31
|
+
# rule is created.
|
|
30
32
|
sig do
|
|
31
33
|
returns(
|
|
32
34
|
Openlayer::Models::Governance::RuleRetrieveResponse::Type::TaggedSymbol
|
|
@@ -38,13 +40,15 @@ module Openlayer
|
|
|
38
40
|
sig { returns(T.nilable(String)) }
|
|
39
41
|
attr_accessor :assignee_id
|
|
40
42
|
|
|
41
|
-
# Configuration for the platform check, when the automation takes parameters.
|
|
43
|
+
# Configuration for the platform check, when the automation takes parameters. Omit
|
|
44
|
+
# or `null` for evidence rules. Fixed once the rule is created.
|
|
42
45
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
43
46
|
attr_accessor :automation_params
|
|
44
47
|
|
|
45
48
|
# Which workspace signal a platform rule checks, for example
|
|
46
|
-
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`.
|
|
47
|
-
# evidence rules.
|
|
49
|
+
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
|
|
50
|
+
# platform rules; omit or `null` for evidence rules. Fixed once the rule is
|
|
51
|
+
# created.
|
|
48
52
|
sig { returns(T.nilable(String)) }
|
|
49
53
|
attr_accessor :automation_type
|
|
50
54
|
|
|
@@ -59,7 +63,8 @@ module Openlayer
|
|
|
59
63
|
sig { returns(T.nilable(String)) }
|
|
60
64
|
attr_accessor :description
|
|
61
65
|
|
|
62
|
-
# The kind of evidence that satisfies the rule.
|
|
66
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
67
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
63
68
|
sig do
|
|
64
69
|
returns(
|
|
65
70
|
T.nilable(
|
|
@@ -70,7 +75,8 @@ module Openlayer
|
|
|
70
75
|
attr_accessor :evidence_type
|
|
71
76
|
|
|
72
77
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
73
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
78
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
79
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
74
80
|
sig { returns(T.nilable(Integer)) }
|
|
75
81
|
attr_accessor :renewal_cadence_days
|
|
76
82
|
|
|
@@ -112,7 +118,8 @@ module Openlayer
|
|
|
112
118
|
end
|
|
113
119
|
attr_writer :frameworks
|
|
114
120
|
|
|
115
|
-
# Whether the rule is managed by Openlayer
|
|
121
|
+
# Whether the rule is managed by Openlayer. These rules can't be renamed or
|
|
122
|
+
# deleted; set `deactivated` to exclude one from compliance instead.
|
|
116
123
|
sig { returns(T.nilable(T::Boolean)) }
|
|
117
124
|
attr_reader :immutable
|
|
118
125
|
|
|
@@ -173,6 +180,10 @@ module Openlayer
|
|
|
173
180
|
end
|
|
174
181
|
attr_accessor :tags
|
|
175
182
|
|
|
183
|
+
# A single requirement Openlayer tracks. `platform` rules are evaluated
|
|
184
|
+
# automatically from the state of your workspace, and `evidence` rules are
|
|
185
|
+
# satisfied by attaching evidence. A rule can belong to several frameworks, or to
|
|
186
|
+
# none.
|
|
176
187
|
sig do
|
|
177
188
|
params(
|
|
178
189
|
id: String,
|
|
@@ -225,33 +236,40 @@ module Openlayer
|
|
|
225
236
|
# The rule name.
|
|
226
237
|
name:,
|
|
227
238
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
228
|
-
# the rule's frameworks apply to.
|
|
239
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
240
|
+
# the rule is created.
|
|
229
241
|
scope:,
|
|
230
242
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
231
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
243
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
244
|
+
# rule is created.
|
|
232
245
|
type:,
|
|
233
246
|
# The id of the workspace the rule belongs to.
|
|
234
247
|
workspace_id:,
|
|
235
248
|
# The user responsible for satisfying the rule.
|
|
236
249
|
assignee_id: nil,
|
|
237
|
-
# Configuration for the platform check, when the automation takes parameters.
|
|
250
|
+
# Configuration for the platform check, when the automation takes parameters. Omit
|
|
251
|
+
# or `null` for evidence rules. Fixed once the rule is created.
|
|
238
252
|
automation_params: nil,
|
|
239
253
|
# Which workspace signal a platform rule checks, for example
|
|
240
|
-
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`.
|
|
241
|
-
# evidence rules.
|
|
254
|
+
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
|
|
255
|
+
# platform rules; omit or `null` for evidence rules. Fixed once the rule is
|
|
256
|
+
# created.
|
|
242
257
|
automation_type: nil,
|
|
243
258
|
# Whether the rule is excluded from compliance calculations.
|
|
244
259
|
deactivated: nil,
|
|
245
260
|
# What the rule requires.
|
|
246
261
|
description: nil,
|
|
247
|
-
# The kind of evidence that satisfies the rule.
|
|
262
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
263
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
248
264
|
evidence_type: nil,
|
|
249
265
|
# The frameworks that include this rule.
|
|
250
266
|
frameworks: nil,
|
|
251
|
-
# Whether the rule is managed by Openlayer
|
|
267
|
+
# Whether the rule is managed by Openlayer. These rules can't be renamed or
|
|
268
|
+
# deleted; set `deactivated` to exclude one from compliance instead.
|
|
252
269
|
immutable: nil,
|
|
253
270
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
254
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
271
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
272
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
255
273
|
renewal_cadence_days: nil,
|
|
256
274
|
# The rule's results, one per entity the rule is evaluated against. Only returned
|
|
257
275
|
# when `includeResults` is `true`.
|
|
@@ -313,7 +331,8 @@ module Openlayer
|
|
|
313
331
|
end
|
|
314
332
|
|
|
315
333
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
316
|
-
# the rule's frameworks apply to.
|
|
334
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
335
|
+
# the rule is created.
|
|
317
336
|
module Scope
|
|
318
337
|
extend Openlayer::Internal::Type::Enum
|
|
319
338
|
|
|
@@ -349,7 +368,8 @@ module Openlayer
|
|
|
349
368
|
end
|
|
350
369
|
|
|
351
370
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
352
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
371
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
372
|
+
# rule is created.
|
|
353
373
|
module Type
|
|
354
374
|
extend Openlayer::Internal::Type::Enum
|
|
355
375
|
|
|
@@ -384,7 +404,8 @@ module Openlayer
|
|
|
384
404
|
end
|
|
385
405
|
end
|
|
386
406
|
|
|
387
|
-
# The kind of evidence that satisfies the rule.
|
|
407
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
408
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
388
409
|
module EvidenceType
|
|
389
410
|
extend Openlayer::Internal::Type::Enum
|
|
390
411
|
|
|
@@ -615,11 +636,13 @@ module Openlayer
|
|
|
615
636
|
)
|
|
616
637
|
end
|
|
617
638
|
|
|
618
|
-
# Whether this result is excluded from compliance calculations.
|
|
639
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
640
|
+
# result, without deactivating the rule everywhere.
|
|
619
641
|
sig { returns(T::Boolean) }
|
|
620
642
|
attr_accessor :deactivated
|
|
621
643
|
|
|
622
|
-
# The compliance status of the rule for this entity.
|
|
644
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
645
|
+
# can't be set directly.
|
|
623
646
|
sig do
|
|
624
647
|
returns(
|
|
625
648
|
Openlayer::Models::Governance::RuleRetrieveResponse::Result::Status::TaggedSymbol
|
|
@@ -675,7 +698,7 @@ module Openlayer
|
|
|
675
698
|
end
|
|
676
699
|
attr_writer :blocking
|
|
677
700
|
|
|
678
|
-
# Why the result was excluded.
|
|
701
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
679
702
|
sig { returns(T.nilable(String)) }
|
|
680
703
|
attr_accessor :deactivated_reason
|
|
681
704
|
|
|
@@ -723,6 +746,8 @@ module Openlayer
|
|
|
723
746
|
sig { returns(T.nilable(String)) }
|
|
724
747
|
attr_accessor :project_id
|
|
725
748
|
|
|
749
|
+
# The compliance status of one rule for one entity: a project for project-scoped
|
|
750
|
+
# rules, or the workspace for workspace-scoped rules.
|
|
726
751
|
sig do
|
|
727
752
|
params(
|
|
728
753
|
id: String,
|
|
@@ -758,11 +783,13 @@ module Openlayer
|
|
|
758
783
|
date_created:,
|
|
759
784
|
# The last update date.
|
|
760
785
|
date_updated:,
|
|
761
|
-
# Whether this result is excluded from compliance calculations.
|
|
786
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
787
|
+
# result, without deactivating the rule everywhere.
|
|
762
788
|
deactivated:,
|
|
763
789
|
# The rule this result belongs to.
|
|
764
790
|
rule_id:,
|
|
765
|
-
# The compliance status of the rule for this entity.
|
|
791
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
792
|
+
# can't be set directly.
|
|
766
793
|
status:,
|
|
767
794
|
# The id of the workspace the rule result belongs to.
|
|
768
795
|
workspace_id:,
|
|
@@ -780,7 +807,7 @@ module Openlayer
|
|
|
780
807
|
date_of_next_evaluation: nil,
|
|
781
808
|
# When the evidence must be renewed. Evidence rules with a renewal cadence only.
|
|
782
809
|
date_of_renewal: nil,
|
|
783
|
-
# Why the result was excluded.
|
|
810
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
784
811
|
deactivated_reason: nil,
|
|
785
812
|
# The project this result was evaluated for. `null` for workspace-scoped rules.
|
|
786
813
|
project_id: nil,
|
|
@@ -822,7 +849,8 @@ module Openlayer
|
|
|
822
849
|
def to_hash
|
|
823
850
|
end
|
|
824
851
|
|
|
825
|
-
# The compliance status of the rule for this entity.
|
|
852
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
853
|
+
# can't be set directly.
|
|
826
854
|
module Status
|
|
827
855
|
extend Openlayer::Internal::Type::Enum
|
|
828
856
|
|
|
@@ -897,7 +925,8 @@ module Openlayer
|
|
|
897
925
|
sig { params(id: String).void }
|
|
898
926
|
attr_writer :id
|
|
899
927
|
|
|
900
|
-
# The compliance status of the rule for this entity.
|
|
928
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
929
|
+
# can't be set directly.
|
|
901
930
|
sig do
|
|
902
931
|
returns(
|
|
903
932
|
T.nilable(
|
|
@@ -924,7 +953,8 @@ module Openlayer
|
|
|
924
953
|
end
|
|
925
954
|
def self.new(
|
|
926
955
|
id: nil,
|
|
927
|
-
# The compliance status of the rule for this entity.
|
|
956
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
957
|
+
# can't be set directly.
|
|
928
958
|
status: nil
|
|
929
959
|
)
|
|
930
960
|
end
|
|
@@ -941,7 +971,8 @@ module Openlayer
|
|
|
941
971
|
def to_hash
|
|
942
972
|
end
|
|
943
973
|
|
|
944
|
-
# The compliance status of the rule for this entity.
|
|
974
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
975
|
+
# can't be set directly.
|
|
945
976
|
module Status
|
|
946
977
|
extend Openlayer::Internal::Type::Enum
|
|
947
978
|
|
|
@@ -1017,7 +1048,8 @@ module Openlayer
|
|
|
1017
1048
|
sig { params(id: String).void }
|
|
1018
1049
|
attr_writer :id
|
|
1019
1050
|
|
|
1020
|
-
# The compliance status of the rule for this entity.
|
|
1051
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
1052
|
+
# can't be set directly.
|
|
1021
1053
|
sig do
|
|
1022
1054
|
returns(
|
|
1023
1055
|
T.nilable(
|
|
@@ -1044,7 +1076,8 @@ module Openlayer
|
|
|
1044
1076
|
end
|
|
1045
1077
|
def self.new(
|
|
1046
1078
|
id: nil,
|
|
1047
|
-
# The compliance status of the rule for this entity.
|
|
1079
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
1080
|
+
# can't be set directly.
|
|
1048
1081
|
status: nil
|
|
1049
1082
|
)
|
|
1050
1083
|
end
|
|
@@ -1061,7 +1094,8 @@ module Openlayer
|
|
|
1061
1094
|
def to_hash
|
|
1062
1095
|
end
|
|
1063
1096
|
|
|
1064
|
-
# The compliance status of the rule for this entity.
|
|
1097
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
1098
|
+
# can't be set directly.
|
|
1065
1099
|
module Status
|
|
1066
1100
|
extend Openlayer::Internal::Type::Enum
|
|
1067
1101
|
|
|
@@ -1190,7 +1224,7 @@ module Openlayer
|
|
|
1190
1224
|
sig { returns(Time) }
|
|
1191
1225
|
attr_accessor :date_updated
|
|
1192
1226
|
|
|
1193
|
-
# Whether the tag is managed by Openlayer
|
|
1227
|
+
# Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
1194
1228
|
sig { returns(T::Boolean) }
|
|
1195
1229
|
attr_accessor :immutable
|
|
1196
1230
|
|
|
@@ -1198,6 +1232,8 @@ module Openlayer
|
|
|
1198
1232
|
sig { returns(String) }
|
|
1199
1233
|
attr_accessor :workspace_id
|
|
1200
1234
|
|
|
1235
|
+
# A label that groups rules across frameworks, for example by team or control
|
|
1236
|
+
# family.
|
|
1201
1237
|
sig do
|
|
1202
1238
|
params(
|
|
1203
1239
|
id: String,
|
|
@@ -1219,7 +1255,7 @@ module Openlayer
|
|
|
1219
1255
|
date_created:,
|
|
1220
1256
|
# The last update date.
|
|
1221
1257
|
date_updated:,
|
|
1222
|
-
# Whether the tag is managed by Openlayer
|
|
1258
|
+
# Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
1223
1259
|
immutable:,
|
|
1224
1260
|
# The tag name.
|
|
1225
1261
|
name:,
|
|
@@ -45,6 +45,9 @@ module Openlayer
|
|
|
45
45
|
end
|
|
46
46
|
attr_writer :rules
|
|
47
47
|
|
|
48
|
+
# Counts of rules and their results by status. Narrowed by the request's filters,
|
|
49
|
+
# so `frameworkId` gives one framework's compliance and `projectId` gives one
|
|
50
|
+
# project's.
|
|
48
51
|
sig do
|
|
49
52
|
params(
|
|
50
53
|
rule_results:
|
|
@@ -76,7 +76,7 @@ module Openlayer
|
|
|
76
76
|
sig { returns(Time) }
|
|
77
77
|
attr_accessor :date_updated
|
|
78
78
|
|
|
79
|
-
# Whether the tag is managed by Openlayer
|
|
79
|
+
# Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
80
80
|
sig { returns(T::Boolean) }
|
|
81
81
|
attr_accessor :immutable
|
|
82
82
|
|
|
@@ -84,6 +84,8 @@ module Openlayer
|
|
|
84
84
|
sig { returns(String) }
|
|
85
85
|
attr_accessor :workspace_id
|
|
86
86
|
|
|
87
|
+
# A label that groups rules across frameworks, for example by team or control
|
|
88
|
+
# family.
|
|
87
89
|
sig do
|
|
88
90
|
params(
|
|
89
91
|
id: String,
|
|
@@ -105,7 +107,7 @@ module Openlayer
|
|
|
105
107
|
date_created:,
|
|
106
108
|
# The last update date.
|
|
107
109
|
date_updated:,
|
|
108
|
-
# Whether the tag is managed by Openlayer
|
|
110
|
+
# Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
109
111
|
immutable:,
|
|
110
112
|
# The tag name.
|
|
111
113
|
name:,
|
|
@@ -41,7 +41,8 @@ module Openlayer
|
|
|
41
41
|
attr_writer :name
|
|
42
42
|
|
|
43
43
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
44
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
44
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
45
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
45
46
|
sig { returns(T.nilable(Integer)) }
|
|
46
47
|
attr_accessor :renewal_cadence_days
|
|
47
48
|
|
|
@@ -74,7 +75,8 @@ module Openlayer
|
|
|
74
75
|
# The rule name.
|
|
75
76
|
name: nil,
|
|
76
77
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
77
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
78
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
79
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
78
80
|
renewal_cadence_days: nil,
|
|
79
81
|
# The ids of the rule tags to associate with the rule. Replaces the rule's tags.
|
|
80
82
|
# Read them back from `tags`, and list the tags available in the workspace with
|