Method: Fog::Compute::IBM::Mock.populate_images

Defined in:
lib/fog/ibm/compute.rb

.populate_imagesObject


118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# File 'lib/fog/ibm/compute.rb', line 118

def self.populate_images
  images = {}
  images["20010001"] = {
    "name"=>"SUSE Linux Enterprise Server 11 SP1 for x86",
    "manifest"=>"https://www-147.ibm.com/cloud/enterprise/ram.ws/RAMSecure/artifact/{6CD09CE4-E99B-D72F-6C29-233C9B2A1676}/1.0/parameters.xml",
    "state"=>1,
    "visibility"=>"PUBLIC",
    "owner"=>"SYSTEM",
    "platform"=>"SUSE Linux Enterprise Server/11 SP1",
    "location"=>"41",
    "createdTime"=>1282466781000,
    "supportedInstanceTypes"=>
    [{"detail"=>"Copper - 32 bit (vCPU: 1, RAM: 2 GiB, Disk: 60 GiB)",
       "label"=>"Copper 32 bit",
       "price"=>{"rate"=>0.095, "unitOfMeasure"=>"UHR  ", "countryCode"=>"897", "effectiveDate"=>-1, "currencyCode"=>"USD", "pricePerQuantity"=>1},
       "id"=>"COP32.1/2048/60"},
     {"detail"=>"Bronze - 32 bit (vCPU: 1, RAM: 2 GiB, Disk: 235 GiB)",
       "label"=>"Bronze 32 bit",
       "price"=>{"rate"=>0.115, "unitOfMeasure"=>"UHR  ", "countryCode"=>"897", "effectiveDate"=>-1, "currencyCode"=>"USD", "pricePerQuantity"=>1},
       "id"=>"BRZ32.1/2048/60*175"},
     {"detail"=>"Silver - 32 bit (vCPU: 2, RAM: 4 GiB, Disk: 410 GiB)",
       "label"=>"Silver 32 bit",
       "price"=>{"rate"=>0.2, "unitOfMeasure"=>"UHR  ", "countryCode"=>"897", "effectiveDate"=>-1, "currencyCode"=>"USD", "pricePerQuantity"=>1},
       "id"=>"SLV32.2/4096/60*350"},
     {"detail"=>"Gold - 32 bit (vCPU: 4, RAM: 4 GiB, Disk: 410 GiB)",
       "label"=>"Gold 32 bit",
       "price"=>{"rate"=>0.33, "unitOfMeasure"=>"UHR  ", "countryCode"=>"897", "effectiveDate"=>-1, "currencyCode"=>"USD", "pricePerQuantity"=>1},
       "id"=>"GLD32.4/4096/60*350"}],
    "productCodes"=>["rtpSr7dKs9ARDmuPy6WPgV"],
    "documentation"=>"https://www-147.ibm.com/cloud/enterprise/ram.ws/RAMSecure/artifact/{6CD09CE4-E99B-D72F-6C29-233C9B2A1676}/1.0/GettingStarted.html",
    "id"=>"20010001",
    "description"=>"Suse Linux 32 bit"
  }
  images
end