hetznercloud 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/hcloud/resources/action.rb +8 -0
- data/lib/hcloud/resources/datacenter.rb +8 -0
- data/lib/hcloud/resources/iso.rb +2 -0
- data/lib/hcloud/resources/location.rb +8 -0
- data/lib/hcloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a3bc8bc5dfc3e5154ae94a877dbdc8c355c93b027f986ca3725c0866bece1f8
|
4
|
+
data.tar.gz: 6b43309988c2d4839fec5b9698381f263cff0a3789f6b4caaefae4d810b5ad2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd662a4a50655993945562054fa50ea8f3773df37098aee24e67357874682214c35a1bfbcb373e577d1478f9ffb877de0cee9d2cbe7afeacd0e3be5fefa89ff0
|
7
|
+
data.tar.gz: b68871da40e599c2b91388d020065c57aba4cd6b037cccaeeca4a9dd43d18071a39cf7b01c7ba0531c6c80ff2460bca82e5d7335499ed3feb5f7e128e6a64654
|
data/CHANGELOG.md
CHANGED
@@ -44,5 +44,13 @@ module HCloud
|
|
44
44
|
attribute :error, :error
|
45
45
|
|
46
46
|
attribute :resources, :resource, array: true, default: -> { [] }
|
47
|
+
|
48
|
+
class << self
|
49
|
+
def all
|
50
|
+
warn "[DEPRECATION] Starting on 1 October 2023, this endpoint will no longer be available. After that, it won't be possible anymore to list all actions across all resources. As an alternative, you can use the action endpoints of a specific resource to list all actions (e.g. of all servers or of all Load Balancers)."
|
51
|
+
|
52
|
+
super
|
53
|
+
end
|
54
|
+
end
|
47
55
|
end
|
48
56
|
end
|
@@ -9,6 +9,14 @@ module HCloud
|
|
9
9
|
# HCloud::Datacenter.all
|
10
10
|
# # => [#<HCloud::Datacenter id: 2, ...>, ...]
|
11
11
|
#
|
12
|
+
# == Sort datacenters
|
13
|
+
#
|
14
|
+
# HCloud::Datacenter.sort(name: :desc)
|
15
|
+
# # => [#<HCloud::Datacenter id: 1, ...>, ...]
|
16
|
+
#
|
17
|
+
# HCloud::Datacenter.sort(:id, name: :asc)
|
18
|
+
# # => [#<HCloud::Datacenter id: 1, ...>, ...]
|
19
|
+
#
|
12
20
|
# == Search datacenters
|
13
21
|
#
|
14
22
|
# HCloud::Datacenter.where(name: "fsn1-dc8")
|
data/lib/hcloud/resources/iso.rb
CHANGED
@@ -9,6 +9,14 @@ module HCloud
|
|
9
9
|
# HCloud::Location.all
|
10
10
|
# # => [#<HCloud::Location id: 1, ...>, ...]
|
11
11
|
#
|
12
|
+
# == Sort locations
|
13
|
+
#
|
14
|
+
# HCloud::Location.sort(name: :desc)
|
15
|
+
# # => [#<HCloud::Location id: 1, ...>, ...]
|
16
|
+
#
|
17
|
+
# HCloud::Location.sort(:id, name: :asc)
|
18
|
+
# # => [#<HCloud::Location id: 1, ...>, ...]
|
19
|
+
#
|
12
20
|
# == Search locations
|
13
21
|
#
|
14
22
|
# HCloud::Location.where(name: "fsn1")
|
data/lib/hcloud/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hetznercloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Dejonckheere
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|