misty 1.4.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +87 -88
- data/lib/misty.rb +115 -1
- data/lib/misty/auth/catalog.rb +38 -0
- data/lib/misty/auth/catalog/v2.rb +15 -0
- data/lib/misty/auth/catalog/v3.rb +15 -0
- data/lib/misty/auth/token.rb +70 -0
- data/lib/misty/auth/token/v2.rb +63 -0
- data/lib/misty/auth/token/v3.rb +90 -0
- data/lib/misty/cloud.rb +74 -15
- data/lib/misty/config.rb +37 -43
- data/lib/misty/errors.rb +25 -5
- data/lib/misty/helper.rb +26 -0
- data/lib/misty/http/header.rb +3 -6
- data/lib/misty/http/method_builder.rb +2 -2
- data/lib/misty/http/request.rb +3 -3
- data/lib/misty/microversion.rb +12 -1
- data/lib/misty/misty.rb +7 -62
- data/lib/misty/openstack.rb +39 -0
- data/lib/misty/openstack/{aodh → api/aodh}/aodh_v2.rb +1 -1
- data/lib/misty/openstack/api/aodh/v2.rb +19 -0
- data/lib/misty/openstack/api/barbican/barbican_v1.rb +42 -0
- data/lib/misty/openstack/api/barbican/v1.rb +19 -0
- data/lib/misty/openstack/api/blazar/blazar_v1.rb +16 -0
- data/lib/misty/openstack/api/blazar/v1.rb +19 -0
- data/lib/misty/openstack/{ceilometer → api/ceilometer}/ceilometer_v2.rb +1 -1
- data/lib/misty/openstack/api/ceilometer/v2.rb +19 -0
- data/lib/misty/openstack/{cinder → api/cinder}/cinder_v1.rb +1 -1
- data/lib/misty/openstack/{cinder → api/cinder}/cinder_v2.rb +3 -3
- data/lib/misty/openstack/{cinder → api/cinder}/cinder_v3.rb +7 -4
- data/lib/misty/openstack/api/cinder/v1.rb +23 -0
- data/lib/misty/openstack/api/cinder/v2.rb +24 -0
- data/lib/misty/openstack/api/cinder/v3.rb +29 -0
- data/lib/misty/openstack/{designate → api/designate}/designate_v2.rb +2 -2
- data/lib/misty/openstack/api/designate/v2.rb +19 -0
- data/lib/misty/openstack/{freezer → api/freezer}/freezer_v1.rb +2 -2
- data/lib/misty/openstack/api/freezer/v1.rb +19 -0
- data/lib/misty/openstack/{glance → api/glance}/glance_v1.rb +1 -1
- data/lib/misty/openstack/{glance → api/glance}/glance_v2.rb +1 -1
- data/lib/misty/openstack/api/glance/v1.rb +19 -0
- data/lib/misty/openstack/api/glance/v2.rb +24 -0
- data/lib/misty/openstack/api/gnocchi/gnocchi_v1.rb +39 -0
- data/lib/misty/openstack/api/gnocchi/v1.rb +19 -0
- data/lib/misty/openstack/{heat → api/heat}/heat_v1.rb +1 -1
- data/lib/misty/openstack/api/heat/v1.rb +23 -0
- data/lib/misty/openstack/{ironic → api/ironic}/ironic_v1.rb +8 -2
- data/lib/misty/openstack/api/ironic/v1.rb +25 -0
- data/lib/misty/openstack/{karbor → api/karbor}/karbor_v1.rb +2 -2
- data/lib/misty/openstack/api/karbor/v1.rb +19 -0
- data/lib/misty/openstack/{keystone → api/keystone}/keystone_v2_0.rb +1 -1
- data/lib/misty/openstack/api/keystone/keystone_v2_0_ext.rb +14 -0
- data/lib/misty/openstack/{keystone → api/keystone}/keystone_v3.rb +35 -3
- data/lib/misty/openstack/{keystone → api/keystone}/keystone_v3_ext.rb +7 -9
- data/lib/misty/openstack/api/keystone/v2_0.rb +23 -0
- data/lib/misty/openstack/api/keystone/v3.rb +23 -0
- data/lib/misty/openstack/{magnum → api/magnum}/magnum_v1.rb +2 -2
- data/lib/misty/openstack/api/magnum/v1.rb +21 -0
- data/lib/misty/openstack/{manila → api/manila}/manila_v2.rb +7 -3
- data/lib/misty/openstack/api/manila/v2.rb +25 -0
- data/lib/misty/openstack/api/masakari/masakari_v1_0.rb +22 -0
- data/lib/misty/openstack/api/masakari/v1_0.rb +19 -0
- data/lib/misty/openstack/api/mistral/mistral_v2.rb +44 -0
- data/lib/misty/openstack/api/mistral/v2.rb +19 -0
- data/lib/misty/openstack/api/monasca/monasca_v2_0.rb +28 -0
- data/lib/misty/openstack/api/monasca/v2_0.rb +19 -0
- data/lib/misty/openstack/{murano → api/murano}/murano_v1.rb +1 -1
- data/lib/misty/openstack/api/murano/v1.rb +19 -0
- data/lib/misty/openstack/{neutron → api/neutron}/neutron_v2_0.rb +11 -12
- data/lib/misty/openstack/api/neutron/v2_0.rb +19 -0
- data/lib/misty/openstack/{nova → api/nova}/nova_v2_1.rb +1 -2
- data/lib/misty/openstack/api/nova/v2_1.rb +33 -0
- data/lib/misty/openstack/{octavia → api/octavia}/octavia_v2_0.rb +4 -3
- data/lib/misty/openstack/api/octavia/v2_0.rb +19 -0
- data/lib/misty/openstack/api/panko/panko_v2.rb +14 -0
- data/lib/misty/openstack/api/panko/v2.rb +19 -0
- data/lib/misty/openstack/api/placement/placement_v2_1.rb +50 -0
- data/lib/misty/openstack/api/placement/v2_1.rb +21 -0
- data/lib/misty/openstack/{sahara → api/sahara}/sahara_v1_1.rb +2 -2
- data/lib/misty/openstack/api/sahara/v1_1.rb +19 -0
- data/lib/misty/openstack/{searchlight → api/searchlight}/searchlight_v1.rb +2 -2
- data/lib/misty/openstack/api/searchlight/v1.rb +19 -0
- data/lib/misty/openstack/{senlin → api/senlin}/senlin_v1.rb +2 -2
- data/lib/misty/openstack/api/senlin/v1.rb +19 -0
- data/lib/misty/openstack/{swift → api/swift}/swift_v1.rb +2 -2
- data/lib/misty/openstack/api/swift/v1.rb +34 -0
- data/lib/misty/openstack/{tacker → api/tacker}/tacker_v1_0.rb +2 -2
- data/lib/misty/openstack/api/tacker/v1_0.rb +19 -0
- data/lib/misty/openstack/{trove → api/trove}/trove_v1_0.rb +23 -8
- data/lib/misty/openstack/api/trove/v1_0.rb +19 -0
- data/lib/misty/openstack/api/watcher/v1.rb +19 -0
- data/lib/misty/openstack/api/watcher/watcher_v1.rb +38 -0
- data/lib/misty/openstack/api/zaqar/v2.rb +19 -0
- data/lib/misty/openstack/{zaqar → api/zaqar}/zaqar_v2.rb +2 -2
- data/lib/misty/openstack/api/zun/v1.rb +19 -0
- data/lib/misty/openstack/api/zun/zun_v1.rb +55 -0
- data/lib/misty/openstack/service.rb +18 -15
- data/lib/misty/openstack/service_pack.rb +18 -0
- data/lib/misty/service.rb +4 -6
- data/lib/misty/services.rb +11 -10
- data/lib/misty/version.rb +1 -1
- data/test/integration/compute_test.rb +2 -2
- data/test/integration/{networking_test.rb → network_test.rb} +10 -10
- data/test/integration/orchestration_test.rb +4 -4
- data/test/integration/vcr/{networking_using_neutron_v2_0.yml → network_using_neutron_v2_0.yml} +0 -0
- data/test/unit/auth/catalog_test.rb +99 -0
- data/test/unit/{auth_test.rb → auth/token_test.rb} +79 -45
- data/test/unit/cloud/config_test.rb +79 -41
- data/test/unit/cloud/requests_test.rb +6 -6
- data/test/unit/cloud/services_test.rb +23 -23
- data/test/unit/cloud_test.rb +10 -10
- data/test/unit/http/method_builder_test.rb +13 -23
- data/test/unit/http/request_test.rb +1 -1
- data/test/unit/microversion_test.rb +13 -16
- data/test/unit/misty_test.rb +51 -49
- data/test/unit/openstack/APIs_test.rb +5 -9
- data/test/unit/openstack/extension_test.rb +6 -6
- data/test/unit/openstack/service_test.rb +2 -10
- data/test/unit/service_helper.rb +3 -8
- data/test/unit/services_test.rb +5 -5
- metadata +91 -66
- data/lib/misty/auth.rb +0 -91
- data/lib/misty/auth/auth_v2.rb +0 -65
- data/lib/misty/auth/auth_v3.rb +0 -89
- data/lib/misty/autoload.rb +0 -99
- data/lib/misty/client_pack.rb +0 -16
- data/lib/misty/openstack/aodh/v2.rb +0 -17
- data/lib/misty/openstack/ceilometer/v2.rb +0 -17
- data/lib/misty/openstack/cinder/v1.rb +0 -21
- data/lib/misty/openstack/cinder/v2.rb +0 -22
- data/lib/misty/openstack/cinder/v3.rb +0 -31
- data/lib/misty/openstack/designate/v2.rb +0 -17
- data/lib/misty/openstack/freezer/v1.rb +0 -17
- data/lib/misty/openstack/glance/v1.rb +0 -17
- data/lib/misty/openstack/glance/v2.rb +0 -17
- data/lib/misty/openstack/heat/v1.rb +0 -21
- data/lib/misty/openstack/ironic/v1.rb +0 -27
- data/lib/misty/openstack/karbor/v1.rb +0 -17
- data/lib/misty/openstack/keystone/keystone_v2_0_ext.rb +0 -18
- data/lib/misty/openstack/keystone/v2_0.rb +0 -21
- data/lib/misty/openstack/keystone/v3.rb +0 -21
- data/lib/misty/openstack/magnum/v1.rb +0 -23
- data/lib/misty/openstack/manila/v2.rb +0 -27
- data/lib/misty/openstack/murano/v1.rb +0 -17
- data/lib/misty/openstack/neutron/v2_0.rb +0 -17
- data/lib/misty/openstack/nova/v2_1.rb +0 -42
- data/lib/misty/openstack/octavia/v2_0.rb +0 -17
- data/lib/misty/openstack/sahara/v1_1.rb +0 -17
- data/lib/misty/openstack/searchlight/v1.rb +0 -17
- data/lib/misty/openstack/senlin/v1.rb +0 -17
- data/lib/misty/openstack/swift/v1.rb +0 -32
- data/lib/misty/openstack/tacker/v1_0.rb +0 -17
- data/lib/misty/openstack/trove/v1_0.rb +0 -17
- data/lib/misty/openstack/zaqar/v2.rb +0 -17
@@ -1,6 +1,6 @@
|
|
1
|
-
module Misty::Openstack::KeystoneV3_ext
|
1
|
+
module Misty::Openstack::API::KeystoneV3_ext
|
2
2
|
def tag
|
3
|
-
'Identity API Reference v3.
|
3
|
+
'Identity API Reference v3.10'
|
4
4
|
end
|
5
5
|
|
6
6
|
def api_ext
|
@@ -88,14 +88,12 @@ module Misty::Openstack::KeystoneV3_ext
|
|
88
88
|
:PATCH=>[:update_identity_provider]},
|
89
89
|
"/v3/OS-FEDERATION/identity_providers"=>{:GET=>[:list_identity_providers]},
|
90
90
|
"/v3/OS-FEDERATION/identity_providers/{idp_id}/protocols/{protocol_id}"=>
|
91
|
-
{:PUT=>[:
|
92
|
-
:GET=>[:
|
93
|
-
:PATCH=>
|
94
|
-
|
95
|
-
:DELETE=>
|
96
|
-
[:delete_a_protocol_and_attribute_mapping_from_an_identity_provider]},
|
91
|
+
{:PUT=>[:add_protocol_to_identity_provider],
|
92
|
+
:GET=>[:get_protocol_for_identity_provider],
|
93
|
+
:PATCH=>[:update_attribute_mapping_for_identity_provider],
|
94
|
+
:DELETE=>[:delete_a_protocol_from_identity_provider]},
|
97
95
|
"/v3/OS-FEDERATION/identity_providers/{id}/protocols"=>
|
98
|
-
{:GET=>[:
|
96
|
+
{:GET=>[:list_protocols_of_identity_provider]},
|
99
97
|
"/v3/OS-FEDERATION/mappings/{id}"=>
|
100
98
|
{:PUT=>[:create_a_mapping],
|
101
99
|
:GET=>[:get_a_mapping],
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'misty/openstack/api/keystone/keystone_v2_0'
|
2
|
+
require 'misty/openstack/api/keystone/keystone_v2_0_ext'
|
3
|
+
require 'misty/openstack/service_pack'
|
4
|
+
require 'misty/openstack/extension'
|
5
|
+
|
6
|
+
module Misty
|
7
|
+
module Openstack
|
8
|
+
module API
|
9
|
+
module Keystone
|
10
|
+
class V2_0
|
11
|
+
include Misty::Openstack::API::KeystoneV2_0
|
12
|
+
include Misty::Openstack::API::KeystoneV2_0_ext
|
13
|
+
include Misty::Openstack::ServicePack
|
14
|
+
include Misty::Openstack::Extension
|
15
|
+
|
16
|
+
def service_types
|
17
|
+
%w(identity)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'misty/openstack/api/keystone/keystone_v3'
|
2
|
+
require 'misty/openstack/api/keystone/keystone_v3_ext'
|
3
|
+
require 'misty/openstack/service_pack'
|
4
|
+
require 'misty/openstack/extension'
|
5
|
+
|
6
|
+
module Misty
|
7
|
+
module Openstack
|
8
|
+
module API
|
9
|
+
module Keystone
|
10
|
+
class V3
|
11
|
+
include Misty::Openstack::API::KeystoneV3
|
12
|
+
include Misty::Openstack::API::KeystoneV3_ext
|
13
|
+
include Misty::Openstack::ServicePack
|
14
|
+
include Misty::Openstack::Extension
|
15
|
+
|
16
|
+
def service_types
|
17
|
+
%w(identity)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'misty/openstack/api/magnum/magnum_v1'
|
2
|
+
require 'misty/openstack/service_pack'
|
3
|
+
require 'misty/openstack/api/microversion'
|
4
|
+
|
5
|
+
module Misty
|
6
|
+
module Openstack
|
7
|
+
module API
|
8
|
+
module Magnum
|
9
|
+
class V1
|
10
|
+
include Misty::Openstack::API::MagnumV1
|
11
|
+
include Misty::Openstack::ServicePack
|
12
|
+
include Misty::HTTP::Microversion
|
13
|
+
|
14
|
+
def service_types
|
15
|
+
%w(container-infrastructure-management container-infrastructure)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
|
-
module Misty::Openstack::ManilaV2
|
1
|
+
module Misty::Openstack::API::ManilaV2
|
2
2
|
def tag
|
3
3
|
'Shared File Systems API Reference 6.0.0'
|
4
4
|
end
|
5
5
|
|
6
6
|
def api
|
7
7
|
{"/"=>{:GET=>[:list_all_major_versions]},
|
8
|
-
"/{api_version}"=>{:GET=>[:show_details_of_specific_api_version]},
|
8
|
+
"/{api_version}/"=>{:GET=>[:show_details_of_specific_api_version]},
|
9
9
|
"/v2/{tenant_id}/extensions"=>{:GET=>[:list_extensions]},
|
10
10
|
"/v2/{tenant_id}/limits"=>{:GET=>[:list_share_limits]},
|
11
11
|
"/v2/{tenant_id}/shares"=>{:GET=>[:list_shares], :POST=>[:create_share]},
|
@@ -98,6 +98,8 @@ module Misty::Openstack::ManilaV2
|
|
98
98
|
"/v2/{tenant_id}/types"=>
|
99
99
|
{:GET=>[:list_share_types], :POST=>[:create_share_type]},
|
100
100
|
"/v2/{tenant_id}/types/default"=>{:GET=>[:list_default_share_types]},
|
101
|
+
"/v2/{tenant_id}/types/{share_type_id}"=>
|
102
|
+
{:GET=>[:show_share_type_detail], :DELETE=>[:delete_share_type]},
|
101
103
|
"/v2/{tenant_id}/types/{share_type_id}/extra_specs"=>
|
102
104
|
{:GET=>[:list_extra_specs], :POST=>[:set_extra_spec_for_share_type]},
|
103
105
|
"/v2/{tenant_id}/types/{share_type_id}/share_type_access"=>
|
@@ -106,7 +108,6 @@ module Misty::Openstack::ManilaV2
|
|
106
108
|
{:DELETE=>[:unset_an_extra_spec]},
|
107
109
|
"/v2/{tenant_id}/types/{share_type_id}/action"=>
|
108
110
|
{:POST=>[:add_share_type_access, :remove_share_type_access]},
|
109
|
-
"/v2/{tenant_id}/types/{share_type_id}"=>{:DELETE=>[:delete_share_type]},
|
110
111
|
"/v2/{tenant_id}/scheduler-stats/pools?pool={pool_name}&host={host_name}&backend={backend_name}&capabilities={capabilities}&share_type={share_type}"=>
|
111
112
|
{:GET=>[:list_back_end_storage_pools]},
|
112
113
|
"/v2/{tenant_id}/scheduler-stats/pools/detail?pool={pool_name}&host={host_name}&backend={backend_name}&capabilities={capabilities}&share_type={share_type}"=>
|
@@ -126,6 +127,9 @@ module Misty::Openstack::ManilaV2
|
|
126
127
|
:DELETE=>[:delete_quota_set]},
|
127
128
|
"/v2/{tenant_id}/quota-sets/{tenant_id}/detail?user_id={user_id}"=>
|
128
129
|
{:GET=>[:show_quota_set_in_detail]},
|
130
|
+
"/v2/{tenant_id}/quota-class-sets/{quota_class_name}"=>
|
131
|
+
{:GET=>[:show_quota_classes_for_a_project],
|
132
|
+
:PUT=>[:update_quota_classes_for_a_project]},
|
129
133
|
"/v2/{tenant_id}/messages"=>{:GET=>[:list_user_messages]},
|
130
134
|
"/v2/{tenant_id}/messages/{message_id}"=>
|
131
135
|
{:GET=>[:show_user_message_details], :DELETE=>[:delete_message]},
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'misty/openstack/api/manila/manila_v2'
|
2
|
+
require 'misty/openstack/service_pack'
|
3
|
+
require 'misty/microversion'
|
4
|
+
|
5
|
+
module Misty
|
6
|
+
module Openstack
|
7
|
+
module API
|
8
|
+
module Manila
|
9
|
+
class V2
|
10
|
+
include Misty::Openstack::API::ManilaV2
|
11
|
+
include Misty::Openstack::ServicePack
|
12
|
+
include Misty::Microversion
|
13
|
+
|
14
|
+
def microversion_header(version)
|
15
|
+
{'X-Openstack-Manila-API-Version' => "#{version}"}
|
16
|
+
end
|
17
|
+
|
18
|
+
def service_types
|
19
|
+
%w(shared-file-system share sharev2)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Misty::Openstack::API::MasakariV1_0
|
2
|
+
def tag
|
3
|
+
'Masakari API Reference 5.0.0'
|
4
|
+
end
|
5
|
+
|
6
|
+
def api
|
7
|
+
{"/"=>{:GET=>[:list_all_major_versions]},
|
8
|
+
"/{api_version}/"=>{:GET=>[:show_details_of_specific_api_version]},
|
9
|
+
"/segments"=>{:GET=>[:list_failoversegments], :POST=>[:create_segment]},
|
10
|
+
"/segments/{segment_id}"=>
|
11
|
+
{:GET=>[:show_segment_details],
|
12
|
+
:PUT=>[:update_segment],
|
13
|
+
:DELETE=>[:delete_segment]},
|
14
|
+
"/segments/{segment_id}/hosts"=>{:GET=>[:list_hosts], :POST=>[:create_host]},
|
15
|
+
"/segments/{segment_id}/hosts/{host_id}"=>{:GET=>[:show_host_details]},
|
16
|
+
"/segments/{segment_id}hosts/{host_id}"=>
|
17
|
+
{:PUT=>[:update_host], :DELETE=>[:delete_host]},
|
18
|
+
"/notifications"=>
|
19
|
+
{:GET=>[:list_notifications], :POST=>[:create_notification]},
|
20
|
+
"/notifications/{notification_id}"=>{:GET=>[:show_notification_details]}}
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'misty/openstack/api/masakari/masakari_v1_0'
|
2
|
+
require 'misty/openstack/service_pack'
|
3
|
+
|
4
|
+
module Misty
|
5
|
+
module Openstack
|
6
|
+
module API
|
7
|
+
module Masakari
|
8
|
+
class V1_0
|
9
|
+
include Misty::Openstack::API::MasakariV1_0
|
10
|
+
include Misty::Openstack::ServicePack
|
11
|
+
|
12
|
+
def service_types
|
13
|
+
%w(instance-ha ha)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Misty::Openstack::API::MistralV2
|
2
|
+
def tag
|
3
|
+
'Web API'
|
4
|
+
end
|
5
|
+
|
6
|
+
def api
|
7
|
+
{"/v2/workbooks"=>
|
8
|
+
{:GET=>[:list_workbooks],
|
9
|
+
:PUT=>[:create_workbooks],
|
10
|
+
:POST=>[:create_workbooks],
|
11
|
+
:DELETE=>[:delete_workbooks]},
|
12
|
+
"/v2/workflows"=>
|
13
|
+
{:GET=>[:list_workflows],
|
14
|
+
:PUT=>[:create_workflows],
|
15
|
+
:POST=>[:create_workflows],
|
16
|
+
:DELETE=>[:delete_workflows]},
|
17
|
+
"/v2/actions"=>
|
18
|
+
{:GET=>[:list_actions],
|
19
|
+
:PUT=>[:create_actions],
|
20
|
+
:POST=>[:create_actions],
|
21
|
+
:DELETE=>[:delete_actions]},
|
22
|
+
"/v2/executions"=>
|
23
|
+
{:GET=>[:list_executions],
|
24
|
+
:PUT=>[:create_executions],
|
25
|
+
:POST=>[:create_executions],
|
26
|
+
:DELETE=>[:delete_executions]},
|
27
|
+
"/v2/tasks"=>{:GET=>[:list_tasks], :PUT=>[:create_tasks]},
|
28
|
+
"/v2/action_executions"=>
|
29
|
+
{:GET=>[:list_action_executions],
|
30
|
+
:PUT=>[:create_action_executions],
|
31
|
+
:POST=>[:create_action_executions],
|
32
|
+
:DELETE=>[:delete_action_executions]},
|
33
|
+
"/v2/cron_triggers"=>
|
34
|
+
{:GET=>[:list_cron_triggers],
|
35
|
+
:POST=>[:create_cron_triggers],
|
36
|
+
:DELETE=>[:delete_cron_triggers]},
|
37
|
+
"/v2/environments"=>
|
38
|
+
{:GET=>[:list_environments],
|
39
|
+
:PUT=>[:create_environments],
|
40
|
+
:POST=>[:create_environments],
|
41
|
+
:DELETE=>[:delete_environments]},
|
42
|
+
"/v2/services"=>{:GET=>[:list_services]}}
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'misty/openstack/api/mistral/mistral_v2'
|
2
|
+
require 'misty/openstack/service_pack'
|
3
|
+
|
4
|
+
module Misty
|
5
|
+
module Openstack
|
6
|
+
module API
|
7
|
+
module Mistral
|
8
|
+
class V2
|
9
|
+
include Misty::Openstack::API::MistralV2
|
10
|
+
include Misty::Openstack::ServicePack
|
11
|
+
|
12
|
+
def service_types
|
13
|
+
%w(workflow workflowv2)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Misty::Openstack::API::MonascaV2_0
|
2
|
+
def tag
|
3
|
+
'Monitoring API Manual v2.0'
|
4
|
+
end
|
5
|
+
|
6
|
+
def api
|
7
|
+
{"/"=>{:GET=>[:list_versions]},
|
8
|
+
"/{version_id}"=>{:GET=>[:get_version]},
|
9
|
+
"/v2.0/metrics"=>{:GET=>[:list_metrics]},
|
10
|
+
"/v2.0/metrics/dimensions/names/values"=>{:GET=>[:list_dimension_values]},
|
11
|
+
"/v2.0/metrics/dimensions/names"=>{:GET=>[:list_dimension_names]},
|
12
|
+
"/v2.0/metrics/measurements"=>{:GET=>[:list_measurements]},
|
13
|
+
"/v2.0/metrics/names"=>{:GET=>[:list_names]},
|
14
|
+
"/v2.0/metrics/statistics"=>{:GET=>[:list_statistics]},
|
15
|
+
"/v2.0/notification-methods"=>{:POST=>[:create_notification_method]},
|
16
|
+
"/v2.0/notification-methods/{notification_method_id}"=>
|
17
|
+
{:DELETE=>[:delete_notification_method]},
|
18
|
+
"/v2.0/notification-methods/types/"=>
|
19
|
+
{:GET=>[:list_supported_notification_method_types]},
|
20
|
+
"/v2.0/alarm-definitions"=>{:GET=>[:list_alarm_definitions]},
|
21
|
+
"/v2.0/alarm-definitions/{alarm_definition_id}"=>
|
22
|
+
{:DELETE=>[:delete_alarm_definition]},
|
23
|
+
"/v2.0/alarms"=>{:GET=>[:list_alarms]},
|
24
|
+
"/v2.0/alarms/state-history"=>{:GET=>[:list_alarms_state_history]},
|
25
|
+
"/v2.0/alarms/{alarm_id}"=>{:DELETE=>[:delete_alarm]},
|
26
|
+
"/v2.0/alarms/{alarm_id}/state-history"=>{:GET=>[:list_alarm_state_history]}}
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'misty/openstack/api/monasca/monasca_v2_0'
|
2
|
+
require 'misty/openstack/service_pack'
|
3
|
+
|
4
|
+
module Misty
|
5
|
+
module Openstack
|
6
|
+
module API
|
7
|
+
module Monasca
|
8
|
+
class V2_0
|
9
|
+
include Misty::Openstack::API::MonascaV2_0
|
10
|
+
include Misty::Openstack::ServicePack
|
11
|
+
|
12
|
+
def service_types
|
13
|
+
%w(monitoring)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'misty/openstack/api/murano/murano_v1'
|
2
|
+
require 'misty/openstack/service_pack'
|
3
|
+
|
4
|
+
module Misty
|
5
|
+
module Openstack
|
6
|
+
module API
|
7
|
+
module Murano
|
8
|
+
class V1
|
9
|
+
include Misty::Openstack::API::MuranoV1
|
10
|
+
include Misty::Openstack::ServicePack
|
11
|
+
|
12
|
+
def service_types
|
13
|
+
%w(application-catalog)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
module Misty::Openstack::NeutronV2_0
|
1
|
+
module Misty::Openstack::API::NeutronV2_0
|
2
2
|
def tag
|
3
|
-
'Networking API Reference 1.
|
3
|
+
'Networking API Reference 1.13.1'
|
4
4
|
end
|
5
5
|
|
6
6
|
def api
|
@@ -12,17 +12,8 @@ module Misty::Openstack::NeutronV2_0
|
|
12
12
|
{:GET=>[:show_network_details],
|
13
13
|
:PUT=>[:update_network],
|
14
14
|
:DELETE=>[:delete_network]},
|
15
|
-
"/v2.0/networks/{network_id}/dhcp-agents"=>
|
16
|
-
{:GET=>[:list_network_dhcp_agents]},
|
17
15
|
"/v2.0/networks"=>
|
18
16
|
{:GET=>[:list_networks], :POST=>[:create_network, :bulk_create_networks]},
|
19
|
-
"/v2.0/agents"=>{:GET=>[:list_agents]},
|
20
|
-
"/v2.0/agents/{agent_id}"=>{:GET=>[:show_agent]},
|
21
|
-
"/v2.0/agents/{agent_id}/dhcp-networks"=>
|
22
|
-
{:GET=>[:list_agent_dhcp_networks],
|
23
|
-
:POST=>[:create_agent_dhcp_network]},
|
24
|
-
"/v2.0/agents/{agent_id}/dhcp-networks/{network_id}"=>
|
25
|
-
{:DELETE=>[:delete_agent_dhcp_network]},
|
26
17
|
"/v2.0/ports/{port_id}"=>
|
27
18
|
{:GET=>[:show_port_details, :show_trunk_details],
|
28
19
|
:PUT=>[:update_port],
|
@@ -272,6 +263,14 @@ module Misty::Openstack::NeutronV2_0
|
|
272
263
|
"/v2.0/log/logs"=>{:GET=>[:list_logs], :POST=>[:create_log]},
|
273
264
|
"/v2.0/log/logs/{log_id}"=>
|
274
265
|
{:GET=>[:show_log], :PUT=>[:update_log], :DELETE=>[:delete_log]},
|
275
|
-
"/v2.0/log/loggable-resources"=>{:GET=>[:list_loggable_resources]}
|
266
|
+
"/v2.0/log/loggable-resources"=>{:GET=>[:list_loggable_resources]},
|
267
|
+
"/v2.0/agents"=>{:GET=>[:list_all_agents]},
|
268
|
+
"/v2.0/agents/{agent_id}"=>
|
269
|
+
{:GET=>[:show_agent_details],
|
270
|
+
:PUT=>[:update_agent],
|
271
|
+
:DELETE=>[:delete_agent]},
|
272
|
+
"/v2.0/auto-allocated-topology/{project_id}"=>
|
273
|
+
{:GET=>[:show_auto_allocated_topology_details],
|
274
|
+
:DELETE=>[:delete_the_auto_allocated_topology]}}
|
276
275
|
end
|
277
276
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'misty/openstack/api/neutron/neutron_v2_0'
|
2
|
+
require 'misty/openstack/service_pack'
|
3
|
+
|
4
|
+
module Misty
|
5
|
+
module Openstack
|
6
|
+
module API
|
7
|
+
module Neutron
|
8
|
+
class V2_0
|
9
|
+
include Misty::Openstack::API::NeutronV2_0
|
10
|
+
include Misty::Openstack::ServicePack
|
11
|
+
|
12
|
+
def service_types
|
13
|
+
%w(network)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module Misty::Openstack::NovaV2_1
|
1
|
+
module Misty::Openstack::API::NovaV2_1
|
2
2
|
def tag
|
3
3
|
'Compute API Reference 17.0.0'
|
4
4
|
end
|
@@ -152,7 +152,6 @@ module Misty::Openstack::NovaV2_1
|
|
152
152
|
"/os-instance_usage_audit_log"=>{:GET=>[:list_server_usage_audits]},
|
153
153
|
"/os-instance_usage_audit_log/{before_timestamp}"=>
|
154
154
|
{:GET=>[:list_usage_audits_before_specified_time]},
|
155
|
-
"/os-migrations"=>{:GET=>[:old_list_migrations]},
|
156
155
|
"/servers/{server_id}/migrations"=>{:GET=>[:list_migrations]},
|
157
156
|
"/servers/{server_id}/migrations/{migration_id}"=>
|
158
157
|
{:GET=>[:show_migration_details], :DELETE=>[:delete_abort_migration]},
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'misty/openstack/api/nova/nova_v2_1'
|
2
|
+
require 'misty/openstack/service_pack'
|
3
|
+
require 'misty/microversion'
|
4
|
+
|
5
|
+
module Misty
|
6
|
+
module Openstack
|
7
|
+
module API
|
8
|
+
module Nova
|
9
|
+
class V2_1
|
10
|
+
include Misty::Openstack::API::NovaV2_1
|
11
|
+
include Misty::Openstack::ServicePack
|
12
|
+
include Misty::Microversion
|
13
|
+
|
14
|
+
def self.show_details_of_specific_api_version(version)
|
15
|
+
http_get("/#{version}", headers)
|
16
|
+
end
|
17
|
+
|
18
|
+
def microversion_header(version)
|
19
|
+
if @version >= '2.27'
|
20
|
+
super
|
21
|
+
else
|
22
|
+
{'X-Openstack-Nova-API-Version' => "#{version}"}
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def service_types
|
27
|
+
%w(compute)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|