fog-huaweicloud 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1129) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +13 -0
  3. data/.hound.yml +2 -0
  4. data/.rakeTasks +7 -0
  5. data/.rubocop.yml +110 -0
  6. data/.ruby-gemset +1 -0
  7. data/.travis.yml +32 -0
  8. data/CHANGELOG.md +47 -0
  9. data/CODE_OF_CONDUCT.md +49 -0
  10. data/CONTRIBUTING.md +18 -0
  11. data/Gemfile +4 -0
  12. data/LICENSE.md +20 -0
  13. data/README.md +1 -0
  14. data/bin/console +14 -0
  15. data/bin/setup +8 -0
  16. data/docker-compose.yml +44 -0
  17. data/fog-huaweicloud.gemspec +38 -0
  18. data/lib/fog/baremetal/huaweicloud/models/chassis.rb +49 -0
  19. data/lib/fog/baremetal/huaweicloud/models/chassis_collection.rb +44 -0
  20. data/lib/fog/baremetal/huaweicloud/models/driver.rb +24 -0
  21. data/lib/fog/baremetal/huaweicloud/models/drivers.rb +21 -0
  22. data/lib/fog/baremetal/huaweicloud/models/node.rb +96 -0
  23. data/lib/fog/baremetal/huaweicloud/models/nodes.rb +44 -0
  24. data/lib/fog/baremetal/huaweicloud/models/port.rb +50 -0
  25. data/lib/fog/baremetal/huaweicloud/models/ports.rb +44 -0
  26. data/lib/fog/baremetal/huaweicloud/requests/create_chassis.rb +44 -0
  27. data/lib/fog/baremetal/huaweicloud/requests/create_node.rb +54 -0
  28. data/lib/fog/baremetal/huaweicloud/requests/create_port.rb +46 -0
  29. data/lib/fog/baremetal/huaweicloud/requests/delete_chassis.rb +25 -0
  30. data/lib/fog/baremetal/huaweicloud/requests/delete_node.rb +25 -0
  31. data/lib/fog/baremetal/huaweicloud/requests/delete_port.rb +25 -0
  32. data/lib/fog/baremetal/huaweicloud/requests/get_chassis.rb +24 -0
  33. data/lib/fog/baremetal/huaweicloud/requests/get_driver.rb +24 -0
  34. data/lib/fog/baremetal/huaweicloud/requests/get_driver_properties.rb +40 -0
  35. data/lib/fog/baremetal/huaweicloud/requests/get_node.rb +24 -0
  36. data/lib/fog/baremetal/huaweicloud/requests/get_port.rb +24 -0
  37. data/lib/fog/baremetal/huaweicloud/requests/list_chassis.rb +42 -0
  38. data/lib/fog/baremetal/huaweicloud/requests/list_chassis_detailed.rb +25 -0
  39. data/lib/fog/baremetal/huaweicloud/requests/list_drivers.rb +25 -0
  40. data/lib/fog/baremetal/huaweicloud/requests/list_nodes.rb +34 -0
  41. data/lib/fog/baremetal/huaweicloud/requests/list_nodes_detailed.rb +25 -0
  42. data/lib/fog/baremetal/huaweicloud/requests/list_ports.rb +42 -0
  43. data/lib/fog/baremetal/huaweicloud/requests/list_ports_detailed.rb +25 -0
  44. data/lib/fog/baremetal/huaweicloud/requests/patch_chassis.rb +41 -0
  45. data/lib/fog/baremetal/huaweicloud/requests/patch_node.rb +41 -0
  46. data/lib/fog/baremetal/huaweicloud/requests/patch_port.rb +41 -0
  47. data/lib/fog/baremetal/huaweicloud/requests/set_node_maintenance.rb +30 -0
  48. data/lib/fog/baremetal/huaweicloud/requests/set_node_power_state.rb +35 -0
  49. data/lib/fog/baremetal/huaweicloud/requests/set_node_provision_state.rb +38 -0
  50. data/lib/fog/baremetal/huaweicloud/requests/unset_node_maintenance.rb +30 -0
  51. data/lib/fog/baremetal/huaweicloud.rb +284 -0
  52. data/lib/fog/compute/huaweicloud/models/address.rb +67 -0
  53. data/lib/fog/compute/huaweicloud/models/addresses.rb +28 -0
  54. data/lib/fog/compute/huaweicloud/models/aggregate.rb +59 -0
  55. data/lib/fog/compute/huaweicloud/models/aggregates.rb +26 -0
  56. data/lib/fog/compute/huaweicloud/models/availability_zone.rb +19 -0
  57. data/lib/fog/compute/huaweicloud/models/availability_zones.rb +22 -0
  58. data/lib/fog/compute/huaweicloud/models/flavor.rb +64 -0
  59. data/lib/fog/compute/huaweicloud/models/flavors.rb +29 -0
  60. data/lib/fog/compute/huaweicloud/models/host.rb +28 -0
  61. data/lib/fog/compute/huaweicloud/models/hosts.rb +26 -0
  62. data/lib/fog/compute/huaweicloud/models/image.rb +47 -0
  63. data/lib/fog/compute/huaweicloud/models/images.rb +38 -0
  64. data/lib/fog/compute/huaweicloud/models/key_pair.rb +56 -0
  65. data/lib/fog/compute/huaweicloud/models/key_pairs.rb +29 -0
  66. data/lib/fog/compute/huaweicloud/models/metadata.rb +65 -0
  67. data/lib/fog/compute/huaweicloud/models/metadatum.rb +27 -0
  68. data/lib/fog/compute/huaweicloud/models/network.rb +13 -0
  69. data/lib/fog/compute/huaweicloud/models/networks.rb +30 -0
  70. data/lib/fog/compute/huaweicloud/models/os_interface.rb +15 -0
  71. data/lib/fog/compute/huaweicloud/models/os_interfaces.rb +28 -0
  72. data/lib/fog/compute/huaweicloud/models/security_group.rb +57 -0
  73. data/lib/fog/compute/huaweicloud/models/security_group_rule.rb +32 -0
  74. data/lib/fog/compute/huaweicloud/models/security_group_rules.rb +21 -0
  75. data/lib/fog/compute/huaweicloud/models/security_groups.rb +24 -0
  76. data/lib/fog/compute/huaweicloud/models/server.rb +410 -0
  77. data/lib/fog/compute/huaweicloud/models/server_group.rb +22 -0
  78. data/lib/fog/compute/huaweicloud/models/server_groups.rb +28 -0
  79. data/lib/fog/compute/huaweicloud/models/servers.rb +59 -0
  80. data/lib/fog/compute/huaweicloud/models/service.rb +42 -0
  81. data/lib/fog/compute/huaweicloud/models/services.rb +35 -0
  82. data/lib/fog/compute/huaweicloud/models/snapshot.rb +32 -0
  83. data/lib/fog/compute/huaweicloud/models/snapshots.rb +37 -0
  84. data/lib/fog/compute/huaweicloud/models/tenant.rb +24 -0
  85. data/lib/fog/compute/huaweicloud/models/tenants.rb +24 -0
  86. data/lib/fog/compute/huaweicloud/models/volume.rb +52 -0
  87. data/lib/fog/compute/huaweicloud/models/volume_attachment.rb +15 -0
  88. data/lib/fog/compute/huaweicloud/models/volume_attachments.rb +20 -0
  89. data/lib/fog/compute/huaweicloud/models/volumes.rb +37 -0
  90. data/lib/fog/compute/huaweicloud/requests/add_aggregate_host.rb +30 -0
  91. data/lib/fog/compute/huaweicloud/requests/add_fixed_ip.rb +29 -0
  92. data/lib/fog/compute/huaweicloud/requests/add_flavor_access.rb +29 -0
  93. data/lib/fog/compute/huaweicloud/requests/add_security_group.rb +20 -0
  94. data/lib/fog/compute/huaweicloud/requests/allocate_address.rb +39 -0
  95. data/lib/fog/compute/huaweicloud/requests/associate_address.rb +30 -0
  96. data/lib/fog/compute/huaweicloud/requests/attach_volume.rb +39 -0
  97. data/lib/fog/compute/huaweicloud/requests/boot_from_snapshot.rb +41 -0
  98. data/lib/fog/compute/huaweicloud/requests/change_server_password.rb +20 -0
  99. data/lib/fog/compute/huaweicloud/requests/confirm_resize_server.rb +20 -0
  100. data/lib/fog/compute/huaweicloud/requests/create_aggregate.rb +42 -0
  101. data/lib/fog/compute/huaweicloud/requests/create_flavor.rb +85 -0
  102. data/lib/fog/compute/huaweicloud/requests/create_flavor_metadata.rb +37 -0
  103. data/lib/fog/compute/huaweicloud/requests/create_image.rb +44 -0
  104. data/lib/fog/compute/huaweicloud/requests/create_key_pair.rb +48 -0
  105. data/lib/fog/compute/huaweicloud/requests/create_os_interface.rb +42 -0
  106. data/lib/fog/compute/huaweicloud/requests/create_security_group.rb +51 -0
  107. data/lib/fog/compute/huaweicloud/requests/create_security_group_rule.rb +57 -0
  108. data/lib/fog/compute/huaweicloud/requests/create_server.rb +187 -0
  109. data/lib/fog/compute/huaweicloud/requests/create_server_group.rb +31 -0
  110. data/lib/fog/compute/huaweicloud/requests/create_snapshot.rb +51 -0
  111. data/lib/fog/compute/huaweicloud/requests/create_volume.rb +58 -0
  112. data/lib/fog/compute/huaweicloud/requests/delete_aggregate.rb +28 -0
  113. data/lib/fog/compute/huaweicloud/requests/delete_flavor.rb +28 -0
  114. data/lib/fog/compute/huaweicloud/requests/delete_flavor_metadata.rb +30 -0
  115. data/lib/fog/compute/huaweicloud/requests/delete_image.rb +36 -0
  116. data/lib/fog/compute/huaweicloud/requests/delete_key_pair.rb +31 -0
  117. data/lib/fog/compute/huaweicloud/requests/delete_meta.rb +35 -0
  118. data/lib/fog/compute/huaweicloud/requests/delete_metadata.rb +23 -0
  119. data/lib/fog/compute/huaweicloud/requests/delete_os_interface.rb +24 -0
  120. data/lib/fog/compute/huaweicloud/requests/delete_security_group.rb +31 -0
  121. data/lib/fog/compute/huaweicloud/requests/delete_security_group_rule.rb +31 -0
  122. data/lib/fog/compute/huaweicloud/requests/delete_server.rb +40 -0
  123. data/lib/fog/compute/huaweicloud/requests/delete_server_group.rb +28 -0
  124. data/lib/fog/compute/huaweicloud/requests/delete_service.rb +32 -0
  125. data/lib/fog/compute/huaweicloud/requests/delete_snapshot.rb +28 -0
  126. data/lib/fog/compute/huaweicloud/requests/delete_volume.rb +28 -0
  127. data/lib/fog/compute/huaweicloud/requests/detach_volume.rb +29 -0
  128. data/lib/fog/compute/huaweicloud/requests/disable_service.rb +37 -0
  129. data/lib/fog/compute/huaweicloud/requests/disable_service_log_reason.rb +38 -0
  130. data/lib/fog/compute/huaweicloud/requests/disassociate_address.rb +25 -0
  131. data/lib/fog/compute/huaweicloud/requests/enable_service.rb +37 -0
  132. data/lib/fog/compute/huaweicloud/requests/evacuate_server.rb +26 -0
  133. data/lib/fog/compute/huaweicloud/requests/get_address.rb +38 -0
  134. data/lib/fog/compute/huaweicloud/requests/get_aggregate.rb +25 -0
  135. data/lib/fog/compute/huaweicloud/requests/get_console_output.rb +24 -0
  136. data/lib/fog/compute/huaweicloud/requests/get_flavor_details.rb +39 -0
  137. data/lib/fog/compute/huaweicloud/requests/get_flavor_metadata.rb +26 -0
  138. data/lib/fog/compute/huaweicloud/requests/get_host_details.rb +60 -0
  139. data/lib/fog/compute/huaweicloud/requests/get_hypervisor.rb +64 -0
  140. data/lib/fog/compute/huaweicloud/requests/get_hypervisor_statistics.rb +39 -0
  141. data/lib/fog/compute/huaweicloud/requests/get_image_details.rb +29 -0
  142. data/lib/fog/compute/huaweicloud/requests/get_key_pair.rb +50 -0
  143. data/lib/fog/compute/huaweicloud/requests/get_limits.rb +94 -0
  144. data/lib/fog/compute/huaweicloud/requests/get_metadata.rb +24 -0
  145. data/lib/fog/compute/huaweicloud/requests/get_os_interface.rb +24 -0
  146. data/lib/fog/compute/huaweicloud/requests/get_quota.rb +26 -0
  147. data/lib/fog/compute/huaweicloud/requests/get_quota_defaults.rb +26 -0
  148. data/lib/fog/compute/huaweicloud/requests/get_security_group.rb +37 -0
  149. data/lib/fog/compute/huaweicloud/requests/get_security_group_rule.rb +38 -0
  150. data/lib/fog/compute/huaweicloud/requests/get_server_details.rb +29 -0
  151. data/lib/fog/compute/huaweicloud/requests/get_server_group.rb +38 -0
  152. data/lib/fog/compute/huaweicloud/requests/get_server_password.rb +29 -0
  153. data/lib/fog/compute/huaweicloud/requests/get_server_volumes.rb +27 -0
  154. data/lib/fog/compute/huaweicloud/requests/get_snapshot_details.rb +30 -0
  155. data/lib/fog/compute/huaweicloud/requests/get_usage.rb +48 -0
  156. data/lib/fog/compute/huaweicloud/requests/get_vnc_console.rb +49 -0
  157. data/lib/fog/compute/huaweicloud/requests/get_volume_details.rb +32 -0
  158. data/lib/fog/compute/huaweicloud/requests/list_address_pools.rb +28 -0
  159. data/lib/fog/compute/huaweicloud/requests/list_addresses.rb +29 -0
  160. data/lib/fog/compute/huaweicloud/requests/list_aggregates.rb +37 -0
  161. data/lib/fog/compute/huaweicloud/requests/list_all_addresses.rb +62 -0
  162. data/lib/fog/compute/huaweicloud/requests/list_availability_zones.rb +23 -0
  163. data/lib/fog/compute/huaweicloud/requests/list_flavors.rb +35 -0
  164. data/lib/fog/compute/huaweicloud/requests/list_flavors_detail.rb +35 -0
  165. data/lib/fog/compute/huaweicloud/requests/list_hosts.rb +27 -0
  166. data/lib/fog/compute/huaweicloud/requests/list_hypervisor_servers.rb +42 -0
  167. data/lib/fog/compute/huaweicloud/requests/list_hypervisors.rb +27 -0
  168. data/lib/fog/compute/huaweicloud/requests/list_hypervisors_detail.rb +71 -0
  169. data/lib/fog/compute/huaweicloud/requests/list_images.rb +29 -0
  170. data/lib/fog/compute/huaweicloud/requests/list_images_detail.rb +36 -0
  171. data/lib/fog/compute/huaweicloud/requests/list_key_pairs.rb +39 -0
  172. data/lib/fog/compute/huaweicloud/requests/list_metadata.rb +24 -0
  173. data/lib/fog/compute/huaweicloud/requests/list_os_interfaces.rb +24 -0
  174. data/lib/fog/compute/huaweicloud/requests/list_private_addresses.rb +29 -0
  175. data/lib/fog/compute/huaweicloud/requests/list_public_addresses.rb +29 -0
  176. data/lib/fog/compute/huaweicloud/requests/list_security_groups.rb +67 -0
  177. data/lib/fog/compute/huaweicloud/requests/list_server_groups.rb +28 -0
  178. data/lib/fog/compute/huaweicloud/requests/list_servers.rb +36 -0
  179. data/lib/fog/compute/huaweicloud/requests/list_servers_detail.rb +43 -0
  180. data/lib/fog/compute/huaweicloud/requests/list_services.rb +66 -0
  181. data/lib/fog/compute/huaweicloud/requests/list_snapshots.rb +40 -0
  182. data/lib/fog/compute/huaweicloud/requests/list_snapshots_detail.rb +26 -0
  183. data/lib/fog/compute/huaweicloud/requests/list_tenants.rb +43 -0
  184. data/lib/fog/compute/huaweicloud/requests/list_tenants_with_flavor_access.rb +26 -0
  185. data/lib/fog/compute/huaweicloud/requests/list_usages.rb +38 -0
  186. data/lib/fog/compute/huaweicloud/requests/list_volume_attachments.rb +31 -0
  187. data/lib/fog/compute/huaweicloud/requests/list_volumes.rb +39 -0
  188. data/lib/fog/compute/huaweicloud/requests/list_volumes_detail.rb +25 -0
  189. data/lib/fog/compute/huaweicloud/requests/list_zones.rb +33 -0
  190. data/lib/fog/compute/huaweicloud/requests/list_zones_detailed.rb +68 -0
  191. data/lib/fog/compute/huaweicloud/requests/live_migrate_server.rb +26 -0
  192. data/lib/fog/compute/huaweicloud/requests/migrate_server.rb +20 -0
  193. data/lib/fog/compute/huaweicloud/requests/pause_server.rb +24 -0
  194. data/lib/fog/compute/huaweicloud/requests/reboot_server.rb +20 -0
  195. data/lib/fog/compute/huaweicloud/requests/rebuild_server.rb +34 -0
  196. data/lib/fog/compute/huaweicloud/requests/release_address.rb +29 -0
  197. data/lib/fog/compute/huaweicloud/requests/remote_consoles.rb +54 -0
  198. data/lib/fog/compute/huaweicloud/requests/remove_aggregate_host.rb +30 -0
  199. data/lib/fog/compute/huaweicloud/requests/remove_fixed_ip.rb +29 -0
  200. data/lib/fog/compute/huaweicloud/requests/remove_flavor_access.rb +29 -0
  201. data/lib/fog/compute/huaweicloud/requests/remove_security_group.rb +20 -0
  202. data/lib/fog/compute/huaweicloud/requests/rescue_server.rb +24 -0
  203. data/lib/fog/compute/huaweicloud/requests/reset_server_state.rb +20 -0
  204. data/lib/fog/compute/huaweicloud/requests/resize_server.rb +20 -0
  205. data/lib/fog/compute/huaweicloud/requests/resume_server.rb +24 -0
  206. data/lib/fog/compute/huaweicloud/requests/revert_resize_server.rb +26 -0
  207. data/lib/fog/compute/huaweicloud/requests/server_action.rb +16 -0
  208. data/lib/fog/compute/huaweicloud/requests/server_actions.rb +38 -0
  209. data/lib/fog/compute/huaweicloud/requests/server_diagnostics.rb +25 -0
  210. data/lib/fog/compute/huaweicloud/requests/set_metadata.rb +37 -0
  211. data/lib/fog/compute/huaweicloud/requests/set_tenant.rb +19 -0
  212. data/lib/fog/compute/huaweicloud/requests/shelve_offload_server.rb +24 -0
  213. data/lib/fog/compute/huaweicloud/requests/shelve_server.rb +24 -0
  214. data/lib/fog/compute/huaweicloud/requests/start_server.rb +24 -0
  215. data/lib/fog/compute/huaweicloud/requests/stop_server.rb +24 -0
  216. data/lib/fog/compute/huaweicloud/requests/suspend_server.rb +24 -0
  217. data/lib/fog/compute/huaweicloud/requests/unpause_server.rb +24 -0
  218. data/lib/fog/compute/huaweicloud/requests/unshelve_server.rb +24 -0
  219. data/lib/fog/compute/huaweicloud/requests/update_aggregate.rb +37 -0
  220. data/lib/fog/compute/huaweicloud/requests/update_aggregate_metadata.rb +30 -0
  221. data/lib/fog/compute/huaweicloud/requests/update_flavor_metadata.rb +33 -0
  222. data/lib/fog/compute/huaweicloud/requests/update_meta.rb +38 -0
  223. data/lib/fog/compute/huaweicloud/requests/update_metadata.rb +38 -0
  224. data/lib/fog/compute/huaweicloud/requests/update_quota.rb +27 -0
  225. data/lib/fog/compute/huaweicloud/requests/update_server.rb +32 -0
  226. data/lib/fog/compute/huaweicloud.rb +413 -0
  227. data/lib/fog/container_infra/huaweicloud/models/base.rb +19 -0
  228. data/lib/fog/container_infra/huaweicloud/models/bay.rb +56 -0
  229. data/lib/fog/container_infra/huaweicloud/models/bay_model.rb +62 -0
  230. data/lib/fog/container_infra/huaweicloud/models/bay_models.rb +23 -0
  231. data/lib/fog/container_infra/huaweicloud/models/bays.rb +23 -0
  232. data/lib/fog/container_infra/huaweicloud/models/certificate.rb +20 -0
  233. data/lib/fog/container_infra/huaweicloud/models/certificates.rb +25 -0
  234. data/lib/fog/container_infra/huaweicloud/models/cluster.rb +56 -0
  235. data/lib/fog/container_infra/huaweicloud/models/cluster_template.rb +61 -0
  236. data/lib/fog/container_infra/huaweicloud/models/cluster_templates.rb +24 -0
  237. data/lib/fog/container_infra/huaweicloud/models/clusters.rb +24 -0
  238. data/lib/fog/container_infra/huaweicloud/requests/create_bay.rb +27 -0
  239. data/lib/fog/container_infra/huaweicloud/requests/create_bay_model.rb +56 -0
  240. data/lib/fog/container_infra/huaweicloud/requests/create_certificate.rb +29 -0
  241. data/lib/fog/container_infra/huaweicloud/requests/create_cluster.rb +27 -0
  242. data/lib/fog/container_infra/huaweicloud/requests/create_cluster_template.rb +56 -0
  243. data/lib/fog/container_infra/huaweicloud/requests/delete_bay.rb +24 -0
  244. data/lib/fog/container_infra/huaweicloud/requests/delete_bay_model.rb +24 -0
  245. data/lib/fog/container_infra/huaweicloud/requests/delete_cluster.rb +24 -0
  246. data/lib/fog/container_infra/huaweicloud/requests/delete_cluster_template.rb +24 -0
  247. data/lib/fog/container_infra/huaweicloud/requests/get_bay.rb +51 -0
  248. data/lib/fog/container_infra/huaweicloud/requests/get_bay_model.rb +55 -0
  249. data/lib/fog/container_infra/huaweicloud/requests/get_certificate.rb +27 -0
  250. data/lib/fog/container_infra/huaweicloud/requests/get_cluster.rb +41 -0
  251. data/lib/fog/container_infra/huaweicloud/requests/get_cluster_template.rb +55 -0
  252. data/lib/fog/container_infra/huaweicloud/requests/list_bay_models.rb +69 -0
  253. data/lib/fog/container_infra/huaweicloud/requests/list_bays.rb +55 -0
  254. data/lib/fog/container_infra/huaweicloud/requests/list_cluster_templates.rb +59 -0
  255. data/lib/fog/container_infra/huaweicloud/requests/list_clusters.rb +37 -0
  256. data/lib/fog/container_infra/huaweicloud/requests/update_bay.rb +27 -0
  257. data/lib/fog/container_infra/huaweicloud/requests/update_bay_model.rb +56 -0
  258. data/lib/fog/container_infra/huaweicloud/requests/update_cluster.rb +27 -0
  259. data/lib/fog/container_infra/huaweicloud/requests/update_cluster_template.rb +56 -0
  260. data/lib/fog/container_infra/huaweicloud.rb +163 -0
  261. data/lib/fog/dns/huaweicloud/v1/requests/get_quota.rb +26 -0
  262. data/lib/fog/dns/huaweicloud/v1/requests/list_domains.rb +27 -0
  263. data/lib/fog/dns/huaweicloud/v1/requests/update_quota.rb +31 -0
  264. data/lib/fog/dns/huaweicloud/v1.rb +128 -0
  265. data/lib/fog/dns/huaweicloud/v2/models/pool.rb +21 -0
  266. data/lib/fog/dns/huaweicloud/v2/models/pools.rb +25 -0
  267. data/lib/fog/dns/huaweicloud/v2/models/recordset.rb +55 -0
  268. data/lib/fog/dns/huaweicloud/v2/models/recordsets.rb +30 -0
  269. data/lib/fog/dns/huaweicloud/v2/models/zone.rb +50 -0
  270. data/lib/fog/dns/huaweicloud/v2/models/zone_transfer_accept.rb +29 -0
  271. data/lib/fog/dns/huaweicloud/v2/models/zone_transfer_accepts.rb +25 -0
  272. data/lib/fog/dns/huaweicloud/v2/models/zone_transfer_request.rb +50 -0
  273. data/lib/fog/dns/huaweicloud/v2/models/zone_transfer_requests.rb +30 -0
  274. data/lib/fog/dns/huaweicloud/v2/models/zones.rb +30 -0
  275. data/lib/fog/dns/huaweicloud/v2/requests/create_recordset.rb +54 -0
  276. data/lib/fog/dns/huaweicloud/v2/requests/create_zone.rb +49 -0
  277. data/lib/fog/dns/huaweicloud/v2/requests/create_zone_transfer_accept.rb +35 -0
  278. data/lib/fog/dns/huaweicloud/v2/requests/create_zone_transfer_request.rb +34 -0
  279. data/lib/fog/dns/huaweicloud/v2/requests/delete_recordset.rb +36 -0
  280. data/lib/fog/dns/huaweicloud/v2/requests/delete_zone.rb +35 -0
  281. data/lib/fog/dns/huaweicloud/v2/requests/delete_zone_transfer_request.rb +26 -0
  282. data/lib/fog/dns/huaweicloud/v2/requests/get_pool.rb +30 -0
  283. data/lib/fog/dns/huaweicloud/v2/requests/get_quota.rb +29 -0
  284. data/lib/fog/dns/huaweicloud/v2/requests/get_recordset.rb +36 -0
  285. data/lib/fog/dns/huaweicloud/v2/requests/get_zone.rb +30 -0
  286. data/lib/fog/dns/huaweicloud/v2/requests/get_zone_transfer_accept.rb +28 -0
  287. data/lib/fog/dns/huaweicloud/v2/requests/get_zone_transfer_request.rb +29 -0
  288. data/lib/fog/dns/huaweicloud/v2/requests/list_pools.rb +30 -0
  289. data/lib/fog/dns/huaweicloud/v2/requests/list_recordsets.rb +54 -0
  290. data/lib/fog/dns/huaweicloud/v2/requests/list_zone_transfer_accepts.rb +27 -0
  291. data/lib/fog/dns/huaweicloud/v2/requests/list_zone_transfer_requests.rb +27 -0
  292. data/lib/fog/dns/huaweicloud/v2/requests/list_zones.rb +30 -0
  293. data/lib/fog/dns/huaweicloud/v2/requests/update_quota.rb +34 -0
  294. data/lib/fog/dns/huaweicloud/v2/requests/update_recordset.rb +40 -0
  295. data/lib/fog/dns/huaweicloud/v2/requests/update_zone.rb +39 -0
  296. data/lib/fog/dns/huaweicloud/v2/requests/update_zone_transfer_request.rb +36 -0
  297. data/lib/fog/dns/huaweicloud/v2.rb +342 -0
  298. data/lib/fog/dns/huaweicloud.rb +21 -0
  299. data/lib/fog/event/huaweicloud/models/event.rb +16 -0
  300. data/lib/fog/event/huaweicloud/models/events.rb +23 -0
  301. data/lib/fog/event/huaweicloud/requests/get_event.rb +27 -0
  302. data/lib/fog/event/huaweicloud/requests/list_events.rb +42 -0
  303. data/lib/fog/event/huaweicloud.rb +120 -0
  304. data/lib/fog/huaweicloud/core.rb +224 -0
  305. data/lib/fog/huaweicloud/errors.rb +42 -0
  306. data/lib/fog/huaweicloud/models/collection.rb +48 -0
  307. data/lib/fog/huaweicloud/models/meta_parent.rb +31 -0
  308. data/lib/fog/huaweicloud/models/model.rb +44 -0
  309. data/lib/fog/huaweicloud/version.rb +5 -0
  310. data/lib/fog/huaweicloud.rb +626 -0
  311. data/lib/fog/identity/huaweicloud/v2/models/ec2_credential.rb +39 -0
  312. data/lib/fog/identity/huaweicloud/v2/models/ec2_credentials.rb +56 -0
  313. data/lib/fog/identity/huaweicloud/v2/models/role.rb +53 -0
  314. data/lib/fog/identity/huaweicloud/v2/models/roles.rb +22 -0
  315. data/lib/fog/identity/huaweicloud/v2/models/tenant.rb +63 -0
  316. data/lib/fog/identity/huaweicloud/v2/models/tenants.rb +32 -0
  317. data/lib/fog/identity/huaweicloud/v2/models/user.rb +69 -0
  318. data/lib/fog/identity/huaweicloud/v2/models/users.rb +45 -0
  319. data/lib/fog/identity/huaweicloud/v2/requests/add_user_to_tenant.rb +36 -0
  320. data/lib/fog/identity/huaweicloud/v2/requests/check_token.rb +22 -0
  321. data/lib/fog/identity/huaweicloud/v2/requests/create_ec2_credential.rb +59 -0
  322. data/lib/fog/identity/huaweicloud/v2/requests/create_role.rb +38 -0
  323. data/lib/fog/identity/huaweicloud/v2/requests/create_tenant.rb +34 -0
  324. data/lib/fog/identity/huaweicloud/v2/requests/create_user.rb +45 -0
  325. data/lib/fog/identity/huaweicloud/v2/requests/create_user_role.rb +26 -0
  326. data/lib/fog/identity/huaweicloud/v2/requests/delete_ec2_credential.rb +43 -0
  327. data/lib/fog/identity/huaweicloud/v2/requests/delete_role.rb +30 -0
  328. data/lib/fog/identity/huaweicloud/v2/requests/delete_tenant.rb +33 -0
  329. data/lib/fog/identity/huaweicloud/v2/requests/delete_user.rb +31 -0
  330. data/lib/fog/identity/huaweicloud/v2/requests/delete_user_role.rb +25 -0
  331. data/lib/fog/identity/huaweicloud/v2/requests/get_ec2_credential.rb +50 -0
  332. data/lib/fog/identity/huaweicloud/v2/requests/get_role.rb +30 -0
  333. data/lib/fog/identity/huaweicloud/v2/requests/get_tenant.rb +33 -0
  334. data/lib/fog/identity/huaweicloud/v2/requests/get_tenants_by_id.rb +20 -0
  335. data/lib/fog/identity/huaweicloud/v2/requests/get_tenants_by_name.rb +20 -0
  336. data/lib/fog/identity/huaweicloud/v2/requests/get_user_by_id.rb +34 -0
  337. data/lib/fog/identity/huaweicloud/v2/requests/get_user_by_name.rb +29 -0
  338. data/lib/fog/identity/huaweicloud/v2/requests/list_ec2_credentials.rb +61 -0
  339. data/lib/fog/identity/huaweicloud/v2/requests/list_endpoints_for_token.rb +20 -0
  340. data/lib/fog/identity/huaweicloud/v2/requests/list_roles.rb +34 -0
  341. data/lib/fog/identity/huaweicloud/v2/requests/list_roles_for_user_on_tenant.rb +32 -0
  342. data/lib/fog/identity/huaweicloud/v2/requests/list_tenants.rb +53 -0
  343. data/lib/fog/identity/huaweicloud/v2/requests/list_user_global_roles.rb +20 -0
  344. data/lib/fog/identity/huaweicloud/v2/requests/list_users.rb +47 -0
  345. data/lib/fog/identity/huaweicloud/v2/requests/remove_user_from_tenant.rb +22 -0
  346. data/lib/fog/identity/huaweicloud/v2/requests/set_tenant.rb +21 -0
  347. data/lib/fog/identity/huaweicloud/v2/requests/update_tenant.rb +30 -0
  348. data/lib/fog/identity/huaweicloud/v2/requests/update_user.rb +34 -0
  349. data/lib/fog/identity/huaweicloud/v2/requests/validate_token.rb +22 -0
  350. data/lib/fog/identity/huaweicloud/v2.rb +181 -0
  351. data/lib/fog/identity/huaweicloud/v3/models/domain.rb +59 -0
  352. data/lib/fog/identity/huaweicloud/v3/models/domains.rb +63 -0
  353. data/lib/fog/identity/huaweicloud/v3/models/endpoint.rb +47 -0
  354. data/lib/fog/identity/huaweicloud/v3/models/endpoints.rb +27 -0
  355. data/lib/fog/identity/huaweicloud/v3/models/group.rb +94 -0
  356. data/lib/fog/identity/huaweicloud/v3/models/groups.rb +32 -0
  357. data/lib/fog/identity/huaweicloud/v3/models/os_credential.rb +74 -0
  358. data/lib/fog/identity/huaweicloud/v3/models/os_credentials.rb +32 -0
  359. data/lib/fog/identity/huaweicloud/v3/models/policies.rb +32 -0
  360. data/lib/fog/identity/huaweicloud/v3/models/policy.rb +43 -0
  361. data/lib/fog/identity/huaweicloud/v3/models/project.rb +116 -0
  362. data/lib/fog/identity/huaweicloud/v3/models/projects.rb +75 -0
  363. data/lib/fog/identity/huaweicloud/v3/models/role.rb +41 -0
  364. data/lib/fog/identity/huaweicloud/v3/models/role_assignment.rb +21 -0
  365. data/lib/fog/identity/huaweicloud/v3/models/role_assignments.rb +25 -0
  366. data/lib/fog/identity/huaweicloud/v3/models/roles.rb +40 -0
  367. data/lib/fog/identity/huaweicloud/v3/models/service.rb +48 -0
  368. data/lib/fog/identity/huaweicloud/v3/models/services.rb +32 -0
  369. data/lib/fog/identity/huaweicloud/v3/models/token.rb +24 -0
  370. data/lib/fog/identity/huaweicloud/v3/models/tokens.rb +40 -0
  371. data/lib/fog/identity/huaweicloud/v3/models/user.rb +82 -0
  372. data/lib/fog/identity/huaweicloud/v3/models/users.rb +36 -0
  373. data/lib/fog/identity/huaweicloud/v3/requests/add_user_to_group.rb +20 -0
  374. data/lib/fog/identity/huaweicloud/v3/requests/auth_domains.rb +23 -0
  375. data/lib/fog/identity/huaweicloud/v3/requests/auth_projects.rb +23 -0
  376. data/lib/fog/identity/huaweicloud/v3/requests/check_domain_group_role.rb +20 -0
  377. data/lib/fog/identity/huaweicloud/v3/requests/check_domain_user_role.rb +20 -0
  378. data/lib/fog/identity/huaweicloud/v3/requests/check_project_group_role.rb +20 -0
  379. data/lib/fog/identity/huaweicloud/v3/requests/check_project_user_role.rb +20 -0
  380. data/lib/fog/identity/huaweicloud/v3/requests/create_domain.rb +21 -0
  381. data/lib/fog/identity/huaweicloud/v3/requests/create_endpoint.rb +21 -0
  382. data/lib/fog/identity/huaweicloud/v3/requests/create_group.rb +21 -0
  383. data/lib/fog/identity/huaweicloud/v3/requests/create_os_credential.rb +21 -0
  384. data/lib/fog/identity/huaweicloud/v3/requests/create_policy.rb +21 -0
  385. data/lib/fog/identity/huaweicloud/v3/requests/create_project.rb +21 -0
  386. data/lib/fog/identity/huaweicloud/v3/requests/create_role.rb +21 -0
  387. data/lib/fog/identity/huaweicloud/v3/requests/create_service.rb +21 -0
  388. data/lib/fog/identity/huaweicloud/v3/requests/create_user.rb +21 -0
  389. data/lib/fog/identity/huaweicloud/v3/requests/delete_domain.rb +20 -0
  390. data/lib/fog/identity/huaweicloud/v3/requests/delete_endpoint.rb +20 -0
  391. data/lib/fog/identity/huaweicloud/v3/requests/delete_group.rb +20 -0
  392. data/lib/fog/identity/huaweicloud/v3/requests/delete_os_credential.rb +20 -0
  393. data/lib/fog/identity/huaweicloud/v3/requests/delete_policy.rb +20 -0
  394. data/lib/fog/identity/huaweicloud/v3/requests/delete_project.rb +20 -0
  395. data/lib/fog/identity/huaweicloud/v3/requests/delete_role.rb +20 -0
  396. data/lib/fog/identity/huaweicloud/v3/requests/delete_service.rb +20 -0
  397. data/lib/fog/identity/huaweicloud/v3/requests/delete_user.rb +20 -0
  398. data/lib/fog/identity/huaweicloud/v3/requests/get_domain.rb +22 -0
  399. data/lib/fog/identity/huaweicloud/v3/requests/get_endpoint.rb +22 -0
  400. data/lib/fog/identity/huaweicloud/v3/requests/get_group.rb +22 -0
  401. data/lib/fog/identity/huaweicloud/v3/requests/get_os_credential.rb +22 -0
  402. data/lib/fog/identity/huaweicloud/v3/requests/get_policy.rb +22 -0
  403. data/lib/fog/identity/huaweicloud/v3/requests/get_project.rb +22 -0
  404. data/lib/fog/identity/huaweicloud/v3/requests/get_role.rb +22 -0
  405. data/lib/fog/identity/huaweicloud/v3/requests/get_service.rb +22 -0
  406. data/lib/fog/identity/huaweicloud/v3/requests/get_user.rb +22 -0
  407. data/lib/fog/identity/huaweicloud/v3/requests/grant_domain_group_role.rb +20 -0
  408. data/lib/fog/identity/huaweicloud/v3/requests/grant_domain_user_role.rb +20 -0
  409. data/lib/fog/identity/huaweicloud/v3/requests/grant_project_group_role.rb +20 -0
  410. data/lib/fog/identity/huaweicloud/v3/requests/grant_project_user_role.rb +20 -0
  411. data/lib/fog/identity/huaweicloud/v3/requests/group_user_check.rb +20 -0
  412. data/lib/fog/identity/huaweicloud/v3/requests/list_domain_group_roles.rb +22 -0
  413. data/lib/fog/identity/huaweicloud/v3/requests/list_domain_user_roles.rb +22 -0
  414. data/lib/fog/identity/huaweicloud/v3/requests/list_domains.rb +23 -0
  415. data/lib/fog/identity/huaweicloud/v3/requests/list_endpoints.rb +23 -0
  416. data/lib/fog/identity/huaweicloud/v3/requests/list_group_users.rb +23 -0
  417. data/lib/fog/identity/huaweicloud/v3/requests/list_groups.rb +31 -0
  418. data/lib/fog/identity/huaweicloud/v3/requests/list_os_credentials.rb +23 -0
  419. data/lib/fog/identity/huaweicloud/v3/requests/list_policies.rb +23 -0
  420. data/lib/fog/identity/huaweicloud/v3/requests/list_project_group_roles.rb +22 -0
  421. data/lib/fog/identity/huaweicloud/v3/requests/list_project_user_roles.rb +22 -0
  422. data/lib/fog/identity/huaweicloud/v3/requests/list_projects.rb +30 -0
  423. data/lib/fog/identity/huaweicloud/v3/requests/list_role_assignments.rb +38 -0
  424. data/lib/fog/identity/huaweicloud/v3/requests/list_roles.rb +23 -0
  425. data/lib/fog/identity/huaweicloud/v3/requests/list_services.rb +23 -0
  426. data/lib/fog/identity/huaweicloud/v3/requests/list_user_groups.rb +22 -0
  427. data/lib/fog/identity/huaweicloud/v3/requests/list_user_projects.rb +23 -0
  428. data/lib/fog/identity/huaweicloud/v3/requests/list_users.rb +23 -0
  429. data/lib/fog/identity/huaweicloud/v3/requests/remove_user_from_group.rb +20 -0
  430. data/lib/fog/identity/huaweicloud/v3/requests/revoke_domain_group_role.rb +20 -0
  431. data/lib/fog/identity/huaweicloud/v3/requests/revoke_domain_user_role.rb +20 -0
  432. data/lib/fog/identity/huaweicloud/v3/requests/revoke_project_group_role.rb +20 -0
  433. data/lib/fog/identity/huaweicloud/v3/requests/revoke_project_user_role.rb +20 -0
  434. data/lib/fog/identity/huaweicloud/v3/requests/token_authenticate.rb +21 -0
  435. data/lib/fog/identity/huaweicloud/v3/requests/token_check.rb +21 -0
  436. data/lib/fog/identity/huaweicloud/v3/requests/token_revoke.rb +21 -0
  437. data/lib/fog/identity/huaweicloud/v3/requests/token_validate.rb +21 -0
  438. data/lib/fog/identity/huaweicloud/v3/requests/update_domain.rb +21 -0
  439. data/lib/fog/identity/huaweicloud/v3/requests/update_endpoint.rb +21 -0
  440. data/lib/fog/identity/huaweicloud/v3/requests/update_group.rb +21 -0
  441. data/lib/fog/identity/huaweicloud/v3/requests/update_os_credential.rb +21 -0
  442. data/lib/fog/identity/huaweicloud/v3/requests/update_policy.rb +21 -0
  443. data/lib/fog/identity/huaweicloud/v3/requests/update_project.rb +21 -0
  444. data/lib/fog/identity/huaweicloud/v3/requests/update_role.rb +21 -0
  445. data/lib/fog/identity/huaweicloud/v3/requests/update_service.rb +21 -0
  446. data/lib/fog/identity/huaweicloud/v3/requests/update_user.rb +21 -0
  447. data/lib/fog/identity/huaweicloud/v3.rb +162 -0
  448. data/lib/fog/identity/huaweicloud.rb +117 -0
  449. data/lib/fog/image/huaweicloud/v1/models/image.rb +78 -0
  450. data/lib/fog/image/huaweicloud/v1/models/images.rb +106 -0
  451. data/lib/fog/image/huaweicloud/v1/requests/add_member_to_image.rb +25 -0
  452. data/lib/fog/image/huaweicloud/v1/requests/create_image.rb +78 -0
  453. data/lib/fog/image/huaweicloud/v1/requests/delete_image.rb +25 -0
  454. data/lib/fog/image/huaweicloud/v1/requests/get_image.rb +47 -0
  455. data/lib/fog/image/huaweicloud/v1/requests/get_image_by_id.rb +44 -0
  456. data/lib/fog/image/huaweicloud/v1/requests/get_image_members.rb +31 -0
  457. data/lib/fog/image/huaweicloud/v1/requests/get_shared_images.rb +31 -0
  458. data/lib/fog/image/huaweicloud/v1/requests/list_public_images.rb +36 -0
  459. data/lib/fog/image/huaweicloud/v1/requests/list_public_images_detailed.rb +37 -0
  460. data/lib/fog/image/huaweicloud/v1/requests/remove_member_from_image.rb +25 -0
  461. data/lib/fog/image/huaweicloud/v1/requests/set_tenant.rb +21 -0
  462. data/lib/fog/image/huaweicloud/v1/requests/update_image.rb +66 -0
  463. data/lib/fog/image/huaweicloud/v1/requests/update_image_members.rb +39 -0
  464. data/lib/fog/image/huaweicloud/v1.rb +133 -0
  465. data/lib/fog/image/huaweicloud/v2/models/image.rb +214 -0
  466. data/lib/fog/image/huaweicloud/v2/models/images.rb +66 -0
  467. data/lib/fog/image/huaweicloud/v2/requests/add_member_to_image.rb +26 -0
  468. data/lib/fog/image/huaweicloud/v2/requests/add_tag_to_image.rb +25 -0
  469. data/lib/fog/image/huaweicloud/v2/requests/create_image.rb +51 -0
  470. data/lib/fog/image/huaweicloud/v2/requests/deactivate_image.rb +25 -0
  471. data/lib/fog/image/huaweicloud/v2/requests/delete_image.rb +25 -0
  472. data/lib/fog/image/huaweicloud/v2/requests/download_image.rb +29 -0
  473. data/lib/fog/image/huaweicloud/v2/requests/get_image.rb +47 -0
  474. data/lib/fog/image/huaweicloud/v2/requests/get_image_by_id.rb +35 -0
  475. data/lib/fog/image/huaweicloud/v2/requests/get_image_members.rb +31 -0
  476. data/lib/fog/image/huaweicloud/v2/requests/get_member_details.rb +33 -0
  477. data/lib/fog/image/huaweicloud/v2/requests/get_shared_images.rb +31 -0
  478. data/lib/fog/image/huaweicloud/v2/requests/list_images.rb +36 -0
  479. data/lib/fog/image/huaweicloud/v2/requests/reactivate_image.rb +25 -0
  480. data/lib/fog/image/huaweicloud/v2/requests/remove_member_from_image.rb +25 -0
  481. data/lib/fog/image/huaweicloud/v2/requests/remove_tag_from_image.rb +25 -0
  482. data/lib/fog/image/huaweicloud/v2/requests/set_tenant.rb +21 -0
  483. data/lib/fog/image/huaweicloud/v2/requests/update_image.rb +49 -0
  484. data/lib/fog/image/huaweicloud/v2/requests/update_image_member.rb +34 -0
  485. data/lib/fog/image/huaweicloud/v2/requests/upload_image.rb +30 -0
  486. data/lib/fog/image/huaweicloud/v2.rb +141 -0
  487. data/lib/fog/image/huaweicloud.rb +23 -0
  488. data/lib/fog/introspection/huaweicloud/models/rules.rb +29 -0
  489. data/lib/fog/introspection/huaweicloud/models/rules_collection.rb +32 -0
  490. data/lib/fog/introspection/huaweicloud/requests/abort_introspection.rb +25 -0
  491. data/lib/fog/introspection/huaweicloud/requests/create_introspection.rb +35 -0
  492. data/lib/fog/introspection/huaweicloud/requests/create_rules.rb +37 -0
  493. data/lib/fog/introspection/huaweicloud/requests/delete_rules.rb +23 -0
  494. data/lib/fog/introspection/huaweicloud/requests/delete_rules_all.rb +23 -0
  495. data/lib/fog/introspection/huaweicloud/requests/get_introspection.rb +24 -0
  496. data/lib/fog/introspection/huaweicloud/requests/get_introspection_details.rb +24 -0
  497. data/lib/fog/introspection/huaweicloud/requests/get_rules.rb +24 -0
  498. data/lib/fog/introspection/huaweicloud/requests/list_rules.rb +24 -0
  499. data/lib/fog/introspection/huaweicloud.rb +103 -0
  500. data/lib/fog/key_manager/huaweicloud/models/acl.rb +23 -0
  501. data/lib/fog/key_manager/huaweicloud/models/container.rb +44 -0
  502. data/lib/fog/key_manager/huaweicloud/models/containers.rb +25 -0
  503. data/lib/fog/key_manager/huaweicloud/models/secret.rb +53 -0
  504. data/lib/fog/key_manager/huaweicloud/models/secrets.rb +25 -0
  505. data/lib/fog/key_manager/huaweicloud/requests/create_container.rb +19 -0
  506. data/lib/fog/key_manager/huaweicloud/requests/create_secret.rb +19 -0
  507. data/lib/fog/key_manager/huaweicloud/requests/delete_container.rb +18 -0
  508. data/lib/fog/key_manager/huaweicloud/requests/delete_container_acl.rb +24 -0
  509. data/lib/fog/key_manager/huaweicloud/requests/delete_secret.rb +18 -0
  510. data/lib/fog/key_manager/huaweicloud/requests/delete_secret_acl.rb +24 -0
  511. data/lib/fog/key_manager/huaweicloud/requests/get_container.rb +18 -0
  512. data/lib/fog/key_manager/huaweicloud/requests/get_container_acl.rb +31 -0
  513. data/lib/fog/key_manager/huaweicloud/requests/get_secret.rb +18 -0
  514. data/lib/fog/key_manager/huaweicloud/requests/get_secret_acl.rb +31 -0
  515. data/lib/fog/key_manager/huaweicloud/requests/get_secret_metadata.rb +18 -0
  516. data/lib/fog/key_manager/huaweicloud/requests/get_secret_payload.rb +21 -0
  517. data/lib/fog/key_manager/huaweicloud/requests/list_containers.rb +19 -0
  518. data/lib/fog/key_manager/huaweicloud/requests/list_secrets.rb +19 -0
  519. data/lib/fog/key_manager/huaweicloud/requests/replace_container_acl.rb +27 -0
  520. data/lib/fog/key_manager/huaweicloud/requests/replace_secret_acl.rb +27 -0
  521. data/lib/fog/key_manager/huaweicloud/requests/update_container_acl.rb +26 -0
  522. data/lib/fog/key_manager/huaweicloud/requests/update_secret_acl.rb +26 -0
  523. data/lib/fog/key_manager/huaweicloud.rb +151 -0
  524. data/lib/fog/metering/huaweicloud/models/event.rb +16 -0
  525. data/lib/fog/metering/huaweicloud/models/events.rb +23 -0
  526. data/lib/fog/metering/huaweicloud/models/meter.rb +0 -0
  527. data/lib/fog/metering/huaweicloud/models/meters.rb +0 -0
  528. data/lib/fog/metering/huaweicloud/models/resource.rb +15 -0
  529. data/lib/fog/metering/huaweicloud/models/resources.rb +23 -0
  530. data/lib/fog/metering/huaweicloud/requests/get_event.rb +27 -0
  531. data/lib/fog/metering/huaweicloud/requests/get_resource.rb +29 -0
  532. data/lib/fog/metering/huaweicloud/requests/get_samples.rb +52 -0
  533. data/lib/fog/metering/huaweicloud/requests/get_statistics.rb +52 -0
  534. data/lib/fog/metering/huaweicloud/requests/list_events.rb +42 -0
  535. data/lib/fog/metering/huaweicloud/requests/list_meters.rb +46 -0
  536. data/lib/fog/metering/huaweicloud/requests/list_resources.rb +29 -0
  537. data/lib/fog/metering/huaweicloud.rb +132 -0
  538. data/lib/fog/metric/huaweicloud/models/metric.rb +18 -0
  539. data/lib/fog/metric/huaweicloud/models/metrics.rb +31 -0
  540. data/lib/fog/metric/huaweicloud/models/resource.rb +16 -0
  541. data/lib/fog/metric/huaweicloud/models/resources.rb +24 -0
  542. data/lib/fog/metric/huaweicloud/requests/get_metric.rb +62 -0
  543. data/lib/fog/metric/huaweicloud/requests/get_metric_measures.rb +38 -0
  544. data/lib/fog/metric/huaweicloud/requests/get_resource.rb +37 -0
  545. data/lib/fog/metric/huaweicloud/requests/get_resource_metric_measures.rb +46 -0
  546. data/lib/fog/metric/huaweicloud/requests/list_metrics.rb +104 -0
  547. data/lib/fog/metric/huaweicloud/requests/list_resources.rb +70 -0
  548. data/lib/fog/metric/huaweicloud.rb +126 -0
  549. data/lib/fog/monitoring/huaweicloud/models/alarm.rb +47 -0
  550. data/lib/fog/monitoring/huaweicloud/models/alarm_count.rb +17 -0
  551. data/lib/fog/monitoring/huaweicloud/models/alarm_counts.rb +16 -0
  552. data/lib/fog/monitoring/huaweicloud/models/alarm_definition.rb +57 -0
  553. data/lib/fog/monitoring/huaweicloud/models/alarm_definitions.rb +42 -0
  554. data/lib/fog/monitoring/huaweicloud/models/alarm_state.rb +32 -0
  555. data/lib/fog/monitoring/huaweicloud/models/alarm_states.rb +20 -0
  556. data/lib/fog/monitoring/huaweicloud/models/alarms.rb +30 -0
  557. data/lib/fog/monitoring/huaweicloud/models/dimension_value.rb +19 -0
  558. data/lib/fog/monitoring/huaweicloud/models/dimension_values.rb +16 -0
  559. data/lib/fog/monitoring/huaweicloud/models/measurement.rb +20 -0
  560. data/lib/fog/monitoring/huaweicloud/models/measurements.rb +16 -0
  561. data/lib/fog/monitoring/huaweicloud/models/metric.rb +27 -0
  562. data/lib/fog/monitoring/huaweicloud/models/metrics.rb +36 -0
  563. data/lib/fog/monitoring/huaweicloud/models/notification_method.rb +47 -0
  564. data/lib/fog/monitoring/huaweicloud/models/notification_methods.rb +42 -0
  565. data/lib/fog/monitoring/huaweicloud/models/statistic.rb +20 -0
  566. data/lib/fog/monitoring/huaweicloud/models/statistics.rb +16 -0
  567. data/lib/fog/monitoring/huaweicloud/requests/create_alarm_definition.rb +19 -0
  568. data/lib/fog/monitoring/huaweicloud/requests/create_metric.rb +29 -0
  569. data/lib/fog/monitoring/huaweicloud/requests/create_metric_array.rb +19 -0
  570. data/lib/fog/monitoring/huaweicloud/requests/create_notification_method.rb +19 -0
  571. data/lib/fog/monitoring/huaweicloud/requests/delete_alarm.rb +18 -0
  572. data/lib/fog/monitoring/huaweicloud/requests/delete_alarm_definition.rb +18 -0
  573. data/lib/fog/monitoring/huaweicloud/requests/delete_notification_method.rb +18 -0
  574. data/lib/fog/monitoring/huaweicloud/requests/find_measurements.rb +22 -0
  575. data/lib/fog/monitoring/huaweicloud/requests/get_alarm.rb +21 -0
  576. data/lib/fog/monitoring/huaweicloud/requests/get_alarm_counts.rb +22 -0
  577. data/lib/fog/monitoring/huaweicloud/requests/get_alarm_definition.rb +18 -0
  578. data/lib/fog/monitoring/huaweicloud/requests/get_notification_method.rb +18 -0
  579. data/lib/fog/monitoring/huaweicloud/requests/list_alarm_definitions.rb +22 -0
  580. data/lib/fog/monitoring/huaweicloud/requests/list_alarm_state_history_for_all_alarms.rb +22 -0
  581. data/lib/fog/monitoring/huaweicloud/requests/list_alarm_state_history_for_specific_alarm.rb +22 -0
  582. data/lib/fog/monitoring/huaweicloud/requests/list_alarms.rb +22 -0
  583. data/lib/fog/monitoring/huaweicloud/requests/list_dimension_values.rb +21 -0
  584. data/lib/fog/monitoring/huaweicloud/requests/list_metric_names.rb +22 -0
  585. data/lib/fog/monitoring/huaweicloud/requests/list_metrics.rb +22 -0
  586. data/lib/fog/monitoring/huaweicloud/requests/list_notification_method_types.rb +21 -0
  587. data/lib/fog/monitoring/huaweicloud/requests/list_notification_methods.rb +22 -0
  588. data/lib/fog/monitoring/huaweicloud/requests/list_statistics.rb +22 -0
  589. data/lib/fog/monitoring/huaweicloud/requests/patch_alarm.rb +19 -0
  590. data/lib/fog/monitoring/huaweicloud/requests/patch_alarm_definition.rb +19 -0
  591. data/lib/fog/monitoring/huaweicloud/requests/patch_notification_method.rb +19 -0
  592. data/lib/fog/monitoring/huaweicloud/requests/put_notification_method.rb +19 -0
  593. data/lib/fog/monitoring/huaweicloud/requests/update_alarm.rb +19 -0
  594. data/lib/fog/monitoring/huaweicloud/requests/update_alarm_definition.rb +19 -0
  595. data/lib/fog/monitoring/huaweicloud.rb +96 -0
  596. data/lib/fog/network/huaweicloud/models/extension.rb +15 -0
  597. data/lib/fog/network/huaweicloud/models/extensions.rb +32 -0
  598. data/lib/fog/network/huaweicloud/models/floating_ip.rb +64 -0
  599. data/lib/fog/network/huaweicloud/models/floating_ips.rb +32 -0
  600. data/lib/fog/network/huaweicloud/models/ike_policies.rb +32 -0
  601. data/lib/fog/network/huaweicloud/models/ike_policy.rb +43 -0
  602. data/lib/fog/network/huaweicloud/models/ipsec_policies.rb +32 -0
  603. data/lib/fog/network/huaweicloud/models/ipsec_policy.rb +45 -0
  604. data/lib/fog/network/huaweicloud/models/ipsec_site_connection.rb +51 -0
  605. data/lib/fog/network/huaweicloud/models/ipsec_site_connections.rb +33 -0
  606. data/lib/fog/network/huaweicloud/models/lb_health_monitor.rb +57 -0
  607. data/lib/fog/network/huaweicloud/models/lb_health_monitors.rb +32 -0
  608. data/lib/fog/network/huaweicloud/models/lb_member.rb +42 -0
  609. data/lib/fog/network/huaweicloud/models/lb_members.rb +32 -0
  610. data/lib/fog/network/huaweicloud/models/lb_pool.rb +67 -0
  611. data/lib/fog/network/huaweicloud/models/lb_pools.rb +32 -0
  612. data/lib/fog/network/huaweicloud/models/lb_vip.rb +48 -0
  613. data/lib/fog/network/huaweicloud/models/lb_vips.rb +32 -0
  614. data/lib/fog/network/huaweicloud/models/network.rb +43 -0
  615. data/lib/fog/network/huaweicloud/models/network_ip_availabilities.rb +24 -0
  616. data/lib/fog/network/huaweicloud/models/network_ip_availability.rb +17 -0
  617. data/lib/fog/network/huaweicloud/models/networks.rb +32 -0
  618. data/lib/fog/network/huaweicloud/models/port.rb +42 -0
  619. data/lib/fog/network/huaweicloud/models/ports.rb +32 -0
  620. data/lib/fog/network/huaweicloud/models/rbac_policies.rb +33 -0
  621. data/lib/fog/network/huaweicloud/models/rbac_policy.rb +34 -0
  622. data/lib/fog/network/huaweicloud/models/router.rb +61 -0
  623. data/lib/fog/network/huaweicloud/models/routers.rb +32 -0
  624. data/lib/fog/network/huaweicloud/models/security_group.rb +37 -0
  625. data/lib/fog/network/huaweicloud/models/security_group_rule.rb +33 -0
  626. data/lib/fog/network/huaweicloud/models/security_group_rules.rb +32 -0
  627. data/lib/fog/network/huaweicloud/models/security_groups.rb +32 -0
  628. data/lib/fog/network/huaweicloud/models/subnet.rb +45 -0
  629. data/lib/fog/network/huaweicloud/models/subnet_pool.rb +47 -0
  630. data/lib/fog/network/huaweicloud/models/subnet_pools.rb +33 -0
  631. data/lib/fog/network/huaweicloud/models/subnets.rb +32 -0
  632. data/lib/fog/network/huaweicloud/models/vpc.rb +34 -0
  633. data/lib/fog/network/huaweicloud/models/vpcs.rb +32 -0
  634. data/lib/fog/network/huaweicloud/models/vpn_service.rb +42 -0
  635. data/lib/fog/network/huaweicloud/models/vpn_services.rb +32 -0
  636. data/lib/fog/network/huaweicloud/requests/add_router_interface.rb +52 -0
  637. data/lib/fog/network/huaweicloud/requests/associate_floating_ip.rb +47 -0
  638. data/lib/fog/network/huaweicloud/requests/associate_lb_health_monitor.rb +37 -0
  639. data/lib/fog/network/huaweicloud/requests/create_floating_ip.rb +45 -0
  640. data/lib/fog/network/huaweicloud/requests/create_ike_policy.rb +52 -0
  641. data/lib/fog/network/huaweicloud/requests/create_ipsec_policy.rb +52 -0
  642. data/lib/fog/network/huaweicloud/requests/create_ipsec_site_connection.rb +65 -0
  643. data/lib/fog/network/huaweicloud/requests/create_lb_health_monitor.rb +54 -0
  644. data/lib/fog/network/huaweicloud/requests/create_lb_member.rb +51 -0
  645. data/lib/fog/network/huaweicloud/requests/create_lb_pool.rb +58 -0
  646. data/lib/fog/network/huaweicloud/requests/create_lb_vip.rb +58 -0
  647. data/lib/fog/network/huaweicloud/requests/create_lbaas_healthmonitor.rb +57 -0
  648. data/lib/fog/network/huaweicloud/requests/create_lbaas_l7policy.rb +50 -0
  649. data/lib/fog/network/huaweicloud/requests/create_lbaas_l7rule.rb +50 -0
  650. data/lib/fog/network/huaweicloud/requests/create_lbaas_listener.rb +55 -0
  651. data/lib/fog/network/huaweicloud/requests/create_lbaas_loadbalancer.rb +52 -0
  652. data/lib/fog/network/huaweicloud/requests/create_lbaas_pool.rb +53 -0
  653. data/lib/fog/network/huaweicloud/requests/create_lbaas_pool_member.rb +49 -0
  654. data/lib/fog/network/huaweicloud/requests/create_network.rb +88 -0
  655. data/lib/fog/network/huaweicloud/requests/create_port.rb +53 -0
  656. data/lib/fog/network/huaweicloud/requests/create_rbac_policy.rb +42 -0
  657. data/lib/fog/network/huaweicloud/requests/create_router.rb +76 -0
  658. data/lib/fog/network/huaweicloud/requests/create_security_group.rb +92 -0
  659. data/lib/fog/network/huaweicloud/requests/create_security_group_rule.rb +79 -0
  660. data/lib/fog/network/huaweicloud/requests/create_subnet.rb +54 -0
  661. data/lib/fog/network/huaweicloud/requests/create_subnet_pool.rb +56 -0
  662. data/lib/fog/network/huaweicloud/requests/create_vpc.rb +40 -0
  663. data/lib/fog/network/huaweicloud/requests/create_vpn_service.rb +51 -0
  664. data/lib/fog/network/huaweicloud/requests/delete_floating_ip.rb +28 -0
  665. data/lib/fog/network/huaweicloud/requests/delete_ike_policy.rb +28 -0
  666. data/lib/fog/network/huaweicloud/requests/delete_ipsec_policy.rb +28 -0
  667. data/lib/fog/network/huaweicloud/requests/delete_ipsec_site_connection.rb +29 -0
  668. data/lib/fog/network/huaweicloud/requests/delete_lb_health_monitor.rb +28 -0
  669. data/lib/fog/network/huaweicloud/requests/delete_lb_member.rb +28 -0
  670. data/lib/fog/network/huaweicloud/requests/delete_lb_pool.rb +28 -0
  671. data/lib/fog/network/huaweicloud/requests/delete_lb_vip.rb +28 -0
  672. data/lib/fog/network/huaweicloud/requests/delete_lbaas_healthmonitor.rb +28 -0
  673. data/lib/fog/network/huaweicloud/requests/delete_lbaas_l7policy.rb +28 -0
  674. data/lib/fog/network/huaweicloud/requests/delete_lbaas_l7rule.rb +28 -0
  675. data/lib/fog/network/huaweicloud/requests/delete_lbaas_listener.rb +28 -0
  676. data/lib/fog/network/huaweicloud/requests/delete_lbaas_loadbalancer.rb +28 -0
  677. data/lib/fog/network/huaweicloud/requests/delete_lbaas_pool.rb +28 -0
  678. data/lib/fog/network/huaweicloud/requests/delete_lbaas_pool_member.rb +28 -0
  679. data/lib/fog/network/huaweicloud/requests/delete_network.rb +28 -0
  680. data/lib/fog/network/huaweicloud/requests/delete_port.rb +28 -0
  681. data/lib/fog/network/huaweicloud/requests/delete_quota.rb +23 -0
  682. data/lib/fog/network/huaweicloud/requests/delete_rbac_policy.rb +28 -0
  683. data/lib/fog/network/huaweicloud/requests/delete_router.rb +28 -0
  684. data/lib/fog/network/huaweicloud/requests/delete_security_group.rb +32 -0
  685. data/lib/fog/network/huaweicloud/requests/delete_security_group_rule.rb +32 -0
  686. data/lib/fog/network/huaweicloud/requests/delete_subnet.rb +36 -0
  687. data/lib/fog/network/huaweicloud/requests/delete_subnet_pool.rb +28 -0
  688. data/lib/fog/network/huaweicloud/requests/delete_vpc.rb +25 -0
  689. data/lib/fog/network/huaweicloud/requests/delete_vpn_service.rb +28 -0
  690. data/lib/fog/network/huaweicloud/requests/disassociate_floating_ip.rb +47 -0
  691. data/lib/fog/network/huaweicloud/requests/disassociate_lb_health_monitor.rb +29 -0
  692. data/lib/fog/network/huaweicloud/requests/get_extension.rb +28 -0
  693. data/lib/fog/network/huaweicloud/requests/get_floating_ip.rb +39 -0
  694. data/lib/fog/network/huaweicloud/requests/get_ike_policy.rb +28 -0
  695. data/lib/fog/network/huaweicloud/requests/get_ipsec_policy.rb +28 -0
  696. data/lib/fog/network/huaweicloud/requests/get_ipsec_site_connection.rb +28 -0
  697. data/lib/fog/network/huaweicloud/requests/get_lb_health_monitor.rb +28 -0
  698. data/lib/fog/network/huaweicloud/requests/get_lb_member.rb +28 -0
  699. data/lib/fog/network/huaweicloud/requests/get_lb_pool.rb +28 -0
  700. data/lib/fog/network/huaweicloud/requests/get_lb_pool_stats.rb +33 -0
  701. data/lib/fog/network/huaweicloud/requests/get_lb_vip.rb +28 -0
  702. data/lib/fog/network/huaweicloud/requests/get_lbaas_healthmonitor.rb +28 -0
  703. data/lib/fog/network/huaweicloud/requests/get_lbaas_l7policy.rb +28 -0
  704. data/lib/fog/network/huaweicloud/requests/get_lbaas_l7rule.rb +28 -0
  705. data/lib/fog/network/huaweicloud/requests/get_lbaas_listener.rb +28 -0
  706. data/lib/fog/network/huaweicloud/requests/get_lbaas_loadbalancer.rb +28 -0
  707. data/lib/fog/network/huaweicloud/requests/get_lbaas_pool.rb +28 -0
  708. data/lib/fog/network/huaweicloud/requests/get_lbaas_pool_member.rb +28 -0
  709. data/lib/fog/network/huaweicloud/requests/get_network.rb +28 -0
  710. data/lib/fog/network/huaweicloud/requests/get_network_ip_availability.rb +28 -0
  711. data/lib/fog/network/huaweicloud/requests/get_port.rb +51 -0
  712. data/lib/fog/network/huaweicloud/requests/get_quota.rb +26 -0
  713. data/lib/fog/network/huaweicloud/requests/get_quotas.rb +26 -0
  714. data/lib/fog/network/huaweicloud/requests/get_rbac_policy.rb +28 -0
  715. data/lib/fog/network/huaweicloud/requests/get_router.rb +30 -0
  716. data/lib/fog/network/huaweicloud/requests/get_security_group.rb +52 -0
  717. data/lib/fog/network/huaweicloud/requests/get_security_group_rule.rb +47 -0
  718. data/lib/fog/network/huaweicloud/requests/get_subnet.rb +46 -0
  719. data/lib/fog/network/huaweicloud/requests/get_subnet_pool.rb +29 -0
  720. data/lib/fog/network/huaweicloud/requests/get_vpc.rb +22 -0
  721. data/lib/fog/network/huaweicloud/requests/get_vpn_service.rb +28 -0
  722. data/lib/fog/network/huaweicloud/requests/list_extensions.rb +25 -0
  723. data/lib/fog/network/huaweicloud/requests/list_floating_ips.rb +25 -0
  724. data/lib/fog/network/huaweicloud/requests/list_ike_policies.rb +25 -0
  725. data/lib/fog/network/huaweicloud/requests/list_ipsec_policies.rb +25 -0
  726. data/lib/fog/network/huaweicloud/requests/list_ipsec_site_connections.rb +25 -0
  727. data/lib/fog/network/huaweicloud/requests/list_lb_health_monitors.rb +25 -0
  728. data/lib/fog/network/huaweicloud/requests/list_lb_members.rb +25 -0
  729. data/lib/fog/network/huaweicloud/requests/list_lb_pools.rb +25 -0
  730. data/lib/fog/network/huaweicloud/requests/list_lb_vips.rb +25 -0
  731. data/lib/fog/network/huaweicloud/requests/list_lbaas_healthmonitors.rb +25 -0
  732. data/lib/fog/network/huaweicloud/requests/list_lbaas_l7policies.rb +25 -0
  733. data/lib/fog/network/huaweicloud/requests/list_lbaas_l7rules.rb +25 -0
  734. data/lib/fog/network/huaweicloud/requests/list_lbaas_listeners.rb +25 -0
  735. data/lib/fog/network/huaweicloud/requests/list_lbaas_loadbalancers.rb +25 -0
  736. data/lib/fog/network/huaweicloud/requests/list_lbaas_pool_members.rb +25 -0
  737. data/lib/fog/network/huaweicloud/requests/list_lbaas_pools.rb +25 -0
  738. data/lib/fog/network/huaweicloud/requests/list_network_ip_availabilities.rb +28 -0
  739. data/lib/fog/network/huaweicloud/requests/list_networks.rb +25 -0
  740. data/lib/fog/network/huaweicloud/requests/list_ports.rb +25 -0
  741. data/lib/fog/network/huaweicloud/requests/list_rbac_policies.rb +25 -0
  742. data/lib/fog/network/huaweicloud/requests/list_routers.rb +25 -0
  743. data/lib/fog/network/huaweicloud/requests/list_security_group_rules.rb +48 -0
  744. data/lib/fog/network/huaweicloud/requests/list_security_groups.rb +53 -0
  745. data/lib/fog/network/huaweicloud/requests/list_subnet_pools.rb +25 -0
  746. data/lib/fog/network/huaweicloud/requests/list_subnets.rb +24 -0
  747. data/lib/fog/network/huaweicloud/requests/list_vpcs.rb +22 -0
  748. data/lib/fog/network/huaweicloud/requests/list_vpn_services.rb +25 -0
  749. data/lib/fog/network/huaweicloud/requests/remove_router_interface.rb +34 -0
  750. data/lib/fog/network/huaweicloud/requests/set_tenant.rb +20 -0
  751. data/lib/fog/network/huaweicloud/requests/update_ike_policy.rb +48 -0
  752. data/lib/fog/network/huaweicloud/requests/update_ipsec_policy.rb +51 -0
  753. data/lib/fog/network/huaweicloud/requests/update_ipsec_site_connection.rb +63 -0
  754. data/lib/fog/network/huaweicloud/requests/update_lb_health_monitor.rb +43 -0
  755. data/lib/fog/network/huaweicloud/requests/update_lb_member.rb +39 -0
  756. data/lib/fog/network/huaweicloud/requests/update_lb_pool.rb +40 -0
  757. data/lib/fog/network/huaweicloud/requests/update_lb_vip.rb +42 -0
  758. data/lib/fog/network/huaweicloud/requests/update_lbaas_healthmonitor.rb +43 -0
  759. data/lib/fog/network/huaweicloud/requests/update_lbaas_l7policy.rb +43 -0
  760. data/lib/fog/network/huaweicloud/requests/update_lbaas_l7rule.rb +42 -0
  761. data/lib/fog/network/huaweicloud/requests/update_lbaas_listener.rb +44 -0
  762. data/lib/fog/network/huaweicloud/requests/update_lbaas_loadbalancer.rb +41 -0
  763. data/lib/fog/network/huaweicloud/requests/update_lbaas_pool.rb +40 -0
  764. data/lib/fog/network/huaweicloud/requests/update_lbaas_pool_member.rb +39 -0
  765. data/lib/fog/network/huaweicloud/requests/update_network.rb +58 -0
  766. data/lib/fog/network/huaweicloud/requests/update_port.rb +44 -0
  767. data/lib/fog/network/huaweicloud/requests/update_quota.rb +27 -0
  768. data/lib/fog/network/huaweicloud/requests/update_rbac_policy.rb +41 -0
  769. data/lib/fog/network/huaweicloud/requests/update_router.rb +71 -0
  770. data/lib/fog/network/huaweicloud/requests/update_security_group.rb +41 -0
  771. data/lib/fog/network/huaweicloud/requests/update_subnet.rb +43 -0
  772. data/lib/fog/network/huaweicloud/requests/update_subnet_pool.rb +46 -0
  773. data/lib/fog/network/huaweicloud/requests/update_vpn_service.rb +46 -0
  774. data/lib/fog/network/huaweicloud.rb +491 -0
  775. data/lib/fog/nfv/huaweicloud/models/vnf.rb +58 -0
  776. data/lib/fog/nfv/huaweicloud/models/vnfd.rb +53 -0
  777. data/lib/fog/nfv/huaweicloud/models/vnfds.rb +28 -0
  778. data/lib/fog/nfv/huaweicloud/models/vnfs.rb +28 -0
  779. data/lib/fog/nfv/huaweicloud/requests/create_vnf.rb +37 -0
  780. data/lib/fog/nfv/huaweicloud/requests/create_vnfd.rb +35 -0
  781. data/lib/fog/nfv/huaweicloud/requests/delete_vnf.rb +23 -0
  782. data/lib/fog/nfv/huaweicloud/requests/delete_vnfd.rb +23 -0
  783. data/lib/fog/nfv/huaweicloud/requests/get_vnf.rb +24 -0
  784. data/lib/fog/nfv/huaweicloud/requests/get_vnfd.rb +24 -0
  785. data/lib/fog/nfv/huaweicloud/requests/list_vnfds.rb +25 -0
  786. data/lib/fog/nfv/huaweicloud/requests/list_vnfs.rb +25 -0
  787. data/lib/fog/nfv/huaweicloud/requests/update_vnf.rb +35 -0
  788. data/lib/fog/nfv/huaweicloud.rb +133 -0
  789. data/lib/fog/orchestration/huaweicloud/models/event.rb +18 -0
  790. data/lib/fog/orchestration/huaweicloud/models/events.rb +31 -0
  791. data/lib/fog/orchestration/huaweicloud/models/resource.rb +30 -0
  792. data/lib/fog/orchestration/huaweicloud/models/resource_schemas.rb +15 -0
  793. data/lib/fog/orchestration/huaweicloud/models/resources.rb +35 -0
  794. data/lib/fog/orchestration/huaweicloud/models/stack.rb +128 -0
  795. data/lib/fog/orchestration/huaweicloud/models/stacks.rb +64 -0
  796. data/lib/fog/orchestration/huaweicloud/models/template.rb +13 -0
  797. data/lib/fog/orchestration/huaweicloud/models/templates.rb +45 -0
  798. data/lib/fog/orchestration/huaweicloud/requests/abandon_stack.rb +15 -0
  799. data/lib/fog/orchestration/huaweicloud/requests/build_info.rb +15 -0
  800. data/lib/fog/orchestration/huaweicloud/requests/cancel_update.rb +26 -0
  801. data/lib/fog/orchestration/huaweicloud/requests/create_stack.rb +99 -0
  802. data/lib/fog/orchestration/huaweicloud/requests/delete_stack.rb +58 -0
  803. data/lib/fog/orchestration/huaweicloud/requests/get_stack_template.rb +20 -0
  804. data/lib/fog/orchestration/huaweicloud/requests/list_events.rb +46 -0
  805. data/lib/fog/orchestration/huaweicloud/requests/list_resource_events.rb +28 -0
  806. data/lib/fog/orchestration/huaweicloud/requests/list_resource_types.rb +27 -0
  807. data/lib/fog/orchestration/huaweicloud/requests/list_resources.rb +46 -0
  808. data/lib/fog/orchestration/huaweicloud/requests/list_stack_data.rb +27 -0
  809. data/lib/fog/orchestration/huaweicloud/requests/list_stack_data_detailed.rb +49 -0
  810. data/lib/fog/orchestration/huaweicloud/requests/list_stack_events.rb +27 -0
  811. data/lib/fog/orchestration/huaweicloud/requests/patch_stack.rb +37 -0
  812. data/lib/fog/orchestration/huaweicloud/requests/preview_stack.rb +16 -0
  813. data/lib/fog/orchestration/huaweicloud/requests/show_event_details.rb +26 -0
  814. data/lib/fog/orchestration/huaweicloud/requests/show_resource_data.rb +26 -0
  815. data/lib/fog/orchestration/huaweicloud/requests/show_resource_metadata.rb +26 -0
  816. data/lib/fog/orchestration/huaweicloud/requests/show_resource_schema.rb +15 -0
  817. data/lib/fog/orchestration/huaweicloud/requests/show_resource_template.rb +20 -0
  818. data/lib/fog/orchestration/huaweicloud/requests/show_stack_details.rb +26 -0
  819. data/lib/fog/orchestration/huaweicloud/requests/update_stack.rb +88 -0
  820. data/lib/fog/orchestration/huaweicloud/requests/validate_template.rb +16 -0
  821. data/lib/fog/orchestration/huaweicloud.rb +156 -0
  822. data/lib/fog/orchestration/util/recursive_hot_file_loader.rb +220 -0
  823. data/lib/fog/planning/huaweicloud/models/plan.rb +69 -0
  824. data/lib/fog/planning/huaweicloud/models/plans.rb +31 -0
  825. data/lib/fog/planning/huaweicloud/models/role.rb +23 -0
  826. data/lib/fog/planning/huaweicloud/models/roles.rb +16 -0
  827. data/lib/fog/planning/huaweicloud/requests/add_role_to_plan.rb +40 -0
  828. data/lib/fog/planning/huaweicloud/requests/create_plan.rb +33 -0
  829. data/lib/fog/planning/huaweicloud/requests/delete_plan.rb +23 -0
  830. data/lib/fog/planning/huaweicloud/requests/get_plan.rb +58 -0
  831. data/lib/fog/planning/huaweicloud/requests/get_plan_templates.rb +28 -0
  832. data/lib/fog/planning/huaweicloud/requests/list_plans.rb +61 -0
  833. data/lib/fog/planning/huaweicloud/requests/list_roles.rb +32 -0
  834. data/lib/fog/planning/huaweicloud/requests/patch_plan.rb +51 -0
  835. data/lib/fog/planning/huaweicloud/requests/remove_role_from_plan.rb +32 -0
  836. data/lib/fog/planning/huaweicloud.rb +149 -0
  837. data/lib/fog/shared_file_system/huaweicloud/models/availability_zone.rb +15 -0
  838. data/lib/fog/shared_file_system/huaweicloud/models/availability_zones.rb +16 -0
  839. data/lib/fog/shared_file_system/huaweicloud/models/network.rb +42 -0
  840. data/lib/fog/shared_file_system/huaweicloud/models/networks.rb +28 -0
  841. data/lib/fog/shared_file_system/huaweicloud/models/share.rb +95 -0
  842. data/lib/fog/shared_file_system/huaweicloud/models/share_access_rule.rb +35 -0
  843. data/lib/fog/shared_file_system/huaweicloud/models/share_access_rules.rb +30 -0
  844. data/lib/fog/shared_file_system/huaweicloud/models/share_export_location.rb +16 -0
  845. data/lib/fog/shared_file_system/huaweicloud/models/share_export_locations.rb +31 -0
  846. data/lib/fog/shared_file_system/huaweicloud/models/shares.rb +28 -0
  847. data/lib/fog/shared_file_system/huaweicloud/models/snapshot.rb +45 -0
  848. data/lib/fog/shared_file_system/huaweicloud/models/snapshots.rb +28 -0
  849. data/lib/fog/shared_file_system/huaweicloud/requests/add_security_service_to_share_network.rb +28 -0
  850. data/lib/fog/shared_file_system/huaweicloud/requests/create_security_service.rb +47 -0
  851. data/lib/fog/shared_file_system/huaweicloud/requests/create_share.rb +49 -0
  852. data/lib/fog/shared_file_system/huaweicloud/requests/create_share_network.rb +41 -0
  853. data/lib/fog/shared_file_system/huaweicloud/requests/create_snapshot.rb +46 -0
  854. data/lib/fog/shared_file_system/huaweicloud/requests/delete_security_service.rb +24 -0
  855. data/lib/fog/shared_file_system/huaweicloud/requests/delete_share.rb +29 -0
  856. data/lib/fog/shared_file_system/huaweicloud/requests/delete_share_network.rb +28 -0
  857. data/lib/fog/shared_file_system/huaweicloud/requests/delete_snapshot.rb +30 -0
  858. data/lib/fog/shared_file_system/huaweicloud/requests/extend_share.rb +24 -0
  859. data/lib/fog/shared_file_system/huaweicloud/requests/get_limits.rb +45 -0
  860. data/lib/fog/shared_file_system/huaweicloud/requests/get_quota.rb +26 -0
  861. data/lib/fog/shared_file_system/huaweicloud/requests/get_security_service.rb +26 -0
  862. data/lib/fog/shared_file_system/huaweicloud/requests/get_share.rb +26 -0
  863. data/lib/fog/shared_file_system/huaweicloud/requests/get_share_export_location.rb +29 -0
  864. data/lib/fog/shared_file_system/huaweicloud/requests/get_share_network.rb +26 -0
  865. data/lib/fog/shared_file_system/huaweicloud/requests/get_snapshot.rb +26 -0
  866. data/lib/fog/shared_file_system/huaweicloud/requests/grant_share_access.rb +34 -0
  867. data/lib/fog/shared_file_system/huaweicloud/requests/list_availability_zones.rb +24 -0
  868. data/lib/fog/shared_file_system/huaweicloud/requests/list_security_services.rb +25 -0
  869. data/lib/fog/shared_file_system/huaweicloud/requests/list_security_services_detail.rb +25 -0
  870. data/lib/fog/shared_file_system/huaweicloud/requests/list_share_access_rules.rb +29 -0
  871. data/lib/fog/shared_file_system/huaweicloud/requests/list_share_export_locations.rb +27 -0
  872. data/lib/fog/shared_file_system/huaweicloud/requests/list_share_networks.rb +25 -0
  873. data/lib/fog/shared_file_system/huaweicloud/requests/list_share_networks_detail.rb +25 -0
  874. data/lib/fog/shared_file_system/huaweicloud/requests/list_shares.rb +25 -0
  875. data/lib/fog/shared_file_system/huaweicloud/requests/list_shares_detail.rb +25 -0
  876. data/lib/fog/shared_file_system/huaweicloud/requests/list_snapshots.rb +25 -0
  877. data/lib/fog/shared_file_system/huaweicloud/requests/list_snapshots_detail.rb +25 -0
  878. data/lib/fog/shared_file_system/huaweicloud/requests/remove_security_service_from_share_network.rb +28 -0
  879. data/lib/fog/shared_file_system/huaweicloud/requests/revoke_share_access.rb +24 -0
  880. data/lib/fog/shared_file_system/huaweicloud/requests/share_action.rb +16 -0
  881. data/lib/fog/shared_file_system/huaweicloud/requests/share_network_action.rb +16 -0
  882. data/lib/fog/shared_file_system/huaweicloud/requests/shrink_share.rb +24 -0
  883. data/lib/fog/shared_file_system/huaweicloud/requests/update_quota.rb +30 -0
  884. data/lib/fog/shared_file_system/huaweicloud/requests/update_security_service.rb +31 -0
  885. data/lib/fog/shared_file_system/huaweicloud/requests/update_share.rb +39 -0
  886. data/lib/fog/shared_file_system/huaweicloud/requests/update_share_network.rb +31 -0
  887. data/lib/fog/shared_file_system/huaweicloud/requests/update_snapshot.rb +31 -0
  888. data/lib/fog/shared_file_system/huaweicloud.rb +389 -0
  889. data/lib/fog/storage/huaweicloud/models/directories.rb +36 -0
  890. data/lib/fog/storage/huaweicloud/models/directory.rb +50 -0
  891. data/lib/fog/storage/huaweicloud/models/file.rb +195 -0
  892. data/lib/fog/storage/huaweicloud/models/files.rb +95 -0
  893. data/lib/fog/storage/huaweicloud/requests/copy_object.rb +23 -0
  894. data/lib/fog/storage/huaweicloud/requests/delete_container.rb +20 -0
  895. data/lib/fog/storage/huaweicloud/requests/delete_multiple_objects.rb +65 -0
  896. data/lib/fog/storage/huaweicloud/requests/delete_object.rb +21 -0
  897. data/lib/fog/storage/huaweicloud/requests/delete_static_large_object.rb +41 -0
  898. data/lib/fog/storage/huaweicloud/requests/get_container.rb +42 -0
  899. data/lib/fog/storage/huaweicloud/requests/get_containers.rb +31 -0
  900. data/lib/fog/storage/huaweicloud/requests/get_object.rb +27 -0
  901. data/lib/fog/storage/huaweicloud/requests/get_object_http_url.rb +21 -0
  902. data/lib/fog/storage/huaweicloud/requests/get_object_https_url.rb +81 -0
  903. data/lib/fog/storage/huaweicloud/requests/head_container.rb +26 -0
  904. data/lib/fog/storage/huaweicloud/requests/head_containers.rb +23 -0
  905. data/lib/fog/storage/huaweicloud/requests/head_object.rb +21 -0
  906. data/lib/fog/storage/huaweicloud/requests/post_object.rb +26 -0
  907. data/lib/fog/storage/huaweicloud/requests/post_set_meta_temp_url_key.rb +33 -0
  908. data/lib/fog/storage/huaweicloud/requests/public_url.rb +34 -0
  909. data/lib/fog/storage/huaweicloud/requests/put_container.rb +24 -0
  910. data/lib/fog/storage/huaweicloud/requests/put_dynamic_obj_manifest.rb +41 -0
  911. data/lib/fog/storage/huaweicloud/requests/put_object.rb +65 -0
  912. data/lib/fog/storage/huaweicloud/requests/put_object_manifest.rb +14 -0
  913. data/lib/fog/storage/huaweicloud/requests/put_static_obj_manifest.rb +55 -0
  914. data/lib/fog/storage/huaweicloud.rb +177 -0
  915. data/lib/fog/volume/huaweicloud/models/availability_zone.rb +10 -0
  916. data/lib/fog/volume/huaweicloud/models/availability_zones.rb +14 -0
  917. data/lib/fog/volume/huaweicloud/models/backup.rb +46 -0
  918. data/lib/fog/volume/huaweicloud/models/backups.rb +26 -0
  919. data/lib/fog/volume/huaweicloud/models/snapshot.rb +38 -0
  920. data/lib/fog/volume/huaweicloud/models/snapshots.rb +26 -0
  921. data/lib/fog/volume/huaweicloud/models/transfer.rb +28 -0
  922. data/lib/fog/volume/huaweicloud/models/transfers.rb +34 -0
  923. data/lib/fog/volume/huaweicloud/models/volume.rb +66 -0
  924. data/lib/fog/volume/huaweicloud/models/volume_type.rb +35 -0
  925. data/lib/fog/volume/huaweicloud/models/volume_types.rb +22 -0
  926. data/lib/fog/volume/huaweicloud/models/volumes.rb +35 -0
  927. data/lib/fog/volume/huaweicloud/requests/accept_transfer.rb +22 -0
  928. data/lib/fog/volume/huaweicloud/requests/action.rb +16 -0
  929. data/lib/fog/volume/huaweicloud/requests/create_backup.rb +49 -0
  930. data/lib/fog/volume/huaweicloud/requests/create_snapshot.rb +18 -0
  931. data/lib/fog/volume/huaweicloud/requests/create_transfer.rb +25 -0
  932. data/lib/fog/volume/huaweicloud/requests/create_volume.rb +23 -0
  933. data/lib/fog/volume/huaweicloud/requests/create_volume_type.rb +41 -0
  934. data/lib/fog/volume/huaweicloud/requests/delete_backup.rb +23 -0
  935. data/lib/fog/volume/huaweicloud/requests/delete_metadata.rb +15 -0
  936. data/lib/fog/volume/huaweicloud/requests/delete_snapshot.rb +23 -0
  937. data/lib/fog/volume/huaweicloud/requests/delete_snapshot_metadata.rb +15 -0
  938. data/lib/fog/volume/huaweicloud/requests/delete_transfer.rb +15 -0
  939. data/lib/fog/volume/huaweicloud/requests/delete_volume.rb +23 -0
  940. data/lib/fog/volume/huaweicloud/requests/delete_volume_type.rb +23 -0
  941. data/lib/fog/volume/huaweicloud/requests/extend_volume.rb +25 -0
  942. data/lib/fog/volume/huaweicloud/requests/get_backup_details.rb +34 -0
  943. data/lib/fog/volume/huaweicloud/requests/get_quota.rb +26 -0
  944. data/lib/fog/volume/huaweicloud/requests/get_quota_defaults.rb +26 -0
  945. data/lib/fog/volume/huaweicloud/requests/get_quota_usage.rb +43 -0
  946. data/lib/fog/volume/huaweicloud/requests/get_snapshot_details.rb +15 -0
  947. data/lib/fog/volume/huaweicloud/requests/get_transfer_details.rb +17 -0
  948. data/lib/fog/volume/huaweicloud/requests/get_volume_details.rb +15 -0
  949. data/lib/fog/volume/huaweicloud/requests/get_volume_type_details.rb +32 -0
  950. data/lib/fog/volume/huaweicloud/requests/list_backups.rb +16 -0
  951. data/lib/fog/volume/huaweicloud/requests/list_backups_detailed.rb +45 -0
  952. data/lib/fog/volume/huaweicloud/requests/list_snapshots.rb +41 -0
  953. data/lib/fog/volume/huaweicloud/requests/list_snapshots_detailed.rb +27 -0
  954. data/lib/fog/volume/huaweicloud/requests/list_transfers.rb +18 -0
  955. data/lib/fog/volume/huaweicloud/requests/list_transfers_detailed.rb +18 -0
  956. data/lib/fog/volume/huaweicloud/requests/list_volume_types.rb +41 -0
  957. data/lib/fog/volume/huaweicloud/requests/list_volumes.rb +30 -0
  958. data/lib/fog/volume/huaweicloud/requests/list_volumes_detailed.rb +16 -0
  959. data/lib/fog/volume/huaweicloud/requests/list_zones.rb +32 -0
  960. data/lib/fog/volume/huaweicloud/requests/replace_metadata.rb +20 -0
  961. data/lib/fog/volume/huaweicloud/requests/restore_backup.rb +17 -0
  962. data/lib/fog/volume/huaweicloud/requests/set_tenant.rb +19 -0
  963. data/lib/fog/volume/huaweicloud/requests/snapshot_action.rb +16 -0
  964. data/lib/fog/volume/huaweicloud/requests/update_metadata.rb +20 -0
  965. data/lib/fog/volume/huaweicloud/requests/update_quota.rb +27 -0
  966. data/lib/fog/volume/huaweicloud/requests/update_snapshot.rb +37 -0
  967. data/lib/fog/volume/huaweicloud/requests/update_snapshot_metadata.rb +20 -0
  968. data/lib/fog/volume/huaweicloud/requests/update_volume.rb +25 -0
  969. data/lib/fog/volume/huaweicloud/requests/update_volume_type.rb +41 -0
  970. data/lib/fog/volume/huaweicloud/v1/models/availability_zone.rb +15 -0
  971. data/lib/fog/volume/huaweicloud/v1/models/availability_zones.rb +16 -0
  972. data/lib/fog/volume/huaweicloud/v1/models/backup.rb +15 -0
  973. data/lib/fog/volume/huaweicloud/v1/models/backups.rb +16 -0
  974. data/lib/fog/volume/huaweicloud/v1/models/snapshot.rb +44 -0
  975. data/lib/fog/volume/huaweicloud/v1/models/snapshots.rb +16 -0
  976. data/lib/fog/volume/huaweicloud/v1/models/transfer.rb +18 -0
  977. data/lib/fog/volume/huaweicloud/v1/models/transfers.rb +16 -0
  978. data/lib/fog/volume/huaweicloud/v1/models/volume.rb +37 -0
  979. data/lib/fog/volume/huaweicloud/v1/models/volume_type.rb +16 -0
  980. data/lib/fog/volume/huaweicloud/v1/models/volume_types.rb +16 -0
  981. data/lib/fog/volume/huaweicloud/v1/models/volumes.rb +16 -0
  982. data/lib/fog/volume/huaweicloud/v1/requests/accept_transfer.rb +2 -0
  983. data/lib/fog/volume/huaweicloud/v1/requests/action.rb +2 -0
  984. data/lib/fog/volume/huaweicloud/v1/requests/create_backup.rb +2 -0
  985. data/lib/fog/volume/huaweicloud/v1/requests/create_snapshot.rb +45 -0
  986. data/lib/fog/volume/huaweicloud/v1/requests/create_transfer.rb +2 -0
  987. data/lib/fog/volume/huaweicloud/v1/requests/create_volume.rb +49 -0
  988. data/lib/fog/volume/huaweicloud/v1/requests/create_volume_type.rb +2 -0
  989. data/lib/fog/volume/huaweicloud/v1/requests/delete_backup.rb +2 -0
  990. data/lib/fog/volume/huaweicloud/v1/requests/delete_metadata.rb +2 -0
  991. data/lib/fog/volume/huaweicloud/v1/requests/delete_snapshot.rb +2 -0
  992. data/lib/fog/volume/huaweicloud/v1/requests/delete_snapshot_metadata.rb +2 -0
  993. data/lib/fog/volume/huaweicloud/v1/requests/delete_transfer.rb +2 -0
  994. data/lib/fog/volume/huaweicloud/v1/requests/delete_volume.rb +2 -0
  995. data/lib/fog/volume/huaweicloud/v1/requests/delete_volume_type.rb +2 -0
  996. data/lib/fog/volume/huaweicloud/v1/requests/extend_volume.rb +2 -0
  997. data/lib/fog/volume/huaweicloud/v1/requests/get_backup_details.rb +2 -0
  998. data/lib/fog/volume/huaweicloud/v1/requests/get_quota.rb +2 -0
  999. data/lib/fog/volume/huaweicloud/v1/requests/get_quota_defaults.rb +2 -0
  1000. data/lib/fog/volume/huaweicloud/v1/requests/get_quota_usage.rb +2 -0
  1001. data/lib/fog/volume/huaweicloud/v1/requests/get_snapshot_details.rb +32 -0
  1002. data/lib/fog/volume/huaweicloud/v1/requests/get_transfer_details.rb +2 -0
  1003. data/lib/fog/volume/huaweicloud/v1/requests/get_volume_details.rb +35 -0
  1004. data/lib/fog/volume/huaweicloud/v1/requests/get_volume_type_details.rb +2 -0
  1005. data/lib/fog/volume/huaweicloud/v1/requests/list_backups.rb +2 -0
  1006. data/lib/fog/volume/huaweicloud/v1/requests/list_backups_detailed.rb +2 -0
  1007. data/lib/fog/volume/huaweicloud/v1/requests/list_snapshots.rb +2 -0
  1008. data/lib/fog/volume/huaweicloud/v1/requests/list_snapshots_detailed.rb +2 -0
  1009. data/lib/fog/volume/huaweicloud/v1/requests/list_transfers.rb +2 -0
  1010. data/lib/fog/volume/huaweicloud/v1/requests/list_transfers_detailed.rb +2 -0
  1011. data/lib/fog/volume/huaweicloud/v1/requests/list_volume_types.rb +2 -0
  1012. data/lib/fog/volume/huaweicloud/v1/requests/list_volumes.rb +46 -0
  1013. data/lib/fog/volume/huaweicloud/v1/requests/list_volumes_detailed.rb +46 -0
  1014. data/lib/fog/volume/huaweicloud/v1/requests/list_zones.rb +2 -0
  1015. data/lib/fog/volume/huaweicloud/v1/requests/real.rb +11 -0
  1016. data/lib/fog/volume/huaweicloud/v1/requests/real_mock.rb +14 -0
  1017. data/lib/fog/volume/huaweicloud/v1/requests/replace_metadata.rb +2 -0
  1018. data/lib/fog/volume/huaweicloud/v1/requests/restore_backup.rb +2 -0
  1019. data/lib/fog/volume/huaweicloud/v1/requests/set_tenant.rb +2 -0
  1020. data/lib/fog/volume/huaweicloud/v1/requests/update_metadata.rb +2 -0
  1021. data/lib/fog/volume/huaweicloud/v1/requests/update_quota.rb +2 -0
  1022. data/lib/fog/volume/huaweicloud/v1/requests/update_snapshot.rb +2 -0
  1023. data/lib/fog/volume/huaweicloud/v1/requests/update_snapshot_metadata.rb +2 -0
  1024. data/lib/fog/volume/huaweicloud/v1/requests/update_volume.rb +2 -0
  1025. data/lib/fog/volume/huaweicloud/v1.rb +183 -0
  1026. data/lib/fog/volume/huaweicloud/v2/models/availability_zone.rb +15 -0
  1027. data/lib/fog/volume/huaweicloud/v2/models/availability_zones.rb +16 -0
  1028. data/lib/fog/volume/huaweicloud/v2/models/backup.rb +15 -0
  1029. data/lib/fog/volume/huaweicloud/v2/models/backups.rb +16 -0
  1030. data/lib/fog/volume/huaweicloud/v2/models/snapshot.rb +44 -0
  1031. data/lib/fog/volume/huaweicloud/v2/models/snapshots.rb +16 -0
  1032. data/lib/fog/volume/huaweicloud/v2/models/transfer.rb +18 -0
  1033. data/lib/fog/volume/huaweicloud/v2/models/transfers.rb +16 -0
  1034. data/lib/fog/volume/huaweicloud/v2/models/volume.rb +37 -0
  1035. data/lib/fog/volume/huaweicloud/v2/models/volume_type.rb +16 -0
  1036. data/lib/fog/volume/huaweicloud/v2/models/volume_types.rb +16 -0
  1037. data/lib/fog/volume/huaweicloud/v2/models/volumes.rb +16 -0
  1038. data/lib/fog/volume/huaweicloud/v2/requests/accept_transfer.rb +2 -0
  1039. data/lib/fog/volume/huaweicloud/v2/requests/action.rb +2 -0
  1040. data/lib/fog/volume/huaweicloud/v2/requests/create_backup.rb +2 -0
  1041. data/lib/fog/volume/huaweicloud/v2/requests/create_snapshot.rb +45 -0
  1042. data/lib/fog/volume/huaweicloud/v2/requests/create_transfer.rb +2 -0
  1043. data/lib/fog/volume/huaweicloud/v2/requests/create_volume.rb +49 -0
  1044. data/lib/fog/volume/huaweicloud/v2/requests/create_volume_type.rb +2 -0
  1045. data/lib/fog/volume/huaweicloud/v2/requests/delete_backup.rb +2 -0
  1046. data/lib/fog/volume/huaweicloud/v2/requests/delete_metadata.rb +2 -0
  1047. data/lib/fog/volume/huaweicloud/v2/requests/delete_snapshot.rb +2 -0
  1048. data/lib/fog/volume/huaweicloud/v2/requests/delete_snapshot_metadata.rb +2 -0
  1049. data/lib/fog/volume/huaweicloud/v2/requests/delete_transfer.rb +2 -0
  1050. data/lib/fog/volume/huaweicloud/v2/requests/delete_volume.rb +2 -0
  1051. data/lib/fog/volume/huaweicloud/v2/requests/delete_volume_type.rb +2 -0
  1052. data/lib/fog/volume/huaweicloud/v2/requests/extend_volume.rb +2 -0
  1053. data/lib/fog/volume/huaweicloud/v2/requests/get_backup_details.rb +2 -0
  1054. data/lib/fog/volume/huaweicloud/v2/requests/get_quota.rb +2 -0
  1055. data/lib/fog/volume/huaweicloud/v2/requests/get_quota_defaults.rb +2 -0
  1056. data/lib/fog/volume/huaweicloud/v2/requests/get_quota_usage.rb +2 -0
  1057. data/lib/fog/volume/huaweicloud/v2/requests/get_snapshot_details.rb +32 -0
  1058. data/lib/fog/volume/huaweicloud/v2/requests/get_transfer_details.rb +2 -0
  1059. data/lib/fog/volume/huaweicloud/v2/requests/get_volume_details.rb +35 -0
  1060. data/lib/fog/volume/huaweicloud/v2/requests/get_volume_type_details.rb +2 -0
  1061. data/lib/fog/volume/huaweicloud/v2/requests/list_backups.rb +2 -0
  1062. data/lib/fog/volume/huaweicloud/v2/requests/list_backups_detailed.rb +2 -0
  1063. data/lib/fog/volume/huaweicloud/v2/requests/list_snapshots.rb +2 -0
  1064. data/lib/fog/volume/huaweicloud/v2/requests/list_snapshots_detailed.rb +2 -0
  1065. data/lib/fog/volume/huaweicloud/v2/requests/list_transfers.rb +2 -0
  1066. data/lib/fog/volume/huaweicloud/v2/requests/list_transfers_detailed.rb +2 -0
  1067. data/lib/fog/volume/huaweicloud/v2/requests/list_volume_types.rb +2 -0
  1068. data/lib/fog/volume/huaweicloud/v2/requests/list_volumes.rb +46 -0
  1069. data/lib/fog/volume/huaweicloud/v2/requests/list_volumes_detailed.rb +46 -0
  1070. data/lib/fog/volume/huaweicloud/v2/requests/list_zones.rb +2 -0
  1071. data/lib/fog/volume/huaweicloud/v2/requests/real.rb +11 -0
  1072. data/lib/fog/volume/huaweicloud/v2/requests/real_mock.rb +14 -0
  1073. data/lib/fog/volume/huaweicloud/v2/requests/replace_metadata.rb +2 -0
  1074. data/lib/fog/volume/huaweicloud/v2/requests/restore_backup.rb +2 -0
  1075. data/lib/fog/volume/huaweicloud/v2/requests/set_tenant.rb +2 -0
  1076. data/lib/fog/volume/huaweicloud/v2/requests/snapshot_action.rb +2 -0
  1077. data/lib/fog/volume/huaweicloud/v2/requests/update_metadata.rb +2 -0
  1078. data/lib/fog/volume/huaweicloud/v2/requests/update_quota.rb +2 -0
  1079. data/lib/fog/volume/huaweicloud/v2/requests/update_snapshot.rb +2 -0
  1080. data/lib/fog/volume/huaweicloud/v2/requests/update_snapshot_metadata.rb +2 -0
  1081. data/lib/fog/volume/huaweicloud/v2/requests/update_volume.rb +2 -0
  1082. data/lib/fog/volume/huaweicloud/v2/requests/update_volume_type.rb +2 -0
  1083. data/lib/fog/volume/huaweicloud/v2.rb +185 -0
  1084. data/lib/fog/volume/huaweicloud.rb +33 -0
  1085. data/lib/fog/workflow/huaweicloud/v2/requests/create_action.rb +28 -0
  1086. data/lib/fog/workflow/huaweicloud/v2/requests/create_action_execution.rb +31 -0
  1087. data/lib/fog/workflow/huaweicloud/v2/requests/create_cron_trigger.rb +55 -0
  1088. data/lib/fog/workflow/huaweicloud/v2/requests/create_environment.rb +31 -0
  1089. data/lib/fog/workflow/huaweicloud/v2/requests/create_execution.rb +30 -0
  1090. data/lib/fog/workflow/huaweicloud/v2/requests/create_workbook.rb +28 -0
  1091. data/lib/fog/workflow/huaweicloud/v2/requests/create_workflow.rb +28 -0
  1092. data/lib/fog/workflow/huaweicloud/v2/requests/delete_action.rb +25 -0
  1093. data/lib/fog/workflow/huaweicloud/v2/requests/delete_action_execution.rb +25 -0
  1094. data/lib/fog/workflow/huaweicloud/v2/requests/delete_cron_trigger.rb +25 -0
  1095. data/lib/fog/workflow/huaweicloud/v2/requests/delete_environment.rb +25 -0
  1096. data/lib/fog/workflow/huaweicloud/v2/requests/delete_execution.rb +25 -0
  1097. data/lib/fog/workflow/huaweicloud/v2/requests/delete_workbook.rb +25 -0
  1098. data/lib/fog/workflow/huaweicloud/v2/requests/delete_workflow.rb +25 -0
  1099. data/lib/fog/workflow/huaweicloud/v2/requests/get_action.rb +27 -0
  1100. data/lib/fog/workflow/huaweicloud/v2/requests/get_action_execution.rb +26 -0
  1101. data/lib/fog/workflow/huaweicloud/v2/requests/get_cron_trigger.rb +28 -0
  1102. data/lib/fog/workflow/huaweicloud/v2/requests/get_environment.rb +28 -0
  1103. data/lib/fog/workflow/huaweicloud/v2/requests/get_execution.rb +26 -0
  1104. data/lib/fog/workflow/huaweicloud/v2/requests/get_task.rb +27 -0
  1105. data/lib/fog/workflow/huaweicloud/v2/requests/get_workbook.rb +28 -0
  1106. data/lib/fog/workflow/huaweicloud/v2/requests/get_workflow.rb +28 -0
  1107. data/lib/fog/workflow/huaweicloud/v2/requests/list_action_executions.rb +28 -0
  1108. data/lib/fog/workflow/huaweicloud/v2/requests/list_actions.rb +30 -0
  1109. data/lib/fog/workflow/huaweicloud/v2/requests/list_cron_triggers.rb +28 -0
  1110. data/lib/fog/workflow/huaweicloud/v2/requests/list_environments.rb +28 -0
  1111. data/lib/fog/workflow/huaweicloud/v2/requests/list_executions.rb +28 -0
  1112. data/lib/fog/workflow/huaweicloud/v2/requests/list_services.rb +28 -0
  1113. data/lib/fog/workflow/huaweicloud/v2/requests/list_tasks.rb +28 -0
  1114. data/lib/fog/workflow/huaweicloud/v2/requests/list_workbooks.rb +28 -0
  1115. data/lib/fog/workflow/huaweicloud/v2/requests/list_workflows.rb +30 -0
  1116. data/lib/fog/workflow/huaweicloud/v2/requests/rerun_task.rb +33 -0
  1117. data/lib/fog/workflow/huaweicloud/v2/requests/update_action.rb +28 -0
  1118. data/lib/fog/workflow/huaweicloud/v2/requests/update_action_execution.rb +33 -0
  1119. data/lib/fog/workflow/huaweicloud/v2/requests/update_environment.rb +31 -0
  1120. data/lib/fog/workflow/huaweicloud/v2/requests/update_execution.rb +33 -0
  1121. data/lib/fog/workflow/huaweicloud/v2/requests/update_workbook.rb +28 -0
  1122. data/lib/fog/workflow/huaweicloud/v2/requests/update_workflow.rb +28 -0
  1123. data/lib/fog/workflow/huaweicloud/v2/requests/validate_action.rb +28 -0
  1124. data/lib/fog/workflow/huaweicloud/v2/requests/validate_workbook.rb +28 -0
  1125. data/lib/fog/workflow/huaweicloud/v2/requests/validate_workflow.rb +28 -0
  1126. data/lib/fog/workflow/huaweicloud/v2.rb +160 -0
  1127. data/lib/fog/workflow/huaweicloud.rb +12 -0
  1128. data/supported.md +56 -0
  1129. metadata +1294 -15
