knife-ionoscloud 5.0.0 → 6.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +4 -4
- data/.github/workflows/publish.yml +4 -1
- data/.rubocop.yml +0 -1
- data/docs/README.md +20 -0
- data/docs/docs_generator.rb +2 -2
- data/docs/subcommands/backupunit_create.md +5 -3
- data/docs/subcommands/backupunit_delete.md +5 -3
- data/docs/subcommands/backupunit_list.md +5 -3
- data/docs/subcommands/backupunit_ssourl.md +5 -3
- data/docs/subcommands/composite_server_create.md +13 -5
- data/docs/subcommands/contract_list.md +5 -3
- data/docs/subcommands/cube_server_create.md +91 -0
- data/docs/subcommands/datacenter_create.md +7 -4
- data/docs/subcommands/datacenter_delete.md +5 -3
- data/docs/subcommands/datacenter_list.md +5 -3
- data/docs/subcommands/firewall_create.md +9 -4
- data/docs/subcommands/firewall_delete.md +4 -2
- data/docs/subcommands/firewall_list.md +5 -3
- data/docs/subcommands/flowlog_create.md +63 -0
- data/docs/subcommands/flowlog_delete.md +51 -0
- data/docs/subcommands/flowlog_list.md +51 -0
- data/docs/subcommands/group_create.md +23 -3
- data/docs/subcommands/group_delete.md +5 -3
- data/docs/subcommands/group_get.md +5 -3
- data/docs/subcommands/group_list.md +5 -3
- data/docs/subcommands/group_user_add.md +4 -2
- data/docs/subcommands/group_user_remove.md +4 -2
- data/docs/subcommands/image_list.md +5 -3
- data/docs/subcommands/ipblock_create.md +5 -3
- data/docs/subcommands/ipblock_delete.md +5 -3
- data/docs/subcommands/ipblock_list.md +5 -3
- data/docs/subcommands/ipfailover_add.md +6 -4
- data/docs/subcommands/ipfailover_remove.md +5 -3
- data/docs/subcommands/k8s_create.md +11 -3
- data/docs/subcommands/k8s_delete.md +5 -3
- data/docs/subcommands/k8s_list.md +5 -3
- data/docs/subcommands/kubeconfig_get.md +5 -3
- data/docs/subcommands/label_add.md +5 -3
- data/docs/subcommands/label_list.md +5 -3
- data/docs/subcommands/label_remove.md +4 -2
- data/docs/subcommands/lan_create.md +8 -3
- data/docs/subcommands/lan_delete.md +4 -2
- data/docs/subcommands/lan_list.md +5 -3
- data/docs/subcommands/loadbalancer_create.md +5 -3
- data/docs/subcommands/loadbalancer_delete.md +4 -2
- data/docs/subcommands/loadbalancer_get.md +5 -3
- data/docs/subcommands/loadbalancer_list.md +5 -3
- data/docs/subcommands/loadbalancer_nic_add.md +4 -2
- data/docs/subcommands/loadbalancer_nic_remove.md +4 -2
- data/docs/subcommands/location_list.md +5 -3
- data/docs/subcommands/natgateway_create.md +41 -0
- data/docs/subcommands/natgateway_delete.md +35 -0
- data/docs/subcommands/natgateway_lan_add.md +46 -0
- data/docs/subcommands/natgateway_lan_remove.md +39 -0
- data/docs/subcommands/natgateway_list.md +35 -0
- data/docs/subcommands/natgateway_rule_add.md +66 -0
- data/docs/subcommands/natgateway_rule_list.md +38 -0
- data/docs/subcommands/natgateway_rule_remove.md +39 -0
- data/docs/subcommands/networkloadbalancer_create.md +54 -0
- data/docs/subcommands/networkloadbalancer_delete.md +35 -0
- data/docs/subcommands/networkloadbalancer_list.md +35 -0
- data/docs/subcommands/networkloadbalancer_rule_add.md +72 -0
- data/docs/subcommands/networkloadbalancer_rule_list.md +39 -0
- data/docs/subcommands/networkloadbalancer_rule_remove.md +39 -0
- data/docs/subcommands/networkloadbalancer_rule_target_add.md +64 -0
- data/docs/subcommands/networkloadbalancer_rule_target_list.md +43 -0
- data/docs/subcommands/networkloadbalancer_rule_target_remove.md +51 -0
- data/docs/subcommands/nic_create.md +7 -5
- data/docs/subcommands/nic_delete.md +4 -2
- data/docs/subcommands/nic_list.md +5 -3
- data/docs/subcommands/node_delete.md +4 -2
- data/docs/subcommands/node_list.md +5 -3
- data/docs/subcommands/node_replace.md +4 -2
- data/docs/subcommands/nodepool_create.md +8 -3
- data/docs/subcommands/nodepool_delete.md +4 -2
- data/docs/subcommands/nodepool_lan_add.md +49 -0
- data/docs/subcommands/nodepool_lan_remove.md +39 -0
- data/docs/subcommands/nodepool_list.md +5 -3
- data/docs/subcommands/pcc_create.md +6 -7
- data/docs/subcommands/pcc_delete.md +5 -3
- data/docs/subcommands/pcc_list.md +5 -3
- data/docs/subcommands/request_list.md +12 -4
- data/docs/subcommands/request_status.md +5 -3
- data/docs/subcommands/request_wait.md +5 -3
- data/docs/subcommands/resource_list.md +7 -3
- data/docs/subcommands/s3key_create.md +5 -3
- data/docs/subcommands/s3key_delete.md +4 -2
- data/docs/subcommands/s3key_list.md +5 -3
- data/docs/subcommands/server_console.md +39 -0
- data/docs/subcommands/server_create.md +5 -3
- data/docs/subcommands/server_delete.md +4 -2
- data/docs/subcommands/server_list.md +8 -3
- data/docs/subcommands/server_reboot.md +4 -2
- data/docs/subcommands/server_resume.md +35 -0
- data/docs/subcommands/server_start.md +4 -2
- data/docs/subcommands/server_stop.md +4 -2
- data/docs/subcommands/server_suspend.md +35 -0
- data/docs/subcommands/server_token.md +39 -0
- data/docs/subcommands/server_upgrade.md +39 -0
- data/docs/subcommands/share_create.md +5 -3
- data/docs/subcommands/share_delete.md +4 -2
- data/docs/subcommands/share_list.md +5 -3
- data/docs/subcommands/snapshot_create.md +17 -3
- data/docs/subcommands/snapshot_delete.md +5 -3
- data/docs/subcommands/snapshot_list.md +5 -3
- data/docs/subcommands/snapshot_restore.md +5 -3
- data/docs/subcommands/template_list.md +31 -0
- data/docs/subcommands/user_create.md +6 -4
- data/docs/subcommands/user_delete.md +5 -3
- data/docs/subcommands/user_list.md +5 -3
- data/docs/subcommands/user_ssourl.md +5 -3
- data/docs/subcommands/volume_attach.md +4 -2
- data/docs/subcommands/volume_create.md +12 -7
- data/docs/subcommands/volume_delete.md +4 -2
- data/docs/subcommands/volume_detach.md +4 -2
- data/docs/subcommands/volume_list.md +5 -3
- data/docs/summary.md +29 -1
- data/docs/templates/subcommand_doc.mustache +9 -7
- data/knife-ionoscloud.gemspec +1 -1
- data/lib/chef/knife/ionoscloud_backupunit_create.rb +2 -1
- data/lib/chef/knife/ionoscloud_backupunit_delete.rb +2 -1
- data/lib/chef/knife/ionoscloud_backupunit_list.rb +2 -1
- data/lib/chef/knife/ionoscloud_backupunit_ssourl.rb +3 -2
- data/lib/chef/knife/ionoscloud_base.rb +24 -1
- data/lib/chef/knife/ionoscloud_composite_server_create.rb +26 -23
- data/lib/chef/knife/ionoscloud_contract_list.rb +33 -23
- data/lib/chef/knife/ionoscloud_cube_server_create.rb +216 -0
- data/lib/chef/knife/ionoscloud_datacenter_create.rb +3 -2
- data/lib/chef/knife/ionoscloud_datacenter_delete.rb +2 -1
- data/lib/chef/knife/ionoscloud_datacenter_list.rb +5 -2
- data/lib/chef/knife/ionoscloud_firewall_create.rb +12 -4
- data/lib/chef/knife/ionoscloud_firewall_delete.rb +5 -3
- data/lib/chef/knife/ionoscloud_firewall_list.rb +6 -3
- data/lib/chef/knife/ionoscloud_flowlog_create.rb +122 -0
- data/lib/chef/knife/ionoscloud_flowlog_delete.rb +107 -0
- data/lib/chef/knife/ionoscloud_flowlog_list.rb +101 -0
- data/lib/chef/knife/ionoscloud_group_create.rb +51 -11
- data/lib/chef/knife/ionoscloud_group_delete.rb +8 -0
- data/lib/chef/knife/ionoscloud_group_get.rb +7 -0
- data/lib/chef/knife/ionoscloud_group_list.rb +20 -7
- data/lib/chef/knife/ionoscloud_group_user_add.rb +1 -0
- data/lib/chef/knife/ionoscloud_group_user_remove.rb +1 -0
- data/lib/chef/knife/ionoscloud_image_list.rb +5 -4
- data/lib/chef/knife/ionoscloud_ipblock_create.rb +2 -1
- data/lib/chef/knife/ionoscloud_ipblock_delete.rb +1 -0
- data/lib/chef/knife/ionoscloud_ipblock_list.rb +4 -1
- data/lib/chef/knife/ionoscloud_ipfailover_add.rb +2 -1
- data/lib/chef/knife/ionoscloud_ipfailover_remove.rb +2 -1
- data/lib/chef/knife/ionoscloud_k8s_create.rb +19 -0
- data/lib/chef/knife/ionoscloud_k8s_delete.rb +6 -2
- data/lib/chef/knife/ionoscloud_k8s_list.rb +1 -0
- data/lib/chef/knife/ionoscloud_kubeconfig_get.rb +1 -0
- data/lib/chef/knife/ionoscloud_label_add.rb +2 -1
- data/lib/chef/knife/ionoscloud_label_list.rb +2 -1
- data/lib/chef/knife/ionoscloud_label_remove.rb +2 -1
- data/lib/chef/knife/ionoscloud_lan_create.rb +8 -1
- data/lib/chef/knife/ionoscloud_lan_delete.rb +2 -1
- data/lib/chef/knife/ionoscloud_lan_list.rb +5 -2
- data/lib/chef/knife/ionoscloud_loadbalancer_create.rb +4 -2
- data/lib/chef/knife/ionoscloud_loadbalancer_delete.rb +2 -1
- data/lib/chef/knife/ionoscloud_loadbalancer_get.rb +2 -1
- data/lib/chef/knife/ionoscloud_loadbalancer_list.rb +2 -1
- data/lib/chef/knife/ionoscloud_loadbalancer_nic_add.rb +2 -1
- data/lib/chef/knife/ionoscloud_loadbalancer_nic_remove.rb +2 -1
- data/lib/chef/knife/ionoscloud_location_list.rb +6 -3
- data/lib/chef/knife/ionoscloud_natgateway_create.rb +70 -0
- data/lib/chef/knife/ionoscloud_natgateway_delete.rb +70 -0
- data/lib/chef/knife/ionoscloud_natgateway_lan_add.rb +81 -0
- data/lib/chef/knife/ionoscloud_natgateway_lan_remove.rb +59 -0
- data/lib/chef/knife/ionoscloud_natgateway_list.rb +50 -0
- data/lib/chef/knife/ionoscloud_natgateway_rule_add.rb +125 -0
- data/lib/chef/knife/ionoscloud_natgateway_rule_list.rb +64 -0
- data/lib/chef/knife/ionoscloud_natgateway_rule_remove.rb +73 -0
- data/lib/chef/knife/ionoscloud_networkloadbalancer_create.rb +96 -0
- data/lib/chef/knife/ionoscloud_networkloadbalancer_delete.rb +82 -0
- data/lib/chef/knife/ionoscloud_networkloadbalancer_list.rb +57 -0
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_add.rb +151 -0
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_list.rb +64 -0
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_remove.rb +79 -0
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_add.rb +142 -0
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_list.rb +69 -0
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_remove.rb +106 -0
- data/lib/chef/knife/ionoscloud_nic_create.rb +17 -14
- data/lib/chef/knife/ionoscloud_nic_delete.rb +5 -2
- data/lib/chef/knife/ionoscloud_nic_list.rb +10 -5
- data/lib/chef/knife/ionoscloud_node_delete.rb +1 -0
- data/lib/chef/knife/ionoscloud_node_list.rb +4 -2
- data/lib/chef/knife/ionoscloud_node_replace.rb +1 -0
- data/lib/chef/knife/ionoscloud_nodepool_create.rb +43 -16
- data/lib/chef/knife/ionoscloud_nodepool_delete.rb +26 -0
- data/lib/chef/knife/ionoscloud_nodepool_lan_add.rb +129 -0
- data/lib/chef/knife/ionoscloud_nodepool_lan_remove.rb +97 -0
- data/lib/chef/knife/ionoscloud_nodepool_list.rb +4 -1
- data/lib/chef/knife/ionoscloud_pcc_create.rb +36 -8
- data/lib/chef/knife/ionoscloud_pcc_delete.rb +2 -1
- data/lib/chef/knife/ionoscloud_pcc_list.rb +2 -1
- data/lib/chef/knife/ionoscloud_request_list.rb +26 -12
- data/lib/chef/knife/ionoscloud_request_status.rb +2 -1
- data/lib/chef/knife/ionoscloud_request_wait.rb +1 -0
- data/lib/chef/knife/ionoscloud_resource_list.rb +1 -0
- data/lib/chef/knife/ionoscloud_s3key_create.rb +3 -2
- data/lib/chef/knife/ionoscloud_s3key_delete.rb +4 -3
- data/lib/chef/knife/ionoscloud_s3key_list.rb +3 -2
- data/lib/chef/knife/ionoscloud_server_console.rb +43 -0
- data/lib/chef/knife/ionoscloud_server_create.rb +10 -9
- data/lib/chef/knife/ionoscloud_server_delete.rb +5 -4
- data/lib/chef/knife/ionoscloud_server_list.rb +19 -7
- data/lib/chef/knife/ionoscloud_server_reboot.rb +2 -1
- data/lib/chef/knife/ionoscloud_server_resume.rb +44 -0
- data/lib/chef/knife/ionoscloud_server_start.rb +2 -1
- data/lib/chef/knife/ionoscloud_server_stop.rb +2 -1
- data/lib/chef/knife/ionoscloud_server_suspend.rb +45 -0
- data/lib/chef/knife/ionoscloud_server_token.rb +43 -0
- data/lib/chef/knife/ionoscloud_server_upgrade.rb +45 -0
- data/lib/chef/knife/ionoscloud_share_create.rb +1 -0
- data/lib/chef/knife/ionoscloud_share_delete.rb +1 -0
- data/lib/chef/knife/ionoscloud_share_list.rb +1 -0
- data/lib/chef/knife/ionoscloud_snapshot_create.rb +27 -2
- data/lib/chef/knife/ionoscloud_snapshot_delete.rb +2 -1
- data/lib/chef/knife/ionoscloud_snapshot_list.rb +2 -1
- data/lib/chef/knife/ionoscloud_snapshot_restore.rb +3 -2
- data/lib/chef/knife/ionoscloud_template_list.rb +47 -0
- data/lib/chef/knife/ionoscloud_user_create.rb +5 -4
- data/lib/chef/knife/ionoscloud_user_delete.rb +1 -0
- data/lib/chef/knife/ionoscloud_user_list.rb +2 -1
- data/lib/chef/knife/ionoscloud_user_ssourl.rb +2 -1
- data/lib/chef/knife/ionoscloud_volume_attach.rb +2 -1
- data/lib/chef/knife/ionoscloud_volume_create.rb +34 -35
- data/lib/chef/knife/ionoscloud_volume_delete.rb +2 -1
- data/lib/chef/knife/ionoscloud_volume_detach.rb +2 -1
- data/lib/chef/knife/ionoscloud_volume_list.rb +4 -3
- data/lib/knife-ionoscloud/version.rb +1 -1
- data/spec/chef/knife/ionoscloud_backupunit_create_spec.rb +2 -2
- data/spec/chef/knife/ionoscloud_backupunit_delete_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_backupunit_list_spec.rb +1 -1
- data/spec/chef/knife/ionoscloud_backupunit_ssourl_spec.rb +3 -3
- data/spec/chef/knife/ionoscloud_base_spec.rb +4 -4
- data/spec/chef/knife/ionoscloud_composite_server_create_spec.rb +11 -8
- data/spec/chef/knife/ionoscloud_contract_list_spec.rb +32 -27
- data/spec/chef/knife/ionoscloud_cube_server_create_spec.rb +249 -0
- data/spec/chef/knife/ionoscloud_datacenter_create_spec.rb +3 -2
- data/spec/chef/knife/ionoscloud_datacenter_delete_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_datacenter_list_spec.rb +5 -3
- data/spec/chef/knife/ionoscloud_firewall_create_spec.rb +5 -3
- data/spec/chef/knife/ionoscloud_firewall_delete_spec.rb +6 -5
- data/spec/chef/knife/ionoscloud_firewall_list_spec.rb +5 -3
- data/spec/chef/knife/ionoscloud_flowlog_create_spec.rb +254 -0
- data/spec/chef/knife/ionoscloud_flowlog_delete_spec.rb +360 -0
- data/spec/chef/knife/ionoscloud_flowlog_list_spec.rb +264 -0
- data/spec/chef/knife/ionoscloud_group_create_spec.rb +12 -0
- data/spec/chef/knife/ionoscloud_group_delete_spec.rb +6 -0
- data/spec/chef/knife/ionoscloud_group_get_spec.rb +6 -0
- data/spec/chef/knife/ionoscloud_group_list_spec.rb +26 -8
- data/spec/chef/knife/ionoscloud_image_list_spec.rb +4 -4
- data/spec/chef/knife/ionoscloud_ipblock_list_spec.rb +3 -1
- data/spec/chef/knife/ionoscloud_ipfailover_add_spec.rb +3 -3
- data/spec/chef/knife/ionoscloud_ipfailover_remove_spec.rb +4 -4
- data/spec/chef/knife/ionoscloud_k8s_delete_spec.rb +5 -2
- data/spec/chef/knife/ionoscloud_kubeconfig_get_spec.rb +2 -2
- data/spec/chef/knife/ionoscloud_label_add_spec.rb +10 -10
- data/spec/chef/knife/ionoscloud_label_list_spec.rb +14 -14
- data/spec/chef/knife/ionoscloud_label_remove_spec.rb +20 -20
- data/spec/chef/knife/ionoscloud_lan_create_spec.rb +5 -3
- data/spec/chef/knife/ionoscloud_lan_delete_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_lan_list_spec.rb +5 -3
- data/spec/chef/knife/ionoscloud_loadbalancer_create_spec.rb +3 -3
- data/spec/chef/knife/ionoscloud_loadbalancer_delete_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_loadbalancer_get_spec.rb +2 -2
- data/spec/chef/knife/ionoscloud_loadbalancer_list_spec.rb +2 -2
- data/spec/chef/knife/ionoscloud_loadbalancer_nic_add_spec.rb +6 -6
- data/spec/chef/knife/ionoscloud_loadbalancer_nic_remove_spec.rb +6 -6
- data/spec/chef/knife/ionoscloud_location_list_spec.rb +5 -3
- data/spec/chef/knife/ionoscloud_natgateway_create_spec.rb +77 -0
- data/spec/chef/knife/ionoscloud_natgateway_delete_spec.rb +118 -0
- data/spec/chef/knife/ionoscloud_natgateway_lan_add_spec.rb +143 -0
- data/spec/chef/knife/ionoscloud_natgateway_lan_remove_spec.rb +194 -0
- data/spec/chef/knife/ionoscloud_natgateway_list_spec.rb +79 -0
- data/spec/chef/knife/ionoscloud_natgateway_rule_add_spec.rb +98 -0
- data/spec/chef/knife/ionoscloud_natgateway_rule_list_spec.rb +92 -0
- data/spec/chef/knife/ionoscloud_natgateway_rule_remove_spec.rb +77 -0
- data/spec/chef/knife/ionoscloud_networkloadbalancer_create_spec.rb +80 -0
- data/spec/chef/knife/ionoscloud_networkloadbalancer_delete_spec.rb +119 -0
- data/spec/chef/knife/ionoscloud_networkloadbalancer_list_spec.rb +88 -0
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_add_spec.rb +104 -0
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_list_spec.rb +89 -0
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_remove_spec.rb +124 -0
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_target_add_spec.rb +109 -0
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_target_list_spec.rb +85 -0
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_target_remove_spec.rb +263 -0
- data/spec/chef/knife/ionoscloud_nic_create_spec.rb +9 -5
- data/spec/chef/knife/ionoscloud_nic_delete_spec.rb +8 -6
- data/spec/chef/knife/ionoscloud_nic_list_spec.rb +12 -6
- data/spec/chef/knife/ionoscloud_node_list_spec.rb +3 -1
- data/spec/chef/knife/ionoscloud_nodepool_create_spec.rb +15 -1
- data/spec/chef/knife/ionoscloud_nodepool_lan_add_spec.rb +226 -0
- data/spec/chef/knife/ionoscloud_nodepool_lan_remove.rb +199 -0
- data/spec/chef/knife/ionoscloud_nodepool_list_spec.rb +3 -1
- data/spec/chef/knife/ionoscloud_pcc_create_spec.rb +36 -5
- data/spec/chef/knife/ionoscloud_pcc_delete_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_pcc_list_spec.rb +2 -2
- data/spec/chef/knife/ionoscloud_request_list_spec.rb +127 -8
- data/spec/chef/knife/ionoscloud_request_status_spec.rb +3 -3
- data/spec/chef/knife/ionoscloud_s3key_create_spec.rb +2 -2
- data/spec/chef/knife/ionoscloud_s3key_delete_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_s3key_list_spec.rb +2 -2
- data/spec/chef/knife/ionoscloud_server_console_spec.rb +97 -0
- data/spec/chef/knife/ionoscloud_server_create_spec.rb +3 -3
- data/spec/chef/knife/ionoscloud_server_delete_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_server_list_spec.rb +65 -7
- data/spec/chef/knife/ionoscloud_server_reboot_spec.rb +3 -5
- data/spec/chef/knife/ionoscloud_server_resume_spec.rb +93 -0
- data/spec/chef/knife/ionoscloud_server_start_spec.rb +3 -5
- data/spec/chef/knife/ionoscloud_server_stop_spec.rb +3 -5
- data/spec/chef/knife/ionoscloud_server_suspend_spec.rb +93 -0
- data/spec/chef/knife/ionoscloud_server_token_spec.rb +97 -0
- data/spec/chef/knife/ionoscloud_server_upgrade_spec.rb +96 -0
- data/spec/chef/knife/ionoscloud_snapshot_create_spec.rb +13 -3
- data/spec/chef/knife/ionoscloud_snapshot_delete_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_snapshot_list_spec.rb +2 -2
- data/spec/chef/knife/ionoscloud_snapshot_restore_spec.rb +3 -3
- data/spec/chef/knife/ionoscloud_template_list_spec.rb +78 -0
- data/spec/chef/knife/ionoscloud_user_ssourl_spec.rb +3 -3
- data/spec/chef/knife/ionoscloud_volume_attach_spec.rb +4 -4
- data/spec/chef/knife/ionoscloud_volume_create_spec.rb +6 -58
- data/spec/chef/knife/ionoscloud_volume_delete_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_volume_detach_spec.rb +5 -5
- data/spec/chef/knife/ionoscloud_volume_list_spec.rb +4 -4
- data/spec/spec_helper.rb +235 -36
- metadata +122 -6
@@ -0,0 +1,35 @@
|
|
1
|
+
# NatgatewayList
|
2
|
+
|
3
|
+
Lists all available NAT Gateways under a data center.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud natgateway list (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* ionoscloud\_username
|
15
|
+
* ionoscloud\_password
|
16
|
+
|
17
|
+
```text
|
18
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
19
|
+
the ID of the data center (required)
|
20
|
+
|
21
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
22
|
+
your Ionoscloud username (required)
|
23
|
+
|
24
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
25
|
+
your Ionoscloud password (required)
|
26
|
+
|
27
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
28
|
+
path to the additional config file
|
29
|
+
|
30
|
+
```
|
31
|
+
## Example
|
32
|
+
|
33
|
+
```text
|
34
|
+
knife ionoscloud natgateway list --datacenter-id DATACENTER_ID --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
|
35
|
+
```
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# NatgatewayRuleAdd
|
2
|
+
|
3
|
+
Adds a LAN to a Nat Gateway under a data center.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud natgateway rule add (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* natgateway\_id
|
15
|
+
* name
|
16
|
+
* source\_subnet
|
17
|
+
* public\_ip
|
18
|
+
* ionoscloud\_username
|
19
|
+
* ionoscloud\_password
|
20
|
+
|
21
|
+
```text
|
22
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
23
|
+
name of the data center (required)
|
24
|
+
|
25
|
+
natgateway_id: --natgateway-id NATGATEWAY_ID, -G NATGATEWAY_ID
|
26
|
+
iD of the NAT Gateway (required)
|
27
|
+
|
28
|
+
name: --name NAME, -n NAME
|
29
|
+
name of the NAT gateway rule (required)
|
30
|
+
|
31
|
+
type: --type TYPE, -t TYPE
|
32
|
+
type of the NAT gateway rule
|
33
|
+
|
34
|
+
protocol: --protocol PROTOCOL, -p PROTOCOL
|
35
|
+
protocol of the NAT gateway rule. Defaults to ALL. If protocol is 'ICMP' then target_port_range start and end cannot be set.
|
36
|
+
|
37
|
+
source_subnet: --source SOURCE_SUBNET
|
38
|
+
source subnet of the NAT gateway rule. For SNAT rules it specifies which packets this translation rule applies to based on the packets source IP address. (required)
|
39
|
+
|
40
|
+
public_ip: --ip PUBLIC_IP, -i PUBLIC_IP
|
41
|
+
public IP address of the NAT gateway rule. Specifies the address used for masking outgoing packets source address field. Should be one of the customer reserved IP address already configured on the NAT gateway resource (required)
|
42
|
+
|
43
|
+
target_subnet: --target TARGET_SUBNET
|
44
|
+
target or destination subnet of the NAT gateway rule. For SNAT rules it specifies which packets this translation rule applies to based on the packets destination IP address. If none is provided, rule will match any address
|
45
|
+
|
46
|
+
target_port_range_start: --port-start PORT_RANGE_START
|
47
|
+
target port range start associated with the NAT gateway rule
|
48
|
+
|
49
|
+
target_port_range_end: --port-end PORT_RANGE_START
|
50
|
+
target port range end associated with the NAT gateway rule
|
51
|
+
|
52
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
53
|
+
your Ionoscloud username (required)
|
54
|
+
|
55
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
56
|
+
your Ionoscloud password (required)
|
57
|
+
|
58
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
59
|
+
path to the additional config file
|
60
|
+
|
61
|
+
```
|
62
|
+
## Example
|
63
|
+
|
64
|
+
```text
|
65
|
+
knife ionoscloud natgateway rule add --datacenter-id DATACENTER_ID --natgateway-id NATGATEWAY_ID --name NAME --type TYPE --protocol PROTOCOL --source SOURCE_SUBNET --ip PUBLIC_IP --target TARGET_SUBNET --port-start PORT_RANGE_START --port-end PORT_RANGE_START --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
|
66
|
+
```
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# NatgatewayRuleList
|
2
|
+
|
3
|
+
Lists all available rules in a NAT Gateways under a data center.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud natgateway rule list (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* ionoscloud\_username
|
15
|
+
* ionoscloud\_password
|
16
|
+
|
17
|
+
```text
|
18
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
19
|
+
the ID of the data center (required)
|
20
|
+
|
21
|
+
natgateway_id: --natgateway-id NATGATEWAY_ID, -G NATGATEWAY_ID
|
22
|
+
iD of the NAT Gateway
|
23
|
+
|
24
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
25
|
+
your Ionoscloud username (required)
|
26
|
+
|
27
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
28
|
+
your Ionoscloud password (required)
|
29
|
+
|
30
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
31
|
+
path to the additional config file
|
32
|
+
|
33
|
+
```
|
34
|
+
## Example
|
35
|
+
|
36
|
+
```text
|
37
|
+
knife ionoscloud natgateway rule list --datacenter-id DATACENTER_ID --natgateway-id NATGATEWAY_ID --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
|
38
|
+
```
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# NatgatewayRuleRemove
|
2
|
+
|
3
|
+
Removes the specified rules from a Nat Gateway under a data center.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud natgateway rule remove RULE_ID [RULE_ID] (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* natgateway\_id
|
15
|
+
* ionoscloud\_username
|
16
|
+
* ionoscloud\_password
|
17
|
+
|
18
|
+
```text
|
19
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
20
|
+
name of the data center (required)
|
21
|
+
|
22
|
+
natgateway_id: --natgateway-id NATGATEWAY_ID, -G NATGATEWAY_ID
|
23
|
+
iD of the NAT Gateway (required)
|
24
|
+
|
25
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
26
|
+
your Ionoscloud username (required)
|
27
|
+
|
28
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
29
|
+
your Ionoscloud password (required)
|
30
|
+
|
31
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
32
|
+
path to the additional config file
|
33
|
+
|
34
|
+
```
|
35
|
+
## Example
|
36
|
+
|
37
|
+
```text
|
38
|
+
knife ionoscloud natgateway rule remove RULE_ID
|
39
|
+
```
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# NetworkloadbalancerCreate
|
2
|
+
|
3
|
+
Creates an Network Load Balancer within the datacenter.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud networkloadbalancer create (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* name
|
15
|
+
* listener\_lan
|
16
|
+
* target\_lan
|
17
|
+
* ips
|
18
|
+
* ionoscloud\_username
|
19
|
+
* ionoscloud\_password
|
20
|
+
|
21
|
+
```text
|
22
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
23
|
+
name of the data center (required)
|
24
|
+
|
25
|
+
name: --name NAME, -n NAME
|
26
|
+
name of the load balancer (required)
|
27
|
+
|
28
|
+
listener_lan: --listener-lan LISTENER_LAN_ID, -l LISTENER_LAN_ID
|
29
|
+
id of the listening LAN. (inbound) (required)
|
30
|
+
|
31
|
+
target_lan: --target-lan TARGET_LAN_ID, -t TARGET_LAN_ID
|
32
|
+
id of the balanced private target LAN. (outbound) (required)
|
33
|
+
|
34
|
+
ips: --ips IP[,IP,...], -i IP[,IP,...]
|
35
|
+
collection of IP addresses of the Network Load Balancer. (inbound and outbound) IP of the listenerLan must be a customer reserved IP for the public load balancer and private IP for the private load balancer. (required)
|
36
|
+
|
37
|
+
lb_private_ips: --private-ips IP[,IP,...]
|
38
|
+
collection of private IP addresses with subnet mask of the Network Load Balancer. IPs must contain valid subnet mask. If user will not provide any IP then the system will generate one IP with /24 subnet.
|
39
|
+
|
40
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
41
|
+
your Ionoscloud username (required)
|
42
|
+
|
43
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
44
|
+
your Ionoscloud password (required)
|
45
|
+
|
46
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
47
|
+
path to the additional config file
|
48
|
+
|
49
|
+
```
|
50
|
+
## Example
|
51
|
+
|
52
|
+
```text
|
53
|
+
knife ionoscloud networkloadbalancer create --datacenter-id DATACENTER_ID --name NAME --listener-lan LISTENER_LAN_ID --target-lan TARGET_LAN_ID --ips IP[,IP,...] --private-ips IP[,IP,...] --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
|
54
|
+
```
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# NetworkloadbalancerDelete
|
2
|
+
|
3
|
+
Removes the specified Network Load Balancer.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud networkloadbalancer delete LOAD_BALANCER_ID [LOAD_BALANCER_ID] (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* ionoscloud\_username
|
15
|
+
* ionoscloud\_password
|
16
|
+
|
17
|
+
```text
|
18
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
19
|
+
name of the data center (required)
|
20
|
+
|
21
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
22
|
+
your Ionoscloud username (required)
|
23
|
+
|
24
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
25
|
+
your Ionoscloud password (required)
|
26
|
+
|
27
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
28
|
+
path to the additional config file
|
29
|
+
|
30
|
+
```
|
31
|
+
## Example
|
32
|
+
|
33
|
+
```text
|
34
|
+
knife ionoscloud networkloadbalancer delete LOAD_BALANCER_ID
|
35
|
+
```
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# NetworkloadbalancerList
|
2
|
+
|
3
|
+
Retrieve a list of Network Load Balancers within the datacenter.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud networkloadbalancer list (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* ionoscloud\_username
|
15
|
+
* ionoscloud\_password
|
16
|
+
|
17
|
+
```text
|
18
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
19
|
+
name of the data center (required)
|
20
|
+
|
21
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
22
|
+
your Ionoscloud username (required)
|
23
|
+
|
24
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
25
|
+
your Ionoscloud password (required)
|
26
|
+
|
27
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
28
|
+
path to the additional config file
|
29
|
+
|
30
|
+
```
|
31
|
+
## Example
|
32
|
+
|
33
|
+
```text
|
34
|
+
knife ionoscloud networkloadbalancer list --datacenter-id DATACENTER_ID --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
|
35
|
+
```
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# NetworkloadbalancerRuleAdd
|
2
|
+
|
3
|
+
Adds a Forwarding Rule to a Network Load Balancer under a data center.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud networkloadbalancer rule add (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* network\_loadbalancer\_id
|
15
|
+
* name
|
16
|
+
* listener\_ip
|
17
|
+
* listener\_port
|
18
|
+
* ionoscloud\_username
|
19
|
+
* ionoscloud\_password
|
20
|
+
|
21
|
+
```text
|
22
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
23
|
+
name of the data center (required)
|
24
|
+
|
25
|
+
network_loadbalancer_id: --network-loadbalancer NETWORK_LOADBALANCER_ID, -L NETWORK_LOADBALANCER_ID
|
26
|
+
iD of the Network Loadbalancer (required)
|
27
|
+
|
28
|
+
name: --name NAME, -n NAME
|
29
|
+
a name of that Network Load Balancer forwarding rule (required)
|
30
|
+
|
31
|
+
algorithm: --algorithm ALGORITHM, -a ALGORITHM
|
32
|
+
algorithm for the balancing
|
33
|
+
|
34
|
+
protocol: --protocol PROTOCOL
|
35
|
+
protocol of the balancing
|
36
|
+
|
37
|
+
listener_ip: --ip LISTENER_IP, -i LISTENER_IP
|
38
|
+
listening IP. (inbound) (required)
|
39
|
+
|
40
|
+
listener_port: --port LISTENER_PORT, -p LISTENER_PORT
|
41
|
+
listening port number. (inbound) (range: 1 to 65535) (required)
|
42
|
+
|
43
|
+
client_timeout: --client-timeout CLIENT_TIMEOUT
|
44
|
+
clientTimeout is expressed in milliseconds. This inactivity timeout applies when the client is expected to acknowledge or send data. If unset the default of 50 seconds will be used.
|
45
|
+
|
46
|
+
check_timeout: --check-timeout CLIENT_TIMEOUT
|
47
|
+
it specifies the time (in milliseconds) for a target VM in this pool to answer the check. If a target VM has CheckInterval set and CheckTimeout is set too, then the smaller value of the two is used after the TCP connection is established.
|
48
|
+
|
49
|
+
connect_timeout: --connect-timeout CONNECT_TIMEOUT
|
50
|
+
it specifies the maximum time (in milliseconds) to wait for a connection attempt to a target VM to succeed. If unset, the default of 5 seconds will be used.
|
51
|
+
|
52
|
+
target_timeout: --terget-timeout TARGET_TIMEOUT
|
53
|
+
targetTimeout specifies the maximum inactivity time (in milliseconds) on the target VM side. If unset, the default of 50 seconds will be used.
|
54
|
+
|
55
|
+
retries: --retries RETRIES, -r RETRIES
|
56
|
+
retries specifies the number of retries to perform on a target VM after a connection failure. If unset, the default value of 3 will be used. (valid range: [0, 65535])
|
57
|
+
|
58
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
59
|
+
your Ionoscloud username (required)
|
60
|
+
|
61
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
62
|
+
your Ionoscloud password (required)
|
63
|
+
|
64
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
65
|
+
path to the additional config file
|
66
|
+
|
67
|
+
```
|
68
|
+
## Example
|
69
|
+
|
70
|
+
```text
|
71
|
+
knife ionoscloud networkloadbalancer rule add --datacenter-id DATACENTER_ID --network-loadbalancer NETWORK_LOADBALANCER_ID --name NAME --algorithm ALGORITHM --protocol PROTOCOL --ip LISTENER_IP --port LISTENER_PORT --client-timeout CLIENT_TIMEOUT --check-timeout CLIENT_TIMEOUT --connect-timeout CONNECT_TIMEOUT --terget-timeout TARGET_TIMEOUT --retries RETRIES --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
|
72
|
+
```
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# NetworkloadbalancerRuleList
|
2
|
+
|
3
|
+
Lists all available rules in a Network Loadbalancer under a data center.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud networkloadbalancer rule list (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* network\_loadbalancer\_id
|
15
|
+
* ionoscloud\_username
|
16
|
+
* ionoscloud\_password
|
17
|
+
|
18
|
+
```text
|
19
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
20
|
+
the ID of the data center (required)
|
21
|
+
|
22
|
+
network_loadbalancer_id: --network-loadbalancer NETWORK_LOADBALANCER_ID, -L NETWORK_LOADBALANCER_ID
|
23
|
+
iD of the Network Loadbalancer (required)
|
24
|
+
|
25
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
26
|
+
your Ionoscloud username (required)
|
27
|
+
|
28
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
29
|
+
your Ionoscloud password (required)
|
30
|
+
|
31
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
32
|
+
path to the additional config file
|
33
|
+
|
34
|
+
```
|
35
|
+
## Example
|
36
|
+
|
37
|
+
```text
|
38
|
+
knife ionoscloud networkloadbalancer rule list --datacenter-id DATACENTER_ID --network-loadbalancer NETWORK_LOADBALANCER_ID --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
|
39
|
+
```
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# NetworkloadbalancerRuleRemove
|
2
|
+
|
3
|
+
Removes the specified rules from a Network Loadbalancer under a data center.
|
4
|
+
|
5
|
+
```text
|
6
|
+
knife ionoscloud networkloadbalancer rule remove RULE_ID [RULE_ID] (options)
|
7
|
+
```
|
8
|
+
|
9
|
+
## Available options:
|
10
|
+
|
11
|
+
### Required options:
|
12
|
+
|
13
|
+
* datacenter\_id
|
14
|
+
* network\_loadbalancer\_id
|
15
|
+
* ionoscloud\_username
|
16
|
+
* ionoscloud\_password
|
17
|
+
|
18
|
+
```text
|
19
|
+
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
|
20
|
+
the ID of the data center (required)
|
21
|
+
|
22
|
+
network_loadbalancer_id: --network-loadbalancer NETWORK_LOADBALANCER_ID, -L NETWORK_LOADBALANCER_ID
|
23
|
+
iD of the Network Loadbalancer (required)
|
24
|
+
|
25
|
+
ionoscloud_username: --username USERNAME, -u USERNAME
|
26
|
+
your Ionoscloud username (required)
|
27
|
+
|
28
|
+
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
29
|
+
your Ionoscloud password (required)
|
30
|
+
|
31
|
+
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
32
|
+
path to the additional config file
|
33
|
+
|
34
|
+
```
|
35
|
+
## Example
|
36
|
+
|
37
|
+
```text
|
38
|
+
knife ionoscloud networkloadbalancer rule remove RULE_ID
|
39
|
+
```
|