civo 1.5.29 → 1.5.31

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: 48766fab88f13f425904a1d9d6495c03bf720165a0b69f0fd1b4a0b25b5c1af0
4
- data.tar.gz: ea8fd8265c13dea01d17443f1549e09a7133dff6bf4dd8add8bf1e45374781c8
3
+ metadata.gz: '0895d2c1cf7db75c9116310f4c6ba1b5aeee9cc26bc0d9d01c96e0b090cf65b8'
4
+ data.tar.gz: e7d9ddb8d0170af62a87b361a425731eb4f54eff4655a38c40a54056bfa0317b
5
5
  SHA512:
6
- metadata.gz: 13770acb9c8a9042df24ca80eb878c10bbc16a19cd7e9eea418b01a4463703bfe31b38c6418b22d17bc6fd223236c81f1387842e6f0c2970e447f1d2e0eca44f
7
- data.tar.gz: '017399b55bfc5bf8bdaece5286b4e222502be5e54453a99703303792397fa364629b2eaa6c40b8ae0439695c1b718b3f8fa89dd6d2386a20ee125d5d188bd7a9'
6
+ metadata.gz: 885ceb5afba43f8ebac64fb4cc1be29951cbb7889cd34db367679af9a05ca033a8d22aab8e8336c7194547aad22b1a39dc6bb56f7bd1c14df8c1e5daedb2644f
7
+ data.tar.gz: c8d740a5344bb485e4492c0af1ef3d29d7aed0305746caac288be37a2c14891e4d4cb4fbaa28fbcc382512344372de5f07d3b2d53d05943c54e2319e9a720059
@@ -3,7 +3,7 @@ module Civo
3
3
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances"
4
4
  get :high_cpu, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/high_cpu"
5
5
  get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances/:id", requires: [:id]
6
- post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances", requires: [:hostname, :size, :region],
6
+ post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/instances", requires: [:hostname, :size, :region], request_body_type: :json,
7
7
  defaults: {public_ip: true, initial_user: "civo"}
8
8
  put :tags, "/v2/instances/:id/tags"
9
9
  put :update, "/v2/instances/:id"
@@ -0,0 +1,9 @@
1
+ module Civo
2
+ class VolumeType < Base
3
+ get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/volumetypes"
4
+
5
+ def to_partial_path
6
+ "civo/volumetype"
7
+ end
8
+ end
9
+ end
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.5.29"
2
+ VERSION = "1.5.31"
3
3
  end
data/lib/civo.rb CHANGED
@@ -45,3 +45,4 @@ require_relative "../app/models/civo/team_member"
45
45
  require_relative "../app/models/civo/template"
46
46
  require_relative "../app/models/civo/user"
47
47
  require_relative "../app/models/civo/volume"
48
+ require_relative "../app/models/civo/volume_type"
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.29
4
+ version: 1.5.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-01 00:00:00.000000000 Z
11
+ date: 2024-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest
@@ -113,6 +113,7 @@ files:
113
113
  - app/models/civo/template.rb
114
114
  - app/models/civo/user.rb
115
115
  - app/models/civo/volume.rb
116
+ - app/models/civo/volume_type.rb
116
117
  - app/models/civo/webhook.rb
117
118
  - config/routes.rb
118
119
  - lib/civo.rb
@@ -141,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
142
  - !ruby/object:Gem::Version
142
143
  version: '0'
143
144
  requirements: []
144
- rubygems_version: 3.0.8
145
+ rubygems_version: 3.5.14
145
146
  signing_key:
146
147
  specification_version: 4
147
148
  summary: Civo CLI AND API