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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1d7d2673388f2dc8e5bfbb0473221e75c85faf0
4
- data.tar.gz: 6bcd387f1f0831c3b637f062c4b2d370f4e9e24f
3
+ metadata.gz: e48dc9a0f026f1737d4489d76f440c8b0b0e1993
4
+ data.tar.gz: a813fdb621ad19858c5a30e51a8de0f296399741
5
5
  SHA512:
6
- metadata.gz: f61d0c7c3aeb85e2af10b5b6673fd87cfbd940c293f382db1e6e174a68b897a0746de80941674a9c46689cbe71c0345c892639b798f53bebe7b39826cc7d2d7b
7
- data.tar.gz: 822310176f0921c1bc1eb46aced26550c28ef36efd6fe189c8c13e11cfea95b24e8448b5c825d951de51c381e0d3542a2c513a4b8dc9aecc1b47d9170438bef0
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'])
@@ -5,6 +5,7 @@ module Fog
5
5
  identity :id
6
6
 
7
7
  attribute :creation_date
8
+ attribute :double_auth_enabled
8
9
  attribute :email
9
10
  attribute :firstname
10
11
  attribute :fullname
@@ -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 :title
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 :default_bootscript
7
+ attribute :arch
8
8
  attribute :creation_date
9
- attribute :name
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 Style/AccessorMethodName
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 Style/AccessorMethodName
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
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Scaleway
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.5.0'.freeze
4
4
  end
5
5
  end
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.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-06 00:00:00.000000000 Z
11
+ date: 2018-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler