You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-specs/import/types/import-container.raml
+48-8Lines changed: 48 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,45 @@ uses:
7
7
annotations: ../annotationTypes/annotations.raml
8
8
9
9
types:
10
+
StrategyEnum:
11
+
description: The strategy of the retention policy. Used to determine how the ImportContainer should be retained.
12
+
type: string
13
+
(annotations.beta): true
14
+
enum:
15
+
- ttl
16
+
(annotations.enumDescriptions):
17
+
ttl: Time to live
18
+
RetentionPolicy:
19
+
description: The retention policy of the ImportContainer. If not set, the ImportContainer does not expire.
20
+
discriminator: strategy
21
+
properties:
22
+
strategy:
23
+
type: StrategyEnum
24
+
TimeToLiveConfig:
25
+
type: object
26
+
(annotations.beta): true
27
+
properties:
28
+
timeToLive:
29
+
description: The time to live of the ImportContainer. Used to generate the `expiresAt` value of the ImportContainer. The lowest accepted value is `1h` and the highest accepted value is `30d`.
30
+
type: string
31
+
pattern: '^(?:(\d+)d|(\d+)h|(\d+)m)$'
32
+
TimeToLiveRetentionPolicy:
33
+
type: RetentionPolicy
34
+
description: Set a time to live retention policy for the ImportContainer.
35
+
(annotations.beta): true
36
+
discriminatorValue: ttl
37
+
properties:
38
+
config:
39
+
type: TimeToLiveConfig
40
+
description: The configuration of the time to live retention policy.
10
41
ImportContainer:
11
42
description: |
12
43
Serves as the entry point of resources.
13
44
An Import Container is not resource type-specific.
User-defined unique identifier for the ImportContainer.
19
-
Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
48
+
description: User-defined unique identifier for the ImportContainer.
20
49
type: string
21
50
resourceType?:
22
51
description: |
@@ -27,27 +56,38 @@ types:
27
56
description: The version of the ImportContainer.
28
57
type: number
29
58
format: int64
59
+
retentionPolicy?:
60
+
type: RetentionPolicy
61
+
(annotations.beta): true
62
+
description: The retention policy of the ImportContainer.
30
63
createdAt:
31
-
description: The time when the ImportContainer was created.
64
+
description: Date and time (UTC) the ImportContainer was initially created.
32
65
type: datetime
33
66
lastModifiedAt:
34
-
description: The last time when the ImportContainer was modified.
67
+
description: Date and time (UTC) the ImportContainer was last updated.
68
+
type: datetime
69
+
expiresAt?:
35
70
type: datetime
71
+
(annotations.beta): true
72
+
description: Date and time (UTC) the ImportContainer is automatically deleted. Only present if a `retentionPolicy` is set. ImportContainers without `expiresAt` are permanent until [manually deleted](#delete-importcontainer).
36
73
ImportContainerDraft:
37
74
description: |
38
75
The representation sent to the server when creating an [ImportContainer](#importcontainer).
0 commit comments