softlayer 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -13
- data/data/Metric_Tracking_Object.wsdl +1 -1
- data/data/Resource_Metadata.wsdl +1 -1
- data/data/types.xsd +27 -0
- data/lib/softlayer.rb +1 -0
- data/lib/softlayer/container/resource.rb +7 -0
- data/lib/softlayer/container/resource/metadata.rb +9 -0
- data/lib/softlayer/container/resource/metadata/service_resource.rb +18 -0
- data/lib/softlayer/resource/metadata.rb +1 -1
- data/lib/softlayer/software.rb +1 -0
- data/lib/softlayer/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0504ad25b4b9bb9bd84560de9d70047a1cad4a22
|
4
|
+
data.tar.gz: 77e1e99240db7ac15b6c4e7615e8230c30a03a94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65cb6d97da89e7062a3f8cfc673afea378dc9e52fab36f6d76731048526c206aa83f8517622beb45b5c2f67fa72c1ef58eff3ef608e6d3228aa96a3f7b093340
|
7
|
+
data.tar.gz: 5a66c4ea8fb19b10639e54faf897717e127671f15579c92e679d8934826ad2581af0b0ed3e1b87446834e573ecf5faf0696c56d043f63fbefdaf8ae109e4c11f
|
data/README.md
CHANGED
@@ -86,18 +86,18 @@ location_object_filter = {
|
|
86
86
|
Softlayer::Location::Datacenter.filter(location_object_filter)
|
87
87
|
```
|
88
88
|
|
89
|
-
For an `in` operation you must add the
|
89
|
+
For an `in` operation you must add the operation `in` and the options array, let's search for wdc01 and wdc04
|
90
90
|
|
91
91
|
```ruby
|
92
92
|
location_object_filter = {
|
93
93
|
'name': {
|
94
94
|
'operation': "in",
|
95
|
-
"options": [
|
95
|
+
"options": [
|
96
96
|
{
|
97
97
|
"name": "data",
|
98
|
-
"value": [
|
98
|
+
"value": ['wdc01', 'wdc04']
|
99
99
|
}
|
100
|
-
]
|
100
|
+
]
|
101
101
|
}
|
102
102
|
}
|
103
103
|
Softlayer::Location::Datacenter.filter(location_object_filter).get_datacenters
|
@@ -130,15 +130,15 @@ What if you want to use a mask, filtering just what you want and limiting the re
|
|
130
130
|
|
131
131
|
```ruby
|
132
132
|
location_object_filter = {
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
133
|
+
'name': {
|
134
|
+
'operation': "in",
|
135
|
+
"options": [
|
136
|
+
{
|
137
|
+
"name": "data",
|
138
|
+
"value": ['wdc01', 'wdc04']
|
139
|
+
}
|
140
|
+
]
|
141
|
+
}
|
142
142
|
}
|
143
143
|
location_object_mask = "mask[groups]"
|
144
144
|
Softlayer::Location::Datacenter.filter(location_object_filter).mask(location_object_mask).limit(1, 0).get_datacenters
|
@@ -169,7 +169,7 @@ The SoftLayer_Metric_Tracking_Object service contains methods that allow users t
|
|
169
169
|
<output message="tns:getMetricDataTypesResponse"/>
|
170
170
|
</operation>
|
171
171
|
<operation name="getObject">
|
172
|
-
<documentation
|
172
|
+
<documentation>getObject retrieves the SoftLayer_Metric_Tracking_Object object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Metric_Tracking_Object service. You can only tracking objects that are associated with your SoftLayer account or services. </documentation>
|
173
173
|
<input message="tns:getObject"/>
|
174
174
|
<output message="tns:getObjectResponse"/>
|
175
175
|
</operation>
|
data/data/Resource_Metadata.wsdl
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
</message>
|
65
65
|
<message name="getServiceResources"/>
|
66
66
|
<message name="getServiceResourcesResponse">
|
67
|
-
<part name="getServiceResourcesReturn" type="tns:
|
67
|
+
<part name="getServiceResourcesReturn" type="tns:SoftLayer_Container_Resource_Metadata_ServiceResourceArray"/>
|
68
68
|
</message>
|
69
69
|
<message name="getTags"/>
|
70
70
|
<message name="getTagsResponse">
|
data/data/types.xsd
CHANGED
@@ -13767,6 +13767,33 @@
|
|
13767
13767
|
</restriction>
|
13768
13768
|
</complexContent>
|
13769
13769
|
</complexType>
|
13770
|
+
<complexType name="SoftLayer_Container_Resource_Metadata_ServiceResource">
|
13771
|
+
<complexContent>
|
13772
|
+
<extension base="tns:SoftLayer_Entity">
|
13773
|
+
<sequence>
|
13774
|
+
<element minOccurs="0" maxOccurs="1" name="backendIpAddress" type="string"/>
|
13775
|
+
<element minOccurs="0" maxOccurs="1" name="type" type="tns:SoftLayer_Network_Service_Resource_Type"/>
|
13776
|
+
</sequence>
|
13777
|
+
</extension>
|
13778
|
+
</complexContent>
|
13779
|
+
</complexType>
|
13780
|
+
<complexType name="SoftLayer_Container_Resource_Metadata_ServiceResourceObjectFilter">
|
13781
|
+
<complexContent>
|
13782
|
+
<extension base="tns:SoftLayer_Utility_ObjectFilter">
|
13783
|
+
<sequence>
|
13784
|
+
<element minOccurs="0" maxOccurs="1" name="backendIpAddress" type="tns:SoftLayer_Utility_ObjectFilter_Operation"/>
|
13785
|
+
<element minOccurs="0" maxOccurs="1" name="type" type="tns:SoftLayer_Network_Service_Resource_TypeObjectFilter"/>
|
13786
|
+
</sequence>
|
13787
|
+
</extension>
|
13788
|
+
</complexContent>
|
13789
|
+
</complexType>
|
13790
|
+
<complexType name="SoftLayer_Container_Resource_Metadata_ServiceResourceArray">
|
13791
|
+
<complexContent>
|
13792
|
+
<restriction base="soapenc:Array">
|
13793
|
+
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns:SoftLayer_Container_Resource_Metadata_ServiceResource[]"/>
|
13794
|
+
</restriction>
|
13795
|
+
</complexContent>
|
13796
|
+
</complexType>
|
13770
13797
|
<complexType name="SoftLayer_Container_Search_ObjectType">
|
13771
13798
|
<complexContent>
|
13772
13799
|
<extension base="tns:SoftLayer_Entity">
|
data/lib/softlayer.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Softlayer
|
2
|
+
module Container
|
3
|
+
module Resource
|
4
|
+
module Metadata
|
5
|
+
class ServiceResource < Softlayer::Entity
|
6
|
+
attr_accessor :backend_ip_address
|
7
|
+
attr_accessor :type
|
8
|
+
|
9
|
+
class Representer < Softlayer::Entity::Representer
|
10
|
+
include Representable::Hash
|
11
|
+
include Representable::Coercion
|
12
|
+
property :backend_ip_address, type: String
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -59,7 +59,7 @@ module Softlayer
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def self.get_service_resources
|
62
|
-
request(:get_service_resources, Array[Softlayer::
|
62
|
+
request(:get_service_resources, Array[Softlayer::Container::Resource::Metadata::ServiceResource])
|
63
63
|
end
|
64
64
|
|
65
65
|
def self.get_tags
|
data/lib/softlayer/software.rb
CHANGED
data/lib/softlayer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: softlayer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Celso Fernandes
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -1149,6 +1149,9 @@ files:
|
|
1149
1149
|
- lib/softlayer/container/remote_management/pm_info.rb
|
1150
1150
|
- lib/softlayer/container/remote_management/sensor_reading.rb
|
1151
1151
|
- lib/softlayer/container/remote_management/sensor_readings_with_graphs.rb
|
1152
|
+
- lib/softlayer/container/resource.rb
|
1153
|
+
- lib/softlayer/container/resource/metadata.rb
|
1154
|
+
- lib/softlayer/container/resource/metadata/service_resource.rb
|
1152
1155
|
- lib/softlayer/container/search.rb
|
1153
1156
|
- lib/softlayer/container/search/object_type.rb
|
1154
1157
|
- lib/softlayer/container/search/object_type/property.rb
|