@@ -0,0 +1,85 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ # PARAMETERS #
6
+ # name = Name of flavor
7
+ # ram = Memory in MB
8
+ # vcpus = Number of VCPUs
9
+ # disk = Size of local disk in GB
10
+ # swap = Swap space in MB
11
+ # rxtx_factor = RX/TX factor
12
+ def create_flavor(attributes)
13
+ # Get last flavor id
14
+ flavor_ids = []
15
+ flavors = list_flavors_detail.body['flavors'] + list_flavors_detail(:is_public => false).body['flavors']
16
+ flavors.each do |flavor|
17
+ flavor_ids << flavor['id'].to_i
18
+ end
19
+
20
+ # Set flavor id
21
+ attributes[:flavor_id] = attributes[:flavor_id] || (!flavor_ids.empty? ? flavor_ids.sort.last + 1 : 1)
22
+
23
+ data = {
24
+ 'flavor' => {
25
+ 'name' => attributes[:name],
26
+ 'ram' => attributes[:ram],
27
+ 'vcpus' => attributes[:vcpus],
28
+ 'disk' => attributes[:disk],
29
+ 'id' => attributes[:flavor_id],
30
+ 'swap' => attributes[:swap],
31
+ 'OS-FLV-EXT-DATA:ephemeral' => attributes[:ephemeral],
32
+ 'os-flavor-access:is_public' => attributes[:is_public],
33
+ 'rxtx_factor' => attributes[:rxtx_factor]
34
+ }
35
+ }
36
+
37
+ request(
38
+ :body => Fog::JSON.encode(data),
39
+ :expects => 200,
40
+ :method => 'POST',
41
+ :path => 'flavors'
42
+ )
43
+ end
44
+ end
45
+
46
+ class Mock
47
+ def create_flavor(attributes)
48
+ response = Excon::Response.new
49
+ response.status = 200
50
+ response.headers = {
51
+ "X-Compute-Request-Id" => "req-fdc6f99e-55a2-4ab1-8904-0892753828cf",
52
+ "Content-Type" => "application/json",
53
+ "Content-Length" => "356",
54
+ "Date" => Date.new
55
+ }
56
+ response.body = {
57
+ "flavor" => {
58
+ "vcpus" => attributes[:vcpus],
59
+ "disk" => attributes[:disk],
60
+ "name" => attributes[:name],
61
+ "links" => [
62
+ {
63
+ "href" => "http://192.168.27.100:8774/v1.1/6733e93c5f5c4eb1bcabc6902ba208d6/flavors/11",
64
+ "rel" => "self"
65
+ },
66
+ {
67
+ "href" => "http://192.168.27.100:8774/6733e93c5f5c4eb1bcabc6902ba208d6/flavors/11",
68
+ "rel" => "bookmark"
69
+ }
70
+ ],
71
+ "rxtx_factor" => attributes[:rxtx_factor] || 1.0,
72
+ "OS-FLV-EXT-DATA:ephemeral" => attributes[:ephemeral] || 0,
73
+ "os-flavor-access:is_public" => attributes[:is_public] || false,
74
+ "OS-FLV-DISABLED:disabled" => attributes[:disabled] || false,
75
+ "ram" => attributes[:ram],
76
+ "id" => "11",
77
+ "swap" => attributes[:swap] || ""
78
+ }
79
+ }
80
+ response
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,37 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ def create_flavor_metadata(flavor_ref, metadata)
6
+ data = {
7
+ 'extra_specs' => metadata
8
+ }
9
+
10
+ request(
11
+ :body => Fog::JSON.encode(data),
12
+ :expects => 200,
13
+ :method => 'POST',
14
+ :path => "flavors/#{flavor_ref}/os-extra_specs"
15
+ )
16
+ end
17
+ end
18
+
19
+ class Mock
20
+ def create_flavor_metadata(_flavor_ref, _metadata)
21
+ response = Excon::Response.new
22
+ response.status = 200
23
+ response.headers = {
24
+ "X-Compute-Request-Id" => "req-fdc6f99e-55a2-4ab1-8904-0892753828cf",
25
+ "Content-Type" => "application/json",
26
+ "Content-Length" => "356",
27
+ "Date" => Date.new
28
+ }
29
+ response.body = {"extra_specs" => {
30
+ "cpu_arch" => "x86_64"
31
+ }}
32
+ response
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,44 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ def create_image(server_id, name, metadata = {})
6
+ body = {'createImage' => {
7
+ 'name' => name,
8
+ 'metadata' => metadata
9
+ }}
10
+ data = server_action(server_id, body)
11
+ image_id = data.headers["Location"].scan(%r{.*/(.*)}).flatten[0]
12
+ get_image_details(image_id)
13
+ end
14
+ end
15
+
16
+ class Mock
17
+ def create_image(server_id, name, metadata = {})
18
+ response = Excon::Response.new
19
+ response.status = 202
20
+
21
+ img_id = Fog::Mock.random_numbers(6).to_s
22
+
23
+ data = {
24
+ 'id' => img_id,
25
+ 'server' => {"id" => "3", "links" => [{"href" => "http://nova1:8774/admin/servers/#{server_id}", "rel" => "bookmark"}]},
26
+ 'links' => [{"href" => "http://nova1:8774/v1.1/admin/images/#{img_id}", "rel" => "self"}, {"href" => "http://nova1:8774/admin/images/#{img_id}", "rel" => "bookmark"}],
27
+ 'metadata' => metadata || {},
28
+ 'name' => name || "server_#{rand(999)}",
29
+ 'progress' => 0,
30
+ 'status' => 'SAVING',
31
+ 'minDisk' => 0,
32
+ 'minRam' => 0,
33
+ 'updated' => "",
34
+ 'created' => ""
35
+ }
36
+ self.data[:last_modified][:images][data['id']] = Time.now
37
+ self.data[:images][data['id']] = data
38
+ response.body = {'image' => data}
39
+ response
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,48 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ def create_key_pair(key_name, public_key = nil, user_id = nil)
6
+ data = {
7
+ 'keypair' => {
8
+ 'name' => key_name
9
+ }
10
+ }
11
+
12
+ data['keypair']['public_key'] = public_key unless public_key.nil?
13
+ data['keypair']['user_id'] = user_id unless user_id.nil?
14
+
15
+ request(
16
+ :body => Fog::JSON.encode(data),
17
+ :expects => [200, 201],
18
+ :method => 'POST',
19
+ :path => 'os-keypairs'
20
+ )
21
+ end
22
+ end
23
+
24
+ class Mock
25
+ def create_key_pair(key_name, _public_key = nil)
26
+ response = Excon::Response.new
27
+ response.status = 200
28
+ response.headers = {
29
+ "X-Compute-Request-Id" => "req-c373a42c-2825-4e60-8d34-99416ea850be",
30
+ "Content-Type" => "application/json",
31
+ "Content-Length" => "1289",
32
+ "Date" => Date.new
33
+ }
34
+ response.body = {
35
+ "keypair" => {
36
+ "public_key" => "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDCdAZLjljntJbLVVkNHjWFSoKen2nZbk39ZfqhZJOMdeFdz02GWBS45rcuboeGg/gozKRwsLu4N6NLPlYtbK/NapJIvgO/djBp+FQG1QZNtLPsx7j4hVJac3yISGms+Xtu4cEv6j5sFDzAgTQbWez0Z1+9qOq9ngdaoW+YClfQ== vagrant@nova\n",
37
+ "private_key" => "-----BEGIN RSA PRIVATE KEY-----\nMIICXgIBAAKBgQDCdAZLjljn1tJbLVVkNHjWFSoKen2nZbk39ZfqhZJOMdeFdz02\nGWBS45rcuHboeGg/gozKRwsLu4N6NLPlYtbK/NapJIvgO/djBp+FQG1QZNtLPsx7\nj4hVJac3yISGms+Xtu4cEv6j5sFDzAgTQbWez0Z1+9qOq9ngdaoW+YClfQIDAQAB\nAoGBALBoT9m1vuQ82EONQf2RONqHAsfUzi/SMhEZRgOlv9AemXZkcWyl4uPvxmtd\nEcreiTystAtCHjw7lhCExXthipevUjtIAAt+b3pMn6Oyjad3IRvde6atMdjrje43\n/nftYtuXYyJTsvwEvLYqSioLQ0Nn/XDKhOpcM5tejDHOH35lAkEA+H4r7y9X521u\nIABVAezBWaT/wvdMjx5cwfyYEQjnI1bxfRIqkgoY5gDDBdVbT75UTsHHbHLORQcw\nRjRvS2zgewJBAMhT6eyMonJvHHvC5RcchcY+dWkscIKoOzeyUKMb+7tERQa9/UN2\njYb+jdM0VyL0ruLFwYtl2m34gfmhcXgIvGcCQGzKMEnjHEUBr7jq7EyPbobkqeSd\niDMQQ+PZxmmO0EK0ib0L+v881HG926PuKK/cz+Q7Cif8iznFT+ksg50t6YkCQQC9\nwfcAskqieSuS9A9LcCIrojhXctf0e+T0Ij2N89DlF4sHEuqXf/IZ4IB5gsfTfdE3\nUDnAkK9yogaEbu/r0uKbAkEAy5kl71bIqvKTKsY2mES9ziVxfftl/9UIi5LI+QHb\nmC/c6cTrGVCM71fi2GMxGgBeEea4+7xwoWTL4CxA00kmTg==\n-----END RSA PRIVATE KEY-----\n",
38
+ "user_id" => "admin",
39
+ "name" => key_name,
40
+ "fingerprint" => "97:86:f4:15:68:0c:7b:a7:e5:8f:f0:bd:1f:27:65:ad"
41
+ }
42
+ }
43
+ response
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,42 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ # === Parameters
6
+ # * server_id <~String>
7
+ # * options <~Hash>
8
+ def create_os_interface(server_id, options={})
9
+ body = {
10
+ 'interfaceAttachment' => {}
11
+ }
12
+
13
+ if options[:port_id]
14
+ body['interfaceAttachment']['port_id'] = options[:port_id]
15
+ elsif options[:subnet_id]
16
+ body['interfaceAttachment']['subnet_id'] = options[:subnet_id]
17
+ end
18
+
19
+ if options[:ip_address]
20
+ body['interfaceAttachment']['fixed_ips'] = {ip_address: options[:ip_address]}
21
+ end
22
+
23
+ request(
24
+ :body => Fog::JSON.encode(body),
25
+ :expects => [200, 201, 202, 204],
26
+ :method => 'POST',
27
+ :path => "servers/#{server_id}/os-interface"
28
+ )
29
+ end
30
+ end
31
+
32
+ class Mock
33
+ def create_os_interface(server_id, options={})
34
+ Excon::Response.new(
35
+ :body => {'interfaceAttachment' => data[:os_interfaces].first},
36
+ :status => 200
37
+ )
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,51 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ def create_security_group(name, description)
6
+ data = {
7
+ 'security_group' => {
8
+ 'name' => name,
9
+ 'description' => description
10
+ }
11
+ }
12
+
13
+ request(
14
+ :body => Fog::JSON.encode(data),
15
+ :expects => 200,
16
+ :method => 'POST',
17
+ :path => 'os-security-groups'
18
+ )
19
+ end
20
+ end
21
+
22
+ class Mock
23
+ def create_security_group(name, description)
24
+ Fog::Identity::HuaweiCloud.new(:huaweicloud_auth_url => credentials[:huaweicloud_auth_url])
25
+ tenant_id = Fog::Identity::HuaweiCloud::V2::Mock.data[current_tenant][:tenants].keys.first
26
+ security_group_id = Fog::Mock.random_numbers(2).to_i + 1
27
+ data[:security_groups][security_group_id.to_s] = {
28
+ 'tenant_id' => tenant_id,
29
+ 'rules' => [],
30
+ 'id' => security_group_id,
31
+ 'name' => name,
32
+ 'description' => description
33
+ }
34
+
35
+ response = Excon::Response.new
36
+ response.status = 200
37
+ response.headers = {
38
+ 'X-Compute-Request-Id' => "req-#{Fog::Mock.random_hex(32)}",
39
+ 'Content-Type' => 'application/json',
40
+ 'Content-Length' => Fog::Mock.random_numbers(3).to_s,
41
+ 'Date' => Date.new
42
+ }
43
+ response.body = {
44
+ 'security_group' => data[:security_groups][security_group_id.to_s]
45
+ }
46
+ response
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,57 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ def create_security_group_rule(parent_group_id, ip_protocol, from_port, to_port, cidr, group_id = nil)
6
+ data = {
7
+ 'security_group_rule' => {
8
+ 'parent_group_id' => parent_group_id,
9
+ 'ip_protocol' => ip_protocol,
10
+ 'from_port' => from_port,
11
+ 'to_port' => to_port,
12
+ 'cidr' => cidr,
13
+ 'group_id' => group_id
14
+ }
15
+ }
16
+
17
+ request(
18
+ :expects => 200,
19
+ :method => 'POST',
20
+ :body => Fog::JSON.encode(data),
21
+ :path => 'os-security-group-rules'
22
+ )
23
+ end
24
+ end
25
+
26
+ class Mock
27
+ def create_security_group_rule(parent_group_id, ip_protocol, from_port, to_port, cidr, group_id = nil)
28
+ parent_group_id = parent_group_id.to_i
29
+ response = Excon::Response.new
30
+ response.status = 200
31
+ response.headers = {
32
+ 'X-Compute-Request-Id' => "req-#{Fog::Mock.random_hex(32)}",
33
+ 'Content-Type' => 'application/json',
34
+ 'Content-Length' => Fog::Mock.random_numbers(3).to_s,
35
+ 'Date' => Date.new
36
+ }
37
+ rule = {
38
+ 'id' => Fog::Mock.random_numbers(2).to_i,
39
+ 'from_port' => from_port,
40
+ 'group' => group_id || {},
41
+ 'ip_protocol' => ip_protocol,
42
+ 'to_port' => to_port,
43
+ 'parent_group_id' => parent_group_id,
44
+ 'ip_range' => {
45
+ 'cidr' => cidr
46
+ }
47
+ }
48
+ data[:security_groups][parent_group_id.to_s]['rules'].push(rule)
49
+ response.body = {
50
+ 'security_group_rule' => rule
51
+ }
52
+ response
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,187 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ def create_server(name, image_ref, flavor_ref, options = {})
6
+ data = {
7
+ 'server' => {
8
+ 'flavorRef' => flavor_ref,
9
+ 'name' => name
10
+ }
11
+ }
12
+ data['server']['imageRef'] = image_ref if image_ref
13
+
14
+ vanilla_options = ['metadata', 'accessIPv4', 'accessIPv6',
15
+ 'availability_zone', 'user_data', 'key_name',
16
+ 'adminPass', 'config_drive', 'min_count', 'max_count',
17
+ 'return_reservation_id']
18
+ vanilla_options.select { |o| options[o] }.each do |key|
19
+ data['server'][key] = options[key]
20
+ end
21
+
22
+ if options['security_groups']
23
+ # security names requires a hash with a name prefix
24
+ data['server']['security_groups'] =
25
+ Array(options['security_groups']).map do |sg|
26
+ name = if sg.kind_of?(Fog::Compute::HuaweiCloud::SecurityGroup)
27
+ sg.name
28
+ else
29
+ sg
30
+ end
31
+ {:name => name}
32
+ end
33
+ end
34
+
35
+ if options['personality']
36
+ data['server']['personality'] = []
37
+ options['personality'].each do |file|
38
+ data['server']['personality'] << {
39
+ 'contents' => Base64.encode64(file['contents'] || file[:contents]),
40
+ 'path' => file['path'] || file[:path]
41
+ }
42
+ end
43
+ end
44
+
45
+ if options['nics']
46
+ data['server']['networks'] =
47
+ Array(options['nics']).map do |nic|
48
+ neti = {}
49
+ neti['uuid'] = (nic['subnet_id'] || nic[:subnet_id]) unless (nic['subnet_id'] || nic[:subnet_id]).nil?
50
+ neti['fixed_ip'] = (nic['v4_fixed_ip'] || nic[:v4_fixed_ip]) unless (nic['v4_fixed_ip'] || nic[:v4_fixed_ip]).nil?
51
+ neti['port'] = (nic['port_id'] || nic[:port_id]) unless (nic['port_id'] || nic[:port_id]).nil?
52
+ neti
53
+ end
54
+ end
55
+
56
+ if options['os:scheduler_hints']
57
+ data['os:scheduler_hints'] = options['os:scheduler_hints']
58
+ end
59
+
60
+ if (block_device_mapping = options['block_device_mapping_v2'])
61
+ data['server']['block_device_mapping_v2'] = [block_device_mapping].flatten.collect do |mapping|
62
+ entered_block_device_mapping = {}
63
+ [:boot_index, :delete_on_termination, :destination_type, :device_name, :device_type, :disk_bus,
64
+ :guest_format, :source_type, :uuid, :volume_size].each do |index|
65
+ entered_block_device_mapping[index.to_s] = mapping[index] if mapping.key?(index)
66
+ end
67
+ entered_block_device_mapping
68
+ end
69
+ elsif (block_device_mapping = options['block_device_mapping'])
70
+ data['server']['block_device_mapping'] = [block_device_mapping].flatten.collect do |mapping|
71
+ {
72
+ 'delete_on_termination' => mapping[:delete_on_termination],
73
+ 'device_name' => mapping[:device_name],
74
+ 'volume_id' => mapping[:volume_id],
75
+ 'volume_size' => mapping[:volume_size],
76
+ }
77
+ end
78
+ end
79
+
80
+ path = options['block_device_mapping'] ? 'os-volumes_boot' : 'servers'
81
+
82
+ request(
83
+ :body => Fog::JSON.encode(data),
84
+ :expects => [200, 202],
85
+ :method => 'POST',
86
+ :path => path
87
+ )
88
+ end
89
+ end
90
+
91
+ class Mock
92
+ def create_server(name, image_ref, flavor_ref, options = {})
93
+ response = Excon::Response.new
94
+ response.status = 202
95
+
96
+ server_id = Fog::Mock.random_numbers(6).to_s
97
+ identity = Fog::Identity::HuaweiCloud.new :huaweicloud_auth_url => credentials[:huaweicloud_auth_url]
98
+ user = identity.users.find do |u|
99
+ u.name == @huaweicloud_username
100
+ end
101
+
102
+ user_id = if user
103
+ user.id
104
+ else
105
+ response = identity.create_user(@huaweicloud_username,
106
+ 'password',
107
+ "#{@huaweicloud_username}@example.com")
108
+ response.body["user"]["id"]
109
+ end
110
+
111
+ mock_data = {
112
+ 'addresses' => {"Private" => [{"addr" => Fog::Mock.random_ip}]},
113
+ 'flavor' => {"id" => flavor_ref, "links" => [{"href" => "http://nova1:8774/admin/flavors/1", "rel" => "bookmark"}]},
114
+ 'id' => server_id,
115
+ 'image' => {"id" => image_ref, "links" => [{"href" => "http://nova1:8774/admin/images/#{image_ref}", "rel" => "bookmark"}]},
116
+ 'links' => [{"href" => "http://nova1:8774/v1.1/admin/servers/5", "rel" => "self"}, {"href" => "http://nova1:8774/admin/servers/5", "rel" => "bookmark"}],
117
+ 'hostId' => "123456789ABCDEF01234567890ABCDEF",
118
+ 'metadata' => options['metadata'] || {},
119
+ 'name' => name || "server_#{rand(999)}",
120
+ 'accessIPv4' => options['accessIPv4'] || "",
121
+ 'accessIPv6' => options['accessIPv6'] || "",
122
+ 'progress' => 0,
123
+ 'status' => 'BUILD',
124
+ 'created' => '2012-09-27T00:04:18Z',
125
+ 'updated' => '2012-09-27T00:04:27Z',
126
+ 'user_id' => user_id,
127
+ 'config_drive' => options['config_drive'] || '',
128
+ }
129
+
130
+ nics = options['nics']
131
+
132
+ if nics
133
+ nics.each do |_nic|
134
+ mock_data["addresses"].merge!(
135
+ "Public" => [{'addr' => Fog::Mock.random_ip}]
136
+ )
137
+ end
138
+ end
139
+
140
+ response_data = if options['return_reservation_id'] == 'True'
141
+ {'reservation_id' => "r-#{Fog::Mock.random_numbers(6)}"}
142
+ else
143
+ {
144
+ 'adminPass' => 'password',
145
+ 'id' => server_id,
146
+ 'links' => mock_data['links'],
147
+ }
148
+ end
149
+
150
+ if block_devices = options["block_device_mapping_v2"]
151
+ block_devices.each { |bd| volumes.get(bd[:uuid]).attach(server_id, bd[:device_name]) }
152
+ elsif block_device = options["block_device_mapping"]
153
+ volumes.get(block_device[:volume_id]).attach(server_id, block_device[:device_name])
154
+ end
155
+
156
+ data[:last_modified][:servers][server_id] = Time.now
157
+ data[:servers][server_id] = mock_data
158
+ security_groups = options['security_groups']
159
+ if security_groups
160
+ groups = Array(security_groups).map do |sg|
161
+ if sg.kind_of?(Fog::Compute::HuaweiCloud::SecurityGroup)
162
+ sg.name
163
+ else
164
+ sg
165
+ end
166
+ end
167
+
168
+ data[:server_security_group_map][server_id] = groups
169
+ response_data['security_groups'] = groups
170
+ end
171
+
172
+ if options['os:scheduler_hints'] && options['os:scheduler_hints']['group']
173
+ group = data[:server_groups][options['os:scheduler_hints']['group']]
174
+ group[:members] << server_id if group
175
+ end
176
+
177
+ response.body = if options['return_reservation_id'] == 'True'
178
+ response_data
179
+ else
180
+ {'server' => response_data}
181
+ end
182
+ response
183
+ end
184
+ end
185
+ end
186
+ end
187
+ end
@@ -0,0 +1,31 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ def create_server_group(name, policy)
6
+ Fog::Compute::HuaweiCloud::ServerGroup.validate_server_group_policy policy
7
+
8
+ body = {'server_group' => {
9
+ 'name' => name,
10
+ 'policies' => [policy]
11
+ }}
12
+ request(
13
+ :body => Fog::JSON.encode(body),
14
+ :expects => 200,
15
+ :method => 'POST',
16
+ :path => 'os-server-groups'
17
+ )
18
+ end
19
+ end
20
+
21
+ class Mock
22
+ def create_server_group(name, policy)
23
+ Fog::Compute::HuaweiCloud::ServerGroup.validate_server_group_policy policy
24
+ id = SecureRandom.uuid
25
+ data[:server_groups][id] = {:name => name, :policies => [policy], :members => []}
26
+ get_server_group id
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,51 @@
1
+ module Fog
2
+ module Compute
3
+ class HuaweiCloud
4
+ class Real
5
+ def create_snapshot(volume_id, name, description, force = false)
6
+ data = {
7
+ 'snapshot' => {
8
+ 'volume_id' => volume_id,
9
+ 'display_name' => name,
10
+ 'display_description' => description,
11
+ 'force' => force
12
+ }
13
+ }
14
+
15
+ request(
16
+ :body => Fog::JSON.encode(data),
17
+ :expects => [200, 202],
18
+ :method => 'POST',
19
+ :path => "os-snapshots"
20
+ )
21
+ end
22
+ end
23
+
24
+ class Mock
25
+ def create_snapshot(volume_id, name, description, _force = false)
26
+ volume_response = get_volume_details(volume_id)
27
+ volume = volume_response.data[:body]['volume']
28
+ if volume.nil?
29
+ raise Fog::Compute::HuaweiCloud::NotFound
30
+ else
31
+ response = Excon::Response.new
32
+ data = {
33
+ "status" => "availble",
34
+ "name" => name,
35
+ "created_at" => Time.now,
36
+ "description" => description,
37
+ "volume_id" => volume_id,
38
+ "id" => Fog::Mock.random_numbers(2),
39
+ "size" => volume['size']
40
+ }
41
+
42
+ self.data[:snapshots][data['id']] = data
43
+ response.body = {"snapshot" => data}
44
+ response.status = 202
45
+ response
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end