knife-ionoscloud 6.0.0 → 6.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/IONOS.CLOUD.BLU.svg +1 -0
- data/.github/workflows/build.yml +17 -0
- data/.rubocop.yml +72 -0
- data/README.md +19 -8
- data/docs/README.md +16 -8
- data/docs/changelog.md +19 -0
- data/docs/docs_generator.rb +61 -29
- data/docs/subcommands/{backupunit_create.md → backup/backupunit_create.md} +9 -8
- data/docs/subcommands/{backupunit_delete.md → backup/backupunit_delete.md} +8 -7
- data/docs/subcommands/{backupunit_get.md → backup/backupunit_get.md} +8 -7
- data/docs/subcommands/{backupunit_list.md → backup/backupunit_list.md} +8 -7
- data/docs/subcommands/{backupunit_ssourl.md → backup/backupunit_ssourl.md} +8 -7
- data/docs/subcommands/{backupunit_update.md → backup/backupunit_update.md} +8 -7
- data/docs/subcommands/{composite_server_create.md → compute-engine/composite_server_create.md} +16 -9
- data/docs/subcommands/{cube_server_create.md → compute-engine/cube_server_create.md} +8 -7
- data/docs/subcommands/{datacenter_create.md → compute-engine/datacenter_create.md} +8 -7
- data/docs/subcommands/{datacenter_delete.md → compute-engine/datacenter_delete.md} +8 -7
- data/docs/subcommands/{datacenter_get.md → compute-engine/datacenter_get.md} +8 -7
- data/docs/subcommands/{datacenter_list.md → compute-engine/datacenter_list.md} +8 -7
- data/docs/subcommands/{datacenter_update.md → compute-engine/datacenter_update.md} +8 -7
- data/docs/subcommands/{firewall_create.md → compute-engine/firewall_create.md} +13 -9
- data/docs/subcommands/{firewall_delete.md → compute-engine/firewall_delete.md} +7 -6
- data/docs/subcommands/{firewall_get.md → compute-engine/firewall_get.md} +8 -7
- data/docs/subcommands/{firewall_list.md → compute-engine/firewall_list.md} +8 -7
- data/docs/subcommands/{firewall_update.md → compute-engine/firewall_update.md} +8 -7
- data/docs/subcommands/{flowlog_create.md → compute-engine/flowlog_create.md} +8 -7
- data/docs/subcommands/{flowlog_delete.md → compute-engine/flowlog_delete.md} +7 -6
- data/docs/subcommands/{flowlog_get.md → compute-engine/flowlog_get.md} +8 -7
- data/docs/subcommands/{flowlog_list.md → compute-engine/flowlog_list.md} +8 -7
- data/docs/subcommands/{flowlog_update.md → compute-engine/flowlog_update.md} +8 -7
- data/docs/subcommands/{image_list.md → compute-engine/image_list.md} +8 -7
- data/docs/subcommands/{ipblock_create.md → compute-engine/ipblock_create.md} +8 -7
- data/docs/subcommands/{ipblock_delete.md → compute-engine/ipblock_delete.md} +8 -7
- data/docs/subcommands/{ipblock_get.md → compute-engine/ipblock_get.md} +8 -7
- data/docs/subcommands/{ipblock_list.md → compute-engine/ipblock_list.md} +8 -7
- data/docs/subcommands/{ipblock_update.md → compute-engine/ipblock_update.md} +8 -7
- data/docs/subcommands/{ipfailover_add.md → compute-engine/ipfailover_add.md} +8 -7
- data/docs/subcommands/{ipfailover_remove.md → compute-engine/ipfailover_remove.md} +8 -7
- data/docs/subcommands/{label_add.md → compute-engine/label_add.md} +8 -7
- data/docs/subcommands/{label_list.md → compute-engine/label_list.md} +8 -7
- data/docs/subcommands/{label_remove.md → compute-engine/label_remove.md} +7 -6
- data/docs/subcommands/{lan_create.md → compute-engine/lan_create.md} +8 -7
- data/docs/subcommands/{lan_delete.md → compute-engine/lan_delete.md} +7 -6
- data/docs/subcommands/{lan_get.md → compute-engine/lan_get.md} +8 -7
- data/docs/subcommands/{lan_list.md → compute-engine/lan_list.md} +8 -7
- data/docs/subcommands/{lan_update.md → compute-engine/lan_update.md} +8 -10
- data/docs/subcommands/{loadbalancer_create.md → compute-engine/loadbalancer_create.md} +9 -8
- data/docs/subcommands/{loadbalancer_delete.md → compute-engine/loadbalancer_delete.md} +7 -6
- data/docs/subcommands/{loadbalancer_get.md → compute-engine/loadbalancer_get.md} +8 -7
- data/docs/subcommands/{loadbalancer_list.md → compute-engine/loadbalancer_list.md} +8 -7
- data/docs/subcommands/{loadbalancer_nic_add.md → compute-engine/loadbalancer_nic_add.md} +7 -6
- data/docs/subcommands/{loadbalancer_nic_remove.md → compute-engine/loadbalancer_nic_remove.md} +7 -6
- data/docs/subcommands/{loadbalancer_update.md → compute-engine/loadbalancer_update.md} +8 -7
- data/docs/subcommands/{location_list.md → compute-engine/location_list.md} +8 -7
- data/docs/subcommands/{natgateway_create.md → compute-engine/natgateway_create.md} +8 -7
- data/docs/subcommands/{natgateway_delete.md → compute-engine/natgateway_delete.md} +7 -6
- data/docs/subcommands/{natgateway_get.md → compute-engine/natgateway_get.md} +8 -7
- data/docs/subcommands/{natgateway_lan_add.md → compute-engine/natgateway_lan_add.md} +8 -7
- data/docs/subcommands/{natgateway_lan_remove.md → compute-engine/natgateway_lan_remove.md} +7 -6
- data/docs/subcommands/{natgateway_list.md → compute-engine/natgateway_list.md} +8 -7
- data/docs/subcommands/{natgateway_rule_add.md → compute-engine/natgateway_rule_add.md} +8 -7
- data/docs/subcommands/{natgateway_rule_list.md → compute-engine/natgateway_rule_list.md} +8 -7
- data/docs/subcommands/{natgateway_rule_remove.md → compute-engine/natgateway_rule_remove.md} +7 -6
- data/docs/subcommands/{natgateway_rule_update.md → compute-engine/natgateway_rule_update.md} +8 -7
- data/docs/subcommands/{natgateway_update.md → compute-engine/natgateway_update.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_create.md → compute-engine/networkloadbalancer_create.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_delete.md → compute-engine/networkloadbalancer_delete.md} +7 -6
- data/docs/subcommands/{networkloadbalancer_get.md → compute-engine/networkloadbalancer_get.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_list.md → compute-engine/networkloadbalancer_list.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_rule_add.md → compute-engine/networkloadbalancer_rule_add.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_rule_list.md → compute-engine/networkloadbalancer_rule_list.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_rule_remove.md → compute-engine/networkloadbalancer_rule_remove.md} +7 -6
- data/docs/subcommands/{networkloadbalancer_rule_target_add.md → compute-engine/networkloadbalancer_rule_target_add.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_rule_target_list.md → compute-engine/networkloadbalancer_rule_target_list.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_rule_target_remove.md → compute-engine/networkloadbalancer_rule_target_remove.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_rule_update.md → compute-engine/networkloadbalancer_rule_update.md} +8 -7
- data/docs/subcommands/{networkloadbalancer_update.md → compute-engine/networkloadbalancer_update.md} +8 -7
- data/docs/subcommands/{nic_create.md → compute-engine/nic_create.md} +11 -10
- data/docs/subcommands/{nic_delete.md → compute-engine/nic_delete.md} +8 -7
- data/docs/subcommands/{nic_get.md → compute-engine/nic_get.md} +8 -7
- data/docs/subcommands/{nic_list.md → compute-engine/nic_list.md} +8 -7
- data/docs/subcommands/{nic_update.md → compute-engine/nic_update.md} +10 -9
- data/docs/subcommands/{pcc_create.md → compute-engine/pcc_create.md} +8 -7
- data/docs/subcommands/{pcc_delete.md → compute-engine/pcc_delete.md} +8 -7
- data/docs/subcommands/{pcc_get.md → compute-engine/pcc_get.md} +8 -7
- data/docs/subcommands/{pcc_list.md → compute-engine/pcc_list.md} +8 -7
- data/docs/subcommands/{pcc_update.md → compute-engine/pcc_update.md} +8 -7
- data/docs/subcommands/{request_get.md → compute-engine/request_get.md} +8 -7
- data/docs/subcommands/{request_list.md → compute-engine/request_list.md} +8 -7
- data/docs/subcommands/{request_status.md → compute-engine/request_status.md} +8 -7
- data/docs/subcommands/{request_wait.md → compute-engine/request_wait.md} +8 -7
- data/docs/subcommands/{server_console.md → compute-engine/server_console.md} +8 -7
- data/docs/subcommands/{server_create.md → compute-engine/server_create.md} +8 -7
- data/docs/subcommands/{server_delete.md → compute-engine/server_delete.md} +7 -6
- data/docs/subcommands/{server_get.md → compute-engine/server_get.md} +8 -7
- data/docs/subcommands/{server_list.md → compute-engine/server_list.md} +11 -7
- data/docs/subcommands/{server_reboot.md → compute-engine/server_reboot.md} +7 -6
- data/docs/subcommands/{server_resume.md → compute-engine/server_resume.md} +7 -6
- data/docs/subcommands/{server_start.md → compute-engine/server_start.md} +7 -6
- data/docs/subcommands/{server_stop.md → compute-engine/server_stop.md} +7 -6
- data/docs/subcommands/{server_suspend.md → compute-engine/server_suspend.md} +7 -6
- data/docs/subcommands/{server_token.md → compute-engine/server_token.md} +8 -7
- data/docs/subcommands/{server_update.md → compute-engine/server_update.md} +8 -7
- data/docs/subcommands/{server_upgrade.md → compute-engine/server_upgrade.md} +8 -7
- data/docs/subcommands/{snapshot_create.md → compute-engine/snapshot_create.md} +8 -7
- data/docs/subcommands/{snapshot_delete.md → compute-engine/snapshot_delete.md} +8 -7
- data/docs/subcommands/{snapshot_get.md → compute-engine/snapshot_get.md} +8 -7
- data/docs/subcommands/{snapshot_list.md → compute-engine/snapshot_list.md} +8 -7
- data/docs/subcommands/{snapshot_restore.md → compute-engine/snapshot_restore.md} +8 -7
- data/docs/subcommands/{snapshot_update.md → compute-engine/snapshot_update.md} +18 -17
- data/docs/subcommands/{template_list.md → compute-engine/template_list.md} +8 -7
- data/docs/subcommands/{volume_attach.md → compute-engine/volume_attach.md} +7 -6
- data/docs/subcommands/{volume_create.md → compute-engine/volume_create.md} +9 -29
- data/docs/subcommands/{volume_delete.md → compute-engine/volume_delete.md} +7 -6
- data/docs/subcommands/{volume_detach.md → compute-engine/volume_detach.md} +7 -6
- data/docs/subcommands/{volume_get.md → compute-engine/volume_get.md} +8 -7
- data/docs/subcommands/{volume_list.md → compute-engine/volume_list.md} +8 -7
- data/docs/subcommands/{volume_update.md → compute-engine/volume_update.md} +8 -7
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_backup_get.md +39 -0
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_backup_list.md +38 -0
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_create.md +104 -0
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_delete.md +35 -0
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_get.md +39 -0
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_list.md +35 -0
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_restore.md +45 -0
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_update.md +66 -0
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_logs_get.md +57 -0
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_version_list.md +38 -0
- data/docs/subcommands/{k8s_create.md → kubernetes/k8s_create.md} +12 -11
- data/docs/subcommands/{k8s_delete.md → kubernetes/k8s_delete.md} +8 -7
- data/docs/subcommands/{k8s_get.md → kubernetes/k8s_get.md} +8 -7
- data/docs/subcommands/{k8s_list.md → kubernetes/k8s_list.md} +8 -7
- data/docs/subcommands/{k8s_update.md → kubernetes/k8s_update.md} +8 -7
- data/docs/subcommands/{kubeconfig_get.md → kubernetes/kubeconfig_get.md} +8 -7
- data/docs/subcommands/{node_delete.md → kubernetes/node_delete.md} +7 -6
- data/docs/subcommands/{node_get.md → kubernetes/node_get.md} +8 -7
- data/docs/subcommands/{node_list.md → kubernetes/node_list.md} +8 -7
- data/docs/subcommands/{node_replace.md → kubernetes/node_replace.md} +7 -6
- data/docs/subcommands/{nodepool_create.md → kubernetes/nodepool_create.md} +12 -11
- data/docs/subcommands/{nodepool_delete.md → kubernetes/nodepool_delete.md} +7 -6
- data/docs/subcommands/{nodepool_get.md → kubernetes/nodepool_get.md} +8 -7
- data/docs/subcommands/{nodepool_lan_add.md → kubernetes/nodepool_lan_add.md} +8 -7
- data/docs/subcommands/{nodepool_lan_remove.md → kubernetes/nodepool_lan_remove.md} +7 -6
- data/docs/subcommands/{nodepool_list.md → kubernetes/nodepool_list.md} +8 -7
- data/docs/subcommands/{nodepool_update.md → kubernetes/nodepool_update.md} +8 -7
- data/docs/subcommands/{contract_list.md → user/contract_list.md} +8 -7
- data/docs/subcommands/{group_create.md → user/group_create.md} +17 -7
- data/docs/subcommands/{group_delete.md → user/group_delete.md} +8 -7
- data/docs/subcommands/{group_get.md → user/group_get.md} +8 -7
- data/docs/subcommands/{group_list.md → user/group_list.md} +8 -7
- data/docs/subcommands/{group_update.md → user/group_update.md} +17 -7
- data/docs/subcommands/{group_user_add.md → user/group_user_add.md} +7 -6
- data/docs/subcommands/{group_user_remove.md → user/group_user_remove.md} +7 -6
- data/docs/subcommands/{resource_list.md → user/resource_list.md} +8 -7
- data/docs/subcommands/{s3key_create.md → user/s3key_create.md} +8 -7
- data/docs/subcommands/{s3key_delete.md → user/s3key_delete.md} +7 -6
- data/docs/subcommands/{s3key_get.md → user/s3key_get.md} +8 -7
- data/docs/subcommands/{s3key_list.md → user/s3key_list.md} +8 -7
- data/docs/subcommands/{share_create.md → user/share_create.md} +9 -8
- data/docs/subcommands/{share_delete.md → user/share_delete.md} +9 -8
- data/docs/subcommands/{share_get.md → user/share_get.md} +8 -7
- data/docs/subcommands/{share_list.md → user/share_list.md} +8 -7
- data/docs/subcommands/{share_update.md → user/share_update.md} +8 -7
- data/docs/subcommands/{user_create.md → user/user_create.md} +10 -15
- data/docs/subcommands/{user_delete.md → user/user_delete.md} +8 -7
- data/docs/subcommands/{user_get.md → user/user_get.md} +8 -7
- data/docs/subcommands/{user_list.md → user/user_list.md} +8 -7
- data/docs/subcommands/{user_ssourl.md → user/user_ssourl.md} +8 -7
- data/docs/subcommands/{user_update.md → user/user_update.md} +8 -7
- data/docs/summary.md +167 -152
- data/docs/templates/summary.mustache +6 -3
- data/knife-ionoscloud.gemspec +2 -1
- data/lib/chef/knife/ionoscloud_backupunit_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_backupunit_delete.rb +2 -4
- data/lib/chef/knife/ionoscloud_backupunit_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_backupunit_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_backupunit_ssourl.rb +2 -3
- data/lib/chef/knife/ionoscloud_backupunit_update.rb +3 -4
- data/lib/chef/knife/ionoscloud_base.rb +77 -2
- data/lib/chef/knife/ionoscloud_composite_server_create.rb +4 -5
- data/lib/chef/knife/ionoscloud_contract_list.rb +2 -5
- data/lib/chef/knife/ionoscloud_cube_server_create.rb +5 -6
- data/lib/chef/knife/ionoscloud_datacenter_create.rb +4 -5
- data/lib/chef/knife/ionoscloud_datacenter_delete.rb +2 -4
- data/lib/chef/knife/ionoscloud_datacenter_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_datacenter_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_datacenter_update.rb +4 -5
- data/lib/chef/knife/ionoscloud_dbaas_postgres_backup_get.rb +33 -0
- data/lib/chef/knife/ionoscloud_dbaas_postgres_backup_list.rb +58 -0
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_create.rb +162 -0
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_delete.rb +48 -0
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_get.rb +34 -0
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_list.rb +54 -0
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_restore.rb +48 -0
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_update.rb +100 -0
- data/lib/chef/knife/ionoscloud_dbaas_postgres_logs_get.rb +90 -0
- data/lib/chef/knife/ionoscloud_dbaas_postgres_version_list.rb +49 -0
- data/lib/chef/knife/ionoscloud_firewall_create.rb +3 -4
- data/lib/chef/knife/ionoscloud_firewall_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_firewall_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_firewall_list.rb +3 -4
- data/lib/chef/knife/ionoscloud_firewall_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_flowlog_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_flowlog_delete.rb +3 -6
- data/lib/chef/knife/ionoscloud_flowlog_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_flowlog_list.rb +5 -8
- data/lib/chef/knife/ionoscloud_flowlog_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_group_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_group_delete.rb +2 -4
- data/lib/chef/knife/ionoscloud_group_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_group_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_group_update.rb +3 -4
- data/lib/chef/knife/ionoscloud_group_user_add.rb +2 -3
- data/lib/chef/knife/ionoscloud_group_user_remove.rb +2 -3
- data/lib/chef/knife/ionoscloud_image_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_ipblock_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_ipblock_delete.rb +2 -4
- data/lib/chef/knife/ionoscloud_ipblock_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_ipblock_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_ipblock_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_ipfailover_add.rb +2 -3
- data/lib/chef/knife/ionoscloud_ipfailover_remove.rb +2 -3
- data/lib/chef/knife/ionoscloud_k8s_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_k8s_delete.rb +3 -5
- data/lib/chef/knife/ionoscloud_k8s_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_k8s_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_k8s_update.rb +4 -9
- data/lib/chef/knife/ionoscloud_kubeconfig_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_label_add.rb +2 -3
- data/lib/chef/knife/ionoscloud_label_list.rb +2 -6
- data/lib/chef/knife/ionoscloud_label_remove.rb +2 -3
- data/lib/chef/knife/ionoscloud_lan_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_lan_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_lan_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_lan_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_lan_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_loadbalancer_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_loadbalancer_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_loadbalancer_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_loadbalancer_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_loadbalancer_nic_add.rb +2 -3
- data/lib/chef/knife/ionoscloud_loadbalancer_nic_remove.rb +2 -3
- data/lib/chef/knife/ionoscloud_loadbalancer_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_location_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_natgateway_create.rb +3 -4
- data/lib/chef/knife/ionoscloud_natgateway_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_natgateway_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_natgateway_lan_add.rb +2 -3
- data/lib/chef/knife/ionoscloud_natgateway_lan_remove.rb +2 -3
- data/lib/chef/knife/ionoscloud_natgateway_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_natgateway_rule_add.rb +3 -4
- data/lib/chef/knife/ionoscloud_natgateway_rule_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_natgateway_rule_remove.rb +2 -3
- data/lib/chef/knife/ionoscloud_natgateway_rule_update.rb +3 -4
- data/lib/chef/knife/ionoscloud_natgateway_update.rb +3 -5
- data/lib/chef/knife/ionoscloud_networkloadbalancer_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_networkloadbalancer_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_networkloadbalancer_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_networkloadbalancer_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_add.rb +3 -5
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_remove.rb +2 -3
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_add.rb +2 -3
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_remove.rb +3 -5
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_update.rb +3 -5
- data/lib/chef/knife/ionoscloud_networkloadbalancer_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_nic_create.rb +5 -6
- data/lib/chef/knife/ionoscloud_nic_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_nic_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_nic_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_nic_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_node_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_node_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_node_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_node_replace.rb +5 -6
- data/lib/chef/knife/ionoscloud_nodepool_create.rb +4 -5
- data/lib/chef/knife/ionoscloud_nodepool_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_nodepool_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_nodepool_lan_add.rb +2 -3
- data/lib/chef/knife/ionoscloud_nodepool_lan_remove.rb +2 -3
- data/lib/chef/knife/ionoscloud_nodepool_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_nodepool_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_pcc_create.rb +1 -3
- data/lib/chef/knife/ionoscloud_pcc_delete.rb +2 -4
- data/lib/chef/knife/ionoscloud_pcc_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_pcc_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_pcc_update.rb +3 -4
- data/lib/chef/knife/ionoscloud_request_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_request_list.rb +7 -21
- data/lib/chef/knife/ionoscloud_request_status.rb +2 -3
- data/lib/chef/knife/ionoscloud_request_wait.rb +2 -3
- data/lib/chef/knife/ionoscloud_resource_list.rb +11 -15
- data/lib/chef/knife/ionoscloud_s3key_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_s3key_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_s3key_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_s3key_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_console.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_create.rb +5 -6
- data/lib/chef/knife/ionoscloud_server_delete.rb +5 -6
- data/lib/chef/knife/ionoscloud_server_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_reboot.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_resume.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_start.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_stop.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_suspend.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_token.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_server_upgrade.rb +3 -4
- data/lib/chef/knife/ionoscloud_share_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_share_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_share_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_share_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_share_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_snapshot_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_snapshot_delete.rb +2 -4
- data/lib/chef/knife/ionoscloud_snapshot_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_snapshot_list.rb +2 -4
- data/lib/chef/knife/ionoscloud_snapshot_restore.rb +2 -3
- data/lib/chef/knife/ionoscloud_snapshot_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_template_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_user_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_user_delete.rb +2 -4
- data/lib/chef/knife/ionoscloud_user_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_user_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_user_ssourl.rb +2 -3
- data/lib/chef/knife/ionoscloud_user_update.rb +2 -3
- data/lib/chef/knife/ionoscloud_volume_attach.rb +2 -3
- data/lib/chef/knife/ionoscloud_volume_create.rb +2 -3
- data/lib/chef/knife/ionoscloud_volume_delete.rb +3 -4
- data/lib/chef/knife/ionoscloud_volume_detach.rb +6 -7
- data/lib/chef/knife/ionoscloud_volume_get.rb +2 -3
- data/lib/chef/knife/ionoscloud_volume_list.rb +2 -3
- data/lib/chef/knife/ionoscloud_volume_update.rb +2 -3
- data/lib/knife-ionoscloud/version.rb +1 -1
- data/sonar-project.properties +3 -0
- data/spec/chef/knife/ionoscloud_backupunit_create_spec.rb +11 -9
- data/spec/chef/knife/ionoscloud_backupunit_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_backupunit_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_backupunit_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_backupunit_ssourl_spec.rb +11 -12
- data/spec/chef/knife/ionoscloud_backupunit_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_base_spec.rb +52 -4
- data/spec/chef/knife/ionoscloud_composite_server_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_contract_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_cube_server_create_spec.rb +12 -10
- data/spec/chef/knife/ionoscloud_datacenter_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_datacenter_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_datacenter_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_datacenter_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_datacenter_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_dbaas_postgres_backup_get_spec.rb +69 -0
- data/spec/chef/knife/ionoscloud_dbaas_postgres_backup_list_spec.rb +113 -0
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_create_spec.rb +103 -0
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_delete_spec.rb +112 -0
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_get_spec.rb +76 -0
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_list_spec.rb +88 -0
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_restore_spec.rb +61 -0
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_update_spec.rb +92 -0
- data/spec/chef/knife/ionoscloud_dbaas_postgres_logs_get_spec.rb +141 -0
- data/spec/chef/knife/ionoscloud_dbaas_postgres_version_list_spec.rb +96 -0
- data/spec/chef/knife/ionoscloud_firewall_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_firewall_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_firewall_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_firewall_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_firewall_update_spec.rb +12 -10
- data/spec/chef/knife/ionoscloud_flowlog_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_flowlog_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_flowlog_get_spec.rb +10 -9
- data/spec/chef/knife/ionoscloud_flowlog_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_flowlog_update_spec.rb +10 -9
- data/spec/chef/knife/ionoscloud_group_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_group_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_group_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_group_list_spec.rb +12 -10
- data/spec/chef/knife/ionoscloud_group_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_group_user_add_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_group_user_remove_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_image_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_ipblock_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_ipblock_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_ipblock_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_ipblock_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_ipblock_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_ipfailover_add_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_ipfailover_remove_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_k8s_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_k8s_delete_spec.rb +13 -11
- data/spec/chef/knife/ionoscloud_k8s_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_k8s_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_k8s_update_spec.rb +12 -10
- data/spec/chef/knife/ionoscloud_kubeconfig_get_spec.rb +11 -12
- data/spec/chef/knife/ionoscloud_label_add_spec.rb +11 -9
- data/spec/chef/knife/ionoscloud_label_list_spec.rb +14 -12
- data/spec/chef/knife/ionoscloud_label_remove_spec.rb +11 -9
- data/spec/chef/knife/ionoscloud_lan_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_lan_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_lan_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_lan_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_lan_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_loadbalancer_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_loadbalancer_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_loadbalancer_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_loadbalancer_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_loadbalancer_nic_add_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_loadbalancer_nic_remove_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_loadbalancer_update_spec.rb +11 -9
- data/spec/chef/knife/ionoscloud_location_list_spec.rb +11 -9
- data/spec/chef/knife/ionoscloud_natgateway_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_natgateway_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_natgateway_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_natgateway_lan_add_spec.rb +12 -10
- data/spec/chef/knife/ionoscloud_natgateway_lan_remove_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_natgateway_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_natgateway_rule_add_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_natgateway_rule_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_natgateway_rule_remove_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_natgateway_rule_update_spec.rb +14 -12
- data/spec/chef/knife/ionoscloud_natgateway_update_spec.rb +14 -13
- data/spec/chef/knife/ionoscloud_networkloadbalancer_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_networkloadbalancer_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_networkloadbalancer_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_networkloadbalancer_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_add_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_remove_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_target_add_spec.rb +11 -9
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_target_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_target_remove_spec.rb +22 -22
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_update_spec.rb +14 -13
- data/spec/chef/knife/ionoscloud_networkloadbalancer_update_spec.rb +12 -10
- data/spec/chef/knife/ionoscloud_nic_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_nic_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_nic_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_nic_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_nic_update_spec.rb +11 -9
- data/spec/chef/knife/ionoscloud_node_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_node_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_node_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_node_replace_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_nodepool_create_spec.rb +11 -8
- data/spec/chef/knife/ionoscloud_nodepool_delete_spec.rb +11 -8
- data/spec/chef/knife/ionoscloud_nodepool_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_nodepool_lan_add_spec.rb +11 -10
- data/spec/chef/knife/{ionoscloud_nodepool_lan_remove.rb → ionoscloud_nodepool_lan_remove_spec.rb} +22 -24
- data/spec/chef/knife/ionoscloud_nodepool_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_nodepool_update_spec.rb +12 -10
- data/spec/chef/knife/ionoscloud_pcc_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_pcc_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_pcc_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_pcc_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_pcc_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_request_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_request_list_spec.rb +11 -10
- data/spec/chef/knife/ionoscloud_request_status_spec.rb +11 -12
- data/spec/chef/knife/ionoscloud_request_wait_spec.rb +11 -13
- data/spec/chef/knife/ionoscloud_resource_list_spec.rb +11 -10
- data/spec/chef/knife/ionoscloud_s3key_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_s3key_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_s3key_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_s3key_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_console_spec.rb +11 -12
- data/spec/chef/knife/ionoscloud_server_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_reboot_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_resume_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_start_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_stop_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_suspend_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_token_spec.rb +11 -12
- data/spec/chef/knife/ionoscloud_server_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_server_upgrade_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_share_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_share_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_share_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_share_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_share_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_snapshot_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_snapshot_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_snapshot_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_snapshot_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_snapshot_restore_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_snapshot_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_template_list_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_user_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_user_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_user_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_user_list_spec.rb +12 -10
- data/spec/chef/knife/ionoscloud_user_ssourl_spec.rb +11 -12
- data/spec/chef/knife/ionoscloud_user_update_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_volume_attach_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_volume_create_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_volume_delete_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_volume_detach_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_volume_get_spec.rb +10 -8
- data/spec/chef/knife/ionoscloud_volume_list_spec.rb +12 -10
- data/spec/chef/knife/ionoscloud_volume_update_spec.rb +10 -8
- data/spec/spec_helper.rb +116 -6
- metadata +213 -160
- data/spec/test.sh +0 -3
@@ -11,10 +11,11 @@ knife ionoscloud user get (options)
|
|
11
11
|
### Required options:
|
12
12
|
|
13
13
|
* user\_id
|
14
|
-
* ionoscloud\_username
|
15
|
-
* ionoscloud\_password
|
16
14
|
|
17
15
|
```text
|
16
|
+
ionoscloud_url: --url URL
|
17
|
+
the Ionoscloud API URL
|
18
|
+
|
18
19
|
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
19
20
|
path to the additional config file
|
20
21
|
|
@@ -22,17 +23,17 @@ knife ionoscloud user get (options)
|
|
22
23
|
iD of the group. (required)
|
23
24
|
|
24
25
|
ionoscloud_username: --username USERNAME, -u USERNAME
|
25
|
-
your Ionoscloud username
|
26
|
+
your Ionoscloud username
|
26
27
|
|
27
28
|
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
28
|
-
your Ionoscloud password
|
29
|
+
your Ionoscloud password
|
29
30
|
|
30
|
-
|
31
|
-
|
31
|
+
ionoscloud_token: --token PASSWORD
|
32
|
+
your Ionoscloud access token
|
32
33
|
|
33
34
|
```
|
34
35
|
## Example
|
35
36
|
|
36
37
|
```text
|
37
|
-
knife ionoscloud user get --extra-config EXTRA_CONFIG_FILE_PATH --user-id USER_ID --username USERNAME --password PASSWORD --
|
38
|
+
knife ionoscloud user get --url URL --extra-config EXTRA_CONFIG_FILE_PATH --user-id USER_ID --username USERNAME --password PASSWORD --token PASSWORD
|
38
39
|
```
|
@@ -10,10 +10,11 @@ knife ionoscloud user list (options)
|
|
10
10
|
|
11
11
|
### Required options:
|
12
12
|
|
13
|
-
* ionoscloud\_username
|
14
|
-
* ionoscloud\_password
|
15
13
|
|
16
14
|
```text
|
15
|
+
ionoscloud_url: --url URL
|
16
|
+
the Ionoscloud API URL
|
17
|
+
|
17
18
|
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
18
19
|
path to the additional config file
|
19
20
|
|
@@ -21,17 +22,17 @@ knife ionoscloud user list (options)
|
|
21
22
|
iD of the group.
|
22
23
|
|
23
24
|
ionoscloud_username: --username USERNAME, -u USERNAME
|
24
|
-
your Ionoscloud username
|
25
|
+
your Ionoscloud username
|
25
26
|
|
26
27
|
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
27
|
-
your Ionoscloud password
|
28
|
+
your Ionoscloud password
|
28
29
|
|
29
|
-
|
30
|
-
|
30
|
+
ionoscloud_token: --token PASSWORD
|
31
|
+
your Ionoscloud access token
|
31
32
|
|
32
33
|
```
|
33
34
|
## Example
|
34
35
|
|
35
36
|
```text
|
36
|
-
knife ionoscloud user list --extra-config EXTRA_CONFIG_FILE_PATH --group-id GROUP_ID --username USERNAME --password PASSWORD --
|
37
|
+
knife ionoscloud user list --url URL --extra-config EXTRA_CONFIG_FILE_PATH --group-id GROUP_ID --username USERNAME --password PASSWORD --token PASSWORD
|
37
38
|
```
|
@@ -11,10 +11,11 @@ knife ionoscloud user ssourl (options)
|
|
11
11
|
### Required options:
|
12
12
|
|
13
13
|
* user\_id
|
14
|
-
* ionoscloud\_username
|
15
|
-
* ionoscloud\_password
|
16
14
|
|
17
15
|
```text
|
16
|
+
ionoscloud_url: --url URL
|
17
|
+
the Ionoscloud API URL
|
18
|
+
|
18
19
|
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
19
20
|
path to the additional config file
|
20
21
|
|
@@ -22,17 +23,17 @@ knife ionoscloud user ssourl (options)
|
|
22
23
|
the ID of the Backup unit. (required)
|
23
24
|
|
24
25
|
ionoscloud_username: --username USERNAME, -u USERNAME
|
25
|
-
your Ionoscloud username
|
26
|
+
your Ionoscloud username
|
26
27
|
|
27
28
|
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
28
|
-
your Ionoscloud password
|
29
|
+
your Ionoscloud password
|
29
30
|
|
30
|
-
|
31
|
-
|
31
|
+
ionoscloud_token: --token PASSWORD
|
32
|
+
your Ionoscloud access token
|
32
33
|
|
33
34
|
```
|
34
35
|
## Example
|
35
36
|
|
36
37
|
```text
|
37
|
-
knife ionoscloud user ssourl --extra-config EXTRA_CONFIG_FILE_PATH --user-id USER_ID --username USERNAME --password PASSWORD --
|
38
|
+
knife ionoscloud user ssourl --url URL --extra-config EXTRA_CONFIG_FILE_PATH --user-id USER_ID --username USERNAME --password PASSWORD --token PASSWORD
|
38
39
|
```
|
@@ -11,10 +11,11 @@ knife ionoscloud user update (options)
|
|
11
11
|
### Required options:
|
12
12
|
|
13
13
|
* user\_id
|
14
|
-
* ionoscloud\_username
|
15
|
-
* ionoscloud\_password
|
16
14
|
|
17
15
|
```text
|
16
|
+
ionoscloud_url: --url URL
|
17
|
+
the Ionoscloud API URL
|
18
|
+
|
18
19
|
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
|
19
20
|
path to the additional config file
|
20
21
|
|
@@ -43,17 +44,17 @@ knife ionoscloud user update (options)
|
|
43
44
|
indicates if the user is active.
|
44
45
|
|
45
46
|
ionoscloud_username: --username USERNAME, -u USERNAME
|
46
|
-
your Ionoscloud username
|
47
|
+
your Ionoscloud username
|
47
48
|
|
48
49
|
ionoscloud_password: --password PASSWORD, -p PASSWORD
|
49
|
-
your Ionoscloud password
|
50
|
+
your Ionoscloud password
|
50
51
|
|
51
|
-
|
52
|
-
|
52
|
+
ionoscloud_token: --token PASSWORD
|
53
|
+
your Ionoscloud access token
|
53
54
|
|
54
55
|
```
|
55
56
|
## Example
|
56
57
|
|
57
58
|
```text
|
58
|
-
knife ionoscloud user update --extra-config EXTRA_CONFIG_FILE_PATH --user-id USER_ID --firstname FIRSTNAME --lastname LASTNAME --email EMAIL --admin ADMIN --sec-auth FORCE_SEC_AUTH --sec-auth SEC_AUTH_ACTIVE --active ACTIVE --username USERNAME --password PASSWORD --
|
59
|
+
knife ionoscloud user update --url URL --extra-config EXTRA_CONFIG_FILE_PATH --user-id USER_ID --firstname FIRSTNAME --lastname LASTNAME --email EMAIL --admin ADMIN --sec-auth FORCE_SEC_AUTH --sec-auth SEC_AUTH_ACTIVE --active ACTIVE --username USERNAME --password PASSWORD --token PASSWORD
|
59
60
|
```
|
data/docs/summary.md
CHANGED
@@ -5,155 +5,170 @@
|
|
5
5
|
|
6
6
|
## Subcommands
|
7
7
|
|
8
|
-
*
|
9
|
-
* [
|
10
|
-
* [
|
11
|
-
* [
|
12
|
-
* [
|
13
|
-
* [
|
14
|
-
* [
|
15
|
-
* [
|
16
|
-
* [
|
17
|
-
* [
|
18
|
-
* [
|
19
|
-
* [
|
20
|
-
* [
|
21
|
-
* [
|
22
|
-
* [
|
23
|
-
* [
|
24
|
-
* [
|
25
|
-
* [
|
26
|
-
* [
|
27
|
-
* [
|
28
|
-
* [
|
29
|
-
* [
|
30
|
-
* [
|
31
|
-
* [
|
32
|
-
* [
|
33
|
-
*
|
34
|
-
* [
|
35
|
-
* [
|
36
|
-
* [
|
37
|
-
* [
|
38
|
-
* [
|
39
|
-
* [
|
40
|
-
* [
|
41
|
-
* [
|
42
|
-
* [
|
43
|
-
* [
|
44
|
-
* [
|
45
|
-
* [
|
46
|
-
* [
|
47
|
-
* [
|
48
|
-
* [
|
49
|
-
* [
|
50
|
-
* [
|
51
|
-
* [
|
52
|
-
* [
|
53
|
-
* [
|
54
|
-
* [
|
55
|
-
* [
|
56
|
-
* [
|
57
|
-
* [
|
58
|
-
* [
|
59
|
-
* [
|
60
|
-
* [
|
61
|
-
* [
|
62
|
-
* [
|
63
|
-
* [
|
64
|
-
* [
|
65
|
-
* [
|
66
|
-
* [
|
67
|
-
* [
|
68
|
-
* [
|
69
|
-
* [
|
70
|
-
* [
|
71
|
-
* [
|
72
|
-
* [
|
73
|
-
* [
|
74
|
-
* [
|
75
|
-
* [
|
76
|
-
* [
|
77
|
-
* [
|
78
|
-
* [
|
79
|
-
* [
|
80
|
-
* [
|
81
|
-
* [
|
82
|
-
* [
|
83
|
-
* [
|
84
|
-
* [
|
85
|
-
* [
|
86
|
-
* [
|
87
|
-
* [
|
88
|
-
* [
|
89
|
-
* [
|
90
|
-
* [
|
91
|
-
* [
|
92
|
-
* [
|
93
|
-
* [
|
94
|
-
* [
|
95
|
-
* [
|
96
|
-
* [
|
97
|
-
* [
|
98
|
-
* [
|
99
|
-
* [
|
100
|
-
* [
|
101
|
-
* [
|
102
|
-
* [
|
103
|
-
* [
|
104
|
-
* [
|
105
|
-
* [
|
106
|
-
* [
|
107
|
-
* [
|
108
|
-
* [
|
109
|
-
* [
|
110
|
-
* [
|
111
|
-
* [
|
112
|
-
* [
|
113
|
-
* [
|
114
|
-
* [
|
115
|
-
* [
|
116
|
-
* [
|
117
|
-
* [
|
118
|
-
* [
|
119
|
-
* [
|
120
|
-
* [
|
121
|
-
* [
|
122
|
-
* [
|
123
|
-
* [
|
124
|
-
* [
|
125
|
-
* [
|
126
|
-
* [
|
127
|
-
* [
|
128
|
-
* [
|
129
|
-
* [
|
130
|
-
* [
|
131
|
-
* [
|
132
|
-
* [
|
133
|
-
* [
|
134
|
-
* [
|
135
|
-
* [
|
136
|
-
* [
|
137
|
-
* [
|
138
|
-
* [
|
139
|
-
*
|
140
|
-
* [
|
141
|
-
* [
|
142
|
-
* [
|
143
|
-
* [
|
144
|
-
* [
|
145
|
-
* [
|
146
|
-
* [
|
147
|
-
* [
|
148
|
-
* [
|
149
|
-
* [
|
150
|
-
* [
|
151
|
-
* [
|
152
|
-
* [
|
153
|
-
* [
|
154
|
-
* [
|
155
|
-
* [
|
156
|
-
* [
|
157
|
-
*
|
158
|
-
* [
|
159
|
-
* [
|
8
|
+
* User Management
|
9
|
+
* [ContractList](subcommands/user/contract_list.md)
|
10
|
+
* [GroupCreate](subcommands/user/group_create.md)
|
11
|
+
* [GroupDelete](subcommands/user/group_delete.md)
|
12
|
+
* [GroupGet](subcommands/user/group_get.md)
|
13
|
+
* [GroupList](subcommands/user/group_list.md)
|
14
|
+
* [GroupUpdate](subcommands/user/group_update.md)
|
15
|
+
* [GroupUserAdd](subcommands/user/group_user_add.md)
|
16
|
+
* [GroupUserRemove](subcommands/user/group_user_remove.md)
|
17
|
+
* [ResourceList](subcommands/user/resource_list.md)
|
18
|
+
* [S3keyCreate](subcommands/user/s3key_create.md)
|
19
|
+
* [S3keyDelete](subcommands/user/s3key_delete.md)
|
20
|
+
* [S3keyGet](subcommands/user/s3key_get.md)
|
21
|
+
* [S3keyList](subcommands/user/s3key_list.md)
|
22
|
+
* [ShareCreate](subcommands/user/share_create.md)
|
23
|
+
* [ShareDelete](subcommands/user/share_delete.md)
|
24
|
+
* [ShareGet](subcommands/user/share_get.md)
|
25
|
+
* [ShareList](subcommands/user/share_list.md)
|
26
|
+
* [ShareUpdate](subcommands/user/share_update.md)
|
27
|
+
* [UserCreate](subcommands/user/user_create.md)
|
28
|
+
* [UserDelete](subcommands/user/user_delete.md)
|
29
|
+
* [UserGet](subcommands/user/user_get.md)
|
30
|
+
* [UserList](subcommands/user/user_list.md)
|
31
|
+
* [UserSsourl](subcommands/user/user_ssourl.md)
|
32
|
+
* [UserUpdate](subcommands/user/user_update.md)
|
33
|
+
* Compute Engine
|
34
|
+
* [CompositeServerCreate](subcommands/compute-engine/composite_server_create.md)
|
35
|
+
* [CubeServerCreate](subcommands/compute-engine/cube_server_create.md)
|
36
|
+
* [DatacenterCreate](subcommands/compute-engine/datacenter_create.md)
|
37
|
+
* [DatacenterDelete](subcommands/compute-engine/datacenter_delete.md)
|
38
|
+
* [DatacenterGet](subcommands/compute-engine/datacenter_get.md)
|
39
|
+
* [DatacenterList](subcommands/compute-engine/datacenter_list.md)
|
40
|
+
* [DatacenterUpdate](subcommands/compute-engine/datacenter_update.md)
|
41
|
+
* [FirewallCreate](subcommands/compute-engine/firewall_create.md)
|
42
|
+
* [FirewallDelete](subcommands/compute-engine/firewall_delete.md)
|
43
|
+
* [FirewallGet](subcommands/compute-engine/firewall_get.md)
|
44
|
+
* [FirewallList](subcommands/compute-engine/firewall_list.md)
|
45
|
+
* [FirewallUpdate](subcommands/compute-engine/firewall_update.md)
|
46
|
+
* [FlowlogCreate](subcommands/compute-engine/flowlog_create.md)
|
47
|
+
* [FlowlogDelete](subcommands/compute-engine/flowlog_delete.md)
|
48
|
+
* [FlowlogGet](subcommands/compute-engine/flowlog_get.md)
|
49
|
+
* [FlowlogList](subcommands/compute-engine/flowlog_list.md)
|
50
|
+
* [FlowlogUpdate](subcommands/compute-engine/flowlog_update.md)
|
51
|
+
* [ImageList](subcommands/compute-engine/image_list.md)
|
52
|
+
* [IpblockCreate](subcommands/compute-engine/ipblock_create.md)
|
53
|
+
* [IpblockDelete](subcommands/compute-engine/ipblock_delete.md)
|
54
|
+
* [IpblockGet](subcommands/compute-engine/ipblock_get.md)
|
55
|
+
* [IpblockList](subcommands/compute-engine/ipblock_list.md)
|
56
|
+
* [IpblockUpdate](subcommands/compute-engine/ipblock_update.md)
|
57
|
+
* [IpfailoverAdd](subcommands/compute-engine/ipfailover_add.md)
|
58
|
+
* [IpfailoverRemove](subcommands/compute-engine/ipfailover_remove.md)
|
59
|
+
* [LabelAdd](subcommands/compute-engine/label_add.md)
|
60
|
+
* [LabelList](subcommands/compute-engine/label_list.md)
|
61
|
+
* [LabelRemove](subcommands/compute-engine/label_remove.md)
|
62
|
+
* [LanCreate](subcommands/compute-engine/lan_create.md)
|
63
|
+
* [LanDelete](subcommands/compute-engine/lan_delete.md)
|
64
|
+
* [LanGet](subcommands/compute-engine/lan_get.md)
|
65
|
+
* [LanList](subcommands/compute-engine/lan_list.md)
|
66
|
+
* [LanUpdate](subcommands/compute-engine/lan_update.md)
|
67
|
+
* [LoadbalancerCreate](subcommands/compute-engine/loadbalancer_create.md)
|
68
|
+
* [LoadbalancerDelete](subcommands/compute-engine/loadbalancer_delete.md)
|
69
|
+
* [LoadbalancerGet](subcommands/compute-engine/loadbalancer_get.md)
|
70
|
+
* [LoadbalancerList](subcommands/compute-engine/loadbalancer_list.md)
|
71
|
+
* [LoadbalancerNicAdd](subcommands/compute-engine/loadbalancer_nic_add.md)
|
72
|
+
* [LoadbalancerNicRemove](subcommands/compute-engine/loadbalancer_nic_remove.md)
|
73
|
+
* [LoadbalancerUpdate](subcommands/compute-engine/loadbalancer_update.md)
|
74
|
+
* [LocationList](subcommands/compute-engine/location_list.md)
|
75
|
+
* [NatgatewayCreate](subcommands/compute-engine/natgateway_create.md)
|
76
|
+
* [NatgatewayDelete](subcommands/compute-engine/natgateway_delete.md)
|
77
|
+
* [NatgatewayGet](subcommands/compute-engine/natgateway_get.md)
|
78
|
+
* [NatgatewayLanAdd](subcommands/compute-engine/natgateway_lan_add.md)
|
79
|
+
* [NatgatewayLanRemove](subcommands/compute-engine/natgateway_lan_remove.md)
|
80
|
+
* [NatgatewayList](subcommands/compute-engine/natgateway_list.md)
|
81
|
+
* [NatgatewayRuleAdd](subcommands/compute-engine/natgateway_rule_add.md)
|
82
|
+
* [NatgatewayRuleList](subcommands/compute-engine/natgateway_rule_list.md)
|
83
|
+
* [NatgatewayRuleRemove](subcommands/compute-engine/natgateway_rule_remove.md)
|
84
|
+
* [NatgatewayRuleUpdate](subcommands/compute-engine/natgateway_rule_update.md)
|
85
|
+
* [NatgatewayUpdate](subcommands/compute-engine/natgateway_update.md)
|
86
|
+
* [NetworkloadbalancerCreate](subcommands/compute-engine/networkloadbalancer_create.md)
|
87
|
+
* [NetworkloadbalancerDelete](subcommands/compute-engine/networkloadbalancer_delete.md)
|
88
|
+
* [NetworkloadbalancerGet](subcommands/compute-engine/networkloadbalancer_get.md)
|
89
|
+
* [NetworkloadbalancerList](subcommands/compute-engine/networkloadbalancer_list.md)
|
90
|
+
* [NetworkloadbalancerRuleAdd](subcommands/compute-engine/networkloadbalancer_rule_add.md)
|
91
|
+
* [NetworkloadbalancerRuleList](subcommands/compute-engine/networkloadbalancer_rule_list.md)
|
92
|
+
* [NetworkloadbalancerRuleRemove](subcommands/compute-engine/networkloadbalancer_rule_remove.md)
|
93
|
+
* [NetworkloadbalancerRuleTargetAdd](subcommands/compute-engine/networkloadbalancer_rule_target_add.md)
|
94
|
+
* [NetworkloadbalancerRuleTargetList](subcommands/compute-engine/networkloadbalancer_rule_target_list.md)
|
95
|
+
* [NetworkloadbalancerRuleTargetRemove](subcommands/compute-engine/networkloadbalancer_rule_target_remove.md)
|
96
|
+
* [NetworkloadbalancerRuleUpdate](subcommands/compute-engine/networkloadbalancer_rule_update.md)
|
97
|
+
* [NetworkloadbalancerUpdate](subcommands/compute-engine/networkloadbalancer_update.md)
|
98
|
+
* [NicCreate](subcommands/compute-engine/nic_create.md)
|
99
|
+
* [NicDelete](subcommands/compute-engine/nic_delete.md)
|
100
|
+
* [NicGet](subcommands/compute-engine/nic_get.md)
|
101
|
+
* [NicList](subcommands/compute-engine/nic_list.md)
|
102
|
+
* [NicUpdate](subcommands/compute-engine/nic_update.md)
|
103
|
+
* [PccCreate](subcommands/compute-engine/pcc_create.md)
|
104
|
+
* [PccDelete](subcommands/compute-engine/pcc_delete.md)
|
105
|
+
* [PccGet](subcommands/compute-engine/pcc_get.md)
|
106
|
+
* [PccList](subcommands/compute-engine/pcc_list.md)
|
107
|
+
* [PccUpdate](subcommands/compute-engine/pcc_update.md)
|
108
|
+
* [RequestGet](subcommands/compute-engine/request_get.md)
|
109
|
+
* [RequestList](subcommands/compute-engine/request_list.md)
|
110
|
+
* [RequestStatus](subcommands/compute-engine/request_status.md)
|
111
|
+
* [RequestWait](subcommands/compute-engine/request_wait.md)
|
112
|
+
* [ServerConsole](subcommands/compute-engine/server_console.md)
|
113
|
+
* [ServerCreate](subcommands/compute-engine/server_create.md)
|
114
|
+
* [ServerDelete](subcommands/compute-engine/server_delete.md)
|
115
|
+
* [ServerGet](subcommands/compute-engine/server_get.md)
|
116
|
+
* [ServerList](subcommands/compute-engine/server_list.md)
|
117
|
+
* [ServerReboot](subcommands/compute-engine/server_reboot.md)
|
118
|
+
* [ServerResume](subcommands/compute-engine/server_resume.md)
|
119
|
+
* [ServerStart](subcommands/compute-engine/server_start.md)
|
120
|
+
* [ServerStop](subcommands/compute-engine/server_stop.md)
|
121
|
+
* [ServerSuspend](subcommands/compute-engine/server_suspend.md)
|
122
|
+
* [ServerToken](subcommands/compute-engine/server_token.md)
|
123
|
+
* [ServerUpdate](subcommands/compute-engine/server_update.md)
|
124
|
+
* [ServerUpgrade](subcommands/compute-engine/server_upgrade.md)
|
125
|
+
* [SnapshotCreate](subcommands/compute-engine/snapshot_create.md)
|
126
|
+
* [SnapshotDelete](subcommands/compute-engine/snapshot_delete.md)
|
127
|
+
* [SnapshotGet](subcommands/compute-engine/snapshot_get.md)
|
128
|
+
* [SnapshotList](subcommands/compute-engine/snapshot_list.md)
|
129
|
+
* [SnapshotRestore](subcommands/compute-engine/snapshot_restore.md)
|
130
|
+
* [SnapshotUpdate](subcommands/compute-engine/snapshot_update.md)
|
131
|
+
* [TemplateList](subcommands/compute-engine/template_list.md)
|
132
|
+
* [VolumeAttach](subcommands/compute-engine/volume_attach.md)
|
133
|
+
* [VolumeCreate](subcommands/compute-engine/volume_create.md)
|
134
|
+
* [VolumeDelete](subcommands/compute-engine/volume_delete.md)
|
135
|
+
* [VolumeDetach](subcommands/compute-engine/volume_detach.md)
|
136
|
+
* [VolumeGet](subcommands/compute-engine/volume_get.md)
|
137
|
+
* [VolumeList](subcommands/compute-engine/volume_list.md)
|
138
|
+
* [VolumeUpdate](subcommands/compute-engine/volume_update.md)
|
139
|
+
* Managed Kubernetes
|
140
|
+
* [K8sCreate](subcommands/kubernetes/k8s_create.md)
|
141
|
+
* [K8sDelete](subcommands/kubernetes/k8s_delete.md)
|
142
|
+
* [K8sGet](subcommands/kubernetes/k8s_get.md)
|
143
|
+
* [K8sList](subcommands/kubernetes/k8s_list.md)
|
144
|
+
* [K8sUpdate](subcommands/kubernetes/k8s_update.md)
|
145
|
+
* [KubeconfigGet](subcommands/kubernetes/kubeconfig_get.md)
|
146
|
+
* [NodeDelete](subcommands/kubernetes/node_delete.md)
|
147
|
+
* [NodeGet](subcommands/kubernetes/node_get.md)
|
148
|
+
* [NodeList](subcommands/kubernetes/node_list.md)
|
149
|
+
* [NodeReplace](subcommands/kubernetes/node_replace.md)
|
150
|
+
* [NodepoolCreate](subcommands/kubernetes/nodepool_create.md)
|
151
|
+
* [NodepoolDelete](subcommands/kubernetes/nodepool_delete.md)
|
152
|
+
* [NodepoolGet](subcommands/kubernetes/nodepool_get.md)
|
153
|
+
* [NodepoolLanAdd](subcommands/kubernetes/nodepool_lan_add.md)
|
154
|
+
* [NodepoolLanRemove](subcommands/kubernetes/nodepool_lan_remove.md)
|
155
|
+
* [NodepoolList](subcommands/kubernetes/nodepool_list.md)
|
156
|
+
* [NodepoolUpdate](subcommands/kubernetes/nodepool_update.md)
|
157
|
+
* Managed Backup
|
158
|
+
* [BackupunitCreate](subcommands/backup/backupunit_create.md)
|
159
|
+
* [BackupunitDelete](subcommands/backup/backupunit_delete.md)
|
160
|
+
* [BackupunitGet](subcommands/backup/backupunit_get.md)
|
161
|
+
* [BackupunitList](subcommands/backup/backupunit_list.md)
|
162
|
+
* [BackupunitSsourl](subcommands/backup/backupunit_ssourl.md)
|
163
|
+
* [BackupunitUpdate](subcommands/backup/backupunit_update.md)
|
164
|
+
* DBaaS Postgres
|
165
|
+
* [DbaasPostgresBackupGet](subcommands/dbaas-postgres/dbaas_postgres_backup_get.md)
|
166
|
+
* [DbaasPostgresBackupList](subcommands/dbaas-postgres/dbaas_postgres_backup_list.md)
|
167
|
+
* [DbaasPostgresClusterCreate](subcommands/dbaas-postgres/dbaas_postgres_cluster_create.md)
|
168
|
+
* [DbaasPostgresClusterDelete](subcommands/dbaas-postgres/dbaas_postgres_cluster_delete.md)
|
169
|
+
* [DbaasPostgresClusterGet](subcommands/dbaas-postgres/dbaas_postgres_cluster_get.md)
|
170
|
+
* [DbaasPostgresClusterList](subcommands/dbaas-postgres/dbaas_postgres_cluster_list.md)
|
171
|
+
* [DbaasPostgresClusterRestore](subcommands/dbaas-postgres/dbaas_postgres_cluster_restore.md)
|
172
|
+
* [DbaasPostgresClusterUpdate](subcommands/dbaas-postgres/dbaas_postgres_cluster_update.md)
|
173
|
+
* [DbaasPostgresLogsGet](subcommands/dbaas-postgres/dbaas_postgres_logs_get.md)
|
174
|
+
* [DbaasPostgresVersionList](subcommands/dbaas-postgres/dbaas_postgres_version_list.md)
|
data/knife-ionoscloud.gemspec
CHANGED
@@ -20,7 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
22
|
spec.add_runtime_dependency 'chef', '~> 16.10', '>= 16.10.17'
|
23
|
-
spec.add_runtime_dependency 'ionoscloud', '~> 6.0.
|
23
|
+
spec.add_runtime_dependency 'ionoscloud', '~> 6.0.2'
|
24
|
+
spec.add_runtime_dependency 'ionoscloud-dbaas-postgres', '~> 1.0.2'
|
24
25
|
|
25
26
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
26
27
|
spec.add_development_dependency 'simplecov', '~> 0.21.2'
|
@@ -22,13 +22,12 @@ class Chef
|
|
22
22
|
long: '--email EMAIL',
|
23
23
|
description: 'The e-mail address you want assigned to the backup unit.'
|
24
24
|
|
25
|
-
attr_reader :description, :required_options
|
26
|
-
|
27
25
|
def initialize(args = [])
|
28
26
|
super(args)
|
29
27
|
@description =
|
30
28
|
'Create a new backup unit.'
|
31
|
-
@
|
29
|
+
@directory = 'backup'
|
30
|
+
@required_options = [:name, :password, :email]
|
32
31
|
end
|
33
32
|
|
34
33
|
def run
|
@@ -7,8 +7,6 @@ class Chef
|
|
7
7
|
|
8
8
|
banner 'knife ionoscloud backupunit delete BACKUPUNIT_ID [BACKUPUNIT_ID]'
|
9
9
|
|
10
|
-
attr_reader :description, :required_options
|
11
|
-
|
12
10
|
def initialize(args = [])
|
13
11
|
super(args)
|
14
12
|
@description =
|
@@ -16,7 +14,7 @@ class Chef
|
|
16
14
|
'is a dangerous operation. A successful DELETE request will remove the backup '\
|
17
15
|
'plans inside a backup unit, ALL backups associated with the backup unit, the '\
|
18
16
|
'backup user and finally the backup unit itself.'
|
19
|
-
@
|
17
|
+
@directory = 'backup'
|
20
18
|
end
|
21
19
|
|
22
20
|
def run
|
@@ -40,7 +38,7 @@ class Chef
|
|
40
38
|
|
41
39
|
begin
|
42
40
|
confirm('Do you really want to delete this Backup unit')
|
43
|
-
rescue SystemExit
|
41
|
+
rescue SystemExit
|
44
42
|
next
|
45
43
|
end
|
46
44
|
|
@@ -12,13 +12,12 @@ class Chef
|
|
12
12
|
long: '--backupunit-id BACKUPUNIT_ID',
|
13
13
|
description: 'The ID of the Backup unit.'
|
14
14
|
|
15
|
-
attr_reader :description, :required_options
|
16
|
-
|
17
15
|
def initialize(args = [])
|
18
16
|
super(args)
|
19
17
|
@description =
|
20
18
|
'Retrieves information about a backup unit.'
|
21
|
-
@
|
19
|
+
@directory = 'backup'
|
20
|
+
@required_options = [:backupunit_id]
|
22
21
|
end
|
23
22
|
|
24
23
|
def run
|
@@ -7,13 +7,11 @@ class Chef
|
|
7
7
|
|
8
8
|
banner 'knife ionoscloud backupunit list'
|
9
9
|
|
10
|
-
attr_reader :description, :required_options
|
11
|
-
|
12
10
|
def initialize(args = [])
|
13
11
|
super(args)
|
14
12
|
@description =
|
15
13
|
'Retrieve a list of all the backup units the supplied credentials have access to.'
|
16
|
-
@
|
14
|
+
@directory = 'backup'
|
17
15
|
end
|
18
16
|
|
19
17
|
def run
|
@@ -12,15 +12,14 @@ class Chef
|
|
12
12
|
long: '--backupunit-id BACKUPUNIT_ID',
|
13
13
|
description: 'The ID of the Backup unit.'
|
14
14
|
|
15
|
-
attr_reader :description, :required_options
|
16
|
-
|
17
15
|
def initialize(args = [])
|
18
16
|
super(args)
|
19
17
|
@description =
|
20
18
|
'The ProfitBricks backup system features a web-based GUI. Once you have created '\
|
21
19
|
'a backup unit, you can access the GUI with a Single Sign On \(SSO\) URL that can be '\
|
22
20
|
'retrieved from the Cloud API using this request.'
|
23
|
-
@
|
21
|
+
@directory = 'backup'
|
22
|
+
@required_options = [:backupunit_id]
|
24
23
|
end
|
25
24
|
|
26
25
|
def run
|
@@ -21,13 +21,12 @@ class Chef
|
|
21
21
|
long: '--email EMAIL',
|
22
22
|
description: 'The e-mail address you want assigned to the backup unit.'
|
23
23
|
|
24
|
-
attr_reader :description, :required_options
|
25
|
-
|
26
24
|
def initialize(args = [])
|
27
25
|
super(args)
|
28
26
|
@description =
|
29
27
|
'Retrieves information about a backup unit.'
|
30
|
-
@
|
28
|
+
@directory = 'backup'
|
29
|
+
@required_options = [:backupunit_id]
|
31
30
|
@updatable_fields = [:email, :password]
|
32
31
|
end
|
33
32
|
|
@@ -41,7 +40,7 @@ class Chef
|
|
41
40
|
if @updatable_fields.map { |el| config[el] }.any?
|
42
41
|
print "#{ui.color('Updating Backup unit...', :magenta)}"
|
43
42
|
|
44
|
-
|
43
|
+
_, _, headers = backupunit_api.backupunits_patch_with_http_info(
|
45
44
|
config[:backupunit_id],
|
46
45
|
Ionoscloud::BackupUnitProperties.new(
|
47
46
|
password: config[:password],
|