Class: Fog::Ecloud::MockDataClasses::MockData

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/compute/ecloud.rb

Instance Method Summary collapse

Methods inherited from Base

#_parent, base_url, #base_url, base_url=, #first, #href, #initialize, #inspect, #last

Constructor Details

This class inherits a constructor from Fog::Ecloud::MockDataClasses::Base

Instance Method Details

#all_backup_internet_servicesObject



156
157
158
# File 'lib/fog/compute/ecloud.rb', line 156

def all_backup_internet_services
  all_vdc_internet_service_collections.map(&:backup_internet_services).flatten
end

#all_catalog_itemsObject



115
116
117
# File 'lib/fog/compute/ecloud.rb', line 115

def all_catalog_items
  all_catalogs.map(&:items).flatten
end

#all_catalogsObject



107
108
109
# File 'lib/fog/compute/ecloud.rb', line 107

def all_catalogs
  all_vdcs.map(&:catalog).flatten
end

#all_network_extensionsObject



140
141
142
# File 'lib/fog/compute/ecloud.rb', line 140

def all_network_extensions
  all_networks.map(&:extensions).flatten
end

#all_network_ip_collectionsObject



212
213
214
# File 'lib/fog/compute/ecloud.rb', line 212

def all_network_ip_collections
  all_networks.map(&:ip_collection)
end

#all_network_ipsObject



220
221
222
# File 'lib/fog/compute/ecloud.rb', line 220

def all_network_ips
  all_network_ip_collections.map {|c| c.items.values }.flatten
end

#all_networksObject



132
133
134
# File 'lib/fog/compute/ecloud.rb', line 132

def all_networks
  all_vdcs.map(&:networks).flatten
end

#all_public_ip_collectionsObject



164
165
166
# File 'lib/fog/compute/ecloud.rb', line 164

def all_public_ip_collections
  all_vdcs.map {|v| v.public_ip_collection }.flatten
end

#all_public_ip_internet_service_collectionsObject



180
181
182
# File 'lib/fog/compute/ecloud.rb', line 180

def all_public_ip_internet_service_collections
  all_public_ips.map(&:internet_service_collection).flatten
end

#all_public_ip_internet_service_node_collectionsObject



196
197
198
# File 'lib/fog/compute/ecloud.rb', line 196

def all_public_ip_internet_service_node_collections
  all_public_ip_internet_services.map(&:node_collection).flatten
end

#all_public_ip_internet_service_nodesObject



204
205
206
# File 'lib/fog/compute/ecloud.rb', line 204

def all_public_ip_internet_service_nodes
  all_public_ip_internet_service_node_collections.map(&:items).flatten
end

#all_public_ip_internet_servicesObject



188
189
190
# File 'lib/fog/compute/ecloud.rb', line 188

def all_public_ip_internet_services
  all_public_ip_internet_service_collections.map(&:items).flatten
end

#all_public_ipsObject



172
173
174
# File 'lib/fog/compute/ecloud.rb', line 172

def all_public_ips
  all_public_ip_collections.map(&:items).flatten
end

#all_vdc_internet_service_collectionsObject



148
149
150
# File 'lib/fog/compute/ecloud.rb', line 148

def all_vdc_internet_service_collections
  all_vdcs.map(&:internet_service_collection).flatten
end

#all_vdcsObject



99
100
101
# File 'lib/fog/compute/ecloud.rb', line 99

def all_vdcs
  organizations.map(&:vdcs).flatten
end

#all_virtual_machinesObject



123
124
125
# File 'lib/fog/compute/ecloud.rb', line 123

def all_virtual_machines
  all_vdcs.map(&:virtual_machines).flatten
end

#backup_internet_service_from_href(href) ⇒ Object



160
161
162
# File 'lib/fog/compute/ecloud.rb', line 160

def backup_internet_service_from_href(href)
  find_href_in(href, all_backup_internet_services)
end

#catalog_from_href(href) ⇒ Object



111
112
113
# File 'lib/fog/compute/ecloud.rb', line 111

def catalog_from_href(href)
  find_href_in(href, all_catalogs)
end

#catalog_item_from_href(href) ⇒ Object



119
120
121
# File 'lib/fog/compute/ecloud.rb', line 119

def catalog_item_from_href(href)
  find_href_in(href, all_catalog_items)
end

#network_extension_from_href(href) ⇒ Object



144
145
146
# File 'lib/fog/compute/ecloud.rb', line 144

def network_extension_from_href(href)
  find_href_in(href, all_network_extensions)
end

#network_from_href(href) ⇒ Object



136
137
138
# File 'lib/fog/compute/ecloud.rb', line 136

def network_from_href(href)
  find_href_in(href, all_networks)
end

#network_ip_collection_from_href(href) ⇒ Object



216
217
218
# File 'lib/fog/compute/ecloud.rb', line 216

def network_ip_collection_from_href(href)
  find_href_in(href, all_network_ip_collections)
end

#network_ip_from_href(href) ⇒ Object



224
225
226
# File 'lib/fog/compute/ecloud.rb', line 224

def network_ip_from_href(href)
  find_href_in(href, all_network_ips)
end

#organization_from_href(href) ⇒ Object



95
96
97
# File 'lib/fog/compute/ecloud.rb', line 95

def organization_from_href(href)
  find_href_in(href, organizations)
end

#organizationsObject



91
92
93
# File 'lib/fog/compute/ecloud.rb', line 91

def organizations
  @organizations ||= []
end

#public_ip_collection_from_href(href) ⇒ Object



168
169
170
# File 'lib/fog/compute/ecloud.rb', line 168

def public_ip_collection_from_href(href)
  find_href_in(href, all_public_ip_collections)
end

#public_ip_from_href(href) ⇒ Object



176
177
178
# File 'lib/fog/compute/ecloud.rb', line 176

def public_ip_from_href(href)
  find_href_in(href, all_public_ips)
end

#public_ip_internet_service_collection_from_href(href) ⇒ Object



184
185
186
# File 'lib/fog/compute/ecloud.rb', line 184

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



192
193
194
# File 'lib/fog/compute/ecloud.rb', line 192

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



200
201
202
# File 'lib/fog/compute/ecloud.rb', line 200

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



208
209
210
# File 'lib/fog/compute/ecloud.rb', line 208

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



103
104
105
# File 'lib/fog/compute/ecloud.rb', line 103

def vdc_from_href(href)
  find_href_in(href, all_vdcs)
end

#vdc_internet_service_collection_from_href(href) ⇒ Object



152
153
154
# File 'lib/fog/compute/ecloud.rb', line 152

def vdc_internet_service_collection_from_href(href)
  find_href_in(href, all_vdc_internet_service_collections)
end

#versionsObject



87
88
89
# File 'lib/fog/compute/ecloud.rb', line 87

def versions
  @versions ||= []
end

#virtual_machine_from_href(href) ⇒ Object



127
128
129
# File 'lib/fog/compute/ecloud.rb', line 127

def virtual_machine_from_href(href)
  find_href_prefixed_in(href, all_virtual_machines)
end