softlayer 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a39f9fb38a5c673a5ea8ac982eb209a790efbf1
4
- data.tar.gz: 6ca760b778a52f83fd86a1fc849c87cd03caee6d
3
+ metadata.gz: 904de7751c6d14ff6f30cd89cec3bdea2b6453a0
4
+ data.tar.gz: 898431b6e383be3d311b5c2292fda1a11534597f
5
5
  SHA512:
6
- metadata.gz: cf84e5f0403e1cc9cc117f402648ace5cc9effef212e78451ccc33c0429c7eb2be5d9e1a49ce9ee665e2604c2f0bcb7f926d7a856c9c144329650b89bb3103a7
7
- data.tar.gz: e01a4cfa817ad04c7225d5ede3aaa70f1ffbe9def31fd21904fdb18f20e29dea9a481959c873d399f1b27e7ec20bfdbb4ce3e2800b3573754ed7991faa549b9c
6
+ metadata.gz: 27c29fbaaa2ccf2c9bf0fa5dbbba0b980b8e9e2bee9fbd7ca14b3ee9a085168b5f952d4675db62d17693ce80c44052d2fb8a0cc34cfe4fa72a12d466cfc20a5a
7
+ data.tar.gz: 52cf10fdbca6f200f2f992f197a4685443c04c0a5f6d7a4cd245a8f31080ecde5ab3283869a85bb42e8f5141bea4042ce5c4540092620b92fedeec674459e587
data/.gitignore CHANGED
@@ -11,5 +11,9 @@
11
11
  /vendor/cache
12
12
 
13
13
  # file used for tests
14
- client.rb
14
+ /client.rb
15
15
  /test/fixtures/dump
16
+ /data/metadata.json
17
+
18
+ # ignore jekyll site
19
+ _site
@@ -67,6 +67,9 @@
67
67
  <message name="editSoftwareComponentPasswordsResponse">
68
68
  <part name="editSoftwareComponentPasswordsReturn" type="xsd:boolean"/>
69
69
  </message>
70
+ <message name="executeRemoteScript">
71
+ <part name="uri" type="xsd:string"/>
72
+ </message>
70
73
  <message name="findByIpAddress">
71
74
  <part name="ipAddress" type="xsd:string"/>
72
75
  </message>
@@ -1097,6 +1100,10 @@ This method will cancel a server effective immediately. For servers billed hourl
1097
1100
  <input message="tns:editSoftwareComponentPasswords"/>
1098
1101
  <output message="tns:editSoftwareComponentPasswordsResponse"/>
1099
1102
  </operation>
1103
+ <operation name="executeRemoteScript">
1104
+ <documentation>Download and run remote script from uri on the hardware.</documentation>
1105
+ <input message="tns:executeRemoteScript"/>
1106
+ </operation>
1100
1107
  <operation name="findByIpAddress">
1101
1108
  <documentation>The '''findByIpAddress''' method finds hardware using its primary public or private IP address. IP addresses that have a secondary subnet tied to the hardware will not return the hardware - alternate means of locating the hardware must be used (see '''Associated Methods'''). If no hardware is found, no errors are generated and no data is returned. </documentation>
1102
1109
  <input message="tns:findByIpAddress"/>
@@ -2053,6 +2060,14 @@ rebootSoft rebootHard powerOn powerOff powerCycle
2053
2060
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2054
2061
  </output>
2055
2062
  </operation>
2063
+ <operation name="executeRemoteScript">
2064
+ <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_HardwareAction"/>
2065
+ <input>
2066
+ <soap:header message="tns:authenticateHeader" part="authenticate" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2067
+ <soap:header message="tns:SoftLayer_HardwareInitParametersHeader" part="SoftLayer_HardwareInitParameters" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2068
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2069
+ </input>
2070
+ </operation>
2056
2071
  <operation name="findByIpAddress">
2057
2072
  <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_HardwareAction"/>
2058
2073
  <input>
@@ -67,6 +67,9 @@
67
67
  <message name="editSoftwareComponentPasswordsResponse">
68
68
  <part name="editSoftwareComponentPasswordsReturn" type="xsd:boolean"/>
69
69
  </message>
