civo 1.2.9 → 1.4.0
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/dns_domain.rb +2 -0
- data/app/models/civo/dns_record.rb +2 -0
- data/app/models/civo/ip.rb +2 -0
- data/app/models/civo/namespace.rb +20 -0
- data/app/models/civo/ssh_key.rb +2 -0
- data/lib/civo.rb +26 -30
- data/lib/civo/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c47eeadbf3d7774db11c620312cc0dceec2e5184d3047f02620d3619d38d1506
|
4
|
+
data.tar.gz: d2ec61e1caaff025801a1a2f9b46110ea32b6f8f73b08c27b5b073db231c310b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e61c994121f1ddd70c15897a1a24bf4e13aae9b8990dc7c41a7fabeebfce911c543444464a9fe685694e2f51dcaaadcf28791776fdfd1f64c082e69737ac1d38
|
7
|
+
data.tar.gz: 13b77f7315acd318324829eed1982af492ff44ca67068c32ef88e1fe4fd926e8fec5ec4988b8f97c511f7990002a95310abc90c59e899304cd5118ca69516a6d
|
data/app/models/civo/ip.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
module Civo
|
2
|
+
class Namespace < Base
|
3
|
+
if ENV["CIVO_API_VERSION"] == "2"
|
4
|
+
get :all, "/v2/namespaces"
|
5
|
+
post :create, "/v2/namespaces", required: [:label]
|
6
|
+
put :update, "/v2/namespaces/:id"
|
7
|
+
delete :remove, "/v2/namespaces/:id", required: [:id], send_delete_body: true
|
8
|
+
put :pseudo_migrate, "/v2/namespace-pseudo-migrate"
|
9
|
+
else
|
10
|
+
get :all, "/v1/namespaces"
|
11
|
+
post :create, "/v1/namespaces", required: [:name]
|
12
|
+
put :update, "/v1/namespaces/:name", required: [:name]
|
13
|
+
delete :remove, "/v1/namespaces/:name", required: [:name], send_delete_body: true
|
14
|
+
end
|
15
|
+
|
16
|
+
def to_partial_path
|
17
|
+
"civo/namespace"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/app/models/civo/ssh_key.rb
CHANGED
data/lib/civo.rb
CHANGED
@@ -8,33 +8,29 @@ ENV["CIVO_API_VERSION"] ||= "2"
|
|
8
8
|
|
9
9
|
CIVO_ENGINE_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../")
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
autoload :User, "#{CIVO_ENGINE_ROOT}/app/models/civo/user"
|
38
|
-
autoload :Volume, "#{CIVO_ENGINE_ROOT}/app/models/civo/volume"
|
39
|
-
end
|
40
|
-
end
|
11
|
+
require_relative "../app/models/civo/base"
|
12
|
+
require_relative "../app/models/civo/account"
|
13
|
+
require_relative "../app/models/civo/action"
|
14
|
+
require_relative "../app/models/civo/audit_log"
|
15
|
+
require_relative "../app/models/civo/blueprint"
|
16
|
+
require_relative "../app/models/civo/charge"
|
17
|
+
require_relative "../app/models/civo/dns_domain"
|
18
|
+
require_relative "../app/models/civo/dns_record"
|
19
|
+
require_relative "../app/models/civo/firewall"
|
20
|
+
require_relative "../app/models/civo/firewall_rule"
|
21
|
+
require_relative "../app/models/civo/instance"
|
22
|
+
require_relative "../app/models/civo/kubernetes"
|
23
|
+
require_relative "../app/models/civo/ip"
|
24
|
+
require_relative "../app/models/civo/kpi"
|
25
|
+
require_relative "../app/models/civo/load_balancer"
|
26
|
+
require_relative "../app/models/civo/network"
|
27
|
+
require_relative "../app/models/civo/quota"
|
28
|
+
require_relative "../app/models/civo/region"
|
29
|
+
require_relative "../app/models/civo/size"
|
30
|
+
require_relative "../app/models/civo/snapshot"
|
31
|
+
require_relative "../app/models/civo/ssh_key"
|
32
|
+
require_relative "../app/models/civo/system"
|
33
|
+
require_relative "../app/models/civo/team"
|
34
|
+
require_relative "../app/models/civo/template"
|
35
|
+
require_relative "../app/models/civo/user"
|
36
|
+
require_relative "../app/models/civo/volume"
|
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.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- app/models/civo/kpi.rb
|
91
91
|
- app/models/civo/kubernetes.rb
|
92
92
|
- app/models/civo/load_balancer.rb
|
93
|
+
- app/models/civo/namespace.rb
|
93
94
|
- app/models/civo/network.rb
|
94
95
|
- app/models/civo/quota.rb
|
95
96
|
- app/models/civo/region.rb
|
@@ -129,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
130
|
- !ruby/object:Gem::Version
|
130
131
|
version: '0'
|
131
132
|
requirements: []
|
132
|
-
rubygems_version: 3.
|
133
|
+
rubygems_version: 3.1.2
|
133
134
|
signing_key:
|
134
135
|
specification_version: 4
|
135
136
|
summary: Civo CLI AND API
|