Class: Fog::Ecloud::MockDataClasses::MockData
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Ecloud::MockDataClasses::MockData
show all
- Defined in:
- lib/rackspace-fog/ecloud/mock_data_classes.rb
Instance Method Summary
collapse
Methods inherited from Base
#_parent, base_url, #base_url, base_url=, #first, #href, #initialize, #inspect, #last
Methods inherited from Hash
#symbolize_keys!
Instance Method Details
#all_backup_internet_services ⇒ Object
124
125
126
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 124
def all_backup_internet_services
all_vdc_internet_service_collections.map(&:backup_internet_services).flatten
end
|
#all_catalog_items ⇒ Object
83
84
85
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 83
def all_catalog_items
all_catalogs.map(&:items).flatten
end
|
#all_catalogs ⇒ Object
75
76
77
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 75
def all_catalogs
all_vdcs.map(&:catalog).flatten
end
|
#all_network_extensions ⇒ Object
108
109
110
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 108
def all_network_extensions
all_networks.map(&:extensions).flatten
end
|
#all_network_ip_collections ⇒ Object
180
181
182
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 180
def all_network_ip_collections
all_networks.map(&:ip_collection)
end
|
#all_network_ips ⇒ Object
188
189
190
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 188
def all_network_ips
all_network_ip_collections.map {|c| c.items.values }.flatten
end
|
#all_networks ⇒ Object
100
101
102
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 100
def all_networks
all_vdcs.map(&:networks).flatten
end
|
#all_organizations ⇒ Object
59
60
61
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 59
def all_organizations
organizations.map(&:environments).flatten
end
|
#all_public_ip_collections ⇒ Object
132
133
134
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 132
def all_public_ip_collections
all_vdcs.map {|v| v.public_ip_collection }.flatten
end
|
#all_public_ip_internet_service_collections ⇒ Object
148
149
150
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 148
def all_public_ip_internet_service_collections
all_public_ips.map(&:internet_service_collection).flatten
end
|
#all_public_ip_internet_service_node_collections ⇒ Object
164
165
166
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 164
def all_public_ip_internet_service_node_collections
all_public_ip_internet_services.map(&:node_collection).flatten
end
|
#all_public_ip_internet_service_nodes ⇒ Object
172
173
174
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 172
def all_public_ip_internet_service_nodes
all_public_ip_internet_service_node_collections.map(&:items).flatten
end
|
#all_public_ip_internet_services ⇒ Object
156
157
158
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 156
def all_public_ip_internet_services
all_public_ip_internet_service_collections.map(&:items).flatten
end
|
#all_public_ips ⇒ Object
140
141
142
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 140
def all_public_ips
all_public_ip_collections.map(&:items).flatten
end
|
#all_vdc_internet_service_collections ⇒ Object
116
117
118
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 116
def all_vdc_internet_service_collections
all_vdcs.map(&:internet_service_collection).flatten
end
|
#all_vdcs ⇒ Object
67
68
69
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 67
def all_vdcs
organizations.map(&:environments).flatten
end
|
#all_virtual_machines ⇒ Object
91
92
93
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 91
def all_virtual_machines
all_vdcs.map(&:virtual_machines).flatten
end
|
#backup_internet_service_from_href(href) ⇒ Object
128
129
130
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 128
def backup_internet_service_from_href(href)
find_href_in(href, all_backup_internet_services)
end
|
#catalog_from_href(href) ⇒ Object
79
80
81
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 79
def catalog_from_href(href)
find_href_in(href, all_catalogs)
end
|
#catalog_item_from_href(href) ⇒ Object
87
88
89
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 87
def catalog_item_from_href(href)
find_href_in(href, all_catalog_items)
end
|
#network_extension_from_href(href) ⇒ Object
112
113
114
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 112
def network_extension_from_href(href)
find_href_in(href, all_network_extensions)
end
|
#network_from_href(href) ⇒ Object
104
105
106
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 104
def network_from_href(href)
find_href_in(href, all_networks)
end
|
#network_ip_collection_from_href(href) ⇒ Object
184
185
186
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 184
def network_ip_collection_from_href(href)
find_href_in(href, all_network_ip_collections)
end
|
#network_ip_from_href(href) ⇒ Object
192
193
194
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 192
def network_ip_from_href(href)
find_href_in(href, all_network_ips)
end
|
#organization_collection_from_href(href) ⇒ Object
55
56
57
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 55
def organization_collection_from_href(href)
find_href_in(href, all_organizations)
end
|
#organization_from_href(href) ⇒ Object
63
64
65
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 63
def organization_from_href(href)
find_href_in(href, all_organizations)
end
|
#organizations ⇒ Object
51
52
53
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 51
def organizations
@organizations ||= []
end
|
#public_ip_collection_from_href(href) ⇒ Object
136
137
138
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 136
def public_ip_collection_from_href(href)
find_href_in(href, all_public_ip_collections)
end
|
#public_ip_from_href(href) ⇒ Object
144
145
146
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 144
def public_ip_from_href(href)
find_href_in(href, all_public_ips)
end
|
#public_ip_internet_service_collection_from_href(href) ⇒ Object
152
153
154
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 152
def public_ip_internet_service_collection_from_href(href)
find_href_in(href, all_public_ip_internet_service_collections)
end
|
#public_ip_internet_service_from_href(href) ⇒ Object
160
161
162
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 160
def public_ip_internet_service_from_href(href)
find_href_in(href, all_public_ip_internet_services)
end
|
#public_ip_internet_service_node_collection_from_href(href) ⇒ Object
168
169
170
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 168
def public_ip_internet_service_node_collection_from_href(href)
find_href_in(href, all_public_ip_internet_service_node_collections)
end
|
#public_ip_internet_service_node_from_href(href) ⇒ Object
176
177
178
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 176
def public_ip_internet_service_node_from_href(href)
find_href_in(href, all_public_ip_internet_service_nodes)
end
|
#vdc_from_href(href) ⇒ Object
71
72
73
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 71
def vdc_from_href(href)
find_href_in(href, all_vdcs)
end
|
#vdc_internet_service_collection_from_href(href) ⇒ Object
120
121
122
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 120
def vdc_internet_service_collection_from_href(href)
find_href_in(href, all_vdc_internet_service_collections)
end
|
#versions ⇒ Object
47
48
49
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 47
def versions
@versions ||= []
end
|
#virtual_machine_from_href(href) ⇒ Object
95
96
97
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 95
def virtual_machine_from_href(href)
find_href_prefixed_in(href, all_virtual_machines)
end
|