def create_vm_tags(id, tags = [])
raise ArgumentError, "Tags argument for #{self.class.name}##{__method__} must be Array." unless tags.is_a?(Array)
response = Excon::Response.new
response.status = self.get_vm(id).status
if response.status != 404
tags.each do |tag|
@tags << {
'empRecordId'=>nil,
'id'=>Fog::Mock.random_numbers(7),
'resourceTableId'=>id,
'tagId'=> tagId = Fog::Mock.random_numbers(5),
'tagTypeId'=>1,
'usrRecordId'=>123456,
'tag'=>{'accountId'=>987654, 'id'=>tagId, 'internal'=>0, 'name'=>tag},
'tagType'=>{'description'=>'CCI', 'keyName'=>'GUEST'}
}
end
response.body = true
else
response.body = {
"error"=>"Unable to find object with id of '#{id}'.",
"code"=>"SoftLayer_Exception_ObjectNotFound"
}
end
response
end