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

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/ecloud/compute.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



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

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

#all_catalog_itemsObject



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

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

#all_catalogsObject



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

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

#all_network_extensionsObject



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

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

#all_network_ip_collectionsObject



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

def all_network_ip_collections
  all_networks.map(&:ip_collection)
end

#all_network_ipsObject



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

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

#all_networksObject



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

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

#all_public_ip_collectionsObject



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

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

#all_public_ip_internet_service_collectionsObject



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

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

#all_public_ip_internet_service_node_collectionsObject



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

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

#all_public_ip_internet_service_nodesObject



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

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

#all_public_ip_internet_servicesObject



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

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

#all_public_ipsObject



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

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

#all_vdc_internet_service_collectionsObject



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

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

#all_vdcsObject



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

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

#all_virtual_machinesObject



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

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

#backup_internet_service_from_href(href) ⇒ Object



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

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

#catalog_from_href(href) ⇒ Object



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

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

#catalog_item_from_href(href) ⇒ Object



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

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

#network_extension_from_href(href) ⇒ Object



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

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

#network_from_href(href) ⇒ Object



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

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

#network_ip_collection_from_href(href) ⇒ Object



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

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

#network_ip_from_href(href) ⇒ Object



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

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

#organization_from_href(href) ⇒ Object



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

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

#organizationsObject



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

def organizations
  @organizations ||= []
end

#public_ip_collection_from_href(href) ⇒ Object



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

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

#public_ip_from_href(href) ⇒ Object



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

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

#public_ip_internet_service_collection_from_href(href) ⇒ Object



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

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



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

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



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

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



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

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



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

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

#vdc_internet_service_collection_from_href(href) ⇒ Object



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

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

#versionsObject



83
84
85
# File 'lib/fog/ecloud/compute.rb', line 83

def versions
  @versions ||= []
end

#virtual_machine_from_href(href) ⇒ Object



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

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