|
3003 | 3003 | "user": {
|
3004 | 3004 | "created_at": "2017-07-14T16:53:42Z",
|
3005 | 3005 | "email": "user@clouduery.io",
|
| 3006 | + "id": "12345678-1234-1234-1234-1234567890ab", |
3006 | 3007 | "name": "user",
|
3007 | 3008 | "updated_at": "2017-07-14T16:53:42Z"
|
3008 | 3009 | }
|
|
4682 | 4683 | "description": "Whether the sync is disabled",
|
4683 | 4684 | "default": false
|
4684 | 4685 | },
|
4685 |
| - "env_keys": { |
| 4686 | + "env": { |
4686 | 4687 | "type": "array",
|
4687 |
| - "description": "Environment variable names for the sync", |
| 4688 | + "description": "Environment variables for the sync", |
4688 | 4689 | "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" |
4697 | 4691 | }
|
4698 | 4692 | },
|
4699 | 4693 | "cpu": {
|
|
4810 | 4804 | "type": "boolean",
|
4811 | 4805 | "description": "Whether the sync is disabled"
|
4812 | 4806 | },
|
4813 |
| - "env_keys": { |
| 4807 | + "env": { |
4814 | 4808 | "type": "array",
|
4815 |
| - "description": "Environment variable names for the sync", |
| 4809 | + "description": "Environment variables for the sync", |
4816 | 4810 | "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" |
4825 | 4812 | }
|
4826 | 4813 | },
|
4827 | 4814 | "cpu": {
|
|
6666 | 6653 | "format": "date-time",
|
6667 | 6654 | "type": "string"
|
6668 | 6655 | },
|
| 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 | + }, |
6669 | 6663 | "email": {
|
6670 | 6664 | "$ref": "#/components/schemas/Email"
|
6671 | 6665 | },
|
|
6679 | 6673 | }
|
6680 | 6674 | },
|
6681 | 6675 | "required": [
|
| 6676 | + "id", |
6682 | 6677 | "email"
|
6683 | 6678 | ],
|
6684 | 6679 | "title": "CloudQuery User",
|
|
7184 | 7179 | "title": "Docker Error",
|
7185 | 7180 | "type": "object"
|
7186 | 7181 | },
|
| 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 | + }, |
7187 | 7200 | "Sync": {
|
7188 | 7201 | "description": "Managed Sync definition",
|
7189 | 7202 | "type": "object",
|
|
7192 | 7205 | "spec",
|
7193 | 7206 | "disabled",
|
7194 | 7207 | "schedule",
|
7195 |
| - "env_keys", |
7196 |
| - "env_values", |
| 7208 | + "env", |
7197 | 7209 | "cpu",
|
7198 | 7210 | "memory",
|
7199 | 7211 | "created_at",
|
|
7216 | 7228 | "type": "string",
|
7217 | 7229 | "description": "Cron schedule for the sync"
|
7218 | 7230 | },
|
7219 |
| - "env_keys": { |
| 7231 | + "env": { |
7220 | 7232 | "type": "array",
|
7221 |
| - "description": "Environment variable names for the sync", |
| 7233 | + "description": "Environment variables for the sync", |
7222 | 7234 | "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" |
7231 | 7236 | }
|
7232 | 7237 | },
|
7233 | 7238 | "cpu": {
|
|
0 commit comments