70
+ <message name="executeRemoteScript">
71
+ <part name="uri" type="xsd:string"/>
72
+ </message>
70
73
  <message name="findByIpAddress">
71
74
  <part name="ipAddress" type="xsd:string"/>
72
75
  </message>
@@ -1093,6 +1096,10 @@ This method will cancel a server effective immediately. For servers billed hourl
1093
1096
  <input message="tns:editSoftwareComponentPasswords"/>
1094
1097
  <output message="tns:editSoftwareComponentPasswordsResponse"/>
1095
1098
  </operation>
1099
+ <operation name="executeRemoteScript">
1100
+ <documentation>Download and run remote script from uri on the hardware.</documentation>
1101
+ <input message="tns:executeRemoteScript"/>
1102
+ </operation>
1096
1103
  <operation name="findByIpAddress">
1097
1104
  <documentation>The '''findByIpAddress''' method finds hardware using its primary public or private IP address. IP addresses that have a secondary subnet tied to the hardware will not return the hardware - alternate means of locating the hardware must be used (see '''Associated Methods'''). If no hardware is found, no errors are generated and no data is returned. </documentation>
1098
1105
  <input message="tns:findByIpAddress"/>
@@ -2044,6 +2051,14 @@ rebootSoft rebootHard powerOn powerOff powerCycle
2044
2051
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2045
2052
  </output>
2046
2053
  </operation>
2054
+ <operation name="executeRemoteScript">
2055
+ <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Hardware_RouterAction"/>
2056
+ <input>
2057
+ <soap:header message="tns:authenticateHeader" part="authenticate" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2058
+ <soap:header message="tns:SoftLayer_Hardware_RouterInitParametersHeader" part="SoftLayer_Hardware_RouterInitParameters" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2059
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2060
+ </input>
2061
+ </operation>
2047
2062
  <operation name="findByIpAddress">
2048
2063
  <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Hardware_RouterAction"/>
2049
2064
  <input>
@@ -67,6 +67,9 @@
67
67
  <message name="editSoftwareComponentPasswordsResponse">
68
68
  <part name="editSoftwareComponentPasswordsReturn" type="xsd:boolean"/>
69
69
  </message>
70
+ <message name="executeRemoteScript">
71
+ <part name="uri" type="xsd:string"/>
72
+ </message>
70
73
  <message name="findByIpAddress">
71
74
  <part name="ipAddress" type="xsd:string"/>
72
75
  </message>
@@ -1105,6 +1108,10 @@ This method will cancel a server effective immediately. For servers billed hourl
1105
1108
  <input message="tns:editSoftwareComponentPasswords"/>
1106
1109
  <output message="tns:editSoftwareComponentPasswordsResponse"/>
1107
1110
  </operation>
1111
+ <operation name="executeRemoteScript">
1112
+ <documentation>Download and run remote script from uri on the hardware.</documentation>
1113
+ <input message="tns:executeRemoteScript"/>
1114
+ </operation>
1108
1115
  <operation name="findByIpAddress">
1109
1116
  <documentation>The '''findByIpAddress''' method finds hardware using its primary public or private IP address. IP addresses that have a secondary subnet tied to the hardware will not return the hardware - alternate means of locating the hardware must be used (see '''Associated Methods'''). If no hardware is found, no errors are generated and no data is returned. </documentation>
1110
1117
  <input message="tns:findByIpAddress"/>
@@ -2071,6 +2078,14 @@ rebootSoft rebootHard powerOn powerOff powerCycle
2071
2078
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2072
2079
  </output>
2073
2080
  </operation>
2081
+ <operation name="executeRemoteScript">
2082
+ <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Hardware_SecurityModuleAction"/>
2083
+ <input>
2084
+ <soap:header message="tns:authenticateHeader" part="authenticate" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2085
+ <soap:header message="tns:SoftLayer_Hardware_SecurityModuleInitParametersHeader" part="SoftLayer_Hardware_SecurityModuleInitParameters" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2086
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2087
+ </input>
2088
+ </operation>
2074
2089
  <operation name="findByIpAddress">
2075
2090
  <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Hardware_SecurityModuleAction"/>
2076
2091
  <input>
