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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ac438403047aa9c292d52d027dc66f0ca9009a4e74ebaf3abbb2db1963a5a8b
|
|
4
|
+
data.tar.gz: f530da24caa96bd4f1beb2408287e8aa5166420fea825ded92fe154eaf966cf1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3876dfc88d12ed40790acc2791f941892ace0daff2f80882006135e3cf2825b61fceae3ddf1add5b7a33b9dd6b38c5fef1dc4ad5245c75a06299633582a8afde
|
|
7
|
+
data.tar.gz: 5ed411de93e33097db1e41e0949372407543c705e2bf8654c98778f5c3ea8fe65051301f86e05918b520c7b743452cea9e5935a8146960312a39e334078e504f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.17.0](https://github.com/openlayer-ai/openlayer-ruby/compare/v0.16.0...v0.17.0) (2026-09-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** add API key CRUD, expiry, and rotation ([9ab4992](https://github.com/openlayer-ai/openlayer-ruby/commit/9ab4992fe14b456c70122b9f66c8b86679634122))
|
|
9
|
+
* **api:** add API key CRUD, expiry, and rotation ([17edb02](https://github.com/openlayer-ai/openlayer-ruby/commit/17edb02ed93a58b224a2e5553992e9d090f6734a))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **stlc:** seal custom-code tracking files ([caa6cfb](https://github.com/openlayer-ai/openlayer-ruby/commit/caa6cfbef8534d5dc57e89b2d96815b52ab750c0))
|
|
15
|
+
* **stlc:** seal custom-code tracking files ([47a9897](https://github.com/openlayer-ai/openlayer-ruby/commit/47a9897f0d4d0ff8465f3a30fe2bce7ddfe6b390))
|
|
16
|
+
|
|
3
17
|
## [0.16.0](https://github.com/openlayer-ai/openlayer-ruby/compare/v0.15.0...v0.16.0) (2026-09-21)
|
|
4
18
|
|
|
5
19
|
|
data/README.md
CHANGED
|
@@ -61,6 +61,10 @@ module Openlayer
|
|
|
61
61
|
# Some parameter documentations has been truncated, see
|
|
62
62
|
# {Openlayer::Models::BackgroundTaskRetrieveResponse} for more details.
|
|
63
63
|
#
|
|
64
|
+
# A job queued by an endpoint that can't answer within one request, such as a
|
|
65
|
+
# framework export. Poll it until `complete` is `true`, then read what it produced
|
|
66
|
+
# from `outputs`.
|
|
67
|
+
#
|
|
64
68
|
# @param id [String] The background task id.
|
|
65
69
|
#
|
|
66
70
|
# @param complete [Boolean] Whether the task has finished. Check this before reading `outputs`.
|
|
@@ -101,7 +101,8 @@ module Openlayer
|
|
|
101
101
|
optional :creator_id, String, api_name: :creatorId, nil?: true
|
|
102
102
|
|
|
103
103
|
# @!attribute immutable
|
|
104
|
-
# Whether the framework definition is managed by Openlayer
|
|
104
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
105
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
105
106
|
#
|
|
106
107
|
# @return [Boolean, nil]
|
|
107
108
|
optional :immutable, Openlayer::Internal::Type::Boolean
|
|
@@ -121,6 +122,10 @@ module Openlayer
|
|
|
121
122
|
# Some parameter documentations has been truncated, see
|
|
122
123
|
# {Openlayer::Models::Governance::FrameworkCreateResponse} for more details.
|
|
123
124
|
#
|
|
125
|
+
# A set of rules, drawn from a regulation, a standard, or your own internal
|
|
126
|
+
# policy, that Openlayer tracks compliance against. Openlayer ships built-in
|
|
127
|
+
# frameworks, and you can create your own.
|
|
128
|
+
#
|
|
124
129
|
# @param id [String] The framework id.
|
|
125
130
|
#
|
|
126
131
|
# @param date_created [Time] The creation date.
|
|
@@ -148,7 +153,7 @@ module Openlayer
|
|
|
148
153
|
#
|
|
149
154
|
# @param href [String, nil] A link to the external standard or regulation the framework is based on.
|
|
150
155
|
#
|
|
151
|
-
# @param immutable [Boolean] Whether the framework definition is managed by Openlayer
|
|
156
|
+
# @param immutable [Boolean] Whether the framework definition is managed by Openlayer. For these frameworks o
|
|
152
157
|
#
|
|
153
158
|
# @param project_selector [Openlayer::Models::Governance::FrameworkCreateResponse::ProjectSelector, nil] Determines which projects the framework applies to. An empty or `null` `match` a
|
|
154
159
|
#
|
|
@@ -14,15 +14,20 @@ module Openlayer
|
|
|
14
14
|
required :framework_id, String
|
|
15
15
|
|
|
16
16
|
# @!attribute project_id
|
|
17
|
-
# Scope the export to this project. It must belong to the framework.
|
|
17
|
+
# Scope the export to this project. It must belong to the framework. Omit it for
|
|
18
|
+
# the workspace-wide view across every project in the framework, including
|
|
19
|
+
# workspace-scoped rules.
|
|
18
20
|
#
|
|
19
21
|
# @return [String, nil]
|
|
20
22
|
optional :project_id, String, api_name: :projectId, nil?: true
|
|
21
23
|
|
|
22
24
|
# @!method initialize(framework_id:, project_id: nil, request_options: {})
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Openlayer::Models::Governance::FrameworkExportParams} for more details.
|
|
27
|
+
#
|
|
23
28
|
# @param framework_id [String]
|
|
24
29
|
#
|
|
25
|
-
# @param project_id [String, nil] Scope the export to this project. It must belong to the framework.
|
|
30
|
+
# @param project_id [String, nil] Scope the export to this project. It must belong to the framework. Omit it for t
|
|
26
31
|
#
|
|
27
32
|
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
|
28
33
|
end
|
|
@@ -90,6 +90,8 @@ module Openlayer
|
|
|
90
90
|
api_name: :byRuleType
|
|
91
91
|
|
|
92
92
|
# @!method initialize(project_id:, project_name:, task_type:, total:, total_due_soon:, total_error:, total_failing:, total_passing:, total_pending:, total_running:, total_skipped:, by_rule_type: nil)
|
|
93
|
+
# One project's rule result counts by status, for a single framework.
|
|
94
|
+
#
|
|
93
95
|
# @param project_id [String] The project id.
|
|
94
96
|
#
|
|
95
97
|
# @param project_name [String] The project name.
|
|
@@ -111,7 +111,8 @@ module Openlayer
|
|
|
111
111
|
optional :creator_id, String, api_name: :creatorId, nil?: true
|
|
112
112
|
|
|
113
113
|
# @!attribute immutable
|
|
114
|
-
# Whether the framework definition is managed by Openlayer
|
|
114
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
115
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
115
116
|
#
|
|
116
117
|
# @return [Boolean, nil]
|
|
117
118
|
optional :immutable, Openlayer::Internal::Type::Boolean
|
|
@@ -131,6 +132,10 @@ module Openlayer
|
|
|
131
132
|
# Some parameter documentations has been truncated, see
|
|
132
133
|
# {Openlayer::Models::Governance::FrameworkListResponse::Item} for more details.
|
|
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.
|
|
138
|
+
#
|
|
134
139
|
# @param id [String] The framework id.
|
|
135
140
|
#
|
|
136
141
|
# @param date_created [Time] The creation date.
|
|
@@ -158,7 +163,7 @@ module Openlayer
|
|
|
158
163
|
#
|
|
159
164
|
# @param href [String, nil] A link to the external standard or regulation the framework is based on.
|
|
160
165
|
#
|
|
161
|
-
# @param immutable [Boolean] Whether the framework definition is managed by Openlayer
|
|
166
|
+
# @param immutable [Boolean] Whether the framework definition is managed by Openlayer. For these frameworks o
|
|
162
167
|
#
|
|
163
168
|
# @param project_selector [Openlayer::Models::Governance::FrameworkListResponse::Item::ProjectSelector, nil] Determines which projects the framework applies to. An empty or `null` `match` a
|
|
164
169
|
#
|
|
@@ -23,14 +23,16 @@ module Openlayer
|
|
|
23
23
|
|
|
24
24
|
# @!attribute scope
|
|
25
25
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
26
|
-
# the rule's frameworks apply to.
|
|
26
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
27
|
+
# the rule is created.
|
|
27
28
|
#
|
|
28
29
|
# @return [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Scope]
|
|
29
30
|
required :scope, enum: -> { Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Scope }
|
|
30
31
|
|
|
31
32
|
# @!attribute type
|
|
32
33
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
33
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
34
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
35
|
+
# rule is created.
|
|
34
36
|
#
|
|
35
37
|
# @return [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Type]
|
|
36
38
|
required :type, enum: -> { Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Type }
|
|
@@ -42,7 +44,8 @@ module Openlayer
|
|
|
42
44
|
optional :assignee_id, String, api_name: :assigneeId, nil?: true
|
|
43
45
|
|
|
44
46
|
# @!attribute automation_params
|
|
45
|
-
# Configuration for the platform check, when the automation takes parameters.
|
|
47
|
+
# Configuration for the platform check, when the automation takes parameters. Omit
|
|
48
|
+
# or `null` for evidence rules. Fixed once the rule is created.
|
|
46
49
|
#
|
|
47
50
|
# @return [Hash{Symbol=>Object}, nil]
|
|
48
51
|
optional :automation_params,
|
|
@@ -52,8 +55,9 @@ module Openlayer
|
|
|
52
55
|
|
|
53
56
|
# @!attribute automation_type
|
|
54
57
|
# Which workspace signal a platform rule checks, for example
|
|
55
|
-
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`.
|
|
56
|
-
# evidence rules.
|
|
58
|
+
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
|
|
59
|
+
# platform rules; omit or `null` for evidence rules. Fixed once the rule is
|
|
60
|
+
# created.
|
|
57
61
|
#
|
|
58
62
|
# @return [String, nil]
|
|
59
63
|
optional :automation_type, String, api_name: :automationType, nil?: true
|
|
@@ -71,7 +75,8 @@ module Openlayer
|
|
|
71
75
|
optional :description, String, nil?: true
|
|
72
76
|
|
|
73
77
|
# @!attribute evidence_type
|
|
74
|
-
# The kind of evidence that satisfies the rule.
|
|
78
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
79
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
75
80
|
#
|
|
76
81
|
# @return [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::EvidenceType, nil]
|
|
77
82
|
optional :evidence_type,
|
|
@@ -81,7 +86,8 @@ module Openlayer
|
|
|
81
86
|
|
|
82
87
|
# @!attribute renewal_cadence_days
|
|
83
88
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
84
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
89
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
90
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
85
91
|
#
|
|
86
92
|
# @return [Integer, nil]
|
|
87
93
|
optional :renewal_cadence_days, Integer, api_name: :renewalCadenceDays, nil?: true
|
|
@@ -119,7 +125,8 @@ module Openlayer
|
|
|
119
125
|
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Framework] }
|
|
120
126
|
|
|
121
127
|
# @!attribute immutable
|
|
122
|
-
# Whether the rule is managed by Openlayer
|
|
128
|
+
# Whether the rule is managed by Openlayer. These rules can't be renamed or
|
|
129
|
+
# deleted; set `deactivated` to exclude one from compliance instead.
|
|
123
130
|
#
|
|
124
131
|
# @return [Boolean, nil]
|
|
125
132
|
optional :immutable, Openlayer::Internal::Type::Boolean
|
|
@@ -156,6 +163,11 @@ module Openlayer
|
|
|
156
163
|
# {Openlayer::Models::Governance::FrameworkListRulesResponse::Item} for more
|
|
157
164
|
# details.
|
|
158
165
|
#
|
|
166
|
+
# A single requirement Openlayer tracks. `platform` rules are evaluated
|
|
167
|
+
# automatically from the state of your workspace, and `evidence` rules are
|
|
168
|
+
# satisfied by attaching evidence. A rule can belong to several frameworks, or to
|
|
169
|
+
# none.
|
|
170
|
+
#
|
|
159
171
|
# @param id [String] The rule id.
|
|
160
172
|
#
|
|
161
173
|
# @param date_created [Time] The creation date.
|
|
@@ -172,7 +184,7 @@ module Openlayer
|
|
|
172
184
|
#
|
|
173
185
|
# @param assignee_id [String, nil] The user responsible for satisfying the rule.
|
|
174
186
|
#
|
|
175
|
-
# @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters.
|
|
187
|
+
# @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters. Omit
|
|
176
188
|
#
|
|
177
189
|
# @param automation_type [String, nil] Which workspace signal a platform rule checks, for example `monitoring_mode_enab
|
|
178
190
|
#
|
|
@@ -180,11 +192,11 @@ module Openlayer
|
|
|
180
192
|
#
|
|
181
193
|
# @param description [String, nil] What the rule requires.
|
|
182
194
|
#
|
|
183
|
-
# @param evidence_type [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::EvidenceType, nil] The kind of evidence that satisfies the rule.
|
|
195
|
+
# @param evidence_type [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::EvidenceType, nil] The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
184
196
|
#
|
|
185
197
|
# @param frameworks [Array<Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Framework>] The frameworks that include this rule.
|
|
186
198
|
#
|
|
187
|
-
# @param immutable [Boolean] Whether the rule is managed by Openlayer
|
|
199
|
+
# @param immutable [Boolean] Whether the rule is managed by Openlayer. These rules can't be renamed or delete
|
|
188
200
|
#
|
|
189
201
|
# @param renewal_cadence_days [Integer, nil] How often evidence must be renewed, in days. Once evidence is older than this, t
|
|
190
202
|
#
|
|
@@ -195,7 +207,8 @@ module Openlayer
|
|
|
195
207
|
# @param tags [Array<Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Tag>, nil] The rule tags associated with the rule.
|
|
196
208
|
|
|
197
209
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
198
|
-
# the rule's frameworks apply to.
|
|
210
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
211
|
+
# the rule is created.
|
|
199
212
|
#
|
|
200
213
|
# @see Openlayer::Models::Governance::FrameworkListRulesResponse::Item#scope
|
|
201
214
|
module Scope
|
|
@@ -209,7 +222,8 @@ module Openlayer
|
|
|
209
222
|
end
|
|
210
223
|
|
|
211
224
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
212
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
225
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
226
|
+
# rule is created.
|
|
213
227
|
#
|
|
214
228
|
# @see Openlayer::Models::Governance::FrameworkListRulesResponse::Item#type
|
|
215
229
|
module Type
|
|
@@ -222,7 +236,8 @@ module Openlayer
|
|
|
222
236
|
# @return [Array<Symbol>]
|
|
223
237
|
end
|
|
224
238
|
|
|
225
|
-
# The kind of evidence that satisfies the rule.
|
|
239
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
240
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
226
241
|
#
|
|
227
242
|
# @see Openlayer::Models::Governance::FrameworkListRulesResponse::Item#evidence_type
|
|
228
243
|
module EvidenceType
|
|
@@ -326,13 +341,15 @@ module Openlayer
|
|
|
326
341
|
|
|
327
342
|
class Result < Openlayer::Internal::Type::BaseModel
|
|
328
343
|
# @!attribute deactivated
|
|
329
|
-
# Whether this result is excluded from compliance calculations.
|
|
344
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
345
|
+
# result, without deactivating the rule everywhere.
|
|
330
346
|
#
|
|
331
347
|
# @return [Boolean]
|
|
332
348
|
required :deactivated, Openlayer::Internal::Type::Boolean
|
|
333
349
|
|
|
334
350
|
# @!attribute status
|
|
335
|
-
# The compliance status of the rule for this entity.
|
|
351
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
352
|
+
# can't be set directly.
|
|
336
353
|
#
|
|
337
354
|
# @return [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Status]
|
|
338
355
|
required :status,
|
|
@@ -360,7 +377,7 @@ module Openlayer
|
|
|
360
377
|
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Blocking] }
|
|
361
378
|
|
|
362
379
|
# @!attribute deactivated_reason
|
|
363
|
-
# Why the result was excluded.
|
|
380
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
364
381
|
#
|
|
365
382
|
# @return [String, nil]
|
|
366
383
|
optional :deactivated_reason, String, api_name: :deactivatedReason, nil?: true
|
|
@@ -434,17 +451,24 @@ module Openlayer
|
|
|
434
451
|
end
|
|
435
452
|
|
|
436
453
|
# @!method initialize(id:, date_created:, date_updated:, deactivated:, rule_id:, status:, workspace_id:, assignee_id: nil, blocked_by: nil, blocking: nil, date_last_evaluated: nil, date_of_latest_evidence: nil, date_of_next_evaluation: nil, date_of_renewal: nil, deactivated_reason: nil, project_id: nil, status_message: nil)
|
|
454
|
+
# Some parameter documentations has been truncated, see
|
|
455
|
+
# {Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result} for
|
|
456
|
+
# more details.
|
|
457
|
+
#
|
|
458
|
+
# The compliance status of one rule for one entity: a project for project-scoped
|
|
459
|
+
# rules, or the workspace for workspace-scoped rules.
|
|
460
|
+
#
|
|
437
461
|
# @param id [String] The rule result id.
|
|
438
462
|
#
|
|
439
463
|
# @param date_created [Time] The creation date.
|
|
440
464
|
#
|
|
441
465
|
# @param date_updated [Time] The last update date.
|
|
442
466
|
#
|
|
443
|
-
# @param deactivated [Boolean] Whether this result is excluded from compliance calculations.
|
|
467
|
+
# @param deactivated [Boolean] Whether this result is excluded from compliance calculations. Excludes just this
|
|
444
468
|
#
|
|
445
469
|
# @param rule_id [String] The rule this result belongs to.
|
|
446
470
|
#
|
|
447
|
-
# @param status [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Status] The compliance status of the rule for this entity.
|
|
471
|
+
# @param status [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
|
|
448
472
|
#
|
|
449
473
|
# @param workspace_id [String] The id of the workspace the rule result belongs to.
|
|
450
474
|
#
|
|
@@ -462,13 +486,14 @@ module Openlayer
|
|
|
462
486
|
#
|
|
463
487
|
# @param date_of_renewal [Time, nil] When the evidence must be renewed. Evidence rules with a renewal cadence only.
|
|
464
488
|
#
|
|
465
|
-
# @param deactivated_reason [String, nil] Why the result was excluded.
|
|
489
|
+
# @param deactivated_reason [String, nil] Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
466
490
|
#
|
|
467
491
|
# @param project_id [String, nil] The project this result was evaluated for. `null` for workspace-scoped rules.
|
|
468
492
|
#
|
|
469
493
|
# @param status_message [String, nil] A human-readable explanation of the status.
|
|
470
494
|
|
|
471
|
-
# The compliance status of the rule for this entity.
|
|
495
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
496
|
+
# can't be set directly.
|
|
472
497
|
#
|
|
473
498
|
# @see Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result#status
|
|
474
499
|
module Status
|
|
@@ -493,18 +518,24 @@ module Openlayer
|
|
|
493
518
|
optional :id, String
|
|
494
519
|
|
|
495
520
|
# @!attribute status
|
|
496
|
-
# The compliance status of the rule for this entity.
|
|
521
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
522
|
+
# can't be set directly.
|
|
497
523
|
#
|
|
498
524
|
# @return [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::BlockedBy::Status, nil]
|
|
499
525
|
optional :status,
|
|
500
526
|
enum: -> { Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::BlockedBy::Status }
|
|
501
527
|
|
|
502
528
|
# @!method initialize(id: nil, status: nil)
|
|
529
|
+
# Some parameter documentations has been truncated, see
|
|
530
|
+
# {Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::BlockedBy}
|
|
531
|
+
# for more details.
|
|
532
|
+
#
|
|
503
533
|
# @param id [String]
|
|
504
534
|
#
|
|
505
|
-
# @param status [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::BlockedBy::Status] The compliance status of the rule for this entity.
|
|
535
|
+
# @param status [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
|
|
506
536
|
|
|
507
|
-
# The compliance status of the rule for this entity.
|
|
537
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
538
|
+
# can't be set directly.
|
|
508
539
|
#
|
|
509
540
|
# @see Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::BlockedBy#status
|
|
510
541
|
module Status
|
|
@@ -530,18 +561,24 @@ module Openlayer
|
|
|
530
561
|
optional :id, String
|
|
531
562
|
|
|
532
563
|
# @!attribute status
|
|
533
|
-
# The compliance status of the rule for this entity.
|
|
564
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
565
|
+
# can't be set directly.
|
|
534
566
|
#
|
|
535
567
|
# @return [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Blocking::Status, nil]
|
|
536
568
|
optional :status,
|
|
537
569
|
enum: -> { Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Blocking::Status }
|
|
538
570
|
|
|
539
571
|
# @!method initialize(id: nil, status: nil)
|
|
572
|
+
# Some parameter documentations has been truncated, see
|
|
573
|
+
# {Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Blocking}
|
|
574
|
+
# for more details.
|
|
575
|
+
#
|
|
540
576
|
# @param id [String]
|
|
541
577
|
#
|
|
542
|
-
# @param status [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Blocking::Status] The compliance status of the rule for this entity.
|
|
578
|
+
# @param status [Symbol, Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
|
|
543
579
|
|
|
544
|
-
# The compliance status of the rule for this entity.
|
|
580
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
581
|
+
# can't be set directly.
|
|
545
582
|
#
|
|
546
583
|
# @see Openlayer::Models::Governance::FrameworkListRulesResponse::Item::Result::Blocking#status
|
|
547
584
|
module Status
|
|
@@ -620,7 +657,7 @@ module Openlayer
|
|
|
620
657
|
required :date_updated, Time, api_name: :dateUpdated
|
|
621
658
|
|
|
622
659
|
# @!attribute immutable
|
|
623
|
-
# Whether the tag is managed by Openlayer
|
|
660
|
+
# Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
624
661
|
#
|
|
625
662
|
# @return [Boolean]
|
|
626
663
|
required :immutable, Openlayer::Internal::Type::Boolean
|
|
@@ -633,6 +670,9 @@ module Openlayer
|
|
|
633
670
|
end
|
|
634
671
|
|
|
635
672
|
# @!method initialize(id:, creator_id:, date_created:, date_updated:, immutable:, name:, workspace_id:, color: nil)
|
|
673
|
+
# A label that groups rules across frameworks, for example by team or control
|
|
674
|
+
# family.
|
|
675
|
+
#
|
|
636
676
|
# @param id [String] The rule tag id.
|
|
637
677
|
#
|
|
638
678
|
# @param creator_id [String, nil] The user who created the tag. `null` for tags that ship with Openlayer.
|
|
@@ -641,7 +681,7 @@ module Openlayer
|
|
|
641
681
|
#
|
|
642
682
|
# @param date_updated [Time] The last update date.
|
|
643
683
|
#
|
|
644
|
-
# @param immutable [Boolean] Whether the tag is managed by Openlayer
|
|
684
|
+
# @param immutable [Boolean] Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
645
685
|
#
|
|
646
686
|
# @param name [String] The tag name.
|
|
647
687
|
#
|
|
@@ -101,7 +101,8 @@ module Openlayer
|
|
|
101
101
|
optional :creator_id, String, api_name: :creatorId, nil?: true
|
|
102
102
|
|
|
103
103
|
# @!attribute immutable
|
|
104
|
-
# Whether the framework definition is managed by Openlayer
|
|
104
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
105
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
105
106
|
#
|
|
106
107
|
# @return [Boolean, nil]
|
|
107
108
|
optional :immutable, Openlayer::Internal::Type::Boolean
|
|
@@ -121,6 +122,10 @@ module Openlayer
|
|
|
121
122
|
# Some parameter documentations has been truncated, see
|
|
122
123
|
# {Openlayer::Models::Governance::FrameworkRetrieveResponse} for more details.
|
|
123
124
|
#
|
|
125
|
+
# A set of rules, drawn from a regulation, a standard, or your own internal
|
|
126
|
+
# policy, that Openlayer tracks compliance against. Openlayer ships built-in
|
|
127
|
+
# frameworks, and you can create your own.
|
|
128
|
+
#
|
|
124
129
|
# @param id [String] The framework id.
|
|
125
130
|
#
|
|
126
131
|
# @param date_created [Time] The creation date.
|
|
@@ -148,7 +153,7 @@ module Openlayer
|
|
|
148
153
|
#
|
|
149
154
|
# @param href [String, nil] A link to the external standard or regulation the framework is based on.
|
|
150
155
|
#
|
|
151
|
-
# @param immutable [Boolean] Whether the framework definition is managed by Openlayer
|
|
156
|
+
# @param immutable [Boolean] Whether the framework definition is managed by Openlayer. For these frameworks o
|
|
152
157
|
#
|
|
153
158
|
# @param project_selector [Openlayer::Models::Governance::FrameworkRetrieveResponse::ProjectSelector, nil] Determines which projects the framework applies to. An empty or `null` `match` a
|
|
154
159
|
#
|
|
@@ -101,7 +101,8 @@ module Openlayer
|
|
|
101
101
|
optional :creator_id, String, api_name: :creatorId, nil?: true
|
|
102
102
|
|
|
103
103
|
# @!attribute immutable
|
|
104
|
-
# Whether the framework definition is managed by Openlayer
|
|
104
|
+
# Whether the framework definition is managed by Openlayer. For these frameworks
|
|
105
|
+
# only `enabled`, `tags`, and `projectSelector` can be changed.
|
|
105
106
|
#
|
|
106
107
|
# @return [Boolean, nil]
|
|
107
108
|
optional :immutable, Openlayer::Internal::Type::Boolean
|
|
@@ -121,6 +122,10 @@ module Openlayer
|
|
|
121
122
|
# Some parameter documentations has been truncated, see
|
|
122
123
|
# {Openlayer::Models::Governance::FrameworkUpdateResponse} for more details.
|
|
123
124
|
#
|
|
125
|
+
# A set of rules, drawn from a regulation, a standard, or your own internal
|
|
126
|
+
# policy, that Openlayer tracks compliance against. Openlayer ships built-in
|
|
127
|
+
# frameworks, and you can create your own.
|
|
128
|
+
#
|
|
124
129
|
# @param id [String] The framework id.
|
|
125
130
|
#
|
|
126
131
|
# @param date_created [Time] The creation date.
|
|
@@ -148,7 +153,7 @@ module Openlayer
|
|
|
148
153
|
#
|
|
149
154
|
# @param href [String, nil] A link to the external standard or regulation the framework is based on.
|
|
150
155
|
#
|
|
151
|
-
# @param immutable [Boolean] Whether the framework definition is managed by Openlayer
|
|
156
|
+
# @param immutable [Boolean] Whether the framework definition is managed by Openlayer. For these frameworks o
|
|
152
157
|
#
|
|
153
158
|
# @param project_selector [Openlayer::Models::Governance::FrameworkUpdateResponse::ProjectSelector, nil] Determines which projects the framework applies to. An empty or `null` `match` a
|
|
154
159
|
#
|