civo 1.4.4 → 1.4.8
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/account.rb +1 -1
- data/app/models/civo/blueprint.rb +1 -1
- data/app/models/civo/database.rb +1 -1
- data/app/models/civo/dns_domain.rb +1 -1
- data/app/models/civo/dns_record.rb +1 -1
- data/app/models/civo/firewall.rb +2 -2
- data/app/models/civo/firewall_rule.rb +2 -2
- data/app/models/civo/instance.rb +1 -1
- data/app/models/civo/ip.rb +1 -1
- data/app/models/civo/kubernetes.rb +1 -1
- data/app/models/civo/load_balancer.rb +1 -1
- data/app/models/civo/network.rb +2 -2
- data/app/models/civo/organisation.rb +1 -0
- data/app/models/civo/snapshot.rb +2 -2
- data/app/models/civo/ssh_key.rb +1 -1
- data/app/models/civo/team.rb +5 -5
- data/app/models/civo/template.rb +1 -1
- data/app/models/civo/volume.rb +1 -1
- data/app/models/civo/webhook.rb +1 -1
- data/lib/civo/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 516b7d671323a8ee143986704685faab7354128ac77ff58030ab5392eb291c89
|
4
|
+
data.tar.gz: 7f7f12b17b9fe91d9ae9ed1534974ced81aa0e00333f31cc3bf541198585f305
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42493f5438139b63f465a6cf66e2ee63ad9dbbeca14ccb128b0bb731fe7a619cde038c5ad131a5379d75ce71b04e3bb9e06dbaefbc1efd692b860eda55a28310
|
7
|
+
data.tar.gz: d00992a9e025ed39eb51972c7a6ac0984539f32f588f30eedebf7bb769be036e6c7e1c8c35ceb399666c816780332b89bee7cf894042b7892dca964b3ebd55d0
|
data/app/models/civo/account.rb
CHANGED
@@ -7,7 +7,7 @@ module Civo
|
|
7
7
|
put :confirm, "/v#{ENV["CIVO_API_VERSION"] || "2"}/accounts/confirm/:token"
|
8
8
|
put :reset, "/v#{ENV["CIVO_API_VERSION"] || "2"}/accounts/:id", requires: [:id]
|
9
9
|
put :save, "/v#{ENV["CIVO_API_VERSION"] || "2"}/accounts/:id"
|
10
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/accounts/:id", requires: [:id]
|
10
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/accounts/:id", requires: [:id]
|
11
11
|
get :active_paid_services, "/v#{ENV["CIVO_API_VERSION"] || "2"}/accounts/:id/active_paid_services", requires: [:id]
|
12
12
|
|
13
13
|
def to_partial_path
|
@@ -7,7 +7,7 @@ module Civo
|
|
7
7
|
put :stage, "/v#{ENV["CIVO_API_VERSION"] || "2"}/blueprints/:id/stage", requires: [:id]
|
8
8
|
put :complete, "/v#{ENV["CIVO_API_VERSION"] || "2"}/blueprints/:id/complete", requires: [:id]
|
9
9
|
put :fail, "/v#{ENV["CIVO_API_VERSION"] || "2"}/blueprints/:id/fail", requires: [:id]
|
10
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/blueprints/:id", requires: [:id]
|
10
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/blueprints/:id", requires: [:id]
|
11
11
|
put :start, "/v#{ENV["CIVO_API_VERSION"] || "2"}/blueprints/:id/start", requires: [:id]
|
12
12
|
put :stop, "/v#{ENV["CIVO_API_VERSION"] || "2"}/blueprints/:id/stop", requires: [:id]
|
13
13
|
|
data/app/models/civo/database.rb
CHANGED
@@ -4,7 +4,7 @@ module Civo
|
|
4
4
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases", requires: [:name, :size, :region]
|
5
5
|
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id"
|
6
6
|
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id"
|
7
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id", requires: [:id]
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id", requires: [:id]
|
8
8
|
put :upgrade, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id/resize", requires: [:size, :id]
|
9
9
|
put :restore, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id/restore", requires: [:snapshot_id]
|
10
10
|
get :snapshots, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id/snapshots"
|
@@ -3,7 +3,7 @@ module Civo
|
|
3
3
|
get :all, "/v2/dns"
|
4
4
|
post :create, "/v2/dns", required: [:name]
|
5
5
|
put :update, "/v2/dns/:id"
|
6
|
-
delete :remove, "/v2/dns/:id", required: [:id]
|
6
|
+
delete :remove, "/v2/dns/:id", required: [:id]
|
7
7
|
|
8
8
|
def to_partial_path
|
9
9
|
"civo/dns_domain"
|
@@ -3,7 +3,7 @@ module Civo
|
|
3
3
|
get :all, "/v2/dns/:domain_id/records"
|
4
4
|
post :create, "/v2/dns/:domain_id/records", required: [:name, :value, :type]
|
5
5
|
put :update, "/v2/dns/:domain_id/records/:id", required: [:name, :value, :type]
|
6
|
-
delete :remove, "/v2/dns/:domain_id/records/:id", required: [:id]
|
6
|
+
delete :remove, "/v2/dns/:domain_id/records/:id", required: [:id]
|
7
7
|
|
8
8
|
def to_partial_path
|
9
9
|
"civo/dns_domain"
|
data/app/models/civo/firewall.rb
CHANGED
@@ -4,9 +4,9 @@ module Civo
|
|
4
4
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/firewalls", required: [:name]
|
5
5
|
if ENV["CIVO_API_VERSION"] == "2"
|
6
6
|
put :update, "/v2/firewalls/:id"
|
7
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/firewalls/:id", required: [:id]
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/firewalls/:id", required: [:id]
|
8
8
|
else
|
9
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/firewalls/:name", required: [:name]
|
9
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/firewalls/:name", required: [:name]
|
10
10
|
end
|
11
11
|
|
12
12
|
def to_partial_path
|
@@ -4,12 +4,12 @@ module Civo
|
|
4
4
|
get :all, "/v2/firewalls/:firewall_id/rules", required: [:firewall_id]
|
5
5
|
post :create, "/v2/firewalls/:firewall_id/rules", required: [:firewall_id, :protocol, :start_port,
|
6
6
|
:cidr, :direction]
|
7
|
-
delete :remove, "/v2/firewalls/:firewall_id/rules/:id", required: [:firewall_id, :id]
|
7
|
+
delete :remove, "/v2/firewalls/:firewall_id/rules/:id", required: [:firewall_id, :id]
|
8
8
|
else
|
9
9
|
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/firewalls/:name/rules", required: [:name]
|
10
10
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/firewalls/:name/rules", required: [:name, :protocol, :start_port,
|
11
11
|
:cidr, :direction]
|
12
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/firewalls/:name/rules/:id", required: [:name, :id]
|
12
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/firewalls/:name/rules/:id", required: [:name, :id]
|
13
13
|
end
|
14
14
|
|
15
15
|
def to_partial_path
|
data/app/models/civo/instance.rb
CHANGED
@@ -7,7 +7,7 @@ module Civo
|
|
7
7
|
defaults: {public_ip: true, initial_user: "civo"}
|
8
8
|
put :tags, "/v2/instances/:id/tags"
|
9
9
|
put :update, "/v2/instances/:id"
|
10
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id", requires: [:id]
|
10
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id", requires: [:id]
|
11
11
|
post :reboot, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id/reboots", requires: [:id]
|
12
12
|
post :hard_reboot, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id/hard_reboots", requires: [:id]
|
13
13
|
post :soft_reboot, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id/soft_reboots", requires: [:id]
|
data/app/models/civo/ip.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Civo
|
2
2
|
class Ip < Base
|
3
3
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id/ip", requires: [:id], defaults: {public: true}
|
4
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id/ip/:ip_address", requires: [:id, :ip_address]
|
4
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id/ip/:ip_address", requires: [:id, :ip_address]
|
5
5
|
put :connect, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id/ip/:ip_address", requires: [:id, :ip_address, :private_ip]
|
6
6
|
|
7
7
|
def to_partial_path
|
@@ -5,7 +5,7 @@ module Civo
|
|
5
5
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters", requires: [:name]
|
6
6
|
post :recycle, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id/recycle", requires: [:id, :hostname]
|
7
7
|
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id"
|
8
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id", requires: [:id]
|
8
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id", requires: [:id]
|
9
9
|
|
10
10
|
get :applications, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/applications"
|
11
11
|
get :application, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/applications/:name", requires: [:name]
|
@@ -4,7 +4,7 @@ module Civo
|
|
4
4
|
get :find, "/v2/loadbalancers/:id"
|
5
5
|
post :create, "/v2/loadbalancers", required: [:hostname]
|
6
6
|
put :update, "/v2/loadbalancers/:id"
|
7
|
-
delete :remove, "/v2/loadbalancers/:id", required: [:id]
|
7
|
+
delete :remove, "/v2/loadbalancers/:id", required: [:id]
|
8
8
|
|
9
9
|
def to_partial_path
|
10
10
|
"civo/loadbalancer"
|
data/app/models/civo/network.rb
CHANGED
@@ -4,13 +4,13 @@ module Civo
|
|
4
4
|
get :all, "/v2/networks"
|
5
5
|
post :create, "/v2/networks", required: [:label]
|
6
6
|
put :update, "/v2/networks/:id"
|
7
|
-
delete :remove, "/v2/networks/:id", required: [:id]
|
7
|
+
delete :remove, "/v2/networks/:id", required: [:id]
|
8
8
|
put :pseudo_migrate, "/v2/network-pseudo-migrate"
|
9
9
|
else
|
10
10
|
get :all, "/v1/networks"
|
11
11
|
post :create, "/v1/networks", required: [:name]
|
12
12
|
put :update, "/v1/networks/:name", required: [:name]
|
13
|
-
delete :remove, "/v1/networks/:name", required: [:name]
|
13
|
+
delete :remove, "/v1/networks/:name", required: [:name]
|
14
14
|
end
|
15
15
|
|
16
16
|
def to_partial_path
|
@@ -6,6 +6,7 @@ module Civo
|
|
6
6
|
class Organisation < Base
|
7
7
|
get :current, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation"
|
8
8
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation", requires: [:name]
|
9
|
+
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation", requires: [:name]
|
9
10
|
get :accounts, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation/accounts"
|
10
11
|
post :add_account, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation/accounts", requires: [:account_id]
|
11
12
|
end
|
data/app/models/civo/snapshot.rb
CHANGED
@@ -3,8 +3,8 @@ module Civo
|
|
3
3
|
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/snapshots"
|
4
4
|
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/snapshots/:name", required: [:name]
|
5
5
|
put :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/snapshots/:name", required: [:name, :instance_id]
|
6
|
-
delete :remove_old, "/v#{ENV["CIVO_API_VERSION"] || "2"}/snapshots/:name", required: [:name]
|
7
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/snapshots/:id", required: [:id]
|
6
|
+
delete :remove_old, "/v#{ENV["CIVO_API_VERSION"] || "2"}/snapshots/:name", required: [:name]
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/snapshots/:id", required: [:id]
|
8
8
|
|
9
9
|
def to_partial_path
|
10
10
|
"civo/snapshot"
|
data/app/models/civo/ssh_key.rb
CHANGED
@@ -2,7 +2,7 @@ module Civo
|
|
2
2
|
class SshKey < Base
|
3
3
|
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/sshkeys"
|
4
4
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/sshkeys", requires: [:name, :public_key]
|
5
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/sshkeys/:id", requires: [:id]
|
5
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/sshkeys/:id", requires: [:id]
|
6
6
|
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/sshkeys/:id", requires: [:id, :name]
|
7
7
|
|
8
8
|
def to_partial_path
|
data/app/models/civo/team.rb
CHANGED
@@ -7,11 +7,11 @@ module Civo
|
|
7
7
|
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams"
|
8
8
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams"
|
9
9
|
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id", requires: %i{id}
|
10
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id", requires: %i{id}
|
10
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id", requires: %i{id}
|
11
11
|
|
12
|
-
get :members "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members"
|
13
|
-
post :add_member "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members", requires: [:user_id]
|
14
|
-
|
15
|
-
delete :remove_member "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
|
12
|
+
get :members, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members"
|
13
|
+
post :add_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members", requires: [:user_id]
|
14
|
+
put :update_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
|
15
|
+
delete :remove_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
|
16
16
|
end
|
17
17
|
end
|
data/app/models/civo/template.rb
CHANGED
@@ -4,7 +4,7 @@ module Civo
|
|
4
4
|
get :details, "/v#{ENV["CIVO_API_VERSION"] || "2"}/templates/:id"
|
5
5
|
put :save, "/v#{ENV["CIVO_API_VERSION"] || "2"}/templates/:id"
|
6
6
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/templates", required: [:name, :image_id]
|
7
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/templates/:id"
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/templates/:id"
|
8
8
|
end
|
9
9
|
|
10
10
|
def to_partial_path
|
data/app/models/civo/volume.rb
CHANGED
@@ -4,7 +4,7 @@ module Civo
|
|
4
4
|
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/volumes/:id", requires: [:id]
|
5
5
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/volumes", requires: [:name, :size_gb]
|
6
6
|
put :update, "/v2/volumes/:id", requires: [:id, :name]
|
7
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/volumes/:id", requires: [:id]
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/volumes/:id", requires: [:id]
|
8
8
|
put :attach, "/v2/volumes/:id/attach", requires: [:id, :instance_id]
|
9
9
|
put :detach, "/v2/volumes/:id/detach", requires: [:id]
|
10
10
|
put :resize, "/v2/volumes/:id/resize", requires: [:id, :size_gb]
|
data/app/models/civo/webhook.rb
CHANGED
@@ -5,7 +5,7 @@ module Civo
|
|
5
5
|
put :save, "/v#{ENV["CIVO_API_VERSION"] || "2"}/webhooks/:id"
|
6
6
|
post :test, "/v#{ENV["CIVO_API_VERSION"] || "2"}/webhooks/:id/test"
|
7
7
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/webhooks", required: [:name, :url]
|
8
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/webhooks/:id"
|
8
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/webhooks/:id"
|
9
9
|
end
|
10
10
|
|
11
11
|
def to_partial_path
|
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.
|
4
|
+
version: 1.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.10.8
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.10.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: toml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|