civo 1.4.6 → 1.5.1

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: 7912e42dd05c4b609fe28bd039673c111cd47a61e61a2561a6473610e1324ec0
4
- data.tar.gz: d4a77354f7f3c170ff66dc7ae597bba0dbf9d6471eef497eee99fddc99fcb599
3
+ metadata.gz: 5b5b254cffb9ee4a8357d5bf9f07fa2c05f6a0db4a82e391dd9df9d0ed7a3a0f
4
+ data.tar.gz: 5d4515d16f051aa888ab3b162a9c53d9fd2b7c9a8c3c70af832288a778fff9b1
5
5
  SHA512:
6
- metadata.gz: b36bbd43e27c3c02db1de5759b41a78e0aab075b02a0ebb08bd7939c99c8ddbfc6a4e07827b96f8ee98e195fc0bd3a45ef63a536b536ea634379f3a3cf546a2b
7
- data.tar.gz: 93464cf375d03a1f1acdf24d6900efe549d84160356a8e5645aaf4dd18557ae93604d54ae21cb28e836e81a00a6eb70c067a382984f1e7e9b0f17dd96a930abb
6
+ metadata.gz: f4ce5b7e14bc497801759497eca684c59c479b283abc0b7f599f6ce4c1aac8430a7ec483f886adf394842b17754c21bd64d4d4cff1874015772be8999c25b8e5
7
+ data.tar.gz: 38c08c86e5195a9dfaa5824a05d9f5da04d965e1fddfd53981a998aef24737c9e3356536d854793a5a2ef51d450df2144966cd2b95f7726a84d9748660dd6d4a
@@ -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,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}, 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]
14
- post :update_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
14
+ put :update_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
15
15
  delete :remove_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
16
16
  end
17
17
  end
@@ -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
@@ -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.6"
2
+ VERSION = "1.5.1"
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.6
4
+ version: 1.5.1
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-08-23 00:00:00.000000000 Z
11
+ date: 2021-10-08 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