softlayer_api 3.2.2 → 3.2.3
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.textile +5 -0
- data/lib/softlayer/Config.rb +2 -1
- data/lib/softlayer/VirtualServerOrder.rb +7 -2
- data/lib/softlayer/base.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af45f0aabad4c63f7575cc786798bb67f170c91c
|
|
4
|
+
data.tar.gz: d78ef69dbdcf6c56364e87e274056a59e5da60b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63abd1fd3f5334a19da6ffd231a00edec7339d0e77139d7bbccbffc72c125c7bc9cb45d16c4beb5d3023484730e0d2b46c106fc5e86cce1d89ac737b1df6c33e
|
|
7
|
+
data.tar.gz: 87754a5ed3448026c6f8d03cd3cc200793b06b4e89816441094bd74a90d0b5f7256c9a6ed364f7c23a03b3aba231e22c90d552954db2fb515621bd609fb6cfa8
|
data/CHANGELOG.textile
CHANGED
data/lib/softlayer/Config.rb
CHANGED
|
@@ -121,7 +121,8 @@ module SoftLayer
|
|
|
121
121
|
search_path.each do |file_path|
|
|
122
122
|
if File.readable? file_path
|
|
123
123
|
config = ConfigParser.new file_path
|
|
124
|
-
|
|
124
|
+
profile_name = ENV['SL_PROFILE'] || 'softlayer'
|
|
125
|
+
softlayer_section = config[profile_name]
|
|
125
126
|
|
|
126
127
|
if softlayer_section
|
|
127
128
|
result[:api_key] = softlayer_section['api_key'] if softlayer_section['api_key']
|
|
@@ -108,6 +108,10 @@ module SoftLayer
|
|
|
108
108
|
# Corresponds to +primaryBackendNetworkComponent.networkVlan.id+ in the +createObject+ documentation
|
|
109
109
|
attr_accessor :user_metadata
|
|
110
110
|
|
|
111
|
+
# Hash, supplemental options - See https://sldn.softlayer.com/reference/datatypes/SoftLayer_Virtual_Guest_SupplementalCreateObjectOptions
|
|
112
|
+
# Corresponds to +supplementalCreateObjectOptions+ in the +createObject+ documentation
|
|
113
|
+
attr_accessor :supplementalCreateObjectOptions
|
|
114
|
+
|
|
111
115
|
# Create a new order that works through the given client connection
|
|
112
116
|
def initialize (client = nil)
|
|
113
117
|
@softlayer_client = client || Client.default_client
|
|
@@ -170,11 +174,12 @@ module SoftLayer
|
|
|
170
174
|
template['primaryNetworkComponent'] = { "networkVlan" => { "id" => @public_vlan_id.to_i } } if @public_vlan_id
|
|
171
175
|
template['primaryBackendNetworkComponent'] = { "networkVlan" => {"id" => @private_vlan_id.to_i } } if @private_vlan_id
|
|
172
176
|
template['sshKeys'] = @ssh_key_ids.collect { |ssh_key_id| {'id'=> ssh_key_id.to_i } } if @ssh_key_ids
|
|
177
|
+
template['supplementalCreateObjectOptions'] = @supplementalCreateObjectOptions if @supplementalCreateObjectOptions
|
|
173
178
|
|
|
174
179
|
if @image_template
|
|
175
|
-
|
|
180
|
+
template['blockDeviceTemplateGroup'] = {"globalIdentifier" => @image_template.global_id}
|
|
176
181
|
elsif @os_reference_code
|
|
177
|
-
|
|
182
|
+
template['operatingSystemReferenceCode'] = @os_reference_code
|
|
178
183
|
end
|
|
179
184
|
|
|
180
185
|
if @disks && !@disks.empty?
|
data/lib/softlayer/base.rb
CHANGED
|
@@ -12,7 +12,7 @@ require 'rubygems'
|
|
|
12
12
|
module SoftLayer
|
|
13
13
|
# The version number (including major, minor, and bugfix numbers)
|
|
14
14
|
# This should change in accordance with the concept of Semantic Versioning
|
|
15
|
-
VERSION = "3.2.
|
|
15
|
+
VERSION = "3.2.3" # version history in the CHANGELOG.textile file at the root of the source
|
|
16
16
|
|
|
17
17
|
# The base URL of the SoftLayer API available to the public internet.
|
|
18
18
|
API_PUBLIC_ENDPOINT = 'https://api.softlayer.com/xmlrpc/v3/'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: softlayer_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SoftLayer Development Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: configparser
|
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
197
197
|
version: '0'
|
|
198
198
|
requirements: []
|
|
199
199
|
rubyforge_project:
|
|
200
|
-
rubygems_version: 2.6.
|
|
200
|
+
rubygems_version: 2.6.14
|
|
201
201
|
signing_key:
|
|
202
202
|
specification_version: 4
|
|
203
203
|
summary: Library for accessing the SoftLayer API
|