misty 1.4.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +87 -88
  3. data/lib/misty.rb +115 -1
  4. data/lib/misty/auth/catalog.rb +38 -0
  5. data/lib/misty/auth/catalog/v2.rb +15 -0
  6. data/lib/misty/auth/catalog/v3.rb +15 -0
  7. data/lib/misty/auth/token.rb +70 -0
  8. data/lib/misty/auth/token/v2.rb +63 -0
  9. data/lib/misty/auth/token/v3.rb +90 -0
  10. data/lib/misty/cloud.rb +74 -15
  11. data/lib/misty/config.rb +37 -43
  12. data/lib/misty/errors.rb +25 -5
  13. data/lib/misty/helper.rb +26 -0
  14. data/lib/misty/http/header.rb +3 -6
  15. data/lib/misty/http/method_builder.rb +2 -2
  16. data/lib/misty/http/request.rb +3 -3
  17. data/lib/misty/microversion.rb +12 -1
  18. data/lib/misty/misty.rb +7 -62
  19. data/lib/misty/openstack.rb +39 -0
  20. data/lib/misty/openstack/{aodh → api/aodh}/aodh_v2.rb +1 -1
  21. data/lib/misty/openstack/api/aodh/v2.rb +19 -0
  22. data/lib/misty/openstack/api/barbican/barbican_v1.rb +42 -0
  23. data/lib/misty/openstack/api/barbican/v1.rb +19 -0
  24. data/lib/misty/openstack/api/blazar/blazar_v1.rb +16 -0
  25. data/lib/misty/openstack/api/blazar/v1.rb +19 -0
  26. data/lib/misty/openstack/{ceilometer → api/ceilometer}/ceilometer_v2.rb +1 -1
  27. data/lib/misty/openstack/api/ceilometer/v2.rb +19 -0
  28. data/lib/misty/openstack/{cinder → api/cinder}/cinder_v1.rb +1 -1
  29. data/lib/misty/openstack/{cinder → api/cinder}/cinder_v2.rb +3 -3
  30. data/lib/misty/openstack/{cinder → api/cinder}/cinder_v3.rb +7 -4
  31. data/lib/misty/openstack/api/cinder/v1.rb +23 -0
  32. data/lib/misty/openstack/api/cinder/v2.rb +24 -0
  33. data/lib/misty/openstack/api/cinder/v3.rb +29 -0
  34. data/lib/misty/openstack/{designate → api/designate}/designate_v2.rb +2 -2
  35. data/lib/misty/openstack/api/designate/v2.rb +19 -0
  36. data/lib/misty/openstack/{freezer → api/freezer}/freezer_v1.rb +2 -2
  37. data/lib/misty/openstack/api/freezer/v1.rb +19 -0
  38. data/lib/misty/openstack/{glance → api/glance}/glance_v1.rb +1 -1
  39. data/lib/misty/openstack/{glance → api/glance}/glance_v2.rb +1 -1
  40. data/lib/misty/openstack/api/glance/v1.rb +19 -0
  41. data/lib/misty/openstack/api/glance/v2.rb +24 -0
  42. data/lib/misty/openstack/api/gnocchi/gnocchi_v1.rb +39 -0
  43. data/lib/misty/openstack/api/gnocchi/v1.rb +19 -0
  44. data/lib/misty/openstack/{heat → api/heat}/heat_v1.rb +1 -1
  45. data/lib/misty/openstack/api/heat/v1.rb +23 -0
  46. data/lib/misty/openstack/{ironic → api/ironic}/ironic_v1.rb +8 -2
  47. data/lib/misty/openstack/api/ironic/v1.rb +25 -0
  48. data/lib/misty/openstack/{karbor → api/karbor}/karbor_v1.rb +2 -2
  49. data/lib/misty/openstack/api/karbor/v1.rb +19 -0
  50. data/lib/misty/openstack/{keystone → api/keystone}/keystone_v2_0.rb +1 -1
  51. data/lib/misty/openstack/api/keystone/keystone_v2_0_ext.rb +14 -0
  52. data/lib/misty/openstack/{keystone → api/keystone}/keystone_v3.rb +35 -3
  53. data/lib/misty/openstack/{keystone → api/keystone}/keystone_v3_ext.rb +7 -9
  54. data/lib/misty/openstack/api/keystone/v2_0.rb +23 -0
  55. data/lib/misty/openstack/api/keystone/v3.rb +23 -0
  56. data/lib/misty/openstack/{magnum → api/magnum}/magnum_v1.rb +2 -2
  57. data/lib/misty/openstack/api/magnum/v1.rb +21 -0
  58. data/lib/misty/openstack/{manila → api/manila}/manila_v2.rb +7 -3
  59. data/lib/misty/openstack/api/manila/v2.rb +25 -0
  60. data/lib/misty/openstack/api/masakari/masakari_v1_0.rb +22 -0
  61. data/lib/misty/openstack/api/masakari/v1_0.rb +19 -0
  62. data/lib/misty/openstack/api/mistral/mistral_v2.rb +44 -0
  63. data/lib/misty/openstack/api/mistral/v2.rb +19 -0
  64. data/lib/misty/openstack/api/monasca/monasca_v2_0.rb +28 -0
  65. data/lib/misty/openstack/api/monasca/v2_0.rb +19 -0
  66. data/lib/misty/openstack/{murano → api/murano}/murano_v1.rb +1 -1
  67. data/lib/misty/openstack/api/murano/v1.rb +19 -0
  68. data/lib/misty/openstack/{neutron → api/neutron}/neutron_v2_0.rb +11 -12
  69. data/lib/misty/openstack/api/neutron/v2_0.rb +19 -0
  70. data/lib/misty/openstack/{nova → api/nova}/nova_v2_1.rb +1 -2
  71. data/lib/misty/openstack/api/nova/v2_1.rb +33 -0
  72. data/lib/misty/openstack/{octavia → api/octavia}/octavia_v2_0.rb +4 -3
  73. data/lib/misty/openstack/api/octavia/v2_0.rb +19 -0
  74. data/lib/misty/openstack/api/panko/panko_v2.rb +14 -0
  75. data/lib/misty/openstack/api/panko/v2.rb +19 -0
  76. data/lib/misty/openstack/api/placement/placement_v2_1.rb +50 -0
  77. data/lib/misty/openstack/api/placement/v2_1.rb +21 -0
  78. data/lib/misty/openstack/{sahara → api/sahara}/sahara_v1_1.rb +2 -2
  79. data/lib/misty/openstack/api/sahara/v1_1.rb +19 -0
  80. data/lib/misty/openstack/{searchlight → api/searchlight}/searchlight_v1.rb +2 -2
  81. data/lib/misty/openstack/api/searchlight/v1.rb +19 -0
  82. data/lib/misty/openstack/{senlin → api/senlin}/senlin_v1.rb +2 -2
  83. data/lib/misty/openstack/api/senlin/v1.rb +19 -0
  84. data/lib/misty/openstack/{swift → api/swift}/swift_v1.rb +2 -2
  85. data/lib/misty/openstack/api/swift/v1.rb +34 -0
  86. data/lib/misty/openstack/{tacker → api/tacker}/tacker_v1_0.rb +2 -2
  87. data/lib/misty/openstack/api/tacker/v1_0.rb +19 -0
  88. data/lib/misty/openstack/{trove → api/trove}/trove_v1_0.rb +23 -8
  89. data/lib/misty/openstack/api/trove/v1_0.rb +19 -0
  90. data/lib/misty/openstack/api/watcher/v1.rb +19 -0
  91. data/lib/misty/openstack/api/watcher/watcher_v1.rb +38 -0
  92. data/lib/misty/openstack/api/zaqar/v2.rb +19 -0
  93. data/lib/misty/openstack/{zaqar → api/zaqar}/zaqar_v2.rb +2 -2
  94. data/lib/misty/openstack/api/zun/v1.rb +19 -0
  95. data/lib/misty/openstack/api/zun/zun_v1.rb +55 -0
  96. data/lib/misty/openstack/service.rb +18 -15
  97. data/lib/misty/openstack/service_pack.rb +18 -0
  98. data/lib/misty/service.rb +4 -6
  99. data/lib/misty/services.rb +11 -10
  100. data/lib/misty/version.rb +1 -1
  101. data/test/integration/compute_test.rb +2 -2
  102. data/test/integration/{networking_test.rb → network_test.rb} +10 -10
  103. data/test/integration/orchestration_test.rb +4 -4
  104. data/test/integration/vcr/{networking_using_neutron_v2_0.yml → network_using_neutron_v2_0.yml} +0 -0
  105. data/test/unit/auth/catalog_test.rb +99 -0
  106. data/test/unit/{auth_test.rb → auth/token_test.rb} +79 -45
  107. data/test/unit/cloud/config_test.rb +79 -41
  108. data/test/unit/cloud/requests_test.rb +6 -6
  109. data/test/unit/cloud/services_test.rb +23 -23
  110. data/test/unit/cloud_test.rb +10 -10
  111. data/test/unit/http/method_builder_test.rb +13 -23
  112. data/test/unit/http/request_test.rb +1 -1
  113. data/test/unit/microversion_test.rb +13 -16
  114. data/test/unit/misty_test.rb +51 -49
  115. data/test/unit/openstack/APIs_test.rb +5 -9
  116. data/test/unit/openstack/extension_test.rb +6 -6
  117. data/test/unit/openstack/service_test.rb +2 -10
  118. data/test/unit/service_helper.rb +3 -8
  119. data/test/unit/services_test.rb +5 -5
  120. metadata +91 -66
  121. data/lib/misty/auth.rb +0 -91
  122. data/lib/misty/auth/auth_v2.rb +0 -65
  123. data/lib/misty/auth/auth_v3.rb +0 -89
  124. data/lib/misty/autoload.rb +0 -99
  125. data/lib/misty/client_pack.rb +0 -16
  126. data/lib/misty/openstack/aodh/v2.rb +0 -17
  127. data/lib/misty/openstack/ceilometer/v2.rb +0 -17
  128. data/lib/misty/openstack/cinder/v1.rb +0 -21
  129. data/lib/misty/openstack/cinder/v2.rb +0 -22
  130. data/lib/misty/openstack/cinder/v3.rb +0 -31
  131. data/lib/misty/openstack/designate/v2.rb +0 -17
  132. data/lib/misty/openstack/freezer/v1.rb +0 -17
  133. data/lib/misty/openstack/glance/v1.rb +0 -17
  134. data/lib/misty/openstack/glance/v2.rb +0 -17
  135. data/lib/misty/openstack/heat/v1.rb +0 -21
  136. data/lib/misty/openstack/ironic/v1.rb +0 -27
  137. data/lib/misty/openstack/karbor/v1.rb +0 -17
  138. data/lib/misty/openstack/keystone/keystone_v2_0_ext.rb +0 -18
  139. data/lib/misty/openstack/keystone/v2_0.rb +0 -21
  140. data/lib/misty/openstack/keystone/v3.rb +0 -21
  141. data/lib/misty/openstack/magnum/v1.rb +0 -23
  142. data/lib/misty/openstack/manila/v2.rb +0 -27
  143. data/lib/misty/openstack/murano/v1.rb +0 -17
  144. data/lib/misty/openstack/neutron/v2_0.rb +0 -17
  145. data/lib/misty/openstack/nova/v2_1.rb +0 -42
  146. data/lib/misty/openstack/octavia/v2_0.rb +0 -17
  147. data/lib/misty/openstack/sahara/v1_1.rb +0 -17
  148. data/lib/misty/openstack/searchlight/v1.rb +0 -17
  149. data/lib/misty/openstack/senlin/v1.rb +0 -17
  150. data/lib/misty/openstack/swift/v1.rb +0 -32
  151. data/lib/misty/openstack/tacker/v1_0.rb +0 -17
  152. data/lib/misty/openstack/trove/v1_0.rb +0 -17
  153. data/lib/misty/openstack/zaqar/v2.rb +0 -17
