knife-ionoscloud 6.0.0 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. checksums.yaml +4 -4
  2. data/.github/IONOS.CLOUD.BLU.svg +1 -0
  3. data/README.md +9 -0
  4. data/docs/README.md +6 -0
  5. data/docs/changelog.md +10 -0
  6. data/docs/docs_generator.rb +44 -9
  7. data/docs/subcommands/{backupunit_create.md → backup/backupunit_create.md} +1 -1
  8. data/docs/subcommands/{backupunit_delete.md → backup/backupunit_delete.md} +0 -0
  9. data/docs/subcommands/{backupunit_get.md → backup/backupunit_get.md} +0 -0
  10. data/docs/subcommands/{backupunit_list.md → backup/backupunit_list.md} +0 -0
  11. data/docs/subcommands/{backupunit_ssourl.md → backup/backupunit_ssourl.md} +0 -0
  12. data/docs/subcommands/{backupunit_update.md → backup/backupunit_update.md} +0 -0
  13. data/docs/subcommands/{composite_server_create.md → compute-engine/composite_server_create.md} +9 -3
  14. data/docs/subcommands/{cube_server_create.md → compute-engine/cube_server_create.md} +0 -0
  15. data/docs/subcommands/{datacenter_create.md → compute-engine/datacenter_create.md} +0 -0
  16. data/docs/subcommands/{datacenter_delete.md → compute-engine/datacenter_delete.md} +0 -0
  17. data/docs/subcommands/{datacenter_get.md → compute-engine/datacenter_get.md} +0 -0
  18. data/docs/subcommands/{datacenter_list.md → compute-engine/datacenter_list.md} +0 -0
  19. data/docs/subcommands/{datacenter_update.md → compute-engine/datacenter_update.md} +0 -0
  20. data/docs/subcommands/{firewall_create.md → compute-engine/firewall_create.md} +6 -3
  21. data/docs/subcommands/{firewall_delete.md → compute-engine/firewall_delete.md} +0 -0
  22. data/docs/subcommands/{firewall_get.md → compute-engine/firewall_get.md} +0 -0
  23. data/docs/subcommands/{firewall_list.md → compute-engine/firewall_list.md} +0 -0
  24. data/docs/subcommands/{firewall_update.md → compute-engine/firewall_update.md} +0 -0
  25. data/docs/subcommands/{flowlog_create.md → compute-engine/flowlog_create.md} +0 -0
  26. data/docs/subcommands/{flowlog_delete.md → compute-engine/flowlog_delete.md} +0 -0
  27. data/docs/subcommands/{flowlog_get.md → compute-engine/flowlog_get.md} +0 -0
  28. data/docs/subcommands/{flowlog_list.md → compute-engine/flowlog_list.md} +0 -0
  29. data/docs/subcommands/{flowlog_update.md → compute-engine/flowlog_update.md} +0 -0
  30. data/docs/subcommands/{image_list.md → compute-engine/image_list.md} +0 -0
  31. data/docs/subcommands/{ipblock_create.md → compute-engine/ipblock_create.md} +0 -0
  32. data/docs/subcommands/{ipblock_delete.md → compute-engine/ipblock_delete.md} +0 -0
  33. data/docs/subcommands/{ipblock_get.md → compute-engine/ipblock_get.md} +0 -0
  34. data/docs/subcommands/{ipblock_list.md → compute-engine/ipblock_list.md} +0 -0
  35. data/docs/subcommands/{ipblock_update.md → compute-engine/ipblock_update.md} +0 -0
  36. data/docs/subcommands/{ipfailover_add.md → compute-engine/ipfailover_add.md} +0 -0
  37. data/docs/subcommands/{ipfailover_remove.md → compute-engine/ipfailover_remove.md} +0 -0
  38. data/docs/subcommands/{label_add.md → compute-engine/label_add.md} +0 -0
  39. data/docs/subcommands/{label_list.md → compute-engine/label_list.md} +0 -0
  40. data/docs/subcommands/{label_remove.md → compute-engine/label_remove.md} +0 -0
  41. data/docs/subcommands/{lan_create.md → compute-engine/lan_create.md} +0 -0
  42. data/docs/subcommands/{lan_delete.md → compute-engine/lan_delete.md} +0 -0
  43. data/docs/subcommands/{lan_get.md → compute-engine/lan_get.md} +0 -0
  44. data/docs/subcommands/{lan_list.md → compute-engine/lan_list.md} +0 -0
  45. data/docs/subcommands/{lan_update.md → compute-engine/lan_update.md} +1 -4
  46. data/docs/subcommands/{loadbalancer_create.md → compute-engine/loadbalancer_create.md} +1 -1
  47. data/docs/subcommands/{loadbalancer_delete.md → compute-engine/loadbalancer_delete.md} +0 -0
  48. data/docs/subcommands/{loadbalancer_get.md → compute-engine/loadbalancer_get.md} +0 -0
  49. data/docs/subcommands/{loadbalancer_list.md → compute-engine/loadbalancer_list.md} +0 -0
  50. data/docs/subcommands/{loadbalancer_nic_add.md → compute-engine/loadbalancer_nic_add.md} +0 -0
  51. data/docs/subcommands/{loadbalancer_nic_remove.md → compute-engine/loadbalancer_nic_remove.md} +0 -0
  52. data/docs/subcommands/{loadbalancer_update.md → compute-engine/loadbalancer_update.md} +0 -0
  53. data/docs/subcommands/{location_list.md → compute-engine/location_list.md} +0 -0
  54. data/docs/subcommands/{natgateway_create.md → compute-engine/natgateway_create.md} +0 -0
  55. data/docs/subcommands/{natgateway_delete.md → compute-engine/natgateway_delete.md} +0 -0
  56. data/docs/subcommands/{natgateway_get.md → compute-engine/natgateway_get.md} +0 -0
  57. data/docs/subcommands/{natgateway_lan_add.md → compute-engine/natgateway_lan_add.md} +0 -0
  58. data/docs/subcommands/{natgateway_lan_remove.md → compute-engine/natgateway_lan_remove.md} +0 -0
  59. data/docs/subcommands/{natgateway_list.md → compute-engine/natgateway_list.md} +0 -0
  60. data/docs/subcommands/{natgateway_rule_add.md → compute-engine/natgateway_rule_add.md} +0 -0
  61. data/docs/subcommands/{natgateway_rule_list.md → compute-engine/natgateway_rule_list.md} +0 -0
  62. data/docs/subcommands/{natgateway_rule_remove.md → compute-engine/natgateway_rule_remove.md} +0 -0
  63. data/docs/subcommands/{natgateway_rule_update.md → compute-engine/natgateway_rule_update.md} +0 -0
  64. data/docs/subcommands/{natgateway_update.md → compute-engine/natgateway_update.md} +0 -0
  65. data/docs/subcommands/{networkloadbalancer_create.md → compute-engine/networkloadbalancer_create.md} +0 -0
  66. data/docs/subcommands/{networkloadbalancer_delete.md → compute-engine/networkloadbalancer_delete.md} +0 -0
  67. data/docs/subcommands/{networkloadbalancer_get.md → compute-engine/networkloadbalancer_get.md} +0 -0
  68. data/docs/subcommands/{networkloadbalancer_list.md → compute-engine/networkloadbalancer_list.md} +0 -0
  69. data/docs/subcommands/{networkloadbalancer_rule_add.md → compute-engine/networkloadbalancer_rule_add.md} +0 -0
  70. data/docs/subcommands/{networkloadbalancer_rule_list.md → compute-engine/networkloadbalancer_rule_list.md} +0 -0
  71. data/docs/subcommands/{networkloadbalancer_rule_remove.md → compute-engine/networkloadbalancer_rule_remove.md} +0 -0
  72. data/docs/subcommands/{networkloadbalancer_rule_target_add.md → compute-engine/networkloadbalancer_rule_target_add.md} +0 -0
  73. data/docs/subcommands/{networkloadbalancer_rule_target_list.md → compute-engine/networkloadbalancer_rule_target_list.md} +0 -0
  74. data/docs/subcommands/{networkloadbalancer_rule_target_remove.md → compute-engine/networkloadbalancer_rule_target_remove.md} +0 -0
  75. data/docs/subcommands/{networkloadbalancer_rule_update.md → compute-engine/networkloadbalancer_rule_update.md} +0 -0
  76. data/docs/subcommands/{networkloadbalancer_update.md → compute-engine/networkloadbalancer_update.md} +0 -0
  77. data/docs/subcommands/{nic_create.md → compute-engine/nic_create.md} +4 -4
  78. data/docs/subcommands/{nic_delete.md → compute-engine/nic_delete.md} +1 -1
  79. data/docs/subcommands/{nic_get.md → compute-engine/nic_get.md} +0 -0
  80. data/docs/subcommands/{nic_list.md → compute-engine/nic_list.md} +0 -0
  81. data/docs/subcommands/{nic_update.md → compute-engine/nic_update.md} +3 -3
  82. data/docs/subcommands/{pcc_create.md → compute-engine/pcc_create.md} +0 -0
  83. data/docs/subcommands/{pcc_delete.md → compute-engine/pcc_delete.md} +0 -0
  84. data/docs/subcommands/{pcc_get.md → compute-engine/pcc_get.md} +0 -0
  85. data/docs/subcommands/{pcc_list.md → compute-engine/pcc_list.md} +0 -0
  86. data/docs/subcommands/{pcc_update.md → compute-engine/pcc_update.md} +0 -0
  87. data/docs/subcommands/{request_get.md → compute-engine/request_get.md} +0 -0
  88. data/docs/subcommands/{request_list.md → compute-engine/request_list.md} +0 -0
  89. data/docs/subcommands/{request_status.md → compute-engine/request_status.md} +0 -0
  90. data/docs/subcommands/{request_wait.md → compute-engine/request_wait.md} +0 -0
  91. data/docs/subcommands/{server_console.md → compute-engine/server_console.md} +0 -0
  92. data/docs/subcommands/{server_create.md → compute-engine/server_create.md} +0 -0
  93. data/docs/subcommands/{server_delete.md → compute-engine/server_delete.md} +0 -0
  94. data/docs/subcommands/{server_get.md → compute-engine/server_get.md} +0 -0
  95. data/docs/subcommands/{server_list.md → compute-engine/server_list.md} +4 -1
  96. data/docs/subcommands/{server_reboot.md → compute-engine/server_reboot.md} +0 -0
  97. data/docs/subcommands/{server_resume.md → compute-engine/server_resume.md} +0 -0
  98. data/docs/subcommands/{server_start.md → compute-engine/server_start.md} +0 -0
  99. data/docs/subcommands/{server_stop.md → compute-engine/server_stop.md} +0 -0
  100. data/docs/subcommands/{server_suspend.md → compute-engine/server_suspend.md} +0 -0
  101. data/docs/subcommands/{server_token.md → compute-engine/server_token.md} +0 -0
  102. data/docs/subcommands/{server_update.md → compute-engine/server_update.md} +0 -0
  103. data/docs/subcommands/{server_upgrade.md → compute-engine/server_upgrade.md} +0 -0
  104. data/docs/subcommands/{snapshot_create.md → compute-engine/snapshot_create.md} +0 -0
  105. data/docs/subcommands/{snapshot_delete.md → compute-engine/snapshot_delete.md} +0 -0
  106. data/docs/subcommands/{snapshot_get.md → compute-engine/snapshot_get.md} +0 -0
  107. data/docs/subcommands/{snapshot_list.md → compute-engine/snapshot_list.md} +0 -0
  108. data/docs/subcommands/{snapshot_restore.md → compute-engine/snapshot_restore.md} +0 -0
  109. data/docs/subcommands/{snapshot_update.md → compute-engine/snapshot_update.md} +10 -10
  110. data/docs/subcommands/{template_list.md → compute-engine/template_list.md} +0 -0
  111. data/docs/subcommands/{volume_attach.md → compute-engine/volume_attach.md} +0 -0
  112. data/docs/subcommands/{volume_create.md → compute-engine/volume_create.md} +2 -23
  113. data/docs/subcommands/{volume_delete.md → compute-engine/volume_delete.md} +0 -0
  114. data/docs/subcommands/{volume_detach.md → compute-engine/volume_detach.md} +0 -0
  115. data/docs/subcommands/{volume_get.md → compute-engine/volume_get.md} +0 -0
  116. data/docs/subcommands/{volume_list.md → compute-engine/volume_list.md} +0 -0
  117. data/docs/subcommands/{volume_update.md → compute-engine/volume_update.md} +0 -0
  118. data/docs/subcommands/dbaas-postgres/dbaas_postgres_backup_get.md +38 -0
  119. data/docs/subcommands/dbaas-postgres/dbaas_postgres_backup_list.md +38 -0
  120. data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_create.md +100 -0
  121. data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_delete.md +34 -0
  122. data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_get.md +38 -0
  123. data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_list.md +34 -0
  124. data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_restore.md +44 -0
  125. data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_update.md +65 -0
  126. data/docs/subcommands/dbaas-postgres/dbaas_postgres_logs_get.md +47 -0
  127. data/docs/subcommands/dbaas-postgres/dbaas_postgres_version_list.md +38 -0
  128. data/docs/subcommands/{k8s_create.md → kubernetes/k8s_create.md} +5 -5
  129. data/docs/subcommands/{k8s_delete.md → kubernetes/k8s_delete.md} +0 -0
  130. data/docs/subcommands/{k8s_get.md → kubernetes/k8s_get.md} +0 -0
  131. data/docs/subcommands/{k8s_list.md → kubernetes/k8s_list.md} +0 -0
  132. data/docs/subcommands/{k8s_update.md → kubernetes/k8s_update.md} +0 -0
  133. data/docs/subcommands/{kubeconfig_get.md → kubernetes/kubeconfig_get.md} +0 -0
  134. data/docs/subcommands/{node_delete.md → kubernetes/node_delete.md} +0 -0
  135. data/docs/subcommands/{node_get.md → kubernetes/node_get.md} +0 -0
  136. data/docs/subcommands/{node_list.md → kubernetes/node_list.md} +0 -0
  137. data/docs/subcommands/{node_replace.md → kubernetes/node_replace.md} +0 -0
  138. data/docs/subcommands/{nodepool_create.md → kubernetes/nodepool_create.md} +4 -4
  139. data/docs/subcommands/{nodepool_delete.md → kubernetes/nodepool_delete.md} +0 -0
  140. data/docs/subcommands/{nodepool_get.md → kubernetes/nodepool_get.md} +0 -0
  141. data/docs/subcommands/{nodepool_lan_add.md → kubernetes/nodepool_lan_add.md} +0 -0
  142. data/docs/subcommands/{nodepool_lan_remove.md → kubernetes/nodepool_lan_remove.md} +0 -0
  143. data/docs/subcommands/{nodepool_list.md → kubernetes/nodepool_list.md} +0 -0
  144. data/docs/subcommands/{nodepool_update.md → kubernetes/nodepool_update.md} +0 -0
  145. data/docs/subcommands/{contract_list.md → user/contract_list.md} +0 -0
  146. data/docs/subcommands/{group_create.md → user/group_create.md} +10 -1
  147. data/docs/subcommands/{group_delete.md → user/group_delete.md} +0 -0
  148. data/docs/subcommands/{group_get.md → user/group_get.md} +0 -0
  149. data/docs/subcommands/{group_list.md → user/group_list.md} +0 -0
  150. data/docs/subcommands/{group_update.md → user/group_update.md} +10 -1
  151. data/docs/subcommands/{group_user_add.md → user/group_user_add.md} +0 -0
  152. data/docs/subcommands/{group_user_remove.md → user/group_user_remove.md} +0 -0
  153. data/docs/subcommands/{resource_list.md → user/resource_list.md} +0 -0
  154. data/docs/subcommands/{s3key_create.md → user/s3key_create.md} +0 -0
  155. data/docs/subcommands/{s3key_delete.md → user/s3key_delete.md} +0 -0
  156. data/docs/subcommands/{s3key_get.md → user/s3key_get.md} +0 -0
  157. data/docs/subcommands/{s3key_list.md → user/s3key_list.md} +0 -0
  158. data/docs/subcommands/{share_create.md → user/share_create.md} +1 -1
  159. data/docs/subcommands/{share_delete.md → user/share_delete.md} +2 -2
  160. data/docs/subcommands/{share_get.md → user/share_get.md} +0 -0
  161. data/docs/subcommands/{share_list.md → user/share_list.md} +0 -0
  162. data/docs/subcommands/{share_update.md → user/share_update.md} +0 -0
  163. data/docs/subcommands/{user_create.md → user/user_create.md} +3 -9
  164. data/docs/subcommands/{user_delete.md → user/user_delete.md} +0 -0
  165. data/docs/subcommands/{user_get.md → user/user_get.md} +0 -0
  166. data/docs/subcommands/{user_list.md → user/user_list.md} +0 -0
  167. data/docs/subcommands/{user_ssourl.md → user/user_ssourl.md} +0 -0
  168. data/docs/subcommands/{user_update.md → user/user_update.md} +0 -0
  169. data/docs/summary.md +167 -152
  170. data/docs/templates/summary.mustache +6 -3
  171. data/knife-ionoscloud.gemspec +1 -0
  172. data/lib/chef/knife/ionoscloud_backupunit_create.rb +1 -2
  173. data/lib/chef/knife/ionoscloud_backupunit_delete.rb +1 -2
  174. data/lib/chef/knife/ionoscloud_backupunit_get.rb +1 -2
  175. data/lib/chef/knife/ionoscloud_backupunit_list.rb +1 -2
  176. data/lib/chef/knife/ionoscloud_backupunit_ssourl.rb +1 -2
  177. data/lib/chef/knife/ionoscloud_backupunit_update.rb +1 -2
  178. data/lib/chef/knife/ionoscloud_base.rb +57 -0
  179. data/lib/chef/knife/ionoscloud_composite_server_create.rb +1 -2
  180. data/lib/chef/knife/ionoscloud_contract_list.rb +1 -2
  181. data/lib/chef/knife/ionoscloud_cube_server_create.rb +1 -2
  182. data/lib/chef/knife/ionoscloud_datacenter_create.rb +1 -2
  183. data/lib/chef/knife/ionoscloud_datacenter_delete.rb +1 -2
  184. data/lib/chef/knife/ionoscloud_datacenter_get.rb +1 -2
  185. data/lib/chef/knife/ionoscloud_datacenter_list.rb +1 -2
  186. data/lib/chef/knife/ionoscloud_datacenter_update.rb +1 -2
  187. data/lib/chef/knife/ionoscloud_dbaas_postgres_backup_get.rb +33 -0
  188. data/lib/chef/knife/ionoscloud_dbaas_postgres_backup_list.rb +59 -0
  189. data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_create.rb +158 -0
  190. data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_delete.rb +49 -0
  191. data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_get.rb +34 -0
  192. data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_list.rb +53 -0
  193. data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_restore.rb +48 -0
  194. data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_update.rb +102 -0
  195. data/lib/chef/knife/ionoscloud_dbaas_postgres_logs_get.rb +59 -0
  196. data/lib/chef/knife/ionoscloud_dbaas_postgres_version_list.rb +49 -0
  197. data/lib/chef/knife/ionoscloud_firewall_create.rb +1 -2
  198. data/lib/chef/knife/ionoscloud_firewall_delete.rb +1 -2
  199. data/lib/chef/knife/ionoscloud_firewall_get.rb +1 -2
  200. data/lib/chef/knife/ionoscloud_firewall_list.rb +1 -2
  201. data/lib/chef/knife/ionoscloud_firewall_update.rb +1 -2
  202. data/lib/chef/knife/ionoscloud_flowlog_create.rb +1 -2
  203. data/lib/chef/knife/ionoscloud_flowlog_delete.rb +1 -2
  204. data/lib/chef/knife/ionoscloud_flowlog_get.rb +1 -2
  205. data/lib/chef/knife/ionoscloud_flowlog_list.rb +1 -2
  206. data/lib/chef/knife/ionoscloud_flowlog_update.rb +1 -2
  207. data/lib/chef/knife/ionoscloud_group_create.rb +1 -2
  208. data/lib/chef/knife/ionoscloud_group_delete.rb +1 -2
  209. data/lib/chef/knife/ionoscloud_group_get.rb +1 -2
  210. data/lib/chef/knife/ionoscloud_group_list.rb +1 -2
  211. data/lib/chef/knife/ionoscloud_group_update.rb +1 -2
  212. data/lib/chef/knife/ionoscloud_group_user_add.rb +1 -2
  213. data/lib/chef/knife/ionoscloud_group_user_remove.rb +1 -2
  214. data/lib/chef/knife/ionoscloud_image_list.rb +1 -2
  215. data/lib/chef/knife/ionoscloud_ipblock_create.rb +1 -2
  216. data/lib/chef/knife/ionoscloud_ipblock_delete.rb +1 -2
  217. data/lib/chef/knife/ionoscloud_ipblock_get.rb +1 -2
  218. data/lib/chef/knife/ionoscloud_ipblock_list.rb +1 -2
  219. data/lib/chef/knife/ionoscloud_ipblock_update.rb +1 -2
  220. data/lib/chef/knife/ionoscloud_ipfailover_add.rb +1 -2
  221. data/lib/chef/knife/ionoscloud_ipfailover_remove.rb +1 -2
  222. data/lib/chef/knife/ionoscloud_k8s_create.rb +1 -2
  223. data/lib/chef/knife/ionoscloud_k8s_delete.rb +1 -2
  224. data/lib/chef/knife/ionoscloud_k8s_get.rb +1 -2
  225. data/lib/chef/knife/ionoscloud_k8s_list.rb +1 -2
  226. data/lib/chef/knife/ionoscloud_k8s_update.rb +1 -2
  227. data/lib/chef/knife/ionoscloud_kubeconfig_get.rb +1 -2
  228. data/lib/chef/knife/ionoscloud_label_add.rb +1 -2
  229. data/lib/chef/knife/ionoscloud_label_list.rb +1 -2
  230. data/lib/chef/knife/ionoscloud_label_remove.rb +1 -2
  231. data/lib/chef/knife/ionoscloud_lan_create.rb +1 -2
  232. data/lib/chef/knife/ionoscloud_lan_delete.rb +1 -2
  233. data/lib/chef/knife/ionoscloud_lan_get.rb +1 -2
  234. data/lib/chef/knife/ionoscloud_lan_list.rb +1 -2
  235. data/lib/chef/knife/ionoscloud_lan_update.rb +1 -2
  236. data/lib/chef/knife/ionoscloud_loadbalancer_create.rb +1 -2
  237. data/lib/chef/knife/ionoscloud_loadbalancer_delete.rb +1 -2
  238. data/lib/chef/knife/ionoscloud_loadbalancer_get.rb +1 -2
  239. data/lib/chef/knife/ionoscloud_loadbalancer_list.rb +1 -2
  240. data/lib/chef/knife/ionoscloud_loadbalancer_nic_add.rb +1 -2
  241. data/lib/chef/knife/ionoscloud_loadbalancer_nic_remove.rb +1 -2
  242. data/lib/chef/knife/ionoscloud_loadbalancer_update.rb +1 -2
  243. data/lib/chef/knife/ionoscloud_location_list.rb +1 -2
  244. data/lib/chef/knife/ionoscloud_natgateway_create.rb +1 -2
  245. data/lib/chef/knife/ionoscloud_natgateway_delete.rb +1 -2
  246. data/lib/chef/knife/ionoscloud_natgateway_get.rb +1 -2
  247. data/lib/chef/knife/ionoscloud_natgateway_lan_add.rb +1 -2
  248. data/lib/chef/knife/ionoscloud_natgateway_lan_remove.rb +1 -2
  249. data/lib/chef/knife/ionoscloud_natgateway_list.rb +1 -2
  250. data/lib/chef/knife/ionoscloud_natgateway_rule_add.rb +1 -2
  251. data/lib/chef/knife/ionoscloud_natgateway_rule_list.rb +1 -2
  252. data/lib/chef/knife/ionoscloud_natgateway_rule_remove.rb +1 -2
  253. data/lib/chef/knife/ionoscloud_natgateway_rule_update.rb +1 -2
  254. data/lib/chef/knife/ionoscloud_natgateway_update.rb +1 -2
  255. data/lib/chef/knife/ionoscloud_networkloadbalancer_create.rb +1 -2
  256. data/lib/chef/knife/ionoscloud_networkloadbalancer_delete.rb +1 -2
  257. data/lib/chef/knife/ionoscloud_networkloadbalancer_get.rb +1 -2
  258. data/lib/chef/knife/ionoscloud_networkloadbalancer_list.rb +1 -2
  259. data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_add.rb +1 -2
  260. data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_list.rb +1 -2
  261. data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_remove.rb +1 -2
  262. data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_add.rb +1 -2
  263. data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_list.rb +1 -2
  264. data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_remove.rb +1 -2
  265. data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_update.rb +1 -2
  266. data/lib/chef/knife/ionoscloud_networkloadbalancer_update.rb +1 -2
  267. data/lib/chef/knife/ionoscloud_nic_create.rb +1 -2
  268. data/lib/chef/knife/ionoscloud_nic_delete.rb +1 -2
  269. data/lib/chef/knife/ionoscloud_nic_get.rb +1 -2
  270. data/lib/chef/knife/ionoscloud_nic_list.rb +1 -2
  271. data/lib/chef/knife/ionoscloud_nic_update.rb +1 -2
  272. data/lib/chef/knife/ionoscloud_node_delete.rb +1 -2
  273. data/lib/chef/knife/ionoscloud_node_get.rb +1 -2
  274. data/lib/chef/knife/ionoscloud_node_list.rb +1 -2
  275. data/lib/chef/knife/ionoscloud_node_replace.rb +1 -2
  276. data/lib/chef/knife/ionoscloud_nodepool_create.rb +1 -2
  277. data/lib/chef/knife/ionoscloud_nodepool_delete.rb +1 -2
  278. data/lib/chef/knife/ionoscloud_nodepool_get.rb +1 -2
  279. data/lib/chef/knife/ionoscloud_nodepool_lan_add.rb +1 -2
  280. data/lib/chef/knife/ionoscloud_nodepool_lan_remove.rb +1 -2
  281. data/lib/chef/knife/ionoscloud_nodepool_list.rb +1 -2
  282. data/lib/chef/knife/ionoscloud_nodepool_update.rb +1 -2
  283. data/lib/chef/knife/ionoscloud_pcc_create.rb +1 -2
  284. data/lib/chef/knife/ionoscloud_pcc_delete.rb +1 -2
  285. data/lib/chef/knife/ionoscloud_pcc_get.rb +1 -2
  286. data/lib/chef/knife/ionoscloud_pcc_list.rb +1 -2
  287. data/lib/chef/knife/ionoscloud_pcc_update.rb +1 -2
  288. data/lib/chef/knife/ionoscloud_request_get.rb +1 -2
  289. data/lib/chef/knife/ionoscloud_request_list.rb +1 -2
  290. data/lib/chef/knife/ionoscloud_request_status.rb +1 -2
  291. data/lib/chef/knife/ionoscloud_request_wait.rb +1 -2
  292. data/lib/chef/knife/ionoscloud_resource_list.rb +1 -2
  293. data/lib/chef/knife/ionoscloud_s3key_create.rb +1 -2
  294. data/lib/chef/knife/ionoscloud_s3key_delete.rb +1 -2
  295. data/lib/chef/knife/ionoscloud_s3key_get.rb +1 -2
  296. data/lib/chef/knife/ionoscloud_s3key_list.rb +1 -2
  297. data/lib/chef/knife/ionoscloud_server_console.rb +1 -2
  298. data/lib/chef/knife/ionoscloud_server_create.rb +1 -2
  299. data/lib/chef/knife/ionoscloud_server_delete.rb +1 -2
  300. data/lib/chef/knife/ionoscloud_server_get.rb +1 -2
  301. data/lib/chef/knife/ionoscloud_server_list.rb +1 -2
  302. data/lib/chef/knife/ionoscloud_server_reboot.rb +1 -2
  303. data/lib/chef/knife/ionoscloud_server_resume.rb +1 -2
  304. data/lib/chef/knife/ionoscloud_server_start.rb +1 -2
  305. data/lib/chef/knife/ionoscloud_server_stop.rb +1 -2
  306. data/lib/chef/knife/ionoscloud_server_suspend.rb +1 -2
  307. data/lib/chef/knife/ionoscloud_server_token.rb +1 -2
  308. data/lib/chef/knife/ionoscloud_server_update.rb +1 -2
  309. data/lib/chef/knife/ionoscloud_server_upgrade.rb +1 -2
  310. data/lib/chef/knife/ionoscloud_share_create.rb +1 -2
  311. data/lib/chef/knife/ionoscloud_share_delete.rb +1 -2
  312. data/lib/chef/knife/ionoscloud_share_get.rb +1 -2
  313. data/lib/chef/knife/ionoscloud_share_list.rb +1 -2
  314. data/lib/chef/knife/ionoscloud_share_update.rb +1 -2
  315. data/lib/chef/knife/ionoscloud_snapshot_create.rb +1 -2
  316. data/lib/chef/knife/ionoscloud_snapshot_delete.rb +1 -2
  317. data/lib/chef/knife/ionoscloud_snapshot_get.rb +1 -2
  318. data/lib/chef/knife/ionoscloud_snapshot_list.rb +1 -2
  319. data/lib/chef/knife/ionoscloud_snapshot_restore.rb +1 -2
  320. data/lib/chef/knife/ionoscloud_snapshot_update.rb +1 -2
  321. data/lib/chef/knife/ionoscloud_template_list.rb +1 -2
  322. data/lib/chef/knife/ionoscloud_user_create.rb +1 -2
  323. data/lib/chef/knife/ionoscloud_user_delete.rb +1 -2
  324. data/lib/chef/knife/ionoscloud_user_get.rb +1 -2
  325. data/lib/chef/knife/ionoscloud_user_list.rb +1 -2
  326. data/lib/chef/knife/ionoscloud_user_ssourl.rb +1 -2
  327. data/lib/chef/knife/ionoscloud_user_update.rb +1 -2
  328. data/lib/chef/knife/ionoscloud_volume_attach.rb +1 -2
  329. data/lib/chef/knife/ionoscloud_volume_create.rb +1 -2
  330. data/lib/chef/knife/ionoscloud_volume_delete.rb +1 -2
  331. data/lib/chef/knife/ionoscloud_volume_detach.rb +1 -2
  332. data/lib/chef/knife/ionoscloud_volume_get.rb +1 -2
  333. data/lib/chef/knife/ionoscloud_volume_list.rb +1 -2
  334. data/lib/chef/knife/ionoscloud_volume_update.rb +1 -2
  335. data/lib/knife-ionoscloud/version.rb +1 -1
  336. data/spec/chef/knife/ionoscloud_dbaas_postgres_backup_get_spec.rb +67 -0
  337. data/spec/chef/knife/ionoscloud_dbaas_postgres_backup_list_spec.rb +111 -0
  338. data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_create_spec.rb +99 -0
  339. data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_delete_spec.rb +109 -0
  340. data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_get_spec.rb +73 -0
  341. data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_list_spec.rb +84 -0
  342. data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_restore_spec.rb +59 -0
  343. data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_update_spec.rb +89 -0
  344. data/spec/chef/knife/ionoscloud_dbaas_postgres_logs_get_spec.rb +67 -0
  345. data/spec/chef/knife/ionoscloud_dbaas_postgres_version_list_spec.rb +94 -0
  346. data/spec/spec_helper.rb +107 -0
  347. metadata +209 -156
  348. data/spec/test.sh +0 -3
@@ -41,12 +41,11 @@ class Chef
41
41
  long: '--s3-buckets BUCKET[,BUCKET,...]',
42
42
  description: 'List of S3 bucket configured for K8s usage. For now it contains only one S3 bucket used to store K8s API audit logs.'
43
43
 
44
- attr_reader :description, :required_options
45
-
46
44
  def initialize(args = [])
47
45
  super(args)
48
46
  @description =
49
47
  'Updates information about a Ionoscloud K8s Cluster.'
48
+ @directory = 'kubernetes'
50
49
  @required_options = [:cluster_id, :ionoscloud_username, :ionoscloud_password]
51
50
  @updatable_fields = [
52
51
  :name, :version, :maintenance_day, :maintenance_time, :api_subnet_allow_list, :s3_buckets,
@@ -12,12 +12,11 @@ class Chef
12
12
  long: '--cluster-id CLUSTER_ID',
13
13
  description: 'The ID of the Kubernetes cluster.'
14
14
 
15
- attr_reader :description, :required_options
16
-
17
15
  def initialize(args = [])
18
16
  super(args)
19
17
  @description =
20
18
  'Retrieve the kubeconfig file for a given Kubernetes cluster.'
19
+ @directory = 'kubernetes'
21
20
  @required_options = [:cluster_id, :ionoscloud_username, :ionoscloud_password]
22
21
  end
23
22
 
@@ -31,12 +31,11 @@ class Chef
31
31
  long: '--resource-id RESOURCE_ID',
32
32
  description: 'ID of the resource.'
33
33
 
34
- attr_reader :description, :required_options
35
-
36
34
  def initialize(args = [])
37
35
  super(args)
38
36
  @description =
39
37
  'Add a Label to a Resource.'
38
+ @directory = 'compute-engine'
40
39
  @required_options = [:type, :resource_id, :key, :value, :ionoscloud_username, :ionoscloud_password]
41
40
  end
42
41
 
@@ -22,13 +22,12 @@ class Chef
22
22
  long: '--resource-id RESOURCE_ID',
23
23
  description: 'ID of the resource.'
24
24
 
25
- attr_reader :description, :required_options
26
-
27
25
  def initialize(args = [])
28
26
  super(args)
29
27
  @description =
30
28
  'List all Labels available to the user. Specify the type and required resource ID '\
31
29
  'to list labels for a specific resource instead.'
30
+ @directory = 'compute-engine'
32
31
  @required_options = [:ionoscloud_username, :ionoscloud_password]
33
32
  end
34
33
 
@@ -22,12 +22,11 @@ class Chef
22
22
  long: '--resource-id RESOURCE_ID',
23
23
  description: 'ID of the resource.'
24
24
 
25
- attr_reader :description, :required_options
26
-
27
25
  def initialize(args = [])
28
26
  super(args)
29
27
  @description =
30
28
  'Remove a Label from a Resource.'
29
+ @directory = 'compute-engine'
31
30
  @required_options = [:type, :resource_id, :ionoscloud_username, :ionoscloud_password]
32
31
  end
33
32
 
@@ -28,12 +28,11 @@ class Chef
28
28
  long: '--pcc PCC_ID',
29
29
  description: 'ID of the PCC to connect the LAN to'
30
30
 
31
- attr_reader :description, :required_options
32
-
33
31
  def initialize(args = [])
34
32
  super(args)
35
33
  @description =
36
34
  'Creates a new LAN under a data center.'
35
+ @directory = 'compute-engine'
37
36
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
38
37
  end
39
38
 
@@ -12,12 +12,11 @@ class Chef
12
12
  long: '--datacenter-id DATACENTER_ID',
13
13
  description: 'Name of the data center'
14
14
 
15
- attr_reader :description, :required_options
16
-
17
15
  def initialize(args = [])
18
16
  super(args)
19
17
  @description =
20
18
  'Deletes an existing LAN.'
19
+ @directory = 'compute-engine'
21
20
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
22
21
  end
23
22
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--lan-id LAN_ID',
18
18
  description: 'ID of the LAN'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Retrieves information about a Ionoscloud LAN.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :lan_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -12,12 +12,11 @@ class Chef
12
12
  long: '--datacenter-id DATACENTER_ID',
13
13
  description: 'The ID of the data center'
14
14
 
15
- attr_reader :description, :required_options
16
-
17
15
  def initialize(args = [])
18
16
  super(args)
19
17
  @description =
20
18
  'Lists all available LANs under a data center.'
19
+ @directory = 'compute-engine'
21
20
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
22
21
  end
23
22
 
@@ -33,12 +33,11 @@ class Chef
33
33
  long: '--pcc PCC_ID',
34
34
  description: 'ID of the PCC to connect the LAN to'
35
35
 
36
- attr_reader :description, :required_options
37
-
38
36
  def initialize(args = [])
39
37
  super(args)
40
38
  @description =
41
39
  'Updates information about a Ionoscloud LAN.'
40
+ @directory = 'compute-engine'
42
41
  @required_options = [:datacenter_id, :lan_id, :ionoscloud_username, :ionoscloud_password]
43
42
  @updatable_fields = [:name, :public, :pcc, :description]
44
43
  end
@@ -30,12 +30,11 @@ class Chef
30
30
  long: '--nics NIC_ID [NIC_ID]',
31
31
  description: 'An array of additional private NICs attached to worker nodes'
32
32
 
33
- attr_reader :description, :required_options
34
-
35
33
  def initialize(args = [])
36
34
  super(args)
37
35
  @description =
38
36
  'Creates a load balancer within the VDC. Load balancers can be used for public or private IP traffic.'
37
+ @directory = 'compute-engine'
39
38
  @required_options = [:datacenter_id, :name, :ionoscloud_username, :ionoscloud_password]
40
39
  end
41
40
 
@@ -12,12 +12,11 @@ class Chef
12
12
  long: '--datacenter-id DATACENTER_ID',
13
13
  description: 'Name of the data center'
14
14
 
15
- attr_reader :description, :required_options
16
-
17
15
  def initialize(args = [])
18
16
  super(args)
19
17
  @description =
20
18
  'Deletes the specified load balancer.'
19
+ @directory = 'compute-engine'
21
20
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
22
21
  end
23
22
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--loadbalancer-id LOADBALANCER_ID',
18
18
  description: 'ID of the load balancer'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Retrieves the attributes of a given load balancer. This will also retrieve a list of NICs associated with the load balancer.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :loadbalancer_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -12,12 +12,11 @@ class Chef
12
12
  long: '--datacenter-id DATACENTER_ID',
13
13
  description: 'Name of the data center'
14
14
 
15
- attr_reader :description, :required_options
16
-
17
15
  def initialize(args = [])
18
16
  super(args)
19
17
  @description =
20
18
  'Retrieve a list of load balancers within the virtual data center.'
19
+ @directory = 'compute-engine'
21
20
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
22
21
  end
23
22
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--loadbalancer-id LOADBALANCER_ID',
18
18
  description: 'Name of the load balancer'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Adds the association of a NIC with a load balancer.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :loadbalancer_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--loadbalancer-id LOADBALANCER_ID',
18
18
  description: 'Name of the load balancer'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Removes the association of a NIC with a load balancer.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :loadbalancer_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -30,12 +30,11 @@ class Chef
30
30
  long: '--dhcp DHCP',
31
31
  description: 'Indicates if the load balancer will reserve an IP using DHCP.'
32
32
 
33
- attr_reader :description, :required_options
34
-
35
33
  def initialize(args = [])
36
34
  super(args)
37
35
  @description =
38
36
  'Updates information about a Ionoscloud Load Balancer.'
37
+ @directory = 'compute-engine'
39
38
  @required_options = [:datacenter_id, :loadbalancer_id, :ionoscloud_username, :ionoscloud_password]
40
39
  @updatable_fields = [:name, :ip, :dhcp]
41
40
  end
@@ -7,12 +7,11 @@ class Chef
7
7
 
8
8
  banner 'knife ionoscloud location list'
9
9
 
10
- attr_reader :description, :required_options
11
-
12
10
  def initialize(args = [])
13
11
  super(args)
14
12
  @description =
15
13
  'List available physical locations where resources can reside.'
14
+ @directory = 'compute-engine'
16
15
  @required_options = [:ionoscloud_username, :ionoscloud_password]
17
16
  end
18
17
 
@@ -22,12 +22,11 @@ class Chef
22
22
  long: '--ips IP[,IP,...]',
23
23
  description: 'Collection of public IP addresses of the NAT gateway. Should be customer reserved IP addresses in that location'
24
24
 
25
- attr_reader :description, :required_options
26
-
27
25
  def initialize(args = [])
28
26
  super(args)
29
27
  @description =
30
28
  'Creates a new Nat Gateway under a data center.'
29
+ @directory = 'compute-engine'
31
30
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
32
31
  end
33
32
 
@@ -12,12 +12,11 @@ class Chef
12
12
  long: '--datacenter-id DATACENTER_ID',
13
13
  description: 'Name of the data center'
14
14
 
15
- attr_reader :description, :required_options
16
-
17
15
  def initialize(args = [])
18
16
  super(args)
19
17
  @description =
20
18
  'Deletes an existing NAT Gateway.'
19
+ @directory = 'compute-engine'
21
20
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
22
21
  end
23
22
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--natgateway-id NATGATEWAY_ID',
18
18
  description: 'ID of the NAT Gateway'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Retrieves the attributes of a given NAT Gateway.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :natgateway_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -28,12 +28,11 @@ class Chef
28
28
  description: 'Collection of gateway IP addresses of the NAT gateway. '\
29
29
  'Will be auto-generated if not provided. Should ideally be an IP belonging to the same subnet as the LAN'
30
30
 
31
- attr_reader :description, :required_options
32
-
33
31
  def initialize(args = [])
34
32
  super(args)
35
33
  @description =
36
34
  'Adds a LAN to a Nat Gateway under a data center.'
35
+ @directory = 'compute-engine'
37
36
  @required_options = [:datacenter_id, :natgateway_id, :lan_id, :ionoscloud_username, :ionoscloud_password]
38
37
  end
39
38
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--natgateway-id NATGATEWAY_ID',
18
18
  description: 'ID of the NAT Gateway'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Removes the specified LANS from a Nat Gateway under a data center.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :natgateway_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -12,12 +12,11 @@ class Chef
12
12
  long: '--datacenter-id DATACENTER_ID',
13
13
  description: 'The ID of the data center'
14
14
 
15
- attr_reader :description, :required_options
16
-
17
15
  def initialize(args = [])
18
16
  super(args)
19
17
  @description =
20
18
  'Lists all available NAT Gateways under a data center.'
19
+ @directory = 'compute-engine'
21
20
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
22
21
  end
23
22
 
@@ -57,12 +57,11 @@ class Chef
57
57
  long: '--port-end PORT_RANGE_START',
58
58
  description: 'Target port range end associated with the NAT gateway rule'
59
59
 
60
- attr_reader :description, :required_options
61
-
62
60
  def initialize(args = [])
63
61
  super(args)
64
62
  @description =
65
63
  'Adds a Rule to a Nat Gateway under a data center.'
64
+ @directory = 'compute-engine'
66
65
  @required_options = [:datacenter_id, :natgateway_id, :name, :source_subnet, :public_ip, :ionoscloud_username, :ionoscloud_password]
67
66
  end
68
67
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--natgateway-id NATGATEWAY_ID',
18
18
  description: 'ID of the NAT Gateway'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Lists all available rules in a NAT Gateways under a data center.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--natgateway-id NATGATEWAY_ID',
18
18
  description: 'ID of the NAT Gateway'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Removes the specified rules from a Nat Gateway under a data center.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :natgateway_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -62,12 +62,11 @@ class Chef
62
62
  long: '--port-end PORT_RANGE_START',
63
63
  description: 'Target port range end associated with the NAT gateway rule'
64
64
 
65
- attr_reader :description, :required_options
66
-
67
65
  def initialize(args = [])
68
66
  super(args)
69
67
  @description =
70
68
  'Updates information about a Ionoscloud NAT Gateway.'
69
+ @directory = 'compute-engine'
71
70
  @required_options = [:datacenter_id, :natgateway_id, :ionoscloud_username, :ionoscloud_password]
72
71
  @updatable_fields = [
73
72
  :name, :type, :protocol, :source_subnet, :public_ip, :target_subnet,
@@ -31,12 +31,11 @@ class Chef
31
31
  long: '--lans LAN[,LAN,...]',
32
32
  description: 'Collection of LANs connected to the NAT gateway. IPs must contain valid subnet mask. If user will not provide any IP then system will generate an IP with /24 subnet.'
33
33
 
34
- attr_reader :description, :required_options
35
-
36
34
  def initialize(args = [])
37
35
  super(args)
38
36
  @description =
39
37
  'Updates information about a Ionoscloud NAT Gateway.'
38
+ @directory = 'compute-engine'
40
39
  @required_options = [:datacenter_id, :natgateway_id, :ionoscloud_username, :ionoscloud_password]
41
40
  @updatable_fields = [:name, :ips, :lans]
42
41
  end
@@ -40,12 +40,11 @@ class Chef
40
40
  'IPs must contain valid subnet mask. If user will not provide any IP then the system '\
41
41
  'will generate one IP with /24 subnet.'
42
42
 
43
- attr_reader :description, :required_options
44
-
45
43
  def initialize(args = [])
46
44
  super(args)
47
45
  @description =
48
46
  'Creates an Network Load Balancer within the datacenter.'
47
+ @directory = 'compute-engine'
49
48
  @required_options = [:datacenter_id, :name, :listener_lan, :target_lan, :ips, :ionoscloud_username, :ionoscloud_password]
50
49
  end
51
50
 
@@ -12,12 +12,11 @@ class Chef
12
12
  long: '--datacenter-id DATACENTER_ID',
13
13
  description: 'Name of the data center'
14
14
 
15
- attr_reader :description, :required_options
16
-
17
15
  def initialize(args = [])
18
16
  super(args)
19
17
  @description =
20
18
  'Removes the specified Network Load Balancer.'
19
+ @directory = 'compute-engine'
21
20
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
22
21
  end
23
22
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--network-loadbalancer NETWORK_LOADBALANCER_ID',
18
18
  description: 'ID of the Network Loadbalancer'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Retrieves the attributes of a given Network Load Balancer.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :network_loadbalancer_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -12,12 +12,11 @@ class Chef
12
12
  long: '--datacenter-id DATACENTER_ID',
13
13
  description: 'Name of the data center'
14
14
 
15
- attr_reader :description, :required_options
16
-
17
15
  def initialize(args = [])
18
16
  super(args)
19
17
  @description =
20
18
  'Retrieve a list of Network Load Balancers within the datacenter.'
19
+ @directory = 'compute-engine'
21
20
  @required_options = [:datacenter_id, :ionoscloud_username, :ionoscloud_password]
22
21
  end
23
22
 
@@ -66,12 +66,11 @@ class Chef
66
66
  long: '--targets TARGETS',
67
67
  description: 'Array of targets'
68
68
 
69
- attr_reader :description, :required_options
70
-
71
69
  def initialize(args = [])
72
70
  super(args)
73
71
  @description =
74
72
  'Adds a Forwarding Rule to a Network Load Balancer under a data center.'
73
+ @directory = 'compute-engine'
75
74
  @required_options = [:datacenter_id, :network_loadbalancer_id, :name, :listener_ip, :listener_port, :ionoscloud_username, :ionoscloud_password]
76
75
  end
77
76
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--network-loadbalancer NETWORK_LOADBALANCER_ID',
18
18
  description: 'ID of the Network Loadbalancer'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Lists all available rules in a Network Loadbalancer under a data center.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :network_loadbalancer_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--network-loadbalancer NETWORK_LOADBALANCER_ID',
18
18
  description: 'ID of the Network Loadbalancer'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Removes the specified rules from a Network Loadbalancer under a data center.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :network_loadbalancer_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27
 
@@ -63,12 +63,11 @@ class Chef
63
63
  description: 'Maintenance specifies if a target VM should be marked as down, even if it is not.',
64
64
  boolean: true
65
65
 
66
- attr_reader :description, :required_options
67
-
68
66
  def initialize(args = [])
69
67
  super(args)
70
68
  @description =
71
69
  'Adds a target to a Network Load Balancer Forwarding Rule under a data center.'
70
+ @directory = 'compute-engine'
72
71
  @required_options = [
73
72
  :datacenter_id, :network_loadbalancer_id, :forwarding_rule_id, :ip, :port, :weight, :ionoscloud_username, :ionoscloud_password,
74
73
  ]
@@ -22,12 +22,11 @@ class Chef
22
22
  long: '--forwarding-rule FORWARDING_RULE_ID',
23
23
  description: 'ID of the Network Loadbalancer Forwarding Rule'
24
24
 
25
- attr_reader :description, :required_options
26
-
27
25
  def initialize(args = [])
28
26
  super(args)
29
27
  @description =
30
28
  'Lists all targets of a Network Loadbalancer Forwarding Rule under a data center.'
29
+ @directory = 'compute-engine'
31
30
  @required_options = [
32
31
  :datacenter_id, :network_loadbalancer_id, :forwarding_rule_id, :ionoscloud_username, :ionoscloud_password,
33
32
  ]
@@ -32,12 +32,11 @@ class Chef
32
32
  long: '--port PORT',
33
33
  description: 'Port of the balanced target service. (range: 1 to 65535)'
34
34
 
35
- attr_reader :description, :required_options
36
-
37
35
  def initialize(args = [])
38
36
  super(args)
39
37
  @description =
40
38
  'Adds a target to a Network Load Balancer Forwarding Rule under a data center.'
39
+ @directory = 'compute-engine'
41
40
  @required_options = [
42
41
  :datacenter_id, :network_loadbalancer_id, :forwarding_rule_id, :ip, :port, :ionoscloud_username, :ionoscloud_password,
43
42
  ]
@@ -71,12 +71,11 @@ class Chef
71
71
  long: '--targets TARGETS',
72
72
  description: 'Array of targets'
73
73
 
74
- attr_reader :description, :required_options
75
-
76
74
  def initialize(args = [])
77
75
  super(args)
78
76
  @description =
79
77
  'Updates information about a Ionoscloud Network Load Balancer.'
78
+ @directory = 'compute-engine'
80
79
  @required_options = [:datacenter_id, :network_loadbalancer_id, :ionoscloud_username, :ionoscloud_password]
81
80
  @updatable_fields = [
82
81
  :name, :algorithm, :protocol, :listener_ip, :listener_port, :targets,
@@ -46,12 +46,11 @@ class Chef
46
46
  'will generate one IP with /24 subnet.'
47
47
 
48
48
 
49
- attr_reader :description, :required_options
50
-
51
49
  def initialize(args = [])
52
50
  super(args)
53
51
  @description =
54
52
  'Updates information about a Ionoscloud Network Load Balancer.'
53
+ @directory = 'compute-engine'
55
54
  @required_options = [:datacenter_id, :network_loadbalancer_id, :ionoscloud_username, :ionoscloud_password]
56
55
  @updatable_fields = [:name, :listener_lan, :target_lan, :ips, :lb_private_ips]
57
56
  end
@@ -44,13 +44,12 @@ class Chef
44
44
  description: 'The type of firewall rules that will be allowed on the NIC. If it is not specified it will take the '\
45
45
  'default value INGRESS'
46
46
 
47
- attr_reader :description, :required_options
48
-
49
47
  def initialize(args = [])
50
48
  super(args)
51
49
  @description =
52
50
  "Creates a NIC on the specified server. The Ionoscloud platform supports adding multiple NICs to a server. These NICs "\
53
51
  "can be used to create different, segmented networks on the platform."
52
+ @directory = 'compute-engine'
54
53
  @required_options = [:datacenter_id, :server_id, :lan, :ionoscloud_username, :ionoscloud_password]
55
54
  end
56
55
 
@@ -17,12 +17,11 @@ class Chef
17
17
  long: '--server-id SERVER_ID',
18
18
  description: 'The ID of the server assigned the NIC'
19
19
 
20
- attr_reader :description, :required_options
21
-
22
20
  def initialize(args = [])
23
21
  super(args)
24
22
  @description =
25
23
  'Deletes an existing NIC from a server.'
24
+ @directory = 'compute-engine'
26
25
  @required_options = [:datacenter_id, :server_id, :ionoscloud_username, :ionoscloud_password]
27
26
  end
28
27