civo 1.4.7 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d5f083694ccd4176ecd56f205035c8e66a92474d487780a8be8cc22b80b8ec3
4
- data.tar.gz: e09b4cdc9c4ba3c47ce5a0a9e37593686edcf43a7e2c0a89d1d54c2804c8a6ba
3
+ metadata.gz: bba1fbf446f00579b2b2edd176173bf5c640aa3faefa99edd5db4a20d6c8db97
4
+ data.tar.gz: 6ecefdb03fb3fcfcf58589177ef22f559c5377a0af50bbc4efe3d7632d335427
5
5
  SHA512:
6
- metadata.gz: 91b066f01905ec99d27857e2f3aaf7f968726e0bc2b60754751f0bee9dc2ef87065092fb0e429fac2acfeac43c063cc3b7c9df5c374679f1f76773f74cae5ac0
7
- data.tar.gz: 7f25eef9a7efd71212ce0e4a0d017cdae8d6b9aaac0f3da53d9ef13673a95b9a41598ea78f3a183be823622e056e87888e8dc3bde5e62ad7eea0054c1c337179
6
+ metadata.gz: 1c41a3247159224980cf25aad023c62b1bbdb67fd1cf24e19e54a4e53e3a779e401b10dd138907c1d24a79ae1ff71f15956b0e8dca99da8999c5ac234fc8bd5e
7
+ data.tar.gz: ea3c9fe2cd697e6cb88410fb66fbf9a1f5f7f530f58e60846e2f5b60908eccac9349ff7e394f7382bae5d16d6bf38655102cde2fa81fad3ec1fd8e7a594dff4e
@@ -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], send_delete_body: true
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], send_delete_body: true
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
 
@@ -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], send_delete_body: true
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], send_delete_body: true
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], send_delete_body: true
6
+ delete :remove, "/v2/dns/:domain_id/records/:id", required: [:id]
7
7
 
8
8
  def to_partial_path
9
9
  "civo/dns_domain"
@@ -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], send_delete_body: true
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], send_delete_body: true
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], send_delete_body: true
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], send_delete_body: true
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
@@ -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], send_delete_body: true
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]
@@ -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], send_delete_body: true
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
@@ -4,8 +4,8 @@ module Civo
4
4
  get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id", requires: [:id]
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
- 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], send_delete_body: true
7
+ put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id", request_body_type: :json
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], send_delete_body: true
7
+ delete :remove, "/v2/loadbalancers/:id", required: [:id]
8
8
 
9
9
  def to_partial_path
10
10
  "civo/loadbalancer"
@@ -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], send_delete_body: true
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], send_delete_body: true
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 Role < Base
7
7
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/roles"
8
8
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/roles", requires: [:name, :permissions]
9
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation/roles/:id"
9
+ put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/roles/:id", requires: %i{id}
10
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/roles/:id"
10
11
  end
11
12
  end
@@ -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], send_delete_body: true
7
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/snapshots/:id", required: [:id], send_delete_body: true
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"
@@ -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], send_delete_body: true
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
@@ -7,7 +7,7 @@ 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}, send_delete_body: true
10
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id", requires: %i{id}
11
11
 
12
12
  get :members, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members"
13
13
  post :add_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members", requires: [:user_id]
@@ -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", send_delete_body: true
7
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/templates/:id"
8
8
  end
9
9
 
10
10
  def to_partial_path
@@ -9,6 +9,7 @@ module Civo
9
9
  put :flags, "/v#{ENV["CIVO_API_VERSION"] || "2"}/users/:id/flags"
10
10
  put :save, "/v#{ENV["CIVO_API_VERSION"] || "2"}/users/:id"
11
11
  get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/users/:id"
12
+ get :everything, "/v#{ENV["CIVO_API_VERSION"] || "2"}/users/:id/everything"
12
13
  if ENV["CIVO_API_VERSION"] == "2"
13
14
  get :all, "/v2/users"
14
15
  get :find_by_token, "/v2/users/token/:token"
@@ -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], send_delete_body: true
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]
@@ -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", send_delete_body: true
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
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.4.7"
2
+ VERSION = "1.5.2"
3
3
  end
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.7
4
+ version: 1.5.2
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-09-23 00:00:00.000000000 Z
11
+ date: 2021-10-18 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.4.6
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.4.6
26
+ version: 1.10.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: toml
29
29
  requirement: !ruby/object:Gem::Requirement