civo 1.5.8 → 1.5.11
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/application.rb +13 -0
- data/app/models/civo/kpi.rb +1 -1
- data/app/models/civo/reserved_ip.rb +14 -0
- data/lib/civo/version.rb +1 -1
- data/lib/civo.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d01e195bc77b18891da0565b6129927bcb72b00059e84e3986ea15faec23516e
|
4
|
+
data.tar.gz: 81b65c0b2ed67a97dee82952167ed8ad1bb0c592fa473b8bf8b742eda693956d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48af60efb75408b4fafc322523aed6dc7c0ce2b0e1c9a806997250321214c17cd6c35e9020df1f53a0165aa1c934e67cb0b028a0312caf260d61332d076ddd4d
|
7
|
+
data.tar.gz: 80cea97b25f678304d2110115e4882008124f11ffc9eeb510465ecc8b188e1cffb27e9be45319fa50931c53d0680e0e519905605e723c331979bd21b65dce0f4
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Civo
|
2
|
+
class Application < Base
|
3
|
+
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications"
|
4
|
+
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications/:id", requires: [:id]
|
5
|
+
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications", requires: [:name, :region, :network_id, :size, :ssh_key_ids]
|
6
|
+
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications/:id", request_body_type: :json
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications/:id", requires: [:id]
|
8
|
+
|
9
|
+
def to_partial_path
|
10
|
+
"civo/application"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/app/models/civo/kpi.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module Civo
|
2
|
+
class ReservedIp < Base
|
3
|
+
get :all, "/v2/ips", requires: [:region]
|
4
|
+
get :find, "/v2/ips/:id", requires: [:id, :region]
|
5
|
+
post :create, "/v2/ips", requires: [:name, :region]
|
6
|
+
put :update, "/v2/ips/:id", requires: [:id, :region]
|
7
|
+
delete :remove, "/v2/ips/:id", requires: [:id, :region]
|
8
|
+
post :actions, "/v2/ips/:id/actions", requires: [:id, :region, :action]
|
9
|
+
|
10
|
+
def to_partial_path
|
11
|
+
"civo/ips"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/civo/version.rb
CHANGED
data/lib/civo.rb
CHANGED
@@ -11,6 +11,7 @@ CIVO_ENGINE_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../")
|
|
11
11
|
require_relative "../app/models/civo/base"
|
12
12
|
require_relative "../app/models/civo/account"
|
13
13
|
require_relative "../app/models/civo/action"
|
14
|
+
require_relative "../app/models/civo/application"
|
14
15
|
require_relative "../app/models/civo/audit_log"
|
15
16
|
require_relative "../app/models/civo/blueprint"
|
16
17
|
require_relative "../app/models/civo/charge"
|
@@ -29,6 +30,7 @@ require_relative "../app/models/civo/network"
|
|
29
30
|
require_relative "../app/models/civo/organisation"
|
30
31
|
require_relative "../app/models/civo/quota"
|
31
32
|
require_relative "../app/models/civo/region"
|
33
|
+
require_relative "../app/models/civo/reserved_ip"
|
32
34
|
require_relative "../app/models/civo/role"
|
33
35
|
require_relative "../app/models/civo/size"
|
34
36
|
require_relative "../app/models/civo/snapshot"
|
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.11
|
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-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- Rakefile
|
78
78
|
- app/models/civo/account.rb
|
79
79
|
- app/models/civo/action.rb
|
80
|
+
- app/models/civo/application.rb
|
80
81
|
- app/models/civo/audit_log.rb
|
81
82
|
- app/models/civo/base.rb
|
82
83
|
- app/models/civo/blueprint.rb
|
@@ -97,6 +98,7 @@ files:
|
|
97
98
|
- app/models/civo/permission.rb
|
98
99
|
- app/models/civo/quota.rb
|
99
100
|
- app/models/civo/region.rb
|
101
|
+
- app/models/civo/reserved_ip.rb
|
100
102
|
- app/models/civo/role.rb
|
101
103
|
- app/models/civo/size.rb
|
102
104
|
- app/models/civo/snapshot.rb
|