@@ -161,6 +161,9 @@
161
161
  <message name="editSoftwareComponentPasswordsResponse">
162
162
  <part name="editSoftwareComponentPasswordsReturn" type="xsd:boolean"/>
163
163
  </message>
164
+ <message name="executeRemoteScript">
165
+ <part name="uri" type="xsd:string"/>
166
+ </message>
164
167
  <message name="findByIpAddress">
165
168
  <part name="ipAddress" type="xsd:string"/>
166
169
  </message>
@@ -1608,6 +1611,10 @@ This method will cancel a server effective immediately. For servers billed hourl
1608
1611
  <input message="tns:editSoftwareComponentPasswords"/>
1609
1612
  <output message="tns:editSoftwareComponentPasswordsResponse"/>
1610
1613
  </operation>
1614
+ <operation name="executeRemoteScript">
1615
+ <documentation>Download and run remote script from uri on the hardware.</documentation>
1616
+ <input message="tns:executeRemoteScript"/>
1617
+ </operation>
1611
1618
  <operation name="findByIpAddress">
1612
1619
  <documentation>The '''findByIpAddress''' method finds hardware using its primary public or private IP address. IP addresses that have a secondary subnet tied to the hardware will not return the hardware - alternate means of locating the hardware must be used (see '''Associated Methods'''). If no hardware is found, no errors are generated and no data is returned. </documentation>
1613
1620
  <input message="tns:findByIpAddress"/>
@@ -3034,6 +3041,14 @@ It will take less than a minute to update the switch port speed. The server upli
3034
3041
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
3035
3042
  </output>
3036
3043
  </operation>
3044
+ <operation name="executeRemoteScript">
3045
+ <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Hardware_ServerAction"/>
3046
+ <input>
3047
+ <soap:header message="tns:authenticateHeader" part="authenticate" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
3048
+ <soap:header message="tns:SoftLayer_Hardware_ServerInitParametersHeader" part="SoftLayer_Hardware_ServerInitParameters" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
3049
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
3050
+ </input>
3051
+ </operation>
3037
3052
  <operation name="findByIpAddress">
3038
3053
  <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Hardware_ServerAction"/>
3039
3054
  <input>
@@ -448,6 +448,10 @@
448
448
  <message name="getObjectResponse">
449
449
  <part name="getObjectReturn" type="tns:SoftLayer_Network_Storage"/>
450
450
  </message>
451
+ <message name="getObjectStorageConnectionInformation"/>
452
+ <message name="getObjectStorageConnectionInformationResponse">
453
+ <part name="getObjectStorageConnectionInformationReturn" type="tns:SoftLayer_Container_Network_Service_Resource_ObjectStorage_ConnectionInformationArray"/>
454
+ </message>
451
455
  <message name="getObjectsByCredential">
452
456
  <part name="credentialObject" type="tns:SoftLayer_Network_Storage_Credential"/>
453
457
  </message>
@@ -1222,6 +1226,11 @@ Please use the associated methods in the [[SoftLayer_Network_Storage]] service t
1222
1226
  <input message="tns:getObject"/>
1223
1227
  <output message="tns:getObjectResponse"/>
1224
1228
  </operation>
1229
+ <operation name="getObjectStorageConnectionInformation">
1230
+ <documentation></documentation>
1231
+ <input message="tns:getObjectStorageConnectionInformation"/>
1232
+ <output message="tns:getObjectStorageConnectionInformationResponse"/>
1233
+ </operation>
1225
1234
  <operation name="getObjectsByCredential">
1226
1235
  <documentation>Retrieve network storage accounts by SoftLayer_Network_Storage_Credential object. Use this method if you wish to retrieve a storage record by a credential rather than by id. </documentation>
1227
1236
  <input message="tns:getObjectsByCredential"/>
@@ -2604,6 +2613,16 @@ The following properties are required in the ''file'' parameter.
2604
2613
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2605
2614
  </output>
2606
2615
  </operation>
2616
+ <operation name="getObjectStorageConnectionInformation">
2617
+ <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Network_StorageAction"/>
2618
+ <input>
2619
+ <soap:header message="tns:authenticateHeader" part="authenticate" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2620
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2621
+ </input>
2622
+ <output>
2623
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2624
+ </output>
2625
+ </operation>
2607
2626
  <operation name="getObjectsByCredential">
