fog-scaleway 0.4.0 → 0.5.0
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/lib/fog/scaleway/models/account/token.rb +2 -0
- data/lib/fog/scaleway/models/account/user.rb +1 -0
- data/lib/fog/scaleway/models/compute/bootscript.rb +5 -5
- data/lib/fog/scaleway/models/compute/image.rb +5 -5
- data/lib/fog/scaleway/models/compute/product_server.rb +7 -5
- data/lib/fog/scaleway/models/compute/server.rb +2 -0
- data/lib/fog/scaleway/models/compute/task.rb +2 -2
- data/lib/fog/scaleway/requests/compute/get_dashboard.rb +2 -2
- data/lib/fog/scaleway/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e48dc9a0f026f1737d4489d76f440c8b0b0e1993
|
4
|
+
data.tar.gz: a813fdb621ad19858c5a30e51a8de0f296399741
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8a649fb4f2aab1dc3ab301c7b9d100f10f0463917ca3e7c590aa66f2532ed1fa6754a90665cf81e35ea0c602bd2b4875edb8da5efd5e7f2f436ffd86a1f06e8
|
7
|
+
data.tar.gz: 7f17ff42d58eb6975a80ef7bd5600003861b585441f0f1099f9842c8fefb309492626dd1bd9732e869939039562ea506c4302579be530582d23b7ce190a3e541
|
@@ -5,6 +5,7 @@ module Fog
|
|
5
5
|
identity :id
|
6
6
|
|
7
7
|
attribute :creation_date
|
8
|
+
attribute :creation_ip
|
8
9
|
attribute :description
|
9
10
|
attribute :expires
|
10
11
|
attribute :inherits_user_perms
|
@@ -30,6 +31,7 @@ module Fog
|
|
30
31
|
|
31
32
|
def create
|
32
33
|
options = {}
|
34
|
+
options[:description] = description unless description.nil?
|
33
35
|
options[:expires] = expires != false unless expires.nil?
|
34
36
|
|
35
37
|
if (token = service.create_token(options).body['token'])
|
@@ -4,15 +4,15 @@ module Fog
|
|
4
4
|
class Bootscript < Fog::Model
|
5
5
|
identity :id
|
6
6
|
|
7
|
-
attribute :kernel
|
8
|
-
attribute :initrd
|
9
|
-
attribute :default
|
10
|
-
attribute :bootcmdargs
|
11
7
|
attribute :architecture
|
12
|
-
attribute :
|
8
|
+
attribute :bootcmdargs
|
9
|
+
attribute :default
|
13
10
|
attribute :dtb
|
11
|
+
attribute :initrd
|
12
|
+
attribute :kernel
|
14
13
|
attribute :organization
|
15
14
|
attribute :public
|
15
|
+
attribute :title
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -4,15 +4,15 @@ module Fog
|
|
4
4
|
class Image < Fog::Model
|
5
5
|
identity :id
|
6
6
|
|
7
|
-
attribute :
|
7
|
+
attribute :arch
|
8
8
|
attribute :creation_date
|
9
|
-
attribute :
|
9
|
+
attribute :default_bootscript
|
10
|
+
# attribute :extra_volumes
|
10
11
|
attribute :modification_date
|
12
|
+
attribute :name
|
11
13
|
attribute :organization
|
12
|
-
# attribute :extra_volumes
|
13
|
-
attribute :arch
|
14
|
-
attribute :root_volume
|
15
14
|
attribute :public
|
15
|
+
attribute :root_volume
|
16
16
|
|
17
17
|
def default_bootscript=(value)
|
18
18
|
attributes[:default_bootscript] = case value
|
@@ -4,13 +4,15 @@ module Fog
|
|
4
4
|
class ProductServer < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
7
|
-
attribute :volumes_constraint
|
8
|
-
attribute :network
|
9
|
-
attribute :ncpus
|
10
|
-
attribute :ram
|
11
7
|
attribute :alt_names
|
12
|
-
attribute :baremetal
|
13
8
|
attribute :arch
|
9
|
+
attribute :baremetal
|
10
|
+
attribute :hourly_price
|
11
|
+
attribute :monthly_price
|
12
|
+
attribute :ncpus
|
13
|
+
attribute :network
|
14
|
+
attribute :ram
|
15
|
+
attribute :volumes_constraint
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
@@ -166,10 +166,12 @@ module Fog
|
|
166
166
|
requires :name, :image, :volumes
|
167
167
|
|
168
168
|
options = {}
|
169
|
+
options[:bootscript] = bootscript.identity unless bootscript.nil?
|
169
170
|
options[:commercial_type] = commercial_type unless commercial_type.nil?
|
170
171
|
options[:enable_ipv6] = enable_ipv6 unless enable_ipv6.nil?
|
171
172
|
options[:dynamic_ip_required] = dynamic_ip_required unless dynamic_ip_required.nil?
|
172
173
|
options[:public_ip] = public_ip.identity unless public_ip.nil?
|
174
|
+
options[:security_group] = security_group.identity unless security_group.nil?
|
173
175
|
options[:tags] = tags unless tags.nil?
|
174
176
|
|
175
177
|
if (server = service.create_server(name, image.identity, volumes, options).body['server'])
|
@@ -4,12 +4,12 @@ module Fog
|
|
4
4
|
class Task < Fog::Model
|
5
5
|
identity :id
|
6
6
|
|
7
|
-
attribute :status
|
8
7
|
attribute :description
|
9
|
-
attribute :terminated_at
|
10
8
|
attribute :href_from
|
11
9
|
attribute :progress
|
12
10
|
attribute :started_at
|
11
|
+
attribute :status
|
12
|
+
attribute :terminated_at
|
13
13
|
|
14
14
|
def pending?
|
15
15
|
status == 'pending'
|
@@ -2,13 +2,13 @@ module Fog
|
|
2
2
|
module Scaleway
|
3
3
|
class Compute
|
4
4
|
class Real
|
5
|
-
def get_dashboard # rubocop:disable
|
5
|
+
def get_dashboard # rubocop:disable Naming/AccessorMethodName
|
6
6
|
get('/dashboard')
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
10
|
class Mock
|
11
|
-
def get_dashboard # rubocop:disable
|
11
|
+
def get_dashboard # rubocop:disable Naming/AccessorMethodName
|
12
12
|
running_servers = data[:servers].select do |_id, s|
|
13
13
|
s['state'] == 'running'
|
14
14
|
end
|
data/lib/fog/scaleway/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-scaleway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Satoshi Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|