Class: Fog::Vcloud::MockDataClasses::MockData

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/vcloud/mock_data_classes.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::Vcloud::MockDataClasses::Base

Instance Method Details

#all_backup_internet_servicesObject



124
125
126
# File 'lib/fog/vcloud/mock_data_classes.rb', line 124

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

#all_catalog_itemsObject



83
84
85
# File 'lib/fog/vcloud/mock_data_classes.rb', line 83

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

#all_catalogsObject



75
76
77
# File 'lib/fog/vcloud/mock_data_classes.rb', line 75

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

#all_network_extensionsObject



108
109
110
# File 'lib/fog/vcloud/mock_data_classes.rb', line 108

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

#all_network_ip_collectionsObject



180
181
182
# File 'lib/fog/vcloud/mock_data_classes.rb', line 180

def all_network_ip_collections
  all_networks.map(&:ip_collection)
end

#all_network_ipsObject



188
189
190
# File 'lib/fog/vcloud/mock_data_classes.rb', line 188

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

#all_networksObject



100
101
102
# File 'lib/fog/vcloud/mock_data_classes.rb', line 100

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

#all_public_ip_collectionsObject



132
133
134
# File 'lib/fog/vcloud/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_collectionsObject



148
149
150
# File 'lib/fog/vcloud/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_collectionsObject



164
165
166
# File 'lib/fog/vcloud/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_nodesObject



172
173
174
# File 'lib/fog/vcloud/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_servicesObject



156
157
158
# File 'lib/fog/vcloud/mock_data_classes.rb', line 156

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

#all_public_ipsObject



140
141
142
# File 'lib/fog/vcloud/mock_data_classes.rb', line 140

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

#all_vdc_internet_service_collectionsObject



116
117
118
# File 'lib/fog/vcloud/mock_data_classes.rb', line 116

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

#all_vdcsObject



67
68
69
# File 'lib/fog/vcloud/mock_data_classes.rb', line 67

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

#all_virtual_machinesObject



91
92
93
# File 'lib/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/mock_data_classes.rb', line 192

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

#organization_from_href(href) ⇒ Object



63
64
65
# File 'lib/fog/vcloud/mock_data_classes.rb', line 63

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

#organizationsObject



59
60
61
# File 'lib/fog/vcloud/mock_data_classes.rb', line 59

def organizations
  @organizations ||= []
end

#public_ip_collection_from_href(href) ⇒ Object



136
137
138
# File 'lib/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/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/fog/vcloud/mock_data_classes.rb', line 120

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

#versionsObject



55
56
57
# File 'lib/fog/vcloud/mock_data_classes.rb', line 55

def versions
  @versions ||= []
end

#virtual_machine_from_href(href) ⇒ Object



95
96
97
# File 'lib/fog/vcloud/mock_data_classes.rb', line 95

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