@@ -1,4 +1,4 @@
1
- module Misty::Openstack::OctaviaV2_0
1
+ module Misty::Openstack::API::OctaviaV2_0
2
2
  def tag
3
3
  'Octavia API Reference 2.0.0'
4
4
  end
@@ -59,8 +59,9 @@ module Misty::Openstack::OctaviaV2_0
59
59
  "/v2.0/lbaas/quotas/{project_id}"=>
60
60
  {:GET=>[:show_project_quota],
61
61
  :PUT=>[:update_a_quota],
62
- :DELETE=>[:remove_a_quota]},
62
+ :DELETE=>[:reset_a_quota]},
63
63
  "/v2.0/octavia/amphorae"=>{:GET=>[:list_amphora]},
64
- "/v2.0/octavia/amphorae/{amphora_id}"=>{:GET=>[:show_amphora_details]}}
64
+ "/v2.0/octavia/amphorae/{amphora_id}"=>{:GET=>[:show_amphora_details]},
65
+ "/v2.0/octavia/amphorae/{amphora_id}/failover"=>{:PUT=>[:failover_amphora]}}
65
66
  end
66
67
  end
@@ -0,0 +1,19 @@
1
+ require 'misty/openstack/api/octavia/octavia_v2_0'
2
+ require 'misty/openstack/service_pack'
3
+
4
+ module Misty
5
+ module Openstack
6
+ module API
7
+ module Octavia
8
+ class V2_0
9
+ include Misty::Openstack::API::OctaviaV2_0
10
+ include Misty::Openstack::ServicePack
11
+
12
+ def service_types
13
+ %w(load-balancer)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,14 @@
1
+ module Misty::Openstack::API::PankoV2
2
+ def tag
3
+ 'Event API Manual v2'
4
+ end
5
+
6
+ def api
7
+ {"/v2/capabilities"=>{:GET=>[:list_capabilities]},
8
+ "/v2/event_types"=>{:GET=>[:list_event_types]},
9
+ "/v2/event_types/{event_type}/traits"=>{:GET=>[:list_event_types_traits]},
10
+ "/v2/event_types/{event_type}/traits/{event_type}"=>{:GET=>[:list_traits]},
11
+ "/v2/events"=>{:GET=>[:list_events]},
12
+ "/v2/events/{message_id}"=>{:GET=>[:get_event]}}
13
+ end
14
+ end
@@ -0,0 +1,19 @@
1
+ require 'misty/openstack/api/panko/panko_v2'
2
+ require 'misty/openstack/service_pack'
3
+
4
+ module Misty
5
+ module Openstack
6
+ module API
7
+ module Panko
8
+ class V2
9
+ include Misty::Openstack::API::PankoV2
10
+ include Misty::Openstack::ServicePack
11
+
12
+ def service_types
13
+ %w(event events)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,50 @@
1
+ module Misty::Openstack::API::PlacementV2_1
2
+ def tag
3
+ 'Placement API Reference 17.0.0'
4
+ end
5
+
6
+ def api
7
+ {"/"=>{:GET=>[:list_versions]},
8
+ "/resource_providers"=>
9
+ {:GET=>[:list_resource_providers], :POST=>[:create_resource_provider]},
10
+ "/resource_providers/{uuid}"=>
11
+ {:GET=>[:show_resource_provider],
12
+ :PUT=>[:update_resource_provider],
13
+ :DELETE=>[:delete_resource_provider]},
14
+ "/resource_classes"=>
15
+ {:GET=>[:list_resource_classes], :POST=>[:create_resource_class]},
16
+ "/resource_classes/{name}"=>
17
+ {:GET=>[:show_resource_class],
18
+ :PUT=>
19
+ [:update_resource_class, :update_resource_class_microversions_1_2_1_6],
20
+ :DELETE=>[:delete_resource_class]},
21
+ "/resource_providers/{uuid}/inventories"=>
22
+ {:GET=>[:list_resource_provider_inventories],
23
+ :PUT=>[:update_resource_provider_inventories],
24
+ :DELETE=>[:delete_resource_provider_inventories]},
25
+ "/resource_providers/{uuid}/inventories/{resource_class}"=>
26
+ {:GET=>[:show_resource_provider_inventory],
27
+ :PUT=>[:update_resource_provider_inventory],
28
+ :DELETE=>[:delete_resource_provider_inventory]},
29
+ "/resource_providers/{uuid}/aggregates"=>
30
+ {:GET=>[:list_resource_provider_aggregates],
31
+ :PUT=>[:update_resource_provider_aggregates]},
32
+ "/traits"=>{:GET=>[:list_traits]},
33
+ "/traits/{name}"=>
34
+ {:GET=>[:show_traits], :PUT=>[:update_traits], :DELETE=>[:delete_traits]},
35
+ "/resource_providers/{uuid}/traits"=>
36
+ {:GET=>[:list_resource_provider_traits],
37
+ :PUT=>[:update_resource_provider_traits],
38
+ :DELETE=>[:delete_resource_provider_traits]},
39
+ "/allocations"=>{:POST=>[:manage_allocations]},
40
+ "/allocations/{consumer_uuid}"=>
41
+ {:GET=>[:list_allocations],
42
+ :PUT=>[:update_allocations],
43
+ :DELETE=>[:delete_allocations]},
44
+ "/resource_providers/{uuid}/allocations"=>
45
+ {:GET=>[:list_resource_provider_allocations]},
46
+ "/usages"=>{:GET=>[:list_usages]},
47
+ "/resource_providers/{uuid}/usages"=>{:GET=>[:list_resource_provider_usages]},
48
+ "/allocation_candidates"=>{:GET=>[:list_allocation_candidates]}}
49
+ end
50
+ end
@@ -0,0 +1,21 @@
1
+ require 'misty/openstack/api/placement/placement_v2_1'
2
+ require 'misty/openstack/service_pack'
3
+ require 'misty/microversion'
4
+
5
+ module Misty
6
+ module Openstack
7
+ module API
8
+ module Placement
9
+ class V2_1
10
+ include Misty::Openstack::API::PlacementV2_1
11
+ include Misty::Openstack::ServicePack
12
+ include Misty::Microversion
13
+
14
+ def service_types
15
+ %w(placement)
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,6 +1,6 @@
1
- module Misty::Openstack::SaharaV1_1
1
+ module Misty::Openstack::API::SaharaV1_1
2
2
  def tag
