Skip to content

Commit 32d448e

Browse files
committed
feat(ds): add datacenters endpoint (#1065)
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
1 parent 904c024 commit 32d448e

File tree

39 files changed

+1042
-12
lines changed

39 files changed

+1042
-12
lines changed

fern/definition/servers/common.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ types:
1717
lifecycle: Lifecycle
1818
created_at: long
1919
started_at: optional<long>
20-
connectable_at: optional<long>
2120
destroyed_at: optional<long>
2221

2322
Runtime:
@@ -95,3 +94,9 @@ types:
9594
tags:
9695
docs: Tags of this build
9796
type: map<string, string>
97+
98+
Datacenter:
99+
properties:
100+
id: uuid
101+
slug: string
102+
name: string
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json
2+
3+
imports:
4+
commons: ../common.yml
5+
localCommons: common.yml
6+
uploadCommons: ../upload/common.yml
7+
8+
service:
9+
auth: true
10+
base-path: /games/{game_id}/environments/{environment_id}/datacenters
11+
path-parameters:
12+
game_id: uuid
13+
environment_id: uuid
14+
endpoints:
15+
listDatacenters:
16+
path: ""
17+
method: GET
18+
request:
19+
name: ListDatacentersRequest
20+
response: ListDatacentersResponse
21+
22+
types:
23+
ListDatacentersResponse:
24+
properties:
25+
datacenters:
26+
type: list<localCommons.Datacenter>
27+

sdks/full/go/servers/client/client.go

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/full/go/servers/datacenters.go

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/full/go/servers/datacenters/client.go

Lines changed: 112 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/full/go/servers/types.go

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdks/full/openapi/openapi.yml

Lines changed: 85 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)