Skip to content

Commit

Permalink
feat(ds): add datacenters endpoint (#1065)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed Aug 16, 2024
1 parent 904c024 commit 32d448e
Show file tree
Hide file tree
Showing 39 changed files with 1,042 additions and 12 deletions.
7 changes: 6 additions & 1 deletion fern/definition/servers/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ types:
lifecycle: Lifecycle
created_at: long
started_at: optional<long>
connectable_at: optional<long>
destroyed_at: optional<long>

Runtime:
Expand Down Expand Up @@ -95,3 +94,9 @@ types:
tags:
docs: Tags of this build
type: map<string, string>

Datacenter:
properties:
id: uuid
slug: string
name: string
27 changes: 27 additions & 0 deletions fern/definition/servers/datacenters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json

imports:
commons: ../common.yml
localCommons: common.yml
uploadCommons: ../upload/common.yml

service:
auth: true
base-path: /games/{game_id}/environments/{environment_id}/datacenters
path-parameters:
game_id: uuid
environment_id: uuid
endpoints:
listDatacenters:
path: ""
method: GET
request:
name: ListDatacentersRequest
response: ListDatacentersResponse

types:
ListDatacentersResponse:
properties:
datacenters:
type: list<localCommons.Datacenter>

17 changes: 10 additions & 7 deletions sdks/full/go/servers/client/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions sdks/full/go/servers/datacenters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 112 additions & 0 deletions sdks/full/go/servers/datacenters/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions sdks/full/go/servers/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions sdks/full/openapi/openapi.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 32d448e

Please sign in to comment.