2608
2627
  <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Network_StorageAction"/>
2609
2628
  <input>
@@ -467,6 +467,10 @@
467
467
  <message name="getObjectResponse">
468
468
  <part name="getObjectReturn" type="tns:SoftLayer_Network_Storage_Backup_Evault"/>
469
469
  </message>
470
+ <message name="getObjectStorageConnectionInformation"/>
471
+ <message name="getObjectStorageConnectionInformationResponse">
472
+ <part name="getObjectStorageConnectionInformationReturn" type="tns:SoftLayer_Container_Network_Service_Resource_ObjectStorage_ConnectionInformationArray"/>
473
+ </message>
470
474
  <message name="getObjectsByCredential">
471
475
  <part name="credentialObject" type="tns:SoftLayer_Network_Storage_Credential"/>
472
476
  </message>
@@ -1282,6 +1286,11 @@ This method drives the backup page of the SoftLayer customer portal. It serves a
1282
1286
  <input message="tns:getObject"/>
1283
1287
  <output message="tns:getObjectResponse"/>
1284
1288
  </operation>
1289
+ <operation name="getObjectStorageConnectionInformation">
1290
+ <documentation></documentation>
1291
+ <input message="tns:getObjectStorageConnectionInformation"/>
1292
+ <output message="tns:getObjectStorageConnectionInformationResponse"/>
1293
+ </operation>
1285
1294
  <operation name="getObjectsByCredential">
1286
1295
  <documentation>Retrieve network storage accounts by SoftLayer_Network_Storage_Credential object. Use this method if you wish to retrieve a storage record by a credential rather than by id. </documentation>
1287
1296
  <input message="tns:getObjectsByCredential"/>
@@ -2723,6 +2732,16 @@ The following properties are required in the ''file'' parameter.
2723
2732
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2724
2733
  </output>
2725
2734
  </operation>
2735
+ <operation name="getObjectStorageConnectionInformation">
2736
+ <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Network_Storage_Backup_EvaultAction"/>
2737
+ <input>
2738
+ <soap:header message="tns:authenticateHeader" part="authenticate" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2739
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2740
+ </input>
2741
+ <output>
2742
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2743
+ </output>
2744
+ </operation>
2726
2745
  <operation name="getObjectsByCredential">
2727
2746
  <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Network_Storage_Backup_EvaultAction"/>
2728
2747
  <input>
@@ -275,9 +275,11 @@
275
275
  <soap:header message="tns:SoftLayer_Network_Storage_GroupObjectMaskHeader" part="SoftLayer_Network_Storage_GroupObjectMask" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
276
276
  <soap:header message="tns:SoftLayer_ObjectMaskHeader" part="SoftLayer_ObjectMask" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
277
277
  <soap:header message="tns:SoftLayer_Network_Storage_GroupObjectFilterHeader" part="SoftLayer_Network_Storage_GroupObjectFilter" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
278
+ <soap:header message="tns:resultLimitHeader" part="resultLimit" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
278
279
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
279
280
  </input>
280
281
  <output>
282
+ <soap:header message="tns:totalItemsHeader" part="totalItems" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
281
283
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
282
284
  </output>
283
285
  </operation>
@@ -275,9 +275,11 @@
275
275
  <soap:header message="tns:SoftLayer_Network_Storage_Group_IscsiObjectMaskHeader" part="SoftLayer_Network_Storage_Group_IscsiObjectMask" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
276
276
  <soap:header message="tns:SoftLayer_ObjectMaskHeader" part="SoftLayer_ObjectMask" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
277
277
  <soap:header message="tns:SoftLayer_Network_Storage_Group_IscsiObjectFilterHeader" part="SoftLayer_Network_Storage_Group_IscsiObjectFilter" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
278
+ <soap:header message="tns:resultLimitHeader" part="resultLimit" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
278
279
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
279
280
  </input>
280
281
  <output>
282
+ <soap:header message="tns:totalItemsHeader" part="totalItems" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
281
283
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
282
284
  </output>
283
285
  </operation>
