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
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
|
3
3
|
module Fog
|
4
|
-
module
|
4
|
+
module OpenStack
|
5
5
|
class Planning < Fog::Service
|
6
6
|
SUPPORTED_VERSIONS = /v2/
|
7
7
|
|
@@ -136,7 +136,7 @@ module Fog
|
|
136
136
|
service = attributes.delete(:service).to_s.downcase.to_sym
|
137
137
|
if services.include?(service)
|
138
138
|
require "fog/#{service}/openstack"
|
139
|
-
return Fog::
|
139
|
+
return Fog::OpenStack.const_get(service.to_s.capitalize).new(attributes)
|
140
140
|
end
|
141
141
|
raise ArgumentError, "Openstack has no #{service} service"
|
142
142
|
end
|
@@ -2,10 +2,10 @@ require 'fog/openstack/models/collection'
|
|
2
2
|
require 'fog/planning/openstack/models/plan'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
5
|
+
module OpenStack
|
6
6
|
class Planning
|
7
7
|
class Plans < Fog::OpenStack::Collection
|
8
|
-
model Fog::
|
8
|
+
model Fog::OpenStack::Planning::Plan
|
9
9
|
|
10
10
|
def all(options = {})
|
11
11
|
load_response(service.list_plans(options))
|
@@ -2,10 +2,10 @@ require 'fog/openstack/models/collection'
|
|
2
2
|
require 'fog/planning/openstack/models/role'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
5
|
+
module OpenStack
|
6
6
|
class Planning
|
7
7
|
class Roles < Fog::OpenStack::Collection
|
8
|
-
model Fog::
|
8
|
+
model Fog::OpenStack::Planning::Role
|
9
9
|
|
10
10
|
def all(options = {})
|
11
11
|
load_response(service.list_roles(options))
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
2
|
+
module OpenStack
|
3
3
|
class Planning
|
4
4
|
class Real
|
5
5
|
def add_role_to_plan(plan_uuid, role_uuid)
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:body => Fog::JSON.encode('uuid' => role_uuid)
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def add_role_to_plan(_plan_uuid, _role_uuid)
|
@@ -33,8 +33,8 @@ module Fog
|
|
33
33
|
"uuid" => "53268a27-afc8-4b21-839f-90227dd7a001"
|
34
34
|
}
|
35
35
|
response
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
2
|
+
module OpenStack
|
3
3
|
class Planning
|
4
4
|
class Real
|
5
5
|
def create_plan(parameters)
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:body => Fog::JSON.encode(parameters)
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def create_plan(_parameters)
|
@@ -26,8 +26,8 @@ module Fog
|
|
26
26
|
"uuid" => "53268a27-afc8-4b21-839f-90227dd7a001"
|
27
27
|
}
|
28
28
|
response
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
2
|
+
module OpenStack
|
3
3
|
class Planning
|
4
4
|
class Real
|
5
5
|
def delete_plan(plan_uuid)
|
@@ -9,15 +9,15 @@ module Fog
|
|
9
9
|
:path => "plans/#{plan_uuid}"
|
10
10
|
)
|
11
11
|
end
|
12
|
-
end
|
12
|
+
end
|
13
13
|
|
14
14
|
class Mock
|
15
15
|
def delete_plan(_plan_uuid)
|
16
16
|
response = Excon::Response.new
|
17
17
|
response.status = 204
|
18
18
|
response
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
2
|
+
module OpenStack
|
3
3
|
class Planning
|
4
4
|
class Real
|
5
5
|
def get_plan(plan_uuid)
|
@@ -9,7 +9,7 @@ module Fog
|
|
9
9
|
:path => "plans/#{plan_uuid}"
|
10
10
|
)
|
11
11
|
end
|
12
|
-
end
|
12
|
+
end
|
13
13
|
|
14
14
|
class Mock
|
15
15
|
def get_plan(_parameters = nil)
|
@@ -51,8 +51,8 @@ module Fog
|
|
51
51
|
"uuid" => "53268a27-afc8-4b21-839f-90227dd7a001"
|
52
52
|
}
|
53
53
|
response
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
2
|
+
module OpenStack
|
3
3
|
class Planning
|
4
4
|
class Real
|
5
5
|
def get_plan_templates(plan_uuid)
|
@@ -9,7 +9,7 @@ module Fog
|
|
9
9
|
:path => "plans/#{plan_uuid}/templates"
|
10
10
|
)
|
11
11
|
end
|
12
|
-
end
|
12
|
+
end
|
13
13
|
|
14
14
|
class Mock
|
15
15
|
def get_plan_templates(_plan_uuid)
|
@@ -21,8 +21,8 @@ module Fog
|
|
21
21
|
"provider-compute-1.yaml" => "... content of template file ..."
|
22
22
|
}
|
23
23
|
response
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
2
|
+
module OpenStack
|
3
3
|
class Planning
|
4
4
|
class Real
|
5
5
|
def list_plans(options = {})
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:query => options
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def list_plans(_options = {})
|
@@ -54,8 +54,8 @@ module Fog
|
|
54
54
|
}
|
55
55
|
]
|
56
56
|
response
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
2
|
+
module OpenStack
|
3
3
|
class Planning
|
4
4
|
class Real
|
5
5
|
def list_roles(options = {})
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:query => options
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def list_roles(_options = {})
|
@@ -25,8 +25,8 @@ module Fog
|
|
25
25
|
}
|
26
26
|
]
|
27
27
|
response
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
2
|
+
module OpenStack
|
3
3
|
class Planning
|
4
4
|
class Real
|
5
5
|
def patch_plan(plan_uuid, parameters)
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
:body => Fog::JSON.encode(parameters)
|
11
11
|
)
|
12
12
|
end
|
13
|
-
end
|
13
|
+
end
|
14
14
|
|
15
15
|
class Mock
|
16
16
|
def patch_plan(_plan_uuid, _parameters)
|
@@ -44,8 +44,8 @@ module Fog
|
|
44
44
|
"uuid" => "53268a27-afc8-4b21-839f-90227dd7a001"
|
45
45
|
}
|
46
46
|
response
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
2
|
+
module OpenStack
|
3
3
|
class Planning
|
4
4
|
class Real
|
5
5
|
def remove_role_from_plan(plan_uuid, role_uuid)
|
@@ -9,7 +9,7 @@ module Fog
|
|
9
9
|
:path => "plans/#{plan_uuid}/roles/#{role_uuid}"
|
10
10
|
)
|
11
11
|
end
|
12
|
-
end
|
12
|
+
end
|
13
13
|
|
14
14
|
class Mock
|
15
15
|
def remove_role_from_plan(_plan_uuid, _role_uuid)
|
@@ -25,8 +25,8 @@ module Fog
|
|
25
25
|
"uuid" => "53268a27-afc8-4b21-839f-90227dd7a001"
|
26
26
|
}
|
27
27
|
response
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -38,6 +38,9 @@ module Fog
|
|
38
38
|
request :create_share_network
|
39
39
|
request :update_share_network
|
40
40
|
request :delete_share_network
|
41
|
+
request :share_network_action
|
42
|
+
request :add_security_service_to_share_network
|
43
|
+
request :remove_security_service_from_share_network
|
41
44
|
|
42
45
|
# shares
|
43
46
|
request :list_shares
|
@@ -62,6 +65,14 @@ module Fog
|
|
62
65
|
request :update_snapshot
|
63
66
|
request :delete_snapshot
|
64
67
|
|
68
|
+
# security services
|
69
|
+
request :list_security_services
|
70
|
+
request :list_security_services_detail
|
71
|
+
request :get_security_service
|
72
|
+
request :create_security_service
|
73
|
+
request :update_security_service
|
74
|
+
request :delete_security_service
|
75
|
+
|
65
76
|
# quota + limits
|
66
77
|
request :get_limits
|
67
78
|
request :get_quota
|
@@ -75,7 +86,7 @@ module Fog
|
|
75
86
|
def self.data
|
76
87
|
@data ||= Hash.new do |hash, key|
|
77
88
|
hash[key] = {
|
78
|
-
:shares
|
89
|
+
:shares => [
|
79
90
|
{
|
80
91
|
"id" => "d94a8548-2079-4be0-b21c-0a887acd31ca",
|
81
92
|
"links" => [
|
@@ -105,7 +116,7 @@ module Fog
|
|
105
116
|
"name" => "Share1"
|
106
117
|
}
|
107
118
|
],
|
108
|
-
:shares_detail
|
119
|
+
:shares_detail => [
|
109
120
|
{
|
110
121
|
"links" => [
|
111
122
|
{
|
@@ -146,7 +157,7 @@ module Fog
|
|
146
157
|
"source_cgsnapshot_member_id" => ''
|
147
158
|
}
|
148
159
|
],
|
149
|
-
:share_networks
|
160
|
+
:share_networks => [
|
150
161
|
{
|
151
162
|
"id" => "32763294-e3d4-456a-998d-60047677c2fb",
|
152
163
|
"name" => "net_my1"
|
@@ -156,7 +167,7 @@ module Fog
|
|
156
167
|
"name" => "net_my"
|
157
168
|
}
|
158
169
|
],
|
159
|
-
:share_networks_detail
|
170
|
+
:share_networks_detail => [
|
160
171
|
{
|
161
172
|
"name" => "net_my1",
|
162
173
|
"segmentation_id" => '',
|
@@ -173,7 +184,7 @@ module Fog
|
|
173
184
|
"description" => "descr"
|
174
185
|
}
|
175
186
|
],
|
176
|
-
:snapshots
|
187
|
+
:snapshots => [
|
177
188
|
{
|
178
189
|
"id" => "086a1aa6-c425-4ecd-9612-391a3b1b9375",
|
179
190
|
"links" => [
|
@@ -189,6 +200,31 @@ module Fog
|
|
189
200
|
"name" => "snapshot_My_share"
|
190
201
|
}
|
191
202
|
],
|
203
|
+
:security_services_detail => [
|
204
|
+
{
|
205
|
+
"status" => "new",
|
206
|
+
"domain" => "",
|
207
|
+
"project_id" => "16e1ab15c35a457e9c2b2aa189f544e1",
|
208
|
+
"name" => "SecServ1",
|
209
|
+
"created_at" => "2015-09-07T12:19:10.000000",
|
210
|
+
"updated_at" => "",
|
211
|
+
"server" => "",
|
212
|
+
"dns_ip" => "10.0.0.0/24",
|
213
|
+
"user" => "demo",
|
214
|
+
"password" => "supersecret",
|
215
|
+
"type" => "kerberos",
|
216
|
+
"id" => "3c829734-0679-4c17-9637-801da48c0d5f",
|
217
|
+
"description" => "Creating my first Security Service"
|
218
|
+
}
|
219
|
+
],
|
220
|
+
:security_services => [
|
221
|
+
{
|
222
|
+
"status" => "new",
|
223
|
+
"type" => "ldap",
|
224
|
+
"id" => "5a1d3a12-34a7-4087-8983-50e9ed03509a",
|
225
|
+
"name" => "SecServ2"
|
226
|
+
}
|
227
|
+
],
|
192
228
|
:availability_zones => [
|
193
229
|
{
|
194
230
|
"name" => "nova",
|
@@ -220,7 +256,7 @@ module Fog
|
|
220
256
|
"size" => 1
|
221
257
|
}
|
222
258
|
],
|
223
|
-
:export_locations
|
259
|
+
:export_locations => [
|
224
260
|
{
|
225
261
|
"path" => "10.254.0.3:/shares/share-e1c2d35e-fe67-4028-ad7a-45f668732b1d",
|
226
262
|
"share_instance_id" => "e1c2d35e-fe67-4028-ad7a-45f668732b1d",
|
@@ -236,8 +272,7 @@ module Fog
|
|
236
272
|
"preferred" => false
|
237
273
|
}
|
238
274
|
],
|
239
|
-
|
240
|
-
:access_rules => [
|
275
|
+
:access_rules => [
|
241
276
|
{
|
242
277
|
"share_id" => "406ea93b-32e9-4907-a117-148b3945749f",
|
243
278
|
"created_at" => "2015-09-07T09:14:48.000000",
|
@@ -249,7 +284,7 @@ module Fog
|
|
249
284
|
"id" => "a25b2df3-90bd-4add-afa6-5f0dbbd50452"
|
250
285
|
}
|
251
286
|
],
|
252
|
-
:quota
|
287
|
+
:quota => {
|
253
288
|
"gigabytes" => 1000,
|
254
289
|
"shares" => 50,
|
255
290
|
"snapshot_gigabytes" => 1000,
|