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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6adb91cf79b368d111f7eb49ddce70a5edc0ed1ca200e846081712bb8f9408a1
4
- data.tar.gz: df6f6ce2bca1bf8df04c7e1fdc88caf152f830312d7aa53b77bea1db68f01af1
3
+ metadata.gz: 516b7d671323a8ee143986704685faab7354128ac77ff58030ab5392eb291c89
4
+ data.tar.gz: 7f7f12b17b9fe91d9ae9ed1534974ced81aa0e00333f31cc3bf541198585f305
5
5
  SHA512:
6
- metadata.gz: f775f4c8efea23ccbb97ffb195b3533845d2a3f792fa8e9e7d8bcd92f53f2a77e4c5694747132ceec1669a60f51ea09872d343be2cc0ffa3587b65560553a9da
7
- data.tar.gz: 0f594bd863728a84b3bdbfc91214b2fc7fc667d7d7bb947921e7510e593172b30ebf80147ce55642203d4d76bfbcf85730c37d1f0c7972c81b636d679dfb5d64
6
+ metadata.gz: 42493f5438139b63f465a6cf66e2ee63ad9dbbeca14ccb128b0bb731fe7a619cde038c5ad131a5379d75ce71b04e3bb9e06dbaefbc1efd692b860eda55a28310
7
+ data.tar.gz: d00992a9e025ed39eb51972c7a6ac0984539f32f588f30eedebf7bb769be036e6c7e1c8c35ceb399666c816780332b89bee7cf894042b7892dca964b3ebd55d0
@@ -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
@@ -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], send_delete_body: true
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 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
@@ -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.4"
2
+ VERSION = "1.4.8"
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.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-08-18 00:00:00.000000000 Z
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.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