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
data/lib/openlayer/version.rb
CHANGED
data/lib/openlayer.rb
CHANGED
|
@@ -158,6 +158,15 @@ require_relative "openlayer/models/workspace_retrieve_params"
|
|
|
158
158
|
require_relative "openlayer/models/workspace_retrieve_response"
|
|
159
159
|
require_relative "openlayer/models/workspaces/api_key_create_params"
|
|
160
160
|
require_relative "openlayer/models/workspaces/api_key_create_response"
|
|
161
|
+
require_relative "openlayer/models/workspaces/api_key_delete_params"
|
|
162
|
+
require_relative "openlayer/models/workspaces/api_key_list_params"
|
|
163
|
+
require_relative "openlayer/models/workspaces/api_key_list_response"
|
|
164
|
+
require_relative "openlayer/models/workspaces/api_key_retrieve_params"
|
|
165
|
+
require_relative "openlayer/models/workspaces/api_key_retrieve_response"
|
|
166
|
+
require_relative "openlayer/models/workspaces/api_key_rotate_params"
|
|
167
|
+
require_relative "openlayer/models/workspaces/api_key_rotate_response"
|
|
168
|
+
require_relative "openlayer/models/workspaces/api_key_update_params"
|
|
169
|
+
require_relative "openlayer/models/workspaces/api_key_update_response"
|
|
161
170
|
require_relative "openlayer/models/workspaces/invite_create_params"
|
|
162
171
|
require_relative "openlayer/models/workspaces/invite_create_response"
|
|
163
172
|
require_relative "openlayer/models/workspaces/invite_list_params"
|
|
@@ -46,6 +46,9 @@ module Openlayer
|
|
|
46
46
|
sig { returns(String) }
|
|
47
47
|
attr_accessor :name
|
|
48
48
|
|
|
49
|
+
# A job queued by an endpoint that can't answer within one request, such as a
|
|
50
|
+
# framework export. Poll it until `complete` is `true`, then read what it produced
|
|
51
|
+
# from `outputs`.
|
|
49
52
|
sig do
|
|
50
53
|
params(
|
|
51
54
|
id: String,
|
|
@@ -104,7 +104,8 @@ module Openlayer
|
|
|
104
104
|
sig { returns(T.nilable(String)) }
|
|
105
105
|
attr_accessor :creator_id
|
|
106
106
|
|
|
107
|
-
# Whether the framework definition is managed by Openlayer
|
|
107
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
108
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
108
109
|
sig { returns(T.nilable(T::Boolean)) }
|
|
109
110
|
attr_reader :immutable
|
|
110
111
|
|
|
@@ -131,6 +132,9 @@ module Openlayer
|
|
|
131
132
|
end
|
|
132
133
|
attr_writer :rule_stats
|
|
133
134
|
|
|
135
|
+
# A set of rules, drawn from a regulation, a standard, or your own internal
|
|
136
|
+
# policy, that Openlayer tracks compliance against. Openlayer ships built-in
|
|
137
|
+
# frameworks, and you can create your own.
|
|
134
138
|
sig do
|
|
135
139
|
params(
|
|
136
140
|
id: String,
|
|
@@ -188,7 +192,8 @@ module Openlayer
|
|
|
188
192
|
extended_description: nil,
|
|
189
193
|
# A link to the external standard or regulation the framework is based on.
|
|
190
194
|
href: nil,
|
|
191
|
-
# Whether the framework definition is managed by Openlayer
|
|
195
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
196
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
192
197
|
immutable: nil,
|
|
193
198
|
# Determines which projects the framework applies to. An empty or `null` `match`
|
|
194
199
|
# array applies the framework to every project in the workspace.
|
|
@@ -18,7 +18,9 @@ module Openlayer
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :framework_id
|
|
20
20
|
|
|
21
|
-
# Scope the export to this project. It must belong to the framework.
|
|
21
|
+
# Scope the export to this project. It must belong to the framework. Omit it for
|
|
22
|
+
# the workspace-wide view across every project in the framework, including
|
|
23
|
+
# workspace-scoped rules.
|
|
22
24
|
sig { returns(T.nilable(String)) }
|
|
23
25
|
attr_accessor :project_id
|
|
24
26
|
|
|
@@ -31,7 +33,9 @@ module Openlayer
|
|
|
31
33
|
end
|
|
32
34
|
def self.new(
|
|
33
35
|
framework_id:,
|
|
34
|
-
# Scope the export to this project. It must belong to the framework.
|
|
36
|
+
# Scope the export to this project. It must belong to the framework. Omit it for
|
|
37
|
+
# the workspace-wide view across every project in the framework, including
|
|
38
|
+
# workspace-scoped rules.
|
|
35
39
|
project_id: nil,
|
|
36
40
|
request_options: {}
|
|
37
41
|
)
|
|
@@ -144,7 +144,8 @@ module Openlayer
|
|
|
144
144
|
sig { returns(T.nilable(String)) }
|
|
145
145
|
attr_accessor :creator_id
|
|
146
146
|
|
|
147
|
-
# Whether the framework definition is managed by Openlayer
|
|
147
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
148
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
148
149
|
sig { returns(T.nilable(T::Boolean)) }
|
|
149
150
|
attr_reader :immutable
|
|
150
151
|
|
|
@@ -171,6 +172,9 @@ module Openlayer
|
|
|
171
172
|
end
|
|
172
173
|
attr_writer :rule_stats
|
|
173
174
|
|
|
175
|
+
# A set of rules, drawn from a regulation, a standard, or your own internal
|
|
176
|
+
# policy, that Openlayer tracks compliance against. Openlayer ships built-in
|
|
177
|
+
# frameworks, and you can create your own.
|
|
174
178
|
sig do
|
|
175
179
|
params(
|
|
176
180
|
id: String,
|
|
@@ -228,7 +232,8 @@ module Openlayer
|
|
|
228
232
|
extended_description: nil,
|
|
229
233
|
# A link to the external standard or regulation the framework is based on.
|
|
230
234
|
href: nil,
|
|
231
|
-
# Whether the framework definition is managed by Openlayer
|
|
235
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
236
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
232
237
|
immutable: nil,
|
|
233
238
|
# Determines which projects the framework applies to. An empty or `null` `match`
|
|
234
239
|
# array applies the framework to every project in the workspace.
|
|
@@ -59,7 +59,8 @@ module Openlayer
|
|
|
59
59
|
attr_accessor :name
|
|
60
60
|
|
|
61
61
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
62
|
-
# the rule's frameworks apply to.
|
|
62
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
63
|
+
# the rule is created.
|
|
63
64
|
sig do
|
|
64
65
|
returns(
|
|
65
66
|
Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Scope::TaggedSymbol
|
|
@@ -68,7 +69,8 @@ module Openlayer
|
|
|
68
69
|
attr_accessor :scope
|
|
69
70
|
|
|
70
71
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
71
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
72
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
73
|
+
# rule is created.
|
|
72
74
|
sig do
|
|
73
75
|
returns(
|
|
74
76
|
Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Type::TaggedSymbol
|
|
@@ -80,13 +82,15 @@ module Openlayer
|
|
|
80
82
|
sig { returns(T.nilable(String)) }
|
|
81
83
|
attr_accessor :assignee_id
|
|
82
84
|
|
|
83
|
-
# Configuration for the platform check, when the automation takes parameters.
|
|
85
|
+
# Configuration for the platform check, when the automation takes parameters. Omit
|
|
86
|
+
# or `null` for evidence rules. Fixed once the rule is created.
|
|
84
87
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
85
88
|
attr_accessor :automation_params
|
|
86
89
|
|
|
87
90
|
# Which workspace signal a platform rule checks, for example
|
|
88
|
-
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`.
|
|
89
|
-
# evidence rules.
|
|
91
|
+
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
|
|
92
|
+
# platform rules; omit or `null` for evidence rules. Fixed once the rule is
|
|
93
|
+
# created.
|
|
90
94
|
sig { returns(T.nilable(String)) }
|
|
91
95
|
attr_accessor :automation_type
|
|
92
96
|
|
|
@@ -101,7 +105,8 @@ module Openlayer
|
|
|
101
105
|
sig { returns(T.nilable(String)) }
|
|
102
106
|
attr_accessor :description
|
|
103
107
|
|
|
104
|
-
# The kind of evidence that satisfies the rule.
|
|
108
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
109
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
105
110
|
sig do
|
|
106
111
|
returns(
|
|
107
112
|
T.nilable(
|
|
@@ -112,7 +117,8 @@ module Openlayer
|
|
|
112
117
|
attr_accessor :evidence_type
|
|
113
118
|
|
|
114
119
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
115
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
120
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
121
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
116
122
|
sig { returns(T.nilable(Integer)) }
|
|
117
123
|
attr_accessor :renewal_cadence_days
|
|
118
124
|
|
|
@@ -154,7 +160,8 @@ module Openlayer
|
|
|
154
160
|
end
|
|
155
161
|
attr_writer :frameworks
|
|
156
162
|
|
|
157
|
-
# Whether the rule is managed by Openlayer
|
|
163
|
+
# Whether the rule is managed by Openlayer. These rules can't be renamed or
|
|
164
|
+
# deleted; set `deactivated` to exclude one from compliance instead.
|
|
158
165
|
sig { returns(T.nilable(T::Boolean)) }
|
|
159
166
|
attr_reader :immutable
|
|
160
167
|
|
|
@@ -217,6 +224,10 @@ module Openlayer
|
|
|
217
224
|
end
|
|
218
225
|
attr_accessor :tags
|
|
219
226
|
|
|
227
|
+
# A single requirement Openlayer tracks. `platform` rules are evaluated
|
|
228
|
+
# automatically from the state of your workspace, and `evidence` rules are
|
|
229
|
+
# satisfied by attaching evidence. A rule can belong to several frameworks, or to
|
|
230
|
+
# none.
|
|
220
231
|
sig do
|
|
221
232
|
params(
|
|
222
233
|
id: String,
|
|
@@ -269,33 +280,40 @@ module Openlayer
|
|
|
269
280
|
# The rule name.
|
|
270
281
|
name:,
|
|
271
282
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
272
|
-
# the rule's frameworks apply to.
|
|
283
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
284
|
+
# the rule is created.
|
|
273
285
|
scope:,
|
|
274
286
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
275
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
287
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
288
|
+
# rule is created.
|
|
276
289
|
type:,
|
|
277
290
|
# The id of the workspace the rule belongs to.
|
|
278
291
|
workspace_id:,
|
|
279
292
|
# The user responsible for satisfying the rule.
|
|
280
293
|
assignee_id: nil,
|
|
281
|
-
# Configuration for the platform check, when the automation takes parameters.
|
|
294
|
+
# Configuration for the platform check, when the automation takes parameters. Omit
|
|
295
|
+
# or `null` for evidence rules. Fixed once the rule is created.
|
|
282
296
|
automation_params: nil,
|
|
283
297
|
# Which workspace signal a platform rule checks, for example
|
|
284
|
-
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`.
|
|
285
|
-
# evidence rules.
|
|
298
|
+
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
|
|
299
|
+
# platform rules; omit or `null` for evidence rules. Fixed once the rule is
|
|
300
|
+
# created.
|
|
286
301
|
automation_type: nil,
|
|
287
302
|
# Whether the rule is excluded from compliance calculations.
|
|
288
303
|
deactivated: nil,
|
|
289
304
|
# What the rule requires.
|
|
290
305
|
description: nil,
|
|
291
|
-
# The kind of evidence that satisfies the rule.
|
|
306
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
307
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
292
308
|
evidence_type: nil,
|
|
293
309
|
# The frameworks that include this rule.
|
|
294
310
|
frameworks: nil,
|
|
295
|
-
# Whether the rule is managed by Openlayer
|
|
311
|
+
# Whether the rule is managed by Openlayer. These rules can't be renamed or
|
|
312
|
+
# deleted; set `deactivated` to exclude one from compliance instead.
|
|
296
313
|
immutable: nil,
|
|
297
314
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
298
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
315
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
316
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
299
317
|
renewal_cadence_days: nil,
|
|
300
318
|
# The rule's results, one per entity the rule is evaluated against. Only returned
|
|
301
319
|
# when `includeResults` is `true`.
|
|
@@ -357,7 +375,8 @@ module Openlayer
|
|
|
357
375
|
end
|
|
358
376
|
|
|
359
377
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
360
|
-
# the rule's frameworks apply to.
|
|
378
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
379
|
+
# the rule is created.
|
|
361
380
|
module Scope
|
|
362
381
|
extend Openlayer::Internal::Type::Enum
|
|
363
382
|
|
|
@@ -393,7 +412,8 @@ module Openlayer
|
|
|
393
412
|
end
|
|
394
413
|
|
|
395
414
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
396
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
415
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
416
|
+
# rule is created.
|
|
397
417
|
module Type
|
|
398
418
|
extend Openlayer::Internal::Type::Enum
|
|
399
419
|
|
|
@@ -428,7 +448,8 @@ module Openlayer
|
|
|
428
448
|
end
|
|
429
449
|
end
|
|
430
450
|
|
|
431
|
-
# The kind of evidence that satisfies the rule.
|
|
451
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
452
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
432
453
|
module EvidenceType
|
|
433
454
|
extend Openlayer::Internal::Type::Enum
|
|
434
455
|
|
|
@@ -659,11 +680,13 @@ module Openlayer
|
|
|
659
680
|
)
|
|
660
681
|
end
|
|
661
682
|
|
|
662
|
-
# Whether this result is excluded from compliance calculations.
|
|
683
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
684
|
+
# result, without deactivating the rule everywhere.
|
|
663
685
|
sig { returns(T::Boolean) }
|
|
664
686
|
attr_accessor :deactivated
|
|
665
687
|
|
|
666
|
-
# The compliance status of the rule for this entity.
|
|
688
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
689
|
+
# can't be set directly.
|
|
667
690
|
sig do
|
|
668
691
|
returns(
|
|
669
692
|
Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Status::TaggedSymbol
|
|
@@ -719,7 +742,7 @@ module Openlayer
|
|
|
719
742
|
end
|
|
720
743
|
attr_writer :blocking
|
|
721
744
|
|
|
722
|
-
# Why the result was excluded.
|
|
745
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
723
746
|
sig { returns(T.nilable(String)) }
|
|
724
747
|
attr_accessor :deactivated_reason
|
|
725
748
|
|
|
@@ -767,6 +790,8 @@ module Openlayer
|
|
|
767
790
|
sig { returns(T.nilable(String)) }
|
|
768
791
|
attr_accessor :project_id
|
|
769
792
|
|
|
793
|
+
# The compliance status of one rule for one entity: a project for project-scoped
|
|
794
|
+
# rules, or the workspace for workspace-scoped rules.
|
|
770
795
|
sig do
|
|
771
796
|
params(
|
|
772
797
|
id: String,
|
|
@@ -802,11 +827,13 @@ module Openlayer
|
|
|
802
827
|
date_created:,
|
|
803
828
|
# The last update date.
|
|
804
829
|
date_updated:,
|
|
805
|
-
# Whether this result is excluded from compliance calculations.
|
|
830
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
831
|
+
# result, without deactivating the rule everywhere.
|
|
806
832
|
deactivated:,
|
|
807
833
|
# The rule this result belongs to.
|
|
808
834
|
rule_id:,
|
|
809
|
-
# The compliance status of the rule for this entity.
|
|
835
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
836
|
+
# can't be set directly.
|
|
810
837
|
status:,
|
|
811
838
|
# The id of the workspace the rule result belongs to.
|
|
812
839
|
workspace_id:,
|
|
@@ -824,7 +851,7 @@ module Openlayer
|
|
|
824
851
|
date_of_next_evaluation: nil,
|
|
825
852
|
# When the evidence must be renewed. Evidence rules with a renewal cadence only.
|
|
826
853
|
date_of_renewal: nil,
|
|
827
|
-
# Why the result was excluded.
|
|
854
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
828
855
|
deactivated_reason: nil,
|
|
829
856
|
# The project this result was evaluated for. `null` for workspace-scoped rules.
|
|
830
857
|
project_id: nil,
|
|
@@ -866,7 +893,8 @@ module Openlayer
|
|
|
866
893
|
def to_hash
|
|
867
894
|
end
|
|
868
895
|
|
|
869
|
-
# The compliance status of the rule for this entity.
|
|
896
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
897
|
+
# can't be set directly.
|
|
870
898
|
module Status
|
|
871
899
|
extend Openlayer::Internal::Type::Enum
|
|
872
900
|
|
|
@@ -941,7 +969,8 @@ module Openlayer
|
|
|
941
969
|
sig { params(id: String).void }
|
|
942
970
|
attr_writer :id
|
|
943
971
|
|
|
944
|
-
# The compliance status of the rule for this entity.
|
|
972
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
973
|
+
# can't be set directly.
|
|
945
974
|
sig do
|
|
946
975
|
returns(
|
|
947
976
|
T.nilable(
|
|
@@ -968,7 +997,8 @@ module Openlayer
|
|
|
968
997
|
end
|
|
969
998
|
def self.new(
|
|
970
999
|
id: nil,
|
|
971
|
-
# The compliance status of the rule for this entity.
|
|
1000
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
1001
|
+
# can't be set directly.
|
|
972
1002
|
status: nil
|
|
973
1003
|
)
|
|
974
1004
|
end
|
|
@@ -985,7 +1015,8 @@ module Openlayer
|
|
|
985
1015
|
def to_hash
|
|
986
1016
|
end
|
|
987
1017
|
|
|
988
|
-
# The compliance status of the rule for this entity.
|
|
1018
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
1019
|
+
# can't be set directly.
|
|
989
1020
|
module Status
|
|
990
1021
|
extend Openlayer::Internal::Type::Enum
|
|
991
1022
|
|
|
@@ -1061,7 +1092,8 @@ module Openlayer
|
|
|
1061
1092
|
sig { params(id: String).void }
|
|
1062
1093
|
attr_writer :id
|
|
1063
1094
|
|
|
1064
|
-
# The compliance status of the rule for this entity.
|
|
1095
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
1096
|
+
# can't be set directly.
|
|
1065
1097
|
sig do
|
|
1066
1098
|
returns(
|
|
1067
1099
|
T.nilable(
|
|
@@ -1088,7 +1120,8 @@ module Openlayer
|
|
|
1088
1120
|
end
|
|
1089
1121
|
def self.new(
|
|
1090
1122
|
id: nil,
|
|
1091
|
-
# The compliance status of the rule for this entity.
|
|
1123
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
1124
|
+
# can't be set directly.
|
|
1092
1125
|
status: nil
|
|
1093
1126
|
)
|
|
1094
1127
|
end
|
|
@@ -1105,7 +1138,8 @@ module Openlayer
|
|
|
1105
1138
|
def to_hash
|
|
1106
1139
|
end
|
|
1107
1140
|
|
|
1108
|
-
# The compliance status of the rule for this entity.
|
|
1141
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
1142
|
+
# can't be set directly.
|
|
1109
1143
|
module Status
|
|
1110
1144
|
extend Openlayer::Internal::Type::Enum
|
|
1111
1145
|
|
|
@@ -1234,7 +1268,7 @@ module Openlayer
|
|
|
1234
1268
|
sig { returns(Time) }
|
|
1235
1269
|
attr_accessor :date_updated
|
|
1236
1270
|
|
|
1237
|
-
# Whether the tag is managed by Openlayer
|
|
1271
|
+
# Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
1238
1272
|
sig { returns(T::Boolean) }
|
|
1239
1273
|
attr_accessor :immutable
|
|
1240
1274
|
|
|
@@ -1242,6 +1276,8 @@ module Openlayer
|
|
|
1242
1276
|
sig { returns(String) }
|
|
1243
1277
|
attr_accessor :workspace_id
|
|
1244
1278
|
|
|
1279
|
+
# A label that groups rules across frameworks, for example by team or control
|
|
1280
|
+
# family.
|
|
1245
1281
|
sig do
|
|
1246
1282
|
params(
|
|
1247
1283
|
id: String,
|
|
@@ -1263,7 +1299,7 @@ module Openlayer
|
|
|
1263
1299
|
date_created:,
|
|
1264
1300
|
# The last update date.
|
|
1265
1301
|
date_updated:,
|
|
1266
|
-
# Whether the tag is managed by Openlayer
|
|
1302
|
+
# Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
1267
1303
|
immutable:,
|
|
1268
1304
|
# The tag name.
|
|
1269
1305
|
name:,
|
|
@@ -104,7 +104,8 @@ module Openlayer
|
|
|
104
104
|
sig { returns(T.nilable(String)) }
|
|
105
105
|
attr_accessor :creator_id
|
|
106
106
|
|
|
107
|
-
# Whether the framework definition is managed by Openlayer
|
|
107
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
108
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
108
109
|
sig { returns(T.nilable(T::Boolean)) }
|
|
109
110
|
attr_reader :immutable
|
|
110
111
|
|
|
@@ -131,6 +132,9 @@ module Openlayer
|
|
|
131
132
|
end
|
|
132
133
|
attr_writer :rule_stats
|
|
133
134
|
|
|
135
|
+
# A set of rules, drawn from a regulation, a standard, or your own internal
|
|
136
|
+
# policy, that Openlayer tracks compliance against. Openlayer ships built-in
|
|
137
|
+
# frameworks, and you can create your own.
|
|
134
138
|
sig do
|
|
135
139
|
params(
|
|
136
140
|
id: String,
|
|
@@ -188,7 +192,8 @@ module Openlayer
|
|
|
188
192
|
extended_description: nil,
|
|
189
193
|
# A link to the external standard or regulation the framework is based on.
|
|
190
194
|
href: nil,
|
|
191
|
-
# Whether the framework definition is managed by Openlayer
|
|
195
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
196
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
192
197
|
immutable: nil,
|
|
193
198
|
# Determines which projects the framework applies to. An empty or `null` `match`
|
|
194
199
|
# array applies the framework to every project in the workspace.
|
|
@@ -104,7 +104,8 @@ module Openlayer
|
|
|
104
104
|
sig { returns(T.nilable(String)) }
|
|
105
105
|
attr_accessor :creator_id
|
|
106
106
|
|
|
107
|
-
# Whether the framework definition is managed by Openlayer
|
|
107
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
108
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
108
109
|
sig { returns(T.nilable(T::Boolean)) }
|
|
109
110
|
attr_reader :immutable
|
|
110
111
|
|
|
@@ -131,6 +132,9 @@ module Openlayer
|
|
|
131
132
|
end
|
|
132
133
|
attr_writer :rule_stats
|
|
133
134
|
|
|
135
|
+
# A set of rules, drawn from a regulation, a standard, or your own internal
|
|
136
|
+
# policy, that Openlayer tracks compliance against. Openlayer ships built-in
|
|
137
|
+
# frameworks, and you can create your own.
|
|
134
138
|
sig do
|
|
135
139
|
params(
|
|
136
140
|
id: String,
|
|
@@ -188,7 +192,8 @@ module Openlayer
|
|
|
188
192
|
extended_description: nil,
|
|
189
193
|
# A link to the external standard or regulation the framework is based on.
|
|
190
194
|
href: nil,
|
|
191
|
-
# Whether the framework definition is managed by Openlayer
|
|
195
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
196
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
192
197
|
immutable: nil,
|
|
193
198
|
# Determines which projects the framework applies to. An empty or `null` `match`
|
|
194
199
|
# array applies the framework to every project in the workspace.
|