3
- 'Data Processing API Reference 8.0.0'
3
+ 'Data Processing API Reference 8.0.1'
4
4
  end
5
5
 
6
6
  def api
@@ -0,0 +1,19 @@
1
+ require 'misty/openstack/api/sahara/sahara_v1_1'
2
+ require 'misty/openstack/service_pack'
3
+
4
+ module Misty
5
+ module Openstack
6
+ module API
7
+ module Sahara
8
+ class V1_1
9
+ include Misty::Openstack::API::SaharaV1_1
10
+ include Misty::Openstack::ServicePack
11
+
12
+ def service_types
13
+ %w(data-processing)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,6 +1,6 @@
1
- module Misty::Openstack::SearchlightV1
1
+ module Misty::Openstack::API::SearchlightV1
2
2
  def tag
3
- 'Search Service API Reference 3.0.1'
3
+ 'Search Service API Reference 4.0.0'
4
4
  end
5
5
 
6
6
  def api
@@ -0,0 +1,19 @@
1
+ require 'misty/openstack/api/searchlight/searchlight_v1'
2
+ require 'misty/openstack/service_pack'
3
+
4
+ module Misty
5
+ module Openstack
6
+ module API
7
+ module Searchlight
8
+ class V1
9
+ include Misty::Openstack::API::SearchlightV1
10
+ include Misty::Openstack::ServicePack
11
+
12
+ def service_types
13
+ %w(search)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,6 +1,6 @@
1
- module Misty::Openstack::SenlinV1
1
+ module Misty::Openstack::API::SenlinV1
2
2
  def tag
