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
|
@@ -23,14 +23,16 @@ module Openlayer
|
|
|
23
23
|
attr_accessor :name
|
|
24
24
|
|
|
25
25
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
26
|
-
# the rule's frameworks apply to.
|
|
26
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
27
|
+
# the rule is created.
|
|
27
28
|
sig do
|
|
28
29
|
returns(Openlayer::Governance::RuleCreateParams::Scope::OrSymbol)
|
|
29
30
|
end
|
|
30
31
|
attr_accessor :scope
|
|
31
32
|
|
|
32
33
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
33
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
34
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
35
|
+
# rule is created.
|
|
34
36
|
sig { returns(Openlayer::Governance::RuleCreateParams::Type::OrSymbol) }
|
|
35
37
|
attr_accessor :type
|
|
36
38
|
|
|
@@ -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
|
|
|
@@ -105,27 +111,33 @@ module Openlayer
|
|
|
105
111
|
# The rule name.
|
|
106
112
|
name:,
|
|
107
113
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
108
|
-
# the rule's frameworks apply to.
|
|
114
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
115
|
+
# the rule is created.
|
|
109
116
|
scope:,
|
|
110
117
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
111
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
118
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
119
|
+
# rule is created.
|
|
112
120
|
type:,
|
|
113
121
|
# The user responsible for satisfying the rule.
|
|
114
122
|
assignee_id: nil,
|
|
115
|
-
# Configuration for the platform check, when the automation takes parameters.
|
|
123
|
+
# Configuration for the platform check, when the automation takes parameters. Omit
|
|
124
|
+
# or `null` for evidence rules. Fixed once the rule is created.
|
|
116
125
|
automation_params: nil,
|
|
117
126
|
# Which workspace signal a platform rule checks, for example
|
|
118
|
-
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`.
|
|
119
|
-
# evidence rules.
|
|
127
|
+
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
|
|
128
|
+
# platform rules; omit or `null` for evidence rules. Fixed once the rule is
|
|
129
|
+
# created.
|
|
120
130
|
automation_type: nil,
|
|
121
131
|
# Whether the rule is excluded from compliance calculations.
|
|
122
132
|
deactivated: nil,
|
|
123
133
|
# What the rule requires.
|
|
124
134
|
description: nil,
|
|
125
|
-
# The kind of evidence that satisfies the rule.
|
|
135
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
136
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
126
137
|
evidence_type: nil,
|
|
127
138
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
128
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
139
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
140
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
129
141
|
renewal_cadence_days: nil,
|
|
130
142
|
# The ids of the rule tags to associate with the rule. Replaces the rule's tags.
|
|
131
143
|
# Read them back from `tags`, and list the tags available in the workspace with
|
|
@@ -161,7 +173,8 @@ module Openlayer
|
|
|
161
173
|
end
|
|
162
174
|
|
|
163
175
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
164
|
-
# the rule's frameworks apply to.
|
|
176
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
177
|
+
# the rule is created.
|
|
165
178
|
module Scope
|
|
166
179
|
extend Openlayer::Internal::Type::Enum
|
|
167
180
|
|
|
@@ -194,7 +207,8 @@ module Openlayer
|
|
|
194
207
|
end
|
|
195
208
|
|
|
196
209
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
197
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
210
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
211
|
+
# rule is created.
|
|
198
212
|
module Type
|
|
199
213
|
extend Openlayer::Internal::Type::Enum
|
|
200
214
|
|
|
@@ -226,7 +240,8 @@ module Openlayer
|
|
|
226
240
|
end
|
|
227
241
|
end
|
|
228
242
|
|
|
229
|
-
# The kind of evidence that satisfies the rule.
|
|
243
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
244
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
230
245
|
module EvidenceType
|
|
231
246
|
extend Openlayer::Internal::Type::Enum
|
|
232
247
|
|
|
@@ -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::RuleCreateResponse::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::RuleCreateResponse::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::RuleCreateResponse::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:,
|