civo 1.5.7 → 1.5.10

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: 4c721f8c01795679e286e9633bd0176afe250ca2852dbf7eb69ca1b7245f18ca
4
- data.tar.gz: cd2bcd8f6f6967286e3e48f3d08342126b5e0bbcfcc53a633013744958707625
3
+ metadata.gz: f319ccf87c742e7fc50e6c0f644a0aa4a95f8d28b183c84beb68c689a36bbd76
4
+ data.tar.gz: b114272b6b4509e9d55031b7702e3975790c6e36c495c9edab6758bf6c614164
5
5
  SHA512:
6
- metadata.gz: 761951fb942c5fac01c590859399697b63c484bbc1fed552a9ebc8d23c27429d03121b071762b0756e3ea31d112787871ad0df61f550a0a4c0e01669b1b07f90
7
- data.tar.gz: 49f87ae6c60c26db3fb13677ba8c887300e916bb096fc30bd9e38a31f811b7887dbbe1350c75a0c9dcadb20539da2630fdd1c7fce67ad23f260d85cd50539d01
6
+ metadata.gz: 3ba54c1e9e018ac1cfe61346888e1b4224632d8f9fba204acccbd3128779f7f6f1b8a398bb3dbbf7d5351e841a551bdf7bcf96b7d81e32cdfbdffde9d1148775
7
+ data.tar.gz: 875dd2fc96d6d139de761e0c0fac357a26cf6bb353ffbd8fb884c09566317cda257af3304f2161c2773dc29d4783f97455d6c76cfed46c812bf559b7648f9263
@@ -0,0 +1,13 @@
1
+ module Civo
2
+ class Application < Base
3
+ get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications"
4
+ get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications/:id", requires: [:id]
5
+ post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications", requires: [:name, :region, :network_id, :size, :ssh_key_ids]
6
+ put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications/:id", request_body_type: :json
7
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications/:id", requires: [:id]
8
+
9
+ def to_partial_path
10
+ "civo/application"
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  module Civo
2
- class KPI < Base
2
+ class Kpi < Base
3
3
  get :stats, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kpi"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  module Civo
2
2
  class LoadBalancer < Base
3
- get :all, "/v2/loadbalancers", fake: :loadbalancers
4
- get :find, "/v2/loadbalancers/:id", fake: :get_loadbalancer
3
+ get :all, "/v2/loadbalancers"
4
+ get :find, "/v2/loadbalancers/:id"
5
5
  post :create, "/v2/loadbalancers", required: [:hostname], fake: :get_loadbalancer
6
6
  put :update, "/v2/loadbalancers/:id", fake: :get_loadbalancer
7
7
  delete :remove, "/v2/loadbalancers/:id", required: [:id], fake: :delete_loadbalancer
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.5.7"
2
+ VERSION = "1.5.10"
3
3
  end
data/lib/civo.rb CHANGED
@@ -11,6 +11,7 @@ CIVO_ENGINE_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../")
11
11
  require_relative "../app/models/civo/base"
12
12
  require_relative "../app/models/civo/account"
13
13
  require_relative "../app/models/civo/action"
14
+ require_relative "../app/models/civo/application"
14
15
  require_relative "../app/models/civo/audit_log"
15
16
  require_relative "../app/models/civo/blueprint"
16
17
  require_relative "../app/models/civo/charge"
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.7
4
+ version: 1.5.10
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-12-13 00:00:00.000000000 Z
11
+ date: 2022-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest
@@ -77,6 +77,7 @@ files:
77
77
  - Rakefile
78
78
  - app/models/civo/account.rb
79
79
  - app/models/civo/action.rb
80
+ - app/models/civo/application.rb
80
81
  - app/models/civo/audit_log.rb
81
82
  - app/models/civo/base.rb
82
83
  - app/models/civo/blueprint.rb