3
- 'Clustering API Reference 4.0.1'
3
+ 'Clustering API Reference 5.0.1'
4
4
  end
5
5
 
6
6
  def api
@@ -0,0 +1,19 @@
1
+ require 'misty/openstack/api/senlin/senlin_v1'
2
+ require 'misty/openstack/service_pack'
3
+
4
+ module Misty
5
+ module Openstack
6
+ module API
7
+ module Senlin
8
+ class V1
9
+ include Misty::Openstack::API::SenlinV1
10
+ include Misty::Openstack::ServicePack
11
+
12
+ def service_types
13
+ %w(clustering resource-cluster cluster)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,6 +1,6 @@
1
- module Misty::Openstack::SwiftV1
1
+ module Misty::Openstack::API::SwiftV1
2
2
  def tag
3
- 'Object Storage API Reference 2.16.1'
3
+ 'Object Storage API Reference 2.17.1'
4
4
  end
5
5
 
6
6
  def api
@@ -0,0 +1,34 @@
1
+ require 'misty/openstack/api/swift/swift_v1'
2
+ require 'misty/openstack/service_pack'
3
+
4
+ module Misty
5
+ module Openstack
6
+ module API
7
+ module Swift
8
+ class V1
9
+ include Misty::Openstack::API::SwiftV1
10
+ include Misty::Openstack::ServicePack
11
+
12
+ def prefix_path_to_ignore
13
+ '/v1/{account}'
14
+ end
15
+
16
+ def service_types
17
+ %w(object-store)
18
+ end
19
+
20
+ # Custom requests
21
+ def requests_custom
22
+ [ :bulk_delete ]
23
+ end
24
+
25
+ def bulk_delete(data)
26
+ param = 'bulk-delete=1'
27
+ @request_headers.add('Content-Type' => 'text/plain')
28
+ create_update_or_delete_account_metadata(param, data)
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -1,6 +1,6 @@
1
- module Misty::Openstack::TackerV1_0
1
+ module Misty::Openstack::API::TackerV1_0
2
2
  def tag
