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.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/openlayer/models/background_task_retrieve_response.rb +4 -0
  5. data/lib/openlayer/models/governance/framework_create_response.rb +7 -2
  6. data/lib/openlayer/models/governance/framework_export_params.rb +7 -2
  7. data/lib/openlayer/models/governance/framework_list_project_rule_stats_response.rb +2 -0
  8. data/lib/openlayer/models/governance/framework_list_response.rb +7 -2
  9. data/lib/openlayer/models/governance/framework_list_rules_response.rb +69 -29
  10. data/lib/openlayer/models/governance/framework_retrieve_response.rb +7 -2
  11. data/lib/openlayer/models/governance/framework_update_response.rb +7 -2
  12. data/lib/openlayer/models/governance/frameworks/document_list_response.rb +54 -28
  13. data/lib/openlayer/models/governance/frameworks/document_retrieve_response.rb +54 -28
  14. data/lib/openlayer/models/governance/frameworks/section_list_rules_response.rb +69 -29
  15. data/lib/openlayer/models/governance/frameworks/subsection_list_rules_response.rb +69 -29
  16. data/lib/openlayer/models/governance/rule_create_params.rb +21 -12
  17. data/lib/openlayer/models/governance/rule_create_response.rb +68 -29
  18. data/lib/openlayer/models/governance/rule_list_response.rb +69 -29
  19. data/lib/openlayer/models/governance/rule_result_create_evidence_params.rb +2 -1
  20. data/lib/openlayer/models/governance/rule_result_create_evidence_response.rb +6 -1
  21. data/lib/openlayer/models/governance/rule_result_list_evidence_response.rb +6 -1
  22. data/lib/openlayer/models/governance/rule_result_list_response.rb +34 -13
  23. data/lib/openlayer/models/governance/rule_result_retrieve_response.rb +34 -13
  24. data/lib/openlayer/models/governance/rule_result_update_params.rb +26 -10
  25. data/lib/openlayer/models/governance/rule_result_update_response.rb +34 -13
  26. data/lib/openlayer/models/governance/rule_retrieve_response.rb +68 -29
  27. data/lib/openlayer/models/governance/rule_stat_retrieve_response.rb +4 -0
  28. data/lib/openlayer/models/governance/rule_tag_list_response.rb +5 -2
  29. data/lib/openlayer/models/governance/rule_update_params.rb +2 -1
  30. data/lib/openlayer/models/governance/rule_update_response.rb +68 -29
  31. data/lib/openlayer/models/inference_pipeline_retrieve_sessions_response.rb +3 -0
  32. data/lib/openlayer/models/inference_pipeline_retrieve_users_response.rb +3 -0
  33. data/lib/openlayer/models/storage/presigned_url_retrieve_params.rb +6 -2
  34. data/lib/openlayer/models/workspaces/api_key_create_params.rb +17 -1
  35. data/lib/openlayer/models/workspaces/api_key_create_response.rb +73 -3
  36. data/lib/openlayer/models/workspaces/api_key_delete_params.rb +28 -0
  37. data/lib/openlayer/models/workspaces/api_key_list_params.rb +22 -0
  38. data/lib/openlayer/models/workspaces/api_key_list_response.rb +134 -0
  39. data/lib/openlayer/models/workspaces/api_key_retrieve_params.rb +28 -0
  40. data/lib/openlayer/models/workspaces/api_key_retrieve_response.rb +131 -0
  41. data/lib/openlayer/models/workspaces/api_key_rotate_params.rb +56 -0
  42. data/lib/openlayer/models/workspaces/api_key_rotate_response.rb +131 -0
  43. data/lib/openlayer/models/workspaces/api_key_update_params.rb +38 -0
  44. data/lib/openlayer/models/workspaces/api_key_update_response.rb +131 -0
  45. data/lib/openlayer/resources/background_tasks.rb +1 -5
  46. data/lib/openlayer/resources/commits.rb +1 -1
  47. data/lib/openlayer/resources/governance/frameworks/documents.rb +1 -9
  48. data/lib/openlayer/resources/governance/frameworks/sections.rb +1 -5
  49. data/lib/openlayer/resources/governance/frameworks/subsections.rb +1 -5
  50. data/lib/openlayer/resources/governance/frameworks.rb +10 -62
  51. data/lib/openlayer/resources/governance/rule_results.rb +8 -33
  52. data/lib/openlayer/resources/governance/rule_stats.rb +1 -5
  53. data/lib/openlayer/resources/governance/rule_tags.rb +0 -4
  54. data/lib/openlayer/resources/governance/rules.rb +7 -38
  55. data/lib/openlayer/resources/inference_pipelines/rows.rb +4 -5
  56. data/lib/openlayer/resources/inference_pipelines.rb +5 -14
  57. data/lib/openlayer/resources/projects/tests.rb +3 -3
  58. data/lib/openlayer/resources/storage/presigned_url.rb +5 -11
  59. data/lib/openlayer/resources/tests.rb +1 -4
  60. data/lib/openlayer/resources/workspaces/api_keys.rb +146 -2
  61. data/lib/openlayer/resources/workspaces/invites.rb +1 -1
  62. data/lib/openlayer/resources/workspaces.rb +1 -1
  63. data/lib/openlayer/version.rb +1 -1
  64. data/lib/openlayer.rb +9 -0
  65. data/rbi/openlayer/models/background_task_retrieve_response.rbi +3 -0
  66. data/rbi/openlayer/models/governance/framework_create_response.rbi +7 -2
  67. data/rbi/openlayer/models/governance/framework_export_params.rbi +6 -2
  68. data/rbi/openlayer/models/governance/framework_list_project_rule_stats_response.rbi +1 -0
  69. data/rbi/openlayer/models/governance/framework_list_response.rbi +7 -2
  70. data/rbi/openlayer/models/governance/framework_list_rules_response.rbi +70 -34
  71. data/rbi/openlayer/models/governance/framework_retrieve_response.rbi +7 -2
  72. data/rbi/openlayer/models/governance/framework_update_response.rbi +7 -2
  73. data/rbi/openlayer/models/governance/frameworks/document_list_response.rbi +76 -38
  74. data/rbi/openlayer/models/governance/frameworks/document_retrieve_response.rbi +76 -38
  75. data/rbi/openlayer/models/governance/frameworks/section_list_rules_response.rbi +70 -34
  76. data/rbi/openlayer/models/governance/frameworks/subsection_list_rules_response.rbi +70 -34
  77. data/rbi/openlayer/models/governance/rule_create_params.rbi +32 -17
  78. data/rbi/openlayer/models/governance/rule_create_response.rbi +70 -34
  79. data/rbi/openlayer/models/governance/rule_list_response.rbi +70 -34
  80. data/rbi/openlayer/models/governance/rule_result_create_evidence_params.rbi +4 -2
  81. data/rbi/openlayer/models/governance/rule_result_create_evidence_response.rbi +7 -2
  82. data/rbi/openlayer/models/governance/rule_result_list_evidence_response.rbi +7 -2
  83. data/rbi/openlayer/models/governance/rule_result_list_response.rbi +26 -13
  84. data/rbi/openlayer/models/governance/rule_result_retrieve_response.rbi +26 -13
  85. data/rbi/openlayer/models/governance/rule_result_update_params.rbi +18 -10
  86. data/rbi/openlayer/models/governance/rule_result_update_response.rbi +26 -13
  87. data/rbi/openlayer/models/governance/rule_retrieve_response.rbi +70 -34
  88. data/rbi/openlayer/models/governance/rule_stat_retrieve_response.rbi +3 -0
  89. data/rbi/openlayer/models/governance/rule_tag_list_response.rbi +4 -2
  90. data/rbi/openlayer/models/governance/rule_update_params.rbi +4 -2
  91. data/rbi/openlayer/models/governance/rule_update_response.rbi +70 -34
  92. data/rbi/openlayer/models/inference_pipeline_retrieve_sessions_response.rbi +2 -0
  93. data/rbi/openlayer/models/inference_pipeline_retrieve_users_response.rbi +2 -0
  94. data/rbi/openlayer/models/storage/presigned_url_retrieve_params.rbi +4 -2
  95. data/rbi/openlayer/models/workspaces/api_key_create_params.rbi +18 -0
  96. data/rbi/openlayer/models/workspaces/api_key_create_response.rbi +117 -5
  97. data/rbi/openlayer/models/workspaces/api_key_delete_params.rbi +48 -0
  98. data/rbi/openlayer/models/workspaces/api_key_list_params.rbi +40 -0
  99. data/rbi/openlayer/models/workspaces/api_key_list_response.rbi +202 -0
  100. data/rbi/openlayer/models/workspaces/api_key_retrieve_params.rbi +48 -0
  101. data/rbi/openlayer/models/workspaces/api_key_retrieve_response.rbi +194 -0
  102. data/rbi/openlayer/models/workspaces/api_key_rotate_params.rbi +85 -0
  103. data/rbi/openlayer/models/workspaces/api_key_rotate_response.rbi +194 -0
  104. data/rbi/openlayer/models/workspaces/api_key_update_params.rbi +60 -0
  105. data/rbi/openlayer/models/workspaces/api_key_update_response.rbi +194 -0
  106. data/rbi/openlayer/resources/background_tasks.rbi +1 -5
  107. data/rbi/openlayer/resources/commits.rbi +1 -1
  108. data/rbi/openlayer/resources/governance/frameworks/documents.rbi +1 -9
  109. data/rbi/openlayer/resources/governance/frameworks/sections.rbi +1 -5
  110. data/rbi/openlayer/resources/governance/frameworks/subsections.rbi +1 -5
  111. data/rbi/openlayer/resources/governance/frameworks.rbi +10 -63
  112. data/rbi/openlayer/resources/governance/rule_results.rbi +9 -35
  113. data/rbi/openlayer/resources/governance/rule_stats.rbi +1 -5
  114. data/rbi/openlayer/resources/governance/rule_tags.rbi +0 -4
  115. data/rbi/openlayer/resources/governance/rules.rbi +20 -44
  116. data/rbi/openlayer/resources/inference_pipelines/rows.rbi +4 -5
  117. data/rbi/openlayer/resources/inference_pipelines.rbi +5 -14
  118. data/rbi/openlayer/resources/projects/tests.rbi +3 -3
  119. data/rbi/openlayer/resources/storage/presigned_url.rbi +4 -12
  120. data/rbi/openlayer/resources/tests.rbi +1 -4
  121. data/rbi/openlayer/resources/workspaces/api_keys.rbi +110 -1
  122. data/rbi/openlayer/resources/workspaces/invites.rbi +1 -1
  123. data/rbi/openlayer/resources/workspaces.rbi +1 -1
  124. data/sig/openlayer/models/workspaces/api_key_create_params.rbs +5 -1
  125. data/sig/openlayer/models/workspaces/api_key_create_response.rbs +42 -3
  126. data/sig/openlayer/models/workspaces/api_key_delete_params.rbs +30 -0
  127. data/sig/openlayer/models/workspaces/api_key_list_params.rbs +25 -0
  128. data/sig/openlayer/models/workspaces/api_key_list_response.rbs +91 -0
  129. data/sig/openlayer/models/workspaces/api_key_retrieve_params.rbs +30 -0
  130. data/sig/openlayer/models/workspaces/api_key_retrieve_response.rbs +86 -0
  131. data/sig/openlayer/models/workspaces/api_key_rotate_params.rbs +45 -0
  132. data/sig/openlayer/models/workspaces/api_key_rotate_response.rbs +86 -0
  133. data/sig/openlayer/models/workspaces/api_key_update_params.rbs +34 -0
  134. data/sig/openlayer/models/workspaces/api_key_update_response.rbs +86 -0
  135. data/sig/openlayer/resources/workspaces/api_keys.rbs +33 -0
  136. metadata +29 -2
