Skip to content

Commit 0610441

Browse files
NathanFlurryMasterPtato
authored andcommitted
chore: flatten actor api spec
1 parent 7186657 commit 0610441

File tree

2 files changed

+32
-34
lines changed

2 files changed

+32
-34
lines changed

sdks/api/fern/definition/actors/__package__.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -163,26 +163,24 @@ types:
163163
tags: unknown
164164
build: optional<uuid>
165165
build_tags: optional<unknown>
166-
runtime: optional<CreateActorRuntimeRequest>
167-
network: optional<CreateActorNetworkRequest>
168-
resources: optional<localCommons.Resources>
169-
lifecycle: optional<localCommons.Lifecycle>
170-
171-
CreateActorRuntimeRequest:
172-
properties:
173166
# arguments: optional<list<string>>
174167
environment: optional<map<string, string>>
175-
network: optional<CreateActorRuntimeNetworkRequest>
176-
177-
CreateActorRuntimeNetworkRequest:
178-
properties:
179-
endpoint_type: localCommons.EndpointType
180-
181-
CreateActorNetworkRequest:
182-
properties:
183-
mode: optional<localCommons.NetworkMode>
168+
network_mode: optional<localCommons.NetworkMode>
169+
network_endpoint_type: localCommons.EndpointType
184170
ports: optional<map<string, CreateActorPortRequest>>
185-
wait_ready: optional<boolean>
171+
wait_for_network_ready: optional<boolean>
172+
resources: optional<localCommons.Resources>
173+
kill_timeout:
174+
docs: >-
175+
The duration to wait for in milliseconds before killing the actor.
176+
This should be set to a safe default, and can be overridden during a
177+
DELETE request if needed.
178+
type: optional<long>
179+
durable:
180+
docs: >-
181+
If true, the actor will try to reschedule itself automatically in the event of a crash or a
182+
datacenter failover. The actor will not reschedule if it exits successfully.
183+
type: optional<boolean>
186184

187185
CreateActorPortRequest:
188186
properties:

sdks/api/fern/definition/actors/common.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,11 @@ types:
99
id: commons.Id
1010
region: string
1111
tags: unknown
12-
runtime: Runtime
13-
network: Network
14-
lifecycle: Lifecycle
15-
created_at: commons.Timestamp
16-
started_at: optional<commons.Timestamp>
17-
destroyed_at: optional<commons.Timestamp>
18-
19-
Runtime:
20-
properties:
2112
build: uuid
2213
arguments: optional<list<string>>
2314
environment: optional<map<string, string>>
24-
25-
Lifecycle:
26-
properties:
15+
network_mode: NetworkMode
16+
ports: map<string, Port>
2717
kill_timeout:
2818
docs: >-
2919
The duration to wait for in milliseconds before killing the actor.
@@ -35,11 +25,9 @@ types:
3525
If true, the actor will try to reschedule itself automatically in the event of a crash or a
3626
datacenter failover. The actor will not reschedule if it exits successfully.
3727
type: optional<boolean>
38-
39-
Network:
40-
properties:
41-
mode: NetworkMode
42-
ports: map<string, Port>
28+
created_at: commons.Timestamp
29+
started_at: optional<commons.Timestamp>
30+
destroyed_at: optional<commons.Timestamp>
4331

4432
NetworkMode:
4533
enum:
@@ -83,3 +71,15 @@ types:
8371
- hostname
8472
- path
8573

74+
Resources:
75+
properties:
76+
cpu:
77+
docs: |
78+
The number of CPU cores in millicores, or 1/1000 of a core. For example,
79+
1/8 of a core would be 125 millicores, and 1 core would be 1000
80+
millicores.
81+
type: integer
82+
memory:
83+
docs: The amount of memory in megabytes
84+
type: integer
85+

0 commit comments

Comments
 (0)