knife-ionoscloud 6.1.0 → 6.1.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/build.yml +17 -0
- data/.rubocop.yml +72 -0
- data/docs/docs_generator.rb +21 -24
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_backup_get.md +1 -1
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_backup_list.md +1 -2
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_create.md +6 -3
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_delete.md +1 -1
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_get.md +1 -1
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_list.md +1 -1
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_restore.md +1 -1
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_cluster_update.md +2 -2
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_logs_get.md +7 -4
- data/docs/subcommands/dbaas-postgres/dbaas_postgres_version_list.md +1 -2
- data/docs/subcommands/kubernetes/k8s_create.md +4 -1
- data/docs/subcommands/kubernetes/nodepool_create.md +4 -1
- data/docs/summary.md +124 -124
- data/knife-ionoscloud.gemspec +2 -2
- data/lib/chef/knife/ionoscloud_backupunit_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_backupunit_update.rb +1 -1
- data/lib/chef/knife/ionoscloud_base.rb +3 -0
- data/lib/chef/knife/ionoscloud_composite_server_create.rb +2 -2
- data/lib/chef/knife/ionoscloud_contract_list.rb +1 -2
- data/lib/chef/knife/ionoscloud_cube_server_create.rb +3 -3
- data/lib/chef/knife/ionoscloud_datacenter_create.rb +2 -2
- data/lib/chef/knife/ionoscloud_datacenter_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_datacenter_update.rb +2 -2
- data/lib/chef/knife/ionoscloud_dbaas_postgres_backup_get.rb +2 -2
- data/lib/chef/knife/ionoscloud_dbaas_postgres_backup_list.rb +2 -2
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_create.rb +11 -7
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_delete.rb +2 -2
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_get.rb +3 -3
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_list.rb +3 -1
- data/lib/chef/knife/ionoscloud_dbaas_postgres_cluster_update.rb +2 -4
- data/lib/chef/knife/ionoscloud_dbaas_postgres_logs_get.rb +37 -6
- data/lib/chef/knife/ionoscloud_dbaas_postgres_version_list.rb +3 -2
- data/lib/chef/knife/ionoscloud_firewall_create.rb +1 -1
- data/lib/chef/knife/ionoscloud_firewall_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_firewall_list.rb +1 -1
- data/lib/chef/knife/ionoscloud_flowlog_delete.rb +1 -3
- data/lib/chef/knife/ionoscloud_flowlog_list.rb +3 -5
- data/lib/chef/knife/ionoscloud_group_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_group_update.rb +1 -1
- data/lib/chef/knife/ionoscloud_ipblock_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_k8s_create.rb +6 -0
- data/lib/chef/knife/ionoscloud_k8s_delete.rb +2 -2
- data/lib/chef/knife/ionoscloud_k8s_list.rb +3 -1
- data/lib/chef/knife/ionoscloud_k8s_update.rb +2 -6
- data/lib/chef/knife/ionoscloud_label_list.rb +1 -3
- data/lib/chef/knife/ionoscloud_lan_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_loadbalancer_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_natgateway_create.rb +1 -1
- data/lib/chef/knife/ionoscloud_natgateway_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_natgateway_rule_add.rb +1 -1
- data/lib/chef/knife/ionoscloud_natgateway_rule_update.rb +1 -1
- data/lib/chef/knife/ionoscloud_natgateway_update.rb +1 -2
- data/lib/chef/knife/ionoscloud_networkloadbalancer_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_add.rb +1 -2
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_target_remove.rb +1 -2
- data/lib/chef/knife/ionoscloud_networkloadbalancer_rule_update.rb +1 -2
- data/lib/chef/knife/ionoscloud_nic_create.rb +3 -3
- data/lib/chef/knife/ionoscloud_nic_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_node_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_node_replace.rb +3 -3
- data/lib/chef/knife/ionoscloud_nodepool_create.rb +7 -2
- data/lib/chef/knife/ionoscloud_nodepool_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_nodepool_list.rb +3 -1
- data/lib/chef/knife/ionoscloud_pcc_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_pcc_update.rb +1 -1
- data/lib/chef/knife/ionoscloud_request_list.rb +6 -18
- data/lib/chef/knife/ionoscloud_resource_list.rb +10 -12
- data/lib/chef/knife/ionoscloud_s3key_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_server_create.rb +3 -3
- data/lib/chef/knife/ionoscloud_server_delete.rb +3 -3
- data/lib/chef/knife/ionoscloud_server_upgrade.rb +1 -1
- data/lib/chef/knife/ionoscloud_share_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_snapshot_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_snapshot_list.rb +1 -1
- data/lib/chef/knife/ionoscloud_user_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_volume_delete.rb +1 -1
- data/lib/chef/knife/ionoscloud_volume_detach.rb +4 -4
- data/lib/knife-ionoscloud/version.rb +1 -1
- data/sonar-project.properties +3 -0
- data/spec/chef/knife/ionoscloud_backupunit_create_spec.rb +1 -2
- data/spec/chef/knife/ionoscloud_backupunit_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_backupunit_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_backupunit_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_backupunit_ssourl_spec.rb +2 -4
- data/spec/chef/knife/ionoscloud_backupunit_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_base_spec.rb +3 -4
- data/spec/chef/knife/ionoscloud_composite_server_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_contract_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_cube_server_create_spec.rb +2 -3
- data/spec/chef/knife/ionoscloud_datacenter_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_datacenter_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_datacenter_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_datacenter_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_datacenter_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_dbaas_postgres_backup_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_dbaas_postgres_backup_list_spec.rb +1 -2
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_create_spec.rb +4 -3
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_delete_spec.rb +1 -1
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_get_spec.rb +1 -1
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_list_spec.rb +3 -2
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_restore_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_dbaas_postgres_cluster_update_spec.rb +1 -1
- data/spec/chef/knife/ionoscloud_dbaas_postgres_logs_get_spec.rb +75 -4
- data/spec/chef/knife/ionoscloud_dbaas_postgres_version_list_spec.rb +2 -3
- data/spec/chef/knife/ionoscloud_firewall_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_firewall_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_firewall_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_firewall_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_firewall_update_spec.rb +2 -3
- data/spec/chef/knife/ionoscloud_flowlog_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_flowlog_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_flowlog_get_spec.rb +0 -2
- data/spec/chef/knife/ionoscloud_flowlog_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_flowlog_update_spec.rb +0 -2
- data/spec/chef/knife/ionoscloud_group_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_group_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_group_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_group_list_spec.rb +2 -3
- data/spec/chef/knife/ionoscloud_group_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_group_user_add_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_group_user_remove_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_image_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_ipblock_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_ipblock_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_ipblock_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_ipblock_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_ipblock_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_ipfailover_add_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_ipfailover_remove_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_k8s_create_spec.rb +1 -1
- data/spec/chef/knife/ionoscloud_k8s_delete_spec.rb +4 -4
- data/spec/chef/knife/ionoscloud_k8s_get_spec.rb +1 -1
- data/spec/chef/knife/ionoscloud_k8s_list_spec.rb +3 -2
- data/spec/chef/knife/ionoscloud_k8s_update_spec.rb +3 -3
- data/spec/chef/knife/ionoscloud_kubeconfig_get_spec.rb +2 -4
- data/spec/chef/knife/ionoscloud_label_add_spec.rb +1 -2
- data/spec/chef/knife/ionoscloud_label_list_spec.rb +4 -5
- data/spec/chef/knife/ionoscloud_label_remove_spec.rb +1 -2
- data/spec/chef/knife/ionoscloud_lan_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_lan_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_lan_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_lan_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_lan_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_loadbalancer_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_loadbalancer_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_loadbalancer_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_loadbalancer_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_loadbalancer_nic_add_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_loadbalancer_nic_remove_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_loadbalancer_update_spec.rb +1 -2
- data/spec/chef/knife/ionoscloud_location_list_spec.rb +1 -2
- data/spec/chef/knife/ionoscloud_natgateway_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_natgateway_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_natgateway_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_natgateway_lan_add_spec.rb +2 -3
- data/spec/chef/knife/ionoscloud_natgateway_lan_remove_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_natgateway_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_natgateway_rule_add_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_natgateway_rule_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_natgateway_rule_remove_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_natgateway_rule_update_spec.rb +4 -5
- data/spec/chef/knife/ionoscloud_natgateway_update_spec.rb +4 -6
- data/spec/chef/knife/ionoscloud_networkloadbalancer_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_networkloadbalancer_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_networkloadbalancer_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_networkloadbalancer_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_add_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_remove_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_target_add_spec.rb +1 -2
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_target_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_target_remove_spec.rb +12 -15
- data/spec/chef/knife/ionoscloud_networkloadbalancer_rule_update_spec.rb +4 -6
- data/spec/chef/knife/ionoscloud_networkloadbalancer_update_spec.rb +2 -3
- data/spec/chef/knife/ionoscloud_nic_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_nic_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_nic_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_nic_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_nic_update_spec.rb +1 -2
- data/spec/chef/knife/ionoscloud_node_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_node_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_node_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_node_replace_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_nodepool_create_spec.rb +2 -1
- data/spec/chef/knife/ionoscloud_nodepool_delete_spec.rb +2 -1
- data/spec/chef/knife/ionoscloud_nodepool_get_spec.rb +1 -1
- data/spec/chef/knife/ionoscloud_nodepool_lan_add_spec.rb +3 -3
- data/spec/chef/knife/{ionoscloud_nodepool_lan_remove.rb → ionoscloud_nodepool_lan_remove_spec.rb} +14 -17
- data/spec/chef/knife/ionoscloud_nodepool_list_spec.rb +3 -2
- data/spec/chef/knife/ionoscloud_nodepool_update_spec.rb +3 -3
- data/spec/chef/knife/ionoscloud_pcc_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_pcc_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_pcc_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_pcc_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_pcc_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_request_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_request_list_spec.rb +1 -3
- data/spec/chef/knife/ionoscloud_request_status_spec.rb +2 -4
- data/spec/chef/knife/ionoscloud_request_wait_spec.rb +2 -5
- data/spec/chef/knife/ionoscloud_resource_list_spec.rb +1 -3
- data/spec/chef/knife/ionoscloud_s3key_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_s3key_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_s3key_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_s3key_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_console_spec.rb +2 -4
- data/spec/chef/knife/ionoscloud_server_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_reboot_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_resume_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_start_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_stop_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_suspend_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_token_spec.rb +2 -4
- data/spec/chef/knife/ionoscloud_server_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_server_upgrade_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_share_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_share_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_share_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_share_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_share_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_snapshot_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_snapshot_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_snapshot_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_snapshot_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_snapshot_restore_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_snapshot_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_template_list_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_user_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_user_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_user_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_user_list_spec.rb +2 -3
- data/spec/chef/knife/ionoscloud_user_ssourl_spec.rb +2 -4
- data/spec/chef/knife/ionoscloud_user_update_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_volume_attach_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_volume_create_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_volume_delete_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_volume_detach_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_volume_get_spec.rb +0 -1
- data/spec/chef/knife/ionoscloud_volume_list_spec.rb +2 -3
- data/spec/chef/knife/ionoscloud_volume_update_spec.rb +0 -1
- data/spec/spec_helper.rb +10 -7
- metadata +12 -12
data/docs/summary.md
CHANGED
@@ -6,169 +6,169 @@
|
|
6
6
|
## Subcommands
|
7
7
|
|
8
8
|
* Compute Engine
|
9
|
-
* [
|
10
|
-
* [
|
11
|
-
* [
|
12
|
-
* [
|
13
|
-
* [
|
14
|
-
* [
|
15
|
-
* [
|
16
|
-
* [
|
17
|
-
* [
|
18
|
-
* [
|
9
|
+
* [CompositeServerCreate](subcommands/compute-engine/composite_server_create.md)
|
10
|
+
* [CubeServerCreate](subcommands/compute-engine/cube_server_create.md)
|
11
|
+
* [DatacenterCreate](subcommands/compute-engine/datacenter_create.md)
|
12
|
+
* [DatacenterDelete](subcommands/compute-engine/datacenter_delete.md)
|
13
|
+
* [DatacenterGet](subcommands/compute-engine/datacenter_get.md)
|
14
|
+
* [DatacenterList](subcommands/compute-engine/datacenter_list.md)
|
15
|
+
* [DatacenterUpdate](subcommands/compute-engine/datacenter_update.md)
|
16
|
+
* [FirewallCreate](subcommands/compute-engine/firewall_create.md)
|
17
|
+
* [FirewallDelete](subcommands/compute-engine/firewall_delete.md)
|
18
|
+
* [FirewallGet](subcommands/compute-engine/firewall_get.md)
|
19
|
+
* [FirewallList](subcommands/compute-engine/firewall_list.md)
|
20
|
+
* [FirewallUpdate](subcommands/compute-engine/firewall_update.md)
|
19
21
|
* [FlowlogCreate](subcommands/compute-engine/flowlog_create.md)
|
20
|
-
* [
|
21
|
-
* [SnapshotGet](subcommands/compute-engine/snapshot_get.md)
|
22
|
-
* [ServerSuspend](subcommands/compute-engine/server_suspend.md)
|
22
|
+
* [FlowlogDelete](subcommands/compute-engine/flowlog_delete.md)
|
23
23
|
* [FlowlogGet](subcommands/compute-engine/flowlog_get.md)
|
24
|
-
* [
|
25
|
-
* [
|
24
|
+
* [FlowlogList](subcommands/compute-engine/flowlog_list.md)
|
25
|
+
* [FlowlogUpdate](subcommands/compute-engine/flowlog_update.md)
|
26
|
+
* [ImageList](subcommands/compute-engine/image_list.md)
|
27
|
+
* [IpblockCreate](subcommands/compute-engine/ipblock_create.md)
|
28
|
+
* [IpblockDelete](subcommands/compute-engine/ipblock_delete.md)
|
26
29
|
* [IpblockGet](subcommands/compute-engine/ipblock_get.md)
|
27
|
-
* [
|
28
|
-
* [
|
30
|
+
* [IpblockList](subcommands/compute-engine/ipblock_list.md)
|
31
|
+
* [IpblockUpdate](subcommands/compute-engine/ipblock_update.md)
|
32
|
+
* [IpfailoverAdd](subcommands/compute-engine/ipfailover_add.md)
|
33
|
+
* [IpfailoverRemove](subcommands/compute-engine/ipfailover_remove.md)
|
34
|
+
* [LabelAdd](subcommands/compute-engine/label_add.md)
|
29
35
|
* [LabelList](subcommands/compute-engine/label_list.md)
|
30
|
-
* [
|
31
|
-
* [
|
32
|
-
* [
|
33
|
-
* [
|
34
|
-
* [
|
35
|
-
* [
|
36
|
-
* [
|
36
|
+
* [LabelRemove](subcommands/compute-engine/label_remove.md)
|
37
|
+
* [LanCreate](subcommands/compute-engine/lan_create.md)
|
38
|
+
* [LanDelete](subcommands/compute-engine/lan_delete.md)
|
39
|
+
* [LanGet](subcommands/compute-engine/lan_get.md)
|
40
|
+
* [LanList](subcommands/compute-engine/lan_list.md)
|
41
|
+
* [LanUpdate](subcommands/compute-engine/lan_update.md)
|
42
|
+
* [LoadbalancerCreate](subcommands/compute-engine/loadbalancer_create.md)
|
37
43
|
* [LoadbalancerDelete](subcommands/compute-engine/loadbalancer_delete.md)
|
38
|
-
* [
|
39
|
-
* [IpblockList](subcommands/compute-engine/ipblock_list.md)
|
40
|
-
* [NatgatewayCreate](subcommands/compute-engine/natgateway_create.md)
|
41
|
-
* [ServerDelete](subcommands/compute-engine/server_delete.md)
|
42
|
-
* [DatacenterCreate](subcommands/compute-engine/datacenter_create.md)
|
43
|
-
* [NicList](subcommands/compute-engine/nic_list.md)
|
44
|
-
* [NatgatewayLanAdd](subcommands/compute-engine/natgateway_lan_add.md)
|
45
|
-
* [NetworkloadbalancerRuleAdd](subcommands/compute-engine/networkloadbalancer_rule_add.md)
|
46
|
-
* [NicGet](subcommands/compute-engine/nic_get.md)
|
47
|
-
* [FlowlogDelete](subcommands/compute-engine/flowlog_delete.md)
|
48
|
-
* [NetworkloadbalancerDelete](subcommands/compute-engine/networkloadbalancer_delete.md)
|
49
|
-
* [FirewallGet](subcommands/compute-engine/firewall_get.md)
|
50
|
-
* [NatgatewayUpdate](subcommands/compute-engine/natgateway_update.md)
|
51
|
-
* [VolumeList](subcommands/compute-engine/volume_list.md)
|
52
|
-
* [VolumeDelete](subcommands/compute-engine/volume_delete.md)
|
53
|
-
* [ServerResume](subcommands/compute-engine/server_resume.md)
|
54
|
-
* [SnapshotList](subcommands/compute-engine/snapshot_list.md)
|
55
|
-
* [NicCreate](subcommands/compute-engine/nic_create.md)
|
56
|
-
* [SnapshotUpdate](subcommands/compute-engine/snapshot_update.md)
|
57
|
-
* [NetworkloadbalancerUpdate](subcommands/compute-engine/networkloadbalancer_update.md)
|
58
|
-
* [NicUpdate](subcommands/compute-engine/nic_update.md)
|
59
|
-
* [NatgatewayGet](subcommands/compute-engine/natgateway_get.md)
|
60
|
-
* [PccList](subcommands/compute-engine/pcc_list.md)
|
44
|
+
* [LoadbalancerGet](subcommands/compute-engine/loadbalancer_get.md)
|
61
45
|
* [LoadbalancerList](subcommands/compute-engine/loadbalancer_list.md)
|
62
|
-
* [VolumeUpdate](subcommands/compute-engine/volume_update.md)
|
63
|
-
* [NetworkloadbalancerRuleList](subcommands/compute-engine/networkloadbalancer_rule_list.md)
|
64
46
|
* [LoadbalancerNicAdd](subcommands/compute-engine/loadbalancer_nic_add.md)
|
65
|
-
* [
|
66
|
-
* [
|
67
|
-
* [
|
68
|
-
* [
|
69
|
-
* [
|
70
|
-
* [
|
71
|
-
* [
|
72
|
-
* [SnapshotCreate](subcommands/compute-engine/snapshot_create.md)
|
47
|
+
* [LoadbalancerNicRemove](subcommands/compute-engine/loadbalancer_nic_remove.md)
|
48
|
+
* [LoadbalancerUpdate](subcommands/compute-engine/loadbalancer_update.md)
|
49
|
+
* [LocationList](subcommands/compute-engine/location_list.md)
|
50
|
+
* [NatgatewayCreate](subcommands/compute-engine/natgateway_create.md)
|
51
|
+
* [NatgatewayDelete](subcommands/compute-engine/natgateway_delete.md)
|
52
|
+
* [NatgatewayGet](subcommands/compute-engine/natgateway_get.md)
|
53
|
+
* [NatgatewayLanAdd](subcommands/compute-engine/natgateway_lan_add.md)
|
73
54
|
* [NatgatewayLanRemove](subcommands/compute-engine/natgateway_lan_remove.md)
|
74
|
-
* [NatgatewayRuleList](subcommands/compute-engine/natgateway_rule_list.md)
|
75
|
-
* [VolumeCreate](subcommands/compute-engine/volume_create.md)
|
76
|
-
* [LanUpdate](subcommands/compute-engine/lan_update.md)
|
77
55
|
* [NatgatewayList](subcommands/compute-engine/natgateway_list.md)
|
56
|
+
* [NatgatewayRuleAdd](subcommands/compute-engine/natgateway_rule_add.md)
|
57
|
+
* [NatgatewayRuleList](subcommands/compute-engine/natgateway_rule_list.md)
|
78
58
|
* [NatgatewayRuleRemove](subcommands/compute-engine/natgateway_rule_remove.md)
|
79
|
-
* [
|
80
|
-
* [
|
81
|
-
* [
|
59
|
+
* [NatgatewayRuleUpdate](subcommands/compute-engine/natgateway_rule_update.md)
|
60
|
+
* [NatgatewayUpdate](subcommands/compute-engine/natgateway_update.md)
|
61
|
+
* [NetworkloadbalancerCreate](subcommands/compute-engine/networkloadbalancer_create.md)
|
62
|
+
* [NetworkloadbalancerDelete](subcommands/compute-engine/networkloadbalancer_delete.md)
|
63
|
+
* [NetworkloadbalancerGet](subcommands/compute-engine/networkloadbalancer_get.md)
|
82
64
|
* [NetworkloadbalancerList](subcommands/compute-engine/networkloadbalancer_list.md)
|
83
|
-
* [
|
84
|
-
* [
|
85
|
-
* [LabelRemove](subcommands/compute-engine/label_remove.md)
|
86
|
-
* [NetworkloadbalancerRuleUpdate](subcommands/compute-engine/networkloadbalancer_rule_update.md)
|
65
|
+
* [NetworkloadbalancerRuleAdd](subcommands/compute-engine/networkloadbalancer_rule_add.md)
|
66
|
+
* [NetworkloadbalancerRuleList](subcommands/compute-engine/networkloadbalancer_rule_list.md)
|
87
67
|
* [NetworkloadbalancerRuleRemove](subcommands/compute-engine/networkloadbalancer_rule_remove.md)
|
88
|
-
* [
|
89
|
-
* [RequestGet](subcommands/compute-engine/request_get.md)
|
90
|
-
* [LabelAdd](subcommands/compute-engine/label_add.md)
|
68
|
+
* [NetworkloadbalancerRuleTargetAdd](subcommands/compute-engine/networkloadbalancer_rule_target_add.md)
|
91
69
|
* [NetworkloadbalancerRuleTargetList](subcommands/compute-engine/networkloadbalancer_rule_target_list.md)
|
92
|
-
* [FlowlogUpdate](subcommands/compute-engine/flowlog_update.md)
|
93
|
-
* [FirewallCreate](subcommands/compute-engine/firewall_create.md)
|
94
|
-
* [DatacenterGet](subcommands/compute-engine/datacenter_get.md)
|
95
70
|
* [NetworkloadbalancerRuleTargetRemove](subcommands/compute-engine/networkloadbalancer_rule_target_remove.md)
|
71
|
+
* [NetworkloadbalancerRuleUpdate](subcommands/compute-engine/networkloadbalancer_rule_update.md)
|
72
|
+
* [NetworkloadbalancerUpdate](subcommands/compute-engine/networkloadbalancer_update.md)
|
73
|
+
* [NicCreate](subcommands/compute-engine/nic_create.md)
|
74
|
+
* [NicDelete](subcommands/compute-engine/nic_delete.md)
|
75
|
+
* [NicGet](subcommands/compute-engine/nic_get.md)
|
76
|
+
* [NicList](subcommands/compute-engine/nic_list.md)
|
77
|
+
* [NicUpdate](subcommands/compute-engine/nic_update.md)
|
78
|
+
* [PccCreate](subcommands/compute-engine/pcc_create.md)
|
96
79
|
* [PccDelete](subcommands/compute-engine/pcc_delete.md)
|
97
|
-
* [
|
98
|
-
* [
|
99
|
-
* [
|
100
|
-
* [
|
101
|
-
* [ImageList](subcommands/compute-engine/image_list.md)
|
80
|
+
* [PccGet](subcommands/compute-engine/pcc_get.md)
|
81
|
+
* [PccList](subcommands/compute-engine/pcc_list.md)
|
82
|
+
* [PccUpdate](subcommands/compute-engine/pcc_update.md)
|
83
|
+
* [RequestGet](subcommands/compute-engine/request_get.md)
|
102
84
|
* [RequestList](subcommands/compute-engine/request_list.md)
|
103
|
-
* [
|
104
|
-
* [FirewallDelete](subcommands/compute-engine/firewall_delete.md)
|
105
|
-
* [LanGet](subcommands/compute-engine/lan_get.md)
|
106
|
-
* [NatgatewayDelete](subcommands/compute-engine/natgateway_delete.md)
|
107
|
-
* [DatacenterUpdate](subcommands/compute-engine/datacenter_update.md)
|
108
|
-
* [DatacenterDelete](subcommands/compute-engine/datacenter_delete.md)
|
109
|
-
* [ServerStart](subcommands/compute-engine/server_start.md)
|
85
|
+
* [RequestStatus](subcommands/compute-engine/request_status.md)
|
110
86
|
* [RequestWait](subcommands/compute-engine/request_wait.md)
|
111
|
-
* [FlowlogList](subcommands/compute-engine/flowlog_list.md)
|
112
87
|
* [ServerConsole](subcommands/compute-engine/server_console.md)
|
113
|
-
* [
|
88
|
+
* [ServerCreate](subcommands/compute-engine/server_create.md)
|
89
|
+
* [ServerDelete](subcommands/compute-engine/server_delete.md)
|
90
|
+
* [ServerGet](subcommands/compute-engine/server_get.md)
|
91
|
+
* [ServerList](subcommands/compute-engine/server_list.md)
|
92
|
+
* [ServerReboot](subcommands/compute-engine/server_reboot.md)
|
93
|
+
* [ServerResume](subcommands/compute-engine/server_resume.md)
|
94
|
+
* [ServerStart](subcommands/compute-engine/server_start.md)
|
95
|
+
* [ServerStop](subcommands/compute-engine/server_stop.md)
|
96
|
+
* [ServerSuspend](subcommands/compute-engine/server_suspend.md)
|
97
|
+
* [ServerToken](subcommands/compute-engine/server_token.md)
|
98
|
+
* [ServerUpdate](subcommands/compute-engine/server_update.md)
|
99
|
+
* [ServerUpgrade](subcommands/compute-engine/server_upgrade.md)
|
100
|
+
* [SnapshotCreate](subcommands/compute-engine/snapshot_create.md)
|
101
|
+
* [SnapshotDelete](subcommands/compute-engine/snapshot_delete.md)
|
102
|
+
* [SnapshotGet](subcommands/compute-engine/snapshot_get.md)
|
103
|
+
* [SnapshotList](subcommands/compute-engine/snapshot_list.md)
|
104
|
+
* [SnapshotRestore](subcommands/compute-engine/snapshot_restore.md)
|
105
|
+
* [SnapshotUpdate](subcommands/compute-engine/snapshot_update.md)
|
106
|
+
* [TemplateList](subcommands/compute-engine/template_list.md)
|
107
|
+
* [VolumeAttach](subcommands/compute-engine/volume_attach.md)
|
108
|
+
* [VolumeCreate](subcommands/compute-engine/volume_create.md)
|
109
|
+
* [VolumeDelete](subcommands/compute-engine/volume_delete.md)
|
110
|
+
* [VolumeDetach](subcommands/compute-engine/volume_detach.md)
|
111
|
+
* [VolumeGet](subcommands/compute-engine/volume_get.md)
|
112
|
+
* [VolumeList](subcommands/compute-engine/volume_list.md)
|
113
|
+
* [VolumeUpdate](subcommands/compute-engine/volume_update.md)
|
114
114
|
* Managed Kubernetes
|
115
|
+
* [K8sCreate](subcommands/kubernetes/k8s_create.md)
|
116
|
+
* [K8sDelete](subcommands/kubernetes/k8s_delete.md)
|
115
117
|
* [K8sGet](subcommands/kubernetes/k8s_get.md)
|
116
|
-
* [
|
117
|
-
* [NodeDelete](subcommands/kubernetes/node_delete.md)
|
118
|
+
* [K8sList](subcommands/kubernetes/k8s_list.md)
|
118
119
|
* [K8sUpdate](subcommands/kubernetes/k8s_update.md)
|
119
|
-
* [
|
120
|
+
* [KubeconfigGet](subcommands/kubernetes/kubeconfig_get.md)
|
121
|
+
* [NodeDelete](subcommands/kubernetes/node_delete.md)
|
122
|
+
* [NodeGet](subcommands/kubernetes/node_get.md)
|
120
123
|
* [NodeList](subcommands/kubernetes/node_list.md)
|
121
124
|
* [NodeReplace](subcommands/kubernetes/node_replace.md)
|
122
|
-
* [
|
123
|
-
* [
|
124
|
-
* [NodepoolLanRemove](subcommands/kubernetes/nodepool_lan_remove.md)
|
125
|
+
* [NodepoolCreate](subcommands/kubernetes/nodepool_create.md)
|
126
|
+
* [NodepoolDelete](subcommands/kubernetes/nodepool_delete.md)
|
125
127
|
* [NodepoolGet](subcommands/kubernetes/nodepool_get.md)
|
128
|
+
* [NodepoolLanAdd](subcommands/kubernetes/nodepool_lan_add.md)
|
129
|
+
* [NodepoolLanRemove](subcommands/kubernetes/nodepool_lan_remove.md)
|
126
130
|
* [NodepoolList](subcommands/kubernetes/nodepool_list.md)
|
127
|
-
* [
|
128
|
-
* [NodepoolDelete](subcommands/kubernetes/nodepool_delete.md)
|
129
|
-
* [NodeGet](subcommands/kubernetes/node_get.md)
|
130
|
-
* [K8sDelete](subcommands/kubernetes/k8s_delete.md)
|
131
|
-
* [K8sList](subcommands/kubernetes/k8s_list.md)
|
131
|
+
* [NodepoolUpdate](subcommands/kubernetes/nodepool_update.md)
|
132
132
|
* User Management
|
133
|
-
* [
|
134
|
-
* [ShareList](subcommands/user/share_list.md)
|
135
|
-
* [GroupDelete](subcommands/user/group_delete.md)
|
133
|
+
* [ContractList](subcommands/user/contract_list.md)
|
136
134
|
* [GroupCreate](subcommands/user/group_create.md)
|
137
|
-
* [
|
138
|
-
* [
|
135
|
+
* [GroupDelete](subcommands/user/group_delete.md)
|
136
|
+
* [GroupGet](subcommands/user/group_get.md)
|
139
137
|
* [GroupList](subcommands/user/group_list.md)
|
140
|
-
* [
|
141
|
-
* [S3keyGet](subcommands/user/s3key_get.md)
|
138
|
+
* [GroupUpdate](subcommands/user/group_update.md)
|
142
139
|
* [GroupUserAdd](subcommands/user/group_user_add.md)
|
140
|
+
* [GroupUserRemove](subcommands/user/group_user_remove.md)
|
143
141
|
* [ResourceList](subcommands/user/resource_list.md)
|
144
|
-
* [UserDelete](subcommands/user/user_delete.md)
|
145
|
-
* [ContractList](subcommands/user/contract_list.md)
|
146
|
-
* [UserGet](subcommands/user/user_get.md)
|
147
142
|
* [S3keyCreate](subcommands/user/s3key_create.md)
|
148
143
|
* [S3keyDelete](subcommands/user/s3key_delete.md)
|
149
|
-
* [
|
150
|
-
* [
|
151
|
-
* [GroupUpdate](subcommands/user/group_update.md)
|
152
|
-
* [GroupGet](subcommands/user/group_get.md)
|
153
|
-
* [GroupUserRemove](subcommands/user/group_user_remove.md)
|
144
|
+
* [S3keyGet](subcommands/user/s3key_get.md)
|
145
|
+
* [S3keyList](subcommands/user/s3key_list.md)
|
154
146
|
* [ShareCreate](subcommands/user/share_create.md)
|
155
|
-
* [ShareGet](subcommands/user/share_get.md)
|
156
147
|
* [ShareDelete](subcommands/user/share_delete.md)
|
148
|
+
* [ShareGet](subcommands/user/share_get.md)
|
149
|
+
* [ShareList](subcommands/user/share_list.md)
|
150
|
+
* [ShareUpdate](subcommands/user/share_update.md)
|
151
|
+
* [UserCreate](subcommands/user/user_create.md)
|
152
|
+
* [UserDelete](subcommands/user/user_delete.md)
|
153
|
+
* [UserGet](subcommands/user/user_get.md)
|
154
|
+
* [UserList](subcommands/user/user_list.md)
|
155
|
+
* [UserSsourl](subcommands/user/user_ssourl.md)
|
156
|
+
* [UserUpdate](subcommands/user/user_update.md)
|
157
157
|
* Managed Backup
|
158
158
|
* [BackupunitCreate](subcommands/backup/backupunit_create.md)
|
159
|
-
* [BackupunitSsourl](subcommands/backup/backupunit_ssourl.md)
|
160
|
-
* [BackupunitUpdate](subcommands/backup/backupunit_update.md)
|
161
|
-
* [BackupunitList](subcommands/backup/backupunit_list.md)
|
162
159
|
* [BackupunitDelete](subcommands/backup/backupunit_delete.md)
|
163
160
|
* [BackupunitGet](subcommands/backup/backupunit_get.md)
|
164
|
-
*
|
165
|
-
* [
|
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)
|
166
168
|
* [DbaasPostgresClusterDelete](subcommands/dbaas-postgres/dbaas_postgres_cluster_delete.md)
|
169
|
+
* [DbaasPostgresClusterGet](subcommands/dbaas-postgres/dbaas_postgres_cluster_get.md)
|
167
170
|
* [DbaasPostgresClusterList](subcommands/dbaas-postgres/dbaas_postgres_cluster_list.md)
|
168
|
-
* [DbaasPostgresClusterUpdate](subcommands/dbaas-postgres/dbaas_postgres_cluster_update.md)
|
169
171
|
* [DbaasPostgresClusterRestore](subcommands/dbaas-postgres/dbaas_postgres_cluster_restore.md)
|
170
|
-
* [
|
171
|
-
* [DbaasPostgresBackupGet](subcommands/dbaas-postgres/dbaas_postgres_backup_get.md)
|
172
|
-
* [DbaasPostgresClusterCreate](subcommands/dbaas-postgres/dbaas_postgres_cluster_create.md)
|
173
|
-
* [DbaasPostgresVersionList](subcommands/dbaas-postgres/dbaas_postgres_version_list.md)
|
172
|
+
* [DbaasPostgresClusterUpdate](subcommands/dbaas-postgres/dbaas_postgres_cluster_update.md)
|
174
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,8 +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', '
|
24
|
-
spec.add_runtime_dependency 'ionoscloud-dbaas-postgres', '
|
23
|
+
spec.add_runtime_dependency 'ionoscloud', '6.0.1'
|
24
|
+
spec.add_runtime_dependency 'ionoscloud-dbaas-postgres', '1.0.1'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
27
27
|
spec.add_development_dependency 'simplecov', '~> 0.21.2'
|
@@ -40,7 +40,7 @@ class Chef
|
|
40
40
|
if @updatable_fields.map { |el| config[el] }.any?
|
41
41
|
print "#{ui.color('Updating Backup unit...', :magenta)}"
|
42
42
|
|
43
|
-
|
43
|
+
_, _, headers = backupunit_api.backupunits_patch_with_http_info(
|
44
44
|
config[:backupunit_id],
|
45
45
|
Ionoscloud::BackupUnitProperties.new(
|
46
46
|
password: config[:password],
|
@@ -221,6 +221,7 @@ class Chef
|
|
221
221
|
s3_buckets = (cluster.properties.s3_buckets.nil? ? [] : cluster.properties.s3_buckets.map { |el| el.name })
|
222
222
|
puts "#{ui.color('ID', :cyan)}: #{cluster.id}"
|
223
223
|
puts "#{ui.color('Name', :cyan)}: #{cluster.properties.name}"
|
224
|
+
puts "#{ui.color('Public', :cyan)}: #{cluster.properties.public}"
|
224
225
|
puts "#{ui.color('k8s Version', :cyan)}: #{cluster.properties.k8s_version}"
|
225
226
|
puts "#{ui.color('Maintenance Window', :cyan)}: #{maintenance_window}"
|
226
227
|
puts "#{ui.color('State', :cyan)}: #{cluster.metadata.state}"
|
@@ -287,6 +288,7 @@ class Chef
|
|
287
288
|
puts "#{ui.color('RAM', :cyan)}: #{nodepool.properties.ram_size}"
|
288
289
|
puts "#{ui.color('Storage Type', :cyan)}: #{nodepool.properties.storage_type}"
|
289
290
|
puts "#{ui.color('Storage Size', :cyan)}: #{nodepool.properties.storage_size}"
|
291
|
+
puts "#{ui.color('Gateway IP', :cyan)}: #{nodepool.properties.gateway_ip}"
|
290
292
|
puts "#{ui.color('Public IPs', :cyan)}: #{nodepool.properties.public_ips}"
|
291
293
|
puts "#{ui.color('Labels', :cyan)}: #{nodepool.properties.labels}"
|
292
294
|
puts "#{ui.color('Annotations', :cyan)}: #{nodepool.properties.annotations}"
|
@@ -460,6 +462,7 @@ class Chef
|
|
460
462
|
puts "#{ui.color('Display Name', :cyan)}: #{cluster.properties.display_name}"
|
461
463
|
puts "#{ui.color('Postgres Version', :cyan)}: #{cluster.properties.postgres_version}"
|
462
464
|
puts "#{ui.color('Location', :cyan)}: #{cluster.properties.location}"
|
465
|
+
puts "#{ui.color('Backup location', :cyan)}: #{cluster.properties.backup_location}"
|
463
466
|
puts "#{ui.color('Instances', :cyan)}: #{cluster.properties.instances}"
|
464
467
|
puts "#{ui.color('RAM Size', :cyan)}: #{cluster.properties.ram}"
|
465
468
|
puts "#{ui.color('Cores', :cyan)}: #{cluster.properties.cores}"
|
@@ -158,7 +158,7 @@ class Chef
|
|
158
158
|
availability_zone: config[:volume_availability_zone],
|
159
159
|
backupunit_id: config[:backupunit_id],
|
160
160
|
user_data: config[:user_data],
|
161
|
-
}.compact)
|
161
|
+
}.compact),
|
162
162
|
)
|
163
163
|
|
164
164
|
nic = Ionoscloud::Nic.new(
|
@@ -168,7 +168,7 @@ class Chef
|
|
168
168
|
dhcp: config[:dhcp],
|
169
169
|
lan: config[:lan],
|
170
170
|
firewall_type: config[:firewall_type],
|
171
|
-
}.compact)
|
171
|
+
}.compact),
|
172
172
|
)
|
173
173
|
|
174
174
|
server = Ionoscloud::Server.new(
|
@@ -22,8 +22,7 @@ class Chef
|
|
22
22
|
|
23
23
|
contracts = Ionoscloud::ContractResourcesApi.new(api_client).contracts_get()
|
24
24
|
|
25
|
-
contracts.items.each do
|
26
|
-
|contract|
|
25
|
+
contracts.items.each do |contract|
|
27
26
|
puts "#{ui.color('Contract Type', :cyan)}: #{contract.type}"
|
28
27
|
puts "#{ui.color('Contract Owner', :cyan)}: #{contract.properties.owner}"
|
29
28
|
puts "#{ui.color('Contract Number', :cyan)}: #{contract.properties.contract_number}"
|
@@ -135,7 +135,7 @@ class Chef
|
|
135
135
|
licence_type: config[:licence_type],
|
136
136
|
backupunit_id: config[:backupunit_id],
|
137
137
|
user_data: config[:user_data],
|
138
|
-
}.compact)
|
138
|
+
}.compact),
|
139
139
|
)]
|
140
140
|
|
141
141
|
nics = []
|
@@ -149,8 +149,8 @@ class Chef
|
|
149
149
|
dhcp: config[:dhcp],
|
150
150
|
lan: config[:lan],
|
151
151
|
firewall_type: config[:firewall_type],
|
152
|
-
}.compact)
|
153
|
-
)
|
152
|
+
}.compact),
|
153
|
+
),
|
154
154
|
]
|
155
155
|
end
|
156
156
|
|
@@ -25,8 +25,8 @@ class Chef
|
|
25
25
|
def initialize(args = [])
|
26
26
|
super(args)
|
27
27
|
@description =
|
28
|
-
|
29
|
-
|
28
|
+
'Unless you are planning to manage an existing Ionoscloud environment, '\
|
29
|
+
'the first step will typically involve choosing the location for a new virtual data center'\
|
30
30
|
"A list of locations can be obtained with location command.\n\n\t"\
|
31
31
|
"```text\nknife ionoscloud location list\n```\n\n"\
|
32
32
|
"Make a note of the desired location ID and now the data center can be created.\n"
|
@@ -44,13 +44,13 @@ class Chef
|
|
44
44
|
if @updatable_fields.map { |el| config[el] }.any?
|
45
45
|
print "#{ui.color('Updating data center...', :magenta)}"
|
46
46
|
|
47
|
-
|
47
|
+
_, _, headers = datacenter_api.datacenters_patch_with_http_info(
|
48
48
|
config[:datacenter_id],
|
49
49
|
Ionoscloud::DatacenterProperties.new(
|
50
50
|
name: config[:name],
|
51
51
|
description: config[:description],
|
52
52
|
sec_auth_protection: (config.key?(:sec_auth_protection) ? config[:sec_auth_protection].to_s.downcase == 'true' : nil),
|
53
|
-
)
|
53
|
+
),
|
54
54
|
)
|
55
55
|
|
56
56
|
dot = ui.color('.', :magenta)
|
@@ -15,8 +15,8 @@ class Chef
|
|
15
15
|
def initialize(args = [])
|
16
16
|
super(args)
|
17
17
|
@description =
|
18
|
-
'Retrieve a PostgreSQL cluster backup by using its ID. This value can be
|
19
|
-
found when you GET a list of PostgreSQL cluster backups.'
|
18
|
+
'Retrieve a PostgreSQL cluster backup by using its ID. This value can be '\
|
19
|
+
'found when you GET a list of PostgreSQL cluster backups.'
|
20
20
|
@directory = 'dbaas-postgres'
|
21
21
|
@required_options = [:backup_id, :ionoscloud_username, :ionoscloud_password]
|
22
22
|
end
|
@@ -15,8 +15,8 @@ class Chef
|
|
15
15
|
def initialize(args = [])
|
16
16
|
super(args)
|
17
17
|
@description =
|
18
|
-
'If cluster_id is provided, retrieves a list of all backups of the given PostgreSQL cluster,
|
19
|
-
otherwise retrieves a list of all PostgreSQL cluster backups.'
|
18
|
+
'If cluster_id is provided, retrieves a list of all backups of the given PostgreSQL cluster, '\
|
19
|
+
'otherwise retrieves a list of all PostgreSQL cluster backups.'
|
20
20
|
@directory = 'dbaas-postgres'
|
21
21
|
@required_options = [:ionoscloud_username, :ionoscloud_password]
|
22
22
|
end
|
@@ -45,6 +45,10 @@ class Chef
|
|
45
45
|
be where all of your instances live. Property cannot be modified
|
46
46
|
after datacenter creation (disallowed in update requests)'
|
47
47
|
|
48
|
+
option :backup_location,
|
49
|
+
long: '--backup-location BACKUP_LOCATION',
|
50
|
+
description: 'The S3 location where the backups will be stored.'
|
51
|
+
|
48
52
|
option :display_name,
|
49
53
|
short: '-n DISPLAY_NAME',
|
50
54
|
long: '--name DISPLAY_NAME',
|
@@ -67,7 +71,7 @@ class Chef
|
|
67
71
|
option :synchronization_mode,
|
68
72
|
short: '-s SYNCHRONIZATION_MODE',
|
69
73
|
long: '--synchronization-mode SYNCHRONIZATION_MODE',
|
70
|
-
description: 'Represents different modes of replication'
|
74
|
+
description: 'Represents different modes of replication. One of [ASYNCHRONOUS, SYNCHRONOUS, STRICTLY_SYNCHRONOUS]'
|
71
75
|
|
72
76
|
option :username,
|
73
77
|
long: '--db-user DB_USERNAME',
|
@@ -91,9 +95,9 @@ class Chef
|
|
91
95
|
def initialize(args = [])
|
92
96
|
super(args)
|
93
97
|
@description =
|
94
|
-
'Creates a new PostgreSQL cluster.
|
95
|
-
If the `fromBackup` field is populated, the new cluster will be created
|
96
|
-
based on the given backup.'
|
98
|
+
'Creates a new PostgreSQL cluster. '\
|
99
|
+
'If the `fromBackup` field is populated, the new cluster will be created '\
|
100
|
+
'based on the given backup.'
|
97
101
|
@directory = 'dbaas-postgres'
|
98
102
|
@required_options = [
|
99
103
|
:postgres_version, :instances, :cores, :ram, :storage_size, :storage_type,
|
@@ -110,8 +114,7 @@ class Chef
|
|
110
114
|
|
111
115
|
config[:connections] = JSON[config[:connections]] if config[:connections] && config[:connections].instance_of?(String)
|
112
116
|
|
113
|
-
config[:connections] = config[:connections].map do
|
114
|
-
|connection|
|
117
|
+
config[:connections] = config[:connections].map do |connection|
|
115
118
|
IonoscloudDbaasPostgres::Connection.new(
|
116
119
|
datacenter_id: connection['datacenter_id'],
|
117
120
|
lan_id: String(connection['lan_id']),
|
@@ -130,6 +133,7 @@ class Chef
|
|
130
133
|
storage_type: config[:storage_type],
|
131
134
|
connections: config[:connections],
|
132
135
|
location: config[:location],
|
136
|
+
backup_location: config[:backup_location],
|
133
137
|
display_name: config[:display_name],
|
134
138
|
maintenance_window: (config[:time] && config[:day_of_the_week]) ? IonoscloudDbaasPostgres::MaintenanceWindow.new(
|
135
139
|
time: config[:time],
|
@@ -149,7 +153,7 @@ class Chef
|
|
149
153
|
cluster_request = IonoscloudDbaasPostgres::CreateClusterRequest.new()
|
150
154
|
cluster_request.properties = cluster_properties
|
151
155
|
|
152
|
-
cluster, _,
|
156
|
+
cluster, _, _ = clusters_api.clusters_post_with_http_info(cluster_request)
|
153
157
|
|
154
158
|
print_cluster(cluster)
|
155
159
|
end
|
@@ -36,11 +36,11 @@ class Chef
|
|
36
36
|
|
37
37
|
begin
|
38
38
|
confirm('Do you really want to delete this cluster')
|
39
|
-
rescue SystemExit
|
39
|
+
rescue SystemExit
|
40
40
|
next
|
41
41
|
end
|
42
42
|
|
43
|
-
|
43
|
+
clusters_api.clusters_delete_with_http_info(cluster_id)
|
44
44
|
ui.warn("Deleted Cluster #{cluster.id}.")
|
45
45
|
end
|
46
46
|
end
|
@@ -15,9 +15,9 @@ class Chef
|
|
15
15
|
def initialize(args = [])
|
16
16
|
super(args)
|
17
17
|
@description =
|
18
|
-
'You can retrieve a PostgreSQL cluster by using its ID. This value can be
|
19
|
-
found in the response body when a PostgreSQL cluster is created or when
|
20
|
-
you GET a list of PostgreSQL clusters.'
|
18
|
+
'You can retrieve a PostgreSQL cluster by using its ID. This value can be '\
|
19
|
+
'found in the response body when a PostgreSQL cluster is created or when '\
|
20
|
+
'you GET a list of PostgreSQL clusters.'
|
21
21
|
@directory = 'dbaas-postgres'
|
22
22
|
@required_options = [:cluster_id, :ionoscloud_username, :ionoscloud_password]
|
23
23
|
end
|
@@ -25,6 +25,7 @@ class Chef
|
|
25
25
|
ui.color('Display Name', :bold),
|
26
26
|
ui.color('Postgres Version', :bold),
|
27
27
|
ui.color('Location', :bold),
|
28
|
+
ui.color('Backup location', :bold),
|
28
29
|
ui.color('Instances', :bold),
|
29
30
|
ui.color('Datacenter ID', :bold),
|
30
31
|
ui.color('Lan ID', :bold),
|
@@ -39,6 +40,7 @@ class Chef
|
|
39
40
|
dbaas_cluster_list << cluster.properties.display_name
|
40
41
|
dbaas_cluster_list << cluster.properties.postgres_version
|
41
42
|
dbaas_cluster_list << cluster.properties.location
|
43
|
+
dbaas_cluster_list << cluster.properties.backup_location
|
42
44
|
dbaas_cluster_list << cluster.properties.instances
|
43
45
|
dbaas_cluster_list << cluster.properties.connections.first.datacenter_id
|
44
46
|
dbaas_cluster_list << cluster.properties.connections.first.lan_id
|
@@ -46,7 +48,7 @@ class Chef
|
|
46
48
|
dbaas_cluster_list << cluster.metadata.state
|
47
49
|
end
|
48
50
|
|
49
|
-
puts ui.list(dbaas_cluster_list, :uneven_columns_across,
|
51
|
+
puts ui.list(dbaas_cluster_list, :uneven_columns_across, 10)
|
50
52
|
end
|
51
53
|
end
|
52
54
|
end
|
@@ -78,7 +78,7 @@ class Chef
|
|
78
78
|
ram: (config[:ram].nil? ? nil : Integer(config[:ram])),
|
79
79
|
storage_size: (config[:storage_size].nil? ? nil : Integer(config[:storage_size])),
|
80
80
|
display_name: config[:display_name],
|
81
|
-
maintenance_window: (config[:time] && config[:day_of_the_week]) ?
|
81
|
+
maintenance_window: (config[:time] && config[:day_of_the_week]) ? IonoscloudDbaasPostgres::MaintenanceWindow.new(
|
82
82
|
time: config[:time],
|
83
83
|
day_of_the_week: config[:day_of_the_week],
|
84
84
|
) : nil,
|
@@ -88,9 +88,7 @@ class Chef
|
|
88
88
|
cluster_request = IonoscloudDbaasPostgres::PatchClusterRequest.new()
|
89
89
|
cluster_request.properties = cluster_properties
|
90
90
|
|
91
|
-
|
92
|
-
|
93
|
-
dot = ui.color('.', :magenta)
|
91
|
+
clusters_api.clusters_patch_with_http_info(config[:cluster_id], cluster_request)
|
94
92
|
else
|
95
93
|
ui.warn("Nothing to update, please set one of the attributes #{@updatable_fields}.")
|
96
94
|
end
|