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
1 change: 1 addition & 0 deletions models-core/cluster/example_cluster.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const exampleCluster: Cluster = #{
kind: "Cluster",
id: "cluster-123",
href: "https://api.hyperfleet.com/v1/clusters/cluster-123",
uuid: "550e8400-e29b-41d4-a716-446655440000",
name: "cluster-123",
labels: #{ environment: "production", team: "platform" },
spec: #{},
Expand Down
1 change: 1 addition & 0 deletions models-core/nodepool/example_nodepool.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const exampleNodePool: NodePool = #{
kind: "NodePool",
id: "nodepool-123",
href: "https://api.hyperfleet.com/v1/nodepools/nodepool-123",
uuid: "7c9e6679-7425-40de-944b-e07fc1f90ae7",
name: "worker-pool-1",
labels: #{ environment: "production", pooltype: "worker" },
spec: #{},
Expand Down
1 change: 1 addition & 0 deletions models-gcp/cluster/example_cluster.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const exampleCluster: Cluster = #{
kind: "Cluster",
id: "cluster-123",
href: "https://api.hyperfleet.com/v1/clusters/cluster-123",
uuid: "550e8400-e29b-41d4-a716-446655440000",
name: "cluster-123",
labels: #{ environment: "production", team: "platform" },
spec: #{
Expand Down
1 change: 1 addition & 0 deletions models-gcp/nodepool/example_nodepool.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const exampleNodePool: NodePool = #{
kind: "NodePool",
id: "nodepool-123",
href: "https://api.hyperfleet.com/v1/nodepools/nodepool-123",
uuid: "7c9e6679-7425-40de-944b-e07fc1f90ae7",
name: "worker-pool-1",
labels: #{ environment: "production", pooltype: "worker" },
generation: 1,
Expand Down
9 changes: 9 additions & 0 deletions models/clusters/model.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ model Cluster {
...ClusterBase;
...APICreatedResource;

/**
* RFC4122 UUID identifier for the cluster (immutable, assigned at creation).
* This provides a stable, standards-compliant identifier for platform integrations
* that require UUID format (e.g., Hypershift spec.clusterID).
*/
@format("uuid")
@example("550e8400-e29b-41d4-a716-446655440000")
uuid?: string;

/**
* Generation field is updated on customer updates, reflecting the version of the "intent" of the customer
*/
Expand Down
9 changes: 9 additions & 0 deletions models/nodepools/model.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ model NodePool {
...NodePoolBase;
...APICreatedResource;

/**
* RFC4122 UUID identifier for the nodepool (immutable, assigned at creation).
* This provides a stable, standards-compliant identifier for platform integrations
* that require UUID format.
*/
@format("uuid")
@example("7c9e6679-7425-40de-944b-e07fc1f90ae7")
uuid?: string;

/**
* Generation field is updated on customer updates, reflecting the version of the "intent" of the customer
*/
Expand Down
28 changes: 27 additions & 1 deletion 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 @@ -745,6 +745,14 @@ components:
updated_by:
type: string
format: email
uuid:
type: string
format: uuid
description: |-
RFC4122 UUID identifier for the cluster (immutable, assigned at creation).
This provides a stable, standards-compliant identifier for platform integrations
that require UUID format (e.g., Hypershift spec.clusterID).
example: 550e8400-e29b-41d4-a716-446655440000
generation:
type: integer
format: int32
Expand All @@ -756,6 +764,7 @@ components:
kind: Cluster
id: cluster-123
href: https://api.hyperfleet.com/v1/clusters/cluster-123
uuid: 550e8400-e29b-41d4-a716-446655440000
name: cluster-123
labels:
environment: production
Expand Down Expand Up @@ -1002,6 +1011,14 @@ components:
updated_by:
type: string
format: email
uuid:
type: string
format: uuid
description: |-
RFC4122 UUID identifier for the nodepool (immutable, assigned at creation).
This provides a stable, standards-compliant identifier for platform integrations
that require UUID format.
example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
generation:
type: integer
format: int32
Expand All @@ -1015,6 +1032,7 @@ components:
kind: NodePool
id: nodepool-123
href: https://api.hyperfleet.com/v1/nodepools/nodepool-123
uuid: 7c9e6679-7425-40de-944b-e07fc1f90ae7
name: worker-pool-1
labels:
environment: production
Expand Down Expand Up @@ -1144,6 +1162,14 @@ components:
updated_by:
type: string
format: email
uuid:
type: string
format: uuid
description: |-
RFC4122 UUID identifier for the nodepool (immutable, assigned at creation).
This provides a stable, standards-compliant identifier for platform integrations
that require UUID format.
example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
generation:
type: integer
format: int32
Expand Down
40 changes: 39 additions & 1 deletion 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 @@ -874,6 +874,7 @@ definitions:
type: Adapter2Successful
updated_by: user-123@example.com
updated_time: '2021-01-01T00:00:00Z'
uuid: 550e8400-e29b-41d4-a716-446655440000
properties:
created_by:
format: email
Expand Down Expand Up @@ -918,6 +919,18 @@ definitions:
updated_time:
format: date-time
type: string
uuid:
description: >-
RFC4122 UUID identifier for the cluster (immutable, assigned at
creation).

This provides a stable, standards-compliant identifier for platform
integrations

that require UUID format (e.g., Hypershift spec.clusterID).
example: 550e8400-e29b-41d4-a716-446655440000
format: uuid
type: string
required:
- name
- spec
Expand Down Expand Up @@ -1148,6 +1161,7 @@ definitions:
type: Adapter2Successful
updated_by: user-123@example.com
updated_time: '2021-01-01T00:00:00Z'
uuid: 7c9e6679-7425-40de-944b-e07fc1f90ae7
properties:
created_by:
format: email
Expand Down Expand Up @@ -1194,6 +1208,18 @@ definitions:
updated_time:
format: date-time
type: string
uuid:
description: >-
RFC4122 UUID identifier for the nodepool (immutable, assigned at
creation).

This provides a stable, standards-compliant identifier for platform
integrations

that require UUID format.
example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
format: uuid
type: string
required:
- name
- spec
Expand Down Expand Up @@ -1286,6 +1312,18 @@ definitions:
updated_time:
format: date-time
type: string
uuid:
description: >-
RFC4122 UUID identifier for the nodepool (immutable, assigned at
creation).

This provides a stable, standards-compliant identifier for platform
integrations

that require UUID format.
example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
format: uuid
type: string
required:
- name
- spec
Expand Down
28 changes: 27 additions & 1 deletion 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 @@ -624,6 +624,14 @@ components:
updated_by:
type: string
format: email
uuid:
type: string
format: uuid
description: |-
RFC4122 UUID identifier for the cluster (immutable, assigned at creation).
This provides a stable, standards-compliant identifier for platform integrations
that require UUID format (e.g., Hypershift spec.clusterID).
example: 550e8400-e29b-41d4-a716-446655440000
generation:
type: integer
format: int32
Expand All @@ -635,6 +643,7 @@ components:
kind: Cluster
id: cluster-123
href: https://api.hyperfleet.com/v1/clusters/cluster-123
uuid: 550e8400-e29b-41d4-a716-446655440000
name: cluster-123
labels:
environment: production
Expand Down Expand Up @@ -959,6 +968,14 @@ components:
updated_by:
type: string
format: email
uuid:
type: string
format: uuid
description: |-
RFC4122 UUID identifier for the nodepool (immutable, assigned at creation).
This provides a stable, standards-compliant identifier for platform integrations
that require UUID format.
example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
generation:
type: integer
format: int32
Expand All @@ -972,6 +989,7 @@ components:
kind: NodePool
id: nodepool-123
href: https://api.hyperfleet.com/v1/nodepools/nodepool-123
uuid: 7c9e6679-7425-40de-944b-e07fc1f90ae7
name: worker-pool-1
labels:
environment: production
Expand Down Expand Up @@ -1139,6 +1157,14 @@ components:
updated_by:
type: string
format: email
uuid:
type: string
format: uuid
description: |-
RFC4122 UUID identifier for the nodepool (immutable, assigned at creation).
This provides a stable, standards-compliant identifier for platform integrations
that require UUID format.
example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
generation:
type: integer
format: int32
Expand Down
40 changes: 39 additions & 1 deletion 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 @@ -761,6 +761,7 @@ definitions:
type: Adapter2Successful
updated_by: user-123@example.com
updated_time: '2021-01-01T00:00:00Z'
uuid: 550e8400-e29b-41d4-a716-446655440000
properties:
created_by:
format: email
Expand Down Expand Up @@ -805,6 +806,18 @@ definitions:
updated_time:
format: date-time
type: string
uuid:
description: >-
RFC4122 UUID identifier for the cluster (immutable, assigned at
creation).

This provides a stable, standards-compliant identifier for platform
integrations

that require UUID format (e.g., Hypershift spec.clusterID).
example: 550e8400-e29b-41d4-a716-446655440000
format: uuid
type: string
required:
- name
- spec
Expand Down Expand Up @@ -1111,6 +1124,7 @@ definitions:
type: NodePoolSuccessful
updated_by: user-123@example.com
updated_time: '2021-01-01T00:00:00Z'
uuid: 7c9e6679-7425-40de-944b-e07fc1f90ae7
properties:
created_by:
format: email
Expand Down Expand Up @@ -1157,6 +1171,18 @@ definitions:
updated_time:
format: date-time
type: string
uuid:
description: >-
RFC4122 UUID identifier for the nodepool (immutable, assigned at
creation).

This provides a stable, standards-compliant identifier for platform
integrations

that require UUID format.
example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
format: uuid
type: string
required:
- name
- spec
Expand Down Expand Up @@ -1268,6 +1294,18 @@ definitions:
updated_time:
format: date-time
type: string
uuid:
description: >-
RFC4122 UUID identifier for the nodepool (immutable, assigned at
creation).

This provides a stable, standards-compliant identifier for platform
integrations

that require UUID format.
example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
format: uuid
type: string
required:
- name
- spec
Expand Down