Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using OpenAPI;
*
*/
@service(#{ title: "HyperFleet API" })
@info(#{ version: "1.0.4", contact: #{ name: "HyperFleet Team" }, license: #{ name: "Apache 2.0" ,url: "https://www.apache.org/licenses/LICENSE-2.0"} })
@info(#{ version: "1.0.5", contact: #{ name: "HyperFleet Team" }, license: #{ name: "Apache 2.0" ,url: "https://www.apache.org/licenses/LICENSE-2.0"} })
@server("https://hyperfleet.redhat.com", "Production")
@route("/api/hyperfleet/v1")
namespace HyperFleet;
Expand Down
4 changes: 2 additions & 2 deletions models-core/cluster/example_cluster.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import "../../models/common/model.tsp";

const exampleCluster: Cluster = #{
kind: "Cluster",
id: "cluster-123",
href: "https://api.hyperfleet.com/v1/clusters/cluster-123",
id: "019466a0-8f8e-7abc-9def-0123456789ab",
href: "https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab",
name: "cluster-123",
labels: #{ environment: "production", team: "platform" },
spec: #{},
Expand Down
8 changes: 4 additions & 4 deletions models-core/nodepool/example_nodepool.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import "../../models/common/model.tsp";

const exampleNodePool: NodePool = #{
kind: "NodePool",
id: "nodepool-123",
href: "https://api.hyperfleet.com/v1/nodepools/nodepool-123",
id: "019466a1-2b3c-7def-8abc-456789abcdef",
href: "https://api.hyperfleet.com/v1/nodepools/019466a1-2b3c-7def-8abc-456789abcdef",
name: "worker-pool-1",
labels: #{ environment: "production", pooltype: "worker" },
spec: #{},
Expand All @@ -15,9 +15,9 @@ const exampleNodePool: NodePool = #{
created_by: "user-123@example.com",
updated_by: "user-123@example.com",
owner_references: #{
id: "cluster-123",
id: "019466a0-8f8e-7abc-9def-0123456789ab",
kind: "Cluster",
href: "https://api.hyperfleet.com/v1/clusters/cluster-123",
href: "https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab",
},
status: #{
conditions: #[
Expand Down
4 changes: 2 additions & 2 deletions models-gcp/cluster/example_cluster.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import "../../models/common/model.tsp";

const exampleCluster: Cluster = #{
kind: "Cluster",
id: "cluster-123",
href: "https://api.hyperfleet.com/v1/clusters/cluster-123",
id: "019466a0-8f8e-7abc-9def-0123456789ab",
href: "https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab",
name: "cluster-123",
labels: #{ environment: "production", team: "platform" },
spec: #{
Expand Down
8 changes: 4 additions & 4 deletions models-gcp/nodepool/example_nodepool.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import "../../models/nodepools/model.tsp";

const exampleNodePool: NodePool = #{
kind: "NodePool",
id: "nodepool-123",
href: "https://api.hyperfleet.com/v1/nodepools/nodepool-123",
id: "019466a1-2b3c-7def-8abc-456789abcdef",
href: "https://api.hyperfleet.com/v1/nodepools/019466a1-2b3c-7def-8abc-456789abcdef",
name: "worker-pool-1",
labels: #{ environment: "production", pooltype: "worker" },
generation: 1,
Expand Down Expand Up @@ -36,9 +36,9 @@ const exampleNodePool: NodePool = #{
created_by: "user-123@example.com",
updated_by: "user-123@example.com",
owner_references: #{
id: "cluster-123",
id: "019466a0-8f8e-7abc-9def-0123456789ab",
kind: "Cluster",
href: "https://api.hyperfleet.com/v1/clusters/cluster-123",
href: "https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab",
},
status: #{
conditions: #[
Expand Down
1 change: 1 addition & 0 deletions models/common/model.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "@typespec/openapi";
using Http;
using OpenAPI;

/** Resource identifier in RFC4122 UUID v7 format (time-ordered, e.g., "019466a0-8f8e-7abc-9def-0123456789ab") */
alias Identifier = string;

alias KindCluster = "Cluster";
Expand Down
14 changes: 7 additions & 7 deletions schemas/core/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: HyperFleet API
version: 1.0.4
version: 1.0.5
contact:
name: HyperFleet Team
license:
Expand Down Expand Up @@ -754,8 +754,8 @@ components:
$ref: '#/components/schemas/ClusterStatus'
example:
kind: Cluster
id: cluster-123
href: https://api.hyperfleet.com/v1/clusters/cluster-123
id: 019466a0-8f8e-7abc-9def-0123456789ab
href: https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
name: cluster-123
labels:
environment: production
Expand Down Expand Up @@ -1013,8 +1013,8 @@ components:
$ref: '#/components/schemas/NodePoolStatus'
example:
kind: NodePool
id: nodepool-123
href: https://api.hyperfleet.com/v1/nodepools/nodepool-123
id: 019466a1-2b3c-7def-8abc-456789abcdef
href: https://api.hyperfleet.com/v1/nodepools/019466a1-2b3c-7def-8abc-456789abcdef
name: worker-pool-1
labels:
environment: production
Expand All @@ -1026,9 +1026,9 @@ components:
created_by: user-123@example.com
updated_by: user-123@example.com
owner_references:
id: cluster-123
id: 019466a0-8f8e-7abc-9def-0123456789ab
kind: Cluster
href: https://api.hyperfleet.com/v1/clusters/cluster-123
href: https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
status:
conditions:
- type: Ready
Expand Down
17 changes: 10 additions & 7 deletions schemas/core/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0'
title: HyperFleet API
version: 1.0.4
version: 1.0.5
host: hyperfleet.redhat.com
basePath: /
schemes:
Expand Down Expand Up @@ -830,8 +830,9 @@ definitions:
created_by: user-123@example.com
created_time: '2021-01-01T00:00:00Z'
generation: 1
href: 'https://api.hyperfleet.com/v1/clusters/cluster-123'
id: cluster-123
href: >-
https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
id: 019466a0-8f8e-7abc-9def-0123456789ab
kind: Cluster
labels:
environment: production
Expand Down Expand Up @@ -1100,16 +1101,18 @@ definitions:
created_by: user-123@example.com
created_time: '2021-01-01T00:00:00Z'
generation: 1
href: 'https://api.hyperfleet.com/v1/nodepools/nodepool-123'
id: nodepool-123
href: >-
https://api.hyperfleet.com/v1/nodepools/019466a1-2b3c-7def-8abc-456789abcdef
id: 019466a1-2b3c-7def-8abc-456789abcdef
kind: NodePool
labels:
environment: production
pooltype: worker
name: worker-pool-1
owner_references:
href: 'https://api.hyperfleet.com/v1/clusters/cluster-123'
id: cluster-123
href: >-
https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
id: 019466a0-8f8e-7abc-9def-0123456789ab
kind: Cluster
spec: {}
status:
Expand Down
14 changes: 7 additions & 7 deletions schemas/gcp/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: HyperFleet API
version: 1.0.4
version: 1.0.5
contact:
name: HyperFleet Team
license:
Expand Down Expand Up @@ -633,8 +633,8 @@ components:
$ref: '#/components/schemas/ClusterStatus'
example:
kind: Cluster
id: cluster-123
href: https://api.hyperfleet.com/v1/clusters/cluster-123
id: 019466a0-8f8e-7abc-9def-0123456789ab
href: https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
name: cluster-123
labels:
environment: production
Expand Down Expand Up @@ -970,8 +970,8 @@ components:
$ref: '#/components/schemas/NodePoolStatus'
example:
kind: NodePool
id: nodepool-123
href: https://api.hyperfleet.com/v1/nodepools/nodepool-123
id: 019466a1-2b3c-7def-8abc-456789abcdef
href: https://api.hyperfleet.com/v1/nodepools/019466a1-2b3c-7def-8abc-456789abcdef
name: worker-pool-1
labels:
environment: production
Expand Down Expand Up @@ -1002,9 +1002,9 @@ components:
created_by: user-123@example.com
updated_by: user-123@example.com
owner_references:
id: cluster-123
id: 019466a0-8f8e-7abc-9def-0123456789ab
kind: Cluster
href: https://api.hyperfleet.com/v1/clusters/cluster-123
href: https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
status:
conditions:
- type: Ready
Expand Down
17 changes: 10 additions & 7 deletions schemas/gcp/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0'
title: HyperFleet API
version: 1.0.4
version: 1.0.5
host: hyperfleet.redhat.com
basePath: /
schemes:
Expand Down Expand Up @@ -698,8 +698,9 @@ definitions:
created_by: user-123@example.com
created_time: '2021-01-01T00:00:00Z'
generation: 1
href: 'https://api.hyperfleet.com/v1/clusters/cluster-123'
id: cluster-123
href: >-
https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
id: 019466a0-8f8e-7abc-9def-0123456789ab
kind: Cluster
labels:
environment: production
Expand Down Expand Up @@ -1044,16 +1045,18 @@ definitions:
created_by: user-123@example.com
created_time: '2021-01-01T00:00:00Z'
generation: 1
href: 'https://api.hyperfleet.com/v1/nodepools/nodepool-123'
id: nodepool-123
href: >-
https://api.hyperfleet.com/v1/nodepools/019466a1-2b3c-7def-8abc-456789abcdef
id: 019466a1-2b3c-7def-8abc-456789abcdef
kind: NodePool
labels:
environment: production
pooltype: worker
name: worker-pool-1
owner_references:
href: 'https://api.hyperfleet.com/v1/clusters/cluster-123'
id: cluster-123
href: >-
https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab
id: 019466a0-8f8e-7abc-9def-0123456789ab
kind: Cluster
spec:
autoscaling:
Expand Down