3
- 'NFV Orchestration API Reference 0.8.1'
3
+ 'NFV Orchestration API Reference 0.9.1'
4
4
  end
5
5
 
6
6
  def api
@@ -0,0 +1,19 @@
1
+ require 'misty/openstack/api/tacker/tacker_v1_0'
2
+ require 'misty/openstack/service_pack'
3
+
4
+ module Misty
5
+ module Openstack
6
+ module API
7
+ module Tacker
8
+ class V1_0
9
+ include Misty::Openstack::API::TackerV1_0
10
+ include Misty::Openstack::ServicePack
11
+
12
+ def service_types
13
+ %w(nfv-orchestration)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,18 +1,19 @@
1
- module Misty::Openstack::TroveV1_0
1
+ module Misty::Openstack::API::TroveV1_0
2
2
  def tag
3
- 'Database API Reference 9.0.0'
3
+ 'Database API Reference 9.0.1'
4
4
  end
5
5
 
6
6
  def api
7
7
  {"/"=>{:GET=>[:list_versions]},
8
8
  "/v1.0"=>{:GET=>[:show_version_details]},
9
+ "/v1.0/{accountId}/instances"=>
10
+ {:GET=>[:list_database_instances], :POST=>[:create_database_instance]},
9
11
  "/v1.0/{accountId}/instances/{instanceId}"=>
10
- {:DELETE=>[:delete_database_instance],
11
- :GET=>[:show_database_instance_details],
12
+ {:GET=>[:show_database_instance_details],
12
13
  :PUT=>[:attach_configuration_group, :detach_configuration_group],
13
- :PATCH=>[:detach_replica]},
14
- "/v1.0/{accountId}/instances"=>
15
- {:POST=>[:create_database_instance], :GET=>[:list_database_instances]},
14
+ :PATCH=>
15
+ [:detach_replica, :update_instance_name, :upgrade_datastore_version],
16
+ :DELETE=>[:delete_database_instance]},
16
17
  "/v1.0/{accountId}/instances/{instanceId}/configuration"=>
17
18
  {:GET=>[:list_configuration_defaults]},
18
19
  "/v1.0/{accountId}/instances/{instanceId}/action"=>
@@ -22,6 +23,14 @@ module Misty::Openstack::TroveV1_0
22
23
  :resize_instance_volume,
23
24
  :promote_instance_to_replica_source,
24
25
  :delete_replication_base_instance]},
