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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f92616fa3f3d7892a380e75a600df3c4b0e6d1f
4
- data.tar.gz: cf11685a6754bc2ac4b1386008ba3953b6bda16f
3
+ metadata.gz: af45f0aabad4c63f7575cc786798bb67f170c91c
4
+ data.tar.gz: d78ef69dbdcf6c56364e87e274056a59e5da60b8
5
5
  SHA512:
6
- metadata.gz: 70eb92b41aef54b2aa555bff34e071945110d2cd2a0f703f2662fa0546b0ed22cd0e66ae74ece48950e5d843bf4971647d6fb8fc7803174e830ede67644077db
7
- data.tar.gz: 5a336a63bdd8504e858e32cc8f6a2512abdc483b82a0c9f580f9820c0978b39f8c8fe73371075ff4ae534a60fc067d531dec6b21fefb5115382bf6edee2f67aa
6
+ metadata.gz: 63abd1fd3f5334a19da6ffd231a00edec7339d0e77139d7bbccbffc72c125c7bc9cb45d16c4beb5d3023484730e0d2b46c106fc5e86cce1d89ac737b1df6c33e
7
+ data.tar.gz: 87754a5ed3448026c6f8d03cd3cc200793b06b4e89816441094bd74a90d0b5f7256c9a6ed364f7c23a03b3aba231e22c90d552954db2fb515621bd609fb6cfa8
@@ -1,3 +1,8 @@
1
+ *3.2.3*
2
+ * Support for profiles.
3
+ * Support for HVM.
4
+
5
+
1
6
  *3.2.2*
2
7
  * Fix NoMethodError when getting the datacenters out of an ImageTemplate and the value was nil.
3
8
  * Fix NoMethodError when getting public and private images with a result limit of 1.
@@ -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
- softlayer_section = config['softlayer']
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
- template['blockDeviceTemplateGroup'] = {"globalIdentifier" => @image_template.global_id}
180
+ template['blockDeviceTemplateGroup'] = {"globalIdentifier" => @image_template.global_id}
176
181
  elsif @os_reference_code
177
- template['operatingSystemReferenceCode'] = @os_reference_code
182
+ template['operatingSystemReferenceCode'] = @os_reference_code
178
183
  end
179
184
 
180
185
  if @disks && !@disks.empty?
@@ -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.2" # version history in the CHANGELOG.textile file at the root of the source
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.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: 2017-05-19 00:00:00.000000000 Z
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.12
200
+ rubygems_version: 2.6.14
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Library for accessing the SoftLayer API