civo 1.4.5 → 1.5.0

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: 5632088e14414d38cde78dc528acc021d075c79273c6eb3f1458e225e9ace469
4
- data.tar.gz: a76d91db2a742a4a981e57289928d8bd432126d70317c3d126a962e5de74d0c2
3
+ metadata.gz: 5e048371f68c4f9bded9d9cd72881f7e490e66e12703ab1a9ad582c0725bf318
4
+ data.tar.gz: 7cef0b8f141894eb2cff77c5834829ca928367461e3cf78f014fc1b56ed3ff59
5
5
  SHA512:
6
- metadata.gz: f6410fb9cc77b5e9fd19cc0305bad9263e1fe2c63f785874ea92a7c6773a207e4455559a8c09faf80116970b0e1570c3f593b3337b0699a9908a32fd0d74d001
7
- data.tar.gz: 7d6c809d709a21ee8d28c319879578f7c4226952c7333a66544c0353e1dc060b8869d15559204526d0b0a3a788748de60bb45ded94ebd3c9680ce108e8aabc2c
6
+ metadata.gz: 71e30e3a6ede3798d9658d1769b996d69548c3cde0684cc743494b4d09561d25236143369496fd9deb188f8aa6ad6f7a5ef13d25a43083bacd9dfdd84039d3ed
7
+ data.tar.gz: cf3a7c011c319480206b1fd5cdb8635ca92d658ab1eb9f2533f9df1e6498a840452e413510b73aa96cfddfd4c80090842119f79c8a00a5780a6fe5a4045d44d0
@@ -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
@@ -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
- 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
- post :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"
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
@@ -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.5"
2
+ VERSION = "1.5.0"
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.5
4
+ version: 1.5.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: 2021-08-18 00:00:00.000000000 Z
11
+ date: 2021-10-06 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