26
+ "/v1.0/{accountId}/instances/{instanceId}/log"=>
27
+ {:GET=>[:list_instance_logs],
28
+ :POST=>
29
+ [:show_instance_log_details,
30
+ :enable_instance_log,
31
+ :disable_instance_log,
32
+ :publish_instance_log,
33
+ :discard_instance_log]},
25
34
  "/v1.0/{accountId}/instances/{instanceId}/databases/{databaseName}"=>
26
35
  {:DELETE=>[:delete_database]},
27
36
  "/v1.0/{accountId}/instances/{instanceId}/databases"=>
@@ -50,6 +59,12 @@ module Misty::Openstack::TroveV1_0
50
59
  {:DELETE=>[:delete_configuration_group],
51
60
  :PATCH=>[:patch_configuration_group],
52
61
  :GET=>[:show_configuration_group_details],
53
- :PUT=>[:update_configuration_group]}}
62
+ :PUT=>[:update_configuration_group]},
63
+ "/v1.0/{accountId}/backups"=>
64
+ {:GET=>[:list_database_backups], :POST=>[:create_database_backup]},
65
+ "/v1.0/{accountId}/instances/{instanceId}/backups"=>
66
+ {:GET=>[:list_database_backups_for_an_instance]},
67
+ "/v1.0/{accountId}/backups/{backupId}"=>
68
+ {:GET=>[:show_database_backup_details], :DELETE=>[:delete_database_backup]}}
54
69
  end