@@ -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::RuleUpdateResponse::Scope]
19
20
  required :scope, enum: -> { Openlayer::Models::Governance::RuleUpdateResponse::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::RuleUpdateResponse::Type]
26
28
  required :type, enum: -> { Openlayer::Models::Governance::RuleUpdateResponse::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`. `null` for
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. `null` for platform rules.
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::RuleUpdateResponse::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::RuleUpdateResponse::Framework] }
110
116
 
111
117
  # @!attribute immutable
112
- # Whether the rule is managed by Openlayer and cannot be edited.
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::RuleUpdateResponse} 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::RuleUpdateResponse::EvidenceType, nil] The kind of evidence that satisfies the rule. `null` for platform rules.
184
+ # @param evidence_type [Symbol, Openlayer::Models::Governance::RuleUpdateResponse::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::RuleUpdateResponse::Framework>] The frameworks that include this rule.
175
187
  #
176
- # @param immutable [Boolean] Whether the rule is managed by Openlayer and cannot be edited.
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::RuleUpdateResponse::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::RuleUpdateResponse#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::RuleUpdateResponse#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. `null` for platform rules.
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::RuleUpdateResponse#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::RuleUpdateResponse::Result::Status]
323
340
  required :status, enum: -> { Openlayer::Models::Governance::RuleUpdateResponse::Result::Status }
@@ -344,7 +361,7 @@ module Openlayer
344
361
  -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Governance::RuleUpdateResponse::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::RuleUpdateResponse::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::RuleUpdateResponse::Result::Status] The compliance status of the rule for this entity.
454
+ # @param status [Symbol, Openlayer::Models::Governance::RuleUpdateResponse::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::RuleUpdateResponse::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::RuleUpdateResponse::Result::BlockedBy::Status, nil]
483
508
  optional :status,
484
509
  enum: -> { Openlayer::Models::Governance::RuleUpdateResponse::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::RuleUpdateResponse::Result::BlockedBy} for more
514
+ # details.
515
+ #
487
516
  # @param id [String]
488
517
  #
489
- # @param status [Symbol, Openlayer::Models::Governance::RuleUpdateResponse::Result::BlockedBy::Status] The compliance status of the rule for this entity.
518
+ # @param status [Symbol, Openlayer::Models::Governance::RuleUpdateResponse::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::RuleUpdateResponse::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::RuleUpdateResponse::Result::Blocking::Status, nil]
520
551
  optional :status, enum: -> { Openlayer::Models::Governance::RuleUpdateResponse::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::RuleUpdateResponse::Result::Blocking} for more
556
+ # details.
557
+ #
523
558
  # @param id [String]
524
559
  #
525
- # @param status [Symbol, Openlayer::Models::Governance::RuleUpdateResponse::Result::Blocking::Status] The compliance status of the rule for this entity.
560
+ # @param status [Symbol, Openlayer::Models::Governance::RuleUpdateResponse::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::RuleUpdateResponse::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 and cannot be edited or deleted.
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 and cannot be edited or deleted.
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
  #
@@ -92,6 +92,9 @@ module Openlayer
92
92
  required :user_ids, Openlayer::Internal::Type::ArrayOf[String], api_name: :userIds
93
93
 
94
94
  # @!method initialize(id:, cost:, date_created:, date_of_first_record:, date_of_last_record:, duration:, first_record:, last_record:, latency:, records:, tokens:, user_ids:)
95
+ # A session in an inference pipeline, with its activity stats: record counts,
96
+ # token usage, cost, latency, and its first and last records.
97
+ #
95
98
  # @param id [String] The unique session identifier
96
99
  #
97
100
  # @param cost [Float] Total cost for the session
@@ -58,6 +58,9 @@ module Openlayer
58
58
  required :tokens, Float
59
59
 
60
60
  # @!method initialize(id:, cost:, date_of_first_record:, date_of_last_record:, records:, sessions:, tokens:)
61
+ # A user who has interacted with an inference pipeline, with their activity stats:
62
+ # session and record counts, token usage, and cost.
63
+ #
61
64
  # @param id [String] The unique user identifier
62
65
  #
63
66
  # @param cost [Float] Total cost for this user
@@ -9,13 +9,17 @@ module Openlayer
9
9
  include Openlayer::Internal::Type::RequestParameters
10
10
 
11
11
  # @!attribute storage_uri
12
- # The object's storage uri.
12
+ # The object's storage uri, for example `outputs.storageUri` from a framework
13
+ # export's background task.
13
14
  #
14
15
  # @return [String]
15
16
  required :storage_uri, String
16
17
 
17
18
  # @!method initialize(storage_uri:, request_options: {})
18
- # @param storage_uri [String] The object's storage uri.
19
+ # Some parameter documentations has been truncated, see
20
+ # {Openlayer::Models::Storage::PresignedURLRetrieveParams} for more details.
21
+ #
22
+ # @param storage_uri [String] The object's storage uri, for example `outputs.storageUri` from a framework expo
19
23
  #
20
24
  # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
21
25
  end
@@ -13,15 +13,31 @@ module Openlayer
13
13
  # @return [String]
14
14
  required :workspace_id, String
15
15
 
16
+ # @!attribute expires_at
17
+ # When the key stops authenticating. `null` means the key never expires. Set when
18
+ # the key is created or rotated, and must be in the future. When the request is
19
+ # authenticated with an API key that expires, the result can't be later than that
20
+ # key's expiry. On create, omit it to inherit that expiry. On rotate, omit it to
21
+ # keep the current one. It can't be changed with an update; rotate the key
22
+ # instead.
23
+ #
24
+ # @return [Time, nil]
25
+ optional :expires_at, Time, api_name: :expiresAt, nil?: true
26
+
16
27
  # @!attribute name
17
28
  # The API key name.
18
29
  #
19
30
  # @return [String, nil]
20
31
  optional :name, String, nil?: true
21
32
 
22
- # @!method initialize(workspace_id:, name: nil, request_options: {})
33
+ # @!method initialize(workspace_id:, expires_at: nil, name: nil, request_options: {})
34
+ # Some parameter documentations has been truncated, see
35
+ # {Openlayer::Models::Workspaces::APIKeyCreateParams} for more details.
36
+ #
23
37
  # @param workspace_id [String]
24
38
  #
39
+ # @param expires_at [Time, nil] When the key stops authenticating. `null` means the key never expires. Set when
40
+ #
25
41
  # @param name [String, nil] The API key name.
26
42
  #
27
43
  # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
@@ -5,6 +5,17 @@ module Openlayer
5
5
  module Workspaces
6
6
  # @see Openlayer::Resources::Workspaces::APIKeys#create
7
7
  class APIKeyCreateResponse < Openlayer::Internal::Type::BaseModel
8
+ # @!attribute expires_at
9
+ # When the key stops authenticating. `null` means the key never expires. Set when
10
+ # the key is created or rotated, and must be in the future. When the request is
11
+ # authenticated with an API key that expires, the result can't be later than that
12
+ # key's expiry. On create, omit it to inherit that expiry. On rotate, omit it to
13
+ # keep the current one. It can't be changed with an update; rotate the key
14
+ # instead.
15
+ #
16
+ # @return [Time, nil]
17
+ optional :expires_at, Time, api_name: :expiresAt, nil?: true
18
+
8
19
  # @!attribute name
9
20
  # The API key name.
10
21
  #
@@ -37,13 +48,45 @@ module Openlayer
37
48
  required :date_updated, Time, api_name: :dateUpdated
38
49
 
39
50
  # @!attribute secure_key
40
- # The API key value.
51
+ # An obfuscated hint of the API key value. When a key is created or rotated this
52
+ # also holds the full secret, for backward compatibility; prefer `secret`.
41
53
  #
42
54
  # @return [String]
43
55
  required :secure_key, String, api_name: :secureKey
56
+
57
+ # @!attribute status
58
+ # The key's lifecycle state. `active`: the current secret authenticates.
59
+ # `rotating`: the key was rotated and the previous secret still authenticates
60
+ # until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed, no secret
61
+ # authenticates, and the key can't be rotated.
62
+ #
63
+ # @return [Symbol, Openlayer::Models::Workspaces::APIKeyCreateResponse::Status]
64
+ required :status, enum: -> { Openlayer::Models::Workspaces::APIKeyCreateResponse::Status }
65
+
66
+ # @!attribute last_rotated_at
67
+ # When the key was last rotated.
68
+ #
69
+ # @return [Time, nil]
70
+ optional :last_rotated_at, Time, api_name: :lastRotatedAt, nil?: true
71
+
72
+ # @!attribute previous_key_expires_at
73
+ # While `status` is `rotating`, when the previous secret stops authenticating.
74
+ #
75
+ # @return [Time, nil]
76
+ optional :previous_key_expires_at, Time, api_name: :previousKeyExpiresAt, nil?: true
77
+
78
+ # @!attribute secret
79
+ # The full API key. Only present in the response that creates or rotates the key,
80
+ # and never shown again.
81
+ #
82
+ # @return [String, nil]
83
+ optional :secret, String
44
84
  end
45
85
 
46
- # @!method initialize(id:, date_created:, date_last_used:, date_updated:, secure_key:, name: nil)
86
+ # @!method initialize(id:, date_created:, date_last_used:, date_updated:, secure_key:, status:, expires_at: nil, last_rotated_at: nil, name: nil, previous_key_expires_at: nil, secret: nil)
87
+ # Some parameter documentations has been truncated, see
88
+ # {Openlayer::Models::Workspaces::APIKeyCreateResponse} for more details.
89
+ #
47
90
  # @param id [String] The API key id.
48
91
  #
49
92
  # @param date_created [Time] The API key creation date.
@@ -52,9 +95,36 @@ module Openlayer
52
95
  #
53
96
  # @param date_updated [Time] The API key last update date.
54
97
  #
55
- # @param secure_key [String] The API key value.
98
+ # @param secure_key [String] An obfuscated hint of the API key value. When a key is created or rotated this a
99
+ #
100
+ # @param status [Symbol, Openlayer::Models::Workspaces::APIKeyCreateResponse::Status] The key's lifecycle state. `active`: the current secret authenticates. `rotating
101
+ #
102
+ # @param expires_at [Time, nil] When the key stops authenticating. `null` means the key never expires. Set when
103
+ #
104
+ # @param last_rotated_at [Time, nil] When the key was last rotated.
56
105
  #
57
106
  # @param name [String, nil] The API key name.
107
+ #
108
+ # @param previous_key_expires_at [Time, nil] While `status` is `rotating`, when the previous secret stops authenticating.
109
+ #
110
+ # @param secret [String] The full API key. Only present in the response that creates or rotates the key,
111
+
112
+ # The key's lifecycle state. `active`: the current secret authenticates.
113
+ # `rotating`: the key was rotated and the previous secret still authenticates
114
+ # until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed, no secret
115
+ # authenticates, and the key can't be rotated.
116
+ #
117
+ # @see Openlayer::Models::Workspaces::APIKeyCreateResponse#status
118
+ module Status
119
+ extend Openlayer::Internal::Type::Enum
120
+
121
+ ACTIVE = :active
122
+ ROTATING = :rotating
123
+ EXPIRED = :expired
124
+
125
+ # @!method self.values
126
+ # @return [Array<Symbol>]
127
+ end
58
128
  end
59
129
  end
60
130
  end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Openlayer
4
+ module Models
5
+ module Workspaces
6
+ # @see Openlayer::Resources::Workspaces::APIKeys#delete
7
+ class APIKeyDeleteParams < Openlayer::Internal::Type::BaseModel
8
+ extend Openlayer::Internal::Type::RequestParameters::Converter
9
+ include Openlayer::Internal::Type::RequestParameters
10
+
11
+ # @!attribute workspace_id
12
+ #
13
+ # @return [String]
14
+ required :workspace_id, String
15
+
16
+ # @!attribute api_key_id
17
+ #
18
+ # @return [String]
19
+ required :api_key_id, String
20
+
21
+ # @!method initialize(workspace_id:, api_key_id:, request_options: {})
22
+ # @param workspace_id [String]
23
+ # @param api_key_id [String]
24
+ # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Openlayer
4
+ module Models
5
+ module Workspaces
6
+ # @see Openlayer::Resources::Workspaces::APIKeys#list
7
+ class APIKeyListParams < Openlayer::Internal::Type::BaseModel
8
+ extend Openlayer::Internal::Type::RequestParameters::Converter
9
+ include Openlayer::Internal::Type::RequestParameters
10
+
11
+ # @!attribute workspace_id
12
+ #
13
+ # @return [String]
14
+ required :workspace_id, String
15
+
16
+ # @!method initialize(workspace_id:, request_options: {})
17
+ # @param workspace_id [String]
18
+ # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,134 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Openlayer
4
+ module Models
5
+ module Workspaces
6
+ class APIKeyListResponseItem < Openlayer::Internal::Type::BaseModel
7
+ # @!attribute expires_at
8
+ # When the key stops authenticating. `null` means the key never expires. Set when
9
+ # the key is created or rotated, and must be in the future. When the request is
10
+ # authenticated with an API key that expires, the result can't be later than that
11
+ # key's expiry. On create, omit it to inherit that expiry. On rotate, omit it to
12
+ # keep the current one. It can't be changed with an update; rotate the key
13
+ # instead.
14
+ #
15
+ # @return [Time, nil]
16
+ optional :expires_at, Time, api_name: :expiresAt, nil?: true
17
+
18
+ # @!attribute name
19
+ # The API key name.
20
+ #
21
+ # @return [String, nil]
22
+ optional :name, String, nil?: true
23
+
24
+ response_only do
25
+ # @!attribute id
26
+ # The API key id.
27
+ #
28
+ # @return [String]
29
+ required :id, String
30
+
31
+ # @!attribute date_created
32
+ # The API key creation date.
33
+ #
34
+ # @return [Time]
35
+ required :date_created, Time, api_name: :dateCreated
36
+
37
+ # @!attribute date_last_used
38
+ # The API key last use date.
39
+ #
40
+ # @return [Time, nil]
41
+ required :date_last_used, Time, api_name: :dateLastUsed, nil?: true
42
+
43
+ # @!attribute date_updated
44
+ # The API key last update date.
45
+ #
46
+ # @return [Time]
47
+ required :date_updated, Time, api_name: :dateUpdated
48
+
49
+ # @!attribute secure_key
50
+ # An obfuscated hint of the API key value. When a key is created or rotated this
51
+ # also holds the full secret, for backward compatibility; prefer `secret`.
52
+ #
53
+ # @return [String]
54
+ required :secure_key, String, api_name: :secureKey
55
+
56
+ # @!attribute status
57
+ # The key's lifecycle state. `active`: the current secret authenticates.
58
+ # `rotating`: the key was rotated and the previous secret still authenticates
59
+ # until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed, no secret
60
+ # authenticates, and the key can't be rotated.
61
+ #
62
+ # @return [Symbol, Openlayer::Models::Workspaces::APIKeyListResponseItem::Status]
63
+ required :status, enum: -> { Openlayer::Models::Workspaces::APIKeyListResponseItem::Status }
64
+
65
+ # @!attribute last_rotated_at
66
+ # When the key was last rotated.
67
+ #
68
+ # @return [Time, nil]
69
+ optional :last_rotated_at, Time, api_name: :lastRotatedAt, nil?: true
70
+
71
+ # @!attribute previous_key_expires_at
72
+ # While `status` is `rotating`, when the previous secret stops authenticating.
73
+ #
74
+ # @return [Time, nil]
75
+ optional :previous_key_expires_at, Time, api_name: :previousKeyExpiresAt, nil?: true
76
+
77
+ # @!attribute secret
78
+ # The full API key. Only present in the response that creates or rotates the key,
79
+ # and never shown again.
80
+ #
81
+ # @return [String, nil]
82
+ optional :secret, String
83
+ end
84
+
85
+ # @!method initialize(id:, date_created:, date_last_used:, date_updated:, secure_key:, status:, expires_at: nil, last_rotated_at: nil, name: nil, previous_key_expires_at: nil, secret: nil)
86
+ # Some parameter documentations has been truncated, see
87
+ # {Openlayer::Models::Workspaces::APIKeyListResponseItem} for more details.
88
+ #
89
+ # @param id [String] The API key id.
90
+ #
91
+ # @param date_created [Time] The API key creation date.
92
+ #
93
+ # @param date_last_used [Time, nil] The API key last use date.
94
+ #
95
+ # @param date_updated [Time] The API key last update date.
96
+ #
97
+ # @param secure_key [String] An obfuscated hint of the API key value. When a key is created or rotated this a
98
+ #
99
+ # @param status [Symbol, Openlayer::Models::Workspaces::APIKeyListResponseItem::Status] The key's lifecycle state. `active`: the current secret authenticates. `rotating
100
+ #
101
+ # @param expires_at [Time, nil] When the key stops authenticating. `null` means the key never expires. Set when
102
+ #
103
+ # @param last_rotated_at [Time, nil] When the key was last rotated.
104
+ #
105
+ # @param name [String, nil] The API key name.
106
+ #
107
+ # @param previous_key_expires_at [Time, nil] While `status` is `rotating`, when the previous secret stops authenticating.
108
+ #
109
+ # @param secret [String] The full API key. Only present in the response that creates or rotates the key,
110
+
111
+ # The key's lifecycle state. `active`: the current secret authenticates.
112
+ # `rotating`: the key was rotated and the previous secret still authenticates
113
+ # until `previousKeyExpiresAt`. `expired`: `expiresAt` has passed, no secret
114
+ # authenticates, and the key can't be rotated.
115
+ #
116
+ # @see Openlayer::Models::Workspaces::APIKeyListResponseItem#status
117
+ module Status
118
+ extend Openlayer::Internal::Type::Enum
119
+
120
+ ACTIVE = :active
121
+ ROTATING = :rotating
122
+ EXPIRED = :expired
123
+
124
+ # @!method self.values
125
+ # @return [Array<Symbol>]
126
+ end
127
+ end
128
+
129
+ # @type [Openlayer::Internal::Type::Converter]
130
+ APIKeyListResponse =
131
+ Openlayer::Internal::Type::ArrayOf[-> { Openlayer::Models::Workspaces::APIKeyListResponseItem }]
132
+ end
133
+ end
134
+ end