civo 1.5.15 → 1.5.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/civo/database.rb +53 -31
- data/lib/civo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e7a9a987eb0de240f316af529552fbb6b038c58f367382f8aeb542274317c61
|
4
|
+
data.tar.gz: 121aa514d4bcff474d7db16eb460e63b5e813d6d36b54a300893fc1fe7df57b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5284d573abe0b23375e9d92e97dc76b3d47b84bffd2870588c478ad9afe395d14d67374d117e24b3b583ddc9b0e9ad24ffaa955212e347ecb03899441d84aae7
|
7
|
+
data.tar.gz: 103f84dd0f22f6e733aa8e72c0cc3f35bb9197031e9f824c4ea148e76fa689530c4a448bc236a198707d169a51baf9a4e041b5bf78a6b90e5ba977440dccd178
|
data/app/models/civo/database.rb
CHANGED
@@ -14,51 +14,73 @@ module Civo
|
|
14
14
|
def databases
|
15
15
|
[
|
16
16
|
{
|
17
|
-
"id": "
|
18
|
-
"name": "
|
17
|
+
"id": "dd13bc84-1224-476e-8c0c-f15630ec9523",
|
18
|
+
"name": "dancing-in-the-moonlight-2",
|
19
|
+
"replicas": 1,
|
20
|
+
"size": "g3.db.xsmall",
|
21
|
+
"software": "MySQL",
|
22
|
+
"software_version": "8.0",
|
23
|
+
"public_ip": "",
|
24
|
+
"network_id": "b064d568-5869-427c-827a-77d48cde6a2e",
|
25
|
+
"firewall_id": "0c681c22-c449-43b4-a7dc-f3644a8d21f2",
|
26
|
+
"status": "Pending",
|
27
|
+
"snapshots": []
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"id": "9c59d8dd-f514-4f6a-86bf-6bef835ac84f",
|
31
|
+
"name": "dancing-in-the-moonlight",
|
32
|
+
"replicas": 1,
|
33
|
+
"size": "g3.db.xsmall",
|
34
|
+
"software": "MySQL",
|
35
|
+
"software_version": "8.0",
|
36
|
+
"public_ip": "",
|
37
|
+
"network_id": "b064d568-5869-427c-827a-77d48cde6a2e",
|
38
|
+
"firewall_id": "0c681c22-c449-43b4-a7dc-f3644a8d21f2",
|
39
|
+
"status": "Pending",
|
40
|
+
"snapshots": []
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"id": "1de75ca8-46d3-4196-b31f-58698c0c1708",
|
44
|
+
"name": "to-be-updated-new",
|
19
45
|
"replicas": 2,
|
20
|
-
"size":
|
21
|
-
"software": "
|
22
|
-
"software_version": "
|
23
|
-
"public_ip": "
|
24
|
-
"network_id": "
|
25
|
-
"
|
26
|
-
|
27
|
-
|
28
|
-
"timestamp": "2021-12-04T10:00:28Z"
|
29
|
-
}
|
30
|
-
]
|
46
|
+
"size": "g3.db.xsmall",
|
47
|
+
"software": "MySQL",
|
48
|
+
"software_version": "8.0",
|
49
|
+
"public_ip": "",
|
50
|
+
"network_id": "b064d568-5869-427c-827a-77d48cde6a2e",
|
51
|
+
"firewall_id": "dc468f86-c96d-4f04-ac42-508885b1115f",
|
52
|
+
"status": "Pending",
|
53
|
+
"snapshots": []
|
31
54
|
}
|
32
55
|
].to_json
|
33
56
|
end
|
34
57
|
|
35
58
|
def get_database
|
36
59
|
{
|
37
|
-
"id": "
|
38
|
-
"name": "
|
39
|
-
"replicas":
|
40
|
-
"size":
|
41
|
-
"software": "
|
42
|
-
"software_version": "
|
43
|
-
"public_ip": "
|
44
|
-
"
|
45
|
-
"
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
]
|
60
|
+
"id": "0e07ce5f-179b-44e0-83cf-47ae9ca7b4ad",
|
61
|
+
"name": "my-user-friendly-database-name",
|
62
|
+
"replicas": 1,
|
63
|
+
"size": "g3.db.xsmall",
|
64
|
+
"software": "MySQL",
|
65
|
+
"software_version": "8.0",
|
66
|
+
"public_ip": "10.90.100.30",
|
67
|
+
"port": 3306,
|
68
|
+
"username": "root",
|
69
|
+
"password": "h03K5gID9S39nZZd",
|
70
|
+
"network_id": "b064d568-5869-427c-827a-77d48cde6a2e",
|
71
|
+
"firewall_id": "0c681c22-c449-43b4-a7dc-f3644a8d21f2",
|
72
|
+
"status": "Ready"
|
51
73
|
}.to_json
|
52
74
|
end
|
53
75
|
|
54
76
|
def create_database
|
55
77
|
{
|
56
|
-
"id": "
|
78
|
+
"id": "0e07ce5f-179b-44e0-83cf-47ae9ca7b4ad",
|
57
79
|
"name": "Mysite-DB",
|
58
80
|
"replicas": 2,
|
59
|
-
"size":
|
60
|
-
"software": "
|
61
|
-
"software_version": "
|
81
|
+
"size": "g3.db.xsmall",
|
82
|
+
"software": "MySQL",
|
83
|
+
"software_version": "8.0",
|
62
84
|
"public_ip": "84.127.44.100",
|
63
85
|
"network_id": "5be0646d-6e63-4aa9-8123-87adb447138c",
|
64
86
|
"snapshots": []
|
data/lib/civo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|