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
|
@@ -21,14 +21,16 @@ module Openlayer
|
|
|
21
21
|
|
|
22
22
|
# @!attribute scope
|
|
23
23
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
24
|
-
# the rule's frameworks apply to.
|
|
24
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
25
|
+
# the rule is created.
|
|
25
26
|
#
|
|
26
27
|
# @return [Symbol, Openlayer::Models::Governance::RuleCreateParams::Scope]
|
|
27
28
|
required :scope, enum: -> { Openlayer::Governance::RuleCreateParams::Scope }
|
|
28
29
|
|
|
29
30
|
# @!attribute type
|
|
30
31
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
31
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
32
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
33
|
+
# rule is created.
|
|
32
34
|
#
|
|
33
35
|
# @return [Symbol, Openlayer::Models::Governance::RuleCreateParams::Type]
|
|
34
36
|
required :type, enum: -> { Openlayer::Governance::RuleCreateParams::Type }
|
|
@@ -40,7 +42,8 @@ module Openlayer
|
|
|
40
42
|
optional :assignee_id, String, api_name: :assigneeId, nil?: true
|
|
41
43
|
|
|
42
44
|
# @!attribute automation_params
|
|
43
|
-
# Configuration for the platform check, when the automation takes parameters.
|
|
45
|
+
# Configuration for the platform check, when the automation takes parameters. Omit
|
|
46
|
+
# or `null` for evidence rules. Fixed once the rule is created.
|
|
44
47
|
#
|
|
45
48
|
# @return [Hash{Symbol=>Object}, nil]
|
|
46
49
|
optional :automation_params,
|
|
@@ -50,8 +53,9 @@ module Openlayer
|
|
|
50
53
|
|
|
51
54
|
# @!attribute automation_type
|
|
52
55
|
# Which workspace signal a platform rule checks, for example
|
|
53
|
-
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`.
|
|
54
|
-
# evidence rules.
|
|
56
|
+
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
|
|
57
|
+
# platform rules; omit or `null` for evidence rules. Fixed once the rule is
|
|
58
|
+
# created.
|
|
55
59
|
#
|
|
56
60
|
# @return [String, nil]
|
|
57
61
|
optional :automation_type, String, api_name: :automationType, nil?: true
|
|
@@ -69,7 +73,8 @@ module Openlayer
|
|
|
69
73
|
optional :description, String, nil?: true
|
|
70
74
|
|
|
71
75
|
# @!attribute evidence_type
|
|
72
|
-
# The kind of evidence that satisfies the rule.
|
|
76
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
77
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
73
78
|
#
|
|
74
79
|
# @return [Symbol, Openlayer::Models::Governance::RuleCreateParams::EvidenceType, nil]
|
|
75
80
|
optional :evidence_type,
|
|
@@ -79,7 +84,8 @@ module Openlayer
|
|
|
79
84
|
|
|
80
85
|
# @!attribute renewal_cadence_days
|
|
81
86
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
82
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
87
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
88
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
83
89
|
#
|
|
84
90
|
# @return [Integer, nil]
|
|
85
91
|
optional :renewal_cadence_days, Integer, api_name: :renewalCadenceDays, nil?: true
|
|
@@ -106,7 +112,7 @@ module Openlayer
|
|
|
106
112
|
#
|
|
107
113
|
# @param assignee_id [String, nil] The user responsible for satisfying the rule.
|
|
108
114
|
#
|
|
109
|
-
# @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters.
|
|
115
|
+
# @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters. Omit
|
|
110
116
|
#
|
|
111
117
|
# @param automation_type [String, nil] Which workspace signal a platform rule checks, for example `monitoring_mode_enab
|
|
112
118
|
#
|
|
@@ -114,7 +120,7 @@ module Openlayer
|
|
|
114
120
|
#
|
|
115
121
|
# @param description [String, nil] What the rule requires.
|
|
116
122
|
#
|
|
117
|
-
# @param evidence_type [Symbol, Openlayer::Models::Governance::RuleCreateParams::EvidenceType, nil] The kind of evidence that satisfies the rule.
|
|
123
|
+
# @param evidence_type [Symbol, Openlayer::Models::Governance::RuleCreateParams::EvidenceType, nil] The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
118
124
|
#
|
|
119
125
|
# @param renewal_cadence_days [Integer, nil] How often evidence must be renewed, in days. Once evidence is older than this, t
|
|
120
126
|
#
|
|
@@ -123,7 +129,8 @@ module Openlayer
|
|
|
123
129
|
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
|
124
130
|
|
|
125
131
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
126
|
-
# the rule's frameworks apply to.
|
|
132
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
133
|
+
# the rule is created.
|
|
127
134
|
module Scope
|
|
128
135
|
extend Openlayer::Internal::Type::Enum
|
|
129
136
|
|
|
@@ -135,7 +142,8 @@ module Openlayer
|
|
|
135
142
|
end
|
|
136
143
|
|
|
137
144
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
138
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
145
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
146
|
+
# rule is created.
|
|
139
147
|
module Type
|
|
140
148
|
extend Openlayer::Internal::Type::Enum
|
|
141
149
|
|
|
@@ -146,7 +154,8 @@ module Openlayer
|
|
|
146
154
|
# @return [Array<Symbol>]
|
|
147
155
|
end
|
|
148
156
|
|
|
149
|
-
# The kind of evidence that satisfies the rule.
|
|
157
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
158
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
150
159
|
module EvidenceType
|
|
151
160
|
extend Openlayer::Internal::Type::Enum
|
|
152
161
|
|
|
@@ -13,14 +13,16 @@ module Openlayer
|
|
|
13
13
|
|
|
14
14
|
# @!attribute scope
|
|
15
15
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
16
|
-
# the rule's frameworks apply to.
|
|
16
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
17
|
+
# the rule is created.
|
|
17
18
|
#
|
|
18
19
|
# @return [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Scope]
|
|
19
20
|
required :scope, enum: -> { Openlayer::Models::Governance::RuleCreateResponse::Scope }
|
|
20
21
|
|
|
21
22
|
# @!attribute type
|
|
22
23
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
23
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
24
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
25
|
+
# rule is created.
|
|
24
26
|
#
|
|
25
27
|
# @return [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Type]
|
|
26
28
|
required :type, enum: -> { Openlayer::Models::Governance::RuleCreateResponse::Type }
|
|
@@ -32,7 +34,8 @@ module Openlayer
|
|
|
32
34
|
optional :assignee_id, String, api_name: :assigneeId, nil?: true
|
|
33
35
|
|
|
34
36
|
# @!attribute automation_params
|
|
35
|
-
# Configuration for the platform check, when the automation takes parameters.
|
|
37
|
+
# Configuration for the platform check, when the automation takes parameters. Omit
|
|
38
|
+
# or `null` for evidence rules. Fixed once the rule is created.
|
|
36
39
|
#
|
|
37
40
|
# @return [Hash{Symbol=>Object}, nil]
|
|
38
41
|
optional :automation_params,
|
|
@@ -42,8 +45,9 @@ module Openlayer
|
|
|
42
45
|
|
|
43
46
|
# @!attribute automation_type
|
|
44
47
|
# Which workspace signal a platform rule checks, for example
|
|
45
|
-
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`.
|
|
46
|
-
# evidence rules.
|
|
48
|
+
# `monitoring_mode_enabled`, `test_setup`, or `project_owner_set`. Set it for
|
|
49
|
+
# platform rules; omit or `null` for evidence rules. Fixed once the rule is
|
|
50
|
+
# created.
|
|
47
51
|
#
|
|
48
52
|
# @return [String, nil]
|
|
49
53
|
optional :automation_type, String, api_name: :automationType, nil?: true
|
|
@@ -61,7 +65,8 @@ module Openlayer
|
|
|
61
65
|
optional :description, String, nil?: true
|
|
62
66
|
|
|
63
67
|
# @!attribute evidence_type
|
|
64
|
-
# The kind of evidence that satisfies the rule.
|
|
68
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
69
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
65
70
|
#
|
|
66
71
|
# @return [Symbol, Openlayer::Models::Governance::RuleCreateResponse::EvidenceType, nil]
|
|
67
72
|
optional :evidence_type,
|
|
@@ -71,7 +76,8 @@ module Openlayer
|
|
|
71
76
|
|
|
72
77
|
# @!attribute renewal_cadence_days
|
|
73
78
|
# How often evidence must be renewed, in days. Once evidence is older than this,
|
|
74
|
-
# the rule result becomes `due_soon` and then `failing`.
|
|
79
|
+
# the rule result becomes `due_soon` and then `failing`. The window restarts
|
|
80
|
+
# whenever evidence is attached. Omit or `null` for platform rules.
|
|
75
81
|
#
|
|
76
82
|
# @return [Integer, nil]
|
|
77
83
|
optional :renewal_cadence_days, Integer, api_name: :renewalCadenceDays, nil?: true
|
|
@@ -109,7 +115,8 @@ module Openlayer
|
|
|
109
115
|
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleCreateResponse::Framework] }
|
|
110
116
|
|
|
111
117
|
# @!attribute immutable
|
|
112
|
-
# Whether the rule is managed by Openlayer
|
|
118
|
+
# Whether the rule is managed by Openlayer. These rules can't be renamed or
|
|
119
|
+
# deleted; set `deactivated` to exclude one from compliance instead.
|
|
113
120
|
#
|
|
114
121
|
# @return [Boolean, nil]
|
|
115
122
|
optional :immutable, Openlayer::Internal::Type::Boolean
|
|
@@ -145,6 +152,11 @@ module Openlayer
|
|
|
145
152
|
# Some parameter documentations has been truncated, see
|
|
146
153
|
# {Openlayer::Models::Governance::RuleCreateResponse} for more details.
|
|
147
154
|
#
|
|
155
|
+
# A single requirement Openlayer tracks. `platform` rules are evaluated
|
|
156
|
+
# automatically from the state of your workspace, and `evidence` rules are
|
|
157
|
+
# satisfied by attaching evidence. A rule can belong to several frameworks, or to
|
|
158
|
+
# none.
|
|
159
|
+
#
|
|
148
160
|
# @param id [String] The rule id.
|
|
149
161
|
#
|
|
150
162
|
# @param date_created [Time] The creation date.
|
|
@@ -161,7 +173,7 @@ module Openlayer
|
|
|
161
173
|
#
|
|
162
174
|
# @param assignee_id [String, nil] The user responsible for satisfying the rule.
|
|
163
175
|
#
|
|
164
|
-
# @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters.
|
|
176
|
+
# @param automation_params [Hash{Symbol=>Object}, nil] Configuration for the platform check, when the automation takes parameters. Omit
|
|
165
177
|
#
|
|
166
178
|
# @param automation_type [String, nil] Which workspace signal a platform rule checks, for example `monitoring_mode_enab
|
|
167
179
|
#
|
|
@@ -169,11 +181,11 @@ module Openlayer
|
|
|
169
181
|
#
|
|
170
182
|
# @param description [String, nil] What the rule requires.
|
|
171
183
|
#
|
|
172
|
-
# @param evidence_type [Symbol, Openlayer::Models::Governance::RuleCreateResponse::EvidenceType, nil] The kind of evidence that satisfies the rule.
|
|
184
|
+
# @param evidence_type [Symbol, Openlayer::Models::Governance::RuleCreateResponse::EvidenceType, nil] The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
173
185
|
#
|
|
174
186
|
# @param frameworks [Array<Openlayer::Models::Governance::RuleCreateResponse::Framework>] The frameworks that include this rule.
|
|
175
187
|
#
|
|
176
|
-
# @param immutable [Boolean] Whether the rule is managed by Openlayer
|
|
188
|
+
# @param immutable [Boolean] Whether the rule is managed by Openlayer. These rules can't be renamed or delete
|
|
177
189
|
#
|
|
178
190
|
# @param renewal_cadence_days [Integer, nil] How often evidence must be renewed, in days. Once evidence is older than this, t
|
|
179
191
|
#
|
|
@@ -184,7 +196,8 @@ module Openlayer
|
|
|
184
196
|
# @param tags [Array<Openlayer::Models::Governance::RuleCreateResponse::Tag>, nil] The rule tags associated with the rule.
|
|
185
197
|
|
|
186
198
|
# Whether the rule is evaluated once for the whole workspace, or once per project
|
|
187
|
-
# the rule's frameworks apply to.
|
|
199
|
+
# the rule's frameworks apply to. Must be `project` for platform rules. Fixed once
|
|
200
|
+
# the rule is created.
|
|
188
201
|
#
|
|
189
202
|
# @see Openlayer::Models::Governance::RuleCreateResponse#scope
|
|
190
203
|
module Scope
|
|
@@ -198,7 +211,8 @@ module Openlayer
|
|
|
198
211
|
end
|
|
199
212
|
|
|
200
213
|
# `platform` rules are evaluated automatically from the state of your Openlayer
|
|
201
|
-
# workspace. `evidence` rules are satisfied by attaching evidence.
|
|
214
|
+
# workspace. `evidence` rules are satisfied by attaching evidence. Fixed once the
|
|
215
|
+
# rule is created.
|
|
202
216
|
#
|
|
203
217
|
# @see Openlayer::Models::Governance::RuleCreateResponse#type
|
|
204
218
|
module Type
|
|
@@ -211,7 +225,8 @@ module Openlayer
|
|
|
211
225
|
# @return [Array<Symbol>]
|
|
212
226
|
end
|
|
213
227
|
|
|
214
|
-
# The kind of evidence that satisfies the rule.
|
|
228
|
+
# The kind of evidence that satisfies the rule. Set it for evidence rules; omit or
|
|
229
|
+
# `null` for platform rules. Fixed once the rule is created.
|
|
215
230
|
#
|
|
216
231
|
# @see Openlayer::Models::Governance::RuleCreateResponse#evidence_type
|
|
217
232
|
module EvidenceType
|
|
@@ -311,13 +326,15 @@ module Openlayer
|
|
|
311
326
|
|
|
312
327
|
class Result < Openlayer::Internal::Type::BaseModel
|
|
313
328
|
# @!attribute deactivated
|
|
314
|
-
# Whether this result is excluded from compliance calculations.
|
|
329
|
+
# Whether this result is excluded from compliance calculations. Excludes just this
|
|
330
|
+
# result, without deactivating the rule everywhere.
|
|
315
331
|
#
|
|
316
332
|
# @return [Boolean]
|
|
317
333
|
required :deactivated, Openlayer::Internal::Type::Boolean
|
|
318
334
|
|
|
319
335
|
# @!attribute status
|
|
320
|
-
# The compliance status of the rule for this entity.
|
|
336
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
337
|
+
# can't be set directly.
|
|
321
338
|
#
|
|
322
339
|
# @return [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Result::Status]
|
|
323
340
|
required :status, enum: -> { Openlayer::Models::Governance::RuleCreateResponse::Result::Status }
|
|
@@ -344,7 +361,7 @@ module Openlayer
|
|
|
344
361
|
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleCreateResponse::Result::Blocking] }
|
|
345
362
|
|
|
346
363
|
# @!attribute deactivated_reason
|
|
347
|
-
# Why the result was excluded.
|
|
364
|
+
# Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
348
365
|
#
|
|
349
366
|
# @return [String, nil]
|
|
350
367
|
optional :deactivated_reason, String, api_name: :deactivatedReason, nil?: true
|
|
@@ -418,17 +435,23 @@ module Openlayer
|
|
|
418
435
|
end
|
|
419
436
|
|
|
420
437
|
# @!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)
|
|
438
|
+
# Some parameter documentations has been truncated, see
|
|
439
|
+
# {Openlayer::Models::Governance::RuleCreateResponse::Result} for more details.
|
|
440
|
+
#
|
|
441
|
+
# The compliance status of one rule for one entity: a project for project-scoped
|
|
442
|
+
# rules, or the workspace for workspace-scoped rules.
|
|
443
|
+
#
|
|
421
444
|
# @param id [String] The rule result id.
|
|
422
445
|
#
|
|
423
446
|
# @param date_created [Time] The creation date.
|
|
424
447
|
#
|
|
425
448
|
# @param date_updated [Time] The last update date.
|
|
426
449
|
#
|
|
427
|
-
# @param deactivated [Boolean] Whether this result is excluded from compliance calculations.
|
|
450
|
+
# @param deactivated [Boolean] Whether this result is excluded from compliance calculations. Excludes just this
|
|
428
451
|
#
|
|
429
452
|
# @param rule_id [String] The rule this result belongs to.
|
|
430
453
|
#
|
|
431
|
-
# @param status [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Result::Status] The compliance status of the rule for this entity.
|
|
454
|
+
# @param status [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Result::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
|
|
432
455
|
#
|
|
433
456
|
# @param workspace_id [String] The id of the workspace the rule result belongs to.
|
|
434
457
|
#
|
|
@@ -446,13 +469,14 @@ module Openlayer
|
|
|
446
469
|
#
|
|
447
470
|
# @param date_of_renewal [Time, nil] When the evidence must be renewed. Evidence rules with a renewal cadence only.
|
|
448
471
|
#
|
|
449
|
-
# @param deactivated_reason [String, nil] Why the result was excluded.
|
|
472
|
+
# @param deactivated_reason [String, nil] Why the result was excluded. Required when setting `deactivated` to `true`.
|
|
450
473
|
#
|
|
451
474
|
# @param project_id [String, nil] The project this result was evaluated for. `null` for workspace-scoped rules.
|
|
452
475
|
#
|
|
453
476
|
# @param status_message [String, nil] A human-readable explanation of the status.
|
|
454
477
|
|
|
455
|
-
# The compliance status of the rule for this entity.
|
|
478
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
479
|
+
# can't be set directly.
|
|
456
480
|
#
|
|
457
481
|
# @see Openlayer::Models::Governance::RuleCreateResponse::Result#status
|
|
458
482
|
module Status
|
|
@@ -477,18 +501,24 @@ module Openlayer
|
|
|
477
501
|
optional :id, String
|
|
478
502
|
|
|
479
503
|
# @!attribute status
|
|
480
|
-
# The compliance status of the rule for this entity.
|
|
504
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
505
|
+
# can't be set directly.
|
|
481
506
|
#
|
|
482
507
|
# @return [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Result::BlockedBy::Status, nil]
|
|
483
508
|
optional :status,
|
|
484
509
|
enum: -> { Openlayer::Models::Governance::RuleCreateResponse::Result::BlockedBy::Status }
|
|
485
510
|
|
|
486
511
|
# @!method initialize(id: nil, status: nil)
|
|
512
|
+
# Some parameter documentations has been truncated, see
|
|
513
|
+
# {Openlayer::Models::Governance::RuleCreateResponse::Result::BlockedBy} for more
|
|
514
|
+
# details.
|
|
515
|
+
#
|
|
487
516
|
# @param id [String]
|
|
488
517
|
#
|
|
489
|
-
# @param status [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Result::BlockedBy::Status] The compliance status of the rule for this entity.
|
|
518
|
+
# @param status [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Result::BlockedBy::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
|
|
490
519
|
|
|
491
|
-
# The compliance status of the rule for this entity.
|
|
520
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
521
|
+
# can't be set directly.
|
|
492
522
|
#
|
|
493
523
|
# @see Openlayer::Models::Governance::RuleCreateResponse::Result::BlockedBy#status
|
|
494
524
|
module Status
|
|
@@ -514,17 +544,23 @@ module Openlayer
|
|
|
514
544
|
optional :id, String
|
|
515
545
|
|
|
516
546
|
# @!attribute status
|
|
517
|
-
# The compliance status of the rule for this entity.
|
|
547
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
548
|
+
# can't be set directly.
|
|
518
549
|
#
|
|
519
550
|
# @return [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Result::Blocking::Status, nil]
|
|
520
551
|
optional :status, enum: -> { Openlayer::Models::Governance::RuleCreateResponse::Result::Blocking::Status }
|
|
521
552
|
|
|
522
553
|
# @!method initialize(id: nil, status: nil)
|
|
554
|
+
# Some parameter documentations has been truncated, see
|
|
555
|
+
# {Openlayer::Models::Governance::RuleCreateResponse::Result::Blocking} for more
|
|
556
|
+
# details.
|
|
557
|
+
#
|
|
523
558
|
# @param id [String]
|
|
524
559
|
#
|
|
525
|
-
# @param status [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Result::Blocking::Status] The compliance status of the rule for this entity.
|
|
560
|
+
# @param status [Symbol, Openlayer::Models::Governance::RuleCreateResponse::Result::Blocking::Status] The compliance status of the rule for this entity. Computed by Openlayer and can
|
|
526
561
|
|
|
527
|
-
# The compliance status of the rule for this entity.
|
|
562
|
+
# The compliance status of the rule for this entity. Computed by Openlayer and
|
|
563
|
+
# can't be set directly.
|
|
528
564
|
#
|
|
529
565
|
# @see Openlayer::Models::Governance::RuleCreateResponse::Result::Blocking#status
|
|
530
566
|
module Status
|
|
@@ -603,7 +639,7 @@ module Openlayer
|
|
|
603
639
|
required :date_updated, Time, api_name: :dateUpdated
|
|
604
640
|
|
|
605
641
|
# @!attribute immutable
|
|
606
|
-
# Whether the tag is managed by Openlayer
|
|
642
|
+
# Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
607
643
|
#
|
|
608
644
|
# @return [Boolean]
|
|
609
645
|
required :immutable, Openlayer::Internal::Type::Boolean
|
|
@@ -616,6 +652,9 @@ module Openlayer
|
|
|
616
652
|
end
|
|
617
653
|
|
|
618
654
|
# @!method initialize(id:, creator_id:, date_created:, date_updated:, immutable:, name:, workspace_id:, color: nil)
|
|
655
|
+
# A label that groups rules across frameworks, for example by team or control
|
|
656
|
+
# family.
|
|
657
|
+
#
|
|
619
658
|
# @param id [String] The rule tag id.
|
|
620
659
|
#
|
|
621
660
|
# @param creator_id [String, nil] The user who created the tag. `null` for tags that ship with Openlayer.
|
|
@@ -624,7 +663,7 @@ module Openlayer
|
|
|
624
663
|
#
|
|
625
664
|
# @param date_updated [Time] The last update date.
|
|
626
665
|
#
|
|
627
|
-
# @param immutable [Boolean] Whether the tag is managed by Openlayer
|
|
666
|
+
# @param immutable [Boolean] Whether the tag is managed by Openlayer. These tags can't be deleted.
|
|
628
667
|
#
|
|
629
668
|
# @param name [String] The tag name.
|
|
630
669
|
#
|