Skip to content

Commit 5f5b960

Browse files
authored
fix: Generate CloudQuery Go API Client from spec.json (#105)
This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
1 parent 4849707 commit 5f5b960

File tree

2 files changed

+55
-47
lines changed

2 files changed

+55
-47
lines changed

models.gen.go

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

spec.json

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3003,6 +3003,7 @@
30033003
"user": {
30043004
"created_at": "2017-07-14T16:53:42Z",
30053005
"email": "user@clouduery.io",
3006+
"id": "12345678-1234-1234-1234-1234567890ab",
30063007
"name": "user",
30073008
"updated_at": "2017-07-14T16:53:42Z"
30083009
}
@@ -4682,18 +4683,11 @@
46824683
"description": "Whether the sync is disabled",
46834684
"default": false
46844685
},
4685-
"env_keys": {
4686+
"env": {
46864687
"type": "array",
4687-
"description": "Environment variable names for the sync",
4688+
"description": "Environment variables for the sync",
46884689
"items": {
4689-
"type": "string"
4690-
}
4691-
},
4692-
"env_values": {
4693-
"type": "array",
4694-
"description": "Environment variable values for the sync",
4695-
"items": {
4696-
"type": "string"
4690+
"$ref": "#/components/schemas/SyncEnv"
46974691
}
46984692
},
46994693
"cpu": {
@@ -4810,18 +4804,11 @@
48104804
"type": "boolean",
48114805
"description": "Whether the sync is disabled"
48124806
},
4813-
"env_keys": {
4807+
"env": {
48144808
"type": "array",
4815-
"description": "Environment variable names for the sync",
4809+
"description": "Environment variables for the sync",
48164810
"items": {
4817-
"type": "string"
4818-
}
4819-
},
4820-
"env_values": {
4821-
"type": "array",
4822-
"description": "Environment variable values for the sync",
4823-
"items": {
4824-
"type": "string"
4811+
"$ref": "#/components/schemas/SyncEnv"
48254812
}
48264813
},
48274814
"cpu": {
@@ -6666,6 +6653,13 @@
66666653
"format": "date-time",
66676654
"type": "string"
66686655
},
6656+
"id": {
6657+
"description": "ID of the User",
6658+
"type": "string",
6659+
"format": "uuid",
6660+
"example": "12345678-1234-1234-1234-1234567890ab",
6661+
"x-go-name": "ID"
6662+
},
66696663
"email": {
66706664
"$ref": "#/components/schemas/Email"
66716665
},
@@ -6679,6 +6673,7 @@
66796673
}
66806674
},
66816675
"required": [
6676+
"id",
66826677
"email"
66836678
],
66846679
"title": "CloudQuery User",
@@ -7184,6 +7179,24 @@
71847179
"title": "Docker Error",
71857180
"type": "object"
71867181
},
7182+
"SyncEnv": {
7183+
"type": "object",
7184+
"description": "Environment variable",
7185+
"required": [
7186+
"name",
7187+
"value"
7188+
],
7189+
"properties": {
7190+
"name": {
7191+
"type": "string",
7192+
"description": "Name of the environment variable"
7193+
},
7194+
"value": {
7195+
"type": "string",
7196+
"description": "Value of the environment variable"
7197+
}
7198+
}
7199+
},
71877200
"Sync": {
71887201
"description": "Managed Sync definition",
71897202
"type": "object",
@@ -7192,8 +7205,7 @@
71927205
"spec",
71937206
"disabled",
71947207
"schedule",
7195-
"env_keys",
7196-
"env_values",
7208+
"env",
71977209
"cpu",
71987210
"memory",
71997211
"created_at",
@@ -7216,18 +7228,11 @@
72167228
"type": "string",
72177229
"description": "Cron schedule for the sync"
72187230
},
7219-
"env_keys": {
7231+
"env": {
72207232
"type": "array",
7221-
"description": "Environment variable names for the sync",
7233+
"description": "Environment variables for the sync",
72227234
"items": {
7223-
"type": "string"
7224-
}
7225-
},
7226-
"env_values": {
7227-
"type": "array",
7228-
"description": "Environment variable values for the sync",
7229-
"items": {
7230-
"type": "string"
7235+
"$ref": "#/components/schemas/SyncEnv"
72317236
}
72327237
},
72337238
"cpu": {

0 commit comments

Comments
 (0)