55
70
  end
@@ -0,0 +1,19 @@
1
+ require 'misty/openstack/api/trove/trove_v1_0'
2
+ require 'misty/openstack/service_pack'
3
+
4
+ module Misty
5
+ module Openstack
6
+ module API
7
+ module Trove
8
+ class V1_0
9
+ include Misty::Openstack::API::TroveV1_0
10
+ include Misty::Openstack::ServicePack
11
+
12
+ def service_types
13
+ %w(database)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,19 @@
1
+ require 'misty/openstack/api/watcher/watcher_v1'
2
+ require 'misty/openstack/service_pack'
3
+
4
+ module Misty
5
+ module Openstack
6
+ module API
7
+ module Watcher
8
+ class V1
9
+ include Misty::Openstack::API::WatcherV1
10
+ include Misty::Openstack::ServicePack
11
+
12
+ def service_types
13
+ %w(resource-optimization infra-optim)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,38 @@
1
+ module Misty::Openstack::API::WatcherV1
2
+ def tag
3
+ 'Web API'
4
+ end
5
+
6
+ def api
7
+ {"/v1/goal"=>{:GET=>[:list_goal]},
8
+ "/v1/goal/{goal}"=>{:GET=>[:show_]},
9
+ "/v1/goal/detail"=>{:GET=>[:list_detail]},
10
+ "/v1/strategies"=>{:GET=>[:list_strategies]},
11
+ "/v1/strategies/{strategy}"=>{:GET=>[:show_]},
12
+ "/v1/strategies/detail"=>{:GET=>[:list_detail]},
13
+ "/v1/strategies/state"=>{:GET=>[:list_state]},
14
+ "/v1/audit_templates"=>
15
+ {:GET=>[:list_audit_templates],
16
+ :POST=>[:create_audit_templates],
17
+ :DELETE=>[:delete_audit_templates]},
18
+ "/v1/audit_templates/{audit_template}"=>{:GET=>[:show_]},
19
+ "/v1/audit_templates/detail"=>{:GET=>[:list_detail]},
20
+ "/v1/audits"=>
21
+ {:GET=>[:list_audits], :POST=>[:create_audits], :DELETE=>[:delete_audits]},
22
+ "/v1/audits/{audit}"=>{:GET=>[:show_]},
23
+ "/v1/audits/detail"=>{:GET=>[:list_detail]},
24
+ "/v1/action_plans"=>
25
+ {:GET=>[:list_action_plans], :DELETE=>[:delete_action_plans]},
26
+ "/v1/action_plans/{action_plan_uuid}"=>{:GET=>[:show_]},
27
+ "/v1/action_plans/detail"=>{:GET=>[:list_detail]},
28
+ "/v1/actions"=>
29
+ {:GET=>[:list_actions],
30
+ :POST=>[:create_actions],
31
+ :DELETE=>[:delete_actions]},
32
+ "/v1/actions/{action_uuid}"=>{:GET=>[:show_]},
33
+ "/v1/actions/detail"=>{:GET=>[:list_detail]},
34
+ "/v1/scoring_engine"=>{:GET=>[:list_scoring_engine]},
35
+ "/v1/scoring_engine/{scoring_engine}"=>{:GET=>[:show_]},
36
+ "/v1/scoring_engine/detail"=>{:GET=>[:list_detail]}}
37
+ end
38
+ end