@@ -275,9 +275,11 @@
275
275
  <soap:header message="tns:SoftLayer_Network_Storage_Group_NfsObjectMaskHeader" part="SoftLayer_Network_Storage_Group_NfsObjectMask" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
276
276
  <soap:header message="tns:SoftLayer_ObjectMaskHeader" part="SoftLayer_ObjectMask" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
277
277
  <soap:header message="tns:SoftLayer_Network_Storage_Group_NfsObjectFilterHeader" part="SoftLayer_Network_Storage_Group_NfsObjectFilter" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
278
+ <soap:header message="tns:resultLimitHeader" part="resultLimit" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
278
279
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
279
280
  </input>
280
281
  <output>
282
+ <soap:header message="tns:totalItemsHeader" part="totalItems" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
281
283
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
282
284
  </output>
283
285
  </operation>
@@ -448,6 +448,10 @@
448
448
  <message name="getObjectResponse">
449
449
  <part name="getObjectReturn" type="tns:SoftLayer_Network_Storage_Iscsi"/>
450
450
  </message>
451
+ <message name="getObjectStorageConnectionInformation"/>
452
+ <message name="getObjectStorageConnectionInformationResponse">
453
+ <part name="getObjectStorageConnectionInformationReturn" type="tns:SoftLayer_Container_Network_Service_Resource_ObjectStorage_ConnectionInformationArray"/>
454
+ </message>
451
455
  <message name="getObjectsByCredential">
452
456
  <part name="credentialObject" type="tns:SoftLayer_Network_Storage_Credential"/>
453
457
  </message>
@@ -1218,6 +1222,11 @@ getGraph() retrieves a Storage account's usage and returns a PNG graph image, ti
1218
1222
  <input message="tns:getObject"/>
1219
1223
  <output message="tns:getObjectResponse"/>
1220
1224
  </operation>
1225
+ <operation name="getObjectStorageConnectionInformation">
1226
+ <documentation></documentation>
1227
+ <input message="tns:getObjectStorageConnectionInformation"/>
1228
+ <output message="tns:getObjectStorageConnectionInformationResponse"/>
1229
+ </operation>
1221
1230
  <operation name="getObjectsByCredential">
1222
1231
  <documentation>Retrieve network storage accounts by SoftLayer_Network_Storage_Credential object. Use this method if you wish to retrieve a storage record by a credential rather than by id. </documentation>
1223
1232
  <input message="tns:getObjectsByCredential"/>
@@ -2600,6 +2609,16 @@ The following properties are required in the ''file'' parameter.
2600
2609
  <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2601
2610
  </output>
2602
2611
  </operation>
2612
+ <operation name="getObjectStorageConnectionInformation">
2613
+ <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Network_Storage_IscsiAction"/>
2614
+ <input>
2615
+ <soap:header message="tns:authenticateHeader" part="authenticate" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2616
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2617
+ </input>
2618
+ <output>
2619
+ <soap:body namespace="http://api.service.softlayer.com/soap/v3/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
2620
+ </output>
2621
+ </operation>
2603
2622
  <operation name="getObjectsByCredential">
2604
2623
  <soap:operation soapAction="http://api.service.softlayer.com/soap/v3/SoftLayer_Network_Storage_IscsiAction"/>
2605
2624
  <input>
@@ -10089,6 +10089,33 @@
10089
10089
  </restriction>
10090
10090
  </complexContent>
10091
10091
  </complexType>
