def create_ip_block(options = {})
ipb_3_id = Fog::UUID.uuid
ip_block = {
'id' => ipb_3_id,
'type' => 'ipblock',
'href' => "https://api.profitbricks.com/rest/v2/ipblocks/#{ipb_3_id}",
'metadata' => {
'createdDate' => '2016-07-31T15:41:27Z',
'createdBy' => 'test@stackpointcloud.com',
'etag' => '5b91832ee85a758568d4523a86bd8702',
'lastModifiedDate' => '2016-07-31T15:41:27Z',
'lastModifiedBy' => 'test@stackpointcloud.com',
'state' => 'AVAILABLE'
},
'properties' => {
'ips' => ["777.777.777.777", "888.888.888.888"],
'location' => options[:location],
'size' => options[:size],
'name' => options[:name]
}
}
data[:ip_blocks]['items'] << ip_block
response = Excon::Response.new
response.status = 202
response.body = ip_block
response
end