civo 1.5.10 → 1.5.13

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: f319ccf87c742e7fc50e6c0f644a0aa4a95f8d28b183c84beb68c689a36bbd76
4
- data.tar.gz: b114272b6b4509e9d55031b7702e3975790c6e36c495c9edab6758bf6c614164
3
+ metadata.gz: 40243f3a0ad8b4b3d891864fb607d2961464a1c6ed9e070f6456d683f17ce263
4
+ data.tar.gz: df67beaa688473b9508a7fe108713a2ed083c7b390af42590a1e0d21a77388f4
5
5
  SHA512:
6
- metadata.gz: 3ba54c1e9e018ac1cfe61346888e1b4224632d8f9fba204acccbd3128779f7f6f1b8a398bb3dbbf7d5351e841a551bdf7bcf96b7d81e32cdfbdffde9d1148775
7
- data.tar.gz: 875dd2fc96d6d139de761e0c0fac357a26cf6bb353ffbd8fb884c09566317cda257af3304f2161c2773dc29d4783f97455d6c76cfed46c812bf559b7648f9263
6
+ metadata.gz: 983e602f6c846fedb66755a0c21a18fe4c86261f3218ee5bacc149dd3938b779ca406174dcc34ddb1812ee540a5945d99419e74cc5850707fc1cc9214c631a81
7
+ data.tar.gz: 4bca634377e83372b87e5038070ee0809f4b8e15373c719d467a8e5f9454d74552db515881036638651d649415ac048365a0c5516b6e48172dc067647831f889
@@ -2,7 +2,7 @@ module Civo
2
2
  class FirewallRule < Base
3
3
  if ENV["CIVO_API_VERSION"] == "2"
4
4
  get :all, "/v2/firewalls/:firewall_id/rules", required: [:firewall_id]
5
- post :create, "/v2/firewalls/:firewall_id/rules", required: [:firewall_id, :protocol, :start_port,
5
+ post :create, "/v2/firewalls/:firewall_id/rules", required: [:firewall_id, :protocol, :ports,
6
6
  :cidr, :direction]
7
7
  delete :remove, "/v2/firewalls/:firewall_id/rules/:id", required: [:firewall_id, :id]
8
8
  else
@@ -0,0 +1,13 @@
1
+ module Civo
2
+ class ObjectStore < Base
3
+ get :all, "/v2/objectstores", requires: [:region]
4
+ get :find, "/v2/objectstores/:id", requires: [:id, :region]
5
+ post :create, "/v2/objectstores", requires: [:name, :max_size_gb, :region], defaults: {max_size_gb: 500}
6
+ put :update, "/v2/objectstores/:id", requires: [:id, :region]
7
+ delete :remove, "/v2/objectstores/:id", requires: [:id, :region]
8
+
9
+ def to_partial_path
10
+ "civo/object_store"
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,14 @@
1
+ module Civo
2
+ class ReservedIp < Base
3
+ get :all, "/v2/ips", requires: [:region]
4
+ get :find, "/v2/ips/:id", requires: [:id, :region]
5
+ post :create, "/v2/ips", requires: [:name, :region]
6
+ put :update, "/v2/ips/:id", requires: [:id, :region]
7
+ delete :remove, "/v2/ips/:id", requires: [:id, :region]
8
+ post :actions, "/v2/ips/:id/actions", requires: [:id, :region, :action]
9
+
10
+ def to_partial_path
11
+ "civo/ips"
12
+ end
13
+ end
14
+ end
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.5.10"
2
+ VERSION = "1.5.13"
3
3
  end
data/lib/civo.rb CHANGED
@@ -27,9 +27,11 @@ require_relative "../app/models/civo/ip"
27
27
  require_relative "../app/models/civo/kpi"
28
28
  require_relative "../app/models/civo/load_balancer"
29
29
  require_relative "../app/models/civo/network"
30
+ require_relative "../app/models/civo/object_store"
30
31
  require_relative "../app/models/civo/organisation"
31
32
  require_relative "../app/models/civo/quota"
32
33
  require_relative "../app/models/civo/region"
34
+ require_relative "../app/models/civo/reserved_ip"
33
35
  require_relative "../app/models/civo/role"
34
36
  require_relative "../app/models/civo/size"
35
37
  require_relative "../app/models/civo/snapshot"
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.5.10
4
+ version: 1.5.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-16 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest
@@ -94,10 +94,12 @@ files:
94
94
  - app/models/civo/kubernetes.rb
95
95
  - app/models/civo/load_balancer.rb
96
96
  - app/models/civo/network.rb
97
+ - app/models/civo/object_store.rb
97
98
  - app/models/civo/organisation.rb
98
99
  - app/models/civo/permission.rb
99
100
  - app/models/civo/quota.rb
100
101
  - app/models/civo/region.rb
102
+ - app/models/civo/reserved_ip.rb
101
103
  - app/models/civo/role.rb
102
104
  - app/models/civo/size.rb
103
105
  - app/models/civo/snapshot.rb