fog-openstack 0.1.25 → 0.1.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -1
- data/.travis.yml +4 -4
- data/.zuul.yaml +35 -0
- data/README.md +3 -3
- data/Rakefile +6 -9
- data/docs/planning.md +3 -3
- data/docs/storage.md +1 -1
- data/examples/planning/basics.rb +1 -1
- data/fog-openstack.gemspec +3 -3
- data/lib/fog/baremetal/openstack/requests/create_chassis.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/create_node.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/create_port.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/get_chassis.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/get_driver.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/get_driver_properties.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/get_node.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/get_port.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_chassis.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_chassis_detailed.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_drivers.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_nodes.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_nodes_detailed.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_ports.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/list_ports_detailed.rb +6 -6
- data/lib/fog/baremetal/openstack/requests/patch_chassis.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/patch_node.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/patch_port.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/set_node_maintenance.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/set_node_power_state.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/set_node_provision_state.rb +4 -4
- data/lib/fog/baremetal/openstack/requests/unset_node_maintenance.rb +4 -4
- data/lib/fog/compute/openstack/models/network.rb +4 -4
- data/lib/fog/compute/openstack/models/networks.rb +4 -4
- data/lib/fog/compute/openstack/models/server.rb +1 -1
- data/lib/fog/compute/openstack/models/server_group.rb +4 -4
- data/lib/fog/compute/openstack/models/server_groups.rb +4 -4
- data/lib/fog/compute/openstack/models/tenant.rb +4 -4
- data/lib/fog/compute/openstack/models/tenants.rb +4 -4
- data/lib/fog/compute/openstack/requests/add_aggregate_host.rb +4 -4
- data/lib/fog/compute/openstack/requests/add_fixed_ip.rb +7 -7
- data/lib/fog/compute/openstack/requests/allocate_address.rb +3 -3
- data/lib/fog/compute/openstack/requests/boot_from_snapshot.rb +3 -3
- data/lib/fog/compute/openstack/requests/create_aggregate.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_flavor.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_flavor_metadata.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_key_pair.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_security_group.rb +4 -4
- data/lib/fog/compute/openstack/requests/create_security_group_rule.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_aggregate.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_flavor.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_key_pair.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_security_group.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_security_group_rule.rb +4 -4
- data/lib/fog/compute/openstack/requests/delete_service.rb +4 -4
- data/lib/fog/compute/openstack/requests/disable_service.rb +4 -4
- data/lib/fog/compute/openstack/requests/disable_service_log_reason.rb +4 -4
- data/lib/fog/compute/openstack/requests/enable_service.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_address.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_aggregate.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_flavor_metadata.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_host_details.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_security_group.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_security_group_rule.rb +4 -4
- data/lib/fog/compute/openstack/requests/get_server_volumes.rb +1 -1
- data/lib/fog/compute/openstack/requests/get_vnc_console.rb +7 -7
- data/lib/fog/compute/openstack/requests/list_aggregates.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_all_addresses.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_hosts.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_key_pairs.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_security_groups.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_services.rb +4 -4
- data/lib/fog/compute/openstack/requests/list_tenants.rb +4 -4
- data/lib/fog/compute/openstack/requests/pause_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/release_address.rb +1 -1
- data/lib/fog/compute/openstack/requests/remove_aggregate_host.rb +4 -4
- data/lib/fog/compute/openstack/requests/remove_fixed_ip.rb +7 -7
- data/lib/fog/compute/openstack/requests/rescue_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/resume_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/server_actions.rb +7 -7
- data/lib/fog/compute/openstack/requests/server_diagnostics.rb +7 -7
- data/lib/fog/compute/openstack/requests/set_tenant.rb +3 -3
- data/lib/fog/compute/openstack/requests/shelve_offload_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/shelve_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/start_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/stop_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/suspend_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/unpause_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/unshelve_server.rb +7 -7
- data/lib/fog/compute/openstack/requests/update_aggregate.rb +4 -4
- data/lib/fog/compute/openstack/requests/update_aggregate_metadata.rb +4 -4
- data/lib/fog/dns/openstack.rb +3 -0
- data/lib/fog/identity/openstack.rb +3 -0
- data/lib/fog/identity/openstack/v2/models/role.rb +5 -5
- data/lib/fog/identity/openstack/v2/models/roles.rb +4 -4
- data/lib/fog/identity/openstack/v2/models/tenant.rb +5 -5
- data/lib/fog/identity/openstack/v2/models/tenants.rb +5 -5
- data/lib/fog/identity/openstack/v2/models/user.rb +5 -5
- data/lib/fog/identity/openstack/v2/models/users.rb +5 -5
- data/lib/fog/identity/openstack/v2/requests/add_user_to_tenant.rb +6 -6
- data/lib/fog/identity/openstack/v2/requests/create_ec2_credential.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/create_role.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/create_tenant.rb +8 -8
- data/lib/fog/identity/openstack/v2/requests/create_user.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/create_user_role.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/delete_ec2_credential.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/delete_role.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/delete_tenant.rb +8 -8
- data/lib/fog/identity/openstack/v2/requests/delete_user.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/delete_user_role.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_ec2_credential.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_role.rb +5 -5
- data/lib/fog/identity/openstack/v2/requests/get_tenant.rb +7 -7
- data/lib/fog/identity/openstack/v2/requests/get_tenants_by_id.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_tenants_by_name.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_user_by_id.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/get_user_by_name.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_ec2_credentials.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_endpoints_for_token.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_roles.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_roles_for_user_on_tenant.rb +8 -8
- data/lib/fog/identity/openstack/v2/requests/list_tenants.rb +7 -7
- data/lib/fog/identity/openstack/v2/requests/list_user_global_roles.rb +1 -1
- data/lib/fog/identity/openstack/v2/requests/list_users.rb +6 -6
- data/lib/fog/identity/openstack/v2/requests/remove_user_from_tenant.rb +6 -6
- data/lib/fog/identity/openstack/v2/requests/set_tenant.rb +4 -4
- data/lib/fog/identity/openstack/v2/requests/update_tenant.rb +8 -8
- data/lib/fog/identity/openstack/v2/requests/update_user.rb +1 -1
- data/lib/fog/image/openstack.rb +3 -0
- data/lib/fog/image/openstack/v1/requests/add_member_to_image.rb +7 -7
- data/lib/fog/image/openstack/v1/requests/get_image.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/get_image_by_id.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/get_image_members.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/get_shared_images.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/list_public_images.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/remove_member_from_image.rb +6 -6
- data/lib/fog/image/openstack/v1/requests/set_tenant.rb +3 -3
- data/lib/fog/image/openstack/v1/requests/update_image_members.rb +5 -5
- data/lib/fog/image/openstack/v2/requests/add_member_to_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/add_tag_to_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/download_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_image_by_id.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_image_members.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_member_details.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/get_shared_images.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/list_images.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/remove_member_from_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/remove_tag_from_image.rb +6 -6
- data/lib/fog/image/openstack/v2/requests/set_tenant.rb +3 -3
- data/lib/fog/image/openstack/v2/requests/update_image_member.rb +5 -5
- data/lib/fog/openstack.rb +27 -47
- data/lib/fog/openstack/version.rb +2 -2
- data/lib/fog/planning/openstack.rb +2 -2
- data/lib/fog/planning/openstack/models/plan.rb +1 -1
- data/lib/fog/planning/openstack/models/plans.rb +2 -2
- data/lib/fog/planning/openstack/models/role.rb +1 -1
- data/lib/fog/planning/openstack/models/roles.rb +2 -2
- data/lib/fog/planning/openstack/requests/add_role_to_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/create_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/delete_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/get_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/get_plan_templates.rb +7 -7
- data/lib/fog/planning/openstack/requests/list_plans.rb +7 -7
- data/lib/fog/planning/openstack/requests/list_roles.rb +7 -7
- data/lib/fog/planning/openstack/requests/patch_plan.rb +7 -7
- data/lib/fog/planning/openstack/requests/remove_role_from_plan.rb +7 -7
- data/lib/fog/shared_file_system/openstack.rb +44 -9
- data/lib/fog/shared_file_system/openstack/requests/add_security_service_to_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/create_security_service.rb +47 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_security_service.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/get_security_service.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/list_security_services.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_security_services_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/share_network_action.rb +16 -0
- data/lib/fog/shared_file_system/openstack/requests/update_security_service.rb +31 -0
- data/lib/fog/storage/openstack/models/file.rb +2 -0
- data/lib/fog/volume/openstack.rb +3 -0
- data/lib/fog/volume/openstack/requests/set_tenant.rb +3 -3
- data/playbooks/.gitkeep +0 -0
- data/playbooks/fog-openstack-unittest-spec/run.yaml +57 -0
- data/playbooks/fog-openstack-unittest-test/run.yaml +57 -0
- metadata +18 -6
- data/.ruby-version +0 -1
@@ -18,7 +18,7 @@ module Fog
|
|
18
18
|
:path => "images/#{image_id}/members"
|
19
19
|
)
|
20
20
|
end
|
21
|
-
end
|
21
|
+
end
|
22
22
|
|
23
23
|
class Mock
|
24
24
|
def update_image_members(_image_id, _members)
|
@@ -32,8 +32,8 @@ module Fog
|
|
32
32
|
}
|
33
33
|
response
|
34
34
|
end
|
35
|
-
end
|
36
|
-
end
|
35
|
+
end
|
36
|
+
end
|
37
37
|
end
|
38
|
-
end
|
39
|
-
end
|
38
|
+
end
|
39
|
+
end
|
@@ -11,16 +11,16 @@ module Fog
|
|
11
11
|
:body => Fog::JSON.encode(:member => tenant_id)
|
12
12
|
)
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
15
15
|
|
16
16
|
class Mock
|
17
17
|
def add_member_to_image(_image_id, _tenant_id)
|
18
18
|
response = Excon::Response.new
|
19
19
|
response.status = 200
|
20
20
|
response
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
24
|
end
|
25
|
-
end
|
26
|
-
end
|
25
|
+
end
|
26
|
+
end
|
@@ -10,16 +10,16 @@ module Fog
|
|
10
10
|
:path => "images/#{image_id}/tags/#{tag}"
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def add_tag_to_image(_image_id, _tag)
|
17
17
|
response = Excon::Response.new
|
18
18
|
response.status = 204
|
19
19
|
response
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
23
|
end
|
24
|
-
end
|
25
|
-
end
|
24
|
+
end
|
25
|
+
end
|
@@ -13,7 +13,7 @@ module Fog
|
|
13
13
|
request_hash[:response_block] = params[:response_block] if params[:response_block]
|
14
14
|
request(request_hash).body
|
15
15
|
end
|
16
|
-
end
|
16
|
+
end
|
17
17
|
|
18
18
|
class Mock
|
19
19
|
def download_image(_image_id, _content_range = nil)
|
@@ -21,9 +21,9 @@ module Fog
|
|
21
21
|
response.status = [200, 204][rand(2)]
|
22
22
|
response.body = ""
|
23
23
|
response
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
27
|
end
|
28
|
-
end
|
29
|
-
end
|
28
|
+
end
|
29
|
+
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:path => "images/#{image_id}"
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def get_image(_image_id)
|
@@ -39,9 +39,9 @@ module Fog
|
|
39
39
|
"X-Image-Meta-Id" => "0e09fbd6-43c5-448a-83e9-0d3d05f9747e"}
|
40
40
|
response.body = ""
|
41
41
|
response
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
45
|
end
|
46
|
-
end
|
47
|
-
end
|
46
|
+
end
|
47
|
+
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:path => "images/#{image_id}"
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def get_image_by_id(_image_id)
|
@@ -27,9 +27,9 @@ module Fog
|
|
27
27
|
}]
|
28
28
|
}
|
29
29
|
response
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
33
|
end
|
34
|
-
end
|
35
|
-
end
|
34
|
+
end
|
35
|
+
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:path => "images/#{image_id}/members"
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def get_image_members(_image_id)
|
@@ -23,9 +23,9 @@ module Fog
|
|
23
23
|
]
|
24
24
|
}
|
25
25
|
response
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
29
|
end
|
30
|
-
end
|
31
|
-
end
|
30
|
+
end
|
31
|
+
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:path => "images/#{image_id}/members/#{member_id}"
|
11
11
|
).body
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def get_member_details(_image_id, _member_id)
|
@@ -25,9 +25,9 @@ module Fog
|
|
25
25
|
:schema => "/v2/schemas/member"
|
26
26
|
}
|
27
27
|
response
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
31
|
end
|
32
|
-
end
|
33
|
-
end
|
32
|
+
end
|
33
|
+
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:path => "shared-images/#{tenant_id}"
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def get_shared_images(_tenant_id)
|
@@ -23,9 +23,9 @@ module Fog
|
|
23
23
|
]
|
24
24
|
}
|
25
25
|
response
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
29
|
end
|
30
|
-
end
|
31
|
-
end
|
30
|
+
end
|
31
|
+
end
|
@@ -11,7 +11,7 @@ module Fog
|
|
11
11
|
:query => options
|
12
12
|
)
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
15
15
|
|
16
16
|
class Mock
|
17
17
|
def list_images(_options = {})
|
@@ -28,9 +28,9 @@ module Fog
|
|
28
28
|
}]
|
29
29
|
}
|
30
30
|
response
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
34
|
end
|
35
|
-
end
|
36
|
-
end
|
35
|
+
end
|
36
|
+
end
|
@@ -10,16 +10,16 @@ module Fog
|
|
10
10
|
:path => "images/#{image_id}/members/#{member_id}"
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def remove_member_from_image(_image_id, _member_id)
|
17
17
|
response = Excon::Response.new
|
18
18
|
response.status = [200, 204][rand(2)]
|
19
19
|
response
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
23
|
end
|
24
|
-
end
|
25
|
-
end
|
24
|
+
end
|
25
|
+
end
|
@@ -10,16 +10,16 @@ module Fog
|
|
10
10
|
:path => "images/#{image_id}/tags/#{tag}"
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def remove_tag_from_image(_image_id, _tag)
|
17
17
|
response = Excon::Response.new
|
18
18
|
response.status = 204
|
19
19
|
response
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
23
|
end
|
24
|
-
end
|
25
|
-
end
|
24
|
+
end
|
25
|
+
end
|
@@ -11,7 +11,7 @@ module Fog
|
|
11
11
|
:path => "images/#{image_id}/members/#{member['member_id']}"
|
12
12
|
)
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
15
15
|
|
16
16
|
class Mock
|
17
17
|
def update_image_members(image_id, member)
|
@@ -27,8 +27,8 @@ module Fog
|
|
27
27
|
}
|
28
28
|
response
|
29
29
|
end
|
30
|
-
end
|
31
|
-
end
|
30
|
+
end
|
31
|
+
end
|
32
32
|
end
|
33
|
-
end
|
34
|
-
end
|
33
|
+
end
|
34
|
+
end
|
data/lib/fog/openstack.rb
CHANGED
@@ -1,115 +1,95 @@
|
|
1
|
-
require 'fog/openstack/version'
|
2
1
|
require 'fog/core'
|
3
2
|
require 'fog/json'
|
4
3
|
|
5
|
-
require 'fog/openstack/core'
|
6
|
-
require 'fog/openstack/errors'
|
7
|
-
|
8
|
-
require 'fog/planning/openstack'
|
9
|
-
|
10
4
|
module Fog
|
11
5
|
module Baremetal
|
12
|
-
autoload :OpenStack,
|
6
|
+
autoload :OpenStack, 'fog/baremetal/openstack'
|
13
7
|
end
|
14
8
|
|
15
9
|
module Compute
|
16
|
-
autoload :OpenStack,
|
10
|
+
autoload :OpenStack, 'fog/compute/openstack'
|
17
11
|
end
|
18
12
|
|
19
13
|
module ContainerInfra
|
20
|
-
autoload :OpenStack,
|
14
|
+
autoload :OpenStack, 'fog/container_infra/openstack'
|
21
15
|
end
|
22
16
|
|
23
17
|
module DNS
|
24
|
-
autoload :OpenStack,
|
25
|
-
|
26
|
-
class OpenStack
|
27
|
-
autoload :V1, File.expand_path('../dns/openstack/v1', __FILE__)
|
28
|
-
autoload :V2, File.expand_path('../dns/openstack/v2', __FILE__)
|
29
|
-
end
|
18
|
+
autoload :OpenStack, 'fog/dns/openstack'
|
30
19
|
end
|
31
20
|
|
32
21
|
module Event
|
33
|
-
autoload :OpenStack,
|
22
|
+
autoload :OpenStack, 'fog/event/openstack'
|
34
23
|
end
|
35
24
|
|
36
25
|
module Identity
|
37
|
-
autoload :OpenStack,
|
38
|
-
|
39
|
-
class OpenStack
|
40
|
-
autoload :V2, File.expand_path('../identity/openstack/v2', __FILE__)
|
41
|
-
autoload :V3, File.expand_path('../identity/openstack/v3', __FILE__)
|
42
|
-
end
|
26
|
+
autoload :OpenStack, 'fog/identity/openstack'
|
43
27
|
end
|
44
28
|
|
45
29
|
module Image
|
46
|
-
autoload :OpenStack,
|
47
|
-
|
48
|
-
class OpenStack
|
49
|
-
autoload :V1, File.expand_path('../image/openstack/v1', __FILE__)
|
50
|
-
autoload :V2, File.expand_path('../image/openstack/v2', __FILE__)
|
51
|
-
end
|
30
|
+
autoload :OpenStack, 'fog/image/openstack'
|
52
31
|
end
|
53
32
|
|
54
33
|
module Introspection
|
55
|
-
autoload :OpenStack,
|
34
|
+
autoload :OpenStack, 'fog/introspection/openstack'
|
56
35
|
end
|
57
36
|
|
58
37
|
module KeyManager
|
59
|
-
autoload :OpenStack,
|
38
|
+
autoload :OpenStack, 'fog/key_manager/openstack'
|
60
39
|
end
|
61
40
|
|
62
41
|
module Metering
|
63
|
-
autoload :OpenStack,
|
42
|
+
autoload :OpenStack, 'fog/metering/openstack'
|
64
43
|
end
|
65
44
|
|
66
45
|
module Metric
|
67
|
-
autoload :OpenStack,
|
46
|
+
autoload :OpenStack, 'fog/metric/openstack'
|
68
47
|
end
|
69
48
|
|
70
49
|
module Monitoring
|
71
|
-
autoload :OpenStack,
|
50
|
+
autoload :OpenStack, 'fog/monitoring/openstack'
|
72
51
|
end
|
73
52
|
|
74
53
|
module Network
|
75
|
-
autoload :OpenStack,
|
54
|
+
autoload :OpenStack, 'fog/network/openstack'
|
76
55
|
end
|
77
56
|
|
78
57
|
module NFV
|
79
|
-
autoload :OpenStack,
|
58
|
+
autoload :OpenStack, 'fog/nfv/openstack'
|
80
59
|
end
|
81
60
|
|
82
61
|
module Orchestration
|
83
|
-
autoload :OpenStack,
|
84
|
-
autoload :Util,
|
62
|
+
autoload :OpenStack, 'fog/orchestration/openstack'
|
63
|
+
autoload :Util, 'fog/orchestration/util/recursive_hot_file_loader'
|
85
64
|
end
|
86
65
|
|
87
66
|
module SharedFileSystem
|
88
|
-
autoload :OpenStack,
|
67
|
+
autoload :OpenStack, 'fog/shared_file_system/openstack'
|
89
68
|
end
|
90
69
|
|
91
70
|
module Storage
|
92
|
-
autoload :OpenStack,
|
71
|
+
autoload :OpenStack, 'fog/storage/openstack'
|
93
72
|
end
|
94
73
|
|
95
74
|
module Volume
|
96
|
-
autoload :OpenStack,
|
97
|
-
|
98
|
-
class OpenStack
|
99
|
-
autoload :V1, File.expand_path('../volume/openstack/v1', __FILE__)
|
100
|
-
autoload :V2, File.expand_path('../volume/openstack/v2', __FILE__)
|
101
|
-
end
|
75
|
+
autoload :OpenStack, 'fog/volume/openstack'
|
102
76
|
end
|
103
77
|
|
104
78
|
module Workflow
|
105
|
-
autoload :OpenStack,
|
79
|
+
autoload :OpenStack, 'fog/workflow/openstack'
|
106
80
|
|
107
81
|
class OpenStack
|
108
|
-
autoload :V2,
|
82
|
+
autoload :V2, 'fog/workflow/openstack/v2'
|
109
83
|
end
|
110
84
|
end
|
111
85
|
|
112
86
|
module OpenStack
|
87
|
+
autoload :VERSION, 'fog/openstack/version'
|
88
|
+
|
89
|
+
autoload :Core, 'fog/openstack/core'
|
90
|
+
autoload :Errors, 'fog/openstack/errors'
|
91
|
+
autoload :Planning, 'fog/planning/openstack'
|
92
|
+
|
113
93
|
extend Fog::Provider
|
114
94
|
|
115
95
|
service(:baremetal, 'Baremetal')
|