Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Generate CloudQuery Go API Client from spec.json #27

Merged
merged 1 commit into from
Oct 7, 2023
Merged
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
8 changes: 8 additions & 0 deletions client.gen.go

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

28 changes: 23 additions & 5 deletions models.gen.go

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

54 changes: 51 additions & 3 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@
"official": true,
"short_description": "Sync data from AWS to any destination",
"repository": "https://github.com/cloudquery/cloudquery",
"tier": "free"
"tier": "paid",
"usd_per_row": "0.00123",
"free_rows_per_month": 10000
}
]
},
Expand Down Expand Up @@ -288,6 +290,9 @@
"404": {
"$ref": "#/components/responses/NotFound"
},
"422": {
"$ref": "#/components/responses/UnprocessableEntity"
},
"500": {
"$ref": "#/components/responses/InternalError"
}
Expand Down Expand Up @@ -1443,7 +1448,9 @@
"official": true,
"short_description": "Sync data from AWS to any destination",
"repository": "https://github.com/cloudquery/cloudquery",
"tier": "free"
"tier": "paid",
"usd_per_row": "0.00123",
"free_rows_per_month": 10000
}
]
},
Expand Down Expand Up @@ -2596,6 +2603,19 @@
"public": {
"description": "Whether the plugin is listed in the CloudQuery Hub. If false, the plugin will not be shown in the CloudQuery Hub and will only be visible to members of the plugin's team.",
"type": "boolean"
},
"usd_per_row": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d{1,10})?$",
"description": "The price per row in USD. This is used to calculate the price of a sync.",
"example": "0.0001",
"x-go-name": "USDPerRow"
},
"free_rows_per_month": {
"type": "integer",
"format": "int64",
"description": "The number of rows that can be synced for free each month.",
"example": 1000
}
},
"required": [
Expand All @@ -2608,7 +2628,9 @@
"display_name",
"official",
"short_description",
"tier"
"tier",
"usd_per_row",
"free_rows_per_month"
],
"title": "CloudQuery Plugin",
"type": "object"
Expand Down Expand Up @@ -2683,6 +2705,19 @@
"type": "string",
"description": "URL to the plugin's logo. This will be shown in the CloudQuery Hub. This must point to https://images.cloudquery.io/...",
"example": "https://images.cloudquery.io/logos/aws.png"
},
"usd_per_row": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d{1,10})?$",
"description": "The price per row in USD. This is used to calculate the price of a sync.",
"example": "0.0001",
"x-go-name": "USDPerRow"
},
"free_rows_per_month": {
"type": "integer",
"format": "int64",
"description": "The number of rows that can be synced for free each month.",
"example": 1000
}
}
},
Expand Down Expand Up @@ -2749,6 +2784,19 @@
"public": {
"type": "boolean",
"description": "If plugin is not public, it won't be visible to other teams in the CloudQuery Hub."
},
"usd_per_row": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d{1,10})?$",
"description": "The price per row in USD. This is used to calculate the price of a sync.",
"example": "0.0001",
"x-go-name": "USDPerRow"
},
"free_rows_per_month": {
"type": "integer",
"format": "int64",
"description": "The number of rows that can be synced for free each month.",
"example": 1000
}
}
},
Expand Down