fog 0.0.77 → 0.0.78
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/fog.gemspec +59 -48
- data/lib/fog.rb +2 -1
- data/lib/fog/aws/models/ec2/snapshot.rb +3 -1
- data/lib/fog/aws/models/ec2/volume.rb +4 -2
- data/lib/fog/aws/s3.rb +1 -1
- data/lib/fog/deprecation.rb +14 -0
- data/lib/fog/terremark.rb +7 -220
- data/lib/fog/terremark/bin.rb +24 -14
- data/lib/fog/terremark/ecloud.rb +51 -0
- data/lib/fog/terremark/models/shared/address.rb +29 -0
- data/lib/fog/terremark/models/shared/addresses.rb +49 -0
- data/lib/fog/terremark/models/shared/network.rb +30 -0
- data/lib/fog/terremark/models/shared/networks.rb +52 -0
- data/lib/fog/terremark/models/shared/server.rb +57 -0
- data/lib/fog/terremark/models/shared/servers.rb +55 -0
- data/lib/fog/terremark/models/shared/task.rb +43 -0
- data/lib/fog/terremark/models/shared/tasks.rb +58 -0
- data/lib/fog/terremark/parser.rb +18 -0
- data/lib/fog/terremark/parsers/shared/get_catalog.rb +46 -0
- data/lib/fog/terremark/parsers/shared/get_catalog_item.rb +46 -0
- data/lib/fog/terremark/parsers/shared/get_internet_services.rb +60 -0
- data/lib/fog/terremark/parsers/{get_node_services.rb → shared/get_node_services.rb} +10 -11
- data/lib/fog/terremark/parsers/shared/get_organization.rb +47 -0
- data/lib/fog/terremark/parsers/shared/get_organizations.rb +27 -0
- data/lib/fog/terremark/parsers/shared/get_public_ips.rb +30 -0
- data/lib/fog/terremark/parsers/shared/get_tasks_list.rb +52 -0
- data/lib/fog/terremark/parsers/shared/get_vapp_template.rb +46 -0
- data/lib/fog/terremark/parsers/shared/get_vdc.rb +108 -0
- data/lib/fog/terremark/parsers/shared/instantiate_vapp_template.rb +41 -0
- data/lib/fog/terremark/parsers/shared/internet_service.rb +65 -0
- data/lib/fog/terremark/parsers/shared/network.rb +51 -0
- data/lib/fog/terremark/parsers/shared/node_service.rb +32 -0
- data/lib/fog/terremark/parsers/shared/public_ip.rb +26 -0
- data/lib/fog/terremark/parsers/shared/task.rb +40 -0
- data/lib/fog/terremark/parsers/shared/vapp.rb +47 -0
- data/lib/fog/terremark/requests/shared/add_internet_service.rb +63 -0
- data/lib/fog/terremark/requests/shared/add_node_service.rb +63 -0
- data/lib/fog/terremark/requests/shared/create_internet_service.rb +63 -0
- data/lib/fog/terremark/requests/shared/delete_internet_service.rb +42 -0
- data/lib/fog/terremark/requests/shared/delete_node_service.rb +42 -0
- data/lib/fog/terremark/requests/shared/delete_public_ip.rb +30 -0
- data/lib/fog/terremark/requests/shared/delete_vapp.rb +42 -0
- data/lib/fog/terremark/requests/shared/deploy_vapp.rb +43 -0
- data/lib/fog/terremark/requests/shared/get_catalog.rb +40 -0
- data/lib/fog/terremark/requests/shared/get_catalog_item.rb +43 -0
- data/lib/fog/terremark/requests/shared/get_internet_services.rb +43 -0
- data/lib/fog/terremark/requests/shared/get_network.rb +37 -0
- data/lib/fog/terremark/requests/shared/get_node_services.rb +38 -0
- data/lib/fog/terremark/requests/shared/get_organization.rb +42 -0
- data/lib/fog/terremark/requests/shared/get_organizations.rb +39 -0
- data/lib/fog/terremark/requests/shared/get_public_ip.rb +41 -0
- data/lib/fog/terremark/requests/shared/get_public_ips.rb +41 -0
- data/lib/fog/terremark/requests/shared/get_task.rb +47 -0
- data/lib/fog/terremark/requests/shared/get_tasks_list.rb +40 -0
- data/lib/fog/terremark/requests/shared/get_vapp.rb +50 -0
- data/lib/fog/terremark/requests/shared/get_vapp_template.rb +43 -0
- data/lib/fog/terremark/requests/shared/get_vdc.rb +43 -0
- data/lib/fog/terremark/requests/shared/instantiate_vapp_template.rb +79 -0
- data/lib/fog/terremark/requests/shared/power_off.rb +43 -0
- data/lib/fog/terremark/requests/shared/power_on.rb +43 -0
- data/lib/fog/terremark/requests/shared/reset.rb +43 -0
- data/lib/fog/terremark/requests/shared/shutdown.rb +43 -0
- data/lib/fog/terremark/shared.rb +139 -0
- data/lib/fog/terremark/vcloud.rb +98 -0
- metadata +60 -49
- data/lib/fog/terremark/models/server.rb +0 -56
- data/lib/fog/terremark/models/servers.rb +0 -53
- data/lib/fog/terremark/models/task.rb +0 -41
- data/lib/fog/terremark/models/tasks.rb +0 -56
- data/lib/fog/terremark/parsers/get_catalog.rb +0 -44
- data/lib/fog/terremark/parsers/get_catalog_item.rb +0 -44
- data/lib/fog/terremark/parsers/get_internet_services.rb +0 -58
- data/lib/fog/terremark/parsers/get_organization.rb +0 -45
- data/lib/fog/terremark/parsers/get_organizations.rb +0 -26
- data/lib/fog/terremark/parsers/get_public_ips.rb +0 -28
- data/lib/fog/terremark/parsers/get_tasks_list.rb +0 -50
- data/lib/fog/terremark/parsers/get_vapp_template.rb +0 -44
- data/lib/fog/terremark/parsers/get_vdc.rb +0 -106
- data/lib/fog/terremark/parsers/instantiate_vapp_template.rb +0 -39
- data/lib/fog/terremark/parsers/internet_service.rb +0 -63
- data/lib/fog/terremark/parsers/node_service.rb +0 -30
- data/lib/fog/terremark/parsers/public_ip.rb +0 -24
- data/lib/fog/terremark/parsers/task.rb +0 -38
- data/lib/fog/terremark/parsers/vapp.rb +0 -45
- data/lib/fog/terremark/requests/add_internet_service.rb +0 -61
- data/lib/fog/terremark/requests/add_node_service.rb +0 -61
- data/lib/fog/terremark/requests/create_internet_service.rb +0 -61
- data/lib/fog/terremark/requests/delete_internet_service.rb +0 -40
- data/lib/fog/terremark/requests/delete_node_service.rb +0 -40
- data/lib/fog/terremark/requests/delete_public_ip.rb +0 -28
- data/lib/fog/terremark/requests/delete_vapp.rb +0 -40
- data/lib/fog/terremark/requests/deploy_vapp.rb +0 -41
- data/lib/fog/terremark/requests/get_catalog.rb +0 -38
- data/lib/fog/terremark/requests/get_catalog_item.rb +0 -41
- data/lib/fog/terremark/requests/get_internet_services.rb +0 -41
- data/lib/fog/terremark/requests/get_node_services.rb +0 -36
- data/lib/fog/terremark/requests/get_organization.rb +0 -40
- data/lib/fog/terremark/requests/get_organizations.rb +0 -37
- data/lib/fog/terremark/requests/get_public_ip.rb +0 -35
- data/lib/fog/terremark/requests/get_public_ips.rb +0 -35
- data/lib/fog/terremark/requests/get_task.rb +0 -45
- data/lib/fog/terremark/requests/get_tasks_list.rb +0 -38
- data/lib/fog/terremark/requests/get_vapp.rb +0 -48
- data/lib/fog/terremark/requests/get_vapp_template.rb +0 -41
- data/lib/fog/terremark/requests/get_vdc.rb +0 -41
- data/lib/fog/terremark/requests/instantiate_vapp_template.rb +0 -77
- data/lib/fog/terremark/requests/power_off.rb +0 -41
- data/lib/fog/terremark/requests/power_on.rb +0 -41
- data/lib/fog/terremark/requests/reset.rb +0 -41
- data/lib/fog/terremark/requests/shutdown.rb +0 -41
@@ -1,41 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
require 'fog/terremark/parsers/get_internet_services'
|
6
|
-
|
7
|
-
# Get a list of all internet services for a vdc
|
8
|
-
#
|
9
|
-
# ==== Parameters
|
10
|
-
# * vdc_id<~Integer> - Id of vDc to get list of internet services for
|
11
|
-
#
|
12
|
-
# ==== Returns
|
13
|
-
# * response<~Excon::Response>:
|
14
|
-
# * body<~Hash>:
|
15
|
-
# * 'InternetServices'<~Array>
|
16
|
-
# * 'id'<~String> => id of the internet service
|
17
|
-
# * 'name'<~String> => name of service
|
18
|
-
# * 'PublicIPAddress'<~Hash>
|
19
|
-
# * 'Id'<~String> => id of the public IP
|
20
|
-
# * 'name'<~String> => actual ip address
|
21
|
-
#
|
22
|
-
def get_internet_services(vdc_id = default_vdc_id)
|
23
|
-
request(
|
24
|
-
:expects => 200,
|
25
|
-
:method => 'GET',
|
26
|
-
:parser => Fog::Parsers::Terremark::GetInternetServices.new,
|
27
|
-
:path => "vdc/#{vdc_id}/internetServices"
|
28
|
-
)
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
|
33
|
-
class Mock
|
34
|
-
|
35
|
-
def get_internet_services(vdc_id)
|
36
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
37
|
-
end
|
38
|
-
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
require 'fog/terremark/parsers/get_node_services'
|
6
|
-
|
7
|
-
# Get a list of all internet services for a vdc
|
8
|
-
#
|
9
|
-
# ==== Parameters
|
10
|
-
# * service_id<~Integer> - Id of internet service that we want a list of nodes for
|
11
|
-
#
|
12
|
-
# ==== Returns
|
13
|
-
# * response<~Excon::Response>:
|
14
|
-
# * body<~Hash>:
|
15
|
-
|
16
|
-
#
|
17
|
-
def get_node_services(service_id)
|
18
|
-
request(
|
19
|
-
:expects => 200,
|
20
|
-
:method => 'GET',
|
21
|
-
:parser => Fog::Parsers::Terremark::GetNodeServices.new,
|
22
|
-
:path => "InternetServices/#{service_id}/nodes"
|
23
|
-
)
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
class Mock
|
29
|
-
|
30
|
-
def get_node_services(service_id)
|
31
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,40 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
# Get details of an organization
|
6
|
-
#
|
7
|
-
# ==== Parameters
|
8
|
-
# * organization_id<~Integer> - Id of organization to lookup
|
9
|
-
#
|
10
|
-
# ==== Returns
|
11
|
-
# * response<~Excon::Response>:
|
12
|
-
# * body<~Hash>:
|
13
|
-
# * 'description'<~String> - Description of organization
|
14
|
-
# * 'links'<~Array> - An array of links to entities in the organization
|
15
|
-
# * 'href'<~String> - location of link
|
16
|
-
# * 'name'<~String> - name of link
|
17
|
-
# * 'rel'<~String> - action to perform
|
18
|
-
# * 'type'<~String> - type of link
|
19
|
-
# * 'name'<~String> - Name of organization
|
20
|
-
def get_organization(organization_id = default_organization_id)
|
21
|
-
response = request(
|
22
|
-
:expects => 200,
|
23
|
-
:method => 'GET',
|
24
|
-
:parser => Fog::Parsers::Terremark::GetOrganization.new,
|
25
|
-
:path => "org/#{organization_id}"
|
26
|
-
)
|
27
|
-
response
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
31
|
-
|
32
|
-
class Mock
|
33
|
-
|
34
|
-
def get_organization(organization_id)
|
35
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
# Get list of organizations
|
6
|
-
#
|
7
|
-
# ==== Returns
|
8
|
-
# * response<~Excon::Response>:
|
9
|
-
# * body<~Array>:
|
10
|
-
# * 'description'<~String> - Description of organization
|
11
|
-
# * 'links'<~Array> - An array of links to entities in the organization
|
12
|
-
# * 'name'<~String> - Name of organization
|
13
|
-
def get_organizations
|
14
|
-
request({
|
15
|
-
:expects => 200,
|
16
|
-
:headers => {
|
17
|
-
'Authorization' => "Basic #{Base64.encode64("#{@terremark_username}:#{@terremark_password}").chomp!}",
|
18
|
-
# Terremark said they're going to remove passing in the Content-Type to login in a future release
|
19
|
-
'Content-Type' => "application/vnd.vmware.vcloud.orgList+xml"
|
20
|
-
},
|
21
|
-
:method => 'POST',
|
22
|
-
:parser => Fog::Parsers::Terremark::GetOrganizations.new,
|
23
|
-
:path => 'login'
|
24
|
-
})
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
class Mock
|
30
|
-
|
31
|
-
def get_organizations
|
32
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
# Get details for a public ip
|
6
|
-
#
|
7
|
-
# ==== Parameters
|
8
|
-
# * public_ip_id<~Integer> - Id of public ip to look up
|
9
|
-
#
|
10
|
-
# ==== Returns
|
11
|
-
# * response<~Excon::Response>:
|
12
|
-
# * body<~Hash>:
|
13
|
-
# * 'PublicIpAddresses'<~Array>
|
14
|
-
# * 'href'<~String> - linke to item
|
15
|
-
# * 'name'<~String> - name of item
|
16
|
-
def get_public_ip(public_ip_id)
|
17
|
-
request(
|
18
|
-
:expects => 200,
|
19
|
-
:method => 'GET',
|
20
|
-
:parser => Fog::Parsers::Terremark::PublicIp.new,
|
21
|
-
:path => "publicIps/#{public_ip_id}"
|
22
|
-
)
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
|
-
class Mock
|
28
|
-
|
29
|
-
def get_public_ip(public_ip_id)
|
30
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
# Get list of public ips
|
6
|
-
#
|
7
|
-
# ==== Parameters
|
8
|
-
# * vdc_id<~Integer> - Id of vdc to find public ips for
|
9
|
-
#
|
10
|
-
# ==== Returns
|
11
|
-
# * response<~Excon::Response>:
|
12
|
-
# * body<~Hash>:
|
13
|
-
# * 'PublicIpAddresses'<~Array>
|
14
|
-
# * 'href'<~String> - linke to item
|
15
|
-
# * 'name'<~String> - name of item
|
16
|
-
def get_public_ips(vdc_id)
|
17
|
-
request(
|
18
|
-
:expects => 200,
|
19
|
-
:method => 'GET',
|
20
|
-
:parser => Fog::Parsers::Terremark::GetPublicIps.new,
|
21
|
-
:path => "vdc/#{vdc_id}/publicIps"
|
22
|
-
)
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
|
-
class Mock
|
28
|
-
|
29
|
-
def get_public_ips(vdc_id)
|
30
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
# Get details of a task
|
6
|
-
#
|
7
|
-
# ==== Parameters
|
8
|
-
# * task_id<~Integer> - Id of task to lookup
|
9
|
-
#
|
10
|
-
# ==== Returns
|
11
|
-
# * response<~Excon::Response>:
|
12
|
-
# * body<~Hash>:
|
13
|
-
# * 'endTime'<~String> - endTime of task
|
14
|
-
# * 'href'<~String> - link to task
|
15
|
-
# * 'startTime'<~String> - startTime of task
|
16
|
-
# * 'status'<~String> - status of task
|
17
|
-
# * 'type'<~String> - type of task
|
18
|
-
# * 'Owner'<~String> -
|
19
|
-
# * 'href'<~String> - href of owner
|
20
|
-
# * 'name'<~String> - name of owner
|
21
|
-
# * 'type'<~String> - type of owner
|
22
|
-
# * 'Result'<~String> -
|
23
|
-
# * 'href'<~String> - href of result
|
24
|
-
# * 'name'<~String> - name of result
|
25
|
-
# * 'type'<~String> - type of result
|
26
|
-
def get_task(task_id)
|
27
|
-
request(
|
28
|
-
:expects => 200,
|
29
|
-
:method => 'GET',
|
30
|
-
:parser => Fog::Parsers::Terremark::Task.new,
|
31
|
-
:path => "task/#{task_id}"
|
32
|
-
)
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
36
|
-
|
37
|
-
class Mock
|
38
|
-
|
39
|
-
def get_task(task_id)
|
40
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
41
|
-
end
|
42
|
-
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
# Get list of tasks
|
6
|
-
#
|
7
|
-
# ==== Parameters
|
8
|
-
# * tasks_list_id<~Integer> - Id of tasks lists to view
|
9
|
-
#
|
10
|
-
# ==== Returns
|
11
|
-
# * response<~Excon::Response>:
|
12
|
-
# * body<~Hash>:
|
13
|
-
# * 'CatalogItems'<~Array>
|
14
|
-
# * 'href'<~String> - linke to item
|
15
|
-
# * 'name'<~String> - name of item
|
16
|
-
# * 'type'<~String> - type of item
|
17
|
-
# * 'description'<~String> - Description of catalog
|
18
|
-
# * 'name'<~String> - Name of catalog
|
19
|
-
def get_tasks_list(tasks_list_id = default_tasks_list_id)
|
20
|
-
request(
|
21
|
-
:expects => 200,
|
22
|
-
:method => 'GET',
|
23
|
-
:parser => Fog::Parsers::Terremark::GetTasksList.new,
|
24
|
-
:path => "tasksList/#{tasks_list_id}"
|
25
|
-
)
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
class Mock
|
31
|
-
|
32
|
-
def get_tasks_list(tasks_list_id)
|
33
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
# Get details of a vapp
|
6
|
-
#
|
7
|
-
# ==== Parameters
|
8
|
-
# * vapp_id<~Integer> - Id of vapp to lookup
|
9
|
-
#
|
10
|
-
# ==== Returns
|
11
|
-
# * response<~Excon::Response>:
|
12
|
-
# * body<~Hash>:
|
13
|
-
|
14
|
-
# FIXME
|
15
|
-
|
16
|
-
# * 'endTime'<~String> - endTime of task
|
17
|
-
# * 'href'<~String> - link to task
|
18
|
-
# * 'startTime'<~String> - startTime of task
|
19
|
-
# * 'status'<~String> - status of task
|
20
|
-
# * 'type'<~String> - type of task
|
21
|
-
# * 'Owner'<~String> -
|
22
|
-
# * 'href'<~String> - href of owner
|
23
|
-
# * 'name'<~String> - name of owner
|
24
|
-
# * 'type'<~String> - type of owner
|
25
|
-
# * 'Result'<~String> -
|
26
|
-
# * 'href'<~String> - href of result
|
27
|
-
# * 'name'<~String> - name of result
|
28
|
-
# * 'type'<~String> - type of result
|
29
|
-
def get_vapp(vapp_id)
|
30
|
-
request(
|
31
|
-
:expects => 200,
|
32
|
-
:method => 'GET',
|
33
|
-
:parser => Fog::Parsers::Terremark::Vapp.new,
|
34
|
-
:path => "vapp/#{vapp_id}"
|
35
|
-
)
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|
39
|
-
|
40
|
-
class Mock
|
41
|
-
|
42
|
-
def get_vapp(vapp_id)
|
43
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
44
|
-
end
|
45
|
-
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
# Get details of a vapp template
|
6
|
-
#
|
7
|
-
# ==== Parameters
|
8
|
-
# * vapp_template_id<~Integer> - Id of vapp template to lookup
|
9
|
-
#
|
10
|
-
# ==== Returns
|
11
|
-
# * response<~Excon::Response>:
|
12
|
-
# * body<~Hash>:
|
13
|
-
|
14
|
-
# FIXME
|
15
|
-
|
16
|
-
# * 'CatalogItems'<~Array>
|
17
|
-
# * 'href'<~String> - linke to item
|
18
|
-
# * 'name'<~String> - name of item
|
19
|
-
# * 'type'<~String> - type of item
|
20
|
-
# * 'description'<~String> - Description of catalog
|
21
|
-
# * 'name'<~String> - Name of catalog
|
22
|
-
def get_vapp_template(vapp_template_id)
|
23
|
-
request(
|
24
|
-
:expects => 200,
|
25
|
-
:method => 'GET',
|
26
|
-
:parser => Fog::Parsers::Terremark::GetVappTemplate.new,
|
27
|
-
:path => "vAppTemplate/#{vapp_template_id}"
|
28
|
-
)
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
|
33
|
-
class Mock
|
34
|
-
|
35
|
-
def get_vapp_template(vapp_template_id)
|
36
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
37
|
-
end
|
38
|
-
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Terremark
|
3
|
-
class Real
|
4
|
-
|
5
|
-
# Get details of a vdc
|
6
|
-
#
|
7
|
-
# ==== Parameters
|
8
|
-
# * vdc_id<~Integer> - Id of vdc to lookup
|
9
|
-
#
|
10
|
-
# ==== Returns
|
11
|
-
# * response<~Excon::Response>:
|
12
|
-
# * body<~Hash>:
|
13
|
-
|
14
|
-
# FIXME
|
15
|
-
|
16
|
-
# * 'CatalogItems'<~Array>
|
17
|
-
# * 'href'<~String> - linke to item
|
18
|
-
# * 'name'<~String> - name of item
|
19
|
-
# * 'type'<~String> - type of item
|
20
|
-
# * 'description'<~String> - Description of catalog
|
21
|
-
# * 'name'<~String> - Name of catalog
|
22
|
-
def get_vdc(vdc_id = default_vdc_id)
|
23
|
-
request(
|
24
|
-
:expects => 200,
|
25
|
-
:method => 'GET',
|
26
|
-
:parser => Fog::Parsers::Terremark::GetVdc.new,
|
27
|
-
:path => "vdc/#{vdc_id}"
|
28
|
-
)
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
|
33
|
-
class Mock
|
34
|
-
|
35
|
-
def get_vdc(vdc_id)
|
36
|
-
raise MockNotImplemented.new("Contributions welcome!")
|
37
|
-
end
|
38
|
-
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|