Skip to content

Commit b402ab1

Browse files
committed
Update for Platform API
1 parent df3f02b commit b402ab1

File tree

8 files changed

+48153
-24022
lines changed

8 files changed

+48153
-24022
lines changed

.github/workflows/gen-client.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- name: Get Specs File
1616
run: |
17-
curl -H "Authorization: token ${{ secrets.GH_CQ_BOT }}" https://raw.githubusercontent.com/cloudquery/cloud/main/cloud/internal/servergen/spec.json -o spec.json
17+
curl -H "Authorization: token ${{ secrets.GH_CQ_BOT }}" https://raw.githubusercontent.com/cloudquery/cloud/main/platform/internal/servergen/spec.json -o spec.json
1818
1919
- name: Format Specs File
2020
run: |
@@ -38,8 +38,8 @@ jobs:
3838
token: ${{ secrets.GH_CQ_BOT }}
3939
branch: fix/gen-cloudquery-api
4040
base: main
41-
title: 'fix: Generate CloudQuery Go API Client from `spec.json`'
42-
commit-message: 'fix: Generate CloudQuery Go API Client from `spec.json`'
41+
title: "fix: Generate CloudQuery Go API Client from `spec.json`"
42+
commit-message: "fix: Generate CloudQuery Go API Client from `spec.json`"
4343
body: This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
4444
author: cq-bot <[email protected]>
4545
labels: automerge

client.gen.go

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

client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.3.0 --config=./models.yaml ./spec.json
2-
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.3.0 --config=./client.yaml ./spec.json
3-
package cloudquery_api
1+
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.4.1 --config=./models.yaml ./spec.json
2+
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.4.1 --config=./client.yaml ./spec.json
3+
package cloudquery_platform_api

client.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package: cloudquery_api
1+
package: cloudquery_platform_api
22
generate:
33
client: true
44
output: client.gen.go

0 commit comments

Comments
 (0)