10092
+ <complexType name="SoftLayer_Container_Network_Service_Resource_ObjectStorage_ConnectionInformation">
10093
+ <sequence>
10094
+ <element minOccurs="0" maxOccurs="1" name="datacenter" type="string"/>
10095
+ <element minOccurs="0" maxOccurs="1" name="datacenterShortName" type="string"/>
10096
+ <element minOccurs="0" maxOccurs="1" name="privateEndpoint" type="string"/>
10097
+ <element minOccurs="0" maxOccurs="1" name="publicEndpoint" type="string"/>
10098
+ </sequence>
10099
+ </complexType>
10100
+ <complexType name="SoftLayer_Container_Network_Service_Resource_ObjectStorage_ConnectionInformationObjectFilter">
10101
+ <complexContent>
10102
+ <extension base="tns:SoftLayer_Utility_ObjectFilter">
10103
+ <sequence>
10104
+ <element minOccurs="0" maxOccurs="1" name="datacenter" type="tns:SoftLayer_Utility_ObjectFilter_Operation"/>
10105
+ <element minOccurs="0" maxOccurs="1" name="datacenterShortName" type="tns:SoftLayer_Utility_ObjectFilter_Operation"/>
10106
+ <element minOccurs="0" maxOccurs="1" name="privateEndpoint" type="tns:SoftLayer_Utility_ObjectFilter_Operation"/>
10107
+ <element minOccurs="0" maxOccurs="1" name="publicEndpoint" type="tns:SoftLayer_Utility_ObjectFilter_Operation"/>
10108
+ </sequence>
10109
+ </extension>
10110
+ </complexContent>
10111
+ </complexType>
10112
+ <complexType name="SoftLayer_Container_Network_Service_Resource_ObjectStorage_ConnectionInformationArray">
10113
+ <complexContent>
10114
+ <restriction base="soapenc:Array">
10115
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="tns:SoftLayer_Container_Network_Service_Resource_ObjectStorage_ConnectionInformation[]"/>
10116
+ </restriction>
10117
+ </complexContent>
10118
+ </complexType>
10092
10119
  <complexType name="SoftLayer_Container_Network_Storage_Backup_Evault_WebCc_Authentication_Details">
10093
10120
  <sequence>
10094
10121
  <element minOccurs="0" maxOccurs="1" name="eventValidation" type="string"/>
@@ -0,0 +1,64 @@
1
+ module Softlayer
2
+ class Client < Savon::Client
3
+ class << self
4
+ def call(method, message = {})
5
+ safe do
6
+ resp = super method, message: message
7
+ resp.to_hash["#{method}_response".to_sym]["#{method}_return".to_sym]
8
+ end
9
+ end
10
+ end
11
+
12
+ # Create a new client.
13
+ def initialize(service)
14
+ @service = service
15
+ super client_params
16
+ end
17
+
18
+ def call(method, message = {}, hash = nil)
19
+ safe do
20
+ if hash.nil?
21
+ resp = super method, message: message
22
+ else
23
+ resp = super method, message: message, soap_header: hash
24
+ end
25
+ resp.to_hash["#{method}_response".to_sym]["#{method}_return".to_sym]
26
+ end
27
+ end
28
+
29
+ private
30
+
31
+ # Authorization hash to use with all SOAP requests
32
+ def auth_params
33
+ return {} unless Softlayer.configuration
34
+ auth_hash = {
35
+ authenticate: {
36
+ 'username' => Softlayer.configuration.username,
37
+ 'apiKey' => Softlayer.configuration.api_key
38
+ }
39
+ }
40
+ auth_hash.merge!({
41
+ "clientLegacySession" =>
42
+ {
43
+ "userId" => Softlayer.configuration.impersonate_user,
44
+ "authToken" => Softlayer.configuration.impersonate_token
45
+ }
46
+ }) if Softlayer.impersonating?
47
+ auth_hash
48
+ end
49
+
50
+ def client_params
51
+ { wsdl: "https://api.softlayer.com/soap/v3.1/#{@service}?wsdl" }.tap do |params|
52
+ params[:open_timeout] = Softlayer.configuration.open_timeout if Softlayer.configuration.open_timeout
53
+ params[:read_timeout] = Softlayer.configuration.read_timeout if Softlayer.configuration.read_timeout
54
+ params[:soap_header] = auth_params
55
+ end
56
+ end
57
+
58
+ def safe
59
+ yield
60
+ rescue Savon::SOAPFault => e
61
+ raise Softlayer::Errors::SoapError.new(e)
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,9 @@
1
+ module Softlayer
2
+ module Container
3
+ module Network
4
+ module Service
5
+ autoload :Resource, 'softlayer/container/network/service/resource'
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ module Softlayer
2
+ module Container
3
+ module Network
4
+ module Service
5
+ module Resource
6
+ autoload :ObjectStorage, 'softlayer/container/network/service/resource/object_storage'
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end